diff --git a/404.html b/404.html index 279d5e1..27e366b 100644 --- a/404.html +++ b/404.html @@ -41,5 +41,5 @@ - + diff --git a/index.html b/index.html index 279d5e1..27e366b 100644 --- a/index.html +++ b/index.html @@ -41,5 +41,5 @@ - + diff --git a/main.1a2b66cd2e80c558.js b/main.1a2b66cd2e80c558.js new file mode 100644 index 0000000..69984e6 --- /dev/null +++ b/main.1a2b66cd2e80c558.js @@ -0,0 +1 @@ +(self.webpackChunkangor=self.webpackChunkangor||[]).push([[792],{1648:(tn,Ne,v)=>{"use strict";v.d(Ne,{F:()=>u.F});var u=v(5888)},5888:(tn,Ne,v)=>{"use strict";v.d(Ne,{F:()=>nt});let u=(()=>{class At{static#e=this.standard="cubic-bezier(0.4, 0.0, 0.2, 1)";static#t=this.deceleration="cubic-bezier(0.0, 0.0, 0.2, 1)";static#n=this.acceleration="cubic-bezier(0.4, 0.0, 1, 1)";static#i=this.sharp="cubic-bezier(0.4, 0.0, 0.6, 1)"}return At})(),y=(()=>{class At{static#e=this.complex="375ms";static#t=this.entering="225ms";static#n=this.exiting="195ms"}return At})();var o=v(9969);const ae=(At,vt,Dt,Zt,Fn=`${y.entering} ${u.deceleration}`,Vn=`${y.exiting} ${u.acceleration}`)=>(0,o.hZ)(At,[(0,o.wk)("void",(0,o.iF)(vt)),(0,o.wk)("*",(0,o.iF)(Dt)),(0,o.kY)("void => false, * => false",[]),(0,o.kY)("void => *",(0,o.i0)(Zt||Fn),{params:{timings:Fn}}),(0,o.kY)("* => void",(0,o.i0)(Zt||Vn),{params:{timings:Vn}})]),nt=[(0,o.hZ)("expandCollapse",[(0,o.wk)("void, collapsed",(0,o.iF)({height:"0"})),(0,o.wk)("*, expanded",(0,o.iF)("*")),(0,o.kY)("void <=> false, collapsed <=> false, expanded <=> false",[]),(0,o.kY)("void <=> *, collapsed <=> expanded",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeIn",[(0,o.wk)("void",(0,o.iF)({opacity:0})),(0,o.wk)("*",(0,o.iF)({opacity:1})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInTop",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInBottom",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInLeft",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInRight",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeOut",[(0,o.wk)("*",(0,o.iF)({opacity:1})),(0,o.wk)("void",(0,o.iF)({opacity:0})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutTop",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutBottom",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutLeft",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutRight",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("shake",[(0,o.kY)("void => false",[]),(0,o.kY)("void => *, * => true",[(0,o.i0)("{{timings}}",(0,o.i7)([(0,o.iF)({transform:"translate3d(0, 0, 0)",offset:0}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.1}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.2}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.3}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.4}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.5}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.6}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.7}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.8}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.9}),(0,o.iF)({transform:"translate3d(0, 0, 0)",offset:1})]))],{params:{timings:"0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955)"}})]),(0,o.hZ)("slideInTop",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, -100%, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideInBottom",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, 100%, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideInLeft",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideInRight",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideOutTop",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, -100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("slideOutBottom",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, 100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("slideOutLeft",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("slideOutRight",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),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)"},"")]},9097:(tn,Ne,v)=>{"use strict";v.d(Ne,{t:()=>y});const y=new(v(4438).nKC)("ANGOR_APP_CONFIG")},881:(tn,Ne,v)=>{"use strict";v.d(Ne,{P:()=>G});var u=v(9097),y=v(4438),o=v(2401),L=v(4412);let G=(()=>{class ee{constructor(){this._defaultConfig=(0,y.WQX)(u.t),this._configSubject=new L.t(this._defaultConfig)}get config$(){return this._configSubject.asObservable()}set config(V){const P=(0,o.A)({},this._configSubject.getValue(),V);this._configSubject.next(P)}reset(){this._configSubject.next(this._defaultConfig)}static#e=this.\u0275fac=function(P){return new(P||ee)};static#t=this.\u0275prov=y.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},9979:(tn,Ne,v)=>{"use strict";v.d(Ne,{m:()=>te});var u=v(177),y=v(4438),o=v(8834),L=v(5351),G=v(9213);const ee=(be,Ze,gt,je,qe,We,ae,me)=>({"bg-primary-100 text-primary-600 dark:bg-primary-600 dark:text-primary-50":be,"bg-accent-100 text-accent-600 dark:bg-accent-600 dark:text-accent-50":Ze,"bg-warn-100 text-warn-600 dark:bg-warn-600 dark:text-warn-50":gt,"bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-50":je,"bg-blue-100 text-blue-600 dark:bg-blue-600 dark:text-blue-50":qe,"bg-green-100 text-green-500 dark:bg-green-500 dark:text-green-50":We,"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":me});function oe(be,Ze){1&be&&(y.j41(0,"div",1)(1,"button",6),y.nrm(2,"mat-icon",7),y.k0s()()),2&be&&(y.R7$(),y.Y8G("matDialogClose",void 0),y.R7$(),y.Y8G("svgIcon","heroicons_outline:x-mark"))}function V(be,Ze){if(1&be&&(y.j41(0,"div",3),y.nrm(1,"mat-icon",8),y.k0s()),2&be){const gt=y.XpG();y.Y8G("ngClass",y.lV(2,ee,"primary"===gt.data.icon.color,"accent"===gt.data.icon.color,"warn"===gt.data.icon.color,"basic"===gt.data.icon.color,"info"===gt.data.icon.color,"success"===gt.data.icon.color,"warning"===gt.data.icon.color,"error"===gt.data.icon.color)),y.R7$(),y.Y8G("svgIcon",gt.data.icon.name)}}function P(be,Ze){if(1&be&&y.nrm(0,"div",9),2&be){const gt=y.XpG(2);y.Y8G("innerHTML",gt.data.title,y.npT)}}function B(be,Ze){if(1&be&&y.nrm(0,"div",10),2&be){const gt=y.XpG(2);y.Y8G("innerHTML",gt.data.message,y.npT)}}function F(be,Ze){if(1&be&&(y.j41(0,"div",4),y.DNE(1,P,1,1,"div",9)(2,B,1,1,"div",10),y.k0s()),2&be){const gt=y.XpG();y.R7$(),y.vxM(gt.data.title?1:-1),y.R7$(),y.vxM(gt.data.message?2:-1)}}function ue(be,Ze){if(1&be&&(y.j41(0,"button",11),y.EFF(1),y.k0s()),2&be){const gt=y.XpG(2);y.Y8G("matDialogClose","cancelled"),y.R7$(),y.SpI(" ",gt.data.actions.cancel.label," ")}}function ge(be,Ze){if(1&be&&(y.j41(0,"button",12),y.EFF(1),y.k0s()),2&be){const gt=y.XpG(2);y.Y8G("color",gt.data.actions.confirm.color)("matDialogClose","confirmed"),y.R7$(),y.SpI(" ",gt.data.actions.confirm.label," ")}}function Ee(be,Ze){if(1&be&&(y.j41(0,"div",5),y.DNE(1,ue,2,2,"button",11)(2,ge,2,3,"button",12),y.k0s()),2&be){const gt=y.XpG();y.R7$(),y.vxM(gt.data.actions.cancel.show?1:-1),y.R7$(),y.vxM(gt.data.actions.confirm.show?2:-1)}}let Re=(()=>{class be{constructor(){this.data=(0,y.WQX)(L.Vh)}static#e=this.\u0275fac=function(je){return new(je||be)};static#t=this.\u0275cmp=y.VBU({type:be,selectors:[["angor-confirmation-dialog"]],standalone:!0,features:[y.aNF],decls:6,vars:4,consts:[[1,"relative","flex","h-full","w-full","flex-col"],[1,"absolute","right-0","top-0","pr-4","pt-4"],[1,"flex","flex-auto","flex-col","items-center","p-8","pb-6","sm:flex-row","sm:items-start","sm:pb-8"],[1,"flex","h-10","w-10","flex-0","items-center","justify-center","rounded-full","sm:mr-4",3,"ngClass"],[1,"mt-4","flex","flex-col","items-center","space-y-1","text-center","sm:mt-0","sm:items-start","sm:pr-8","sm:text-left"],[1,"flex","items-center","justify-center","space-x-3","bg-gray-50","px-6","py-4","dark:bg-black","dark:bg-opacity-10","sm:justify-end"],["mat-icon-button","",3,"matDialogClose"],[1,"text-secondary",3,"svgIcon"],[1,"text-current",3,"svgIcon"],[1,"text-xl","font-medium","leading-6",3,"innerHTML"],[1,"text-secondary",3,"innerHTML"],["mat-stroked-button","",3,"matDialogClose"],["mat-flat-button","",3,"color","matDialogClose"]],template:function(je,qe){1&je&&(y.j41(0,"div",0),y.DNE(1,oe,3,2,"div",1),y.j41(2,"div",2),y.DNE(3,V,2,11,"div",3)(4,F,3,2,"div",4),y.k0s(),y.DNE(5,Ee,3,2,"div",5),y.k0s()),2&je&&(y.R7$(),y.vxM(qe.data.dismissible?1:-1),y.R7$(2),y.vxM(qe.data.icon.show?3:-1),y.R7$(),y.vxM(qe.data.title||qe.data.message?4:-1),y.R7$(),y.vxM(qe.data.actions.confirm.show||qe.data.actions.cancel.show?5:-1))},dependencies:[o.Hl,o.$z,o.iY,L.hM,L.tx,G.m_,G.An,u.YU],styles:["@media (min-width: 960px){.angor-confirmation-dialog-panel{width:32rem}}.angor-confirmation-dialog-panel .mat-mdc-dialog-container .mat-mdc-dialog-surface{padding:0!important}\n"],encapsulation:2})}return be})();var ke=v(2401);let te=(()=>{class be{constructor(){this._matDialog=(0,y.WQX)(L.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(gt={}){const je=(0,ke.A)({},this._defaultConfig,gt);return this._matDialog.open(Re,{autoFocus:!1,disableClose:!je.dismissible,data:je,panelClass:"angor-confirmation-dialog-panel"})}static#e=this.\u0275fac=function(je){return new(je||be)};static#t=this.\u0275prov=y.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})()},4977:(tn,Ne,v)=>{"use strict";v.d(Ne,{l:()=>V});var u=v(881),y=v(9327),o=v(4438),L=v(7680),G=v(2771),ee=v(6354),oe=v(5558);let V=(()=>{class P{constructor(){this._breakpointObserver=(0,o.WQX)(y.QP),this._angorConfigService=(0,o.WQX)(u.P),this._onMediaChange=new G.m(1),this._angorConfigService.config$.pipe((0,ee.T)(F=>(0,L.A)(Object.entries(F.screens).map(([ue,ge])=>[ue,`(min-width: ${ge})`]))),(0,oe.n)(F=>this._breakpointObserver.observe(Object.values(F)).pipe((0,ee.T)(ue=>{const ge=[],Ee={},Re=Object.entries(ue.breakpoints).filter(([ke,te])=>te)??[];for(const[ke]of Re){const te=Object.entries(F).find(([be,Ze])=>Ze===ke)[0];te&&(ge.push(te),Ee[te]=ke)}this._onMediaChange.next({matchingAliases:ge,matchingQueries:Ee})})))).subscribe()}get onMediaChange$(){return this._onMediaChange.asObservable()}onMediaQueryChange$(F){return this._breakpointObserver.observe(F)}static#e=this.\u0275fac=function(ue){return new(ue||P)};static#t=this.\u0275prov=o.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})()},7209:(tn,Ne,v)=>{"use strict";v.d(Ne,{Q:()=>y});var u=v(4438);let y=(()=>{class o{get exactMatchOptions(){return{paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"}}get subsetMatchOptions(){return{paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"}}randomId(G=10){let oe="";for(let V=0;V<10;V++)oe+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return oe}static#e=this.\u0275fac=function(ee){return new(ee||o)};static#t=this.\u0275prov=u.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},6231:(tn,Ne,v)=>{"use strict";v.d(Ne,{b:()=>G});var u=v(467),y=v(7442),o=v(4412),L=v(4438);let G=(()=>{class ee{constructor(){this.pool=new y.lo,this.relays=[],this.maxRetries=10,this.retryDelay=15e3,this.eventSubject=new o.t(null),this.relaysSubject=new o.t([]),this.relays=this.loadRelaysFromLocalStorage(),this.connectToRelays(),this.setupVisibilityHandling(),this.relaysSubject.next(this.relays)}loadRelaysFromLocalStorage(){const V=JSON.parse(localStorage.getItem("nostrRelays")||"[]");return V.length>0?V.map(B=>({...B,connected:!1,retries:0,retryTimeout:null,ws:void 0})):[{url:"wss://relay.primal.net",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay.damus.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay2.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"}]}saveRelaysToLocalStorage(){const V=this.relays.map(({url:P,accessType:B,connected:F,retries:ue,retryTimeout:ge})=>({url:P,accessType:B,connected:F,retries:ue,retryTimeout:ge}));localStorage.setItem("nostrRelays",JSON.stringify(V)),this.relaysSubject.next(this.relays)}connectToRelay(V){V.connected||(V.ws=new WebSocket(V.url),V.ws.onopen=()=>{V.connected=!0,V.retries=0,clearTimeout(V.retryTimeout),this.saveRelaysToLocalStorage()},V.ws.onerror=()=>this.handleRelayError(V),V.ws.onclose=()=>{V.connected=!1,this.handleRelayError(V)},V.ws.onmessage=({data:P})=>{try{const B=JSON.parse("string"==typeof P?P:P.toString("utf-8"));this.eventSubject.next(B)}catch(B){console.error("Error parsing WebSocket message:",B)}})}handleRelayError(V){V.retries>=this.maxRetries?console.error(`Max retries reached for relay: ${V.url}. No further attempts will be made.`):(V.retries++,V.retryTimeout=setTimeout(()=>this.connectToRelay(V),this.retryDelay*V.retries))}connectToRelays(){this.relays.forEach(V=>!V.connected&&this.connectToRelay(V))}ensureConnectedRelays(){var V=this;return(0,u.A)(function*(){return V.connectToRelays(),new Promise(P=>{const B=()=>{V.getConnectedRelays().length>0?P():setTimeout(B,1e3)};B()})})()}setupVisibilityHandling(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.connectToRelays()}),window.addEventListener("beforeunload",()=>{this.relays.forEach(V=>V.ws?.close())})}getConnectedRelays(){return this.relays.filter(V=>V.connected).map(V=>V.url)}getRelays(){return this.relaysSubject.asObservable()}publishEventToWriteRelays(V){var P=this;return(0,u.A)(function*(){const B=P.relays.filter(F=>["write","read-write"].includes(F.accessType)&&F.connected);if(!B.length)throw new Error("No connected write relays available");try{return yield Promise.any(B.map(F=>P.pool.publish([F.url],V))),P.eventSubject.next(V),V}catch(F){throw console.error("Failed to publish event to relays:",F),F}})()}addRelay(V,P="read-write"){if(!this.relays.some(B=>B.url===V)){const B={url:V,connected:!1,retries:0,retryTimeout:null,accessType:P};this.relays.push(B),this.connectToRelay(B),this.saveRelaysToLocalStorage()}}removeRelay(V){this.relays=this.relays.filter(P=>P.url!==V),this.saveRelaysToLocalStorage()}removeAllCustomRelays(){const V=["wss://relay.angor.io","wss://relay2.angor.io"];this.relays=this.relays.filter(P=>V.includes(P.url)),this.saveRelaysToLocalStorage()}updateRelayAccessType(V,P){const B=this.relays.find(F=>F.url===V);B&&(B.accessType=P,this.saveRelaysToLocalStorage())}getPool(){return this.pool}getEventStream(){return this.eventSubject.asObservable()}static#e=this.\u0275fac=function(P){return new(P||ee)};static#t=this.\u0275prov=L.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},4930:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>je});var u=v(467),y=v(5766),o=v(7292),L=v(3838),G=v(7442),ee=v(6391),V=(v(5693),v(9673)),P=v(9608),te=v(4438),be=v(3813);let Ze=(()=>{class qe{constructor(){this.encoder=new TextEncoder,this.decoder=new TextDecoder}getPasswordKey(ae){var me=this;return(0,u.A)(function*(){return window.crypto.subtle.importKey("raw",me.encoder.encode(ae),"PBKDF2",!1,["deriveKey"])})()}deriveKey(ae,me,Le){return(0,u.A)(function*(){return window.crypto.subtle.deriveKey({name:"PBKDF2",salt:me,iterations:25e4,hash:"SHA-256"},ae,{name:"AES-GCM",length:256},!1,Le)})()}encryptData(ae,me){var Le=this;return(0,u.A)(function*(){try{const nt=window.crypto.getRandomValues(new Uint8Array(16)),At=window.crypto.getRandomValues(new Uint8Array(12)),vt=yield Le.getPasswordKey(me),Dt=yield Le.deriveKey(vt,nt,["encrypt"]),Zt=new Uint8Array(yield window.crypto.subtle.encrypt({name:"AES-GCM",iv:At},Dt,Le.encoder.encode(ae))),Fn=new Uint8Array(nt.length+At.length+Zt.length);return Fn.set(nt,0),Fn.set(At,nt.length),Fn.set(Zt,nt.length+At.length),be.K3.encode(Fn)}catch(nt){throw console.error("Encryption failed:",nt),new Error("Failed to encrypt data.")}})()}decryptData(ae,me){var Le=this;return(0,u.A)(function*(){try{const nt=be.K3.decode(ae),At=nt.slice(0,16),vt=nt.slice(16,28),Dt=nt.slice(28),Zt=yield Le.getPasswordKey(me),Fn=yield Le.deriveKey(Zt,At,["decrypt"]),Vn=yield window.crypto.subtle.decrypt({name:"AES-GCM",iv:vt},Fn,Dt);return Le.decoder.decode(Vn)}catch(nt){throw console.error("Decryption failed:",nt),new Error("Failed to decrypt data.")}})()}static#e=this.\u0275fac=function(me){return new(me||qe)};static#t=this.\u0275prov=te.jDH({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var gt=v(5351);let je=(()=>{class qe{constructor(ae,me){this.securityService=ae,this.dialog=me,this.localStorageSecretKeyName="secretKey",this.localStoragePublicKeyName="publicKey",this.localStorageNpubName="npub",this.localStorageNsecName="nsec",this.storageKey="userPassword"}savePassword(ae,me){const Le=Date.now()+60*me*1e3;sessionStorage.setItem(this.storageKey,JSON.stringify({password:ae,expirationTime:Le}))}getPassword(){const ae=sessionStorage.getItem(this.storageKey);if(!ae)return null;const{password:me,expirationTime:Le}=JSON.parse(ae);return Date.now()>Le?(this.clearPassword(),null):me}clearPassword(){sessionStorage.removeItem(this.storageKey)}changePassword(ae,me,Le){var nt=this;return(0,u.A)(function*(){try{const At=yield nt.getSecretKey(ae);if(!At)throw new Error("Incorrect current password.");yield nt.setSecretKey(At,me);const vt=yield nt.getNsec(ae);return vt&&(yield nt.setNsec(vt,me)),nt.clearPassword(),Le&&nt.savePassword(me,60),!0}catch(At){return console.error("Failed to change password: ",At),!1}})()}getUsername(ae){return ae.startsWith("npub")&&(ae=G.Qe.decode(ae).data.toString()),`@${localStorage.getItem(`${ae}`)||G.Qe.npubEncode(ae)}`}npub(){let ae=this.getPublicKey();return G.Qe.npubEncode(ae)}requestPassword(){var ae=this;return(0,u.A)(function*(){return ae.dialog.open(o.b,{width:"300px",disableClose:!0}).afterClosed().toPromise()})()}nsec(ae){var me=this;return(0,u.A)(function*(){if(me.usingSecretKey()){let Le=yield me.getSecretKey(ae);const nt=Uint8Array.from(L.hp.from(Le,"hex"));return G.Qe.nsecEncode(nt)}return""})()}pubkey(ae){return G.Qe.decode(ae).data.toString()}setPublicKey(ae){const me=G.Qe.npubEncode(ae);window.localStorage.setItem(this.localStoragePublicKeyName,ae),window.localStorage.setItem(this.localStorageNpubName,me)}getPublicKey(){return localStorage.getItem(this.localStoragePublicKeyName)||""}setNpub(ae){localStorage.setItem(this.localStorageNpubName,ae)}getNpub(){return window.localStorage.getItem(this.localStorageNpubName)||""}setSecretKey(ae,me){var Le=this;return(0,u.A)(function*(){const nt=yield Le.securityService.encryptData(ae,me);localStorage.setItem(Le.localStorageSecretKeyName,nt)})()}getSecretKey(ae){var me=this;return(0,u.A)(function*(){const Le=localStorage.getItem(me.localStorageSecretKeyName);return Le?yield me.securityService.decryptData(Le,ae):null})()}getDecryptedSecretKey(){var ae=this;return(0,u.A)(function*(){try{const me=ae.getPassword();if(me)return yield ae.getSecretKey(me);const Le=yield ae.requestPassword();if(Le?.password){const nt=yield ae.getSecretKey(Le.password);return 0!==Le.duration&&ae.savePassword(Le.password,Le.duration),nt}return console.error("Password not provided"),null}catch(me){return console.error("Error decrypting private key:",me),null}})()}setNsec(ae,me){var Le=this;return(0,u.A)(function*(){const nt=yield Le.securityService.encryptData(ae,me);localStorage.setItem(Le.localStorageNsecName,nt)})()}getNsec(ae){var me=this;return(0,u.A)(function*(){const Le=localStorage.getItem(me.localStorageNsecName);return Le?yield me.securityService.decryptData(Le,ae):null})()}setPublicKeyFromExtension(ae){this.setPublicKey(ae)}handleLoginWithKey(ae,me){let Le,nt,At,vt;try{if(ae.startsWith(this.localStorageNsecName)){const Zt=G.Qe.decode(ae);if(Zt.type!==this.localStorageNsecName)throw new Error("Invalid nsec key.");Le=L.hp.from(Zt.data).toString("hex")}else{if(!/^[0-9a-fA-F]{64}$/.test(ae))throw new Error("Invalid key format. Must be either nsec or hex.");Le=ae}const Dt=new Uint8Array(L.hp.from(Le,"hex"));return nt=(0,G.lG)(Dt),vt=G.Qe.npubEncode(nt),At=G.Qe.nsecEncode(Dt),this.setSecretKey(Le,me),this.setNsec(vt,me),this.setPublicKey(nt),this.setNpub(vt),!0}catch(Dt){return console.error("Error during key handling: ",Dt),!1}}handleLoginWithMenemonic(ae,me="",Le){try{const At=function F(qe,We,ae=0){let Le=P.c.fromMasterSeed((0,V.kw)(qe,We)).derive(`m/44'/1237'/${ae}'/0/0`).privateKey;if(!Le)throw new Error("could not derive private key");return(0,ee.My)(Le)}(ae,me,0),vt=Uint8Array.from(L.hp.from(At,"hex")),Dt=(0,G.lG)(vt),Zt=G.Qe.npubEncode(Dt),Fn=G.Qe.nsecEncode(vt);return this.setSecretKey(At,Le),this.setNsec(Zt,Le),this.setPublicKey(Dt),this.setNpub(Zt),window.localStorage.setItem(this.localStorageNsecName,Fn),!0}catch(nt){return console.error("Error during login with mnemonic:",nt),!1}}logout(){window.localStorage.removeItem(this.localStorageSecretKeyName),window.localStorage.removeItem(this.localStoragePublicKeyName),window.localStorage.removeItem(this.localStorageNpubName),window.localStorage.removeItem(this.localStorageNsecName)}usingNostrBrowserExtension(){return!this.usingSecretKey()&&!!globalThis.nostr}usingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}generateAndStoreKeys(ae){try{const me=(0,G.Bq)(),Le=L.hp.from(me).toString("hex"),nt=(0,G.lG)(me),At=G.Qe.npubEncode(nt),vt=G.Qe.nsecEncode(me);return this.setSecretKey(Le,ae),this.setNsec(At,ae),this.setPublicKey(nt),this.setNpub(At),{secretKey:Le,pubkey:nt,npub:At,nsec:vt}}catch(me){return console.error("Error during key generation:",me),null}}handleLoginWithExtension(){var ae=this;return(0,u.A)(function*(){const me=globalThis;if(!me.nostr)return!1;try{const Le=yield me.nostr.getPublicKey();if(!Le)throw new Error("Public key not available from Nostr extension.");return ae.setPublicKeyFromExtension(Le),!0}catch(Le){return console.error("Failed to connect to Nostr extension:",Le),!1}})()}encryptMessage(ae,me,Le){return(0,u.A)(function*(){console.log(Le);try{return yield G.sh.encrypt(ae,me,Le)}catch(nt){throw console.error("Error encrypting message:",nt),nt}})()}encryptMessageWithExtension(ae,me){return(0,u.A)(function*(){return yield globalThis.nostr.nip04.encrypt(me,ae)})()}decryptMessageWithExtension(ae,me){return(0,u.A)(function*(){const Le=globalThis;if(Le.nostr&&"function"==typeof Le.nostr.nip04?.decrypt)try{return yield Le.nostr.nip04.decrypt(ae,me)}catch(nt){return console.error("Decryption failed:",nt),"*Failed to decrypt content: "+nt.message+"*"}return console.warn("Nostr extension or decrypt method is unavailable"),"Attempted Nostr Window decryption and failed."})()}decryptMessage(ae,me,Le){return(0,u.A)(function*(){try{if(!ae||!me||!Le)throw new Error("Private key, public key, or encrypted message is missing or undefined.");const nt=yield G.sh.decrypt(ae,me,Le);if(!nt)throw new Error("Decryption returned an empty message.");return nt}catch(nt){throw console.error("Decryption failed:",nt.message),nt}})()}getUnsignedEvent(ae,me,Le){return{kind:ae,pubkey:this.getPublicKey(),tags:me,content:Le,created_at:Math.floor(Date.now()/1e3)}}getSignedEvent(ae,me){const Le=(0,y.aT)(me);return(0,G.pC)(ae,Le)}getMuteList(){return(localStorage.getItem("muteList")||"").split(",")}setMuteListFromTags(ae){let me=[];ae.forEach(Le=>{me.push(Le[1])}),this.setMuteList(me)}setMuteList(ae){if(0===ae.length)localStorage.setItem("muteList","");else{let me=Array.from(new Set(ae));localStorage.setItem("muteList",me.filter(Le=>Le).join(","))}}signEventWithExtension(ae){return(0,u.A)(function*(){const me=globalThis;if(me.nostr)return yield me.nostr.signEvent(ae);throw new Error("Tried to sign event with extension but failed")})()}signDMWithExtension(ae,me){return(0,u.A)(function*(){const Le=globalThis;if(Le.nostr&&Le.nostr.nip04?.encrypt)return yield Le.nostr.nip04.encrypt(ae,me);throw new Error("Failed to Sign with extension")})()}isUsingExtension(){var ae=this;return(0,u.A)(function*(){const me=globalThis;if(me.nostr&&me.nostr.getPublicKey)try{return!localStorage.getItem(ae.localStorageSecretKeyName)}catch(Le){return console.error("Failed to check Nostr extension:",Le),!1}return!1})()}isUsingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}static#e=this.\u0275fac=function(me){return new(me||qe)(te.KVO(Ze),te.KVO(gt.bZ))};static#t=this.\u0275prov=te.jDH({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})()},2083:(tn,Ne,v)=>{"use strict";v.d(Ne,{d:()=>ee});var u=v(467),y=v(8418),o=v(4438),L=v(5645),G=v(7291);let ee=(()=>{class oe{constructor(P,B){this.subscriptionService=P,this.storageService=B,this.isProfileLoaded=!1}loadUserProfile(P){var B=this;return(0,u.A)(function*(){console.log(`Loading user profile for pubkey: ${P}`),B.isProfileLoaded?console.log("Profile already loaded, skipping."):(yield B.subscribeToUserProfile(P),yield B.subscribeToUserContacts(P),yield B.subscribeToUserChats(P),yield B.subscribeToUserPosts(P),B.isProfileLoaded=!0)})()}subscribeToUserProfile(P){var B=this;return(0,u.A)(function*(){console.log(`Subscribing to user profile for pubkey: ${P}`);const F=yield B.storageService.getLastUpdateDate("users"),ue={kinds:[0],authors:[P],limit:1};F&&(ue.since=parseInt(F,10)),B.subscriptionService.addSubscriptions([ue],ge=>{const Ee=B.parseMetadataEvent(ge);B.storageService.saveProfile(P,Ee)})})()}subscribeToUserContacts(P){var B=this;return(0,u.A)(function*(){console.log(`Subscribing to contacts for pubkey: ${P}`);const F=yield B.storageService.getLastUpdateDate("contacts"),ue=[{kinds:[y.In],authors:[P]},{kinds:[y.In],"#p":[P]}];if(F){const ge=parseInt(F,10);ue.forEach(Ee=>Ee.since=ge)}B.subscriptionService.addSubscriptions(ue,ge=>{B.storageService.saveContacts(P,[{id:ge.id,pubkey:ge.pubkey,created_at:ge.created_at,tags:ge.tags,isFollower:ge.pubkey===P}])})})()}subscribeToUserChats(P){var B=this;return(0,u.A)(function*(){console.log(`Subscribing to chats for pubkey: ${P}`);const F=yield B.storageService.getLastUpdateDate("chats"),ue=[{kinds:[y.rV],authors:[P],limit:300},{kinds:[y.rV],"#p":[P],limit:300}];if(F){const ge=parseInt(F,10);ue.forEach(Ee=>Ee.since=ge)}else B.storageService.removeAllChats();B.subscriptionService.addSubscriptions(ue,ge=>{const Ee=B.parseChatEvent(ge);B.storageService.saveChatEvent(Ee)})})()}subscribeToUserPosts(P){var B=this;return(0,u.A)(function*(){console.log(`Subscribing to posts (event type 1) for pubkey: ${P}`);const F=yield B.storageService.getLastUpdateDate("posts"),ue={kinds:[1],authors:[P],limit:100};F&&(ue.since=parseInt(F,10)),B.subscriptionService.addSubscriptions([ue],ge=>{B.storageService.savePostForPubKey(ge)})})()}parseMetadataEvent(P){try{return JSON.parse(P.content)}catch(B){return console.error("Error parsing metadata event:",B),null}}parseChatEvent(P){try{const B=P.content.split("?iv=");return{id:P.id,kind:P.kind,pubkey:P.pubkey,created_at:P.created_at,tags:P.tags,content:B[0],iv:B[1],IsRead:!1}}catch(B){return console.error("Error parsing chat event:",B),null}}static#e=this.\u0275fac=function(B){return new(B||oe)(o.KVO(L.n),o.KVO(G.n))};static#t=this.\u0275prov=o.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})()},7291:(tn,Ne,v)=>{"use strict";v.d(Ne,{n:()=>ee});var u=v(467),y=v(119),o=v.n(y),L=v(4412),G=v(4438);let ee=(()=>{class oe{constructor(){this.profileSubject=new L.t(null),this.projectsSubject=new L.t([]),this.projectStatsSubject=new L.t({}),this.chatEventsSubject=new L.t([]),this.unreadChatCountSubject=new L.t(0),this.contactsSubject=new L.t({pubKey:"",contacts:[]}),this.postsSubject=new L.t(null),this.myLikesSubject=new L.t([]),this.notificationsSubject=new L.t([]),this.contactStatsSubject=new L.t({totalContacts:0,followersCount:0,followingCount:0}),this.contactStatsMap={},this.profileStore=this.createStore("profiles"),this.updateHistoryStore=this.createStore("updateHistory"),this.contactsStore=this.createStore("contacts"),this.chatsStore=this.createStore("chats"),this.postsStore=this.createStore("posts"),this.myLikesStore=this.createStore("myLikes"),this.notificationsStore=this.createStore("notifications"),this.projectsStore=this.createStore("projects"),this.projectStatsStore=this.createStore("projectStats"),this.loadAllProjectsFromDB(),this.loadAllProjectStatsFromDB(),this.loadAllContactsFromDB(),this.loadAllChatEventsFromDB(),this.loadAllPostsFromDB(),this.loadAllMyLikesFromDB(),this.loadAllNotificationsFromDB(),this.loadContactStatsFromDB(),this.calculateAndStoreAllContactStats()}createStore(P){return o().createInstance({driver:o().INDEXEDDB,name:"angor-hub",version:1,storeName:P})}get profile$(){return this.profileSubject.asObservable()}get projects$(){return this.projectsSubject.asObservable()}get projectStats$(){return this.projectStatsSubject.asObservable()}get chatEvents$(){return this.chatEventsSubject.asObservable()}get unreadChatCount$(){return this.unreadChatCountSubject.asObservable()}get contacts$(){return this.contactsSubject.asObservable()}get posts$(){return this.postsSubject.asObservable()}get contactStats$(){return this.contactStatsSubject.asObservable()}get myLikes$(){return this.myLikesSubject.asObservable()}get notifications$(){return this.notificationsSubject.asObservable()}saveContacts(P,B){var F=this;return(0,u.A)(function*(){try{const ue=[];for(const ge of B){const Ee=`${P}:${ge.id}`;yield F.contactsStore.setItem(Ee,ge),ue.push(ge)}F.contactsSubject.next({pubKey:P,contacts:ue}),yield F.calculateAndStoreAllContactStats(),yield F.setUpdateHistory("contacts")}catch(ue){console.error("Error saving contacts:",ue)}})()}calculateAndStoreAllContactStats(){var P=this;return(0,u.A)(function*(){try{const B={};yield P.contactsStore.iterate((F,ue)=>{const[ge]=ue.split(":");B[ge]||(B[ge]={totalContacts:0,followersCount:0,followingCount:0}),B[ge].totalContacts++,F.isFollower?B[ge].followersCount++:B[ge].followingCount++});for(const F in B)P.contactStatsMap[F]||(P.contactStatsMap[F]=new L.t({pubKey:F,totalContacts:0,followersCount:0,followingCount:0})),P.contactStatsMap[F].next({pubKey:F,totalContacts:B[F].totalContacts,followersCount:B[F].followersCount,followingCount:B[F].followingCount})}catch(B){console.error("Error calculating and storing contact stats:",B)}})()}getContactStats$(P){return this.contactStatsMap[P]||(this.contactStatsMap[P]=new L.t({pubKey:P,totalContacts:0,followersCount:0,followingCount:0}),this.calculateAndStoreAllContactStats()),this.contactStatsMap[P].asObservable()}getAllContactsPaginated(P,B,F){var ue=this;return(0,u.A)(function*(){try{const ge=[];yield ue.contactsStore.iterate((te,be)=>{const[Ze]=be.split(":");Ze===P&&ge.push(te)});const Ee=ge.length,Re=(B-1)*F;return{contacts:ge.slice(Re,Re+F),totalCount:Ee}}catch(ge){return console.error("Error retrieving paginated contacts for pubKey:",ge),{contacts:[],totalCount:0}}})()}getAllContacts(P=""){var B=this;return(0,u.A)(function*(){try{const F=[];return yield B.contactsStore.iterate((ue,ge)=>{const[Ee,Re]=ge.split(":");(""===P||Ee===P)&&F.push({pubKey:Ee,contact:ue})}),F}catch(F){return console.error("Error retrieving contacts:",F),[]}})()}getContactStats(P){var B=this;return(0,u.A)(function*(){try{let F=0,ue=0,ge=0;return yield B.contactsStore.iterate((Ee,Re)=>{const[ke,te]=Re.split(":");ke===P&&(F++,Ee.isFollower?ue++:ge++)}),{totalContacts:F,followersCount:ue,followingCount:ge}}catch(F){return console.error("Error retrieving contact stats for pubKey:",F),{totalContacts:0,followersCount:0,followingCount:0}}})()}removeAllContacts(P){var B=this;return(0,u.A)(function*(){try{const F=[];yield B.contactsStore.iterate((ue,ge)=>{const[Ee]=ge.split(":");Ee===P&&F.push(ge)});for(const ue of F)yield B.contactsStore.removeItem(ue);yield B.contactsStore.clear(),B.contactStatsSubject.next({totalContacts:0,followersCount:0,followingCount:0}),B.contactsSubject.next({pubKey:P,contacts:[]}),yield B.setUpdateHistory("contacts")}catch(F){console.error("Error removing all contacts for pubKey:",F)}})()}saveProfile(P,B){var F=this;return(0,u.A)(function*(){try{if(!P||!B)return void console.error("Invalid pubKey or metadata:",P,B);B.pubKey=P,yield F.profileStore.setItem(P,B),F.profileSubject.next({pubKey:P,metadata:B}),yield F.setUpdateHistory("profiles")}catch(ue){console.error("Error saving profile",ue)}})()}getProfile(P){var B=this;return(0,u.A)(function*(){try{return(yield B.profileStore.getItem(P))||null}catch(F){return console.error("Error retrieving profile metadata:",F),null}})()}getAllProfiles(){var P=this;return(0,u.A)(function*(){try{const B=[];return yield P.profileStore.iterate(F=>{B.push(F)}),B}catch(B){return console.error("Error retrieving all Profile:",B),[]}})()}searchProfile(P){var B=this;return(0,u.A)(function*(){try{const F=[],ue=P.toLowerCase();return yield B.profileStore.iterate((ge,Ee)=>{JSON.stringify(ge).toLowerCase().includes(ue)&&F.push({pubKey:Ee,profile:ge})}),F}catch(F){return console.error("Error searching profiles by metadata:",F),[]}})()}getLastUpdateDate(P){var B=this;return(0,u.A)(function*(){try{return(yield B.updateHistoryStore.getItem(P))||null}catch(F){return console.error("Error retrieving last update date:",F),null}})()}saveProject(P){var B=this;return(0,u.A)(function*(){try{yield B.projectsStore.setItem(P.projectIdentifier,P);const F=yield B.getAllProjects();B.projectsSubject.next(F),yield B.setUpdateHistory("projects")}catch(F){console.error("Error saving project:",F)}})()}getAllProjects(){var P=this;return(0,u.A)(function*(){try{const B=[];return yield P.projectsStore.iterate(F=>{B.push(F)}),B}catch(B){return console.error("Error retrieving all projects:",B),[]}})()}getProjectStats(P){var B=this;return(0,u.A)(function*(){try{return(yield B.projectStatsStore.getItem(P))||null}catch(F){return console.error("Error retrieving project stats:",F),null}})()}saveProjectStats(P,B){var F=this;return(0,u.A)(function*(){try{yield F.projectStatsStore.setItem(P,B);const ue=yield F.getAllProjectStats();F.projectStatsSubject.next(ue),yield F.setUpdateHistory("projectStats")}catch(ue){console.error("Error saving project stats:",ue)}})()}getAllProjectStats(){var P=this;return(0,u.A)(function*(){try{const B={};return yield P.projectStatsStore.iterate((F,ue)=>{B[ue]=F}),B}catch(B){return console.error("Error retrieving all project stats:",B),{}}})()}savePostForPubKey(P){var B=this;return(0,u.A)(function*(){try{yield B.postsStore.setItem(P.id,P),yield B.setUpdateHistory("posts"),B.postsSubject.next(P)}catch(F){console.error("Error saving event type 1 and sending it to clients:",F)}})()}getPostsByPubKey(P){var B=this;return(0,u.A)(function*(){try{const F=[];return yield B.postsStore.iterate(ue=>{ue.pubkey===P&&1===ue.kind&&F.push(ue)}),F}catch(F){return console.error("Error retrieving events for pubKey:",F),[]}})()}getAllPostsForAllPubKeys(){var P=this;return(0,u.A)(function*(){try{const B=[];return yield P.postsStore.iterate(F=>{B.push(F)}),B}catch(B){return console.error("Error retrieving all events:",B),[]}})()}saveLike(P){var B=this;return(0,u.A)(function*(){try{yield B.myLikesStore.setItem(P.id,P);const F=yield B.getAllMyLikes();B.myLikesSubject.next(F),yield B.setUpdateHistory("myLikes")}catch(F){console.error("Error saving like:",F)}})()}getAllMyLikes(){var P=this;return(0,u.A)(function*(){try{const B=[];return yield P.myLikesStore.iterate(F=>{B.push(F)}),B}catch(B){return console.error("Error retrieving all likes:",B),[]}})()}saveNotification(P){var B=this;return(0,u.A)(function*(){try{yield B.notificationsStore.setItem(P.id,P);const F=yield B.getAllNotifications();B.notificationsSubject.next(F),yield B.setUpdateHistory("notifications")}catch(F){console.error("Error saving notification:",F)}})()}getAllNotifications(){var P=this;return(0,u.A)(function*(){try{const B=[];return yield P.notificationsStore.iterate(F=>{B.push(F)}),B}catch(B){return console.error("Error retrieving all notifications:",B),[]}})()}saveChatEvent(P){var B=this;return(0,u.A)(function*(){try{yield B.chatsStore.setItem(P.id,P),yield B.setUpdateHistory("chats");const F=yield B.getAllChatEvents();B.chatEventsSubject.next(F),B.updateUnreadChatCount(F)}catch(F){console.error("Error saving chat event:",F)}})()}getAllChatEvents(){var P=this;return(0,u.A)(function*(){try{const B=[];return yield P.chatsStore.iterate(F=>{B.push(F)}),B}catch(B){return console.error("Error retrieving all chat events:",B),[]}})()}getChatEventsByPubKey(P){var B=this;return(0,u.A)(function*(){try{const F=[];return yield B.chatsStore.iterate(ue=>{const ge=B.getReceiverPubKeyFromTags(ue.tags);(ue.pubkey===P||ge===P)&&F.push(ue)}),F}catch(F){return console.error("Error retrieving chat events by pubkey:",F),[]}})()}updateChatEventReadStatus(P,B){var F=this;return(0,u.A)(function*(){try{const ue=yield F.chatsStore.getItem(P);if(ue){ue.IsRead=B,yield F.chatsStore.setItem(P,ue);const ge=yield F.getAllChatEvents();F.chatEventsSubject.next(ge),F.updateUnreadChatCount(ge)}}catch(ue){console.error("Error updating chat event read status:",ue)}})()}markAllChatEventsAsRead(P){var B=this;return(0,u.A)(function*(){try{yield B.chatsStore.iterate(function(){var ue=(0,u.A)(function*(ge,Ee){const Re=B.getReceiverPubKeyFromTags(ge.tags);(ge.pubkey===P||Re===P)&&!ge.IsRead&&(ge.IsRead=!0,yield B.chatsStore.setItem(Ee,ge))});return function(ge,Ee){return ue.apply(this,arguments)}}());const F=yield B.getAllChatEvents();B.chatEventsSubject.next(F),B.updateUnreadChatCount(F)}catch(F){console.error("Error marking all chat events as read:",F)}})()}getReceiverPubKeyFromTags(P){for(const B of P)if("p"===B[0]&&B[1])return B[1];return null}updateUnreadChatCount(P){const B=P.filter(F=>!F.IsRead).length;this.unreadChatCountSubject.next(B)}removeAllChats(){var P=this;return(0,u.A)(function*(){try{yield P.chatsStore.clear(),P.chatEventsSubject.next([]),P.unreadChatCountSubject.next(0),console.log("All chat events have been removed successfully.")}catch(B){console.error("Error removing all chat events:",B)}})()}setUpdateHistory(P){var B=this;return(0,u.A)(function*(){try{const F=Math.floor(Date.now()/1e3);yield B.updateHistoryStore.setItem(P,F)}catch(F){console.error("Error updating history:",F)}})()}loadAllProjectsFromDB(){var P=this;return(0,u.A)(function*(){try{const B=yield P.getAllProjects();P.projectsSubject.next(B)}catch(B){console.error("Error loading projects from DB:",B)}})()}loadAllProjectStatsFromDB(){var P=this;return(0,u.A)(function*(){try{const B=yield P.getAllProjectStats();P.projectStatsSubject.next(B)}catch(B){console.error("Error loading project stats from DB:",B)}})()}loadAllContactsFromDB(P=""){var B=this;return(0,u.A)(function*(){try{const F=yield B.getAllContacts(P);if(F.length>0){const ue={};for(const ge of F)ue[ge.pubKey]||(ue[ge.pubKey]=[]),ue[ge.pubKey].push(ge.contact);for(const ge in ue)B.contactsSubject.next({pubKey:ge,contacts:ue[ge]})}}catch(F){console.error("Error loading contacts from DB:",F)}})()}loadAllChatEventsFromDB(){var P=this;return(0,u.A)(function*(){try{const B=yield P.getAllChatEvents();P.chatEventsSubject.next(B)}catch(B){console.error("Error loading chat events from DB:",B)}})()}loadAllPostsFromDB(){var P=this;return(0,u.A)(function*(){try{const B=yield P.getAllPostsForAllPubKeys();P.postsSubject.next(B)}catch(B){console.error("Error loading posts from DB:",B)}})()}loadAllMyLikesFromDB(){var P=this;return(0,u.A)(function*(){try{const B=yield P.getAllMyLikes();P.myLikesSubject.next(B)}catch(B){console.error("Error loading likes from DB:",B)}})()}loadAllNotificationsFromDB(){var P=this;return(0,u.A)(function*(){try{const B=yield P.getAllNotifications();P.notificationsSubject.next(B)}catch(B){console.error("Error loading notifications from DB:",B)}})()}loadContactStatsFromDB(){var P=this;return(0,u.A)(function*(){try{let B=0,F=0,ue=0;yield P.contactsStore.iterate((ge,Ee)=>{const[Re]=Ee.split(":");B++,ge.isFollower?F++:ue++}),P.contactStatsSubject.next({totalContacts:B,followersCount:F,followingCount:ue})}catch(B){console.error("Error loading contact stats from DB:",B)}})()}static#e=this.\u0275fac=function(B){return new(B||oe)};static#t=this.\u0275prov=G.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})()},5645:(tn,Ne,v)=>{"use strict";v.d(Ne,{n:()=>ke});var y,u=v(4412),o=new Uint8Array(16);function L(){if(!y&&!(y=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y(o)}const G=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var V=[],P=0;P<256;++P)V.push((P+256).toString(16).substr(1));const F=function B(te){var be=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Ze=(V[te[be+0]]+V[te[be+1]]+V[te[be+2]]+V[te[be+3]]+"-"+V[te[be+4]]+V[te[be+5]]+"-"+V[te[be+6]]+V[te[be+7]]+"-"+V[te[be+8]]+V[te[be+9]]+"-"+V[te[be+10]]+V[te[be+11]]+V[te[be+12]]+V[te[be+13]]+V[te[be+14]]+V[te[be+15]]).toLowerCase();if(!function ee(te){return"string"==typeof te&&G.test(te)}(Ze))throw TypeError("Stringified UUID is invalid");return Ze},ge=function ue(te,be,Ze){var gt=(te=te||{}).random||(te.rng||L)();if(gt[6]=15>[6]|64,gt[8]=63>[8]|128,be){Ze=Ze||0;for(var je=0;je<16;++je)be[Ze+je]=gt[je];return be}return F(gt)};var Ee=v(4438),Re=v(6231);let ke=(()=>{class te{constructor(Ze){this.relayService=Ze,this.subscriptions=new Map,this.activeRelays=[],this.pendingSubscriptions=new Map,this.subscriptionsSubject=new u.t(new Map),this.subscriptions$=this.subscriptionsSubject.asObservable(),this.subscriptionQueue=[],this.isProcessingQueue=!1,this.queueInterval=3e3,this.maxSubscriptionsPerBatch=5,this.debounceInterval=5e3,this.lastActionTimestamp=new Map,this.connectToAllRelays(),this.processSubscriptionQueue()}addSubscriptions(Ze,gt){const je=this.findExistingSubscription(Ze);if(je)return console.log("Existing subscription found:",je),je.callbacks.push(gt),je.id;const qe=ge(),We=Date.now();this.lastActionTimestamp.set(qe,We);const ae={filter:Ze,callbacks:[gt],id:qe};return this.subscriptions.set(ae.id,ae),this.subscriptionsSubject.next(this.subscriptions),this.addToQueue(ae),ae.id}findExistingSubscription(Ze){for(let gt of this.subscriptions.values())if(JSON.stringify(gt.filter)===JSON.stringify(Ze))return gt}removeSubscriptionById(Ze){const gt=Date.now(),je=this.lastActionTimestamp.get(Ze);je&>-je{this.subscriptionQueue.length>0&&this.subscriptionQueue.splice(0,this.maxSubscriptionsPerBatch).forEach(gt=>{this.subscribeToRelays(gt.filter,gt)})},this.queueInterval))}subscribeToRelays(Ze,gt){0!==this.activeRelays.length?this.relayService.ensureConnectedRelays().then(()=>{const je=this.relayService.getConnectedRelays();this.relayService.getPool().subscribeMany(je,Ze,{onevent:qe=>{gt.callbacks.forEach(We=>We(qe))},onclose:()=>{console.log("Subscription closed")}})}).catch(je=>{console.error("Error subscribing to relays:",je)}):this.pendingSubscriptions.set(gt.id,gt)}subscribeToAllRelays(){this.pendingSubscriptions.forEach(Ze=>{this.subscribeToRelays(Ze.filter,Ze)}),this.pendingSubscriptions.clear()}connectToAllRelays(){this.relayService.ensureConnectedRelays().then(()=>{this.activeRelays=this.relayService.getConnectedRelays(),this.subscribeToAllRelays()}).catch(Ze=>{console.error("Error connecting to relays:",Ze)})}clearAllSubscriptions(){this.subscriptions.clear(),this.pendingSubscriptions.clear(),this.subscriptionsSubject.next(new Map)}getSubscriptions(){return Array.from(this.subscriptions.values())}static#e=this.\u0275fac=function(gt){return new(gt||te)(Ee.KVO(Re.b))};static#t=this.\u0275prov=Ee.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})()},7292:(tn,Ne,v)=>{"use strict";v.d(Ne,{b:()=>ge});var u=v(177),y=v(9417),o=v(8834),L=v(6600),G=v(5351),ee=v(2102),oe=v(9213),V=v(9042),P=v(2798),B=v(882),F=v(4438);function ue(Ee,Re){1&Ee&&(F.j41(0,"mat-error"),F.EFF(1," Password is required "),F.k0s())}let ge=(()=>{class Ee{constructor(ke,te,be){this.fb=ke,this.dialogRef=te,this.data=be,this.passwordForm=this.fb.group({password:["",y.k0.required],duration:["0",y.k0.required]})}onCancel(){this.dialogRef.close()}onSubmit(){this.dialogRef.close(this.passwordForm.value)}static#e=this.\u0275fac=function(te){return new(te||Ee)(F.rXU(y.ok),F.rXU(G.CP),F.rXU(G.Vh))};static#t=this.\u0275cmp=F.VBU({type:Ee,selectors:[["password-dialog"]],standalone:!0,features:[F.aNF],decls:30,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"formGroup"],[1,"w-full",3,"subscriptSizing"],["matPrefix",""],["matInput","","type","password",3,"formControlName"],[4,"ngIf"],[1,"mt-5","w-full"],["formControlName","duration"],["value","0"],["value","1"],["value","5"],["value","10"],["value","60"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(te,be){1&te&&(F.j41(0,"h1",0),F.EFF(1,"Enter Password"),F.k0s(),F.j41(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),F.EFF(6,"Password"),F.k0s(),F.j41(7,"mat-icon",4),F.EFF(8,"lock"),F.k0s(),F.nrm(9,"input",5),F.DNE(10,ue,2,0,"mat-error",6),F.k0s(),F.j41(11,"mat-form-field",7)(12,"mat-label"),F.EFF(13,"Duration"),F.k0s(),F.j41(14,"mat-select",8)(15,"mat-option",9),F.EFF(16,"0 Minute"),F.k0s(),F.j41(17,"mat-option",10),F.EFF(18,"1 Minute"),F.k0s(),F.j41(19,"mat-option",11),F.EFF(20,"5 Minutes"),F.k0s(),F.j41(21,"mat-option",12),F.EFF(22,"10 Minutes"),F.k0s(),F.j41(23,"mat-option",13),F.EFF(24,"1 Hour"),F.k0s()()()()(),F.j41(25,"div",14)(26,"button",15),F.bIt("click",function(){return be.onCancel()}),F.EFF(27,"Cancel"),F.k0s(),F.j41(28,"button",16),F.bIt("click",function(){return be.onSubmit()}),F.EFF(29," Submit "),F.k0s()()),2&te&&(F.R7$(3),F.Y8G("formGroup",be.passwordForm),F.R7$(),F.Y8G("subscriptSizing","dynamic"),F.R7$(5),F.Y8G("formControlName","password"),F.R7$(),F.Y8G("ngIf",be.passwordForm.get("password").hasError("required")),F.R7$(18),F.Y8G("disabled",be.passwordForm.invalid))},dependencies:[B.vg,o.Hl,o.$z,oe.m_,oe.An,y.YN,y.qT,y.me,y.BC,y.cb,L.wT,ee.nJ,ee.rl,y.X1,y.j4,y.JD,u.MD,u.bT,P.Ve,ee.TL,ee.JW,P.VO,ee.RG,V.fS,V.fg],styles:[".full-width[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}return Ee})()},368:(tn,Ne,v)=>{"use strict";var u=v(345),y=v(9192),o=v(4438);let L=(()=>{class a{constructor(){}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["app-root"]],standalone:!0,features:[o.aNF],decls:1,vars:0,template:function(c,h){1&c&&o.nrm(0,"router-outlet")},dependencies:[y.n3],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto;width:100%;height:100%}"]})}return a})();var G=v(467);const ee=new o.nKC("ANGOR_MOCK_API_DEFAULT_DELAY");var oe=v(8810),V=v(1985),P=v(6697),B=v(7673);class F{constructor(s,i){this.url=s,this.delay=i,this._replyCount=0,this._replied=0}get response(){if(this._replyCount>0&&this._replyCount<=this._replied)return(0,oe.$)(()=>new Error("Execution limit has been reached!"));if(!this._reply)return(0,oe.$)(()=>new Error("Response callback function does not exist!"));if(!this.request)return(0,oe.$)(()=>new Error("Request does not exist!"));this._replied++;const s=this._reply({request:this.request,urlParams:this.urlParams});return s instanceof V.c?s.pipe((0,P.s)(1)):(0,B.of)(s).pipe((0,P.s)(1))}reply(s){this._reply=s}replyCount(s){this._replyCount=s}}var ue=v(7680);let ge=(()=>{class a{constructor(){this._handlers={get:new Map,post:new Map,patch:new Map,delete:new Map,put:new Map,head:new Map,jsonp:new Map,options:new Map}}findHandler(i,c){const h={handler:void 0,urlParams:{}},C=c.split("/"),I=this._handlers[i.toLowerCase()];for(const[H,re]of I){const Fe=H.split("/");if(C.length===Fe.length&&Fe.every((Gt,Hn)=>Gt.startsWith(":")||Gt===C[Hn])){h.handler=re,h.urlParams=(0,ue.A)(Fe.map((Gt,Hn)=>Gt.startsWith(":")?[Gt.substring(1),C[Hn]]:void 0).filter(Boolean));break}}return h}onGet(i,c){return this._registerHandler("get",i,c)}onPost(i,c){return this._registerHandler("post",i,c)}onPatch(i,c){return this._registerHandler("patch",i,c)}onDelete(i,c){return this._registerHandler("delete",i,c)}onPut(i,c){return this._registerHandler("put",i,c)}onHead(i,c){return this._registerHandler("head",i,c)}onJsonp(i,c){return this._registerHandler("jsonp",i,c)}onOptions(i,c){return this._registerHandler("options",i,c)}_registerHandler(i,c,h){const C=new F(c,h);return this._handlers[i].set(c,C),C}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var Ee=v(1626),Re=v(1986),ke=v(5558);const te=(a,s)=>{const i=(0,o.WQX)(ee),c=(0,o.WQX)(ge),{handler:h,urlParams:C}=c.findHandler(a.method.toUpperCase(),a.url);return h?(h.request=a,h.urlParams=C,h.response.pipe((0,Re.c)(h.delay??i??0),(0,ke.n)(I=>{if(!I)return(0,oe.$)(()=>new Ee.yz({error:"NOT FOUND",status:404,statusText:"NOT FOUND"}));const H={status:I[0],body:I[1]};return H.status>=200&&H.status<300?(0,B.of)(new Ee.cS({body:H.body,status:H.status,statusText:"OK"})):(0,oe.$)(()=>new Ee.yz({error:H.body?.error,status:H.status,statusText:"ERROR"}))}))):s(a)};var be=v(9097),Ze=v(9979),gt=v(4412);let je=(()=>{class a{constructor(){this._auto$=new gt.t(!0),this._mode$=new gt.t("indeterminate"),this._progress$=new gt.t(0),this._show$=new gt.t(!1),this._urlMap=new Map}get auto$(){return this._auto$.asObservable()}get mode$(){return this._mode$.asObservable()}get progress$(){return this._progress$.asObservable()}get show$(){return this._show$.asObservable()}show(){this._show$.next(!0)}hide(){this._show$.next(!1)}setAutoMode(i){this._auto$.next(i)}setMode(i){this._mode$.next(i)}setProgress(i){i<0||i>100?console.error("Progress value must be between 0 and 100!"):this._progress$.next(i)}_setLoadingStatus(i,c){c?(!0===i?(this._urlMap.set(c,i),this._show$.next(!0)):!1===i&&this._urlMap.has(c)&&this._urlMap.delete(c),0===this._urlMap.size&&this._show$.next(!1)):console.error("The request URL must be provided!")}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var qe=v(980);const We=(a,s)=>{const i=(0,o.WQX)(je);let c=!1;return i.auto$.pipe((0,P.s)(1)).subscribe(h=>{c=h}),c?(i._setLoadingStatus(!0,a.url),s(a).pipe((0,qe.j)(()=>{i._setLoadingStatus(!1,a.url)}))):s(a)};var ae=v(4977),me=v(6860);let Le=(()=>{class a{constructor(){this._platform=(0,o.WQX)(me.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#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var nt=v(177),At=v(5964);let vt=(()=>{class a{constructor(){this._document=(0,o.WQX)(nt.qQ),this._router=(0,o.WQX)(y.Ix),this._router.events.pipe((0,At.p)(i=>i instanceof y.wF),(0,P.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#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var Dt=v(7209),Zt=v(6600),Fn=v(5351),Vn=v(2102);class pi extends Error{}class _e extends pi{constructor(s){super(`Invalid DateTime: ${s.toMessage()}`)}}class Ae extends pi{constructor(s){super(`Invalid Interval: ${s.toMessage()}`)}}class J extends pi{constructor(s){super(`Invalid Duration: ${s.toMessage()}`)}}class Ie extends pi{}class Ot extends pi{constructor(s){super(`Invalid unit ${s}`)}}class Pe extends pi{}class ht extends pi{constructor(){super("Zone is an abstract class")}}const Xe="numeric",Je="short",Me="long",ie={year:Xe,month:Xe,day:Xe},ve={year:Xe,month:Je,day:Xe},le={year:Xe,month:Je,day:Xe,weekday:Je},Ce={year:Xe,month:Me,day:Xe},dt={year:Xe,month:Me,day:Xe,weekday:Me},un={hour:Xe,minute:Xe},it={hour:Xe,minute:Xe,second:Xe},It={hour:Xe,minute:Xe,second:Xe,timeZoneName:Je},Ft={hour:Xe,minute:Xe,second:Xe,timeZoneName:Me},Rt={hour:Xe,minute:Xe,hourCycle:"h23"},kn={hour:Xe,minute:Xe,second:Xe,hourCycle:"h23"},hi={hour:Xe,minute:Xe,second:Xe,hourCycle:"h23",timeZoneName:Je},qt={hour:Xe,minute:Xe,second:Xe,hourCycle:"h23",timeZoneName:Me},we={year:Xe,month:Xe,day:Xe,hour:Xe,minute:Xe},tt={year:Xe,month:Xe,day:Xe,hour:Xe,minute:Xe,second:Xe},rt={year:Xe,month:Je,day:Xe,hour:Xe,minute:Xe},bt={year:Xe,month:Je,day:Xe,hour:Xe,minute:Xe,second:Xe},on={year:Xe,month:Je,day:Xe,weekday:Je,hour:Xe,minute:Xe},Q={year:Xe,month:Me,day:Xe,hour:Xe,minute:Xe,timeZoneName:Je},T={year:Xe,month:Me,day:Xe,hour:Xe,minute:Xe,second:Xe,timeZoneName:Je},N={year:Xe,month:Me,day:Xe,weekday:Me,hour:Xe,minute:Xe,timeZoneName:Me},$={year:Xe,month:Me,day:Xe,weekday:Me,hour:Xe,minute:Xe,second:Xe,timeZoneName:Me};class ce{get type(){throw new ht}get name(){throw new ht}get ianaName(){return this.name}get isUniversal(){throw new ht}offsetName(s,i){throw new ht}formatOffset(s,i){throw new ht}offset(s){throw new ht}equals(s){throw new ht}get isValid(){throw new ht}}let he=null;class et extends ce{static get instance(){return null===he&&(he=new et),he}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(s,{format:i,locale:c}){return Bo(s,i,c)}formatOffset(s,i){return Hs(this.offset(s),i)}offset(s){return-new Date(s).getTimezoneOffset()}equals(s){return"system"===s.type}get isValid(){return!0}}let $t={};const Vt={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Ei={};class Jt extends ce{static create(s){return Ei[s]||(Ei[s]=new Jt(s)),Ei[s]}static resetCache(){Ei={},$t={}}static isValidSpecifier(s){return this.isValidZone(s)}static isValidZone(s){if(!s)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:s}).format(),!0}catch{return!1}}constructor(s){super(),this.zoneName=s,this.valid=Jt.isValidZone(s)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(s,{format:i,locale:c}){return Bo(s,i,c,this.name)}formatOffset(s,i){return Hs(this.offset(s),i)}offset(s){const i=new Date(s);if(isNaN(i))return NaN;const c=function Bt(a){return $t[a]||($t[a]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:a,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),$t[a]}(this.name);let[h,C,I,H,re,Fe,Pt]=c.formatToParts?function Ln(a,s){const i=a.formatToParts(s),c=[];for(let h=0;h=0?Cn:1e3+Cn,(Vs({year:h,month:C,day:I,hour:24===re?0:re,minute:Fe,second:Pt,millisecond:0})-bn)/6e4}equals(s){return"iana"===s.type&&s.name===this.name}get isValid(){return this.valid}}let En={},Be={};function ye(a,s={}){const i=JSON.stringify([a,s]);let c=Be[i];return c||(c=new Intl.DateTimeFormat(a,s),Be[i]=c),c}let Ke={},Pn={},Ti=null,Et={};function ct(a,s,i,c){const h=a.listingMode();return"error"===h?null:"en"===h?i(s):c(s)}class rn{constructor(s,i,c){this.padTo=c.padTo||0,this.floor=c.floor||!1;const{padTo:h,floor:C,...I}=c;if(!i||Object.keys(I).length>0){const H={useGrouping:!1,...c};c.padTo>0&&(H.minimumIntegerDigits=c.padTo),this.inf=function zt(a,s={}){const i=JSON.stringify([a,s]);let c=Ke[i];return c||(c=new Intl.NumberFormat(a,s),Ke[i]=c),c}(s,H)}}format(s){if(this.inf){const i=this.floor?Math.floor(s):s;return this.inf.format(i)}return hr(this.floor?Math.floor(s):rs(s,3),this.padTo)}}class ai{constructor(s,i,c){let h;if(this.opts=c,this.originalZone=void 0,this.opts.timeZone)this.dt=s;else if("fixed"===s.zone.type){const I=s.offset/60*-1,H=I>=0?`Etc/GMT+${I}`:`Etc/GMT${I}`;0!==s.offset&&Jt.create(H).valid?(h=H,this.dt=s):(h="UTC",this.dt=0===s.offset?s:s.setZone("UTC").plus({minutes:s.offset}),this.originalZone=s.zone)}else"system"===s.zone.type?this.dt=s:"iana"===s.zone.type?(this.dt=s,h=s.zone.name):(h="UTC",this.dt=s.setZone("UTC").plus({minutes:s.offset}),this.originalZone=s.zone);const C={...this.opts};C.timeZone=C.timeZone||h,this.dtf=ye(i,C)}format(){return this.originalZone?this.formatToParts().map(({value:s})=>s).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const s=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?s.map(i=>{if("timeZoneName"===i.type){const c=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:c}}return i}):s}resolvedOptions(){return this.dtf.resolvedOptions()}}class yr{constructor(s,i,c){this.opts={style:"long",...c},!i&&ns()&&(this.rtf=function vi(a,s={}){const{base:i,...c}=s,h=JSON.stringify([a,c]);let C=Pn[h];return C||(C=new Intl.RelativeTimeFormat(a,s),Pn[h]=C),C}(s,c))}format(s,i){return this.rtf?this.rtf.format(s,i):function Cs(a,s,i="always",c=!1){const h={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},C=-1===["hours","minutes","seconds"].indexOf(a);if("auto"===i&&C){const Gt="days"===a;switch(s){case 1:return Gt?"tomorrow":`next ${h[a][0]}`;case-1:return Gt?"yesterday":`last ${h[a][0]}`;case 0:return Gt?"today":`this ${h[a][0]}`}}const I=Object.is(s,-0)||s<0,H=Math.abs(s),re=1===H,Fe=h[a],Pt=c?re?Fe[1]:Fe[2]||Fe[1]:re?h[a][0]:a;return I?`${H} ${Pt} ago`:`in ${H} ${Pt}`}(i,s,this.opts.numeric,"long"!==this.opts.style)}formatToParts(s,i){return this.rtf?this.rtf.formatToParts(s,i):[]}}const xr={firstDay:1,minimalDays:4,weekend:[6,7]};class Ri{static fromOpts(s){return Ri.create(s.locale,s.numberingSystem,s.outputCalendar,s.weekSettings,s.defaultToEN)}static create(s,i,c,h,C=!1){const I=s||se.defaultLocale,H=I||(C?"en-US":function nn(){return Ti||(Ti=(new Intl.DateTimeFormat).resolvedOptions().locale,Ti)}()),re=i||se.defaultNumberingSystem,Fe=c||se.defaultOutputCalendar,Pt=Lo(h)||se.defaultWeekSettings;return new Ri(H,re,Fe,Pt,I)}static resetCache(){Ti=null,Be={},Ke={},Pn={}}static fromObject({locale:s,numberingSystem:i,outputCalendar:c,weekSettings:h}={}){return Ri.create(s,i,c,h)}constructor(s,i,c,h,C){const[I,H,re]=function Lt(a){const s=a.indexOf("-x-");-1!==s&&(a=a.substring(0,s));const i=a.indexOf("-u-");if(-1===i)return[a];{let c,h;try{c=ye(a).resolvedOptions(),h=a}catch{const re=a.substring(0,i);c=ye(re).resolvedOptions(),h=re}const{numberingSystem:C,calendar:I}=c;return[h,C,I]}}(s);this.locale=I,this.numberingSystem=i||H||null,this.outputCalendar=c||re||null,this.weekSettings=h,this.intl=function st(a,s,i){return(i||s)&&(a.includes("-u-")||(a+="-u"),i&&(a+=`-ca-${i}`),s&&(a+=`-nu-${s}`)),a}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=C,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function Wt(a){return(!a.numberingSystem||"latn"===a.numberingSystem)&&("latn"===a.numberingSystem||!a.locale||a.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(a.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(s){return s&&0!==Object.getOwnPropertyNames(s).length?Ri.create(s.locale||this.specifiedLocale,s.numberingSystem||this.numberingSystem,s.outputCalendar||this.outputCalendar,Lo(s.weekSettings)||this.weekSettings,s.defaultToEN||!1):this}redefaultToEN(s={}){return this.clone({...s,defaultToEN:!0})}redefaultToSystem(s={}){return this.clone({...s,defaultToEN:!1})}months(s,i=!1){return ct(this,s,oa,()=>{const c=i?{month:s,day:"numeric"}:{month:s},h=i?"format":"standalone";return this.monthsCache[h][s]||(this.monthsCache[h][s]=function Qe(a){const s=[];for(let i=1;i<=12;i++){const c=yi.utc(2009,i,1);s.push(a(c))}return s}(C=>this.extract(C,c,"month"))),this.monthsCache[h][s]})}weekdays(s,i=!1){return ct(this,s,$s,()=>{const c=i?{weekday:s,year:"numeric",month:"long",day:"numeric"}:{weekday:s},h=i?"format":"standalone";return this.weekdaysCache[h][s]||(this.weekdaysCache[h][s]=function Oe(a){const s=[];for(let i=1;i<=7;i++){const c=yi.utc(2016,11,13+i);s.push(a(c))}return s}(C=>this.extract(C,c,"weekday"))),this.weekdaysCache[h][s]})}meridiems(){return ct(this,void 0,()=>Mi,()=>{if(!this.meridiemCache){const s={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[yi.utc(2016,11,13,9),yi.utc(2016,11,13,19)].map(i=>this.extract(i,s,"dayperiod"))}return this.meridiemCache})}eras(s){return ct(this,s,ul,()=>{const i={era:s};return this.eraCache[s]||(this.eraCache[s]=[yi.utc(-40,1,1),yi.utc(2017,1,1)].map(c=>this.extract(c,i,"era"))),this.eraCache[s]})}extract(s,i,c){const I=this.dtFormatter(s,i).formatToParts().find(H=>H.type.toLowerCase()===c);return I?I.value:null}numberFormatter(s={}){return new rn(this.intl,s.forceSimple||this.fastNumbers,s)}dtFormatter(s,i={}){return new ai(s,this.intl,i)}relFormatter(s={}){return new yr(this.intl,this.isEnglish(),s)}listFormatter(s={}){return function He(a,s={}){const i=JSON.stringify([a,s]);let c=En[i];return c||(c=new Intl.ListFormat(a,s),En[i]=c),c}(this.intl,s)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:oo()?function at(a){let s=Et[a];if(!s){const i=new Intl.Locale(a);s="getWeekInfo"in i?i.getWeekInfo():i.weekInfo,Et[a]=s}return s}(this.locale):xr}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(s){return this.locale===s.locale&&this.numberingSystem===s.numberingSystem&&this.outputCalendar===s.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Pr=null;class wi extends ce{static get utcInstance(){return null===Pr&&(Pr=new wi(0)),Pr}static instance(s){return 0===s?wi.utcInstance:new wi(s)}static parseSpecifier(s){if(s){const i=s.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new wi(Uo(i[1],i[2]))}return null}constructor(s){super(),this.fixed=s}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Hs(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Hs(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(s,i){return Hs(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(s){return"fixed"===s.type&&s.fixed===this.fixed}get isValid(){return!0}}class Yr extends ce{constructor(s){super(),this.zoneName=s}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Or(a,s){if(Ci(a)||null===a)return s;if(a instanceof ce)return a;if(function zi(a){return"string"==typeof a}(a)){const c=a.toLowerCase();return"default"===c?s:"local"===c||"system"===c?et.instance:"utc"===c||"gmt"===c?wi.utcInstance:wi.parseSpecifier(c)||Jt.create(a)}return Lr(a)?wi.instance(a):"object"==typeof a&&"offset"in a&&"function"==typeof a.offset?a:new Yr(a)}const ft={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},St={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]},ln=ft.hanidec.replace(/[\[|\]]/g,"").split("");let An={};function zn({numberingSystem:a},s=""){const i=a||"latn";return An[i]||(An[i]={}),An[i][s]||(An[i][s]=new RegExp(`${ft[i]}${s}`)),An[i][s]}let W,ri=()=>Date.now(),li="system",Bn=null,xe=null,Ye=null,Ge=60,Te=null;class se{static get now(){return ri}static set now(s){ri=s}static set defaultZone(s){li=s}static get defaultZone(){return Or(li,et.instance)}static get defaultLocale(){return Bn}static set defaultLocale(s){Bn=s}static get defaultNumberingSystem(){return xe}static set defaultNumberingSystem(s){xe=s}static get defaultOutputCalendar(){return Ye}static set defaultOutputCalendar(s){Ye=s}static get defaultWeekSettings(){return Te}static set defaultWeekSettings(s){Te=Lo(s)}static get twoDigitCutoffYear(){return Ge}static set twoDigitCutoffYear(s){Ge=s%100}static get throwOnInvalid(){return W}static set throwOnInvalid(s){W=s}static resetCaches(){Ri.resetCache(),Jt.resetCache(),yi.resetCache(),function Xn(){An={}}()}}class $e{constructor(s,i){this.reason=s,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const pt=[0,31,59,90,120,151,181,212,243,273,304,334],lt=[0,31,60,91,121,152,182,213,244,274,305,335];function jt(a,s){return new $e("unit out of range",`you specified ${s} (of type ${typeof s}) as a ${a}, which is invalid`)}function hn(a,s,i){const c=new Date(Date.UTC(a,s-1,i));a<100&&a>=0&&c.setUTCFullYear(c.getUTCFullYear()-1900);const h=c.getUTCDay();return 0===h?7:h}function fn(a,s,i){return i+(Ar(a)?lt:pt)[s-1]}function wn(a,s){const i=Ar(a)?lt:pt,c=i.findIndex(C=>Cjs(c,s,i)?(Fe=c+1,re=1):Fe=c,{weekYear:Fe,weekNumber:re,weekday:H,...Qr(a)}}function $n(a,s=4,i=1){const{weekYear:c,weekNumber:h,weekday:C}=a,I=Dn(hn(c,1,s),i),H=Tr(c);let Fe,re=7*h+C-I-7+s;re<1?(Fe=c-1,re+=Tr(Fe)):re>H?(Fe=c+1,re-=Tr(c)):Fe=c;const{month:Pt,day:Gt}=wn(Fe,re);return{year:Fe,month:Pt,day:Gt,...Qr(a)}}function ci(a){const{year:s,month:i,day:c}=a;return{year:s,ordinal:fn(s,i,c),...Qr(a)}}function ki(a){const{year:s,ordinal:i}=a,{month:c,day:h}=wn(s,i);return{year:s,month:c,day:h,...Qr(a)}}function ei(a,s){if(Ci(a.localWeekday)&&Ci(a.localWeekNumber)&&Ci(a.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!Ci(a.weekday)||!Ci(a.weekNumber)||!Ci(a.weekYear))throw new Ie("Cannot mix locale-based week fields with ISO-based week fields");return Ci(a.localWeekday)||(a.weekday=a.localWeekday),Ci(a.localWeekNumber)||(a.weekNumber=a.localWeekNumber),Ci(a.localWeekYear)||(a.weekYear=a.localWeekYear),delete a.localWeekday,delete a.localWeekNumber,delete a.localWeekYear,{minDaysInFirstWeek:s.getMinDaysInFirstWeek(),startOfWeek:s.getStartOfWeek()}}function uo(a){const s=$o(a.year),i=Sr(a.month,1,12),c=Sr(a.day,1,Ir(a.year,a.month));return s?i?!c&&jt("day",a.day):jt("month",a.month):jt("year",a.year)}function Fr(a){const{hour:s,minute:i,second:c,millisecond:h}=a,C=Sr(s,0,23)||24===s&&0===i&&0===c&&0===h,I=Sr(i,0,59),H=Sr(c,0,59),re=Sr(h,0,999);return C?I?H?!re&&jt("millisecond",h):jt("second",c):jt("minute",i):jt("hour",s)}function Ci(a){return typeof a>"u"}function Lr(a){return"number"==typeof a}function $o(a){return"number"==typeof a&&a%1==0}function ns(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function oo(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function ga(a,s,i){if(0!==a.length)return a.reduce((c,h)=>{const C=[s(h),h];return c&&i(c[0],C[0])===c[0]?c:C},null)[1]}function vo(a,s){return Object.prototype.hasOwnProperty.call(a,s)}function Lo(a){if(null==a)return null;if("object"!=typeof a)throw new Pe("Week settings must be an object");if(!Sr(a.firstDay,1,7)||!Sr(a.minimalDays,1,7)||!Array.isArray(a.weekend)||a.weekend.some(s=>!Sr(s,1,7)))throw new Pe("Invalid week settings");return{firstDay:a.firstDay,minimalDays:a.minimalDays,weekend:Array.from(a.weekend)}}function Sr(a,s,i){return $o(a)&&a>=s&&a<=i}function hr(a,s=2){let c;return c=a<0?"-"+(""+-a).padStart(s,"0"):(""+a).padStart(s,"0"),c}function is(a){if(!Ci(a)&&null!==a&&""!==a)return parseInt(a,10)}function no(a){if(!Ci(a)&&null!==a&&""!==a)return parseFloat(a)}function Ii(a){if(!Ci(a)&&null!==a&&""!==a){const s=1e3*parseFloat("0."+a);return Math.floor(s)}}function rs(a,s,i=!1){const c=10**s;return(i?Math.trunc:Math.round)(a*c)/c}function Ar(a){return a%4==0&&(a%100!=0||a%400==0)}function Tr(a){return Ar(a)?366:365}function Ir(a,s){const i=function Us(a,s){return a-s*Math.floor(a/s)}(s-1,12)+1;return 2===i?Ar(a+(s-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Vs(a){let s=Date.UTC(a.year,a.month-1,a.day,a.hour,a.minute,a.second,a.millisecond);return a.year<100&&a.year>=0&&(s=new Date(s),s.setUTCFullYear(a.year,a.month-1,a.day)),+s}function Di(a,s,i){return-Dn(hn(a,1,s),i)+s-1}function js(a,s=4,i=1){const c=Di(a,s,i),h=Di(a+1,s,i);return(Tr(a)-c+h)/7}function Hr(a){return a>99?a:a>se.twoDigitCutoffYear?1900+a:2e3+a}function Bo(a,s,i,c=null){const h=new Date(a),C={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};c&&(C.timeZone=c);const I={timeZoneName:s,...C},H=new Intl.DateTimeFormat(i,I).formatToParts(h).find(re=>"timezonename"===re.type.toLowerCase());return H?H.value:null}function Uo(a,s){let i=parseInt(a,10);Number.isNaN(i)&&(i=0);const c=parseInt(s,10)||0;return 60*i+(i<0||Object.is(i,-0)?-c:c)}function va(a){const s=Number(a);if("boolean"==typeof a||""===a||Number.isNaN(s))throw new Pe(`Invalid unit value ${a}`);return s}function gs(a,s){const i={};for(const c in a)if(vo(a,c)){const h=a[c];if(null==h)continue;i[s(c)]=va(h)}return i}function Hs(a,s){const i=Math.trunc(Math.abs(a/60)),c=Math.trunc(Math.abs(a%60)),h=a>=0?"+":"-";switch(s){case"short":return`${h}${hr(i,2)}:${hr(c,2)}`;case"narrow":return`${h}${i}${c>0?`:${c}`:""}`;case"techie":return`${h}${hr(i,2)}${hr(c,2)}`;default:throw new RangeError(`Value format ${s} is out of range for property format`)}}function Qr(a){return function Ul(a,s){return s.reduce((i,c)=>(i[c]=a[c],i),{})}(a,["hour","minute","second","millisecond"])}const gr=["January","February","March","April","May","June","July","August","September","October","November","December"],zo=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],so=["J","F","M","A","M","J","J","A","S","O","N","D"];function oa(a){switch(a){case"narrow":return[...so];case"short":return[...zo];case"long":return[...gr];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const lr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Io=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Eo=["M","T","W","T","F","S","S"];function $s(a){switch(a){case"narrow":return[...Eo];case"short":return[...Io];case"long":return[...lr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Mi=["AM","PM"],os=["Before Christ","Anno Domini"],Zr=["BC","AD"],Wo=["B","A"];function ul(a){switch(a){case"narrow":return[...Wo];case"short":return[...Zr];case"long":return[...os];default:return null}}function or(a,s){let i="";for(const c of a)i+=c.literal?c.val:s(c.val);return i}const ss={D:ie,DD:ve,DDD:Ce,DDDD:dt,t:un,tt:it,ttt:It,tttt:Ft,T:Rt,TT:kn,TTT:hi,TTTT:qt,f:we,ff:rt,fff:Q,ffff:N,F:tt,FF:bt,FFF:T,FFFF:$};class br{static create(s,i={}){return new br(s,i)}static parseFormat(s){let i=null,c="",h=!1;const C=[];for(let I=0;I0&&C.push({literal:h||/^\s+$/.test(c),val:c}),i=null,c="",h=!h):h||H===i?c+=H:(c.length>0&&C.push({literal:/^\s+$/.test(c),val:c}),c=H,i=H)}return c.length>0&&C.push({literal:h||/^\s+$/.test(c),val:c}),C}static macroTokenToFormatOpts(s){return ss[s]}constructor(s,i){this.opts=i,this.loc=s,this.systemLoc=null}formatWithSystemDefault(s,i){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(s,{...this.opts,...i}).format()}dtFormatter(s,i={}){return this.loc.dtFormatter(s,{...this.opts,...i})}formatDateTime(s,i){return this.dtFormatter(s,i).format()}formatDateTimeParts(s,i){return this.dtFormatter(s,i).formatToParts()}formatInterval(s,i){return this.dtFormatter(s.start,i).dtf.formatRange(s.start.toJSDate(),s.end.toJSDate())}resolvedOptions(s,i){return this.dtFormatter(s,i).resolvedOptions()}num(s,i=0){if(this.opts.forceSimple)return hr(s,i);const c={...this.opts};return i>0&&(c.padTo=i),this.loc.numberFormatter(c).format(s)}formatDateTimeFromString(s,i){const c="en"===this.loc.listingMode(),h=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,C=(bn,Cn)=>this.loc.extract(s,bn,Cn),I=bn=>s.isOffsetFixed&&0===s.offset&&bn.allowZ?"Z":s.isValid?s.zone.formatOffset(s.ts,bn.format):"",re=(bn,Cn)=>c?function Ta(a,s){return oa(s)[a.month-1]}(s,bn):C(Cn?{month:bn}:{month:bn,day:"numeric"},"month"),Fe=(bn,Cn)=>c?function zs(a,s){return $s(s)[a.weekday-1]}(s,bn):C(Cn?{weekday:bn}:{weekday:bn,month:"long",day:"numeric"},"weekday"),Pt=bn=>{const Cn=br.macroTokenToFormatOpts(bn);return Cn?this.formatWithSystemDefault(s,Cn):bn},Gt=bn=>c?function Ji(a,s){return ul(s)[a.year<0?0:1]}(s,bn):C({era:bn},"era");return or(br.parseFormat(i),bn=>{switch(bn){case"S":return this.num(s.millisecond);case"u":case"SSS":return this.num(s.millisecond,3);case"s":return this.num(s.second);case"ss":return this.num(s.second,2);case"uu":return this.num(Math.floor(s.millisecond/10),2);case"uuu":return this.num(Math.floor(s.millisecond/100));case"m":return this.num(s.minute);case"mm":return this.num(s.minute,2);case"h":return this.num(s.hour%12==0?12:s.hour%12);case"hh":return this.num(s.hour%12==0?12:s.hour%12,2);case"H":return this.num(s.hour);case"HH":return this.num(s.hour,2);case"Z":return I({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return I({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return I({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return s.zone.offsetName(s.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return s.zone.offsetName(s.ts,{format:"long",locale:this.loc.locale});case"z":return s.zoneName;case"a":return c?function Co(a){return Mi[a.hour<12?0:1]}(s):C({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return h?C({day:"numeric"},"day"):this.num(s.day);case"dd":return h?C({day:"2-digit"},"day"):this.num(s.day,2);case"c":case"E":return this.num(s.weekday);case"ccc":return Fe("short",!0);case"cccc":return Fe("long",!0);case"ccccc":return Fe("narrow",!0);case"EEE":return Fe("short",!1);case"EEEE":return Fe("long",!1);case"EEEEE":return Fe("narrow",!1);case"L":return h?C({month:"numeric",day:"numeric"},"month"):this.num(s.month);case"LL":return h?C({month:"2-digit",day:"numeric"},"month"):this.num(s.month,2);case"LLL":return re("short",!0);case"LLLL":return re("long",!0);case"LLLLL":return re("narrow",!0);case"M":return h?C({month:"numeric"},"month"):this.num(s.month);case"MM":return h?C({month:"2-digit"},"month"):this.num(s.month,2);case"MMM":return re("short",!1);case"MMMM":return re("long",!1);case"MMMMM":return re("narrow",!1);case"y":return h?C({year:"numeric"},"year"):this.num(s.year);case"yy":return h?C({year:"2-digit"},"year"):this.num(s.year.toString().slice(-2),2);case"yyyy":return h?C({year:"numeric"},"year"):this.num(s.year,4);case"yyyyyy":return h?C({year:"numeric"},"year"):this.num(s.year,6);case"G":return Gt("short");case"GG":return Gt("long");case"GGGGG":return Gt("narrow");case"kk":return this.num(s.weekYear.toString().slice(-2),2);case"kkkk":return this.num(s.weekYear,4);case"W":return this.num(s.weekNumber);case"WW":return this.num(s.weekNumber,2);case"n":return this.num(s.localWeekNumber);case"nn":return this.num(s.localWeekNumber,2);case"ii":return this.num(s.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(s.localWeekYear,4);case"o":return this.num(s.ordinal);case"ooo":return this.num(s.ordinal,3);case"q":return this.num(s.quarter);case"qq":return this.num(s.quarter,2);case"X":return this.num(Math.floor(s.ts/1e3));case"x":return this.num(s.ts);default:return Pt(bn)}})}formatDurationFromString(s,i){const c=re=>{switch(re[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},C=br.parseFormat(i),I=C.reduce((re,{literal:Fe,val:Pt})=>Fe?re:re.concat(Pt),[]);return or(C,(re=>Fe=>{const Pt=c(Fe);return Pt?this.num(re.get(Pt),Fe.length):Fe})(s.shiftTo(...I.map(c).filter(re=>re))))}}const Vo=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function jo(...a){const s=a.reduce((i,c)=>i+c.source,"");return RegExp(`^${s}$`)}function Ws(...a){return s=>a.reduce(([i,c,h],C)=>{const[I,H,re]=C(s,h);return[{...i,...I},H||c,re]},[{},null,1]).slice(0,2)}function Ko(a,...s){if(null==a)return[null,null];for(const[i,c]of s){const h=i.exec(a);if(h)return c(h)}return[null,null]}function Mo(...a){return(s,i)=>{const c={};let h;for(h=0;hvoid 0!==bn&&(Cn||bn&&Pt)?-bn:bn;return[{years:Hn(no(i)),months:Hn(no(c)),weeks:Hn(no(h)),days:Hn(no(C)),hours:Hn(no(I)),minutes:Hn(no(H)),seconds:Hn(no(re),"-0"===re),milliseconds:Hn(Ii(Fe),Gt)}]}const Ma={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ss(a,s,i,c,h,C,I){const H={year:2===s.length?Hr(is(s)):is(s),month:zo.indexOf(i)+1,day:is(c),hour:is(h),minute:is(C)};return I&&(H.second=is(I)),a&&(H.weekday=a.length>3?lr.indexOf(a)+1:Io.indexOf(a)+1),H}const Oa=/^(?:(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 aa(a){const[,s,i,c,h,C,I,H,re,Fe,Pt,Gt]=a,Hn=Ss(s,h,c,i,C,I,H);let bn;return bn=re?Ma[re]:Fe?0:Uo(Pt,Gt),[Hn,new wi(bn)]}const ho=/^(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$/,Cl=/^(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$/,ka=/^(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 Wi(a){const[,s,i,c,h,C,I,H]=a;return[Ss(s,h,c,i,C,I,H),wi.utcInstance]}function Jr(a){const[,s,i,c,h,C,I,H]=a;return[Ss(s,H,i,c,h,C,I),wi.utcInstance]}const qr=jo(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ds),Yo=jo(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ds),fo=jo(/(\d{4})-?(\d{3})/,Ds),Na=jo(Ia),As=Ws(function yt(a,s){return[{year:pe(a,s),month:pe(a,s+1,1),day:pe(a,s+2,1)},null,s+3]},ii,Xi,ko),la=Ws(fr,ii,Xi,ko),Wa=Ws(Ro,ii,Xi,ko),Gs=Ws(ii,Xi,ko),Ho=Ws(ii),_a=jo(/(\d{4})-(\d\d)-(\d\d)/,k),Xs=jo(X),Ga=Ws(ii,Xi,ko),Fa="Invalid Duration",Ts={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}},hl={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},...Ts},So=365.2425,_s=30.436875,Oc={years:{quarters:4,months:12,weeks:So/7,days:So,hours:24*So,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:So/28,days:So/4,hours:24*So/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:_s/7,days:_s,hours:24*_s,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Ts},Is=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ka=Is.slice(0).reverse();function po(a,s,i=!1){const c={values:i?s.values:{...a.values,...s.values||{}},loc:a.loc.clone(s.loc),conversionAccuracy:s.conversionAccuracy||a.conversionAccuracy,matrix:s.matrix||a.matrix};return new ur(c)}function Xa(a,s){let i=s.milliseconds??0;for(const c of Ka.slice(1))s[c]&&(i+=s[c]*a[c].milliseconds);return i}function ys(a,s){const i=Xa(a,s)<0?-1:1;Is.reduceRight((c,h)=>{if(Ci(s[h]))return c;if(c){const I=a[h][c],H=Math.floor(s[c]*i/I);s[h]+=H*i,s[c]-=H*I*i}return h},null),Is.reduce((c,h)=>{if(Ci(s[h]))return c;if(c){const C=s[c]%1;s[c]-=C,s[h]+=C*a[c][h]}return h},null)}class ur{constructor(s){const i="longterm"===s.conversionAccuracy||!1;let c=i?Oc:hl;s.matrix&&(c=s.matrix),this.values=s.values,this.loc=s.loc||Ri.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=s.invalid||null,this.matrix=c,this.isLuxonDuration=!0}static fromMillis(s,i){return ur.fromObject({milliseconds:s},i)}static fromObject(s,i={}){if(null==s||"object"!=typeof s)throw new Pe("Duration.fromObject: argument expected to be an object, got "+(null===s?"null":typeof s));return new ur({values:gs(s,ur.normalizeUnit),loc:Ri.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(s){if(Lr(s))return ur.fromMillis(s);if(ur.isDuration(s))return s;if("object"==typeof s)return ur.fromObject(s);throw new Pe(`Unknown duration argument ${s} of type ${typeof s}`)}static fromISO(s,i){const[c]=function Ks(a){return Ko(a,[ls,Vl])}(s);return c?ur.fromObject(c,i):ur.invalid("unparsable",`the input "${s}" can't be parsed as ISO 8601`)}static fromISOTime(s,i){const[c]=function No(a){return Ko(a,[_o,Ho])}(s);return c?ur.fromObject(c,i):ur.invalid("unparsable",`the input "${s}" can't be parsed as ISO 8601`)}static invalid(s,i=null){if(!s)throw new Pe("need to specify a reason the Duration is invalid");const c=s instanceof $e?s:new $e(s,i);if(se.throwOnInvalid)throw new J(c);return new ur({invalid:c})}static normalizeUnit(s){const i={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[s&&s.toLowerCase()];if(!i)throw new Ot(s);return i}static isDuration(s){return s&&s.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(s,i={}){const c={...i,floor:!1!==i.round&&!1!==i.floor};return this.isValid?br.create(this.loc,c).formatDurationFromString(this,s):Fa}toHuman(s={}){if(!this.isValid)return Fa;const i=Is.map(c=>{const h=this.values[c];return Ci(h)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...s,unit:c.slice(0,-1)}).format(h)}).filter(c=>c);return this.loc.listFormatter({type:"conjunction",style:s.listStyle||"narrow",...s}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let s="P";return 0!==this.years&&(s+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(s+=this.months+3*this.quarters+"M"),0!==this.weeks&&(s+=this.weeks+"W"),0!==this.days&&(s+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(s+="T"),0!==this.hours&&(s+=this.hours+"H"),0!==this.minutes&&(s+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(s+=rs(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===s&&(s+="T0S"),s}toISOTime(s={}){if(!this.isValid)return null;const i=this.toMillis();return i<0||i>=864e5?null:(s={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...s,includeOffset:!1},yi.fromMillis(i,{zone:"UTC"}).toISOTime(s))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Xa(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(s){if(!this.isValid)return this;const i=ur.fromDurationLike(s),c={};for(const h of Is)(vo(i.values,h)||vo(this.values,h))&&(c[h]=i.get(h)+this.get(h));return po(this,{values:c},!0)}minus(s){if(!this.isValid)return this;const i=ur.fromDurationLike(s);return this.plus(i.negate())}mapUnits(s){if(!this.isValid)return this;const i={};for(const c of Object.keys(this.values))i[c]=va(s(this.values[c],c));return po(this,{values:i},!0)}get(s){return this[ur.normalizeUnit(s)]}set(s){return this.isValid?po(this,{values:{...this.values,...gs(s,ur.normalizeUnit)}}):this}reconfigure({locale:s,numberingSystem:i,conversionAccuracy:c,matrix:h}={}){return po(this,{loc:this.loc.clone({locale:s,numberingSystem:i}),matrix:h,conversionAccuracy:c})}as(s){return this.isValid?this.shiftTo(s).get(s):NaN}normalize(){if(!this.isValid)return this;const s=this.toObject();return ys(this.matrix,s),po(this,{values:s},!0)}rescale(){return this.isValid?po(this,{values:function Rc(a){const s={};for(const[i,c]of Object.entries(a))0!==c&&(s[i]=c);return s}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...s){if(!this.isValid)return this;if(0===s.length)return this;s=s.map(I=>ur.normalizeUnit(I));const i={},c={},h=this.toObject();let C;for(const I of Is)if(s.indexOf(I)>=0){C=I;let H=0;for(const Fe in c)H+=this.matrix[Fe][I]*c[Fe],c[Fe]=0;Lr(h[I])&&(H+=h[I]);const re=Math.trunc(H);i[I]=re,c[I]=(1e3*H-1e3*re)/1e3}else Lr(h[I])&&(c[I]=h[I]);for(const I in c)0!==c[I]&&(i[C]+=I===C?c[I]:c[I]/this.matrix[C][I]);return ys(this.matrix,i),po(this,{values:i},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const s={};for(const i of Object.keys(this.values))s[i]=0===this.values[i]?0:-this.values[i];return po(this,{values:s},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(s){if(!this.isValid||!s.isValid||!this.loc.equals(s.loc))return!1;function i(c,h){return void 0===c||0===c?void 0===h||0===h:c===h}for(const c of Is)if(!i(this.values[c],s.values[c]))return!1;return!0}}const bs="Invalid Interval";class Wr{constructor(s){this.s=s.start,this.e=s.end,this.invalid=s.invalid||null,this.isLuxonInterval=!0}static invalid(s,i=null){if(!s)throw new Pe("need to specify a reason the Interval is invalid");const c=s instanceof $e?s:new $e(s,i);if(se.throwOnInvalid)throw new Ae(c);return new Wr({invalid:c})}static fromDateTimes(s,i){const c=eo(s),h=eo(i),C=function ca(a,s){return a&&a.isValid?s&&s.isValid?ss}isBefore(s){return!!this.isValid&&this.e<=s}contains(s){return!!this.isValid&&this.s<=s&&this.e>s}set({start:s,end:i}={}){return this.isValid?Wr.fromDateTimes(s||this.s,i||this.e):this}splitAt(...s){if(!this.isValid)return[];const i=s.map(eo).filter(I=>this.contains(I)).sort((I,H)=>I.toMillis()-H.toMillis()),c=[];let{s:h}=this,C=0;for(;h+this.e?this.e:I;c.push(Wr.fromDateTimes(h,H)),h=H,C+=1}return c}splitBy(s){const i=ur.fromDurationLike(s);if(!this.isValid||!i.isValid||0===i.as("milliseconds"))return[];let C,{s:c}=this,h=1;const I=[];for(;cre*h));C=+H>+this.e?this.e:H,I.push(Wr.fromDateTimes(c,C)),c=C,h+=1}return I}divideEqually(s){return this.isValid?this.splitBy(this.length()/s).slice(0,s):[]}overlaps(s){return this.e>s.s&&this.s=s.e}equals(s){return!(!this.isValid||!s.isValid)&&this.s.equals(s.s)&&this.e.equals(s.e)}intersection(s){if(!this.isValid)return this;const i=this.s>s.s?this.s:s.s,c=this.e=c?null:Wr.fromDateTimes(i,c)}union(s){return this.isValid?Wr.fromDateTimes(this.ss.e?this.e:s.e):this}static merge(s){const[i,c]=s.sort((h,C)=>h.s-C.s).reduce(([h,C],I)=>C?C.overlaps(I)||C.abutsStart(I)?[h,C.union(I)]:[h.concat([C]),I]:[h,I],[[],null]);return c&&i.push(c),i}static xor(s){let i=null,c=0;const h=[],C=s.map(re=>[{time:re.s,type:"s"},{time:re.e,type:"e"}]),H=Array.prototype.concat(...C).sort((re,Fe)=>re.time-Fe.time);for(const re of H)c+="s"===re.type?1:-1,1===c?i=re.time:(i&&+i!=+re.time&&h.push(Wr.fromDateTimes(i,re.time)),i=null);return Wr.merge(h)}difference(...s){return Wr.xor([this].concat(s)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:bs}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(s=ie,i={}){return this.isValid?br.create(this.s.loc.clone(i),s).formatInterval(this):bs}toISO(s){return this.isValid?`${this.s.toISO(s)}/${this.e.toISO(s)}`:bs}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:bs}toISOTime(s){return this.isValid?`${this.s.toISOTime(s)}/${this.e.toISOTime(s)}`:bs}toFormat(s,{separator:i=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(s)}${i}${this.e.toFormat(s)}`:bs}toDuration(s,i){return this.isValid?this.e.diff(this.s,s,i):ur.invalid(this.invalidReason)}mapEndpoints(s){return Wr.fromDateTimes(s(this.s),s(this.e))}}class Gr{static hasDST(s=se.defaultZone){const i=yi.now().setZone(s).set({month:12});return!s.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(s){return Jt.isValidZone(s)}static normalizeZone(s){return Or(s,se.defaultZone)}static getStartOfWeek({locale:s=null,locObj:i=null}={}){return(i||Ri.create(s)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:s=null,locObj:i=null}={}){return(i||Ri.create(s)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:s=null,locObj:i=null}={}){return(i||Ri.create(s)).getWeekendDays().slice()}static months(s="long",{locale:i=null,numberingSystem:c=null,locObj:h=null,outputCalendar:C="gregory"}={}){return(h||Ri.create(i,c,C)).months(s)}static monthsFormat(s="long",{locale:i=null,numberingSystem:c=null,locObj:h=null,outputCalendar:C="gregory"}={}){return(h||Ri.create(i,c,C)).months(s,!0)}static weekdays(s="long",{locale:i=null,numberingSystem:c=null,locObj:h=null}={}){return(h||Ri.create(i,c,null)).weekdays(s)}static weekdaysFormat(s="long",{locale:i=null,numberingSystem:c=null,locObj:h=null}={}){return(h||Ri.create(i,c,null)).weekdays(s,!0)}static meridiems({locale:s=null}={}){return Ri.create(s).meridiems()}static eras(s="short",{locale:i=null}={}){return Ri.create(i,null,"gregory").eras(s)}static features(){return{relative:ns(),localeWeek:oo()}}}function fl(a,s){const i=h=>h.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),c=i(s)-i(a);return Math.floor(ur.fromMillis(c).as("days"))}function ir(a,s=i=>i){return{regex:a,deser:([i])=>s(function yn(a){let s=parseInt(a,10);if(isNaN(s)){s="";for(let i=0;i=C&&c<=I&&(s+=c-C)}}return parseInt(s,10)}return s}(i))}}const jl="[ \xa0]",S=new RegExp(jl,"g");function ne(a){return a.replace(/\./g,"\\.?").replace(S,jl)}function f(a){return a.replace(/\./g,"").replace(S," ").toLowerCase()}function _(a,s){return null===a?null:{regex:RegExp(a.map(ne).join("|")),deser:([i])=>a.findIndex(c=>f(i)===f(c))+s}}function x(a,s){return{regex:a,deser:([,i,c])=>Uo(i,c),groups:s}}function K(a){return{regex:a,deser:([s])=>s}}function de(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const _t={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 xt=null;function Rn(a,s){return Array.prototype.concat(...a.map(i=>function cn(a,s){if(a.literal)return a;const c=Yn(br.macroTokenToFormatOpts(a.val),s);return null==c||c.includes(void 0)?a:c}(i,s)))}class pn{constructor(s,i){if(this.locale=s,this.format=i,this.tokens=Rn(br.parseFormat(i),s),this.units=this.tokens.map(c=>function ze(a,s){const i=zn(s),c=zn(s,"{2}"),h=zn(s,"{3}"),C=zn(s,"{4}"),I=zn(s,"{6}"),H=zn(s,"{1,2}"),re=zn(s,"{1,3}"),Fe=zn(s,"{1,6}"),Pt=zn(s,"{1,9}"),Gt=zn(s,"{2,4}"),Hn=zn(s,"{4,6}"),bn=Fi=>({regex:RegExp(de(Fi.val)),deser:([Vi])=>Vi,literal:!0}),fi=(Fi=>{if(a.literal)return bn(Fi);switch(Fi.val){case"G":return _(s.eras("short"),0);case"GG":return _(s.eras("long"),0);case"y":return ir(Fe);case"yy":case"kk":return ir(Gt,Hr);case"yyyy":case"kkkk":return ir(C);case"yyyyy":return ir(Hn);case"yyyyyy":return ir(I);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return ir(H);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return ir(c);case"MMM":return _(s.months("short",!0),1);case"MMMM":return _(s.months("long",!0),1);case"LLL":return _(s.months("short",!1),1);case"LLLL":return _(s.months("long",!1),1);case"o":case"S":return ir(re);case"ooo":case"SSS":return ir(h);case"u":return K(Pt);case"uu":return K(H);case"uuu":case"E":case"c":return ir(i);case"a":return _(s.meridiems(),0);case"EEE":return _(s.weekdays("short",!1),1);case"EEEE":return _(s.weekdays("long",!1),1);case"ccc":return _(s.weekdays("short",!0),1);case"cccc":return _(s.weekdays("long",!0),1);case"Z":case"ZZ":return x(new RegExp(`([+-]${H.source})(?::(${c.source}))?`),2);case"ZZZ":return x(new RegExp(`([+-]${H.source})(${c.source})?`),2);case"z":return K(/[a-z_+-/]{1,256}?/i);case" ":return K(/[^\S\n\r]/);default:return bn(Fi)}})(a)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return fi.token=a,fi}(c,s)),this.disqualifyingUnit=this.units.find(c=>c.invalidReason),!this.disqualifyingUnit){const[c,h]=function kt(a){return[`^${a.map(i=>i.regex).reduce((i,c)=>`${i}(${c.source})`,"")}$`,a]}(this.units);this.regex=RegExp(c,"i"),this.handlers=h}}explainFromTokens(s){if(this.isValid){const[i,c]=function Yt(a,s,i){const c=a.match(s);if(c){const h={};let C=1;for(const I in i)if(vo(i,I)){const H=i[I],re=H.groups?H.groups+1:1;!H.literal&&H.token&&(h[H.token.val[0]]=H.deser(c.slice(C,C+re))),C+=re}return[c,h]}return[c,{}]}(s,this.regex,this.handlers),[h,C,I]=c?function vn(a){let c,i=null;return Ci(a.z)||(i=Jt.create(a.z)),Ci(a.Z)||(i||(i=new wi(a.Z)),c=a.Z),Ci(a.q)||(a.M=3*(a.q-1)+1),Ci(a.h)||(a.h<12&&1===a.a?a.h+=12:12===a.h&&0===a.a&&(a.h=0)),0===a.G&&a.y&&(a.y=-a.y),Ci(a.u)||(a.S=Ii(a.u)),[Object.keys(a).reduce((C,I)=>{const H=(C=>{switch(C){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(I);return H&&(C[H]=a[I]),C},{}),i,c]}(c):[null,null,void 0];if(vo(c,"a")&&vo(c,"H"))throw new Ie("Can't include meridiem when specifying 24-hour format");return{input:s,tokens:this.tokens,regex:this.regex,rawMatches:i,matches:c,result:h,zone:C,specificOffset:I}}return{input:s,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Tn(a,s,i){return new pn(a,i).explainFromTokens(s)}function Yn(a,s){if(!a)return null;const c=br.create(s,a).dtFormatter(function Ht(){return xt||(xt=yi.fromMillis(1555555555555)),xt}()),h=c.formatToParts(),C=c.resolvedOptions();return h.map(I=>function wt(a,s,i){const{type:c,value:h}=a;if("literal"===c){const re=/^\s+$/.test(h);return{literal:!re,val:re?" ":h}}let I=c;"hour"===c&&(I=null!=s.hour12?s.hour12?"hour12":"hour24":null!=s.hourCycle?"h11"===s.hourCycle||"h12"===s.hourCycle?"hour12":"hour24":i.hour12?"hour12":"hour24");let H=_t[I];if("object"==typeof H&&(H=H[s[c]]),H)return{literal:!1,val:H}}(I,a,C))}const Sn="Invalid DateTime",ui=864e13;function di(a){return new $e("unsupported zone",`the zone "${a.name}" is not supported`)}function On(a){return null===a.weekData&&(a.weekData=jn(a.c)),a.weekData}function Si(a){return null===a.localWeekData&&(a.localWeekData=jn(a.c,a.loc.getMinDaysInFirstWeek(),a.loc.getStartOfWeek())),a.localWeekData}function Ai(a,s){const i={ts:a.ts,zone:a.zone,c:a.c,o:a.o,loc:a.loc,invalid:a.invalid};return new yi({...i,...s,old:i})}function qi(a,s,i){let c=a-60*s*1e3;const h=i.offset(c);if(s===h)return[c,s];c-=60*(h-s)*1e3;const C=i.offset(c);return h===C?[c,h]:[a-60*Math.min(h,C)*1e3,Math.max(h,C)]}function Pi(a,s){const i=new Date(a+=60*s*1e3);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function er(a,s,i){return qi(Vs(a),s,i)}function lo(a,s){const i=a.o,c=a.c.year+Math.trunc(s.years),h=a.c.month+Math.trunc(s.months)+3*Math.trunc(s.quarters),C={...a.c,year:c,month:h,day:Math.min(a.c.day,Ir(c,h))+Math.trunc(s.days)+7*Math.trunc(s.weeks)},I=ur.fromObject({years:s.years-Math.trunc(s.years),quarters:s.quarters-Math.trunc(s.quarters),months:s.months-Math.trunc(s.months),weeks:s.weeks-Math.trunc(s.weeks),days:s.days-Math.trunc(s.days),hours:s.hours,minutes:s.minutes,seconds:s.seconds,milliseconds:s.milliseconds}).as("milliseconds"),H=Vs(C);let[re,Fe]=qi(H,i,a.zone);return 0!==I&&(re+=I,Fe=a.zone.offset(re)),{ts:re,o:Fe}}function Er(a,s,i,c,h,C){const{setZone:I,zone:H}=i;if(a&&0!==Object.keys(a).length||s){const re=s||H,Fe=yi.fromObject(a,{...i,zone:re,specificOffset:C});return I?Fe:Fe.setZone(H)}return yi.invalid(new $e("unparsable",`the input "${h}" can't be parsed as ${c}`))}function sr(a,s,i=!0){return a.isValid?br.create(Ri.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(a,s):null}function Zn(a,s){const i=a.c.year>9999||a.c.year<0;let c="";return i&&a.c.year>=0&&(c+="+"),c+=hr(a.c.year,i?6:4),s?(c+="-",c+=hr(a.c.month),c+="-",c+=hr(a.c.day)):(c+=hr(a.c.month),c+=hr(a.c.day)),c}function gi(a,s,i,c,h,C){let I=hr(a.c.hour);return s?(I+=":",I+=hr(a.c.minute),(0!==a.c.millisecond||0!==a.c.second||!i)&&(I+=":")):I+=hr(a.c.minute),(0!==a.c.millisecond||0!==a.c.second||!i)&&(I+=hr(a.c.second),(0!==a.c.millisecond||!c)&&(I+=".",I+=hr(a.c.millisecond,3))),h&&(a.isOffsetFixed&&0===a.offset&&!C?I+="Z":a.o<0?(I+="-",I+=hr(Math.trunc(-a.o/60)),I+=":",I+=hr(Math.trunc(-a.o%60))):(I+="+",I+=hr(Math.trunc(a.o/60)),I+=":",I+=hr(Math.trunc(a.o%60)))),C&&(I+="["+a.zone.ianaName+"]"),I}const tr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},pr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Jn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Cr=["year","month","day","hour","minute","second","millisecond"],Br=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],$r=["year","ordinal","hour","minute","second","millisecond"];function cs(a){switch(a.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function Ys(a){const s={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[a.toLowerCase()];if(!s)throw new Ot(a);return s}(a)}}function Qs(a,s){const i=Or(s.zone,se.defaultZone);if(!i.isValid)return yi.invalid(di(i));const c=Ri.fromObject(s);let h,C;if(Ci(a.year))h=se.now();else{for(const re of Cr)Ci(a[re])&&(a[re]=tr[re]);const I=uo(a)||Fr(a);if(I)return yi.invalid(I);const H=function kr(a){return Do[a]||(void 0===ws&&(ws=se.now()),Do[a]=a.offset(ws)),Do[a]}(i);[h,C]=er(a,H,i)}return new yi({ts:h,zone:i,loc:c,o:C})}function Ur(a,s,i){const c=!!Ci(i.round)||i.round,h=(I,H)=>(I=rs(I,c||i.calendary?0:2,!0),s.loc.clone(i).relFormatter(i).format(I,H)),C=I=>i.calendary?s.hasSame(a,I)?0:s.startOf(I).diff(a.startOf(I),I).get(I):s.diff(a,I).get(I);if(i.unit)return h(C(i.unit),i.unit);for(const I of i.units){const H=C(I);if(Math.abs(H)>=1)return h(H,I)}return h(a>s?-0:0,i.units[i.units.length-1])}function yo(a){let i,s={};return a.length>0&&"object"==typeof a[a.length-1]?(s=a[a.length-1],i=Array.from(a).slice(0,a.length-1)):i=Array.from(a),[s,i]}let ws,Do={};class yi{constructor(s){const i=s.zone||se.defaultZone;let c=s.invalid||(Number.isNaN(s.ts)?new $e("invalid input"):null)||(i.isValid?null:di(i));this.ts=Ci(s.ts)?se.now():s.ts;let h=null,C=null;if(!c)if(s.old&&s.old.ts===this.ts&&s.old.zone.equals(i))[h,C]=[s.old.c,s.old.o];else{const H=Lr(s.o)&&!s.old?s.o:i.offset(this.ts);h=Pi(this.ts,H),c=Number.isNaN(h.year)?new $e("invalid input"):null,h=c?null:h,C=c?null:H}this._zone=i,this.loc=s.loc||Ri.create(),this.invalid=c,this.weekData=null,this.localWeekData=null,this.c=h,this.o=C,this.isLuxonDateTime=!0}static now(){return new yi({})}static local(){const[s,i]=yo(arguments),[c,h,C,I,H,re,Fe]=i;return Qs({year:c,month:h,day:C,hour:I,minute:H,second:re,millisecond:Fe},s)}static utc(){const[s,i]=yo(arguments),[c,h,C,I,H,re,Fe]=i;return s.zone=wi.utcInstance,Qs({year:c,month:h,day:C,hour:I,minute:H,second:re,millisecond:Fe},s)}static fromJSDate(s,i={}){const c=function Bs(a){return"[object Date]"===Object.prototype.toString.call(a)}(s)?s.valueOf():NaN;if(Number.isNaN(c))return yi.invalid("invalid input");const h=Or(i.zone,se.defaultZone);return h.isValid?new yi({ts:c,zone:h,loc:Ri.fromObject(i)}):yi.invalid(di(h))}static fromMillis(s,i={}){if(Lr(s))return s<-ui||s>ui?yi.invalid("Timestamp out of range"):new yi({ts:s,zone:Or(i.zone,se.defaultZone),loc:Ri.fromObject(i)});throw new Pe(`fromMillis requires a numerical input, but received a ${typeof s} with value ${s}`)}static fromSeconds(s,i={}){if(Lr(s))return new yi({ts:1e3*s,zone:Or(i.zone,se.defaultZone),loc:Ri.fromObject(i)});throw new Pe("fromSeconds requires a numerical input")}static fromObject(s,i={}){s=s||{};const c=Or(i.zone,se.defaultZone);if(!c.isValid)return yi.invalid(di(c));const h=Ri.fromObject(i),C=gs(s,cs),{minDaysInFirstWeek:I,startOfWeek:H}=ei(C,h),re=se.now(),Fe=Ci(i.specificOffset)?c.offset(re):i.specificOffset,Pt=!Ci(C.ordinal),Gt=!Ci(C.year),Hn=!Ci(C.month)||!Ci(C.day),bn=Gt||Hn,Cn=C.weekYear||C.weekNumber;if((bn||Pt)&&Cn)throw new Ie("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Hn&&Pt)throw new Ie("Can't mix ordinal dates with month/day");const fi=Cn||C.weekday&&!bn;let Fi,Vi,$i=Pi(re,Fe);fi?(Fi=Br,Vi=pr,$i=jn($i,I,H)):Pt?(Fi=$r,Vi=Jn,$i=ci($i)):(Fi=Cr,Vi=tr);let ro=!1;for(const wl of Fi)Ci(C[wl])?C[wl]=ro?Vi[wl]:$i[wl]:ro=!0;const go=fi?function Gn(a,s=4,i=1){const c=$o(a.weekYear),h=Sr(a.weekNumber,1,js(a.weekYear,s,i)),C=Sr(a.weekday,1,7);return c?h?!C&&jt("weekday",a.weekday):jt("week",a.weekNumber):jt("weekYear",a.weekYear)}(C,I,H):Pt?function Rr(a){const s=$o(a.year),i=Sr(a.ordinal,1,Tr(a.year));return s?!i&&jt("ordinal",a.ordinal):jt("year",a.year)}(C):uo(C),nc=go||Fr(C);if(nc)return yi.invalid(nc);const sl=fi?$n(C,I,H):Pt?ki(C):C,[ia,Ps]=er(sl,Fe,c),Sa=new yi({ts:ia,zone:c,o:Ps,loc:h});return C.weekday&&bn&&s.weekday!==Sa.weekday?yi.invalid("mismatched weekday",`you can't specify both a weekday of ${C.weekday} and a date of ${Sa.toISO()}`):Sa.isValid?Sa:yi.invalid(Sa.invalid)}static fromISO(s,i={}){const[c,h]=function ao(a){return Ko(a,[qr,As],[Yo,la],[fo,Wa],[Na,Gs])}(s);return Er(c,h,i,"ISO 8601",s)}static fromRFC2822(s,i={}){const[c,h]=function Qo(a){return Ko(function Ra(a){return a.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(a),[Oa,aa])}(s);return Er(c,h,i,"RFC 2822",s)}static fromHTTP(s,i={}){const[c,h]=function Pa(a){return Ko(a,[ho,Wi],[Cl,Wi],[ka,Jr])}(s);return Er(c,h,i,"HTTP",i)}static fromFormat(s,i,c={}){if(Ci(s)||Ci(i))throw new Pe("fromFormat requires an input string and a format");const{locale:h=null,numberingSystem:C=null}=c,I=Ri.fromOpts({locale:h,numberingSystem:C,defaultToEN:!0}),[H,re,Fe,Pt]=function Nn(a,s,i){const{result:c,zone:h,specificOffset:C,invalidReason:I}=Tn(a,s,i);return[c,h,C,I]}(I,s,i);return Pt?yi.invalid(Pt):Er(H,re,c,`format ${i}`,s,Fe)}static fromString(s,i,c={}){return yi.fromFormat(s,i,c)}static fromSQL(s,i={}){const[c,h]=function Zo(a){return Ko(a,[_a,As],[Xs,Ga])}(s);return Er(c,h,i,"SQL",s)}static invalid(s,i=null){if(!s)throw new Pe("need to specify a reason the DateTime is invalid");const c=s instanceof $e?s:new $e(s,i);if(se.throwOnInvalid)throw new _e(c);return new yi({invalid:c})}static isDateTime(s){return s&&s.isLuxonDateTime||!1}static parseFormatForOpts(s,i={}){const c=Yn(s,Ri.fromObject(i));return c?c.map(h=>h?h.val:null).join(""):null}static expandFormat(s,i={}){return Rn(br.parseFormat(s),Ri.fromObject(i)).map(h=>h.val).join("")}static resetCache(){ws=void 0,Do={}}get(s){return this[s]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?On(this).weekYear:NaN}get weekNumber(){return this.isValid?On(this).weekNumber:NaN}get weekday(){return this.isValid?On(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Si(this).weekday:NaN}get localWeekNumber(){return this.isValid?Si(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Si(this).weekYear:NaN}get ordinal(){return this.isValid?ci(this.c).ordinal:NaN}get monthShort(){return this.isValid?Gr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Gr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Gr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Gr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const s=864e5,i=6e4,c=Vs(this.c),h=this.zone.offset(c-s),C=this.zone.offset(c+s),I=this.zone.offset(c-h*i),H=this.zone.offset(c-C*i);if(I===H)return[this];const re=c-I*i,Fe=c-H*i,Pt=Pi(re,I),Gt=Pi(Fe,H);return Pt.hour===Gt.hour&&Pt.minute===Gt.minute&&Pt.second===Gt.second&&Pt.millisecond===Gt.millisecond?[Ai(this,{ts:re}),Ai(this,{ts:Fe})]:[this]}get isInLeapYear(){return Ar(this.year)}get daysInMonth(){return Ir(this.year,this.month)}get daysInYear(){return this.isValid?Tr(this.year):NaN}get weeksInWeekYear(){return this.isValid?js(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?js(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(s={}){const{locale:i,numberingSystem:c,calendar:h}=br.create(this.loc.clone(s),s).resolvedOptions(this);return{locale:i,numberingSystem:c,outputCalendar:h}}toUTC(s=0,i={}){return this.setZone(wi.instance(s),i)}toLocal(){return this.setZone(se.defaultZone)}setZone(s,{keepLocalTime:i=!1,keepCalendarTime:c=!1}={}){if((s=Or(s,se.defaultZone)).equals(this.zone))return this;if(s.isValid){let h=this.ts;if(i||c){const C=s.offset(this.ts),I=this.toObject();[h]=er(I,C,s)}return Ai(this,{ts:h,zone:s})}return yi.invalid(di(s))}reconfigure({locale:s,numberingSystem:i,outputCalendar:c}={}){return Ai(this,{loc:this.loc.clone({locale:s,numberingSystem:i,outputCalendar:c})})}setLocale(s){return this.reconfigure({locale:s})}set(s){if(!this.isValid)return this;const i=gs(s,cs),{minDaysInFirstWeek:c,startOfWeek:h}=ei(i,this.loc),C=!Ci(i.weekYear)||!Ci(i.weekNumber)||!Ci(i.weekday),I=!Ci(i.ordinal),H=!Ci(i.year),re=!Ci(i.month)||!Ci(i.day);if((H||re||I)&&(i.weekYear||i.weekNumber))throw new Ie("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(re&&I)throw new Ie("Can't mix ordinal dates with month/day");let Gt;C?Gt=$n({...jn(this.c,c,h),...i},c,h):Ci(i.ordinal)?(Gt={...this.toObject(),...i},Ci(i.day)&&(Gt.day=Math.min(Ir(Gt.year,Gt.month),Gt.day))):Gt=ki({...ci(this.c),...i});const[Hn,bn]=er(Gt,this.o,this.zone);return Ai(this,{ts:Hn,o:bn})}plus(s){return this.isValid?Ai(this,lo(this,ur.fromDurationLike(s))):this}minus(s){return this.isValid?Ai(this,lo(this,ur.fromDurationLike(s).negate())):this}startOf(s,{useLocaleWeeks:i=!1}={}){if(!this.isValid)return this;const c={},h=ur.normalizeUnit(s);switch(h){case"years":c.month=1;case"quarters":case"months":c.day=1;case"weeks":case"days":c.hour=0;case"hours":c.minute=0;case"minutes":c.second=0;case"seconds":c.millisecond=0}if("weeks"===h)if(i){const C=this.loc.getStartOfWeek(),{weekday:I}=this;Ithis.valueOf(),Fe=function sc(a,s,i,c){let[h,C,I,H]=function ua(a,s,i){const c=[["years",(re,Fe)=>Fe.year-re.year],["quarters",(re,Fe)=>Fe.quarter-re.quarter+4*(Fe.year-re.year)],["months",(re,Fe)=>Fe.month-re.month+12*(Fe.year-re.year)],["weeks",(re,Fe)=>{const Pt=fl(re,Fe);return(Pt-Pt%7)/7}],["days",fl]],h={},C=a;let I,H;for(const[re,Fe]of c)i.indexOf(re)>=0&&(I=re,h[re]=Fe(a,s),H=C.plus(h),H>s?(h[re]--,(a=C.plus(h))>s&&(H=a,h[re]--,a=C.plus(h))):a=H);return[a,h,H,I]}(a,s,i);const re=s-h,Fe=i.filter(Gt=>["hours","minutes","seconds","milliseconds"].indexOf(Gt)>=0);0===Fe.length&&(I0?ur.fromMillis(re,c).shiftTo(...Fe).plus(Pt):Pt}(I?this:s,I?s:this,C,h);return I?Fe.negate():Fe}diffNow(s="milliseconds",i={}){return this.diff(yi.now(),s,i)}until(s){return this.isValid?Wr.fromDateTimes(this,s):this}hasSame(s,i,c){if(!this.isValid)return!1;const h=s.valueOf(),C=this.setZone(s.zone,{keepLocalTime:!0});return C.startOf(i,c)<=h&&h<=C.endOf(i,c)}equals(s){return this.isValid&&s.isValid&&this.valueOf()===s.valueOf()&&this.zone.equals(s.zone)&&this.loc.equals(s.loc)}toRelative(s={}){if(!this.isValid)return null;const i=s.base||yi.fromObject({},{zone:this.zone}),c=s.padding?thisi.valueOf(),Math.min)}static max(...s){if(!s.every(yi.isDateTime))throw new Pe("max requires all arguments be DateTimes");return ga(s,i=>i.valueOf(),Math.max)}static fromFormatExplain(s,i,c={}){const{locale:h=null,numberingSystem:C=null}=c;return Tn(Ri.fromOpts({locale:h,numberingSystem:C,defaultToEN:!0}),s,i)}static fromStringExplain(s,i,c={}){return yi.fromFormatExplain(s,i,c)}static buildFormatParser(s,i={}){const{locale:c=null,numberingSystem:h=null}=i,C=Ri.fromOpts({locale:c,numberingSystem:h,defaultToEN:!0});return new pn(C,s)}static fromFormatParser(s,i,c={}){if(Ci(s)||Ci(i))throw new Pe("fromFormatParser requires an input string and a format parser");const{locale:h=null,numberingSystem:C=null}=c,I=Ri.fromOpts({locale:h,numberingSystem:C,defaultToEN:!0});if(!I.equals(i.locale))throw new Pe(`fromFormatParser called with a locale of ${I}, but the format parser was created for ${i.locale}`);const{result:H,zone:re,specificOffset:Fe,invalidReason:Pt}=i.explainFromTokens(s);return Pt?yi.invalid(Pt):Er(H,re,c,`format ${i.format}`,s,Fe)}static get DATE_SHORT(){return ie}static get DATE_MED(){return ve}static get DATE_MED_WITH_WEEKDAY(){return le}static get DATE_FULL(){return Ce}static get DATE_HUGE(){return dt}static get TIME_SIMPLE(){return un}static get TIME_WITH_SECONDS(){return it}static get TIME_WITH_SHORT_OFFSET(){return It}static get TIME_WITH_LONG_OFFSET(){return Ft}static get TIME_24_SIMPLE(){return Rt}static get TIME_24_WITH_SECONDS(){return kn}static get TIME_24_WITH_SHORT_OFFSET(){return hi}static get TIME_24_WITH_LONG_OFFSET(){return qt}static get DATETIME_SHORT(){return we}static get DATETIME_SHORT_WITH_SECONDS(){return tt}static get DATETIME_MED(){return rt}static get DATETIME_MED_WITH_SECONDS(){return bt}static get DATETIME_MED_WITH_WEEKDAY(){return on}static get DATETIME_FULL(){return Q}static get DATETIME_FULL_WITH_SECONDS(){return T}static get DATETIME_HUGE(){return N}static get DATETIME_HUGE_WITH_SECONDS(){return $}}function eo(a){if(yi.isDateTime(a))return a;if(a&&a.valueOf&&Lr(a.valueOf()))return yi.fromJSDate(a);if(a&&"object"==typeof a)return yi.fromObject(a);throw new Pe(`Unknown datetime argument: ${a}, of type ${typeof a}`)}const Jo=new o.nKC("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function Qa(){return{useUtc:!1,firstDayOfWeek:0,defaultOutputCalendar:"gregory"}}});let ac=(()=>{class a extends Zt.MJ{constructor(i,c){super(),this._useUTC=!!c?.useUtc,this._firstDayOfWeek=c?.firstDayOfWeek||0,this._defaultOutputCalendar=c?.defaultOutputCalendar||"gregory",this.setLocale(i||yi.local().locale)}getYear(i){return i.year}getMonth(i){return i.month-1}getDate(i){return i.day}getDayOfWeek(i){return i.weekday}getMonthNames(i){return Gr.months(i,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){const i=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return function pl(a,s){const i=Array(a);for(let c=0;ci.format(yi.utc(2017,1,c+1).toJSDate()))}getDayOfWeekNames(i){const c=Gr.weekdays(i,{locale:this.locale});return c.unshift(c.pop()),c}getYearName(i){return i.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(i){return i.daysInMonth}clone(i){return yi.fromObject(i.toObject(),this._getOptions())}createDate(i,c,h){const C=this._getOptions();if(c<0||c>11)throw Error(`Invalid month index "${c}". Month index has to be between 0 and 11.`);if(h<1)throw Error(`Invalid date "${h}". Date has to be greater than 0.`);const I=this._useUTC?yi.utc(i,c+1,h,C):yi.local(i,c+1,h,C);if(!this.isValid(I))throw Error(`Invalid date "${h}". Reason: "${I.invalidReason}".`);return I}today(){const i=this._getOptions();return this._useUTC?yi.utc(i):yi.local(i)}parse(i,c){const h=this._getOptions();if("string"==typeof i&&i.length>0){const C=yi.fromISO(i,h);if(this.isValid(C))return C;const I=Array.isArray(c)?c:[c];if(!c.length)throw Error("Formats array must not be empty.");for(const H of I){const re=yi.fromFormat(i,H,h);if(this.isValid(re))return re}return this.invalid()}return"number"==typeof i?yi.fromMillis(i,h):i instanceof Date?yi.fromJSDate(i,h):i instanceof yi?yi.fromMillis(i.toMillis(),h):null}format(i,c){if(!this.isValid(i))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?i.setLocale(this.locale).setZone("utc").toFormat(c):i.setLocale(this.locale).toFormat(c)}addCalendarYears(i,c){return i.reconfigure(this._getOptions()).plus({years:c})}addCalendarMonths(i,c){return i.reconfigure(this._getOptions()).plus({months:c})}addCalendarDays(i,c){return i.reconfigure(this._getOptions()).plus({days:c})}toIso8601(i){return i.toISO()}deserialize(i){const c=this._getOptions();let h;if(i instanceof Date&&(h=yi.fromJSDate(i,c)),"string"==typeof i){if(!i)return null;h=yi.fromISO(i,c)}return h&&this.isValid(h)?h:super.deserialize(i)}isDateInstance(i){return i instanceof yi}isValid(i){return i.isValid}invalid(){return yi.invalid("Invalid Luxon DateTime object.")}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(Zt.Ju,8),o.KVO(Jo,8))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();var mi=v(9969);function E(a){return new o.wOt(3e3,!1)}function Ja(a){switch(a.length){case 0:return new mi.sf;case 1:return a[0];default:return new mi.ui(a)}}function Bh(a,s,i=new Map,c=new Map){const h=[],C=[];let I=-1,H=null;if(s.forEach(re=>{const Fe=re.get("offset"),Pt=Fe==I,Gt=Pt&&H||new Map;re.forEach((Hn,bn)=>{let Cn=bn,fi=Hn;if("offset"!==bn)switch(Cn=a.normalizePropertyName(Cn,h),fi){case mi.FX:fi=i.get(bn);break;case mi.kp:fi=c.get(bn);break;default:fi=a.normalizeStyleValue(bn,Cn,fi,h)}Gt.set(Cn,fi)}),Pt||C.push(Gt),H=Gt,I=Fe}),h.length)throw function gp(){return new o.wOt(3502,!1)}();return C}function Zs(a,s,i,c){switch(s){case"start":a.onStart(()=>c(i&&gu(i,"start",a)));break;case"done":a.onDone(()=>c(i&&gu(i,"done",a)));break;case"destroy":a.onDestroy(()=>c(i&&gu(i,"destroy",a)))}}function gu(a,s,i){const C=vu(a.element,a.triggerName,a.fromState,a.toState,s||a.phaseName,i.totalTime??a.totalTime,!!i.disabled),I=a._data;return null!=I&&(C._data=I),C}function vu(a,s,i,c,h="",C=0,I){return{element:a,triggerName:s,fromState:i,toState:c,phaseName:h,totalTime:C,disabled:!!I}}function Js(a,s,i){let c=a.get(s);return c||a.set(s,c=i),c}function Pc(a){const s=a.indexOf(":");return[a.substring(1,s),a.slice(s+1)]}const bd=typeof document>"u"?null:document.documentElement;function Hl(a){const s=a.parentNode||a.host||null;return s===bd?null:s}let ml=null,qa=!1;function Cd(a,s){for(;s;){if(s===a)return!0;s=Hl(s)}return!1}function yp(a,s,i){if(i)return Array.from(a.querySelectorAll(s));const c=a.querySelector(s);return c?[c]:[]}let Dd=(()=>{class a{validateStyleProperty(i){return function Gi(a){ml||(ml=function Ed(){return typeof document<"u"?document.body:null}()||{},qa=!!ml.style&&"WebkitAppearance"in ml.style);let s=!0;return ml.style&&!function Fc(a){return"ebkit"==a.substring(1,6)}(a)&&(s=a in ml.style,!s&&qa&&(s="Webkit"+a.charAt(0).toUpperCase()+a.slice(1)in ml.style)),s}(i)}containsElement(i,c){return Cd(i,c)}getParentElement(i){return Hl(i)}query(i,c,h){return yp(i,c,h)}computeStyle(i,c,h){return h||""}animate(i,c,h,C,I,H=[],re){return new mi.sf(h,C)}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();class xd{static#e=this.NOOP=new Dd}class _u{}const bp=1e3,Sd="ng-enter",yu="ng-leave",gn="ng-trigger",ar=".ng-trigger",Ad="ng-animating",bu=".ng-animating";function _r(a){if("number"==typeof a)return a;const s=a.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:wu(parseFloat(s[1]),s[2])}function wu(a,s){return"s"===s?a*bp:a}function xl(a,s,i){return a.hasOwnProperty("duration")?a:function Ba(a,s,i){let h,C=0,I="";if("string"==typeof a){const H=a.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===H)return s.push(E()),{duration:0,delay:0,easing:""};h=wu(parseFloat(H[1]),H[2]);const re=H[3];null!=re&&(C=wu(parseFloat(re),H[4]));const Fe=H[5];Fe&&(I=Fe)}else h=a;if(!i){let H=!1,re=s.length;h<0&&(s.push(function O(){return new o.wOt(3100,!1)}()),H=!0),C<0&&(s.push(function D(){return new o.wOt(3101,!1)}()),H=!0),H&&s.splice(re,0,E())}return{duration:h,delay:C,easing:I}}(a,s,i)}function Ua(a,s,i){s.forEach((c,h)=>{const C=Lc(h);i&&!i.has(h)&&i.set(h,a.style[C]),a.style[C]=c})}function uc(a,s){s.forEach((i,c)=>{const h=Lc(c);a.style[h]=""})}function Cu(a){return Array.isArray(a)?1==a.length?a[0]:(0,mi.K2)(a):a}const Id=new RegExp("{{\\s*(.+?)\\s*}}","g");function Md(a){let s=[];if("string"==typeof a){let i;for(;i=Id.exec(a);)s.push(i[1]);Id.lastIndex=0}return s}function Ao(a,s,i){const c=`${a}`,h=c.replace(Id,(C,I)=>{let H=s[I];return null==H&&(i.push(function Y(){return new o.wOt(3003,!1)}()),H=""),H.toString()});return h==c?a:h}const el=/-+([a-z0-9])/g;function Lc(a){return a.replace(el,(...s)=>s[1].toUpperCase())}function qs(a,s,i){switch(s.type){case mi.If.Trigger:return a.visitTrigger(s,i);case mi.If.State:return a.visitState(s,i);case mi.If.Transition:return a.visitTransition(s,i);case mi.If.Sequence:return a.visitSequence(s,i);case mi.If.Group:return a.visitGroup(s,i);case mi.If.Animate:return a.visitAnimate(s,i);case mi.If.Keyframes:return a.visitKeyframes(s,i);case mi.If.Style:return a.visitStyle(s,i);case mi.If.Reference:return a.visitReference(s,i);case mi.If.AnimateChild:return a.visitAnimateChild(s,i);case mi.If.AnimateRef:return a.visitAnimateRef(s,i);case mi.If.Query:return a.visitQuery(s,i);case mi.If.Stagger:return a.visitStagger(s,i);default:throw function Se(){return new o.wOt(3004,!1)}()}}function Du(a,s){return window.getComputedStyle(a)[s]}const Dp=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 dc extends _u{normalizePropertyName(s,i){return Lc(s)}normalizeStyleValue(s,i,c,h){let C="";const I=c.toString().trim();if(Dp.has(i)&&0!==c&&"0"!==c)if("number"==typeof c)C="px";else{const H=c.match(/^[+-]?[\d\.]+([a-z]*)$/);H&&0==H[1].length&&h.push(function ut(){return new o.wOt(3005,!1)}())}return I+C}}const hc="*";const Sl=new Set(["true","1"]),Bc=new Set(["false","0"]);function es(a,s){const i=Sl.has(a)||Bc.has(a),c=Sl.has(s)||Bc.has(s);return(h,C)=>{let I=a==hc||a==h,H=s==hc||s==C;return!I&&i&&"boolean"==typeof h&&(I=h?Sl.has(a):Bc.has(a)),!H&&c&&"boolean"==typeof C&&(H=C?Sl.has(s):Bc.has(s)),I&&H}}const to=new RegExp("s*:selfs*,?","g");function Su(a,s,i,c){return new Wh(a).build(s,i,c)}class Wh{constructor(s){this._driver=s}build(s,i,c){const h=new Gh(i);return this._resetContextStyleTimingState(h),qs(this,Cu(s),h)}_resetContextStyleTimingState(s){s.currentQuerySelector="",s.collectedStyles=new Map,s.collectedStyles.set("",new Map),s.currentTime=0}visitTrigger(s,i){let c=i.queryCount=0,h=i.depCount=0;const C=[],I=[];return"@"==s.name.charAt(0)&&i.errors.push(function sn(){return new o.wOt(3006,!1)}()),s.definitions.forEach(H=>{if(this._resetContextStyleTimingState(i),H.type==mi.If.State){const re=H,Fe=re.name;Fe.toString().split(/\s*,\s*/).forEach(Pt=>{re.name=Pt,C.push(this.visitState(re,i))}),re.name=Fe}else if(H.type==mi.If.Transition){const re=this.visitTransition(H,i);c+=re.queryCount,h+=re.depCount,I.push(re)}else i.errors.push(function Kt(){return new o.wOt(3007,!1)}())}),{type:mi.If.Trigger,name:s.name,states:C,transitions:I,queryCount:c,depCount:h,options:null}}visitState(s,i){const c=this.visitStyle(s.styles,i),h=s.options&&s.options.params||null;if(c.containsDynamicStyles){const C=new Set,I=h||{};c.styles.forEach(H=>{H instanceof Map&&H.forEach(re=>{Md(re).forEach(Fe=>{I.hasOwnProperty(Fe)||C.add(Fe)})})}),C.size&&i.errors.push(function ti(){return new o.wOt(3008,!1)}(0,C.values()))}return{type:mi.If.State,name:s.name,style:c,options:h?{params:h}:null}}visitTransition(s,i){i.queryCount=0,i.depCount=0;const c=qs(this,Cu(s.animation),i),h=function Hh(a,s){const i=[];return"string"==typeof a?a.split(/\s*,\s*/).forEach(c=>function Rd(a,s,i){if(":"==a[0]){const re=function $h(a,s){switch(a){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,c)=>parseFloat(c)>parseFloat(i);case":decrement":return(i,c)=>parseFloat(c) *"}}(a,i);if("function"==typeof re)return void s.push(re);a=re}const c=a.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==c||c.length<4)return i.push(function lc(){return new o.wOt(3015,!1)}()),s;const h=c[1],C=c[2],I=c[3];s.push(es(h,I)),"<"==C[0]&&(h!=hc||I!=hc)&&s.push(es(I,h))}(c,i,s)):i.push(a),i}(s.expr,i.errors);return{type:mi.If.Transition,matchers:h,animation:c,queryCount:i.queryCount,depCount:i.depCount,options:vl(s.options)}}visitSequence(s,i){return{type:mi.If.Sequence,steps:s.steps.map(c=>qs(this,c,i)),options:vl(s.options)}}visitGroup(s,i){const c=i.currentTime;let h=0;const C=s.steps.map(I=>{i.currentTime=c;const H=qs(this,I,i);return h=Math.max(h,i.currentTime),H});return i.currentTime=h,{type:mi.If.Group,steps:C,options:vl(s.options)}}visitAnimate(s,i){const c=function nl(a,s){if(a.hasOwnProperty("duration"))return a;if("number"==typeof a)return fc(xl(a,s).duration,0,"");const i=a;if(i.split(/\s+/).some(C=>"{"==C.charAt(0)&&"{"==C.charAt(1))){const C=fc(0,0,"");return C.dynamic=!0,C.strValue=i,C}const h=xl(i,s);return fc(h.duration,h.delay,h.easing)}(s.timings,i.errors);i.currentAnimateTimings=c;let h,C=s.styles?s.styles:(0,mi.iF)({});if(C.type==mi.If.Keyframes)h=this.visitKeyframes(C,i);else{let I=s.styles,H=!1;if(!I){H=!0;const Fe={};c.easing&&(Fe.easing=c.easing),I=(0,mi.iF)(Fe)}i.currentTime+=c.duration+c.delay;const re=this.visitStyle(I,i);re.isEmptyStep=H,h=re}return i.currentAnimateTimings=null,{type:mi.If.Animate,timings:c,style:h,options:null}}visitStyle(s,i){const c=this._makeStyleAst(s,i);return this._validateStyleAst(c,i),c}_makeStyleAst(s,i){const c=[],h=Array.isArray(s.styles)?s.styles:[s.styles];for(let H of h)"string"==typeof H?H===mi.kp?c.push(H):i.errors.push(new o.wOt(3002,!1)):c.push(new Map(Object.entries(H)));let C=!1,I=null;return c.forEach(H=>{if(H instanceof Map&&(H.has("easing")&&(I=H.get("easing"),H.delete("easing")),!C))for(let re of H.values())if(re.toString().indexOf("{{")>=0){C=!0;break}}),{type:mi.If.Style,styles:c,easing:I,offset:s.offset,containsDynamicStyles:C,options:null}}_validateStyleAst(s,i){const c=i.currentAnimateTimings;let h=i.currentTime,C=i.currentTime;c&&C>0&&(C-=c.duration+c.delay),s.styles.forEach(I=>{"string"!=typeof I&&I.forEach((H,re)=>{const Fe=i.collectedStyles.get(i.currentQuerySelector),Pt=Fe.get(re);let Gt=!0;Pt&&(C!=h&&C>=Pt.startTime&&h<=Pt.endTime&&(i.errors.push(function io(){return new o.wOt(3010,!1)}()),Gt=!1),C=Pt.startTime),Gt&&Fe.set(re,{startTime:C,endTime:h}),i.options&&function Ep(a,s,i){const c=s.params||{},h=Md(a);h.length&&h.forEach(C=>{c.hasOwnProperty(C)||i.push(function R(){return new o.wOt(3001,!1)}())})}(H,i.options,i.errors)})})}visitKeyframes(s,i){const c={type:mi.If.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(function ya(){return new o.wOt(3011,!1)}()),c;let C=0;const I=[];let H=!1,re=!1,Fe=0;const Pt=s.steps.map(Vi=>{const $i=this._makeStyleAst(Vi,i);let ro=null!=$i.offset?$i.offset:function Vc(a){if("string"==typeof a)return null;let s=null;if(Array.isArray(a))a.forEach(i=>{if(i instanceof Map&&i.has("offset")){const c=i;s=parseFloat(c.get("offset")),c.delete("offset")}});else if(a instanceof Map&&a.has("offset")){const i=a;s=parseFloat(i.get("offset")),i.delete("offset")}return s}($i.styles),go=0;return null!=ro&&(C++,go=$i.offset=ro),re=re||go<0||go>1,H=H||go0&&C{const ro=Hn>0?$i==bn?1:Hn*$i:I[$i],go=ro*Fi;i.currentTime=Cn+fi.delay+go,fi.duration=go,this._validateStyleAst(Vi,i),Vi.offset=ro,c.styles.push(Vi)}),c}visitReference(s,i){return{type:mi.If.Reference,animation:qs(this,Cu(s.animation),i),options:vl(s.options)}}visitAnimateChild(s,i){return i.depCount++,{type:mi.If.AnimateChild,options:vl(s.options)}}visitAnimateRef(s,i){return{type:mi.If.AnimateRef,animation:this.visitReference(s.animation,i),options:vl(s.options)}}visitQuery(s,i){const c=i.currentQuerySelector,h=s.options||{};i.queryCount++,i.currentQuery=s;const[C,I]=function Au(a){const s=!!a.split(/\s*,\s*/).find(i=>":self"==i);return s&&(a=a.replace(to,"")),a=a.replace(/@\*/g,ar).replace(/@\w+/g,i=>ar+"-"+i.slice(1)).replace(/:animating/g,bu),[a,s]}(s.selector);i.currentQuerySelector=c.length?c+" "+C:C,Js(i.collectedStyles,i.currentQuerySelector,new Map);const H=qs(this,Cu(s.animation),i);return i.currentQuery=null,i.currentQuerySelector=c,{type:mi.If.Query,selector:C,limit:h.limit||0,optional:!!h.optional,includeSelf:I,animation:H,originalSelector:s.selector,options:vl(s.options)}}visitStagger(s,i){i.currentQuery||i.errors.push(function Dl(){return new o.wOt(3013,!1)}());const c="full"===s.timings?{duration:0,delay:0,easing:"full"}:xl(s.timings,i.errors,!0);return{type:mi.If.Stagger,animation:qs(this,Cu(s.animation),i),timings:c,options:null}}}class Gh{constructor(s){this.errors=s,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function vl(a){return a?(a={...a}).params&&(a.params=function Uc(a){return a?{...a}:null}(a.params)):a={},a}function fc(a,s,i){return{duration:a,delay:s,easing:i}}function jc(a,s,i,c,h,C,I=null,H=!1){return{type:1,element:a,keyframes:s,preStyleProps:i,postStyleProps:c,duration:h,delay:C,totalTime:h+C,easing:I,subTimeline:H}}class Al{constructor(){this._map=new Map}get(s){return this._map.get(s)||[]}append(s,i){let c=this._map.get(s);c||this._map.set(s,c=[]),c.push(...i)}has(s){return this._map.has(s)}clear(){this._map.clear()}}const Kh=new RegExp(":enter","g"),zl=new RegExp(":leave","g");function Wl(a,s,i,c,h,C=new Map,I=new Map,H,re,Fe=[]){return(new Nd).buildKeyframes(a,s,i,c,h,C,I,H,re,Fe)}class Nd{buildKeyframes(s,i,c,h,C,I,H,re,Fe,Pt=[]){Fe=Fe||new Al;const Gt=new Gl(s,i,Fe,h,C,Pt,[]);Gt.options=re;const Hn=re.delay?_r(re.delay):0;Gt.currentTimeline.delayNextStep(Hn),Gt.currentTimeline.setStyles([I],null,Gt.errors,re),qs(this,c,Gt);const bn=Gt.timelines.filter(Cn=>Cn.containsAnimation());if(bn.length&&H.size){let Cn;for(let fi=bn.length-1;fi>=0;fi--){const Fi=bn[fi];if(Fi.element===i){Cn=Fi;break}}Cn&&!Cn.allowOnlyTimelineStyles()&&Cn.setStyles([H],null,Gt.errors,re)}return bn.length?bn.map(Cn=>Cn.buildKeyframes()):[jc(i,[],[],[],0,Hn,"",!1)]}visitTrigger(s,i){}visitState(s,i){}visitTransition(s,i){}visitAnimateChild(s,i){const c=i.subInstructions.get(i.element);if(c){const h=i.createSubContext(s.options),C=i.currentTimeline.currentTime,I=this._visitSubInstructions(c,h,h.options);C!=I&&i.transformIntoNewTimeline(I)}i.previousNode=s}visitAnimateRef(s,i){const c=i.createSubContext(s.options);c.transformIntoNewTimeline(),this._applyAnimationRefDelays([s.options,s.animation.options],i,c),this.visitReference(s.animation,c),i.transformIntoNewTimeline(c.currentTimeline.currentTime),i.previousNode=s}_applyAnimationRefDelays(s,i,c){for(const h of s){const C=h?.delay;if(C){const I="number"==typeof C?C:_r(Ao(C,h?.params??{},i.errors));c.delayNextStep(I)}}}_visitSubInstructions(s,i,c){let C=i.currentTimeline.currentTime;const I=null!=c.duration?_r(c.duration):null,H=null!=c.delay?_r(c.delay):null;return 0!==I&&s.forEach(re=>{const Fe=i.appendInstructionToTimeline(re,I,H);C=Math.max(C,Fe.duration+Fe.delay)}),C}visitReference(s,i){i.updateOptions(s.options,!0),qs(this,s.animation,i),i.previousNode=s}visitSequence(s,i){const c=i.subContextCount;let h=i;const C=s.options;if(C&&(C.params||C.delay)&&(h=i.createSubContext(C),h.transformIntoNewTimeline(),null!=C.delay)){h.previousNode.type==mi.If.Style&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=pc);const I=_r(C.delay);h.delayNextStep(I)}s.steps.length&&(s.steps.forEach(I=>qs(this,I,h)),h.currentTimeline.applyStylesToKeyframe(),h.subContextCount>c&&h.transformIntoNewTimeline()),i.previousNode=s}visitGroup(s,i){const c=[];let h=i.currentTimeline.currentTime;const C=s.options&&s.options.delay?_r(s.options.delay):0;s.steps.forEach(I=>{const H=i.createSubContext(s.options);C&&H.delayNextStep(C),qs(this,I,H),h=Math.max(h,H.currentTimeline.currentTime),c.push(H.currentTimeline)}),c.forEach(I=>i.currentTimeline.mergeTimelineCollectedStyles(I)),i.transformIntoNewTimeline(h),i.previousNode=s}_visitTiming(s,i){if(s.dynamic){const c=s.strValue;return xl(i.params?Ao(c,i.params,i.errors):c,i.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}}visitAnimate(s,i){const c=i.currentAnimateTimings=this._visitTiming(s.timings,i),h=i.currentTimeline;c.delay&&(i.incrementTime(c.delay),h.snapshotCurrentStyles());const C=s.style;C.type==mi.If.Keyframes?this.visitKeyframes(C,i):(i.incrementTime(c.duration),this.visitStyle(C,i),h.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=s}visitStyle(s,i){const c=i.currentTimeline,h=i.currentAnimateTimings;!h&&c.hasCurrentStyleProperties()&&c.forwardFrame();const C=h&&h.easing||s.easing;s.isEmptyStep?c.applyEmptyStep(C):c.setStyles(s.styles,C,i.errors,i.options),i.previousNode=s}visitKeyframes(s,i){const c=i.currentAnimateTimings,h=i.currentTimeline.duration,C=c.duration,H=i.createSubContext().currentTimeline;H.easing=c.easing,s.styles.forEach(re=>{H.forwardTime((re.offset||0)*C),H.setStyles(re.styles,re.easing,i.errors,i.options),H.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(H),i.transformIntoNewTimeline(h+C),i.previousNode=s}visitQuery(s,i){const c=i.currentTimeline.currentTime,h=s.options||{},C=h.delay?_r(h.delay):0;C&&(i.previousNode.type===mi.If.Style||0==c&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=pc);let I=c;const H=i.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!h.optional,i.errors);i.currentQueryTotal=H.length;let re=null;H.forEach((Fe,Pt)=>{i.currentQueryIndex=Pt;const Gt=i.createSubContext(s.options,Fe);C&&Gt.delayNextStep(C),Fe===i.element&&(re=Gt.currentTimeline),qs(this,s.animation,Gt),Gt.currentTimeline.applyStylesToKeyframe(),I=Math.max(I,Gt.currentTimeline.currentTime)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(I),re&&(i.currentTimeline.mergeTimelineCollectedStyles(re),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=s}visitStagger(s,i){const c=i.parentContext,h=i.currentTimeline,C=s.timings,I=Math.abs(C.duration),H=I*(i.currentQueryTotal-1);let re=I*i.currentQueryIndex;switch(C.duration<0?"reverse":C.easing){case"reverse":re=H-re;break;case"full":re=c.currentStaggerTime}const Pt=i.currentTimeline;re&&Pt.delayNextStep(re);const Gt=Pt.currentTime;qs(this,s.animation,i),i.previousNode=s,c.currentStaggerTime=h.currentTime-Gt+(h.startTime-c.currentTimeline.startTime)}}const pc={};class Gl{constructor(s,i,c,h,C,I,H,re){this._driver=s,this.element=i,this.subInstructions=c,this._enterClassName=h,this._leaveClassName=C,this.errors=I,this.timelines=H,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=re||new Mu(this._driver,i,0),H.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(s,i){if(!s)return;const c=s;let h=this.options;null!=c.duration&&(h.duration=_r(c.duration)),null!=c.delay&&(h.delay=_r(c.delay));const C=c.params;if(C){let I=h.params;I||(I=this.options.params={}),Object.keys(C).forEach(H=>{(!i||!I.hasOwnProperty(H))&&(I[H]=Ao(C[H],I,this.errors))})}}_copyOptions(){const s={};if(this.options){const i=this.options.params;if(i){const c=s.params={};Object.keys(i).forEach(h=>{c[h]=i[h]})}}return s}createSubContext(s=null,i,c){const h=i||this.element,C=new Gl(this._driver,h,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(h,c||0));return C.previousNode=this.previousNode,C.currentAnimateTimings=this.currentAnimateTimings,C.options=this._copyOptions(),C.updateOptions(s),C.currentQueryIndex=this.currentQueryIndex,C.currentQueryTotal=this.currentQueryTotal,C.parentContext=this,this.subContextCount++,C}transformIntoNewTimeline(s){return this.previousNode=pc,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(s,i,c){const h={duration:i??s.duration,delay:this.currentTimeline.currentTime+(c??0)+s.delay,easing:""},C=new Ap(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,h,s.stretchStartingKeyframe);return this.timelines.push(C),h}incrementTime(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)}delayNextStep(s){s>0&&this.currentTimeline.delayNextStep(s)}invokeQuery(s,i,c,h,C,I){let H=[];if(h&&H.push(this.element),s.length>0){s=(s=s.replace(Kh,"."+this._enterClassName)).replace(zl,"."+this._leaveClassName);let Fe=this._driver.query(this.element,s,1!=c);0!==c&&(Fe=c<0?Fe.slice(Fe.length+c,Fe.length):Fe.slice(0,c)),H.push(...Fe)}return!C&&0==H.length&&I.push(function vd(){return new o.wOt(3014,!1)}()),H}}class Mu{constructor(s,i,c,h){this._driver=s,this.element=i,this.startTime=c,this._elementTimelineStylesLookup=h,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(s){const i=1===this._keyframes.size&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+s),i&&this.snapshotCurrentStyles()):this.startTime+=s}fork(s,i){return this.applyStylesToKeyframe(),new Mu(this._driver,s,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()}_updateStyle(s,i){this._localTimelineStyles.set(s,i),this._globalTimelineStyles.set(s,i),this._styleSummary.set(s,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(s){s&&this._previousKeyframe.set("easing",s);for(let[i,c]of this._globalTimelineStyles)this._backFill.set(i,c||mi.kp),this._currentKeyframe.set(i,mi.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(s,i,c,h){i&&this._previousKeyframe.set("easing",i);const C=h&&h.params||{},I=function Tp(a,s){const i=new Map;let c;return a.forEach(h=>{if("*"===h){c??=s.keys();for(let C of c)i.set(C,mi.kp)}else for(let[C,I]of h)i.set(C,I)}),i}(s,this._globalTimelineStyles);for(let[H,re]of I){const Fe=Ao(re,C,c);this._pendingStyles.set(H,Fe),this._localTimelineStyles.has(H)||this._backFill.set(H,this._globalTimelineStyles.get(H)??mi.kp),this._updateStyle(H,Fe)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((s,i)=>{this._currentKeyframe.set(i,s)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((s,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,s)}))}snapshotCurrentStyles(){for(let[s,i]of this._localTimelineStyles)this._pendingStyles.set(s,i),this._updateStyle(s,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const s=[];for(let i in this._currentKeyframe)s.push(i);return s}mergeTimelineCollectedStyles(s){s._styleSummary.forEach((i,c)=>{const h=this._styleSummary.get(c);(!h||i.time>h.time)&&this._updateStyle(c,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const s=new Set,i=new Set,c=1===this._keyframes.size&&0===this.duration;let h=[];this._keyframes.forEach((H,re)=>{const Fe=new Map([...this._backFill,...H]);Fe.forEach((Pt,Gt)=>{Pt===mi.FX?s.add(Gt):Pt===mi.kp&&i.add(Gt)}),c||Fe.set("offset",re/this.duration),h.push(Fe)});const C=[...s.values()],I=[...i.values()];if(c){const H=h[0],re=new Map(H);H.set("offset",0),re.set("offset",1),h=[H,re]}return jc(this.element,h,C,I,this.duration,this.startTime,this.easing,!1)}}class Ap extends Mu{constructor(s,i,c,h,C,I,H=!1){super(s,i,I.delay),this.keyframes=c,this.preStyleProps=h,this.postStyleProps=C,this._stretchStartingKeyframe=H,this.timings={duration:I.duration,delay:I.delay,easing:I.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let s=this.keyframes,{delay:i,duration:c,easing:h}=this.timings;if(this._stretchStartingKeyframe&&i){const C=[],I=c+i,H=i/I,re=new Map(s[0]);re.set("offset",0),C.push(re);const Fe=new Map(s[0]);Fe.set("offset",Ou(H)),C.push(Fe);const Pt=s.length-1;for(let Gt=1;Gt<=Pt;Gt++){let Hn=new Map(s[Gt]);const bn=Hn.get("offset");Hn.set("offset",Ou((i+bn*c)/I)),C.push(Hn)}c=I,i=0,h="",s=C}return jc(this.element,s,this.preStyleProps,this.postStyleProps,c,i,h,!0)}}function Ou(a,s=3){const i=Math.pow(10,s-1);return Math.round(a*i)/i}function Pd(a,s,i,c,h,C,I,H,re,Fe,Pt,Gt,Hn){return{type:0,element:a,triggerName:s,isRemovalTransition:h,fromState:i,fromStyles:C,toState:c,toStyles:I,timelines:H,queriedElements:re,preStyleProps:Fe,postStyleProps:Pt,totalTime:Gt,errors:Hn}}const Hc={};class il{constructor(s,i,c){this._triggerName=s,this.ast=i,this._stateStyles=c}match(s,i,c,h){return function $c(a,s,i,c,h){return a.some(C=>C(s,i,c,h))}(this.ast.matchers,s,i,c,h)}buildStyles(s,i,c){let h=this._stateStyles.get("*");return void 0!==s&&(h=this._stateStyles.get(s?.toString())||h),h?h.buildStyles(i,c):new Map}build(s,i,c,h,C,I,H,re,Fe,Pt){const Gt=[],Hn=this.ast.options&&this.ast.options.params||Hc,Cn=this.buildStyles(c,H&&H.params||Hc,Gt),fi=re&&re.params||Hc,Fi=this.buildStyles(h,fi,Gt),Vi=new Set,$i=new Map,ro=new Map,go="void"===h,nc={params:Yh(fi,Hn),delay:this.ast.options?.delay},sl=Pt?[]:Wl(s,i,this.ast.animation,C,I,Cn,Fi,nc,Fe,Gt);let ia=0;return sl.forEach(Ps=>{ia=Math.max(Ps.duration+Ps.delay,ia)}),Gt.length?Pd(i,this._triggerName,c,h,go,Cn,Fi,[],[],$i,ro,ia,Gt):(sl.forEach(Ps=>{const Sa=Ps.element,wl=Js($i,Sa,new Set);Ps.preStyleProps.forEach(fd=>wl.add(fd));const eg=Js(ro,Sa,new Set);Ps.postStyleProps.forEach(fd=>eg.add(fd)),Sa!==i&&Vi.add(Sa)}),Pd(i,this._triggerName,c,h,go,Cn,Fi,sl,[...Vi.values()],$i,ro,ia))}}function Yh(a,s){const i={...s};return Object.entries(a).forEach(([c,h])=>{null!=h&&(i[c]=h)}),i}class mc{constructor(s,i,c){this.styles=s,this.defaultParams=i,this.normalizer=c}buildStyles(s,i){const c=new Map,h=Yh(s,this.defaultParams);return this.styles.styles.forEach(C=>{"string"!=typeof C&&C.forEach((I,H)=>{I&&(I=Ao(I,h,i));const re=this.normalizer.normalizePropertyName(H,i);I=this.normalizer.normalizeStyleValue(H,re,I,i),c.set(H,I)})}),c}}class Fd{constructor(s,i,c){this.name=s,this.ast=i,this._normalizer=c,this.transitionFactories=[],this.states=new Map,i.states.forEach(h=>{this.states.set(h.name,new mc(h.style,h.options&&h.options.params||{},c))}),Mp(this.states,"true","1"),Mp(this.states,"false","0"),i.transitions.forEach(h=>{this.transitionFactories.push(new il(s,h,this.states))}),this.fallbackTransition=function gc(a,s){return new il(a,{type:mi.If.Transition,animation:{type:mi.If.Sequence,steps:[],options:null},matchers:[(I,H)=>!0],options:null,queryCount:0,depCount:0},s)}(s,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(s,i,c,h){return this.transitionFactories.find(I=>I.match(s,i,c,h))||null}matchStyles(s,i,c){return this.fallbackTransition.buildStyles(s,i,c)}}function Mp(a,s,i){a.has(s)?a.has(i)||a.set(i,a.get(s)):a.has(i)&&a.set(s,a.get(i))}const Ld=new Al;class Qh{constructor(s,i,c){this.bodyNode=s,this._driver=i,this._normalizer=c,this._animations=new Map,this._playersById=new Map,this.players=[]}register(s,i){const c=[],C=Su(this._driver,i,c,[]);if(c.length)throw function Za(){return new o.wOt(3503,!1)}();this._animations.set(s,C)}_buildPlayer(s,i,c){const h=s.element,C=Bh(this._normalizer,s.keyframes,i,c);return this._driver.animate(h,C,s.duration,s.delay,s.easing,[],!0)}create(s,i,c={}){const h=[],C=this._animations.get(s);let I;const H=new Map;if(C?(I=Wl(this._driver,i,C,Sd,yu,new Map,new Map,c,Ld,h),I.forEach(Pt=>{const Gt=Js(H,Pt.element,new Map);Pt.postStyleProps.forEach(Hn=>Gt.set(Hn,null))})):(h.push(function Fh(){return new o.wOt(3300,!1)}()),I=[]),h.length)throw function Lh(){return new o.wOt(3504,!1)}();H.forEach((Pt,Gt)=>{Pt.forEach((Hn,bn)=>{Pt.set(bn,this._driver.computeStyle(Gt,bn,mi.kp))})});const Fe=Ja(I.map(Pt=>{const Gt=H.get(Pt.element);return this._buildPlayer(Pt,new Map,Gt)}));return this._playersById.set(s,Fe),Fe.onDestroy(()=>this.destroy(s)),this.players.push(Fe),Fe}destroy(s){const i=this._getPlayer(s);i.destroy(),this._playersById.delete(s);const c=this.players.indexOf(i);c>=0&&this.players.splice(c,1)}_getPlayer(s){const i=this._playersById.get(s);if(!i)throw function Mr(){return new o.wOt(3301,!1)}();return i}listen(s,i,c,h){const C=vu(i,"","","");return Zs(this._getPlayer(s),c,C,h),()=>{}}command(s,i,c,h){if("register"==c)return void this.register(s,h[0]);if("create"==c)return void this.create(s,i,h[0]||{});const C=this._getPlayer(s);switch(c){case"play":C.play();break;case"pause":C.pause();break;case"reset":C.reset();break;case"restart":C.restart();break;case"finish":C.finish();break;case"init":C.init();break;case"setPosition":C.setPosition(parseFloat(h[0]));break;case"destroy":this.destroy(s)}}}const Zh="ng-animate-queued",Ru="ng-animate-disabled",Nu=[],Pu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Op={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},wa="__ng_removed";class Fu{get params(){return this.options.params}constructor(s,i=""){this.namespaceId=i;const c=s&&s.hasOwnProperty("value");if(this.value=function Jh(a){return a??null}(c?s.value:s),c){const{value:C,...I}=s;this.options=I}else this.options={};this.options.params||(this.options.params={})}absorbOptions(s){const i=s.params;if(i){const c=this.options.params;Object.keys(i).forEach(h=>{null==c[h]&&(c[h]=i[h])})}}}const vc="void",_c=new Fu(vc);class Rp{constructor(s,i,c){this.id=s,this.hostElement=i,this._engine=c,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,Rs(i,this._hostClassName)}listen(s,i,c,h){if(!this._triggers.has(i))throw function yd(){return new o.wOt(3302,!1)}();if(null==c||0==c.length)throw function kc(){return new o.wOt(3303,!1)}();if(!function yc(a){return"start"==a||"done"==a}(c))throw function Os(){return new o.wOt(3400,!1)}();const C=Js(this._elementListeners,s,[]),I={name:i,phase:c,callback:h};C.push(I);const H=Js(this._engine.statesByElement,s,new Map);return H.has(i)||(Rs(s,gn),Rs(s,gn+"-"+i),H.set(i,_c)),()=>{this._engine.afterFlush(()=>{const re=C.indexOf(I);re>=0&&C.splice(re,1),this._triggers.has(i)||H.delete(i)})}}register(s,i){return!this._triggers.has(s)&&(this._triggers.set(s,i),!0)}_getTrigger(s){const i=this._triggers.get(s);if(!i)throw function vp(){return new o.wOt(3401,!1)}();return i}trigger(s,i,c,h=!0){const C=this._getTrigger(i),I=new _l(this.id,i,s);let H=this._engine.statesByElement.get(s);H||(Rs(s,gn),Rs(s,gn+"-"+i),this._engine.statesByElement.set(s,H=new Map));let re=H.get(i);const Fe=new Fu(c,this.id);if(!(c&&c.hasOwnProperty("value"))&&re&&Fe.absorbOptions(re.options),H.set(i,Fe),re||(re=_c),Fe.value!==vc&&re.value===Fe.value){if(!function Pp(a,s){const i=Object.keys(a),c=Object.keys(s);if(i.length!=c.length)return!1;for(let h=0;h{uc(s,Fi),Ua(s,Vi)})}return}const Hn=Js(this._engine.playersByElement,s,[]);Hn.forEach(fi=>{fi.namespaceId==this.id&&fi.triggerName==i&&fi.queued&&fi.destroy()});let bn=C.matchTransition(re.value,Fe.value,s,Fe.params),Cn=!1;if(!bn){if(!h)return;bn=C.fallbackTransition,Cn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:i,transition:bn,fromState:re,toState:Fe,player:I,isFallbackTransition:Cn}),Cn||(Rs(s,Zh),I.onStart(()=>{Tl(s,Zh)})),I.onDone(()=>{let fi=this.players.indexOf(I);fi>=0&&this.players.splice(fi,1);const Fi=this._engine.playersByElement.get(s);if(Fi){let Vi=Fi.indexOf(I);Vi>=0&&Fi.splice(Vi,1)}}),this.players.push(I),Hn.push(I),I}deregister(s){this._triggers.delete(s),this._engine.statesByElement.forEach(i=>i.delete(s)),this._elementListeners.forEach((i,c)=>{this._elementListeners.set(c,i.filter(h=>h.name!=s))})}clearElementCache(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);const i=this._engine.playersByElement.get(s);i&&(i.forEach(c=>c.destroy()),this._engine.playersByElement.delete(s))}_signalRemovalForInnerTriggers(s,i){const c=this._engine.driver.query(s,ar,!0);c.forEach(h=>{if(h[wa])return;const C=this._engine.fetchNamespacesByElement(h);C.size?C.forEach(I=>I.triggerLeaveAnimation(h,i,!1,!0)):this.clearElementCache(h)}),this._engine.afterFlushAnimationsDone(()=>c.forEach(h=>this.clearElementCache(h)))}triggerLeaveAnimation(s,i,c,h){const C=this._engine.statesByElement.get(s),I=new Map;if(C){const H=[];if(C.forEach((re,Fe)=>{if(I.set(Fe,re.value),this._triggers.has(Fe)){const Pt=this.trigger(s,Fe,vc,h);Pt&&H.push(Pt)}}),H.length)return this._engine.markElementAsRemoved(this.id,s,!0,i,I),c&&Ja(H).onDone(()=>this._engine.processLeaveNode(s)),!0}return!1}prepareLeaveAnimationListeners(s){const i=this._elementListeners.get(s),c=this._engine.statesByElement.get(s);if(i&&c){const h=new Set;i.forEach(C=>{const I=C.name;if(h.has(I))return;h.add(I);const re=this._triggers.get(I).fallbackTransition,Fe=c.get(I)||_c,Pt=new Fu(vc),Gt=new _l(this.id,I,s);this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:I,transition:re,fromState:Fe,toState:Pt,player:Gt,isFallbackTransition:!0})})}}removeNode(s,i){const c=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,i),this.triggerLeaveAnimation(s,i,!0))return;let h=!1;if(c.totalAnimations){const C=c.players.length?c.playersByQueriedElement.get(s):[];if(C&&C.length)h=!0;else{let I=s;for(;I=I.parentNode;)if(c.statesByElement.get(I)){h=!0;break}}}if(this.prepareLeaveAnimationListeners(s),h)c.markElementAsRemoved(this.id,s,!1,i);else{const C=s[wa];(!C||C===Pu)&&(c.afterFlush(()=>this.clearElementCache(s)),c.destroyInnerAnimations(s),c._onRemovalComplete(s,i))}}insertNode(s,i){Rs(s,this._hostClassName)}drainQueuedTransitions(s){const i=[];return this._queue.forEach(c=>{const h=c.player;if(h.destroyed)return;const C=c.element,I=this._elementListeners.get(C);I&&I.forEach(H=>{if(H.name==c.triggerName){const re=vu(C,c.triggerName,c.fromState.value,c.toState.value);re._data=s,Zs(c.player,H.phase,re,H.callback)}}),h.markedForDestroy?this._engine.afterFlush(()=>{h.destroy()}):i.push(c)}),this._queue=[],i.sort((c,h)=>{const C=c.transition.ast.depCount,I=h.transition.ast.depCount;return 0==C||0==I?C-I:this._engine.driver.containsElement(c.element,h.element)?1:-1})}destroy(s){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,s)}}class Lu{_onRemovalComplete(s,i){this.onRemovalComplete(s,i)}constructor(s,i,c){this.bodyNode=s,this.driver=i,this._normalizer=c,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(h,C)=>{}}get queuedPlayers(){const s=[];return this._namespaceList.forEach(i=>{i.players.forEach(c=>{c.queued&&s.push(c)})}),s}createNamespace(s,i){const c=new Rp(s,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(c,i):(this.newHostElements.set(i,c),this.collectEnterElement(i)),this._namespaceLookup[s]=c}_balanceNamespaceList(s,i){const c=this._namespaceList,h=this.namespacesByHostElement;if(c.length-1>=0){let I=!1,H=this.driver.getParentElement(i);for(;H;){const re=h.get(H);if(re){const Fe=c.indexOf(re);c.splice(Fe+1,0,s),I=!0;break}H=this.driver.getParentElement(H)}I||c.unshift(s)}else c.push(s);return h.set(i,s),s}register(s,i){let c=this._namespaceLookup[s];return c||(c=this.createNamespace(s,i)),c}registerTrigger(s,i,c){let h=this._namespaceLookup[s];h&&h.register(i,c)&&this.totalAnimations++}destroy(s,i){s&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const c=this._fetchNamespace(s);this.namespacesByHostElement.delete(c.hostElement);const h=this._namespaceList.indexOf(c);h>=0&&this._namespaceList.splice(h,1),c.destroy(i),delete this._namespaceLookup[s]}))}_fetchNamespace(s){return this._namespaceLookup[s]}fetchNamespacesByElement(s){const i=new Set,c=this.statesByElement.get(s);if(c)for(let h of c.values())if(h.namespaceId){const C=this._fetchNamespace(h.namespaceId);C&&i.add(C)}return i}trigger(s,i,c,h){if(Wc(i)){const C=this._fetchNamespace(s);if(C)return C.trigger(i,c,h),!0}return!1}insertNode(s,i,c,h){if(!Wc(i))return;const C=i[wa];if(C&&C.setForRemoval){C.setForRemoval=!1,C.setForMove=!0;const I=this.collectedLeaveElements.indexOf(i);I>=0&&this.collectedLeaveElements.splice(I,1)}if(s){const I=this._fetchNamespace(s);I&&I.insertNode(i,c)}h&&this.collectEnterElement(i)}collectEnterElement(s){this.collectedEnterElements.push(s)}markElementAsDisabled(s,i){i?this.disabledNodes.has(s)||(this.disabledNodes.add(s),Rs(s,Ru)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),Tl(s,Ru))}removeNode(s,i,c){if(Wc(i)){const h=s?this._fetchNamespace(s):null;h?h.removeNode(i,c):this.markElementAsRemoved(s,i,!1,c);const C=this.namespacesByHostElement.get(i);C&&C.id!==s&&C.removeNode(i,c)}else this._onRemovalComplete(i,c)}markElementAsRemoved(s,i,c,h,C){this.collectedLeaveElements.push(i),i[wa]={namespaceId:s,setForRemoval:h,hasAnimation:c,removedBeforeQueried:!1,previousTriggersValues:C}}listen(s,i,c,h,C){return Wc(i)?this._fetchNamespace(s).listen(i,c,h,C):()=>{}}_buildInstruction(s,i,c,h,C){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,c,h,s.fromState.options,s.toState.options,i,C)}destroyInnerAnimations(s){let i=this.driver.query(s,ar,!0);i.forEach(c=>this.destroyActiveAnimationsForElement(c)),0!=this.playersByQueriedElement.size&&(i=this.driver.query(s,bu,!0),i.forEach(c=>this.finishActiveQueriedAnimationOnElement(c)))}destroyActiveAnimationsForElement(s){const i=this.playersByElement.get(s);i&&i.forEach(c=>{c.queued?c.markedForDestroy=!0:c.destroy()})}finishActiveQueriedAnimationOnElement(s){const i=this.playersByQueriedElement.get(s);i&&i.forEach(c=>c.finish())}whenRenderingDone(){return new Promise(s=>{if(this.players.length)return Ja(this.players).onDone(()=>s());s()})}processLeaveNode(s){const i=s[wa];if(i&&i.setForRemoval){if(s[wa]=Pu,i.namespaceId){this.destroyInnerAnimations(s);const c=this._fetchNamespace(i.namespaceId);c&&c.clearElementCache(s)}this._onRemovalComplete(s,i.setForRemoval)}s.classList?.contains(Ru)&&this.markElementAsDisabled(s,!1),this.driver.query(s,".ng-animate-disabled",!0).forEach(c=>{this.markElementAsDisabled(c,!1)})}flush(s=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((c,h)=>this._balanceNamespaceList(c,h)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let c=0;cc()),this._flushFns=[],this._whenQuietFns.length){const c=this._whenQuietFns;this._whenQuietFns=[],i.length?Ja(i).onDone(()=>{c.forEach(h=>h())}):c.forEach(h=>h())}}reportError(s){throw function Nc(){return new o.wOt(3402,!1)}()}_flushAnimations(s,i){const c=new Al,h=[],C=new Map,I=[],H=new Map,re=new Map,Fe=new Map,Pt=new Set;this.disabledNodes.forEach(Bi=>{Pt.add(Bi);const Ki=this.driver.query(Bi,".ng-animate-queued",!0);for(let nr=0;nr{const nr=Sd+fi++;Cn.set(Ki,nr),Bi.forEach(jr=>Rs(jr,nr))});const Fi=[],Vi=new Set,$i=new Set;for(let Bi=0;BiVi.add(jr)):$i.add(Ki))}const ro=new Map,go=Ud(Hn,Array.from(Vi));go.forEach((Bi,Ki)=>{const nr=yu+fi++;ro.set(Ki,nr),Bi.forEach(jr=>Rs(jr,nr))}),s.push(()=>{bn.forEach((Bi,Ki)=>{const nr=Cn.get(Ki);Bi.forEach(jr=>Tl(jr,nr))}),go.forEach((Bi,Ki)=>{const nr=ro.get(Ki);Bi.forEach(jr=>Tl(jr,nr))}),Fi.forEach(Bi=>{this.processLeaveNode(Bi)})});const nc=[],sl=[];for(let Bi=this._namespaceList.length-1;Bi>=0;Bi--)this._namespaceList[Bi].drainQueuedTransitions(i).forEach(nr=>{const jr=nr.player,Oo=nr.element;if(nc.push(jr),this.collectedEnterElements.length){const ra=Oo[wa];if(ra&&ra.setForMove){if(ra.previousTriggersValues&&ra.previousTriggersValues.has(nr.triggerName)){const hu=ra.previousTriggersValues.get(nr.triggerName),al=this.statesByElement.get(nr.element);if(al&&al.has(nr.triggerName)){const fu=al.get(nr.triggerName);fu.value=hu,al.set(nr.triggerName,fu)}}return void jr.destroy()}}const Aa=!Gt||!this.driver.containsElement(Gt,Oo),$a=ro.get(Oo),du=Cn.get(Oo),To=this._buildInstruction(nr,c,du,$a,Aa);if(To.errors&&To.errors.length)return void sl.push(To);if(Aa)return jr.onStart(()=>uc(Oo,To.fromStyles)),jr.onDestroy(()=>Ua(Oo,To.toStyles)),void h.push(jr);if(nr.isFallbackTransition)return jr.onStart(()=>uc(Oo,To.fromStyles)),jr.onDestroy(()=>Ua(Oo,To.toStyles)),void h.push(jr);const q_=[];To.timelines.forEach(ra=>{ra.stretchStartingKeyframe=!0,this.disabledNodes.has(ra.element)||q_.push(ra)}),To.timelines=q_,c.append(Oo,To.timelines),I.push({instruction:To,player:jr,element:Oo}),To.queriedElements.forEach(ra=>Js(H,ra,[]).push(jr)),To.preStyleProps.forEach((ra,hu)=>{if(ra.size){let al=re.get(hu);al||re.set(hu,al=new Set),ra.forEach((fu,Gf)=>al.add(Gf))}}),To.postStyleProps.forEach((ra,hu)=>{let al=Fe.get(hu);al||Fe.set(hu,al=new Set),ra.forEach((fu,Gf)=>al.add(Gf))})});if(sl.length){const Bi=[];sl.forEach(Ki=>{Bi.push(function fa(){return new o.wOt(3505,!1)}())}),nc.forEach(Ki=>Ki.destroy()),this.reportError(Bi)}const ia=new Map,Ps=new Map;I.forEach(Bi=>{const Ki=Bi.element;c.has(Ki)&&(Ps.set(Ki,Ki),this._beforeAnimationBuild(Bi.player.namespaceId,Bi.instruction,ia))}),h.forEach(Bi=>{const Ki=Bi.element;this._getPreviousPlayers(Ki,!1,Bi.namespaceId,Bi.triggerName,null).forEach(jr=>{Js(ia,Ki,[]).push(jr),jr.destroy()})});const Sa=Fi.filter(Bi=>Vd(Bi,re,Fe)),wl=new Map;Po(wl,this.driver,$i,Fe,mi.kp).forEach(Bi=>{Vd(Bi,re,Fe)&&Sa.push(Bi)});const fd=new Map;bn.forEach((Bi,Ki)=>{Po(fd,this.driver,new Set(Bi),re,mi.FX)}),Sa.forEach(Bi=>{const Ki=wl.get(Bi),nr=fd.get(Bi);wl.set(Bi,new Map([...Ki?.entries()??[],...nr?.entries()??[]]))});const J_=[],Ew=[],Cw={};I.forEach(Bi=>{const{element:Ki,player:nr,instruction:jr}=Bi;if(c.has(Ki)){if(Pt.has(Ki))return nr.onDestroy(()=>Ua(Ki,jr.toStyles)),nr.disabled=!0,nr.overrideTotalTime(jr.totalTime),void h.push(nr);let Oo=Cw;if(Ps.size>1){let $a=Ki;const du=[];for(;$a=$a.parentNode;){const To=Ps.get($a);if(To){Oo=To;break}du.push($a)}du.forEach(To=>Ps.set(To,Oo))}const Aa=this._buildAnimation(nr.namespaceId,jr,ia,C,fd,wl);if(nr.setRealPlayer(Aa),Oo===Cw)J_.push(nr);else{const $a=this.playersByElement.get(Oo);$a&&$a.length&&(nr.parentPlayer=Ja($a)),h.push(nr)}}else uc(Ki,jr.fromStyles),nr.onDestroy(()=>Ua(Ki,jr.toStyles)),Ew.push(nr),Pt.has(Ki)&&h.push(nr)}),Ew.forEach(Bi=>{const Ki=C.get(Bi.element);if(Ki&&Ki.length){const nr=Ja(Ki);Bi.setRealPlayer(nr)}}),h.forEach(Bi=>{Bi.parentPlayer?Bi.syncPlayerEvents(Bi.parentPlayer):Bi.destroy()});for(let Bi=0;Bi!Aa.destroyed);Oo.length?Np(this,Ki,Oo):this.processLeaveNode(Ki)}return Fi.length=0,J_.forEach(Bi=>{this.players.push(Bi),Bi.onDone(()=>{Bi.destroy();const Ki=this.players.indexOf(Bi);this.players.splice(Ki,1)}),Bi.play()}),J_}afterFlush(s){this._flushFns.push(s)}afterFlushAnimationsDone(s){this._whenQuietFns.push(s)}_getPreviousPlayers(s,i,c,h,C){let I=[];if(i){const H=this.playersByQueriedElement.get(s);H&&(I=H)}else{const H=this.playersByElement.get(s);if(H){const re=!C||C==vc;H.forEach(Fe=>{Fe.queued||!re&&Fe.triggerName!=h||I.push(Fe)})}}return(c||h)&&(I=I.filter(H=>!(c&&c!=H.namespaceId||h&&h!=H.triggerName))),I}_beforeAnimationBuild(s,i,c){const C=i.element,I=i.isRemovalTransition?void 0:s,H=i.isRemovalTransition?void 0:i.triggerName;for(const re of i.timelines){const Fe=re.element,Pt=Fe!==C,Gt=Js(c,Fe,[]);this._getPreviousPlayers(Fe,Pt,I,H,i.toState).forEach(bn=>{const Cn=bn.getRealPlayer();Cn.beforeDestroy&&Cn.beforeDestroy(),bn.destroy(),Gt.push(bn)})}uc(C,i.fromStyles)}_buildAnimation(s,i,c,h,C,I){const H=i.triggerName,re=i.element,Fe=[],Pt=new Set,Gt=new Set,Hn=i.timelines.map(Cn=>{const fi=Cn.element;Pt.add(fi);const Fi=fi[wa];if(Fi&&Fi.removedBeforeQueried)return new mi.sf(Cn.duration,Cn.delay);const Vi=fi!==re,$i=function qh(a){const s=[];return Xl(a,s),s}((c.get(fi)||Nu).map(ia=>ia.getRealPlayer())).filter(ia=>!!ia.element&&ia.element===fi),ro=C.get(fi),go=I.get(fi),nc=Bh(this._normalizer,Cn.keyframes,ro,go),sl=this._buildPlayer(Cn,nc,$i);if(Cn.subTimeline&&h&&Gt.add(fi),Vi){const ia=new _l(s,H,fi);ia.setRealPlayer(sl),Fe.push(ia)}return sl});Fe.forEach(Cn=>{Js(this.playersByQueriedElement,Cn.element,[]).push(Cn),Cn.onDone(()=>function kp(a,s,i){let c=a.get(s);if(c){if(c.length){const h=c.indexOf(i);c.splice(h,1)}0==c.length&&a.delete(s)}return c}(this.playersByQueriedElement,Cn.element,Cn))}),Pt.forEach(Cn=>Rs(Cn,Ad));const bn=Ja(Hn);return bn.onDestroy(()=>{Pt.forEach(Cn=>Tl(Cn,Ad)),Ua(re,i.toStyles)}),Gt.forEach(Cn=>{Js(h,Cn,[]).push(bn)}),bn}_buildPlayer(s,i,c){return i.length>0?this.driver.animate(s.element,i,s.duration,s.delay,s.easing,c):new mi.sf(s.duration,s.delay)}}class _l{constructor(s,i,c){this.namespaceId=s,this.triggerName=i,this.element=c,this._player=new mi.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(s){this._containsRealPlayer||(this._player=s,this._queuedCallbacks.forEach((i,c)=>{i.forEach(h=>Zs(s,c,void 0,h))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(s){this.totalTime=s}syncPlayerEvents(s){const i=this._player;i.triggerCallback&&s.onStart(()=>i.triggerCallback("start")),s.onDone(()=>this.finish()),s.onDestroy(()=>this.destroy())}_queueEvent(s,i){Js(this._queuedCallbacks,s,[]).push(i)}onDone(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)}onStart(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)}onDestroy(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(s){this.queued||this._player.setPosition(s)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(s){const i=this._player;i.triggerCallback&&i.triggerCallback(s)}}function Wc(a){return a&&1===a.nodeType}function Kl(a,s){const i=a.style.display;return a.style.display=s??"none",i}function Po(a,s,i,c,h){const C=[];i.forEach(re=>C.push(Kl(re)));const I=[];c.forEach((re,Fe)=>{const Pt=new Map;re.forEach(Gt=>{const Hn=s.computeStyle(Fe,Gt,h);Pt.set(Gt,Hn),(!Hn||0==Hn.length)&&(Fe[wa]=Op,I.push(Fe))}),a.set(Fe,Pt)});let H=0;return i.forEach(re=>Kl(re,C[H++])),I}function Ud(a,s){const i=new Map;if(a.forEach(H=>i.set(H,[])),0==s.length)return i;const h=new Set(s),C=new Map;function I(H){if(!H)return 1;let re=C.get(H);if(re)return re;const Fe=H.parentNode;return re=i.has(Fe)?Fe:h.has(Fe)?1:I(Fe),C.set(H,re),re}return s.forEach(H=>{const re=I(H);1!==re&&i.get(re).push(H)}),i}function Rs(a,s){a.classList?.add(s)}function Tl(a,s){a.classList?.remove(s)}function Np(a,s,i){Ja(i).onDone(()=>a.processLeaveNode(s))}function Xl(a,s){for(let i=0;ih.add(C)):s.set(a,c),i.delete(a),!0}class yl{constructor(s,i,c){this._driver=i,this._normalizer=c,this._triggerCache={},this.onRemovalComplete=(h,C)=>{},this._transitionEngine=new Lu(s.body,i,c),this._timelineEngine=new Qh(s.body,i,c),this._transitionEngine.onRemovalComplete=(h,C)=>this.onRemovalComplete(h,C)}registerTrigger(s,i,c,h,C){const I=s+"-"+h;let H=this._triggerCache[I];if(!H){const re=[],Pt=Su(this._driver,C,re,[]);if(re.length)throw function _d(){return new o.wOt(3404,!1)}();H=function Ip(a,s,i){return new Fd(a,s,i)}(h,Pt,this._normalizer),this._triggerCache[I]=H}this._transitionEngine.registerTrigger(i,h,H)}register(s,i){this._transitionEngine.register(s,i)}destroy(s,i){this._transitionEngine.destroy(s,i)}onInsert(s,i,c,h){this._transitionEngine.insertNode(s,i,c,h)}onRemove(s,i,c){this._transitionEngine.removeNode(s,i,c)}disableAnimations(s,i){this._transitionEngine.markElementAsDisabled(s,i)}process(s,i,c,h){if("@"==c.charAt(0)){const[C,I]=Pc(c);this._timelineEngine.command(C,i,I,h)}else this._transitionEngine.trigger(s,i,c,h)}listen(s,i,c,h,C){if("@"==c.charAt(0)){const[I,H]=Pc(c);return this._timelineEngine.listen(I,i,H,C)}return this._transitionEngine.listen(s,i,c,h,C)}flush(s=-1){this._transitionEngine.flush(s)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(s){this._transitionEngine.afterFlushAnimationsDone(s)}}class Yl{static#e=this.initialStylesByElement=new WeakMap;constructor(s,i,c){this._element=s,this._startStyles=i,this._endStyles=c,this._state=0;let h=Yl.initialStylesByElement.get(s);h||Yl.initialStylesByElement.set(s,h=new Map),this._initialStyles=h}start(){this._state<1&&(this._startStyles&&Ua(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ua(this._element,this._initialStyles),this._endStyles&&(Ua(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Yl.initialStylesByElement.delete(this._element),this._startStyles&&(uc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(uc(this._element,this._endStyles),this._endStyles=null),Ua(this._element,this._initialStyles),this._state=3)}}function Uu(a){let s=null;return a.forEach((i,c)=>{(function ef(a){return"display"===a||"position"===a})(c)&&(s=s||new Map,s.set(c,i))}),s}class jd{constructor(s,i,c,h){this.element=s,this.keyframes=i,this.options=c,this._specialStyles=h,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=c.duration,this._delay=c.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const s=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,s,this.options),this._finalKeyframe=s.length?s[s.length-1]:new Map;const i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(s){const i=[];return s.forEach(c=>{i.push(Object.fromEntries(c))}),i}_triggerWebAnimation(s,i,c){return s.animate(this._convertKeyframesToObject(i),c)}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(s=>s()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}setPosition(s){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=s*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const s=new Map;this.hasStarted()&&this._finalKeyframe.forEach((c,h)=>{"offset"!==h&&s.set(h,this._finished?c:Du(this.element,h))}),this.currentSnapshot=s}triggerCallback(s){const i="start"===s?this._onStartFns:this._onDoneFns;i.forEach(c=>c()),i.length=0}}class Gc{validateStyleProperty(s){return!0}validateAnimatableStyleProperty(s){return!0}containsElement(s,i){return Cd(s,i)}getParentElement(s){return Hl(s)}query(s,i,c){return yp(s,i,c)}computeStyle(s,i,c){return Du(s,i)}animate(s,i,c,h,C,I=[]){const re={duration:c,delay:h,fill:0==h?"both":"forwards"};C&&(re.easing=C);const Fe=new Map,Pt=I.filter(bn=>bn instanceof jd);(function gl(a,s){return 0===a||0===s})(c,h)&&Pt.forEach(bn=>{bn.currentSnapshot.forEach((Cn,fi)=>Fe.set(fi,Cn))});let Gt=function Td(a){return a.length?a[0]instanceof Map?a:a.map(s=>new Map(Object.entries(s))):[]}(i).map(bn=>new Map(bn));Gt=function Cp(a,s,i){if(i.size&&s.length){let c=s[0],h=[];if(i.forEach((C,I)=>{c.has(I)||h.push(I),c.set(I,C)}),h.length)for(let C=1;CI.set(H,Du(a,H)))}}return s}(s,Gt,Fe);const Hn=function Bu(a,s){let i=null,c=null;return Array.isArray(s)&&s.length?(i=Uu(s[0]),s.length>1&&(c=Uu(s[s.length-1]))):s instanceof Map&&(i=Uu(s)),i||c?new Yl(a,i,c):null}(s,Gt);return new jd(s,Gt,re,Hn)}}const Hd="@.disabled";class Lp{constructor(s,i,c,h){this.namespaceId=s,this.delegate=i,this.engine=c,this._onDestroy=h,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(s){this.delegate.destroyNode?.(s)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(s,i){return this.delegate.createElement(s,i)}createComment(s){return this.delegate.createComment(s)}createText(s){return this.delegate.createText(s)}appendChild(s,i){this.delegate.appendChild(s,i),this.engine.onInsert(this.namespaceId,i,s,!1)}insertBefore(s,i,c,h=!0){this.delegate.insertBefore(s,i,c),this.engine.onInsert(this.namespaceId,i,s,h)}removeChild(s,i,c){this.parentNode(i)&&this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(s,i){return this.delegate.selectRootElement(s,i)}parentNode(s){return this.delegate.parentNode(s)}nextSibling(s){return this.delegate.nextSibling(s)}setAttribute(s,i,c,h){this.delegate.setAttribute(s,i,c,h)}removeAttribute(s,i,c){this.delegate.removeAttribute(s,i,c)}addClass(s,i){this.delegate.addClass(s,i)}removeClass(s,i){this.delegate.removeClass(s,i)}setStyle(s,i,c,h){this.delegate.setStyle(s,i,c,h)}removeStyle(s,i,c){this.delegate.removeStyle(s,i,c)}setProperty(s,i,c){"@"==i.charAt(0)&&i==Hd?this.disableAnimations(s,!!c):this.delegate.setProperty(s,i,c)}setValue(s,i){this.delegate.setValue(s,i)}listen(s,i,c){return this.delegate.listen(s,i,c)}disableAnimations(s,i){this.engine.disableAnimations(s,i)}}class $d extends Lp{constructor(s,i,c,h,C){super(i,c,h,C),this.factory=s,this.namespaceId=i}setProperty(s,i,c){"@"==i.charAt(0)?"."==i.charAt(1)&&i==Hd?this.disableAnimations(s,c=void 0===c||!!c):this.engine.process(this.namespaceId,s,i.slice(1),c):this.delegate.setProperty(s,i,c)}listen(s,i,c){if("@"==i.charAt(0)){const h=function zd(a){switch(a){case"body":return document.body;case"document":return document;case"window":return window;default:return a}}(s);let C=i.slice(1),I="";return"@"!=C.charAt(0)&&([C,I]=function Es(a){const s=a.indexOf(".");return[a.substring(0,s),a.slice(s+1)]}(C)),this.engine.listen(this.namespaceId,h,C,I,H=>{this.factory.scheduleListenerCallback(H._data||-1,c,H)})}return this.delegate.listen(s,i,c)}}class xg{constructor(s,i,c){this.delegate=s,this.engine=i,this._zone=c,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(h,C)=>{C?.removeChild(null,h)}}createRenderer(s,i){const h=this.delegate.createRenderer(s,i);if(!s||!i?.data?.animation){const Fe=this._rendererCache;let Pt=Fe.get(h);return Pt||(Pt=new Lp("",h,this.engine,()=>Fe.delete(h)),Fe.set(h,Pt)),Pt}const C=i.id,I=i.id+"-"+this._currentId;this._currentId++,this.engine.register(I,s);const H=Fe=>{Array.isArray(Fe)?Fe.forEach(H):this.engine.registerTrigger(C,I,s,Fe.name,Fe)};return i.data.animation.forEach(H),new $d(this,I,h,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(s,i,c){if(s>=0&&si(c));const h=this._animationCallbacksBuffer;0==h.length&&queueMicrotask(()=>{this._zone.run(()=>{h.forEach(C=>{const[I,H]=C;I(H)}),this._animationCallbacksBuffer=[]})}),h.push([i,c])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const Up=[{provide:_u,useFactory:function Sg(){return new dc}},{provide:yl,useClass:(()=>{class a extends yl{constructor(i,c,h){super(i,c,h)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(nt.qQ),o.KVO(xd),o.KVO(_u))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})()},{provide:o._9s,useFactory:function ju(a,s,i){return new xg(a,s,i)},deps:[u.B7,yl,o.SKi]}],Kc=[{provide:xd,useFactory:()=>new Gc},{provide:o.bc$,useValue:"BrowserAnimations"},...Up];var nf=v(9030),wc=v(3726),Va=v(8793),zr=v(1413),$u=v(5343);const Ql=new V.c($u.l);var ol=v(7786),Il=v(6648),us=v(6354),mo=v(17),Gd=v(8071),Xc=v(8750),zu=v(9974);const Wu={connector:()=>new zr.B};function Yc(a,s=Wu){const{connector:i}=s;return(0,zu.N)((c,h)=>{const C=i();(0,Xc.Tg)(a(function rf(a){return new V.c(s=>a.subscribe(s))}(C))).subscribe(h),h.add(c.subscribe(C))})}var b=v(8141);const M="Service workers are disabled or not supported by this browser";class q{constructor(s){if(this.serviceWorker=s,s){const c=(0,wc.R)(s,"controllerchange").pipe((0,us.T)(()=>s.controller)),h=(0,nf.v)(()=>(0,B.of)(s.controller)),C=(0,Va.x)(h,c);this.worker=C.pipe((0,At.p)(Pt=>!!Pt)),this.registration=this.worker.pipe((0,ke.n)(()=>s.getRegistration()));const Fe=(0,wc.R)(s,"message").pipe((0,us.T)(Pt=>Pt.data)).pipe((0,At.p)(Pt=>Pt&&Pt.type)).pipe(function g(a){return a?s=>Yc(a)(s):s=>function p(a,s){const i=(0,Gd.T)(a)?a:()=>a;return(0,Gd.T)(s)?Yc(s,{connector:i}):c=>new mo.G(c,i)}(new zr.B)(s)}());Fe.connect(),this.events=Fe}else this.worker=this.events=this.registration=function U(a){return(0,nf.v)(()=>(0,oe.$)(new Error(a)))}(M)}postMessage(s,i){return this.worker.pipe((0,P.s)(1),(0,b.M)(c=>{c.postMessage({action:s,...i})})).toPromise().then(()=>{})}postMessageWithOperation(s,i,c){const h=this.waitForOperationCompleted(c),C=this.postMessage(s,i);return Promise.all([C,h]).then(([,I])=>I)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(s){let i;return i="string"==typeof s?c=>c.type===s:c=>s.includes(c.type),this.events.pipe((0,At.p)(i))}nextEventOfType(s){return this.eventsOfType(s).pipe((0,P.s)(1))}waitForOperationCompleted(s){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,At.p)(i=>i.nonce===s),(0,P.s)(1),(0,us.T)(i=>{if(void 0!==i.result)return i.result;throw new Error(i.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let fe=(()=>{class a{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,this.pushManager=null,this.subscriptionChanges=new zr.B,!i.isEnabled)return this.messages=Ql,this.notificationClicks=Ql,void(this.subscription=Ql);this.messages=this.sw.eventsOfType("PUSH").pipe((0,us.T)(h=>h.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,us.T)(h=>h.data)),this.pushManager=this.sw.registration.pipe((0,us.T)(h=>h.pushManager));const c=this.pushManager.pipe((0,ke.n)(h=>h.getSubscription()));this.subscription=(0,ol.h)(c,this.subscriptionChanges)}requestSubscription(i){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(M));const c={userVisibleOnly:!0};let h=this.decodeBase64(i.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),C=new Uint8Array(new ArrayBuffer(h.length));for(let I=0;II.subscribe(c)),(0,P.s)(1)).toPromise().then(I=>(this.subscriptionChanges.next(I),I))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,P.s)(1),(0,ke.n)(c=>{if(null===c)throw new Error("Not subscribed to push notifications.");return c.unsubscribe().then(h=>{if(!h)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(M))}decodeBase64(i){return atob(i)}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(q))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})(),De=(()=>{class a{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,!i.isEnabled)return this.versionUpdates=Ql,void(this.unrecoverable=Ql);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(M));const i=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:i},i)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(M));const i=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:i},i)}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(q))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();const Ue=new o.nKC("");function ot(a,s,i,c){return()=>{if(!(0,nt.UE)(c)||!("serviceWorker"in navigator)||!1===i.enabled)return;const h=a.get(o.SKi),C=a.get(o.o8S);let I;if(h.runOutsideAngular(()=>{const H=navigator.serviceWorker,re=()=>H.controller?.postMessage({action:"INITIALIZE"});H.addEventListener("controllerchange",re),C.onDestroy(()=>{H.removeEventListener("controllerchange",re)})}),"function"==typeof i.registrationStrategy)I=i.registrationStrategy();else{const[H,...re]=(i.registrationStrategy||"registerWhenStable:30000").split(":");switch(H){case"registerImmediately":I=(0,B.of)(null);break;case"registerWithDelay":I=Mt(+re[0]||0);break;case"registerWhenStable":const Fe=(0,Il.H)(a.get(o.o8S).whenStable());I=re[0]?(0,ol.h)(Fe,Mt(+re[0])):Fe;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${i.registrationStrategy}`)}}h.runOutsideAngular(()=>I.pipe((0,P.s)(1)).subscribe(()=>navigator.serviceWorker.register(s,{scope:i.scope}).catch(H=>console.error("Service worker registration failed with:",H))))}}function Mt(a){return(0,B.of)(null).pipe((0,Re.c)(a))}function Ct(a,s){return new q((0,nt.UE)(s)&&!1!==a.enabled?navigator.serviceWorker:void 0)}class en{}var Nt=v(7468),Ut=v(4360),dn=v(3669),mn=v(1584),Kn=v(9437),xi=v(4668),oi=v(4572),_i=v(983);function bi(a){return a&&a.constructor&&"function"==typeof a.constructor.isBuffer&&a.constructor.isBuffer(a)}function Yi(a){return a}function Hi(a,s){const i=(s=s||{}).delimiter||".",c=s.maxDepth,h=s.transformKey||Yi,C={};return function I(H,re,Fe){Fe=Fe||1,Object.keys(H).forEach(function(Pt){const Gt=H[Pt],Hn=s.safe&&Array.isArray(Gt),bn=Object.prototype.toString.call(Gt),Cn=bi(Gt),fi="[object Object]"===bn||"[object Array]"===bn,Fi=re?re+i+h(Pt):h(Pt);if(!Hn&&!Cn&&fi&&Object.keys(Gt).length&&(!s.maxDepth||Fe0&&(Hn=H(Gt.shift()),bn=H(Gt[0]))}Cn[Hn]=Ui(a[Pt],s)}),C}class vr{translations;constructor(s){this.translations=s}getTranslation(s){return(0,B.of)(this.translations.get(s)||{})}}const mr=new o.nKC("TRANSLOCO_LOADER");function Dr(a,s){return a&&(Object.prototype.hasOwnProperty.call(a,s)?a[s]:s.split(".").reduce((i,c)=>i?.[c],a))}function ni(a){return a?Array.isArray(a)?a.length:dr(a)?Object.keys(a).length:a?a.length:0:0}function qn(a){return"string"==typeof a}function dr(a){return!!a&&"object"==typeof a&&!Array.isArray(a)}function Fo(a){return null==a}function ea(a){return!1===Fo(a)}function Ea(a){return a&&"string"==typeof a.scope}function ja(a){return Hi(a,{safe:!0})}const Ca=new o.nKC("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>Ml}),Ml={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};function sf(a={}){return{...Ml,...a,missingHandler:{...Ml.missingHandler,...a.missingHandler},flatten:{...Ml.flatten,...a.flatten}}}const Xd=new o.nKC("TRANSLOCO_TRANSPILER");let Uy=(()=>{class a{interpolationMatcher;constructor(i){this.interpolationMatcher=function Tg(a){const[s,i]=a.interpolation;return new RegExp(`${s}(.*?)${i}`,"g")}(i??Ml)}transpile(i,c={},h,C){return qn(i)?i.replace(this.interpolationMatcher,(I,H)=>(H=H.trim(),ea(c[H])?c[H]:ea(h[H])?this.transpile(h[H],c,h,C):"")):(c&&(dr(i)?i=this.handleObject(i,c,h,C):Array.isArray(i)&&(i=this.handleArray(i,c,h,C))),i)}handleObject(i,c={},h,C){let I=i;return Object.keys(c).forEach(H=>{const re=Dr(I,H),Fe=Dr(c,H),Pt=this.transpile(re,Fe,h,C);I=function Wn(a,s,i){a={...a};const c=s.split("."),h=c.length-1;return c.reduce((C,I,H)=>(C[I]=H===h?i:Array.isArray(C[I])?C[I].slice():{...C[I]},C&&C[I]),a),a}(I,H,Pt)}),I}handleArray(i,c={},h,C){return i.map(I=>this.transpile(I,c,h,C))}static \u0275fac=function(c){return new(c||a)(o.KVO(Ca,8))};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();const Yd=new o.nKC("TRANSLOCO_MISSING_HANDLER");let Ig=(()=>{class a{handle(i,c){return c.missingHandler.logMissingKey&&!c.prodMode&&console.warn(`%c Missing translation for '${i}'`,"font-size: 12px; color: red"),i}static \u0275fac=function(c){return new(c||a)};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();const jp=new o.nKC("TRANSLOCO_INTERCEPTOR");let Mg=(()=>{class a{preSaveTranslation(i){return i}preSaveTranslationKey(i,c){return c}static \u0275fac=function(c){return new(c||a)};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();const Hp=new o.nKC("TRANSLOCO_FALLBACK_STRATEGY");let af,Hy=(()=>{class a{userConfig;constructor(i){this.userConfig=i}getNextLangs(){const i=this.userConfig.fallbackLang;if(!i)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(i)?i:[i]}static \u0275fac=function(c){return new(c||a)(o.KVO(Ca))};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();function Qd(a){if(!a)return"";const s=a.split("/");return s.pop(),s.join("/")}function Cc(a){return a?a.split("/").pop():""}function Gp(a){return{scope:Qd(a)||null,langName:Cc(a)}}function zy(a){const{path:s,inlineLoader:i,mainLoader:c,data:h}=a;if(i){if(!1===function Oi(a){return"function"==typeof a}(i[s]))throw`You're using an inline loader but didn't provide a loader for ${s}`;return i[s]().then(I=>I.default?I.default:I)}return c.getTranslation(s,h)}let Ol=(()=>{class a{loader;parser;missingHandler;interceptor;fallbackStrategy;langChanges$;subscription=null;translations=new Map;cache=new Map;firstFallbackLang;defaultLang="";availableLangs=[];isResolvedMissingOnce=!1;lang;failedLangs=new Set;events=new zr.B;events$=this.events.asObservable();config;constructor(i,c,h,C,I,H){this.loader=i,this.parser=c,this.missingHandler=h,this.interceptor=C,this.fallbackStrategy=H,this.loader||(this.loader=new vr(this.translations)),af=this,this.config=JSON.parse(JSON.stringify(I)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new gt.t(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.subscription=this.events$.subscribe(re=>{"translationLoadSuccess"===re.type&&re.wasFailure&&this.setActiveLang(re.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(i){this.defaultLang=i}getActiveLang(){return this.lang.getValue()}setActiveLang(i){return this.parser.onLangChanged?.(i),this.lang.next(i),this.events.next({type:"langChanged",payload:Gp(i)}),this}setAvailableLangs(i){this.availableLangs=i}getAvailableLangs(){return this.availableLangs}load(i,c={}){const h=this.cache.get(i);if(h)return h;let C;const I=this._isLangScoped(i);let H;I&&(H=Qd(i));const re={path:i,mainLoader:this.loader,inlineLoader:c.inlineLoader,data:I?{scope:H}:void 0};if(this.useFallbackTranslation(i)){const Pt=I?`${H}/${this.firstFallbackLang}`:this.firstFallbackLang,Gt=function Wy({mainLoader:a,path:s,data:i,fallbackPath:c,inlineLoader:h}){return(c?[s,c]:[s]).map(I=>{const H=zy({path:I,mainLoader:a,inlineLoader:h,data:i});return(0,Il.H)(H).pipe((0,us.T)(re=>({translation:re,lang:I})))})}({...re,fallbackPath:Pt});C=(0,Nt.p)(Gt)}else{const Pt=zy(re);C=(0,Il.H)(Pt)}const Fe=C.pipe(function Un(a=1/0){let s;s=a&&"object"==typeof a?a:{count:a};const{count:i=1/0,delay:c,resetOnSuccess:h=!1}=s;return i<=0?dn.D:(0,zu.N)((C,I)=>{let re,H=0;const Fe=()=>{let Pt=!1;re=C.subscribe((0,Ut._)(I,Gt=>{h&&(H=0),I.next(Gt)},void 0,Gt=>{if(H++{re?(re.unsubscribe(),re=null,Fe()):Pt=!0};if(null!=c){const bn="number"==typeof c?(0,mn.O)(c):(0,Xc.Tg)(c(Gt,H)),Cn=(0,Ut._)(I,()=>{Cn.unsubscribe(),Hn()},()=>{I.complete()});bn.subscribe(Cn)}else Hn()}else I.error(Gt)})),Pt&&(re.unsubscribe(),re=null,Fe())};Fe()})}(this.config.failedRetries),(0,b.M)(Pt=>{Array.isArray(Pt)?Pt.forEach(Gt=>{this.handleSuccess(Gt.lang,Gt.translation),Gt.lang!==i&&this.cache.set(Gt.lang,(0,B.of)({}))}):this.handleSuccess(i,Pt)}),(0,Kn.W)(Pt=>(this.config.prodMode||console.error(`Error while trying to load "${i}"`,Pt),this.handleFailure(i,c))),(0,xi.t)(1));return this.cache.set(i,Fe),Fe}translate(i,c={},h=this.getActiveLang()){if(!i)return i;const{scope:C,resolveLang:I}=this.resolveLangAndScope(h);if(Array.isArray(i))return i.map(Fe=>this.translate(C?`${C}.${Fe}`:Fe,c,I));i=C?`${C}.${i}`:i;const H=this.getTranslation(I),re=H[i];return re?this.parser.transpile(re,c,H,i):this._handleMissingKey(i,re,c)}selectTranslate(i,c,h,C=!1){let I;const H=(Fe,Pt)=>this.load(Fe,Pt).pipe((0,us.T)(()=>C?this.translateObject(i,c,Fe):this.translate(i,c,Fe)));if(Fo(h))return this.langChanges$.pipe((0,ke.n)(Fe=>H(Fe)));if(function Ns(a){return Array.isArray(a)&&a.every(Ea)}(h)||Ea(h)){const Fe=Array.isArray(h)?h[0]:h;h=Fe.scope,I=function Wp(a,s){return function Ec(a){return a&&dr(a.loader)}(a)?function Og(a,s){return Object.keys(a).reduce((i,c)=>(i[`${s}/${c}`]=a[c],i),{})}(a.loader,s):void 0}(Fe,Fe.scope)}if(this.isLang(h)||this.isScopeWithLang(h))return H(h);const re=h;return this.langChanges$.pipe((0,ke.n)(Fe=>H(`${re}/${Fe}`,{inlineLoader:I})))}isScopeWithLang(i){return this.isLang(Cc(i))}translateObject(i,c={},h=this.getActiveLang()){if(qn(i)||Array.isArray(i)){const{resolveLang:I,scope:H}=this.resolveLangAndScope(h);if(Array.isArray(i))return i.map(Pt=>this.translateObject(H?`${H}.${Pt}`:Pt,c,I));const re=this.getTranslation(I),Fe=function Kd(a){return Ui(a)}(this.getObjectByKey(re,i=H?`${H}.${i}`:i));return function Ni(a){return 0===ni(a)}(Fe)?this.translate(i,c,h):this.parser.transpile(Fe,c,re,i)}const C=[];for(const[I,H]of this.getEntries(i))C.push(this.translateObject(I,H,h));return C}selectTranslateObject(i,c,h){if(qn(i)||Array.isArray(i))return this.selectTranslate(i,c,h,!0);const[[C,I],...H]=this.getEntries(i);return this.selectTranslateObject(C,I,h).pipe((0,us.T)(re=>{const Fe=[re];for(const[Pt,Gt]of H)Fe.push(this.translateObject(Pt,Gt,h));return Fe}))}getTranslation(i){if(i){if(this.isLang(i))return this.translations.get(i)||{};{const{scope:c,resolveLang:h}=this.resolveLangAndScope(i),C=this.translations.get(h)||{};return this.getObjectByKey(C,c)}}return this.translations}selectTranslation(i){let c=this.langChanges$;if(i){const h=Cc(i)!==i;c=this.isLang(i)||h?(0,B.of)(i):this.langChanges$.pipe((0,us.T)(C=>`${i}/${C}`))}return c.pipe((0,ke.n)(h=>this.load(h).pipe((0,us.T)(()=>this.getTranslation(h)))))}setTranslation(i,c=this.getActiveLang(),h={}){const I={merge:!0,emitChange:!0,...h},H=Qd(c);let re=i;if(H){const bn=this.getMappedScope(H);re=ja({[bn]:i})}const Fe=H?Cc(c):c,Pt={...I.merge&&this.getTranslation(Fe),...re},Gt=this.config.flatten.aot?Pt:ja(Pt),Hn=this.interceptor.preSaveTranslation(Gt,Fe);this.translations.set(Fe,Hn),I.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(i,c,h=this.getActiveLang(),C={}){const I=this.interceptor.preSaveTranslationKey(i,c,h);this.setTranslation({[i]:I},h,{...C,merge:!0})}setFallbackLangForMissingTranslation({fallbackLang:i}){const c=Array.isArray(i)?i[0]:i;i&&this.useFallbackTranslation(c)&&(this.firstFallbackLang=c)}_handleMissingKey(i,c,h){if(this.config.missingHandler.allowEmpty&&""===c)return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;const C=this.translate(i,h,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,C}return this.missingHandler.handle(i,this.getMissingHandlerData(),h)}_isLangScoped(i){return-1===this.getAvailableLangsIds().indexOf(i)}isLang(i){return-1!==this.getAvailableLangsIds().indexOf(i)}_loadDependencies(i,c){const h=Cc(i);return this._isLangScoped(i)&&!this.isLoadedTranslation(h)?(0,oi.z)([this.load(h),this.load(i,{inlineLoader:c})]):this.load(i,{inlineLoader:c})}_completeScopeWithLang(i){return this._isLangScoped(i)&&!this.isLang(Cc(i))?`${i}/${this.getActiveLang()}`:i}_setScopeAlias(i,c){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[i]=c}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.cache.clear()}isLoadedTranslation(i){return ni(this.getTranslation(i))}getAvailableLangsIds(){return qn(this.getAvailableLangs()[0])?this.getAvailableLangs():this.getAvailableLangs().map(c=>c.id)}getMissingHandlerData(){return{...this.config,activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang}}useFallbackTranslation(i){return this.config.missingHandler.useFallbackTranslation&&i!==this.firstFallbackLang}handleSuccess(i,c){this.setTranslation(c,i,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:Gp(i)}),this.failedLangs.forEach(h=>this.cache.delete(h)),this.failedLangs.clear()}handleFailure(i,c){Fo(c.failedCounter)&&(c.failedCounter=0,c.fallbackLangs||(c.fallbackLangs=this.fallbackStrategy.getNextLangs(i)));const h=i.split("/"),I=c.fallbackLangs[c.failedCounter];if(this.failedLangs.add(i),this.cache.has(I))return this.handleSuccess(I,this.getTranslation(I)),_i.w;if(!I||I===h[h.length-1]){let Fe="Unable to load translation and all the fallback languages";throw h.length>1&&(Fe+=", did you misspelled the scope name?"),new Error(Fe)}let re=I;return h.length>1&&(h[h.length-1]=I,re=h.join("/")),c.failedCounter++,this.events.next({type:"translationLoadFailure",payload:Gp(i)}),this.load(re,c)}getMappedScope(i){const{scopeMapping:c={}}=this.config;return c[i]||function ts(a){return a.replace(/(?:^\w|[A-Z]|\b\w)/g,(s,i)=>0==i?s.toLowerCase():s.toUpperCase()).replace(/\s+|_|-|\//g,"")}(i)}resolveLangAndScope(i){let h,c=i;if(this._isLangScoped(i)){const C=Cc(i),I=this.isLang(C);c=I?C:this.getActiveLang(),h=this.getMappedScope(I?Qd(i):i)}return{scope:h,resolveLang:c}}getObjectByKey(i,c){const h={},C=`${c}.`;for(const I in i)I.startsWith(C)&&(h[I.replace(C,"")]=i[I]);return h}getEntries(i){return i instanceof Map?i.entries():Object.entries(i)}static \u0275fac=function(c){return new(c||a)(o.KVO(mr,8),o.KVO(Xd),o.KVO(Yd),o.KVO(jp),o.KVO(Ca),o.KVO(Hp))};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function df(a){return(0,o.EmA)([{provide:Xd,useClass:a,deps:[Ca]}])}function Xp(a){return(0,o.EmA)([{provide:Hp,useClass:a,deps:[Ca]}])}function qd(a){return(0,o.EmA)([{provide:Yd,useClass:a}])}function hf(a){return(0,o.EmA)([{provide:jp,useClass:a}])}new o.nKC("TRANSLOCO_LANG"),new o.nKC("TRANSLOCO_LOADING_TEMPLATE"),new o.nKC("TRANSLOCO_SCOPE"),new o.nKC("TRANSLOCO_TEST_LANGS - Available testing languages"),new o.nKC("TRANSLOCO_TEST_OPTIONS - Testing options");var nh=v(2771);let pf=(()=>{class a{constructor(){this._httpClient=(0,o.WQX)(Ee.Qq),this._navigation=new nh.m(1)}get navigation$(){return this._navigation.asObservable()}get(){return this._httpClient.get("api/navigation").pipe((0,b.M)(i=>{this._navigation.next(i)}))}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})(),Xy=(()=>{class a{constructor(i){this._httpClient=i,this._chat=new gt.t(null),this._chats=new gt.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,b.M)(i=>{this._chats.next(i)}))}getChatById(i){return this._httpClient.get("api/apps/chat/chat",{params:{id:i}}).pipe((0,us.T)(c=>(this._chat.next(c),c)),(0,ke.n)(c=>c?(0,B.of)(c):(0,oe.$)("Could not found chat with id of "+i+"!")))}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(Ee.Qq))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();const mf=new class Qp{constructor(s){this.version=s,this.full=s,this.major=s.split(".")[0],this.minor=s.split(".")[1],this.patch=s.split(".").slice(2).join(".")}}("0.0.8").full;var Kr=v(6977),ih=v(4085),Gu=v(7575);function Vg(a,s){if(1&a&&o.nrm(0,"mat-progress-bar",0),2&a){const i=o.XpG();o.Y8G("mode",i.mode)("value",i.progress)}}let rh=(()=>{class a{constructor(){this._angorLoadingService=(0,o.WQX)(je),this.autoMode=!0,this.progress=0,this.show=!1,this._unsubscribeAll=new zr.B}ngOnChanges(i){"autoMode"in i&&this._angorLoadingService.setAutoMode((0,ih.he)(i.autoMode.currentValue))}ngOnInit(){this._angorLoadingService.mode$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this.mode=i}),this._angorLoadingService.progress$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this.progress=i}),this._angorLoadingService.show$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this.show=i})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-loading-bar"]],inputs:{autoMode:"autoMode"},exportAs:["angorLoadingBar"],standalone:!0,features:[o.OA$,o.aNF],decls:1,vars:1,consts:[[3,"mode","value"]],template:function(c,h){1&c&&o.DNE(0,Vg,1,2,"mat-progress-bar",0),2&c&&o.vxM(h.show?0:-1)},dependencies:[Gu.PO,Gu.HM],styles:["angor-loading-bar{position:fixed;top:0;z-index:999;width:100%;height:6px}\n"],encapsulation:2})}return a})();function Qy(a,s){1&a&&o.nrm(0,"router-outlet")}let jE=(()=>{class a{constructor(){this._unsubscribeAll=new zr.B}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["empty-layout"]],standalone:!0,features:[o.aNF],decls:4,vars:1,consts:[[1,"flex","w-full","flex-auto","flex-col"],[1,"flex","flex-auto","flex-col"]],template:function(c,h){1&c&&(o.nrm(0,"angor-loading-bar"),o.j41(1,"div",0)(2,"div",1),o.DNE(3,Qy,1,0,"router-outlet"),o.k0s()()),2&c&&(o.R7$(3),o.vxM(3))},dependencies:[rh,y.n3],encapsulation:2})}return a})();var Ha=v(8834),Xr=v(9213),ta=v(4823);function gf(a,s){1&a&&o.nrm(0,"mat-icon",3)}let vf=(()=>{class a{constructor(){this._document=(0,o.WQX)(nt.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#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-fullscreen"]],inputs:{iconTpl:"iconTpl",tooltip:"tooltip"},exportAs:["angorFullscreen"],standalone:!0,features:[o.aNF],decls:4,vars:2,consts:[["defaultIconTpl",""],["mat-icon-button","",3,"click","matTooltip"],[3,"ngTemplateOutlet"],["svgIcon","heroicons_outline:arrows-pointing-out"]],template:function(c,h){if(1&c){const C=o.RV6();o.j41(0,"button",1),o.bIt("click",function(){return o.eBV(C),o.Njj(h.toggleFullscreen())}),o.eu8(1,2),o.k0s(),o.DNE(2,gf,1,0,"ng-template",null,0,o.C5r)}if(2&c){const C=o.sdS(3);o.Y8G("matTooltip",h.tooltip||"Toggle Fullscreen"),o.R7$(),o.Y8G("ngTemplateOutlet",h.iconTpl||C)}},dependencies:[Ha.Hl,Ha.iY,ta.uc,ta.oV,nt.T3,Xr.m_,Xr.An],encapsulation:2,changeDetection:0})}return a})();var _f=v(1648);let Da=(()=>{class a{constructor(){this._componentRegistry=new Map,this._navigationStore=new Map}registerComponent(i,c){this._componentRegistry.set(i,c)}deregisterComponent(i){this._componentRegistry.delete(i)}getComponent(i){return this._componentRegistry.get(i)}storeNavigation(i,c){this._navigationStore.set(i,c)}getNavigation(i){return this._navigationStore.get(i)??[]}deleteNavigation(i){this._navigationStore.has(i)||console.warn(`Navigation with the key '${i}' does not exist.`),this._navigationStore.delete(i)}getFlatNavigation(i,c=[]){for(const h of i)"basic"===h.type?c.push(h):h.children&&this.getFlatNavigation(h.children,c);return c}getItem(i,c){for(const h of c){if(h.id===i)return h;if(h.children){const C=this.getItem(i,h.children);if(C)return C}}return null}getItemParent(i,c,h){for(const C of c){if(C.id===i)return h;if(C.children){const I=this.getItemParent(i,C.children,C);if(I)return I}}return null}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var bl=v(9115);const Ku=a=>({"angor-horizontal-navigation-item-active-forced":a}),Zp=a=>[a];function Qc(a,s){1&a&&o.eu8(0)}function jg(a,s){if(1&a&&(o.j41(0,"div",2),o.DNE(1,Qc,1,0,"ng-container",7),o.k0s()),2&a){let i,c,h,C;const I=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,Ku,I.item.active))("routerLink",o.eq3(12,Zp,I.item.link))("fragment",null!==(i=I.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=I.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(h=I.item.queryParams)&&void 0!==h?h:null)("queryParamsHandling",null!==(C=I.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",I.isActiveMatchOptions)("matTooltip",I.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function yf(a,s){1&a&&o.eu8(0)}function Hg(a,s){if(1&a&&(o.j41(0,"a",3),o.DNE(1,yf,1,0,"ng-container",7),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function $g(a,s){1&a&&o.eu8(0)}function zg(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",8),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.item.function(h.item))}),o.DNE(1,$g,1,0,"ng-container",7),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,Ku,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function Jp(a,s){1&a&&o.eu8(0)}function Wg(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",9),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.item.function(h.item))}),o.DNE(1,Jp,1,0,"ng-container",7),o.k0s()}if(2&a){let i,c,h,C;const I=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,Ku,I.item.active))("routerLink",o.eq3(12,Zp,I.item.link))("fragment",null!==(i=I.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=I.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(h=I.item.queryParams)&&void 0!==h?h:null)("queryParamsHandling",null!==(C=I.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",I.isActiveMatchOptions)("matTooltip",I.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function bf(a,s){1&a&&o.eu8(0)}function qp(a,s){if(1&a){const i=o.RV6();o.j41(0,"a",10),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.item.function(h.item))}),o.DNE(1,bf,1,0,"ng-container",7),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function Xu(a,s){1&a&&o.eu8(0)}function Zy(a,s){if(1&a&&(o.j41(0,"div",4),o.DNE(1,Xu,1,0,"ng-container",7),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,Ku,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function Jy(a,s){1&a&&o.eu8(0)}function HE(a,s){if(1&a&&(o.j41(0,"div",6),o.DNE(1,Jy,1,0,"ng-container",7),o.k0s()),2&a){o.XpG();const i=o.sdS(9);o.R7$(),o.Y8G("ngTemplateOutlet",i)}}function wf(a,s){if(1&a&&o.nrm(0,"mat-icon",11),2&a){const i=o.XpG(2);o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function em(a,s){if(1&a&&(o.j41(0,"div",15)(1,"span",14),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function Gg(a,s){if(1&a&&(o.j41(0,"div",16)(1,"div",17),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function Kg(a,s){if(1&a&&(o.DNE(0,wf,1,2,"mat-icon",11),o.j41(1,"div",12)(2,"div",13)(3,"span",14),o.EFF(4),o.k0s()(),o.DNE(5,em,3,2,"div",15),o.k0s(),o.DNE(6,Gg,3,2,"div",16)),2&a){const i=o.XpG();o.vxM(i.item.icon?0:-1),o.R7$(3),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.title),o.R7$(),o.SpI(" ",i.item.title," "),o.R7$(),o.vxM(i.item.subtitle?5:-1),o.R7$(),o.vxM(i.item.badge?6:-1)}}let tm=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._angorUtilsService=(0,o.WQX)(Dt.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new zr.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,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-basic-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:10,vars:10,consts:[["itemTemplate",""],[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"],[1,"angor-horizontal-navigation-item",3,"ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-horizontal-navigation-item",3,"href","target","matTooltip"],[1,"angor-horizontal-navigation-item",3,"ngClass","matTooltip"],["mat-menu-item","",1,"angor-horizontal-navigation-item",3,"href","target","matTooltip"],[1,"angor-horizontal-navigation-item","angor-horizontal-navigation-item-disabled"],[4,"ngTemplateOutlet"],[1,"angor-horizontal-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-horizontal-navigation-item",3,"click","ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],["mat-menu-item","",1,"angor-horizontal-navigation-item",3,"click","href","target","matTooltip"],[1,"angor-horizontal-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-horizontal-navigation-item-title-wrapper"],[1,"angor-horizontal-navigation-item-title"],[3,"ngClass"],[1,"angor-horizontal-navigation-item-subtitle","text-hint"],[1,"angor-horizontal-navigation-item-badge"],[1,"angor-horizontal-navigation-item-badge-content",3,"ngClass"]],template:function(c,h){1&c&&(o.j41(0,"div",1),o.DNE(1,jg,2,14,"div",2)(2,Hg,2,4,"a",3)(3,zg,2,5,"div",4)(4,Wg,2,14,"div",2)(5,qp,2,4,"a",5)(6,Zy,2,5,"div",4)(7,HE,2,1,"div",6),o.k0s(),o.DNE(8,Kg,7,5,"ng-template",null,0,o.C5r)),2&c&&(o.AVh("angor-horizontal-navigation-item-has-subtitle",!!h.item.subtitle),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper),o.R7$(),o.vxM(!h.item.link||h.item.externalLink||h.item.function||h.item.disabled?-1:1),o.R7$(),o.vxM(h.item.link&&h.item.externalLink&&!h.item.function&&!h.item.disabled?2:-1),o.R7$(),o.vxM(h.item.link||!h.item.function||h.item.disabled?-1:3),o.R7$(),o.vxM(h.item.link&&!h.item.externalLink&&h.item.function&&!h.item.disabled?4:-1),o.R7$(),o.vxM(h.item.link&&h.item.externalLink&&h.item.function&&!h.item.disabled?5:-1),o.R7$(),o.vxM(h.item.link||h.item.function||h.item.disabled?-1:6),o.R7$(),o.vxM(h.item.disabled?7:-1))},dependencies:[nt.YU,y.Wk,y.wQ,ta.uc,ta.oV,nt.T3,bl.Cn,bl.fb,Xr.m_,Xr.An],encapsulation:2,changeDetection:0})}return a})(),Zc=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._unsubscribeAll=new zr.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-divider-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper","divider",3,"ngClass"]],template:function(c,h){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper)},dependencies:[nt.YU],encapsulation:2,changeDetection:0})}return a})();const qy=["matMenu"],eb=(a,s)=>({"angor-horizontal-navigation-menu-active":a,"angor-horizontal-navigation-menu-active-forced":s}),Xg=a=>({$implicit:a}),tb=(a,s)=>({"angor-horizontal-navigation-item-disabled":a,"angor-horizontal-navigation-item-active-forced":s});function nb(a,s){1&a&&o.eu8(0)}function Zl(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",6,2),o.bIt("onMenuOpen",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.triggerChangeDetection())})("onMenuClose",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.triggerChangeDetection())}),o.DNE(2,nb,1,0,"ng-container",7),o.k0s()}if(2&a){const i=o.sdS(1),c=o.XpG(),h=o.sdS(2),C=o.sdS(6);o.Y8G("ngClass",o.l_i(4,eb,i.menuOpen,c.item.active))("matMenuTriggerFor",h),o.R7$(2),o.Y8G("ngTemplateOutlet",C)("ngTemplateOutletContext",o.eq3(7,Xg,c.item))}}function Yu(a,s){if(1&a&&(o.j41(0,"div",8),o.nrm(1,"angor-horizontal-navigation-basic-item",11),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("disabled",i.disabled),o.R7$(),o.Y8G("item",i)("name",c.name)}}function ib(a,s){1&a&&o.eu8(0)}function rb(a,s){if(1&a&&(o.j41(0,"div",9),o.DNE(1,ib,1,0,"ng-container",7),o.nrm(2,"angor-horizontal-navigation-branch-item",12,3),o.k0s()),2&a){const i=o.sdS(3),c=o.XpG(2).$implicit,h=o.XpG(),C=o.sdS(6);o.Y8G("disabled",c.disabled)("matMenuTriggerFor",i.matMenu),o.R7$(),o.Y8G("ngTemplateOutlet",C)("ngTemplateOutletContext",o.eq3(7,Xg,c)),o.R7$(),o.Y8G("child",!0)("item",c)("name",h.name)}}function ob(a,s){if(1&a&&(o.j41(0,"div",10),o.nrm(1,"angor-horizontal-navigation-divider-item",11),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.R7$(),o.Y8G("item",i)("name",c.name)}}function sb(a,s){if(1&a&&o.DNE(0,Yu,2,3,"div",8)(1,rb,4,9,"div",9)(2,ob,2,2,"div",10),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("aside"===i.type||"collapsable"===i.type||"group"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1)}}function ab(a,s){if(1&a&&o.DNE(0,sb,3,3),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function lb(a,s){if(1&a&&o.nrm(0,"mat-icon",15),2&a){const i=o.XpG().$implicit;o.Y8G("ngClass",null==i.classes?null:i.classes.icon)("svgIcon",i.icon)}}function Yg(a,s){if(1&a&&(o.j41(0,"div",19)(1,"span",18),o.EFF(2),o.k0s()()),2&a){const i=o.XpG().$implicit;o.R7$(),o.Y8G("ngClass",null==i.classes?null:i.classes.subtitle),o.R7$(),o.SpI(" ",i.subtitle," ")}}function cb(a,s){if(1&a&&(o.j41(0,"div",20)(1,"div",21),o.EFF(2),o.k0s()()),2&a){const i=o.XpG().$implicit;o.R7$(),o.Y8G("ngClass",i.badge.classes),o.R7$(),o.SpI(" ",i.badge.title," ")}}function ub(a,s){if(1&a&&(o.j41(0,"div",13)(1,"div",14),o.DNE(2,lb,1,2,"mat-icon",15),o.j41(3,"div",16)(4,"div",17)(5,"span",18),o.EFF(6),o.k0s()(),o.DNE(7,Yg,3,2,"div",19),o.k0s(),o.DNE(8,cb,3,2,"div",20),o.k0s()()),2&a){const i=s.$implicit;o.AVh("angor-horizontal-navigation-item-has-subtitle",!!i.subtitle),o.Y8G("ngClass",null==i.classes?null:i.classes.wrapper),o.R7$(),o.Y8G("ngClass",o.l_i(10,tb,i.disabled,i.active))("matTooltip",i.tooltip||""),o.R7$(),o.vxM(i.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==i.classes?null:i.classes.title),o.R7$(),o.SpI(" ",i.title," "),o.R7$(),o.vxM(i.subtitle?7:-1),o.R7$(),o.vxM(i.badge?8:-1)}}let db=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this.child=!1,this._unsubscribeAll=new zr.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}triggerChangeDetection(){this._changeDetectorRef.markForCheck()}trackByFn(i,c){return c.id||i}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-branch-item"]],viewQuery:function(c,h){if(1&c&&o.GBs(qy,7),2&c){let C;o.mGM(C=o.lsd())&&(h.matMenu=C.first)}},inputs:{child:"child",item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:7,vars:2,consts:[["matMenu","matMenu"],["itemTemplate",""],["trigger","matMenuTrigger"],["branch",""],[3,"ngClass","matMenuTriggerFor"],[1,"angor-horizontal-navigation-menu-panel",3,"overlapTrigger"],[3,"onMenuOpen","onMenuClose","ngClass","matMenuTriggerFor"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item",3,"disabled"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item"],[3,"item","name"],[3,"child","item","name"],[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"],[1,"angor-horizontal-navigation-item",3,"ngClass","matTooltip"],[1,"angor-horizontal-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-horizontal-navigation-item-title-wrapper"],[1,"angor-horizontal-navigation-item-title"],[3,"ngClass"],[1,"angor-horizontal-navigation-item-subtitle","text-hint"],[1,"angor-horizontal-navigation-item-badge"],[1,"angor-horizontal-navigation-item-badge-content",3,"ngClass"]],template:function(c,h){1&c&&(o.DNE(0,Zl,3,9,"div",4),o.j41(1,"mat-menu",5,0),o.Z7z(3,ab,1,1,null,null,h.trackByFn,!0),o.k0s(),o.DNE(5,ub,9,13,"ng-template",null,1,o.C5r)),2&c&&(o.vxM(h.child?-1:0),o.R7$(),o.Y8G("overlapTrigger",!1),o.R7$(2),o.Dyx(h.item.children))},dependencies:()=>[a,nt.YU,bl.Cn,bl.kk,bl.fb,bl.Cp,nt.T3,tm,Zc,ta.uc,ta.oV,Xr.m_,Xr.An],encapsulation:2,changeDetection:0})}return a})(),hb=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._unsubscribeAll=new zr.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-spacer-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"]],template:function(c,h){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper)},dependencies:[nt.YU],encapsulation:2,changeDetection:0})}return a})();function Ef(a,s){if(1&a&&o.nrm(0,"angor-horizontal-navigation-basic-item",1),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Jl(a,s){if(1&a&&o.nrm(0,"angor-horizontal-navigation-branch-item",1),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function oh(a,s){if(1&a&&o.nrm(0,"angor-horizontal-navigation-spacer-item",1),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Qg(a,s){if(1&a&&o.DNE(0,Ef,1,2,"angor-horizontal-navigation-basic-item",1)(1,Jl,1,2,"angor-horizontal-navigation-branch-item",1)(2,oh,1,2,"angor-horizontal-navigation-spacer-item",1),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("aside"===i.type||"collapsable"===i.type||"group"===i.type?1:-1),o.R7$(),o.vxM("spacer"===i.type?2:-1)}}function Zg(a,s){if(1&a&&o.DNE(0,Qg,3,3),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}let Jg=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._angorUtilsService=(0,o.WQX)(Dt.Q),this.name=this._angorUtilsService.randomId(),this.onRefreshed=new nh.m(1),this._unsubscribeAll=new zr.B}ngOnChanges(i){"navigation"in i&&this._changeDetectorRef.markForCheck()}ngOnInit(){""===this.name&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this)}ngOnDestroy(){this._angorNavigationService.deregisterComponent(this.name),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}refresh(){this._changeDetectorRef.markForCheck(),this.onRefreshed.next(!0)}trackByFn(i,c){return c.id||i}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation"]],inputs:{name:"name",navigation:"navigation"},exportAs:["angorHorizontalNavigation"],standalone:!0,features:[o.OA$,o.aNF],decls:3,vars:0,consts:[[1,"angor-horizontal-navigation-wrapper"],[1,"angor-horizontal-navigation-menu-item",3,"item","name"]],template:function(c,h){1&c&&(o.j41(0,"div",0),o.Z7z(1,Zg,1,1,null,null,h.trackByFn,!0),o.k0s()),2&c&&(o.R7$(),o.Dyx(h.navigation))},dependencies:[tm,db,hb],styles:["angor-horizontal-navigation .angor-horizontal-navigation-wrapper{display:flex;align-items:center}@media (min-width: 600px){angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item:hover .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item:hover .angor-horizontal-navigation-item-wrapper{background-color:var(--angor-bg-hover)}}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper{border-radius:4px;overflow:hidden}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item{padding:0 16px;cursor:pointer;-webkit-user-select:none;user-select:none}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-icon,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-icon{margin-right:12px}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-title,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-title{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity))!important}.dark angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.dark angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-icon,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-menu-active .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-menu-active-forced .angor-horizontal-navigation-item-wrapper{background-color:var(--angor-bg-hover)}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-spacer-item{margin:12px 0}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item{height:auto;min-height:0;line-height:normal;white-space:normal}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item,.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-branch-item,.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item{display:flex;flex:1 1 auto}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item{margin:8px -16px}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item .angor-horizontal-navigation-item-wrapper{height:1px;box-shadow:0 1px}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-title,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-title{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity))!important}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity))!important}.dark .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.dark .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity))!important}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-icon,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity))!important}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper{width:100%}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper.angor-horizontal-navigation-item-has-subtitle .angor-horizontal-navigation-item{min-height:56px}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item{position:relative;display:flex;align-items:center;justify-content:flex-start;min-height:48px;width:100%;font-size:13px;font-weight:500;text-decoration:none}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-title-wrapper .angor-horizontal-navigation-item-subtitle{font-size:12px}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-badge{margin-left:auto}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-badge .angor-horizontal-navigation-item-badge-content{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;white-space:nowrap;height:20px}\n"],encapsulation:2,data:{animation:_f.F},changeDetection:0})}return a})();const nm=a=>({"angor-vertical-navigation-item-active-forced":a}),fb=a=>[a];function $E(a,s){1&a&&o.eu8(0)}function im(a,s){if(1&a&&(o.j41(0,"a",2),o.DNE(1,$E,1,0,"ng-container",6),o.k0s()),2&a){let i,c,h,C;const I=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,nm,I.item.active))("routerLink",o.eq3(12,fb,I.item.link))("fragment",null!==(i=I.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=I.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(h=I.item.queryParams)&&void 0!==h?h:null)("queryParamsHandling",null!==(C=I.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",I.isActiveMatchOptions)("matTooltip",I.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function rm(a,s){1&a&&o.eu8(0)}function zE(a,s){if(1&a&&(o.j41(0,"a",3),o.DNE(1,rm,1,0,"ng-container",6),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function WE(a,s){1&a&&o.eu8(0)}function qg(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",7),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.item.function(h.item))}),o.DNE(1,WE,1,0,"ng-container",6),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,nm,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function pb(a,s){1&a&&o.eu8(0)}function mb(a,s){if(1&a){const i=o.RV6();o.j41(0,"a",8),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.item.function(h.item))}),o.DNE(1,pb,1,0,"ng-container",6),o.k0s()}if(2&a){let i,c,h,C;const I=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,nm,I.item.active))("routerLink",o.eq3(12,fb,I.item.link))("fragment",null!==(i=I.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=I.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(h=I.item.queryParams)&&void 0!==h?h:null)("queryParamsHandling",null!==(C=I.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",I.isActiveMatchOptions)("matTooltip",I.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function gb(a,s){1&a&&o.eu8(0)}function vb(a,s){if(1&a){const i=o.RV6();o.j41(0,"a",9),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.item.function(h.item))}),o.DNE(1,gb,1,0,"ng-container",6),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function _b(a,s){1&a&&o.eu8(0)}function ev(a,s){if(1&a&&(o.j41(0,"div",4),o.DNE(1,_b,1,0,"ng-container",6),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,nm,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function tv(a,s){1&a&&o.eu8(0)}function yb(a,s){if(1&a&&(o.j41(0,"div",5),o.DNE(1,tv,1,0,"ng-container",6),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function bb(a,s){if(1&a&&o.nrm(0,"mat-icon",10),2&a){const i=o.XpG(2);o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function nv(a,s){if(1&a&&(o.j41(0,"div",14)(1,"span",13),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function Cf(a,s){if(1&a&&(o.j41(0,"div",15)(1,"div",16),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function iv(a,s){if(1&a&&(o.DNE(0,bb,1,2,"mat-icon",10),o.j41(1,"div",11)(2,"div",12)(3,"span",13),o.EFF(4),o.k0s()(),o.DNE(5,nv,3,2,"div",14),o.k0s(),o.DNE(6,Cf,3,2,"div",15)),2&a){const i=o.XpG();o.vxM(i.item.icon?0:-1),o.R7$(3),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.title),o.R7$(),o.SpI(" ",i.item.title," "),o.R7$(),o.vxM(i.item.subtitle?5:-1),o.R7$(),o.vxM(i.item.badge?6:-1)}}let Qu=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._angorUtilsService=(0,o.WQX)(Dt.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new zr.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,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-basic-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:10,vars:10,consts:[["itemTemplate",""],[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-vertical-navigation-item",3,"href","target","matTooltip"],[1,"angor-vertical-navigation-item",3,"ngClass","matTooltip"],[1,"angor-vertical-navigation-item","angor-vertical-navigation-item-disabled",3,"matTooltip"],[4,"ngTemplateOutlet"],[1,"angor-vertical-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-vertical-navigation-item",3,"click","ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-vertical-navigation-item",3,"click","href","target","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"]],template:function(c,h){1&c&&(o.j41(0,"div",1),o.DNE(1,im,2,14,"a",2)(2,zE,2,4,"a",3)(3,qg,2,5,"div",4)(4,mb,2,14,"a",2)(5,vb,2,4,"a",3)(6,ev,2,5,"div",4)(7,yb,2,2,"div",5),o.k0s(),o.DNE(8,iv,7,5,"ng-template",null,0,o.C5r)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!h.item.subtitle),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper),o.R7$(),o.vxM(!h.item.link||h.item.externalLink||h.item.function||h.item.disabled?-1:1),o.R7$(),o.vxM(h.item.link&&h.item.externalLink&&!h.item.function&&!h.item.disabled?2:-1),o.R7$(),o.vxM(h.item.link||!h.item.function||h.item.disabled?-1:3),o.R7$(),o.vxM(h.item.link&&!h.item.externalLink&&h.item.function&&!h.item.disabled?4:-1),o.R7$(),o.vxM(h.item.link&&h.item.externalLink&&h.item.function&&!h.item.disabled?5:-1),o.R7$(),o.vxM(h.item.link||h.item.function||h.item.disabled?-1:6),o.R7$(),o.vxM(h.item.disabled?7:-1))},dependencies:[nt.YU,y.Wk,y.wQ,ta.uc,ta.oV,nt.T3,Xr.m_,Xr.An],encapsulation:2,changeDetection:0})}return a})(),Df=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._unsubscribeAll=new zr.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-divider-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper","divider",3,"ngClass"]],template:function(c,h){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper)},dependencies:[nt.YU],encapsulation:2,changeDetection:0})}return a})(),Rl=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._unsubscribeAll=new zr.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-spacer-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"]],template:function(c,h){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper)},dependencies:[nt.YU],encapsulation:2,changeDetection:0})}return a})();function rv(a,s){if(1&a&&o.nrm(0,"mat-icon",2),2&a){const i=o.XpG();o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function wb(a,s){if(1&a&&(o.j41(0,"div",6)(1,"span",5),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function om(a,s){if(1&a&&(o.j41(0,"div",7)(1,"div",8),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function sm(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Eb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function Cb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Db(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function xb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function ov(a,s){if(1&a&&o.DNE(0,sm,1,2,"angor-vertical-navigation-basic-item",9)(1,Eb,1,3,"angor-vertical-navigation-collapsable-item",10)(2,Cb,1,2,"angor-vertical-navigation-divider-item",9)(3,Db,1,2,"angor-vertical-navigation-group-item",9)(4,xb,1,2,"angor-vertical-navigation-spacer-item",9),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("collapsable"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1),o.R7$(),o.vxM("group"===i.type?3:-1),o.R7$(),o.vxM("spacer"===i.type?4:-1)}}function GE(a,s){if(1&a&&o.DNE(0,ov,5,5),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}let sv=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._unsubscribeAll=new zr.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(i,c){return c.id||i}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-group-item"]],inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:11,vars:8,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(c,h){1&c&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,rv,1,2,"mat-icon",2),o.j41(3,"div",3)(4,"div",4)(5,"span",5),o.EFF(6),o.k0s()(),o.DNE(7,wb,3,2,"div",6),o.k0s(),o.DNE(8,om,3,2,"div",7),o.k0s()(),o.Z7z(9,GE,1,1,null,null,h.trackByFn,!0)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!h.item.subtitle),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper),o.R7$(2),o.vxM(h.item.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.title),o.R7$(),o.SpI(" ",h.item.title," "),o.R7$(),o.vxM(h.item.subtitle?7:-1),o.R7$(),o.vxM(h.item.badge?8:-1),o.R7$(),o.Dyx(h.item.children))},dependencies:()=>[a,nt.YU,Xr.m_,Xr.An,Qu,lv,Df,Rl],encapsulation:2,changeDetection:0})}return a})();const sh=a=>({"angor-vertical-navigation-item-disabled":a});function Sb(a,s){if(1&a&&o.nrm(0,"mat-icon",2),2&a){const i=o.XpG();o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function Ab(a,s){if(1&a&&(o.j41(0,"div",6)(1,"span",5),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function Tb(a,s){if(1&a&&(o.j41(0,"div",7)(1,"div",10),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function av(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Ib(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",12),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function Mb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Ob(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Rb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function kb(a,s){if(1&a&&o.DNE(0,av,1,2,"angor-vertical-navigation-basic-item",11)(1,Ib,1,3,"angor-vertical-navigation-collapsable-item",12)(2,Mb,1,2,"angor-vertical-navigation-divider-item",11)(3,Ob,1,2,"angor-vertical-navigation-group-item",11)(4,Rb,1,2,"angor-vertical-navigation-spacer-item",11),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("collapsable"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1),o.R7$(),o.vxM("group"===i.type?3:-1),o.R7$(),o.vxM("spacer"===i.type?4:-1)}}function Nb(a,s){if(1&a&&o.DNE(0,kb,5,5),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function am(a,s){if(1&a&&(o.j41(0,"div",9),o.Z7z(1,Nb,1,1,null,null,o.BUC().trackByFn,!0),o.k0s()),2&a){const i=o.XpG();o.Y8G("@expandCollapse",void 0),o.R7$(),o.Dyx(i.item.children)}}let lv=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._router=(0,o.WQX)(y.Ix),this._angorNavigationService=(0,o.WQX)(Da),this.isCollapsed=!0,this.isExpanded=!1,this._unsubscribeAll=new zr.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,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{null!==i&&this._isChildrenOf(i,this.item)&&this.collapse()}),this.autoCollapse&&this._angorVerticalNavigationComponent.onCollapsableItemExpanded.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{null!==i&&(this._isChildrenOf(this.item,i)||this._hasActiveChild(this.item,this._router.url)||this.item!==i&&this.collapse())}),this._router.events.pipe((0,At.p)(i=>i instanceof y.wF),(0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this._hasActiveChild(this.item,i.urlAfterRedirects)?this.expand():this.autoCollapse&&this.collapse()}),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}collapse(){this.item.disabled||this.isCollapsed||(this.isCollapsed=!0,this.isExpanded=!this.isCollapsed,this._changeDetectorRef.markForCheck(),this._angorVerticalNavigationComponent.onCollapsableItemCollapsed.next(this.item))}expand(){this.item.disabled||this.isCollapsed&&(this.isCollapsed=!1,this.isExpanded=!this.isCollapsed,this._changeDetectorRef.markForCheck(),this._angorVerticalNavigationComponent.onCollapsableItemExpanded.next(this.item))}toggleCollapsable(){this.isCollapsed?this.expand():this.collapse()}trackByFn(i,c){return c.id||i}_hasActiveChild(i,c){const h=i.children;if(!h)return!1;for(const C of h)if(C.children&&this._hasActiveChild(C,c)||C.link&&this._router.isActive(C.link,C.exactMatch||!1))return!0;return!1}_isChildrenOf(i,c){const h=i.children;if(!h)return!1;if(h.indexOf(c)>-1)return!0;for(const C of h)if(C.children&&this._isChildrenOf(C,c))return!0;return!1}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-collapsable-item"]],hostVars:2,hostBindings:function(c,h){2&c&&o.HbH(h.classList)},inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:11,vars:14,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-arrow","icon-size-4",3,"svgIcon"],[1,"angor-vertical-navigation-item-children"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(c,h){1&c&&(o.j41(0,"div",0)(1,"div",1),o.bIt("click",function(){return h.toggleCollapsable()}),o.DNE(2,Sb,1,2,"mat-icon",2),o.j41(3,"div",3)(4,"div",4)(5,"span",5),o.EFF(6),o.k0s()(),o.DNE(7,Ab,3,2,"div",6),o.k0s(),o.DNE(8,Tb,3,2,"div",7),o.nrm(9,"mat-icon",8),o.k0s()(),o.DNE(10,am,3,1,"div",9)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!h.item.subtitle),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper),o.R7$(),o.Y8G("ngClass",o.eq3(12,sh,h.item.disabled))("matTooltip",h.item.tooltip||""),o.R7$(),o.vxM(h.item.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.title),o.R7$(),o.SpI(" ",h.item.title," "),o.R7$(),o.vxM(h.item.subtitle?7:-1),o.R7$(),o.vxM(h.item.badge?8:-1),o.R7$(),o.Y8G("svgIcon","heroicons_solid:chevron-right"),o.R7$(),o.vxM(h.isCollapsed?-1:10))},dependencies:()=>[a,nt.YU,ta.uc,ta.oV,Xr.m_,Xr.An,Qu,Df,sv,Rl],encapsulation:2,data:{animation:_f.F},changeDetection:0})}return a})();const KE=(a,s,i)=>({"angor-vertical-navigation-item-active":a,"angor-vertical-navigation-item-disabled":s,"angor-vertical-navigation-item-active-forced":i});function lm(a,s){if(1&a&&o.nrm(0,"mat-icon",2),2&a){const i=o.XpG();o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function XE(a,s){if(1&a&&(o.j41(0,"div",6)(1,"span",5),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function YE(a,s){if(1&a&&(o.j41(0,"div",7)(1,"div",9),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function QE(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function ZE(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function JE(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Pb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function xf(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Sf(a,s){if(1&a&&o.DNE(0,QE,1,2,"angor-vertical-navigation-basic-item",10)(1,ZE,1,3,"angor-vertical-navigation-collapsable-item",11)(2,JE,1,2,"angor-vertical-navigation-divider-item",10)(3,Pb,1,2,"angor-vertical-navigation-group-item",10)(4,xf,1,2,"angor-vertical-navigation-spacer-item",10),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("collapsable"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1),o.R7$(),o.vxM("group"===i.type?3:-1),o.R7$(),o.vxM("spacer"===i.type?4:-1)}}function cv(a,s){if(1&a&&o.DNE(0,Sf,5,5),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function uv(a,s){if(1&a&&(o.j41(0,"div",8),o.Z7z(1,cv,1,1,null,null,o.BUC().trackByFn,!0),o.k0s()),2&a){const i=o.XpG();o.R7$(),o.Dyx(i.item.children)}}let dv=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._router=(0,o.WQX)(y.Ix),this._angorNavigationService=(0,o.WQX)(Da),this.active=!1,this._unsubscribeAll=new zr.B}ngOnChanges(i){"activeItemId"in i&&this._markIfActive(this._router.url)}ngOnInit(){this._markIfActive(this._router.url),this._router.events.pipe((0,At.p)(i=>i instanceof y.wF),(0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this._markIfActive(i.urlAfterRedirects)}),this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(i,c){return c.id||i}_hasActiveChild(i,c){const h=i.children;if(!h)return!1;for(const C of h){if(C.children&&this._hasActiveChild(C,c))return!0;if("basic"===C.type&&C.link&&this._router.isActive(C.link,C.exactMatch||!1))return!0}return!1}_markIfActive(i){this.active=this.activeItemId===this.item.id,this._hasActiveChild(this.item,i)&&(this.active=!0),this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-aside-item"]],inputs:{activeItemId:"activeItemId",autoCollapse:"autoCollapse",item:"item",name:"name",skipChildren:"skipChildren"},standalone:!0,features:[o.OA$,o.aNF],decls:10,vars:15,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"ngClass","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-children"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(c,h){1&c&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,lm,1,2,"mat-icon",2),o.j41(3,"div",3)(4,"div",4)(5,"span",5),o.EFF(6),o.k0s()(),o.DNE(7,XE,3,2,"div",6),o.k0s(),o.DNE(8,YE,3,2,"div",7),o.k0s()(),o.DNE(9,uv,3,0,"div",8)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!h.item.subtitle),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper),o.R7$(),o.Y8G("ngClass",o.sMw(11,KE,h.active,h.item.disabled,h.item.active))("matTooltip",h.item.tooltip||""),o.R7$(),o.vxM(h.item.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.title),o.R7$(),o.SpI(" ",h.item.title," "),o.R7$(),o.vxM(h.item.subtitle?7:-1),o.R7$(),o.vxM(h.item.badge?8:-1),o.R7$(),o.vxM(h.skipChildren?-1:9))},dependencies:[nt.YU,ta.uc,ta.oV,Xr.m_,Xr.An,Qu,lv,Df,sv,Rl],encapsulation:2,changeDetection:0})}return a})();class Fb{constructor(s,i,c,h){this.x=s,this.y=i,this.w=c,this.h=h}}class hv{constructor(s,i){this.x=s,this.y=i}}var fv=v(2401);function pa(a){return getComputedStyle(a)}function bo(a,s){for(var i in s){var c=s[i];"number"==typeof c&&(c+="px"),a.style[i]=c}return a}function na(a){var s=document.createElement("div");return s.className=a,s}var cm=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Jc(a,s){if(!cm)throw new Error("No element matching method supported");return cm.call(a,s)}function Zu(a){a.remove?a.remove():a.parentNode&&a.parentNode.removeChild(a)}function Lb(a,s){return Array.prototype.filter.call(a.children,function(i){return Jc(i,s)})}var ds={main:"ps",rtl:"ps__rtl",element:{thumb:function(a){return"ps__thumb-"+a},rail:function(a){return"ps__rail-"+a},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(a){return"ps--active-"+a},scrolling:function(a){return"ps--scrolling-"+a}}},um={x:null,y:null};function dm(a,s){var i=a.element.classList,c=ds.state.scrolling(s);i.contains(c)?clearTimeout(um[s]):i.add(c)}function Bb(a,s){um[s]=setTimeout(function(){return a.isAlive&&a.element.classList.remove(ds.state.scrolling(s))},a.settings.scrollingThreshold)}var qc=function(s){this.element=s,this.handlers={}},Tf={isEmpty:{configurable:!0}};qc.prototype.bind=function(s,i){typeof this.handlers[s]>"u"&&(this.handlers[s]=[]),this.handlers[s].push(i),this.element.addEventListener(s,i,!1)},qc.prototype.unbind=function(s,i){var c=this;this.handlers[s]=this.handlers[s].filter(function(h){return!(!i||h===i)||(c.element.removeEventListener(s,h,!1),!1)})},qc.prototype.unbindAll=function(){for(var s in this.handlers)this.unbind(s)},Tf.isEmpty.get=function(){var a=this;return Object.keys(this.handlers).every(function(s){return 0===a.handlers[s].length})},Object.defineProperties(qc.prototype,Tf);var Ju=function(){this.eventElements=[]};function ql(a){if("function"==typeof window.CustomEvent)return new CustomEvent(a);var s=document.createEvent("CustomEvent");return s.initCustomEvent(a,!1,!1,void 0),s}function qu(a,s,i,c,h){var C;if(void 0===c&&(c=!0),void 0===h&&(h=!1),"top"===s)C=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==s)throw new Error("A proper axis should be provided");C=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function pv(a,s,i,c,h){var C=i[0],I=i[1],H=i[2],re=i[3],Fe=i[4],Pt=i[5];void 0===c&&(c=!0),void 0===h&&(h=!1);var Gt=a.element;a.reach[re]=null,Gt[H]<1&&(a.reach[re]="start"),Gt[H]>a[C]-a[I]-1&&(a.reach[re]="end"),s&&(Gt.dispatchEvent(ql("ps-scroll-"+re)),s<0?Gt.dispatchEvent(ql("ps-scroll-"+Fe)):s>0&&Gt.dispatchEvent(ql("ps-scroll-"+Pt)),c&&function Af(a,s){dm(a,s),Bb(a,s)}(a,re)),a.reach[re]&&(s||h)&&Gt.dispatchEvent(ql("ps-"+re+"-reach-"+a.reach[re]))}(a,i,C,c,h)}function xo(a){return parseInt(a,10)||0}Ju.prototype.eventElement=function(s){var i=this.eventElements.filter(function(c){return c.element===s})[0];return i||(i=new qc(s),this.eventElements.push(i)),i},Ju.prototype.bind=function(s,i,c){this.eventElement(s).bind(i,c)},Ju.prototype.unbind=function(s,i,c){var h=this.eventElement(s);h.unbind(i,c),h.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(h),1)},Ju.prototype.unbindAll=function(){this.eventElements.forEach(function(s){return s.unbindAll()}),this.eventElements=[]},Ju.prototype.once=function(s,i,c){var h=this.eventElement(s),C=function(I){h.unbind(i,C),c(I)};h.bind(i,C)};var ed={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 kl(a){var s=a.element,i=Math.floor(s.scrollTop),c=s.getBoundingClientRect();a.containerWidth=Math.round(c.width),a.containerHeight=Math.round(c.height),a.contentWidth=s.scrollWidth,a.contentHeight=s.scrollHeight,s.contains(a.scrollbarXRail)||(Lb(s,ds.element.rail("x")).forEach(function(h){return Zu(h)}),s.appendChild(a.scrollbarXRail)),s.contains(a.scrollbarYRail)||(Lb(s,ds.element.rail("y")).forEach(function(h){return Zu(h)}),s.appendChild(a.scrollbarYRail)),!a.settings.suppressScrollX&&a.containerWidth+a.settings.scrollXMarginOffset=a.railXWidth-a.scrollbarXWidth&&(a.scrollbarXLeft=a.railXWidth-a.scrollbarXWidth),a.scrollbarYTop>=a.railYHeight-a.scrollbarYHeight&&(a.scrollbarYTop=a.railYHeight-a.scrollbarYHeight),function Vb(a,s){var i={width:s.railXWidth},c=Math.floor(a.scrollTop);i.left=s.isRtl?s.negativeScrollAdjustment+a.scrollLeft+s.containerWidth-s.contentWidth:a.scrollLeft,s.isScrollbarXUsingBottom?i.bottom=s.scrollbarXBottom-c:i.top=s.scrollbarXTop+c,bo(s.scrollbarXRail,i);var h={top:c,height:s.railYHeight};s.isScrollbarYUsingRight?h.right=s.isRtl?s.contentWidth-(s.negativeScrollAdjustment+a.scrollLeft)-s.scrollbarYRight-s.scrollbarYOuterWidth-9:s.scrollbarYRight-a.scrollLeft:h.left=s.isRtl?s.negativeScrollAdjustment+a.scrollLeft+2*s.containerWidth-s.contentWidth-s.scrollbarYLeft-s.scrollbarYOuterWidth:s.scrollbarYLeft+a.scrollLeft,bo(s.scrollbarYRail,h),bo(s.scrollbarX,{left:s.scrollbarXLeft,width:s.scrollbarXWidth-s.railBorderXWidth}),bo(s.scrollbarY,{top:s.scrollbarYTop,height:s.scrollbarYHeight-s.railBorderYWidth})}(s,a),a.scrollbarXActive?s.classList.add(ds.state.active("x")):(s.classList.remove(ds.state.active("x")),a.scrollbarXWidth=0,a.scrollbarXLeft=0,s.scrollLeft=!0===a.isRtl?a.contentWidth:0),a.scrollbarYActive?s.classList.add(ds.state.active("y")):(s.classList.remove(ds.state.active("y")),a.scrollbarYHeight=0,a.scrollbarYTop=0,s.scrollTop=0)}function mv(a,s){return a.settings.minScrollbarLength&&(s=Math.max(s,a.settings.minScrollbarLength)),a.settings.maxScrollbarLength&&(s=Math.min(s,a.settings.maxScrollbarLength)),s}function td(a,s){var i=s[0],c=s[1],h=s[2],C=s[3],I=s[4],H=s[5],re=s[6],Fe=s[7],Pt=s[8],Gt=a.element,Hn=null,bn=null,Cn=null;function fi($i){$i.touches&&$i.touches[0]&&($i[h]=$i.touches[0].pageY),Gt[re]=Hn+Cn*($i[h]-bn),dm(a,Fe),kl(a),$i.stopPropagation(),$i.type.startsWith("touch")&&$i.changedTouches.length>1&&$i.preventDefault()}function Fi(){Bb(a,Fe),a[Pt].classList.remove(ds.state.clicking),a.event.unbind(a.ownerDocument,"mousemove",fi)}function Vi($i,ro){Hn=Gt[re],ro&&$i.touches&&($i[h]=$i.touches[0].pageY),bn=$i[h],Cn=(a[c]-a[i])/(a[C]-a[H]),ro?a.event.bind(a.ownerDocument,"touchmove",fi):(a.event.bind(a.ownerDocument,"mousemove",fi),a.event.once(a.ownerDocument,"mouseup",Fi),$i.preventDefault()),a[Pt].classList.add(ds.state.clicking),$i.stopPropagation()}a.event.bind(a[I],"mousedown",function($i){Vi($i)}),a.event.bind(a[I],"touchstart",function($i){Vi($i,!0)})}var pm={"click-rail":function gv(a){a.event.bind(a.scrollbarY,"mousedown",function(i){return i.stopPropagation()}),a.event.bind(a.scrollbarYRail,"mousedown",function(i){var c=i.pageY-window.pageYOffset-a.scrollbarYRail.getBoundingClientRect().top;a.element.scrollTop+=(c>a.scrollbarYTop?1:-1)*a.containerHeight,kl(a),i.stopPropagation()}),a.event.bind(a.scrollbarX,"mousedown",function(i){return i.stopPropagation()}),a.event.bind(a.scrollbarXRail,"mousedown",function(i){var c=i.pageX-window.pageXOffset-a.scrollbarXRail.getBoundingClientRect().left;a.element.scrollLeft+=(c>a.scrollbarXLeft?1:-1)*a.containerWidth,kl(a),i.stopPropagation()})},"drag-thumb":function hm(a){td(a,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),td(a,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function Mf(a){var s=a.element;a.event.bind(a.ownerDocument,"keydown",function(C){if(!(C.isDefaultPrevented&&C.isDefaultPrevented()||C.defaultPrevented)&&(Jc(s,":hover")||Jc(a.scrollbarX,":focus")||Jc(a.scrollbarY,":focus"))){var I=document.activeElement?document.activeElement:a.ownerDocument.activeElement;if(I){if("IFRAME"===I.tagName)I=I.contentDocument.activeElement;else for(;I.shadowRoot;)I=I.shadowRoot.activeElement;if(function If(a){return Jc(a,"input,[contenteditable]")||Jc(a,"select,[contenteditable]")||Jc(a,"textarea,[contenteditable]")||Jc(a,"button,[contenteditable]")}(I))return}var H=0,re=0;switch(C.which){case 37:H=C.metaKey?-a.contentWidth:C.altKey?-a.containerWidth:-30;break;case 38:re=C.metaKey?a.contentHeight:C.altKey?a.containerHeight:30;break;case 39:H=C.metaKey?a.contentWidth:C.altKey?a.containerWidth:30;break;case 40:re=C.metaKey?-a.contentHeight:C.altKey?-a.containerHeight:-30;break;case 32:re=C.shiftKey?a.containerHeight:-a.containerHeight;break;case 33:re=a.containerHeight;break;case 34:re=-a.containerHeight;break;case 36:re=a.contentHeight;break;case 35:re=-a.contentHeight;break;default:return}a.settings.suppressScrollX&&0!==H||a.settings.suppressScrollY&&0!==re||(s.scrollTop-=re,s.scrollLeft+=H,kl(a),function h(C,I){var H=Math.floor(s.scrollTop);if(0===C){if(!a.scrollbarYActive)return!1;if(0===H&&I>0||H>=a.contentHeight-a.containerHeight&&I<0)return!a.settings.wheelPropagation}var re=s.scrollLeft;if(0===I){if(!a.scrollbarXActive)return!1;if(0===re&&C<0||re>=a.contentWidth-a.containerWidth&&C>0)return!a.settings.wheelPropagation}return!0}(H,re)&&C.preventDefault())}})},wheel:function fm(a){var s=a.element;function C(I){var H=function c(I){var H=I.deltaX,re=-1*I.deltaY;return(typeof H>"u"||typeof re>"u")&&(H=-1*I.wheelDeltaX/6,re=I.wheelDeltaY/6),I.deltaMode&&1===I.deltaMode&&(H*=10,re*=10),H!=H&&re!=re&&(H=0,re=I.wheelDelta),I.shiftKey?[-re,-H]:[H,re]}(I),re=H[0],Fe=H[1];if(!function h(I,H,re){if(!ed.isWebKit&&s.querySelector("select:focus"))return!0;if(!s.contains(I))return!1;for(var Fe=I;Fe&&Fe!==s;){if(Fe.classList.contains(ds.element.consuming))return!0;var Pt=pa(Fe);if(re&&Pt.overflowY.match(/(scroll|auto)/)){var Gt=Fe.scrollHeight-Fe.clientHeight;if(Gt>0&&(Fe.scrollTop>0&&re<0||Fe.scrollTop0))return!0}if(H&&Pt.overflowX.match(/(scroll|auto)/)){var Hn=Fe.scrollWidth-Fe.clientWidth;if(Hn>0&&(Fe.scrollLeft>0&&H<0||Fe.scrollLeft0))return!0}Fe=Fe.parentNode}return!1}(I.target,re,Fe)){var Pt=!1;a.settings.useBothWheelAxes?a.scrollbarYActive&&!a.scrollbarXActive?(Fe?s.scrollTop-=Fe*a.settings.wheelSpeed:s.scrollTop+=re*a.settings.wheelSpeed,Pt=!0):a.scrollbarXActive&&!a.scrollbarYActive&&(re?s.scrollLeft+=re*a.settings.wheelSpeed:s.scrollLeft-=Fe*a.settings.wheelSpeed,Pt=!0):(s.scrollTop-=Fe*a.settings.wheelSpeed,s.scrollLeft+=re*a.settings.wheelSpeed),kl(a),Pt=Pt||function i(I,H){var re=Math.floor(s.scrollTop),Fe=0===s.scrollTop,Pt=re+s.offsetHeight===s.scrollHeight,Gt=0===s.scrollLeft,Hn=s.scrollLeft+s.offsetWidth===s.scrollWidth;return!(Math.abs(H)>Math.abs(I)?Fe||Pt:Gt||Hn)||!a.settings.wheelPropagation}(re,Fe),Pt&&!I.ctrlKey&&(I.stopPropagation(),I.preventDefault())}}typeof window.onwheel<"u"?a.event.bind(s,"wheel",C):typeof window.onmousewheel<"u"&&a.event.bind(s,"mousewheel",C)},touch:function jb(a){if(ed.supportsTouch||ed.supportsIePointer){var s=a.element,h={},C=0,I={},H=null;ed.supportsTouch?(a.event.bind(s,"touchstart",Pt),a.event.bind(s,"touchmove",Hn),a.event.bind(s,"touchend",bn)):ed.supportsIePointer&&(window.PointerEvent?(a.event.bind(s,"pointerdown",Pt),a.event.bind(s,"pointermove",Hn),a.event.bind(s,"pointerup",bn)):window.MSPointerEvent&&(a.event.bind(s,"MSPointerDown",Pt),a.event.bind(s,"MSPointerMove",Hn),a.event.bind(s,"MSPointerUp",bn)))}function c(Cn,fi){s.scrollTop-=fi,s.scrollLeft-=Cn,kl(a)}function re(Cn){return Cn.targetTouches?Cn.targetTouches[0]:Cn}function Fe(Cn){return!(Cn.pointerType&&"pen"===Cn.pointerType&&0===Cn.buttons||!(Cn.targetTouches&&1===Cn.targetTouches.length||Cn.pointerType&&"mouse"!==Cn.pointerType&&Cn.pointerType!==Cn.MSPOINTER_TYPE_MOUSE))}function Pt(Cn){if(Fe(Cn)){var fi=re(Cn);h.pageX=fi.pageX,h.pageY=fi.pageY,C=(new Date).getTime(),null!==H&&clearInterval(H)}}function Hn(Cn){if(Fe(Cn)){var fi=re(Cn),Fi={pageX:fi.pageX,pageY:fi.pageY},Vi=Fi.pageX-h.pageX,$i=Fi.pageY-h.pageY;if(function Gt(Cn,fi,Fi){if(!s.contains(Cn))return!1;for(var Vi=Cn;Vi&&Vi!==s;){if(Vi.classList.contains(ds.element.consuming))return!0;var $i=pa(Vi);if(Fi&&$i.overflowY.match(/(scroll|auto)/)){var ro=Vi.scrollHeight-Vi.clientHeight;if(ro>0&&(Vi.scrollTop>0&&Fi<0||Vi.scrollTop0))return!0}if(fi&&$i.overflowX.match(/(scroll|auto)/)){var go=Vi.scrollWidth-Vi.clientWidth;if(go>0&&(Vi.scrollLeft>0&&fi<0||Vi.scrollLeft0))return!0}Vi=Vi.parentNode}return!1}(Cn.target,Vi,$i))return;c(Vi,$i),h=Fi;var ro=(new Date).getTime(),go=ro-C;go>0&&(I.x=Vi/go,I.y=$i/go,C=ro),function i(Cn,fi){var Fi=Math.floor(s.scrollTop),Vi=s.scrollLeft,$i=Math.abs(Cn),ro=Math.abs(fi);if(ro>$i){if(fi<0&&Fi===a.contentHeight-a.containerHeight||fi>0&&0===Fi)return 0===window.scrollY&&fi>0&&ed.isChrome}else if($i>ro&&(Cn<0&&Vi===a.contentWidth-a.containerWidth||Cn>0&&0===Vi))return!0;return!0}(Vi,$i)&&Cn.preventDefault()}}function bn(){a.settings.swipeEasing&&(clearInterval(H),H=setInterval(function(){a.isInitialized?clearInterval(H):I.x||I.y?Math.abs(I.x)<.01&&Math.abs(I.y)<.01?clearInterval(H):a.element?(c(30*I.x,30*I.y),I.x*=.8,I.y*=.8):clearInterval(H):clearInterval(H)},10))}}},nd=function(s,i){var c=this;if(void 0===i&&(i={}),"string"==typeof s&&(s=document.querySelector(s)),!s||!s.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var h in this.element=s,s.classList.add(ds.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},i)this.settings[h]=i[h];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Pt,Fe,C=function(){return s.classList.add(ds.state.focus)},I=function(){return s.classList.remove(ds.state.focus)};this.isRtl="rtl"===pa(s).direction,!0===this.isRtl&&s.classList.add(ds.rtl),this.isNegativeScroll=(Fe=s.scrollLeft,s.scrollLeft=-1,Pt=s.scrollLeft<0,s.scrollLeft=Fe,Pt),this.negativeScrollAdjustment=this.isNegativeScroll?s.scrollWidth-s.clientWidth:0,this.event=new Ju,this.ownerDocument=s.ownerDocument||document,this.scrollbarXRail=na(ds.element.rail("x")),s.appendChild(this.scrollbarXRail),this.scrollbarX=na(ds.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",C),this.event.bind(this.scrollbarX,"blur",I),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var H=pa(this.scrollbarXRail);this.scrollbarXBottom=parseInt(H.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=xo(H.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=xo(H.borderLeftWidth)+xo(H.borderRightWidth),bo(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=xo(H.marginLeft)+xo(H.marginRight),bo(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=na(ds.element.rail("y")),s.appendChild(this.scrollbarYRail),this.scrollbarY=na(ds.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",C),this.event.bind(this.scrollbarY,"blur",I),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var re=pa(this.scrollbarYRail);this.scrollbarYRight=parseInt(re.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=xo(re.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function Ub(a){var s=pa(a);return xo(s.width)+xo(s.paddingLeft)+xo(s.paddingRight)+xo(s.borderLeftWidth)+xo(s.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=xo(re.borderTopWidth)+xo(re.borderBottomWidth),bo(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=xo(re.marginTop)+xo(re.marginBottom),bo(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:s.scrollLeft<=0?"start":s.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:s.scrollTop<=0?"start":s.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Fe){return pm[Fe](c)}),this.lastScrollTop=Math.floor(s.scrollTop),this.lastScrollLeft=s.scrollLeft,this.event.bind(this.element,"scroll",function(Fe){return c.onScroll(Fe)}),kl(this)};nd.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,bo(this.scrollbarXRail,{display:"block"}),bo(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=xo(pa(this.scrollbarXRail).marginLeft)+xo(pa(this.scrollbarXRail).marginRight),this.railYMarginHeight=xo(pa(this.scrollbarYRail).marginTop)+xo(pa(this.scrollbarYRail).marginBottom),bo(this.scrollbarXRail,{display:"none"}),bo(this.scrollbarYRail,{display:"none"}),kl(this),qu(this,"top",0,!1,!0),qu(this,"left",0,!1,!0),bo(this.scrollbarXRail,{display:""}),bo(this.scrollbarYRail,{display:""}))},nd.prototype.onScroll=function(s){this.isAlive&&(kl(this),qu(this,"top",this.element.scrollTop-this.lastScrollTop),qu(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},nd.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Zu(this.scrollbarX),Zu(this.scrollbarY),Zu(this.scrollbarXRail),Zu(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},nd.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(s){return!s.match(/^ps([-_].+|)$/)}).join(" ")};const eu=nd;var mm=v(152);let gm=(()=>{class a{constructor(){this._elementRef=(0,o.WQX)(o.aKT),this._platform=(0,o.WQX)(me.OD),this.angorScrollbar=!0,this._ps=null,this._unsubscribeAll=new zr.B}get elementRef(){return this._elementRef}get ps(){return this._ps}ngOnChanges(i){"angorScrollbar"in i&&(this.angorScrollbar=(0,ih.he)(i.angorScrollbar.currentValue),this.angorScrollbar?this._initScrollbar():this._destroyScrollbar()),"angorScrollbarOptions"in i&&(this._options=(0,fv.A)({},this._options,i.angorScrollbarOptions.currentValue),this._reinitializeScrollbar())}ngOnInit(){(0,wc.R)(window,"resize").pipe((0,Kr.Q)(this._unsubscribeAll),(0,mm.B)(150)).subscribe(()=>this.update())}ngOnDestroy(){this._destroyScrollbar(),this._unsubscribeAll.next(),this._unsubscribeAll.complete()}isEnabled(){return this.angorScrollbar}update(){this._ps?.update()}destroy(){this.ngOnDestroy()}geometry(i="scroll"){return new Fb(this._elementRef.nativeElement[`${i}Left`],this._elementRef.nativeElement[`${i}Top`],this._elementRef.nativeElement[`${i}Width`],this._elementRef.nativeElement[`${i}Height`])}position(i=!1){return!i&&this._ps?new hv(this._ps.reach.x||0,this._ps.reach.y||0):new hv(this._elementRef.nativeElement.scrollLeft,this._elementRef.nativeElement.scrollTop)}scrollTo(i,c,h){null==c&&null==h?this.animateScrolling("scrollTop",i,h):(null!=i&&this.scrollToX(i,h),null!=c&&this.scrollToY(c,h))}scrollToX(i,c){this.animateScrolling("scrollLeft",i,c)}scrollToY(i,c){this.animateScrolling("scrollTop",i,c)}scrollToTop(i=0,c){this.animateScrolling("scrollTop",i,c)}scrollToBottom(i=0,c){this.animateScrolling("scrollTop",this._elementRef.nativeElement.scrollHeight-this._elementRef.nativeElement.clientHeight-i,c)}scrollToLeft(i=0,c){this.animateScrolling("scrollLeft",i,c)}scrollToRight(i=0,c){this.animateScrolling("scrollLeft",this._elementRef.nativeElement.scrollWidth-this._elementRef.nativeElement.clientWidth-i,c)}scrollToElement(i,c=0,h=!1,C){const I=this._elementRef.nativeElement.querySelector(i);if(!I)return;const H=I.getBoundingClientRect(),re=this._elementRef.nativeElement.getBoundingClientRect();this._elementRef.nativeElement.classList.contains("ps--active-x")&&this._scrollToInAxis(H.left,re.left,"scrollLeft",c,h,C),this._elementRef.nativeElement.classList.contains("ps--active-y")&&this._scrollToInAxis(H.top,re.top,"scrollTop",c,h,C)}animateScrolling(i,c,h){this._animation&&window.cancelAnimationFrame(this._animation),!h||typeof window>"u"?this._elementRef.nativeElement[i]=c:c!==this._elementRef.nativeElement[i]&&this._smoothScroll(i,c,h)}_initScrollbar(){this._ps||this._platform.ANDROID||this._platform.IOS||!this._platform.isBrowser||(this._ps=new eu(this._elementRef.nativeElement,{...this._options}))}_destroyScrollbar(){this._ps?.destroy(),this._ps=null}_reinitializeScrollbar(){setTimeout(()=>this._destroyScrollbar()),setTimeout(()=>this._initScrollbar())}_scrollToInAxis(i,c,h,C,I,H){I&&i<=c-Math.abs(C)||this.animateScrolling(h,i-c+this._elementRef.nativeElement[h]+C,H)}_smoothScroll(i,c,h){let C=0,I=this._elementRef.nativeElement[i];const H=(I-c)/2;let re=performance.now();const Fe=Pt=>{C+=Math.PI/(h/(Pt-re));const Gt=Math.round(c+H+H*Math.cos(C));this._elementRef.nativeElement[i]===I&&(C>=Math.PI?this.animateScrolling(i,c,0):(this._elementRef.nativeElement[i]=Gt,I=this._elementRef.nativeElement[i],re=Pt,this._animation=window.requestAnimationFrame(Fe)))};window.requestAnimationFrame(Fe)}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275dir=o.FsC({type:a,selectors:[["","angorScrollbar",""]],inputs:{angorScrollbar:"angorScrollbar",angorScrollbarOptions:"angorScrollbarOptions"},exportAs:["angorScrollbar"],standalone:!0,features:[o.OA$]})}return a})();var Nl=v(7987);const $b=["navigationContent"],vv=[[["","angorVerticalNavigationHeader",""]],[["","angorVerticalNavigationContentHeader",""]],[["","angorVerticalNavigationFooter",""]]],_v=["[angorVerticalNavigationHeader]","[angorVerticalNavigationContentHeader]","[angorVerticalNavigationFooter]"],yv=a=>({wheelPropagation:a,suppressScrollX:!0}),vm=()=>({wheelPropagation:!1,suppressScrollX:!0});function bv(a,s){if(1&a){const i=o.RV6();o.j41(0,"angor-vertical-navigation-aside-item",10),o.bIt("click",function(){o.eBV(i);const h=o.XpG(2).$implicit,C=o.XpG();return o.Njj(C.toggleAside(h))}),o.k0s()}if(2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("activeItemId",c.activeAsideItemId)("autoCollapse",c.autoCollapse)("skipChildren",!0)}}function Of(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",8),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function tu(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function wv(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",8),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function _m(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function ah(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",8),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Ev(a,s){if(1&a&&o.DNE(0,bv,1,5,"angor-vertical-navigation-aside-item",7)(1,Of,1,2,"angor-vertical-navigation-basic-item",8)(2,tu,1,3,"angor-vertical-navigation-collapsable-item",9)(3,wv,1,2,"angor-vertical-navigation-divider-item",8)(4,_m,1,3,"angor-vertical-navigation-group-item",9)(5,ah,1,2,"angor-vertical-navigation-spacer-item",8),2&a){const i=o.XpG().$implicit;o.vxM("aside"===i.type?0:-1),o.R7$(),o.vxM("basic"===i.type?1:-1),o.R7$(),o.vxM("collapsable"===i.type?2:-1),o.R7$(),o.vxM("divider"===i.type?3:-1),o.R7$(),o.vxM("group"===i.type?4:-1),o.R7$(),o.vxM("spacer"===i.type?5:-1)}}function ym(a,s){if(1&a&&o.DNE(0,Ev,6,6),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function Rf(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-aside-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function zb(a,s){if(1&a&&o.DNE(0,Rf,1,3,"angor-vertical-navigation-aside-item",9),2&a){const i=o.XpG().$implicit,c=o.XpG(2);o.vxM("aside"===i.type&&i.id===c.activeAsideItemId?0:-1)}}function Cv(a,s){if(1&a&&o.DNE(0,zb,1,1),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function Wb(a,s){if(1&a&&(o.j41(0,"div",6),o.Z7z(1,Cv,1,1,null,null,o.BUC().trackByFn,!0),o.k0s()),2&a){const i=o.XpG();o.Y8G("angorScrollbarOptions",o.lJ4(5,vm))("@fadeInLeft","left"===i.position)("@fadeInRight","right"===i.position)("@fadeOutLeft","left"===i.position)("@fadeOutRight","right"===i.position),o.R7$(),o.Dyx(i.navigation)}}let Dv=(()=>{class a{constructor(){this._animationBuilder=(0,o.WQX)(mi.S6),this._changeDetectorRef=(0,o.WQX)(o.gRc),this._document=(0,o.WQX)(nt.qQ),this._elementRef=(0,o.WQX)(o.aKT),this._renderer2=(0,o.WQX)(o.sFG),this._router=(0,o.WQX)(y.Ix),this._scrollStrategyOptions=(0,o.WQX)(Nl.Tv),this._angorNavigationService=(0,o.WQX)(Da),this._angorUtilsService=(0,o.WQX)(Dt.Q),this.appearance="default",this.autoCollapse=!0,this.inner=!1,this.mode="side",this.name=this._angorUtilsService.randomId(),this.opened=!0,this.position="left",this.transparentOverlay=!1,this.appearanceChanged=new o.bkB,this.modeChanged=new o.bkB,this.openedChanged=new o.bkB,this.positionChanged=new o.bkB,this.activeAsideItemId=null,this.onCollapsableItemCollapsed=new nh.m(1),this.onCollapsableItemExpanded=new nh.m(1),this.onRefreshed=new nh.m(1),this._animationsEnabled=!1,this._hovered=!1,this._scrollStrategy=this._scrollStrategyOptions.block(),this._unsubscribeAll=new zr.B,this._handleAsideOverlayClick=()=>{this.closeAside()},this._handleOverlayClick=()=>{this.close()}}get classList(){return{"angor-vertical-navigation-animations-enabled":this._animationsEnabled,[`angor-vertical-navigation-appearance-${this.appearance}`]:!0,"angor-vertical-navigation-hover":this._hovered,"angor-vertical-navigation-inner":this.inner,"angor-vertical-navigation-mode-over":"over"===this.mode,"angor-vertical-navigation-mode-side":"side"===this.mode,"angor-vertical-navigation-opened":this.opened,"angor-vertical-navigation-position-left":"left"===this.position,"angor-vertical-navigation-position-right":"right"===this.position}}get styleList(){return{visibility:this.opened?"visible":"hidden"}}set angorScrollbarDirectives(i){this._angorScrollbarDirectives=i,0!==i.length&&(this._angorScrollbarDirectivesSubscription&&this._angorScrollbarDirectivesSubscription.unsubscribe(),this._angorScrollbarDirectivesSubscription=(0,ol.h)(this.onCollapsableItemCollapsed,this.onCollapsableItemExpanded).pipe((0,Kr.Q)(this._unsubscribeAll),(0,Re.c)(250)).subscribe(()=>{i.forEach(c=>{c.update()})}))}_onMouseenter(){this._enableAnimations(),this._hovered=!0}_onMouseleave(){this._enableAnimations(),this._hovered=!1}ngOnChanges(i){if("appearance"in i&&this.appearanceChanged.next(i.appearance.currentValue),"inner"in i&&(this.inner=(0,ih.he)(i.inner.currentValue)),"mode"in i){const c=i.mode.currentValue,h=i.mode.previousValue;this._disableAnimations(),"over"===h&&"side"===c&&this._hideOverlay(),"side"===h&&"over"===c&&(this.closeAside(),this.opened&&this._showOverlay()),this.modeChanged.next(c),setTimeout(()=>{this._enableAnimations()},500)}"navigation"in i&&this._changeDetectorRef.markForCheck(),"opened"in i&&(this.opened=(0,ih.he)(i.opened.currentValue),this._toggleOpened(this.opened)),"position"in i&&this.positionChanged.next(i.position.currentValue),"transparentOverlay"in i&&(this.transparentOverlay=(0,ih.he)(i.transparentOverlay.currentValue))}ngOnInit(){""===this.name&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this),this._router.events.pipe((0,At.p)(i=>i instanceof y.wF),(0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{"over"===this.mode&&this.opened&&this.close(),"side"===this.mode&&this.activeAsideItemId&&this.closeAside()})}ngAfterViewInit(){this._mutationObserver=new MutationObserver(i=>{i.forEach(c=>{const h=c.target;if("class"===c.attributeName)if(h.classList.contains("cdk-global-scrollblock")){const C=parseInt(h.style.top,10);this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",`${Math.abs(C)}px`)}else this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",null)})}),this._mutationObserver.observe(this._document.documentElement,{attributes:!0,attributeFilter:["class"]}),setTimeout(()=>{if(this._navigationContentEl)if(this._navigationContentEl.nativeElement.classList.contains("ps"))this._angorScrollbarDirectives.forEach(i=>{i.isEnabled()&&i.scrollToElement(".angor-vertical-navigation-item-active",-120,!0)});else{const i=this._navigationContentEl.nativeElement.querySelector(".angor-vertical-navigation-item-active");i&&i.scrollIntoView()}})}ngOnDestroy(){this._mutationObserver.disconnect(),this.close(),this.closeAside(),this._angorNavigationService.deregisterComponent(this.name),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}refresh(){this._changeDetectorRef.markForCheck(),this.onRefreshed.next(!0)}open(){this.opened||this._toggleOpened(!0)}close(){this.opened&&(this.closeAside(),this._toggleOpened(!1))}toggle(){this.opened?this.close():this.open()}openAside(i){i.disabled||!i.id||(this.activeAsideItemId=i.id,this._showAsideOverlay(),this._changeDetectorRef.markForCheck())}closeAside(){this.activeAsideItemId=null,this._hideAsideOverlay(),this._changeDetectorRef.markForCheck()}toggleAside(i){this.activeAsideItemId===i.id?this.closeAside():this.openAside(i)}trackByFn(i,c){return c.id||i}_enableAnimations(){this._animationsEnabled||(this._animationsEnabled=!0)}_disableAnimations(){this._animationsEnabled&&(this._animationsEnabled=!1)}_showOverlay(){this._asideOverlay||(this._overlay=this._renderer2.createElement("div"),this._overlay.classList.add("angor-vertical-navigation-overlay"),this.transparentOverlay&&this._overlay.classList.add("angor-vertical-navigation-overlay-transparent"),this._renderer2.appendChild(this._elementRef.nativeElement.parentElement,this._overlay),this._scrollStrategy.enable(),this._player=this._animationBuilder.build([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({opacity:1}))]).create(this._overlay),this._player.play(),this._overlay.addEventListener("click",this._handleOverlayClick))}_hideOverlay(){this._overlay&&(this._player=this._animationBuilder.build([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({opacity:0}))]).create(this._overlay),this._player.play(),this._player.onDone(()=>{this._overlay&&(this._overlay.removeEventListener("click",this._handleOverlayClick),this._overlay.parentNode.removeChild(this._overlay),this._overlay=null),this._scrollStrategy.disable()}))}_showAsideOverlay(){this._asideOverlay||(this._asideOverlay=this._renderer2.createElement("div"),this._asideOverlay.classList.add("angor-vertical-navigation-aside-overlay"),this._renderer2.appendChild(this._elementRef.nativeElement.parentElement,this._asideOverlay),this._player=this._animationBuilder.build([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({opacity:1}))]).create(this._asideOverlay),this._player.play(),this._asideOverlay.addEventListener("click",this._handleAsideOverlayClick))}_hideAsideOverlay(){this._asideOverlay&&(this._player=this._animationBuilder.build([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({opacity:0}))]).create(this._asideOverlay),this._player.play(),this._player.onDone(()=>{this._asideOverlay&&(this._asideOverlay.removeEventListener("click",this._handleAsideOverlayClick),this._asideOverlay.parentNode.removeChild(this._asideOverlay),this._asideOverlay=null)}))}_toggleOpened(i){this.opened=i,this._enableAnimations(),"over"===this.mode&&(this.opened?this._showOverlay():this._hideOverlay()),this.openedChanged.next(i)}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation"]],viewQuery:function(c,h){if(1&c&&(o.GBs($b,5),o.GBs(gm,5)),2&c){let C;o.mGM(C=o.lsd())&&(h._navigationContentEl=C.first),o.mGM(C=o.lsd())&&(h.angorScrollbarDirectives=C)}},hostVars:4,hostBindings:function(c,h){1&c&&o.bIt("mouseenter",function(){return h._onMouseenter()})("mouseleave",function(){return h._onMouseleave()}),2&c&&(o.Aen(h.styleList),o.HbH(h.classList))},inputs:{appearance:"appearance",autoCollapse:"autoCollapse",inner:"inner",mode:"mode",name:"name",navigation:"navigation",opened:"opened",position:"position",transparentOverlay:"transparentOverlay"},outputs:{appearanceChanged:"appearanceChanged",modeChanged:"modeChanged",openedChanged:"openedChanged",positionChanged:"positionChanged"},exportAs:["angorVerticalNavigation"],standalone:!0,features:[o.OA$,o.aNF],ngContentSelectors:_v,decls:12,vars:4,consts:[["navigationContent",""],[1,"angor-vertical-navigation-wrapper"],[1,"angor-vertical-navigation-header"],["angorScrollbar","",1,"angor-vertical-navigation-content",3,"angorScrollbarOptions"],[1,"angor-vertical-navigation-content-header"],[1,"angor-vertical-navigation-footer"],["angorScrollbar","",1,"angor-vertical-navigation-aside-wrapper",3,"angorScrollbarOptions"],[3,"item","name","activeItemId","autoCollapse","skipChildren"],[3,"item","name"],[3,"item","name","autoCollapse"],[3,"click","item","name","activeItemId","autoCollapse","skipChildren"]],template:function(c,h){1&c&&(o.NAR(vv),o.j41(0,"div",1)(1,"div",2),o.SdG(2),o.k0s(),o.j41(3,"div",3,0)(5,"div",4),o.SdG(6,1),o.k0s(),o.Z7z(7,ym,1,1,null,null,h.trackByFn,!0),o.k0s(),o.j41(9,"div",5),o.SdG(10,2),o.k0s()(),o.DNE(11,Wb,3,6,"div",6)),2&c&&(o.R7$(3),o.Y8G("angorScrollbarOptions",o.eq3(2,yv,h.inner)),o.R7$(4),o.Dyx(h.navigation),o.R7$(4),o.vxM(h.activeAsideItemId?11:-1))},dependencies:[gm,dv,Qu,lv,Df,sv,Rl],styles:[':root{--angor-vertical-navigation-width: 280px}angor-vertical-navigation{position:sticky;display:flex;flex-direction:column;flex:1 0 auto;top:0;width:var(--angor-vertical-navigation-width);min-width:var(--angor-vertical-navigation-width);max-width:var(--angor-vertical-navigation-width);height:100vh;min-height:100vh;max-height:100vh;z-index:200}angor-vertical-navigation.angor-vertical-navigation-animations-enabled{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:visibility,margin-left,margin-right,transform,width,max-width,min-width}angor-vertical-navigation.angor-vertical-navigation-animations-enabled .angor-vertical-navigation-wrapper{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:width,max-width,min-width}angor-vertical-navigation.angor-vertical-navigation-mode-over{position:fixed;top:0;bottom:0}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-over{left:0;transform:translate3d(-100%,0,0)}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-over.angor-vertical-navigation-opened{transform:translateZ(0)}angor-vertical-navigation.angor-vertical-navigation-position-left .angor-vertical-navigation-wrapper{left:0}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-over{right:0;transform:translate3d(100%,0,0)}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-over.angor-vertical-navigation-opened{transform:translateZ(0)}angor-vertical-navigation.angor-vertical-navigation-position-right .angor-vertical-navigation-wrapper{right:0}angor-vertical-navigation.angor-vertical-navigation-inner{position:relative;width:auto;min-width:0;max-width:none;height:auto;min-height:0;max-height:none;box-shadow:none}angor-vertical-navigation.angor-vertical-navigation-inner .angor-vertical-navigation-wrapper{position:relative;overflow:visible;height:auto}angor-vertical-navigation.angor-vertical-navigation-inner .angor-vertical-navigation-wrapper .angor-vertical-navigation-content{overflow:visible!important}angor-vertical-navigation .angor-vertical-navigation-wrapper{position:absolute;display:flex;flex:1 1 auto;flex-direction:column;top:0;bottom:0;width:100%;height:100%;overflow:hidden;z-index:10;background:inherit;box-shadow:inset -1px 0 0 var(--angor-border)}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content{flex:1 1 auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-divider-item{margin:24px 0}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-group-item{margin-top:24px}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper{position:absolute;display:flex;flex:1 1 auto;flex-direction:column;top:0;bottom:0;left:var(--angor-vertical-navigation-width);width:var(--angor-vertical-navigation-width);height:100%;z-index:5;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;transition-duration:.4s;transition-property:left,right;transition-timing-function:cubic-bezier(.25,.8,.25,1);background:inherit}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper>angor-vertical-navigation-aside-item{padding:24px 0}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper>angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper{display:none!important}angor-vertical-navigation.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-width)}angor-vertical-navigation angor-vertical-navigation-aside-item,angor-vertical-navigation angor-vertical-navigation-basic-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item,angor-vertical-navigation angor-vertical-navigation-divider-item,angor-vertical-navigation angor-vertical-navigation-group-item,angor-vertical-navigation angor-vertical-navigation-spacer-item{display:flex;flex-direction:column;flex:1 0 auto;-webkit-user-select:none;user-select:none}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{position:relative;display:flex;align-items:center;justify-content:flex-start;padding:10px 16px;font-size:13px;font-weight:500;line-height:20px;text-decoration:none;border-radius:6px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled{cursor:default;opacity:.4}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin-right:16px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{font-size:11px;line-height:1.5}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge{margin-left:auto}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;white-space:nowrap;height:20px}angor-vertical-navigation angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{margin:0 12px}angor-vertical-navigation angor-vertical-navigation-aside-item,angor-vertical-navigation angor-vertical-navigation-basic-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item{margin-bottom:4px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item{cursor:pointer}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge+.angor-vertical-navigation-item-arrow{margin-left:8px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{height:20px;line-height:20px;margin-left:auto;transition:transform .3s cubic-bezier(.25,.8,.25,1),color 375ms cubic-bezier(.25,.8,.25,1)}angor-vertical-navigation angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{transform:rotate(90deg)}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:first-child{margin-top:6px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:last-child{padding-bottom:6px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:last-child>.angor-vertical-navigation-item-children>*:last-child{padding-bottom:0}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding:10px 16px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children{overflow:hidden}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:56px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:72px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:88px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:104px}angor-vertical-navigation angor-vertical-navigation-divider-item{margin:12px 0}angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper{height:1px;box-shadow:0 1px}angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{display:none!important}angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}angor-vertical-navigation angor-vertical-navigation-spacer-item{margin:6px 0}.angor-vertical-navigation-overlay{position:absolute;inset:0;z-index:170;opacity:0;background-color:#0009}.angor-vertical-navigation-overlay+.angor-vertical-navigation-aside-overlay{background-color:transparent}.angor-vertical-navigation-aside-overlay{position:absolute;inset:0;z-index:169;opacity:0;background-color:#0000004d}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{color:currentColor}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{color:currentColor;opacity:.6}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{color:currentColor;opacity:.8}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{color:currentColor;opacity:.5}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced{background-color:rgb(3 33 40 / var(--tw-bg-opacity));--tw-bg-opacity: .05}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *){background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-bg-opacity: .12}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover{background-color:rgb(3 33 40 / var(--tw-bg-opacity));--tw-bg-opacity: .05}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *){background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-bg-opacity: .12}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{--tw-text-opacity: 1;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity));opacity:1}angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title:is(.dark *){--tw-text-opacity: 1;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity))}:root{--angor-vertical-navigation-compact-width: 112px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact{width:var(--angor-vertical-navigation-compact-width);min-width:var(--angor-vertical-navigation-compact-width);max-width:var(--angor-vertical-navigation-compact-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-compact-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-compact-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-compact-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper{margin:4px 8px 0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{flex-direction:column;justify-content:center;padding:12px;border-radius:6px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{margin-top:8px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{font-size:12px;font-weight:500;text-align:center;line-height:16px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{display:none!important}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge{position:absolute;top:12px;left:64px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item>angor-vertical-navigation-collapsable-item,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item>angor-vertical-navigation-collapsable-item{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-compact-width)}:root{--angor-vertical-navigation-width: 280px;--angor-vertical-navigation-dense-width: 80px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over){width:var(--angor-vertical-navigation-dense-width);min-width:var(--angor-vertical-navigation-dense-width);max-width:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-dense-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-dense-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-hover .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{width:calc(var(--angor-vertical-navigation-dense-width) - 24px);min-width:calc(var(--angor-vertical-navigation-dense-width) - 24px);max-width:calc(var(--angor-vertical-navigation-dense-width) - 24px)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item:first-of-type{margin-top:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{padding:10px 16px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{white-space:nowrap;opacity:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:before{content:"";position:absolute;top:20px;width:23px;border-top-width:2px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper{width:var(--angor-vertical-navigation-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{width:calc(var(--angor-vertical-navigation-width) - 24px);min-width:calc(var(--angor-vertical-navigation-width) - 24px);max-width:calc(var(--angor-vertical-navigation-width) - 24px)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{white-space:nowrap;animation:removeWhiteSpaceNoWrap 1ms linear .35s;animation-fill-mode:forwards}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-width)}@keyframes removeWhiteSpaceNoWrap{0%{white-space:nowrap}99%{white-space:nowrap}to{white-space:normal}}:root{--angor-vertical-navigation-thin-width: 80px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin{width:var(--angor-vertical-navigation-thin-width);min-width:var(--angor-vertical-navigation-thin-width);max-width:var(--angor-vertical-navigation-thin-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-thin-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-thin-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-thin-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item{flex-direction:column;justify-content:center;height:64px;min-height:64px;max-height:64px;padding:0 16px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper{display:flex;align-items:center;justify-content:center}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{justify-content:center;padding:12px;border-radius:4px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge-content,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge-content,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-collapsable-item{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-thin-width)}\n'],encapsulation:2,data:{animation:_f.F},changeDetection:0})}return a})();var xv=v(6939),Sv=v(6231);let Av=(()=>{class a{constructor(i){this.relayService=i,this.notificationSubject=new gt.t([]),this.notificationCount=new gt.t(0),this.lastNotificationTimestamp=null,this.initializeNotificationData()}initializeNotificationData(){this.notificationCount.next(this.loadCountFromLocalStorage()),this.lastNotificationTimestamp=this.loadTimestampFromLocalStorage()}loadCountFromLocalStorage(){const i=localStorage.getItem("notificationCount");return i?parseInt(i,10):0}loadTimestampFromLocalStorage(){const i=localStorage.getItem("lastNotificationTimestamp");return i?parseInt(i,10):null}saveNotificationData(i,c){localStorage.setItem("notificationCount",i.toString()),localStorage.setItem("lastNotificationTimestamp",c.toString())}getNotificationObservable(){return this.notificationSubject.asObservable()}getNotificationCount(){return this.notificationCount.asObservable()}loadFilterPreferences(){const i=localStorage.getItem("notificationSettings");return i?JSON.parse(i):[1,3,4,7,9735]}subscribeToNotifications(i){var c=this;return(0,G.A)(function*(){yield c.relayService.ensureConnectedRelays();const h=c.relayService.getPool(),C=c.relayService.getConnectedRelays();if(0===C.length)throw new Error("No connected relays");const I=c.loadTimestampFromLocalStorage(),H=c.loadFilterPreferences();0===H.length&&H.push(1,3,4,7,9735);const re={kinds:H,"#p":[i],limit:50,since:I||void 0};return new Promise(Fe=>{h.subscribeMany(C,[re],{onevent:Gt=>c.handleNotificationEvent(Gt,i),oneose(){Fe()}})})})()}handleNotificationEvent(i,c){if(this.isNotificationEvent(i,c)){const C=new Date(1e3*i.created_at);let I="",H="",re="";switch(i.kind){case 1:I="Mention",H="Mentioned you in an event.",re="heroicons_outline:at-symbol";break;case 4:I="Private Message",H="Sent a private message.",re="heroicons_outline:envelope-open";break;case 9735:I="Zap",H="Received a zap event.",re="feather:zap";break;case 3:I="New Follower",H="You have a new follower.",re="heroicons_outline:user-plus";break;case 7:I="New Like",H="You have a new Like.",re="heroicons_outline:hand-thumb-up";break;default:I="Notification",re="heroicons_outline:bell"}const Gt=[{id:i.id,icon:re,title:I,description:H,time:C,kind:i.kind,read:!1},...this.notificationSubject.value].slice(0,50);this.notificationSubject.next(Gt),this.incrementNotificationCount(i.created_at)}}incrementNotificationCount(i){const c=this.notificationCount.value+1;this.notificationCount.next(c),this.saveNotificationData(c,i)}markAllAsRead(){const i=this.notificationSubject.value.map(h=>({...h,read:!0}));this.notificationSubject.next(i),this.notificationCount.next(0);const c=Math.floor(Date.now()/1e3);this.saveNotificationData(0,c)}isNotificationEvent(i,c){return i.tags.some(h=>"p"===h[0]&&h[1]===c)}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(Sv.b))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var Zi=v(4930);const Tv=["notificationsOrigin"],Iv=["notificationsPanel"],id=a=>({unread:a}),Mv=(a,s)=>({"bg-gray-400 dark:bg-gray-500 sm:opacity-0 sm:group-hover:opacity-100":a,"bg-primary":s});function Ov(a,s){if(1&a&&(o.j41(0,"span",4)(1,"span",6),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(2),o.SpI(" ",i.unreadCount," ")}}function Gb(a,s){1&a&&o.eu8(0)}function kf(a,s){if(1&a&&(o.j41(0,"a",23),o.DNE(1,Gb,1,0,"ng-container",25),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.sdS(9);o.Y8G("href",i.link,o.B4B),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function nu(a,s){1&a&&o.eu8(0)}function bm(a,s){if(1&a&&(o.j41(0,"a",24),o.DNE(1,nu,1,0,"ng-container",25),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.sdS(9);o.Y8G("routerLink",i.link),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function lh(a,s){if(1&a&&o.DNE(0,kf,2,2,"a",23)(1,bm,2,2,"a",24),2&a){const i=o.XpG().$implicit;o.vxM(i.useRouter?-1:0),o.R7$(),o.vxM(i.useRouter?1:-1)}}function Rv(a,s){1&a&&o.eu8(0)}function wm(a,s){if(1&a&&(o.j41(0,"div",17),o.DNE(1,Rv,1,0,"ng-container",25),o.k0s()),2&a){o.XpG();const i=o.sdS(9);o.R7$(),o.Y8G("ngTemplateOutlet",i)}}function Em(a,s){if(1&a&&(o.j41(0,"div",26),o.nrm(1,"mat-icon",32),o.k0s()),2&a){const i=o.XpG(2).$implicit;o.R7$(),o.Y8G("svgIcon",i.icon)}}function Cm(a,s){if(1&a&&o.nrm(0,"img",27),2&a){const i=o.XpG(2).$implicit;o.Y8G("src",i.image,o.B4B)("alt","Notification image")}}function kv(a,s){if(1&a&&o.nrm(0,"div",29),2&a){const i=o.XpG(2).$implicit;o.Y8G("innerHTML",i.title,o.npT)}}function Dm(a,s){if(1&a&&o.nrm(0,"div",30),2&a){const i=o.XpG(2).$implicit;o.Y8G("innerHTML",i.description,o.npT)}}function Kb(a,s){if(1&a&&(o.DNE(0,Em,2,1,"div",26)(1,Cm,1,2,"img",27),o.j41(2,"div",28),o.DNE(3,kv,1,1,"div",29)(4,Dm,1,1,"div",30),o.j41(5,"div",31),o.EFF(6),o.nI1(7,"date"),o.k0s()()),2&a){const i=o.XpG().$implicit;o.vxM(i.icon&&!i.image?0:-1),o.R7$(),o.vxM(i.image?1:-1),o.R7$(2),o.vxM(i.title?3:-1),o.R7$(),o.vxM(i.description?4:-1),o.R7$(2),o.SpI(" ",o.i5U(7,5,i.time,"MMM dd, h:mm a")," ")}}function Xb(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",16),o.DNE(1,lh,2,2)(2,wm,2,1,"div",17),o.j41(3,"div",18)(4,"button",19),o.bIt("click",function(){const h=o.eBV(i).$implicit,C=o.XpG(2);return o.Njj(C.toggleRead(h))}),o.nrm(5,"span",20),o.k0s(),o.j41(6,"button",21),o.bIt("click",function(){const h=o.eBV(i).$implicit,C=o.XpG(2);return o.Njj(C.delete(h))}),o.nrm(7,"mat-icon",22),o.k0s()()(),o.DNE(8,Kb,8,8,"ng-template",null,2,o.C5r)}if(2&a){const i=s.$implicit;o.Y8G("ngClass",o.eq3(7,id,!i.read)),o.R7$(),o.vxM(i.link?1:-1),o.R7$(),o.vxM(i.link?-1:2),o.R7$(2),o.Y8G("matTooltip",i.read?"Mark as unread":"Mark as read"),o.R7$(),o.Y8G("ngClass",o.l_i(9,Mv,i.read,!i.read)),o.R7$(),o.Y8G("matTooltip","Remove"),o.R7$(),o.Y8G("svgIcon","heroicons_solid:x-mark")}}function Yb(a,s){1&a&&(o.j41(0,"div",15)(1,"div",33),o.nrm(2,"mat-icon",34),o.k0s(),o.j41(3,"div",35),o.EFF(4," No notifications "),o.k0s(),o.j41(5,"div",36),o.EFF(6," When you have notifications, they will appear here. "),o.k0s()()),2&a&&(o.R7$(2),o.Y8G("svgIcon","heroicons_outline:bell"))}function Nv(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"button",3),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.closePanel())}),o.nrm(4,"mat-icon",10),o.k0s()(),o.j41(5,"div",11),o.EFF(6,"Notifications"),o.k0s(),o.j41(7,"div",12)(8,"button",13),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.markAllAsRead())}),o.nrm(9,"mat-icon",10),o.k0s()()(),o.j41(10,"div",14),o.Z7z(11,Xb,10,12,null,null,o.BUC().trackByFn,!0),o.DNE(13,Yb,7,1,"div",15),o.k0s()()}if(2&a){const i=o.XpG();o.R7$(4),o.Y8G("svgIcon","heroicons_solid:x-mark"),o.R7$(4),o.Y8G("matTooltip","Mark all as read")("disabled",0===i.unreadCount),o.R7$(),o.Y8G("svgIcon","heroicons_solid:envelope-open"),o.R7$(2),o.Dyx(i.notifications),o.R7$(2),o.vxM(i.notifications&&i.notifications.length?-1:13)}}let Pv=(()=>{class a{constructor(i,c,h,C,I){this._notificationService=i,this._changeDetectorRef=c,this._overlay=h,this._viewContainerRef=C,this._signerService=I,this.notifications=[],this.unreadCount=0,this._unsubscribeAll=new zr.B}ngOnInit(){const i=this._signerService.getPublicKey();this._notificationService.subscribeToNotifications(i).then(()=>{this._notificationService.getNotificationObservable().pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(c=>{this.notifications=c,this._changeDetectorRef.markForCheck()}),this._notificationService.getNotificationCount().pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(c=>{this.unreadCount=c,this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openPanel(){!this._notificationsPanel||!this._notificationsOrigin||(this._overlayRef||this._createOverlay(),this._overlayRef.attach(new xv.VA(this._notificationsPanel,this._viewContainerRef)))}closePanel(){this._overlayRef&&this._overlayRef.detach()}markAllAsRead(){this._notificationService.markAllAsRead()}toggleRead(i){i.read=!i.read}trackByFn(i,c){return c.id}_createOverlay(){this._overlayRef=this._overlay.create({hasBackdrop:!0,backdropClass:"angor-backdrop-on-mobile",scrollStrategy:this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().flexibleConnectedTo(this._notificationsOrigin._elementRef.nativeElement).withLockedPosition(!0).withPush(!0).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"}])}),this._overlayRef.backdropClick().subscribe(()=>{this._overlayRef.detach()})}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(Av),o.rXU(o.gRc),o.rXU(Nl.hJ),o.rXU(o.c1b),o.rXU(Zi.A))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["notifications"]],viewQuery:function(c,h){if(1&c&&(o.GBs(Tv,5),o.GBs(Iv,5)),2&c){let C;o.mGM(C=o.lsd())&&(h._notificationsOrigin=C.first),o.mGM(C=o.lsd())&&(h._notificationsPanel=C.first)}},exportAs:["notifications"],standalone:!0,features:[o.aNF],decls:6,vars:2,consts:[["notificationsOrigin",""],["notificationsPanel",""],["notificationContent",""],["mat-icon-button","",3,"click"],[1,"absolute","left-0","right-0","top-0","flex","h-3","items-center","justify-center"],[3,"svgIcon"],[1,"ml-4","mt-2.5","flex","h-4","min-w-4","shrink-0","items-center","justify-center","rounded-full","bg-teal-600","px-1","text-xs","font-medium","text-indigo-50"],[1,"fixed","inset-0","flex","flex-col","overflow-hidden","shadow-lg","sm:static","sm:inset-auto","sm:w-90","sm:min-w-90","sm:rounded-2xl"],[1,"flex","shrink-0","items-center","bg-primary","py-4","pl-6","pr-4","text-on-primary"],[1,"-ml-1","mr-3","sm:hidden"],[1,"text-current","icon-size-5",3,"svgIcon"],[1,"text-lg","font-medium","leading-10"],[1,"ml-auto"],["mat-icon-button","",1,"dark:text-white",3,"click","matTooltip","disabled"],[1,"bg-card","relative","flex","flex-auto","flex-col","divide-y","overflow-y-auto","sm:max-h-120"],[1,"flex","flex-auto","flex-col","items-center","justify-center","px-8","py-12","sm:justify-start"],[1,"group","flex","hover:bg-gray-50","dark:hover:bg-black","dark:hover:bg-opacity-5",3,"ngClass"],[1,"flex","flex-auto","py-5","pl-6"],[1,"relative","my-5","ml-2","mr-6","flex","flex-col"],["mat-icon-button","",1,"h-6","min-h-6","w-6",3,"click","matTooltip"],[1,"h-2","w-2","rounded-full",3,"ngClass"],["mat-icon-button","",1,"h-6","min-h-6","w-6","sm:opacity-0","sm:group-hover:opacity-100",3,"click","matTooltip"],[1,"icon-size-4",3,"svgIcon"],[1,"flex","flex-auto","cursor-pointer","py-5","pl-6",3,"href"],[1,"flex","flex-auto","cursor-pointer","py-5","pl-6",3,"routerLink"],[4,"ngTemplateOutlet"],[1,"mr-4","flex","h-8","w-8","shrink-0","items-center","justify-center","rounded-full","bg-gray-100","dark:bg-gray-700"],[1,"mr-4","h-8","w-8","shrink-0","overflow-hidden","rounded-full","object-cover","object-center",3,"src","alt"],[1,"flex","flex-auto","flex-col"],[1,"line-clamp-1","font-semibold",3,"innerHTML"],[1,"line-clamp-2",3,"innerHTML"],[1,"text-secondary","mt-2","text-sm","leading-none"],[1,"icon-size-5",3,"svgIcon"],[1,"flex","h-14","w-14","flex-0","items-center","justify-center","rounded-full","bg-primary-100","dark:bg-primary-600"],[1,"text-primary-700","dark:text-primary-50",3,"svgIcon"],[1,"mt-5","text-2xl","font-semibold","tracking-tight"],[1,"text-secondary","mt-1","w-full","max-w-60","text-center","text-md"]],template:function(c,h){if(1&c){const C=o.RV6();o.j41(0,"button",3,0),o.bIt("click",function(){return o.eBV(C),o.Njj(h.openPanel())}),o.DNE(2,Ov,3,1,"span",4),o.nrm(3,"mat-icon",5),o.k0s(),o.DNE(4,Nv,14,5,"ng-template",null,1,o.C5r)}2&c&&(o.R7$(2),o.vxM(h.unreadCount>0?2:-1),o.R7$(),o.Y8G("svgIcon","heroicons_outline:bell"))},dependencies:[Ha.Hl,Ha.iY,Xr.m_,Xr.An,ta.uc,ta.oV,nt.YU,nt.T3,y.Wk,nt.vh],encapsulation:2,changeDetection:0})}return a})();var Qb=v(5888),iu=v(9417),Fv=v(5542),ru=v(9888),Nf=v(8359),Pl=v(7336),Lv=v(9327),xa=v(9172),Zb=v(8203);const Jb=["panel"],qE=["*"];function xm(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",1,0),o.bIt("@panelAnimation.done",function(h){o.eBV(i);const C=o.XpG();return o.Njj(C._animationDone.next(h))}),o.SdG(2),o.k0s()}if(2&a){const i=s.id,c=o.XpG();o.HbH(c._classList),o.AVh("mat-mdc-autocomplete-visible",c.showPanel)("mat-mdc-autocomplete-hidden",!c.showPanel)("mat-primary","primary"===c._color)("mat-accent","accent"===c._color)("mat-warn","warn"===c._color),o.Y8G("id",c.id)("@panelAnimation",c.isOpen?"visible":"hidden"),o.BMQ("aria-label",c.ariaLabel||null)("aria-labelledby",c._getPanelAriaLabelledby(i))}}const Bv=(0,mi.hZ)("panelAnimation",[(0,mi.wk)("void, hidden",(0,mi.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,mi.kY)(":enter, hidden => visible",[(0,mi.Os)([(0,mi.i0)("0.03s linear",(0,mi.iF)({opacity:1})),(0,mi.i0)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,mi.iF)({transform:"scaleY(1)"}))])]),(0,mi.kY)(":leave, visible => hidden",[(0,mi.i0)("0.075s linear",(0,mi.iF)({opacity:0}))])]);let qb=0;class e0{constructor(s,i){this.source=s,this.option=i}}const Uv=new o.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function Vv(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let t0=(()=>{class a{get isOpen(){return this._isOpen&&this.showPanel}_setColor(i){this._color=i,this._changeDetectorRef.markForCheck()}set classList(i){this._classList=i,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const i of this.options)i._changeDetectorRef.markForCheck()}constructor(i,c,h,C){this._changeDetectorRef=i,this._elementRef=c,this._defaults=h,this._activeOptionChanges=Nf.yU.EMPTY,this._animationDone=new o.bkB,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new o.bkB,this.opened=new o.bkB,this.closed=new o.bkB,this.optionActivated=new o.bkB,this.id="mat-autocomplete-"+qb++,this.inertGroups=C?.SAFARI||!1,this.autoActiveFirstOption=!!h.autoActiveFirstOption,this.autoSelectActiveOption=!!h.autoSelectActiveOption,this.requireSelection=!!h.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new ru.Au(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(i=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[i]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(i){this.panel&&(this.panel.nativeElement.scrollTop=i)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(i){const c=new e0(this,i);this.optionSelected.emit(c)}_getPanelAriaLabelledby(i){return this.ariaLabel?null:this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_skipPredicate(){return!1}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(o.gRc),o.rXU(o.aKT),o.rXU(Uv),o.rXU(me.OD))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["mat-autocomplete"]],contentQueries:function(c,h,C){if(1&c&&(o.wni(C,Zt.wT,5),o.wni(C,Zt.QC,5)),2&c){let I;o.mGM(I=o.lsd())&&(h.options=I),o.mGM(I=o.lsd())&&(h.optionGroups=I)}},viewQuery:function(c,h){if(1&c&&(o.GBs(o.C4Q,7),o.GBs(Jb,5)),2&c){let C;o.mGM(C=o.lsd())&&(h.template=C.first),o.mGM(C=o.lsd())&&(h.panel=C.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",o.L39],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",o.L39],requireSelection:[2,"requireSelection","requireSelection",o.L39],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",o.L39],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",o.L39]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[o.Jv_([{provide:Zt.is,useExisting:a}]),o.GFd,o.aNF],ngContentSelectors:qE,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(c,h){1&c&&(o.NAR(),o.DNE(0,xm,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape, var(--mat-app-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Bv]},changeDetection:0})}return a})();const Sm={provide:iu.kq,useExisting:(0,o.Rfq)(()=>jv),multi:!0},Am=new o.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const a=(0,o.WQX)(Nl.hJ);return()=>a.scrollStrategies.reposition()}}),r0={provide:Am,deps:[Nl.hJ],useFactory:function n0(a){return()=>a.scrollStrategies.reposition()}};let jv=(()=>{class a{constructor(i,c,h,C,I,H,re,Fe,Pt,Gt,Hn){this._element=i,this._overlay=c,this._viewContainerRef=h,this._zone=C,this._changeDetectorRef=I,this._dir=re,this._formField=Fe,this._document=Pt,this._viewportRuler=Gt,this._defaults=Hn,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Nf.yU.EMPTY,this._breakpointObserver=(0,o.WQX)(Lv.QP),this._handsetLandscapeSubscription=Nf.yU.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new zr.B,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._initialized=new zr.B,this._injector=(0,o.WQX)(o.zZn),this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=(0,nf.v)(()=>{const bn=this.autocomplete?this.autocomplete.options:null;return bn?bn.changes.pipe((0,xa.Z)(bn),(0,ke.n)(()=>(0,ol.h)(...bn.map(Cn=>Cn.onSelectionChange)))):this._initialized.pipe((0,ke.n)(()=>this.optionSelections))}),this._handlePanelKeydown=bn=>{(bn.keyCode===Pl._f&&!(0,Pl.rp)(bn)||bn.keyCode===Pl.i7&&(0,Pl.rp)(bn,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),bn.stopPropagation(),bn.preventDefault())},this._trackedModal=null,this._scrollStrategy=H}ngAfterViewInit(){this._initialized.next(),this._initialized.complete();const i=this._getWindow();typeof i<"u"&&this._zone.runOutsideAngular(()=>i.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(i){i.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const i=this._getWindow();typeof i<"u"&&i.removeEventListener("blur",this._windowBlurHandler),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&(0,ru.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,ol.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,At.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,At.p)(()=>this._overlayAttached)):(0,B.of)()).pipe((0,us.T)(i=>i instanceof Zt.MI?i:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,ol.h)((0,wc.R)(this._document,"click"),(0,wc.R)(this._document,"auxclick"),(0,wc.R)(this._document,"touchend")).pipe((0,At.p)(i=>{const c=(0,me.Fb)(i),h=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,C=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&c!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!h||!h.contains(c))&&(!C||!C.contains(c))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(c)}))}writeValue(i){Promise.resolve(null).then(()=>this._assignOptionValue(i))}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._element.nativeElement.disabled=i}_handleKeydown(i){const c=i.keyCode,h=(0,Pl.rp)(i);if(c===Pl._f&&!h&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&c===Pl.Fm&&this.panelOpen&&!h)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){const C=this.autocomplete._keyManager.activeItem,I=c===Pl.i7||c===Pl.n6;c===Pl.wn||I&&!h&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):I&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(I||this.autocomplete._keyManager.activeItem!==C)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(i){let c=i.target,h=c.value;if("number"===c.type&&(h=""==h?null:parseFloat(h)),this._previousValue!==h){if(this._previousValue=h,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(h),h){if(this.panelOpen&&!this.autocomplete.requireSelection){const C=this.autocomplete.options?.find(I=>I.selected);C&&h!==this._getDisplayValue(C.value)&&C.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===i.target){const C=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(C)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(i=!1){this._formField&&"auto"===this._formField.floatLabel&&(i?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const i=new V.c(h=>{(0,o.mal)(()=>{h.next()},{injector:this._injector})}),c=this.autocomplete.options.changes.pipe((0,b.M)(()=>this._positionStrategy.reapplyLastPosition()),(0,Re.c)(0));return(0,ol.h)(i,c).pipe((0,ke.n)(()=>this._zone.run(()=>{const h=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),h!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),(0,P.s)(1)).subscribe(h=>this._setValueAndClose(h))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(i){const c=this.autocomplete;return c&&c.displayWith?c.displayWith(i):i}_assignOptionValue(i){const c=this._getDisplayValue(i);null==i&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(c??"")}_updateNativeInputValue(i){this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(i){const c=this.autocomplete,h=i?i.source:this._pendingAutoselectedOption;h?(this._clearPreviousSelectedOption(h),this._assignOptionValue(h.value),this._onChange(h.value),c._emitSelectEvent(h),this._element.nativeElement.focus()):c.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),c._animationDone?c._animationDone.pipe((0,P.s)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(i,c){this.autocomplete?.options?.forEach(h=>{h!==i&&h.selected&&h.deselect(c)})}_openPanelInternal(i=this._element.nativeElement.value){this._attachOverlay(i),this._floatLabel(),this._trackedModal&&(0,ru.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(i){let c=this._overlayRef;c?(this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()})):(this._portal=new xv.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),c=this._overlay.create(this._getOverlayConfig()),this._overlayRef=c,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&c&&c.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(Lv.Rp.HandsetLandscape).subscribe(C=>{C.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),c&&!c.hasAttached()&&(c.attach(this._portal),this._valueOnAttach=i,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const h=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&h!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const i=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=i.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=i.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Nl.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const i=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(i),this._positionStrategy=i,i}_setStrategyPositions(i){const c=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],h=this._aboveClass,C=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:h},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:h}];let I;I="above"===this.position?C:"below"===this.position?c:[...c,...C],i.withPositions(I)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const i=this.autocomplete;if(i.autoActiveFirstOption){let c=-1;for(let h=0;h .cdk-overlay-container [aria-modal="true"]');if(!i)return;const c=this.autocomplete.id;this._trackedModal&&(0,ru.Ae)(this._trackedModal,"aria-owns",c),(0,ru.px)(i,"aria-owns",c),this._trackedModal=i}_clearFromModal(){this._trackedModal&&((0,ru.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(o.aKT),o.rXU(Nl.hJ),o.rXU(o.c1b),o.rXU(o.SKi),o.rXU(o.gRc),o.rXU(Am),o.rXU(Zb.dS,8),o.rXU(Vn.xb,9),o.rXU(nt.qQ,8),o.rXU(Fv.Xj),o.rXU(Uv,8))};static#t=this.\u0275dir=o.FsC({type:a,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(c,h){1&c&&o.bIt("focusin",function(){return h._handleFocus()})("blur",function(){return h._onTouched()})("input",function(I){return h._handleInput(I)})("keydown",function(I){return h._handleKeydown(I)})("click",function(){return h._handleClick()}),2&c&&o.BMQ("autocomplete",h.autocompleteAttribute)("role",h.autocompleteDisabled?null:"combobox")("aria-autocomplete",h.autocompleteDisabled?null:"list")("aria-activedescendant",h.panelOpen&&h.activeOption?h.activeOption.id:null)("aria-expanded",h.autocompleteDisabled?null:h.panelOpen.toString())("aria-controls",h.autocompleteDisabled||!h.panelOpen||null==h.autocomplete?null:h.autocomplete.id)("aria-haspopup",h.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",o.L39]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[o.Jv_([Sm]),o.GFd,o.OA$]})}return a})(),Fl=(()=>{class a{static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275mod=o.$C({type:a});static#n=this.\u0275inj=o.G2t({providers:[r0],imports:[Nl.z_,Zt.Sy,Zt.yE,nt.MD,Fv.Gj,Zt.Sy,Zt.yE]})}return a})();var Tm=v(9042),Hv=v(7291);const o0=["barSearchInput"],$v=["matAutocomplete"];function zv(a,s){if(1&a){const i=o.RV6();o.j41(0,"button",5),o.bIt("click",function(){o.eBV(i);const h=o.XpG(2);return o.Njj(h.open())}),o.nrm(1,"mat-icon",6),o.k0s()}2&a&&(o.R7$(),o.Y8G("svgIcon","heroicons_outline:magnifying-glass"))}function Pf(a,s){1&a&&(o.j41(0,"mat-option",14),o.EFF(1," No results found! "),o.k0s())}function Im(a,s){if(1&a){const i=o.RV6();o.j41(0,"img",22),o.bIt("error",function(h){o.eBV(i);const C=o.XpG(5);return o.Njj(C.handleImageError(h))}),o.k0s()}if(2&a){const i=o.XpG().$implicit;o.Mz_("alt","",i.name,"'s avatar"),o.Y8G("src",i.avatar,o.B4B)}}function nC(a,s){1&a&&(o.qex(0),o.nrm(1,"mat-icon",23),o.bVm()),2&a&&(o.R7$(),o.Y8G("svgIcon","heroicons_outline:user-circle"))}function Wv(a,s){if(1&a&&(o.j41(0,"div",24),o.EFF(1),o.k0s()),2&a){const i=o.XpG().$implicit;o.R7$(),o.SpI(" ",i.about," ")}}function Gv(a,s){if(1&a&&(o.qex(0),o.j41(1,"mat-option",15)(2,"div",16)(3,"div",17),o.DNE(4,Im,1,3,"img",18)(5,nC,2,1,"ng-container",2),o.k0s(),o.j41(6,"div",19)(7,"span",20),o.EFF(8),o.k0s(),o.DNE(9,Wv,2,1,"div",21),o.k0s()()(),o.bVm()),2&a){const i=s.$implicit;o.R7$(),o.Y8G("routerLink",i.link)("value",i.name),o.R7$(3),o.Y8G("ngIf",i.avatar),o.R7$(),o.Y8G("ngIf",!i.avatar),o.R7$(3),o.JRh(i.name),o.R7$(),o.Y8G("ngIf",i.about)}}function Kv(a,s){if(1&a&&(o.qex(0),o.DNE(1,Gv,10,6,"ng-container",12),o.bVm()),2&a){const i=s.$implicit,c=o.XpG(3);o.R7$(),o.Y8G("ngForOf",i.results)("ngForTrackBy",c.trackByFn)}}function Ff(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",7),o.nrm(1,"mat-icon",8),o.j41(2,"input",9,0),o.bIt("keydown",function(h){o.eBV(i);const C=o.XpG(2);return o.Njj(C.onKeydown(h))}),o.k0s(),o.j41(4,"mat-autocomplete",10,1),o.DNE(6,Pf,2,0,"mat-option",11)(7,Kv,2,2,"ng-container",12),o.k0s(),o.j41(8,"button",13),o.bIt("click",function(){o.eBV(i);const h=o.XpG(2);return o.Njj(h.close())}),o.nrm(9,"mat-icon",6),o.k0s()()}if(2&a){const i=o.sdS(5),c=o.XpG(2);o.Y8G("@slideInTop",void 0)("@slideOutTop",void 0),o.R7$(),o.Y8G("svgIcon","heroicons_outline:magnifying-glass"),o.R7$(),o.Y8G("formControl",c.searchControl)("matAutocomplete",i)("placeholder","Search..."),o.R7$(2),o.Y8G("autoSelectActiveOption",!0)("disableRipple",!0),o.R7$(2),o.Y8G("ngIf",c.resultSets&&!c.resultSets.length),o.R7$(),o.Y8G("ngForOf",c.resultSets)("ngForTrackBy",c.trackByFn),o.R7$(2),o.Y8G("svgIcon","heroicons_outline:x-mark")}}function Mm(a,s){if(1&a&&(o.j41(0,"div"),o.DNE(1,zv,2,1,"button",3)(2,Ff,10,12,"div",4),o.k0s()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngIf",!i.opened),o.R7$(),o.Y8G("ngIf",i.opened)}}let Ll=(()=>{class a{constructor(i,c){this._storageService=i,this._sanitizer=c,this.appearance="basic",this.debounce=300,this.minLength=2,this.search=new o.bkB,this.opened=!1,this.searchControl=new iu.hs,this._unsubscribeAll=new zr.B}set barSearchInput(i){i&&setTimeout(()=>{i.nativeElement.focus()})}set matAutocomplete(i){this._matAutocomplete=i}ngOnChanges(i){"appearance"in i&&this.close()}ngOnInit(){var i=this;this.searchControl.valueChanges.pipe((0,mm.B)(this.debounce),(0,Kr.Q)(this._unsubscribeAll),(0,us.T)(c=>((!c||c.lengthc&&c.length>=this.minLength)).subscribe(function(){var c=(0,G.A)(function*(h){const C=yield i._storageService.searchProfile(h);i.resultSets=C.map(I=>({label:"Project",results:[{name:I.profile.name||I.profile.displayName||I.pubKey,pubkey:I.pubKey,username:I.profile.username||"",website:I.profile.website||"",about:I.profile.about?I.profile.about.replace(/<\/?[^>]+(>|$)/g,""):"",avatar:I.profile.picture||null,banner:I.profile.banner||null,link:`/profile/${I.pubKey}`}]})),i.search.next(i.resultSets)});return function(h){return c.apply(this,arguments)}}())}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}onKeydown(i){"Escape"===i.code&&"bar"===this.appearance&&!this._matAutocomplete.isOpen&&this.close()}open(){this.opened||(this.opened=!0)}close(){this.opened&&(this.searchControl.setValue(""),this.opened=!1)}trackByFn(i,c){return c.id||i}handleImageError(i){const c=i.target;c.onerror=null,c.src="images/avatars/avatar-placeholder.png"}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(Hv.n),o.rXU(u.up))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["search"]],viewQuery:function(c,h){if(1&c&&(o.GBs(o0,5),o.GBs($v,5)),2&c){let C;o.mGM(C=o.lsd())&&(h.barSearchInput=C.first),o.mGM(C=o.lsd())&&(h.matAutocomplete=C.first)}},inputs:{appearance:"appearance",debounce:"debounce",minLength:"minLength"},outputs:{search:"search"},exportAs:["angorSearch"],standalone:!0,features:[o.Jv_([{provide:Am,useFactory:()=>{const i=(0,o.WQX)(Nl.hJ);return()=>i.scrollStrategies.block()}}]),o.OA$,o.aNF],decls:1,vars:1,consts:[["barSearchInput",""],["matAutocomplete","matAutocomplete"],[4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],["class","bg-card absolute inset-0 z-99 flex shrink-0 items-center",4,"ngIf"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"bg-card","absolute","inset-0","z-99","flex","shrink-0","items-center"],[1,"absolute","ml-6","sm:ml-8",3,"svgIcon"],[1,"h-full","w-full","px-16","sm:px-18",3,"keydown","formControl","matAutocomplete","placeholder"],[1,"max-h-128","rounded-b","border-t","shadow-md","sm:px-2",3,"autoSelectActiveOption","disableRipple"],["class","text-secondary pointer-events-none bg-transparent px-6 py-0 text-md",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["mat-icon-button","",1,"absolute","right-5","top-1/2","-mt-5","h-10","w-10","shrink-0","sm:right-7",3,"click"],[1,"text-secondary","pointer-events-none","bg-transparent","px-6","py-0","text-md"],[1,"group","relative","mb-1","rounded-md","px-6","py-0","text-md","dark:hover:bg-hover","hover:bg-gray-100",3,"routerLink","value"],[1,"flex","items-center"],[1,"flex","h-8","w-8","shrink-0","items-center","justify-center","overflow-hidden","rounded-full","bg-primary-100","dark:bg-primary-800"],["class","h-full w-full object-cover",3,"src","alt","error",4,"ngIf"],[1,"ml-3","truncate"],[1,"font-semibold"],["class","text-sm text-gray-500",4,"ngIf"],[1,"h-full","w-full","object-cover",3,"error","src","alt"],[1,"m-0","text-primary","icon-size-5","dark:text-primary-400",3,"svgIcon"],[1,"text-sm","text-gray-500"]],template:function(c,h){1&c&&o.DNE(0,Mm,3,2,"div",2),2&c&&o.Y8G("ngIf","bar"===h.appearance)},dependencies:[Ha.Hl,Ha.iY,Xr.m_,Xr.An,iu.YN,iu.me,iu.BC,Fl,t0,Zt.wT,jv,iu.X1,iu.l_,Zt.Sy,y.Wk,Vn.RG,Tm.fS,nt.MD,nt.Sq,nt.bT],encapsulation:2,data:{animation:Qb.F}})}return a})();var Xv=v(1997),Yv=v(881);function Om(a,s){if(1&a&&(o.qex(0),o.nrm(1,"img",14),o.bVm()),2&a){const i=o.XpG();o.R7$(),o.Y8G("src",i.getSafeUrl(null==i.user?null:i.user.picture),o.B4B)}}function s0(a,s){1&a&&o.nrm(0,"mat-icon",12),2&a&&o.Y8G("svgIcon","heroicons_outline:user-circle")}let ou=(()=>{class a{constructor(i,c,h,C,I,H,re){this._changeDetectorRef=i,this._router=c,this._angorConfigService=h,this._signerService=C,this._storageService=I,this.sanitizer=H,this._changeDetectorRefef=re,this.isLoading=!0,this.errorMessage=null,this._unsubscribeAll=new zr.B}ngOnInit(){this.userPubKey=this._signerService.getPublicKey(),this._angorConfigService.config$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{localStorage.setItem("angorConfig",JSON.stringify(i)),this.config=i,this._changeDetectorRef.detectChanges()}),this._storageService.profile$.subscribe(i=>{i&&i.pubKey===this.userPubKey&&(this.user=i.metadata,this._changeDetectorRefef.detectChanges())}),this.loadUserProfile()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadUserProfile(){var i=this;return(0,G.A)(function*(){i._storageService.getProfile(i.userPubKey).then(c=>{i.user=c,i._changeDetectorRefef.detectChanges()})})()}logout(){this._router.navigate(["/logout"])}profile(){this._router.navigate(["/profile"])}setLayout(i){this._angorConfigService.config={layout:i},this._changeDetectorRef.detectChanges()}setScheme(i){this._angorConfigService.config={scheme:i},this._changeDetectorRef.detectChanges()}setTheme(i){this._angorConfigService.config={theme:i},this._changeDetectorRef.detectChanges()}getSafeUrl(i){return this.sanitizer.bypassSecurityTrustUrl(i)}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(o.gRc),o.rXU(y.Ix),o.rXU(Yv.P),o.rXU(Zi.A),o.rXU(Hv.n),o.rXU(u.up),o.rXU(o.gRc))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["user"]],standalone:!0,features:[o.aNF],decls:48,vars:12,consts:[["defaultAvatar",""],["userActions","matMenu"],["settingsMenu","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"relative"],[4,"ngIf","ngIfElse"],[3,"xPosition"],["mat-menu-item",""],[1,"flex","flex-col","leading-none"],[1,"mt-1.5","text-md","font-medium"],[1,"my-2"],["mat-menu-item","",3,"click"],[3,"svgIcon"],["mat-menu-item","",3,"matMenuTriggerFor"],["alt","","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-7","w-7","rounded-full","object-cover",3,"src"]],template:function(c,h){if(1&c){const C=o.RV6();o.j41(0,"button",3)(1,"span",4),o.DNE(2,Om,2,1,"ng-container",5)(3,s0,1,1,"ng-template",null,0,o.C5r),o.k0s()(),o.j41(5,"mat-menu",6,1)(7,"button",7)(8,"span",8)(9,"span"),o.EFF(10,"Logged in as"),o.k0s(),o.j41(11,"span",9),o.EFF(12),o.k0s()()(),o.nrm(13,"mat-divider",10),o.j41(14,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(h.profile())}),o.nrm(15,"mat-icon",12),o.j41(16,"span"),o.EFF(17,"Profile"),o.k0s()(),o.j41(18,"button",13),o.nrm(19,"mat-icon",12),o.j41(20,"span"),o.EFF(21,"Settings"),o.k0s()(),o.nrm(22,"mat-divider",10),o.j41(23,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(h.logout())}),o.nrm(24,"mat-icon",12),o.j41(25,"span"),o.EFF(26,"logout"),o.k0s()()(),o.j41(27,"mat-menu",null,2)(29,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(h.setScheme("auto"))}),o.nrm(30,"mat-icon",12),o.j41(31,"span"),o.EFF(32,"Auto Theme"),o.k0s()(),o.j41(33,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(h.setScheme("light"))}),o.nrm(34,"mat-icon",12),o.j41(35,"span"),o.EFF(36,"Light Theme"),o.k0s()(),o.j41(37,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(h.setScheme("dark"))}),o.nrm(38,"mat-icon",12),o.j41(39,"span"),o.EFF(40,"Dark Theme"),o.k0s()(),o.nrm(41,"mat-divider"),o.j41(42,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(h.setLayout("classic"))}),o.j41(43,"span"),o.EFF(44,"Classic Layout"),o.k0s()(),o.j41(45,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(h.setLayout("modern"))}),o.j41(46,"span"),o.EFF(47,"Modern Layout"),o.k0s()()()}if(2&c){const C=o.sdS(4),I=o.sdS(6),H=o.sdS(28);o.Y8G("matMenuTriggerFor",I),o.R7$(2),o.Y8G("ngIf",null==h.user?null:h.user.picture)("ngIfElse",C),o.R7$(3),o.Y8G("xPosition","before"),o.R7$(7),o.JRh((null==h.user?null:h.user.display_name)||(null==h.user?null:h.user.name)||"Unknown User"),o.R7$(3),o.Y8G("svgIcon","heroicons_outline:user-circle"),o.R7$(3),o.Y8G("matMenuTriggerFor",H),o.R7$(),o.Y8G("svgIcon","heroicons_outline:cog-8-tooth"),o.R7$(5),o.Y8G("svgIcon","heroicons_outline:arrow-right-on-rectangle"),o.R7$(6),o.Y8G("svgIcon","heroicons_solid:bolt"),o.R7$(4),o.Y8G("svgIcon","heroicons_solid:sun"),o.R7$(4),o.Y8G("svgIcon","heroicons_solid:moon")}},dependencies:[Ha.Hl,Ha.iY,bl.Cn,bl.kk,bl.fb,bl.Cp,Xr.m_,Xr.An,Xv.w,Xv.q,nt.MD,nt.bT],encapsulation:2,changeDetection:0})}return a})();var Qv=v(3236);let rd=(()=>{class a{constructor(i,c){this.swUpdate=i,this.zone=c,this.newVersionAvailableSubject=new gt.t(!1),this.isNewVersionAvailable$=this.newVersionAvailableSubject.asObservable(),this.intervalSource=function su(a=0,s=Qv.E){return a<0&&(a=0),(0,mn.O)(a,a,s)}(9e5),this.checkForUpdateOnLoad(),this.checkForUpdateOnInterval()}applyUpdate(){this.swUpdate.activateUpdate().then(()=>document.location.reload()).catch(i=>console.error("Failed to apply updates:",i))}checkForUpdateOnInterval(){var i=this;this.unsubscribeInterval(),this.swUpdate.isEnabled&&this.zone.runOutsideAngular(()=>{this.intervalSubscription=this.intervalSource.subscribe((0,G.A)(function*(){try{(yield i.swUpdate.checkForUpdate())&&i.newVersionAvailableSubject.next(!0)}catch(c){console.error("Failed to check for updates:",c)}}))})}checkForUpdateOnLoad(){this.unsubscribeNewVersion(),this.swUpdate.isEnabled&&(this.newVersionSubscription=this.swUpdate.versionUpdates.subscribe(i=>{switch(i.type){case"VERSION_DETECTED":break;case"VERSION_READY":this.newVersionAvailableSubject.next(!0);break;case"VERSION_INSTALLATION_FAILED":console.error(`Failed to install app version '${i.version.hash}': ${i.error}`)}}))}unsubscribeInterval(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}unsubscribeNewVersion(){this.newVersionSubscription&&this.newVersionSubscription.unsubscribe()}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(De),o.KVO(o.SKi))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function Rm(a,s){if(1&a){const i=o.RV6();o.j41(0,"button",1),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.applyUpdate())}),o.nrm(1,"mat-icon",2),o.k0s()}if(2&a){const i=o.XpG();o.Y8G("matTooltip",i.tooltip||"Update App"),o.R7$(),o.Y8G("svgIcon","heroicons_outline:cloud-arrow-down")}}let od=(()=>{class a{constructor(i,c){this.updateService=i,this._changeDetectorRef=c,this.updateService.isNewVersionAvailable$.subscribe(h=>{h&&this._changeDetectorRef.detectChanges()})}applyUpdate(){this.updateService.applyUpdate()}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(rd),o.rXU(o.gRc))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["update"]],inputs:{tooltip:"tooltip"},exportAs:["update"],standalone:!0,features:[o.aNF],decls:2,vars:3,consts:[["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(c,h){1&c&&(o.DNE(0,Rm,2,2,"button",0),o.nI1(1,"async")),2&c&&o.Y8G("ngIf",o.bMT(1,1,h.updateService.isNewVersionAvailable$))},dependencies:[Ha.Hl,Ha.iY,Xr.m_,Xr.An,ta.uc,ta.oV,nt.MD,nt.bT,nt.Jj],encapsulation:2,changeDetection:0})}return a})();function Zv(a,s){if(1&a&&(o.j41(0,"angor-vertical-navigation",0),o.qex(1,10),o.j41(2,"div",11),o.nrm(3,"img",12),o.k0s(),o.bVm(),o.k0s()),2&a){const i=o.XpG();o.Y8G("mode","over")("name","mainNavigation")("navigation",i.navigation.default)("opened",!1)}}function Jv(a,s){if(1&a&&(o.j41(0,"div",13)(1,"div",14),o.nrm(2,"img",15)(3,"img",16),o.k0s(),o.nrm(4,"img",17),o.k0s(),o.nrm(5,"angor-horizontal-navigation",18)),2&a){const i=o.XpG();o.R7$(5),o.Y8G("name","mainNavigation")("navigation",i.navigation.horizontal)}}function a0(a,s){if(1&a){const i=o.RV6();o.j41(0,"button",19),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.toggleNavigation("mainNavigation"))}),o.nrm(1,"mat-icon",20),o.k0s()}2&a&&(o.R7$(),o.Y8G("svgIcon","heroicons_outline:bars-3"))}function l0(a,s){1&a&&o.nrm(0,"router-outlet")}let c0=(()=>{class a{constructor(i,c,h,C,I){this._activatedRoute=i,this._router=c,this._navigationService=h,this._angorMediaWatcherService=C,this._angorNavigationService=I,this._unsubscribeAll=new zr.B,this.version=mf}get currentYear(){return(new Date).getFullYear()}ngOnInit(){this._navigationService.navigation$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this.navigation=i}),this._angorMediaWatcherService.onMediaChange$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:i})=>{this.isScreenSmall=!i.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(i){const c=this._angorNavigationService.getComponent(i);c&&c.toggle()}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(y.nX),o.rXU(y.Ix),o.rXU(pf),o.rXU(ae.l),o.rXU(Da))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["modern-layout"]],standalone:!0,features:[o.aNF],decls:17,vars:7,consts:[[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","sm:h-20","md:px-6","print:hidden"],["mat-icon-button",""],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],[1,"flex","w-full","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","border-t","px-4","dark:bg-transparent","sm:h-20","md:px-6","print:hidden"],[1,"text-secondary","font-medium"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","px-8","pt-6"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"h-10","w-24"],[1,"mx-2","flex","items-center","lg:mr-8"],[1,"hidden","lg:flex"],["src","images/logo/logo-text.svg",1,"h-10","w-24","dark:hidden"],["src","images/logo/logo-text-on-dark.svg",1,"hidden","h-10","w-24","dark:flex"],["src","images/logo/logo.svg",1,"flex","w-8","lg:hidden"],[1,"mr-2",3,"name","navigation"],["mat-icon-button","",3,"click"],[3,"svgIcon"]],template:function(c,h){1&c&&(o.nrm(0,"angor-loading-bar"),o.DNE(1,Zv,4,4,"angor-vertical-navigation",0),o.j41(2,"div",1)(3,"div",2),o.DNE(4,Jv,6,2)(5,a0,2,1,"button",3),o.j41(6,"div",4),o.nrm(7,"update")(8,"angor-fullscreen",5)(9,"search",6)(10,"notifications")(11,"user"),o.k0s()(),o.j41(12,"div",7),o.DNE(13,l0,1,0,"router-outlet"),o.k0s(),o.j41(14,"div",8)(15,"span",9),o.EFF(16),o.k0s()()()),2&c&&(o.R7$(),o.vxM(h.isScreenSmall?1:-1),o.R7$(3),o.vxM(h.isScreenSmall?-1:4),o.R7$(),o.vxM(h.isScreenSmall?5:-1),o.R7$(4),o.Y8G("appearance","bar"),o.R7$(4),o.vxM(13),o.R7$(3),o.Lme("Angor Hub \xa9 ",h.currentYear," - version ",h.version,""))},dependencies:[rh,Dv,Jg,Ha.Hl,Ha.iY,Xr.m_,Xr.An,vf,Ll,Pv,ou,y.n3,od],encapsulation:2})}return a})();function u0(a,s){1&a&&o.nrm(0,"router-outlet")}let d0=(()=>{class a{constructor(i,c,h,C,I){this._activatedRoute=i,this._router=c,this._navigationService=h,this._angorMediaWatcherService=C,this._angorNavigationService=I,this._unsubscribeAll=new zr.B,this.version=mf}get currentYear(){return(new Date).getFullYear()}ngOnInit(){this._navigationService.navigation$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this.navigation=i}),this._angorMediaWatcherService.onMediaChange$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:i})=>{this.isScreenSmall=!i.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(i){const c=this._angorNavigationService.getComponent(i);c&&c.toggle()}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(y.nX),o.rXU(y.Ix),o.rXU(pf),o.rXU(ae.l),o.rXU(Da))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["classic-layout"]],standalone:!0,features:[o.aNF],decls:21,vars:9,consts:[[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","p-6"],["src","images/logo/logo-text.svg","alt","Angor Hub",1,"w-30","dark:hidden"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"hidden","w-30","dark:flex"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","md:px-6","print:hidden"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],[1,"flex","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","justify-start","border-t","px-4","dark:bg-transparent","md:px-6","print:hidden"],[1,"text-secondary","font-medium"]],template:function(c,h){1&c&&(o.nrm(0,"angor-loading-bar"),o.j41(1,"angor-vertical-navigation",0),o.qex(2,1),o.j41(3,"div",2),o.nrm(4,"img",3)(5,"img",4),o.k0s(),o.bVm(),o.k0s(),o.j41(6,"div",5)(7,"div",6)(8,"button",7),o.bIt("click",function(){return h.toggleNavigation("mainNavigation")}),o.nrm(9,"mat-icon",8),o.k0s(),o.j41(10,"div",9),o.nrm(11,"update")(12,"angor-fullscreen",10)(13,"search",11)(14,"notifications")(15,"user"),o.k0s()(),o.j41(16,"div",12),o.DNE(17,u0,1,0,"router-outlet"),o.k0s(),o.j41(18,"div",13)(19,"span",14),o.EFF(20),o.k0s()()()),2&c&&(o.R7$(),o.Y8G("mode",h.isScreenSmall?"over":"side")("name","mainNavigation")("navigation",h.navigation.default)("opened",!h.isScreenSmall),o.R7$(8),o.Y8G("svgIcon","heroicons_outline:bars-3"),o.R7$(4),o.Y8G("appearance","bar"),o.R7$(4),o.vxM(17),o.R7$(3),o.Lme("Angor Hub \xa9 ",h.currentYear," - version ",h.version,""))},dependencies:[rh,Dv,Ha.Hl,Ha.iY,Xr.m_,Xr.An,vf,Ll,Pv,ou,y.n3,od],encapsulation:2})}return a})();function h0(a,s){1&a&&o.nrm(0,"empty-layout")}function qv(a,s){1&a&&o.nrm(0,"modern-layout")}function f0(a,s){1&a&&o.nrm(0,"classic-layout")}let sd=(()=>{class a{constructor(i,c,h,C,I,H,re){this._activatedRoute=i,this._document=c,this._renderer2=h,this._router=C,this._angorConfigService=I,this._angorMediaWatcherService=H,this._angorPlatformService=re,this._unsubscribeAll=new zr.B}ngOnInit(){(0,oi.z)([this._angorConfigService.config$,this._angorMediaWatcherService.onMediaQueryChange$(["(prefers-color-scheme: dark)","(prefers-color-scheme: light)"])]).pipe((0,Kr.Q)(this._unsubscribeAll),(0,us.T)(([i,c])=>{const h={scheme:i.scheme,theme:i.theme};return"auto"===i.scheme&&(h.scheme=c.breakpoints["(prefers-color-scheme: dark)"]?"dark":"light"),h})).subscribe(i=>{this.scheme=i.scheme,this.theme=i.theme,this._updateScheme(),this._updateTheme()}),this._angorConfigService.config$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this.config=i,this._updateLayout()}),this._router.events.pipe((0,At.p)(i=>i instanceof y.wF),(0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._updateLayout()}),this._renderer2.setAttribute(this._document.querySelector("[ng-version]"),"angor-version",mf),this._renderer2.addClass(this._document.body,this._angorPlatformService.osName)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_updateLayout(){let i=this._activatedRoute;for(;i.firstChild;)i=i.firstChild;this.layout=this.config.layout;const c=i.snapshot.queryParamMap.get("layout");c&&(this.layout=c,this.config&&(this.config.layout=c)),i.pathFromRoot.forEach(C=>{C.routeConfig&&C.routeConfig.data&&C.routeConfig.data.layout&&(this.layout=C.routeConfig.data.layout)})}_updateScheme(){this._document.body.classList.remove("light","dark"),this._document.body.classList.add(this.scheme)}_updateTheme(){this._document.body.classList.forEach(i=>{i.startsWith("theme-")&&this._document.body.classList.remove(i,i.split("-")[1])}),this._document.body.classList.add(this.theme)}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(y.nX),o.rXU(nt.qQ),o.rXU(o.sFG),o.rXU(y.Ix),o.rXU(Yv.P),o.rXU(ae.l),o.rXU(Le))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["layout"]],standalone:!0,features:[o.aNF],decls:3,vars:3,template:function(c,h){1&c&&o.DNE(0,h0,1,0,"empty-layout")(1,qv,1,0,"modern-layout")(2,f0,1,0,"classic-layout"),2&c&&(o.vxM("empty"===h.layout?0:-1),o.R7$(),o.vxM("modern"===h.layout?1:-1),o.R7$(),o.vxM("classic"===h.layout?2:-1))},dependencies:[jE,c0,d0],styles:["layout{display:flex;flex:1 1 auto;width:100%;max-width:100%;min-width:0}layout>*{position:relative;display:flex;flex:1 1 auto;width:100%}layout router-outlet+*{position:relative;display:flex;flex:1 1 auto;width:100%}\n"],encapsulation:2})}return a})();const Lf=()=>{const a=(0,o.WQX)(Zi.A),s=(0,o.WQX)(y.Ix);return""!==a.getPublicKey()||s.parseUrl("/login")},e_=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"project/:pubkey",pathMatch:"full",redirectTo:"explore"},{path:"login-redirect",pathMatch:"full",redirectTo:"explore"},{path:"",component:sd,data:{layout:"empty"},children:[{path:"login",loadChildren:()=>Promise.all([v.e(588),v.e(770)]).then(v.bind(v,770))},{path:"register",loadChildren:()=>Promise.all([v.e(588),v.e(963)]).then(v.bind(v,1963))}]},{path:"",canActivate:[Lf],canActivateChild:[Lf],component:sd,data:{layout:"empty"},children:[{path:"logout",loadChildren:()=>v.e(514).then(v.bind(v,1514))}]},{path:"",canActivate:[Lf],canActivateChild:[Lf],component:sd,resolve:{initialData:()=>{const a=(0,o.WQX)(pf);return(0,o.WQX)(Xy),(0,Nt.p)([a.get()])}},children:[{path:"home",loadChildren:()=>Promise.all([v.e(416),v.e(76),v.e(541)]).then(v.bind(v,5541))},{path:"explore",loadChildren:()=>Promise.all([v.e(576),v.e(879),v.e(76),v.e(621)]).then(v.bind(v,4621))},{path:"profile",loadChildren:()=>Promise.all([v.e(576),v.e(416),v.e(865),v.e(76),v.e(209)]).then(v.bind(v,8209))},{path:"profile/:pubkey",loadChildren:()=>Promise.all([v.e(576),v.e(416),v.e(865),v.e(76),v.e(209)]).then(v.bind(v,8209))},{path:"settings",loadChildren:()=>Promise.all([v.e(576),v.e(76),v.e(19)]).then(v.bind(v,2019))},{path:"settings/:id",loadChildren:()=>Promise.all([v.e(576),v.e(76),v.e(19)]).then(v.bind(v,2019))},{path:"chat",loadChildren:()=>Promise.all([v.e(416),v.e(865),v.e(879),v.e(76),v.e(182)]).then(v.bind(v,7774))},{path:"404-not-found",pathMatch:"full",loadChildren:()=>v.e(258).then(v.bind(v,5258))},{path:"**",redirectTo:"404-not-found"}]}];let p0=(()=>{class a{constructor(){const i=(0,o.WQX)(u.up),c=(0,o.WQX)(Xr.tp);c.addSvgIconSet(i.bypassSecurityTrustResourceUrl("icons/material-twotone.svg")),c.addSvgIconSetInNamespace("mat_outline",i.bypassSecurityTrustResourceUrl("icons/material-outline.svg")),c.addSvgIconSetInNamespace("mat_solid",i.bypassSecurityTrustResourceUrl("icons/material-solid.svg")),c.addSvgIconSetInNamespace("feather",i.bypassSecurityTrustResourceUrl("icons/feather.svg")),c.addSvgIconSetInNamespace("heroicons_outline",i.bypassSecurityTrustResourceUrl("icons/heroicons-outline.svg")),c.addSvgIconSetInNamespace("heroicons_solid",i.bypassSecurityTrustResourceUrl("icons/heroicons-solid.svg")),c.addSvgIconSetInNamespace("heroicons_mini",i.bypassSecurityTrustResourceUrl("icons/heroicons-mini.svg"))}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var m0=v(9350),g0=v(7707);let km=(()=>{class a{constructor(i){this.httpClient=i}getTranslation(i){return this.httpClient.get(`./i18n/${i}.json`)}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(Ee.Qq))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();const i_=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}],ch=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}],uh=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}],dh=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}];var v0=v(7730);var Bf=v(1984),ad=v(7517),b0=v(6726),iC=v(5776);const E0=(0,v(8992).A)(Object.keys,Object);var C0=Object.prototype.hasOwnProperty;var x0=v(1287);const hh=function S0(a){return(0,x0.A)(a)?(0,b0.A)(a):function sC(a){if(!(0,iC.A)(a))return E0(a);var s=[];for(var i in Object(a))C0.call(a,i)&&"constructor"!=i&&s.push(i);return s}(a)};var ld=v(133);var o_=v(9933),A0=v(4528);const Pm=function a_(){return[]};var T0=Object.prototype.propertyIsEnumerable,c_=Object.getOwnPropertySymbols;const au=c_?function(a){return null==a?[]:(a=Object(a),function mh(a,s){for(var i=-1,c=null==a?0:a.length,h=0,C=[];++i{class a{constructor(i){this._angorMockApiService=i,this._compactNavigation=ch,this._defaultNavigation=i_,this._futuristicNavigation=uh,this._horizontalNavigation=dh,this.registerHandlers()}registerHandlers(){this._angorMockApiService.onGet("api/navigation").reply(()=>(this._compactNavigation.forEach(i=>{this._defaultNavigation.forEach(c=>{c.id===i.id&&(i.children=tc(c.children))})}),this._futuristicNavigation.forEach(i=>{this._defaultNavigation.forEach(c=>{c.id===i.id&&(i.children=tc(c.children))})}),this._horizontalNavigation.forEach(i=>{this._defaultNavigation.forEach(c=>{c.id===i.id&&(i.children=tc(c.children))})}),[200,{compact:tc(this._compactNavigation),default:tc(this._defaultNavigation),futuristic:tc(this._futuristicNavigation),horizontal:tc(this._horizontalNavigation)}]))}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(ge))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()];let Q_=(()=>{class a{constructor(i){this.http=i,this.timestamp=null,this.ngswFilePath="/ngsw.json"}load(){var i=this;return(0,G.A)(function*(){try{const c=yield i.http.get(i.ngswFilePath).toPromise();c&&c.timestamp?(i.timestamp=c.timestamp,console.log("Timestamp successfully loaded:",i.timestamp)):console.error("Invalid data format in ngsw.json")}catch(c){console.error("Error loading ngsw.json:",c)}})()}getTimestamp(){return this.timestamp}loadHash(){return this.http.get(this.ngswFilePath).pipe((0,us.T)(i=>i.timestamp||null),(0,Kn.W)(i=>(console.error("Error fetching ngsw.json hash:",i),(0,oe.$)(()=>new Error("Failed to load hash.")))))}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(Ee.Qq))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var qm=v(2083);const ww={providers:[function Wd(){return(0,o.ngT)("NgEagerAnimations"),[...Kc]}(),(0,Ee.$R)(),function an(a,s={}){return(0,o.EmA)([fe,De,{provide:Ue,useValue:a},{provide:en,useValue:s},{provide:q,useFactory:Ct,deps:[en,o.Agw]},{provide:o.hnV,useFactory:ot,deps:[o.zZn,Ue,en,o.Agw],multi:!0}])}("ngsw-worker.js",{enabled:!(0,o.naY)(),registrationStrategy:"registerWhenStable:30000"}),{provide:o.hnV,useFactory:function Z_(a){return()=>a.load()},deps:[Q_,Zi.A,qm.d],multi:!0},{provide:o.hnV,useFactory:function bw(a,s){return(0,G.A)(function*(){const i=a.getPublicKey();console.log("publicKey : "+i),i&&(yield s.loadUserProfile(i))})},deps:[Zi.A,qm.d],multi:!0},(0,y.lh)(e_,(0,y.Sn)(y.Kp),(0,y.oH)({scrollPositionRestoration:"enabled"})),{provide:Zt.MJ,useClass:ac},{provide:Zt.de,useValue:{parse:{dateInput:"D"},display:{dateInput:"DDD",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy"}}},function uf(a){const s=[df(Uy),qd(Ig),hf(Mg),Xp(Hy)];return a.config&&s.push(function Ky(a){return(0,o.EmA)([{provide:Ca,useValue:sf(a)}])}(a.config)),a.loader&&s.push(function Kp(a){return(0,o.EmA)([{provide:mr,useClass:a}])}(a.loader)),s}({config:{availableLangs:[{id:"en",label:"English"}],defaultLang:"en",fallbackLang:"en",reRenderOnLangChange:!0,prodMode:!0},loader:km}),{provide:o.hnV,useFactory:()=>{const a=(0,o.WQX)(Ol),s=a.getDefaultLang();return a.setActiveLang(s),()=>function n_(a,s){const i="object"==typeof s;return new Promise((c,h)=>{const C=new g0.Ms({next:I=>{c(I),C.unsubscribe()},error:h,complete:()=>{i?c(s.defaultValue):h(new m0.G)}});a.subscribe(C)})}(a.load(s))},multi:!0},[{provide:o.Z63,useValue:()=>(0,o.WQX)(p0),multi:!0}],(a=>{const s=[{provide:Zt.N,useValue:{doctype:!0,theme:!1,version:!0}},{provide:Vn.U$,useValue:{appearance:"fill"}},{provide:ee,useValue:a?.mockApi?.delay??0},{provide:be.t,useValue:a?.angor??{}},(0,o.oKB)(Fn.hM),{provide:o.Z63,useValue:()=>(0,o.WQX)(Ze.m),multi:!0},(0,Ee.$R)((0,Ee.b$)([We])),{provide:o.Z63,useValue:()=>(0,o.WQX)(je),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(ae.l),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(Le),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(vt),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(Dt.Q),multi:!0}];return a?.mockApi?.services&&s.push((0,Ee.$R)((0,Ee.b$)([te])),{provide:o.hnV,deps:[...a.mockApi.services],useFactory:()=>()=>null,multi:!0}),s})({mockApi:{delay:0,services:Y_},angor:JSON.parse(localStorage.getItem("angorConfig"))??{layout:"classic",scheme:"light",screens:{sm:"600px",md:"960px",lg:"1280px",xl:"1440px"},theme:"theme-brand",themes:[{id:"theme-brand",name:"Brand"},{id:"theme-default",name:"Default"},{id:"theme-teal",name:"Teal"},{id:"theme-rose",name:"Rose"},{id:"theme-purple",name:"Purple"},{id:"theme-amber",name:"Amber"}]}})]};(0,u.B8)(L,ww).catch(a=>console.error(a))},3981:(tn,Ne)=>{"use strict";Ne.byteLength=function oe(ge){var Ee=ee(ge),ke=Ee[1];return 3*(Ee[0]+ke)/4-ke},Ne.toByteArray=function P(ge){var Ee,je,Re=ee(ge),ke=Re[0],te=Re[1],be=new y(function V(ge,Ee,Re){return 3*(Ee+Re)/4-Re}(0,ke,te)),Ze=0,gt=te>0?ke-4:ke;for(je=0;je>16&255,be[Ze++]=Ee>>8&255,be[Ze++]=255&Ee;return 2===te&&(Ee=u[ge.charCodeAt(je)]<<2|u[ge.charCodeAt(je+1)]>>4,be[Ze++]=255&Ee),1===te&&(Ee=u[ge.charCodeAt(je)]<<10|u[ge.charCodeAt(je+1)]<<4|u[ge.charCodeAt(je+2)]>>2,be[Ze++]=Ee>>8&255,be[Ze++]=255&Ee),be},Ne.fromByteArray=function ue(ge){for(var Ee,Re=ge.length,ke=Re%3,te=[],Ze=0,gt=Re-ke;Zegt?gt:Ze+16383));return 1===ke?te.push(v[(Ee=ge[Re-1])>>2]+v[Ee<<4&63]+"=="):2===ke&&te.push(v[(Ee=(ge[Re-2]<<8)+ge[Re-1])>>10]+v[Ee>>4&63]+v[Ee<<2&63]+"="),te.join("")};for(var v=[],u=[],y=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=0;L<64;++L)v[L]=o[L],u[o.charCodeAt(L)]=L;function ee(ge){var Ee=ge.length;if(Ee%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Re=ge.indexOf("=");return-1===Re&&(Re=Ee),[Re,Re===Ee?0:4-Re%4]}function B(ge){return v[ge>>18&63]+v[ge>>12&63]+v[ge>>6&63]+v[63&ge]}function F(ge,Ee,Re){for(var te=[],be=Ee;be{"use strict";const y=v(3981),o=v(2020),L="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Ne.hp=V,Ne.IS=50;const G=2147483647;function oe(Q){if(Q>G)throw new RangeError('The value "'+Q+'" is invalid for option "size"');const T=new Uint8Array(Q);return Object.setPrototypeOf(T,V.prototype),T}function V(Q,T,N){if("number"==typeof Q){if("string"==typeof T)throw new TypeError('The "string" argument must be of type string. Received type number');return ue(Q)}return P(Q,T,N)}function P(Q,T,N){if("string"==typeof Q)return function ge(Q,T){if(("string"!=typeof T||""===T)&&(T="utf8"),!V.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const N=0|gt(Q,T);let $=oe(N);const ce=$.write(Q,T);return ce!==N&&($=$.slice(0,ce)),$}(Q,T);if(ArrayBuffer.isView(Q))return function Re(Q){if(we(Q,Uint8Array)){const T=new Uint8Array(Q);return ke(T.buffer,T.byteOffset,T.byteLength)}return Ee(Q)}(Q);if(null==Q)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(we(Q,ArrayBuffer)||Q&&we(Q.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(we(Q,SharedArrayBuffer)||Q&&we(Q.buffer,SharedArrayBuffer)))return ke(Q,T,N);if("number"==typeof Q)throw new TypeError('The "value" argument must not be of type number. Received type number');const $=Q.valueOf&&Q.valueOf();if(null!=$&&$!==Q)return V.from($,T,N);const ce=function te(Q){if(V.isBuffer(Q)){const T=0|be(Q.length),N=oe(T);return 0===N.length||Q.copy(N,0,0,T),N}return void 0!==Q.length?"number"!=typeof Q.length||tt(Q.length)?oe(0):Ee(Q):"Buffer"===Q.type&&Array.isArray(Q.data)?Ee(Q.data):void 0}(Q);if(ce)return ce;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Q[Symbol.toPrimitive])return V.from(Q[Symbol.toPrimitive]("string"),T,N);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function B(Q){if("number"!=typeof Q)throw new TypeError('"size" argument must be of type number');if(Q<0)throw new RangeError('The value "'+Q+'" is invalid for option "size"')}function ue(Q){return B(Q),oe(Q<0?0:0|be(Q))}function Ee(Q){const T=Q.length<0?0:0|be(Q.length),N=oe(T);for(let $=0;$=G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");return 0|Q}function gt(Q,T){if(V.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||we(Q,ArrayBuffer))return Q.byteLength;if("string"!=typeof Q)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);const N=Q.length,$=arguments.length>2&&!0===arguments[2];if(!$&&0===N)return 0;let ce=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return N;case"utf8":case"utf-8":return Ft(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*N;case"hex":return N>>>1;case"base64":return hi(Q).length;default:if(ce)return $?-1:Ft(Q).length;T=(""+T).toLowerCase(),ce=!0}}function je(Q,T,N){let $=!1;if((void 0===T||T<0)&&(T=0),T>this.length||((void 0===N||N>this.length)&&(N=this.length),N<=0)||(N>>>=0)<=(T>>>=0))return"";for(Q||(Q="utf8");;)switch(Q){case"hex":return _e(this,T,N);case"utf8":case"utf-8":return Zt(this,T,N);case"ascii":return _n(this,T,N);case"latin1":case"binary":return pi(this,T,N);case"base64":return Dt(this,T,N);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae(this,T,N);default:if($)throw new TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),$=!0}}function qe(Q,T,N){const $=Q[T];Q[T]=Q[N],Q[N]=$}function We(Q,T,N,$,ce){if(0===Q.length)return-1;if("string"==typeof N?($=N,N=0):N>2147483647?N=2147483647:N<-2147483648&&(N=-2147483648),tt(N=+N)&&(N=ce?0:Q.length-1),N<0&&(N=Q.length+N),N>=Q.length){if(ce)return-1;N=Q.length-1}else if(N<0){if(!ce)return-1;N=0}if("string"==typeof T&&(T=V.from(T,$)),V.isBuffer(T))return 0===T.length?-1:ae(Q,T,N,$,ce);if("number"==typeof T)return T&=255,"function"==typeof Uint8Array.prototype.indexOf?ce?Uint8Array.prototype.indexOf.call(Q,T,N):Uint8Array.prototype.lastIndexOf.call(Q,T,N):ae(Q,[T],N,$,ce);throw new TypeError("val must be string, number or Buffer")}function ae(Q,T,N,$,ce){let Vt,he=1,et=Q.length,$t=T.length;if(void 0!==$&&("ucs2"===($=String($).toLowerCase())||"ucs-2"===$||"utf16le"===$||"utf-16le"===$)){if(Q.length<2||T.length<2)return-1;he=2,et/=2,$t/=2,N/=2}function Bt(Mn,Ln){return 1===he?Mn[Ln]:Mn.readUInt16BE(Ln*he)}if(ce){let Mn=-1;for(Vt=N;Vtet&&(N=et-$t),Vt=N;Vt>=0;Vt--){let Mn=!0;for(let Ln=0;Ln<$t;Ln++)if(Bt(Q,Vt+Ln)!==Bt(T,Ln)){Mn=!1;break}if(Mn)return Vt}return-1}function me(Q,T,N,$){N=Number(N)||0;const ce=Q.length-N;$?($=Number($))>ce&&($=ce):$=ce;const he=T.length;let et;for($>he/2&&($=he/2),et=0;et<$;++et){const $t=parseInt(T.substr(2*et,2),16);if(tt($t))return et;Q[N+et]=$t}return et}function Le(Q,T,N,$){return qt(Ft(T,Q.length-N),Q,N,$)}function nt(Q,T,N,$){return qt(function Rt(Q){const T=[];for(let N=0;N>8,ce=N%256,he.push(ce),he.push($);return he}(T,Q.length-N),Q,N,$)}function Dt(Q,T,N){return y.fromByteArray(0===T&&N===Q.length?Q:Q.slice(T,N))}function Zt(Q,T,N){N=Math.min(Q.length,N);const $=[];let ce=T;for(;ce239?4:he>223?3:he>191?2:1;if(ce+$t<=N){let Bt,Vt,Mn,Ln;switch($t){case 1:he<128&&(et=he);break;case 2:Bt=Q[ce+1],128==(192&Bt)&&(Ln=(31&he)<<6|63&Bt,Ln>127&&(et=Ln));break;case 3:Bt=Q[ce+1],Vt=Q[ce+2],128==(192&Bt)&&128==(192&Vt)&&(Ln=(15&he)<<12|(63&Bt)<<6|63&Vt,Ln>2047&&(Ln<55296||Ln>57343)&&(et=Ln));break;case 4:Bt=Q[ce+1],Vt=Q[ce+2],Mn=Q[ce+3],128==(192&Bt)&&128==(192&Vt)&&128==(192&Mn)&&(Ln=(15&he)<<18|(63&Bt)<<12|(63&Vt)<<6|63&Mn,Ln>65535&&Ln<1114112&&(et=Ln))}}null===et?(et=65533,$t=1):et>65535&&(et-=65536,$.push(et>>>10&1023|55296),et=56320|1023&et),$.push(et),ce+=$t}return function Vn(Q){const T=Q.length;if(T<=Fn)return String.fromCharCode.apply(String,Q);let N="",$=0;for(;$ce.length?(V.isBuffer(et)||(et=V.from(et)),et.copy(ce,he)):Uint8Array.prototype.set.call(ce,et,he);else{if(!V.isBuffer(et))throw new TypeError('"list" argument must be an Array of Buffers');et.copy(ce,he)}he+=et.length}return ce},V.byteLength=gt,V.prototype._isBuffer=!0,V.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let N=0;NN&&(T+=" ... "),""},L&&(V.prototype[L]=V.prototype.inspect),V.prototype.compare=function(T,N,$,ce,he){if(we(T,Uint8Array)&&(T=V.from(T,T.offset,T.byteLength)),!V.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(void 0===N&&(N=0),void 0===$&&($=T?T.length:0),void 0===ce&&(ce=0),void 0===he&&(he=this.length),N<0||$>T.length||ce<0||he>this.length)throw new RangeError("out of range index");if(ce>=he&&N>=$)return 0;if(ce>=he)return-1;if(N>=$)return 1;if(this===T)return 0;let et=(he>>>=0)-(ce>>>=0),$t=($>>>=0)-(N>>>=0);const Bt=Math.min(et,$t),Vt=this.slice(ce,he),Mn=T.slice(N,$);for(let Ln=0;Ln>>=0,isFinite($)?($>>>=0,void 0===ce&&(ce="utf8")):(ce=$,$=void 0)}const he=this.length-N;if((void 0===$||$>he)&&($=he),T.length>0&&($<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");let et=!1;for(;;)switch(ce){case"hex":return me(this,T,N,$);case"utf8":case"utf-8":return Le(this,T,N,$);case"ascii":case"latin1":case"binary":return nt(this,T,N,$);case"base64":return At(this,T,N,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vt(this,T,N,$);default:if(et)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),et=!0}},V.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const Fn=4096;function _n(Q,T,N){let $="";N=Math.min(Q.length,N);for(let ce=T;ce$)&&(N=$);let ce="";for(let he=T;heN)throw new RangeError("Trying to access beyond buffer length")}function Ie(Q,T,N,$,ce,he){if(!V.isBuffer(Q))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>ce||TQ.length)throw new RangeError("Index out of range")}function Ot(Q,T,N,$,ce){Ce(T,$,ce,Q,N,7);let he=Number(T&BigInt(4294967295));Q[N++]=he,he>>=8,Q[N++]=he,he>>=8,Q[N++]=he,he>>=8,Q[N++]=he;let et=Number(T>>BigInt(32)&BigInt(4294967295));return Q[N++]=et,et>>=8,Q[N++]=et,et>>=8,Q[N++]=et,et>>=8,Q[N++]=et,N}function Pe(Q,T,N,$,ce){Ce(T,$,ce,Q,N,7);let he=Number(T&BigInt(4294967295));Q[N+7]=he,he>>=8,Q[N+6]=he,he>>=8,Q[N+5]=he,he>>=8,Q[N+4]=he;let et=Number(T>>BigInt(32)&BigInt(4294967295));return Q[N+3]=et,et>>=8,Q[N+2]=et,et>>=8,Q[N+1]=et,et>>=8,Q[N]=et,N+8}function ht(Q,T,N,$,ce,he){if(N+$>Q.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("Index out of range")}function Xe(Q,T,N,$,ce){return T=+T,N>>>=0,ce||ht(Q,0,N,4),o.write(Q,T,N,$,23,4),N+4}function Je(Q,T,N,$,ce){return T=+T,N>>>=0,ce||ht(Q,0,N,8),o.write(Q,T,N,$,52,8),N+8}V.prototype.slice=function(T,N){const $=this.length;(T=~~T)<0?(T+=$)<0&&(T=0):T>$&&(T=$),(N=void 0===N?$:~~N)<0?(N+=$)<0&&(N=0):N>$&&(N=$),N>>=0,N>>>=0,$||J(T,N,this.length);let ce=this[T],he=1,et=0;for(;++et>>=0,N>>>=0,$||J(T,N,this.length);let ce=this[T+--N],he=1;for(;N>0&&(he*=256);)ce+=this[T+--N]*he;return ce},V.prototype.readUint8=V.prototype.readUInt8=function(T,N){return T>>>=0,N||J(T,1,this.length),this[T]},V.prototype.readUint16LE=V.prototype.readUInt16LE=function(T,N){return T>>>=0,N||J(T,2,this.length),this[T]|this[T+1]<<8},V.prototype.readUint16BE=V.prototype.readUInt16BE=function(T,N){return T>>>=0,N||J(T,2,this.length),this[T]<<8|this[T+1]},V.prototype.readUint32LE=V.prototype.readUInt32LE=function(T,N){return T>>>=0,N||J(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+16777216*this[T+3]},V.prototype.readUint32BE=V.prototype.readUInt32BE=function(T,N){return T>>>=0,N||J(T,4,this.length),16777216*this[T]+(this[T+1]<<16|this[T+2]<<8|this[T+3])},V.prototype.readBigUInt64LE=bt(function(T){dt(T>>>=0,"offset");const N=this[T],$=this[T+7];(void 0===N||void 0===$)&&un(T,this.length-8);const ce=N+256*this[++T]+65536*this[++T]+this[++T]*2**24,he=this[++T]+256*this[++T]+65536*this[++T]+$*2**24;return BigInt(ce)+(BigInt(he)<>>=0,"offset");const N=this[T],$=this[T+7];(void 0===N||void 0===$)&&un(T,this.length-8);const ce=N*2**24+65536*this[++T]+256*this[++T]+this[++T],he=this[++T]*2**24+65536*this[++T]+256*this[++T]+$;return(BigInt(ce)<>>=0,N>>>=0,$||J(T,N,this.length);let ce=this[T],he=1,et=0;for(;++et=he&&(ce-=Math.pow(2,8*N)),ce},V.prototype.readIntBE=function(T,N,$){T>>>=0,N>>>=0,$||J(T,N,this.length);let ce=N,he=1,et=this[T+--ce];for(;ce>0&&(he*=256);)et+=this[T+--ce]*he;return he*=128,et>=he&&(et-=Math.pow(2,8*N)),et},V.prototype.readInt8=function(T,N){return T>>>=0,N||J(T,1,this.length),128&this[T]?-1*(255-this[T]+1):this[T]},V.prototype.readInt16LE=function(T,N){T>>>=0,N||J(T,2,this.length);const $=this[T]|this[T+1]<<8;return 32768&$?4294901760|$:$},V.prototype.readInt16BE=function(T,N){T>>>=0,N||J(T,2,this.length);const $=this[T+1]|this[T]<<8;return 32768&$?4294901760|$:$},V.prototype.readInt32LE=function(T,N){return T>>>=0,N||J(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},V.prototype.readInt32BE=function(T,N){return T>>>=0,N||J(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},V.prototype.readBigInt64LE=bt(function(T){dt(T>>>=0,"offset");const N=this[T],$=this[T+7];return(void 0===N||void 0===$)&&un(T,this.length-8),(BigInt(this[T+4]+256*this[T+5]+65536*this[T+6]+($<<24))<>>=0,"offset");const N=this[T],$=this[T+7];(void 0===N||void 0===$)&&un(T,this.length-8);const ce=(N<<24)+65536*this[++T]+256*this[++T]+this[++T];return(BigInt(ce)<>>=0,N||J(T,4,this.length),o.read(this,T,!0,23,4)},V.prototype.readFloatBE=function(T,N){return T>>>=0,N||J(T,4,this.length),o.read(this,T,!1,23,4)},V.prototype.readDoubleLE=function(T,N){return T>>>=0,N||J(T,8,this.length),o.read(this,T,!0,52,8)},V.prototype.readDoubleBE=function(T,N){return T>>>=0,N||J(T,8,this.length),o.read(this,T,!1,52,8)},V.prototype.writeUintLE=V.prototype.writeUIntLE=function(T,N,$,ce){T=+T,N>>>=0,$>>>=0,ce||Ie(this,T,N,$,Math.pow(2,8*$)-1,0);let he=1,et=0;for(this[N]=255&T;++et<$&&(he*=256);)this[N+et]=T/he&255;return N+$},V.prototype.writeUintBE=V.prototype.writeUIntBE=function(T,N,$,ce){T=+T,N>>>=0,$>>>=0,ce||Ie(this,T,N,$,Math.pow(2,8*$)-1,0);let he=$-1,et=1;for(this[N+he]=255&T;--he>=0&&(et*=256);)this[N+he]=T/et&255;return N+$},V.prototype.writeUint8=V.prototype.writeUInt8=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,1,255,0),this[N]=255&T,N+1},V.prototype.writeUint16LE=V.prototype.writeUInt16LE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,2,65535,0),this[N]=255&T,this[N+1]=T>>>8,N+2},V.prototype.writeUint16BE=V.prototype.writeUInt16BE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,2,65535,0),this[N]=T>>>8,this[N+1]=255&T,N+2},V.prototype.writeUint32LE=V.prototype.writeUInt32LE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,4,4294967295,0),this[N+3]=T>>>24,this[N+2]=T>>>16,this[N+1]=T>>>8,this[N]=255&T,N+4},V.prototype.writeUint32BE=V.prototype.writeUInt32BE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,4,4294967295,0),this[N]=T>>>24,this[N+1]=T>>>16,this[N+2]=T>>>8,this[N+3]=255&T,N+4},V.prototype.writeBigUInt64LE=bt(function(T,N=0){return Ot(this,T,N,BigInt(0),BigInt("0xffffffffffffffff"))}),V.prototype.writeBigUInt64BE=bt(function(T,N=0){return Pe(this,T,N,BigInt(0),BigInt("0xffffffffffffffff"))}),V.prototype.writeIntLE=function(T,N,$,ce){if(T=+T,N>>>=0,!ce){const Bt=Math.pow(2,8*$-1);Ie(this,T,N,$,Bt-1,-Bt)}let he=0,et=1,$t=0;for(this[N]=255&T;++he<$&&(et*=256);)T<0&&0===$t&&0!==this[N+he-1]&&($t=1),this[N+he]=(T/et|0)-$t&255;return N+$},V.prototype.writeIntBE=function(T,N,$,ce){if(T=+T,N>>>=0,!ce){const Bt=Math.pow(2,8*$-1);Ie(this,T,N,$,Bt-1,-Bt)}let he=$-1,et=1,$t=0;for(this[N+he]=255&T;--he>=0&&(et*=256);)T<0&&0===$t&&0!==this[N+he+1]&&($t=1),this[N+he]=(T/et|0)-$t&255;return N+$},V.prototype.writeInt8=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,1,127,-128),T<0&&(T=255+T+1),this[N]=255&T,N+1},V.prototype.writeInt16LE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,2,32767,-32768),this[N]=255&T,this[N+1]=T>>>8,N+2},V.prototype.writeInt16BE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,2,32767,-32768),this[N]=T>>>8,this[N+1]=255&T,N+2},V.prototype.writeInt32LE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,4,2147483647,-2147483648),this[N]=255&T,this[N+1]=T>>>8,this[N+2]=T>>>16,this[N+3]=T>>>24,N+4},V.prototype.writeInt32BE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[N]=T>>>24,this[N+1]=T>>>16,this[N+2]=T>>>8,this[N+3]=255&T,N+4},V.prototype.writeBigInt64LE=bt(function(T,N=0){return Ot(this,T,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),V.prototype.writeBigInt64BE=bt(function(T,N=0){return Pe(this,T,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),V.prototype.writeFloatLE=function(T,N,$){return Xe(this,T,N,!0,$)},V.prototype.writeFloatBE=function(T,N,$){return Xe(this,T,N,!1,$)},V.prototype.writeDoubleLE=function(T,N,$){return Je(this,T,N,!0,$)},V.prototype.writeDoubleBE=function(T,N,$){return Je(this,T,N,!1,$)},V.prototype.copy=function(T,N,$,ce){if(!V.isBuffer(T))throw new TypeError("argument should be a Buffer");if($||($=0),!ce&&0!==ce&&(ce=this.length),N>=T.length&&(N=T.length),N||(N=0),ce>0&&ce<$&&(ce=$),ce===$||0===T.length||0===this.length)return 0;if(N<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),T.length-N>>=0,$=void 0===$?this.length:$>>>0,T||(T=0),"number"==typeof T)for(he=N;he<$;++he)this[he]=T;else{const et=V.isBuffer(T)?T:V.from(T,ce),$t=et.length;if(0===$t)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(he=0;he<$-N;++he)this[he+N]=et[he%$t]}return this};const Me={};function ie(Q,T,N){Me[Q]=class extends N{constructor(){super(),Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,delete this.name}get code(){return Q}set code(ce){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ce,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function ve(Q){let T="",N=Q.length;const $="-"===Q[0]?1:0;for(;N>=$+4;N-=3)T=`_${Q.slice(N-3,N)}${T}`;return`${Q.slice(0,N)}${T}`}function Ce(Q,T,N,$,ce,he){if(Q>N||Q3?0===T||T===BigInt(0)?`>= 0${et} and < 2${et} ** ${8*(he+1)}${et}`:`>= -(2${et} ** ${8*(he+1)-1}${et}) and < 2 ** ${8*(he+1)-1}${et}`:`>= ${T}${et} and <= ${N}${et}`,new Me.ERR_OUT_OF_RANGE("value",$t,Q)}!function le(Q,T,N){dt(T,"offset"),(void 0===Q[T]||void 0===Q[T+N])&&un(T,Q.length-(N+1))}($,ce,he)}function dt(Q,T){if("number"!=typeof Q)throw new Me.ERR_INVALID_ARG_TYPE(T,"number",Q)}function un(Q,T,N){throw Math.floor(Q)!==Q?(dt(Q,N),new Me.ERR_OUT_OF_RANGE(N||"offset","an integer",Q)):T<0?new Me.ERR_BUFFER_OUT_OF_BOUNDS:new Me.ERR_OUT_OF_RANGE(N||"offset",`>= ${N?1:0} and <= ${T}`,Q)}ie("ERR_BUFFER_OUT_OF_BOUNDS",function(Q){return Q?`${Q} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ie("ERR_INVALID_ARG_TYPE",function(Q,T){return`The "${Q}" argument must be of type number. Received type ${typeof T}`},TypeError),ie("ERR_OUT_OF_RANGE",function(Q,T,N){let $=`The value of "${Q}" is out of range.`,ce=N;return Number.isInteger(N)&&Math.abs(N)>2**32?ce=ve(String(N)):"bigint"==typeof N&&(ce=String(N),(N>BigInt(2)**BigInt(32)||N<-(BigInt(2)**BigInt(32)))&&(ce=ve(ce)),ce+="n"),$+=` It must be ${T}. Received ${ce}`,$},RangeError);const it=/[^+/0-9A-Za-z-_]/g;function Ft(Q,T){let N;T=T||1/0;const $=Q.length;let ce=null;const he=[];for(let et=0;et<$;++et){if(N=Q.charCodeAt(et),N>55295&&N<57344){if(!ce){if(N>56319){(T-=3)>-1&&he.push(239,191,189);continue}if(et+1===$){(T-=3)>-1&&he.push(239,191,189);continue}ce=N;continue}if(N<56320){(T-=3)>-1&&he.push(239,191,189),ce=N;continue}N=65536+(ce-55296<<10|N-56320)}else ce&&(T-=3)>-1&&he.push(239,191,189);if(ce=null,N<128){if((T-=1)<0)break;he.push(N)}else if(N<2048){if((T-=2)<0)break;he.push(N>>6|192,63&N|128)}else if(N<65536){if((T-=3)<0)break;he.push(N>>12|224,N>>6&63|128,63&N|128)}else{if(!(N<1114112))throw new Error("Invalid code point");if((T-=4)<0)break;he.push(N>>18|240,N>>12&63|128,N>>6&63|128,63&N|128)}}return he}function hi(Q){return y.toByteArray(function It(Q){if((Q=(Q=Q.split("=")[0]).trim().replace(it,"")).length<2)return"";for(;Q.length%4!=0;)Q+="=";return Q}(Q))}function qt(Q,T,N,$){let ce;for(ce=0;ce<$&&!(ce+N>=T.length||ce>=Q.length);++ce)T[ce+N]=Q[ce];return ce}function we(Q,T){return Q instanceof T||null!=Q&&null!=Q.constructor&&null!=Q.constructor.name&&Q.constructor.name===T.name}function tt(Q){return Q!=Q}const rt=function(){const Q="0123456789abcdef",T=new Array(256);for(let N=0;N<16;++N){const $=16*N;for(let ce=0;ce<16;++ce)T[$+ce]=Q[N]+Q[ce]}return T}();function bt(Q){return typeof BigInt>"u"?on:Q}function on(){throw new Error("BigInt not supported")}},2020:(tn,Ne)=>{Ne.read=function(v,u,y,o,L){var G,ee,oe=8*L-o-1,V=(1<>1,B=-7,F=y?L-1:0,ue=y?-1:1,ge=v[u+F];for(F+=ue,G=ge&(1<<-B)-1,ge>>=-B,B+=oe;B>0;G=256*G+v[u+F],F+=ue,B-=8);for(ee=G&(1<<-B)-1,G>>=-B,B+=o;B>0;ee=256*ee+v[u+F],F+=ue,B-=8);if(0===G)G=1-P;else{if(G===V)return ee?NaN:1/0*(ge?-1:1);ee+=Math.pow(2,o),G-=P}return(ge?-1:1)*ee*Math.pow(2,G-o)},Ne.write=function(v,u,y,o,L,G){var ee,oe,V,P=8*G-L-1,B=(1<>1,ue=23===L?Math.pow(2,-24)-Math.pow(2,-77):0,ge=o?0:G-1,Ee=o?1:-1,Re=u<0||0===u&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(oe=isNaN(u)?1:0,ee=B):(ee=Math.floor(Math.log(u)/Math.LN2),u*(V=Math.pow(2,-ee))<1&&(ee--,V*=2),(u+=ee+F>=1?ue/V:ue*Math.pow(2,1-F))*V>=2&&(ee++,V/=2),ee+F>=B?(oe=0,ee=B):ee+F>=1?(oe=(u*V-1)*Math.pow(2,L),ee+=F):(oe=u*Math.pow(2,F-1)*Math.pow(2,L),ee=0));L>=8;v[y+ge]=255&oe,ge+=Ee,oe/=256,L-=8);for(ee=ee<0;v[y+ge]=255&ee,ge+=Ee,ee/=256,P-=8);v[y+ge-Ee]|=128*Re}},119:tn=>{tn.exports=function y(o,L,G){function ee(P,B){if(!L[P]){if(!o[P]){if(oe)return oe(P,!0);var ue=new Error("Cannot find module '"+P+"'");throw ue.code="MODULE_NOT_FOUND",ue}var ge=L[P]={exports:{}};o[P][0].call(ge.exports,function(Ee){return ee(o[P][1][Ee]||Ee)},ge,ge.exports,y,o,L,G)}return L[P].exports}for(var oe=void 0,V=0;V"u"&&y(3);var F=Promise;function ue(W,Te){Te&&W.then(function(se){Te(null,se)},function(se){Te(se)})}function ge(W,Te,se){"function"==typeof Te&&W.then(Te),"function"==typeof se&&W.catch(se)}function Ee(W){return"string"!=typeof W&&(console.warn(W+" used as a key, but it is not a string."),W=String(W)),W}function Re(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var ke="local-forage-detect-blob-support",te=void 0,be={},Ze=Object.prototype.toString,gt="readonly",je="readwrite";function qe(W){for(var Te=W.length,se=new ArrayBuffer(Te),$e=new Uint8Array(se),pt=0;pt=43)}}).catch(function(){return!1})}(W).then(function(Te){return te=Te})}function me(W){var Te=be[W.name],se={};se.promise=new F(function($e,pt){se.resolve=$e,se.reject=pt}),Te.deferredOperations.push(se),Te.dbReady=Te.dbReady?Te.dbReady.then(function(){return se.promise}):se.promise}function Le(W){var se=be[W.name].deferredOperations.pop();if(se)return se.resolve(),se.promise}function nt(W,Te){var $e=be[W.name].deferredOperations.pop();if($e)return $e.reject(Te),$e.promise}function At(W,Te){return new F(function(se,$e){if(be[W.name]=be[W.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},W.db){if(!Te)return se(W.db);me(W),W.db.close()}var pt=[W.name];Te&&pt.push(W.version);var lt=V.open.apply(V,pt);Te&&(lt.onupgradeneeded=function(jt){var hn=lt.result;try{hn.createObjectStore(W.storeName),jt.oldVersion<=1&&hn.createObjectStore(ke)}catch(fn){if("ConstraintError"!==fn.name)throw fn;console.warn('The database "'+W.name+'" has been upgraded from version '+jt.oldVersion+" to version "+jt.newVersion+', but the storage "'+W.storeName+'" already exists.')}}),lt.onerror=function(jt){jt.preventDefault(),$e(lt.error)},lt.onsuccess=function(){var jt=lt.result;jt.onversionchange=function(hn){hn.target.close()},se(jt),Le(W)}})}function vt(W){return At(W,!1)}function Dt(W){return At(W,!0)}function Zt(W,Te){if(!W.db)return!0;var se=!W.db.objectStoreNames.contains(W.storeName),pt=W.version>W.db.version;if(W.versionW.version&&(W.version=lt)}return!0}return!1}function Vn(W){return B([qe(atob(W.data))],{type:W.type})}function _n(W){return W&&W.__local_forage_encoded_blob}function pi(W){var Te=this,se=Te._initReady().then(function(){var $e=be[Te._dbInfo.name];if($e&&$e.dbReady)return $e.dbReady});return ge(se,W,W),se}function Ae(W,Te,se,$e){void 0===$e&&($e=1);try{var pt=W.db.transaction(W.storeName,Te);se(null,pt)}catch(lt){if($e>0&&(!W.db||"InvalidStateError"===lt.name||"NotFoundError"===lt.name))return F.resolve().then(function(){if(!W.db||"NotFoundError"===lt.name&&!W.db.objectStoreNames.contains(W.storeName)&&W.version<=W.db.version)return W.db&&(W.version=W.db.version+1),Dt(W)}).then(function(){return function _e(W){me(W);for(var Te=be[W.name],se=Te.forages,$e=0;$e>4,Dn[pt++]=(15&jt)<<4|hn>>2,Dn[pt++]=(3&hn)<<6|63&fn;return wn}function et(W){var $e,Te=new Uint8Array(W),se="";for($e=0;$e>2],se+=un[(3&Te[$e])<<4|Te[$e+1]>>4],se+=un[(15&Te[$e+1])<<2|Te[$e+2]>>6],se+=un[63&Te[$e+2]];return Te.length%3==2?se=se.substring(0,se.length-1)+"=":Te.length%3==1&&(se=se.substring(0,se.length-2)+"=="),se}var Vt={serialize:function $t(W,Te){var se="";if(W&&(se=ce.call(W)),W&&("[object ArrayBuffer]"===se||W.buffer&&"[object ArrayBuffer]"===ce.call(W.buffer))){var $e,pt=Ft;W instanceof ArrayBuffer?($e=W,pt+=kn):($e=W.buffer,"[object Int8Array]"===se?pt+="si08":"[object Uint8Array]"===se?pt+="ui08":"[object Uint8ClampedArray]"===se?pt+="uic8":"[object Int16Array]"===se?pt+="si16":"[object Uint16Array]"===se?pt+="ur16":"[object Int32Array]"===se?pt+="si32":"[object Uint32Array]"===se?pt+=Q:"[object Float32Array]"===se?pt+=T:"[object Float64Array]"===se?pt+=N:Te(new Error("Failed to get type for BinaryArray"))),Te(pt+et($e))}else if("[object Blob]"===se){var lt=new FileReader;lt.onload=function(){var jt="~~local_forage_type~"+W.type+"~"+et(this.result);Te(Ft+hi+jt)},lt.readAsArrayBuffer(W)}else try{Te(JSON.stringify(W))}catch(jt){console.error("Couldn't convert value into a JSON string: ",W),Te(null,jt)}},deserialize:function Bt(W){if(W.substring(0,9)!==Ft)return JSON.parse(W);var $e,Te=W.substring(13),se=W.substring(9,13);if(se===hi&&It.test(Te)){var pt=Te.match(It);$e=pt[1],Te=Te.substring(pt[0].length)}var lt=he(Te);switch(se){case kn:return lt;case hi:return B([lt],{type:$e});case"si08":return new Int8Array(lt);case"ui08":return new Uint8Array(lt);case"uic8":return new Uint8ClampedArray(lt);case"si16":return new Int16Array(lt);case"ur16":return new Uint16Array(lt);case"si32":return new Int32Array(lt);case Q:return new Uint32Array(lt);case T:return new Float32Array(lt);case N:return new Float64Array(lt);default:throw new Error("Unkown type: "+se)}},stringToBuffer:he,bufferToString:et};function Mn(W,Te,se,$e){W.executeSql("CREATE TABLE IF NOT EXISTS "+Te.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],se,$e)}function Ei(W,Te,se,$e,pt,lt){W.executeSql(se,$e,pt,function(jt,hn){hn.code===hn.SYNTAX_ERR?jt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Te.storeName],function(fn,wn){wn.rows.length?lt(fn,hn):Mn(fn,Te,function(){fn.executeSql(se,$e,pt,lt)},lt)},lt):lt(jt,hn)},lt)}function He(W,Te,se,$e){var pt=this;W=Ee(W);var lt=new F(function(jt,hn){pt.ready().then(function(){void 0===Te&&(Te=null);var fn=Te,wn=pt._dbInfo;wn.serializer.serialize(Te,function(Dn,jn){jn?hn(jn):wn.db.transaction(function($n){Ei($n,wn,"INSERT OR REPLACE INTO "+wn.storeName+" (key, value) VALUES (?, ?)",[W,Dn],function(){jt(fn)},function(ci,ki){hn(ki)})},function($n){if($n.code===$n.QUOTA_ERR){if($e>0)return void jt(He.apply(pt,[W,fn,se,$e-1]));hn($n)}})})}).catch(hn)});return ue(lt,se),lt}var Et={_driver:"webSQLStorage",_initStorage:function Ln(W){var Te=this,se={db:null};if(W)for(var $e in W)se[$e]="string"!=typeof W[$e]?W[$e].toString():W[$e];var pt=new F(function(lt,jt){try{se.db=openDatabase(se.name,String(se.version),se.description,se.size)}catch(hn){return jt(hn)}se.db.transaction(function(hn){Mn(hn,se,function(){Te._dbInfo=se,lt()},function(fn,wn){jt(wn)})},jt)});return se.serializer=Vt,pt},_support:function dt(){return"function"==typeof openDatabase}(),iterate:function En(W,Te){var se=this,$e=new F(function(pt,lt){se.ready().then(function(){var jt=se._dbInfo;jt.db.transaction(function(hn){Ei(hn,jt,"SELECT * FROM "+jt.storeName,[],function(fn,wn){for(var Dn=wn.rows,jn=Dn.length,$n=0;$n '__WebKitDatabaseInfoTable__'",[],function(pt,lt){for(var jt=[],hn=0;hn0}var Yr={_driver:"localStorageWrapper",_initStorage:function Oe(W){var se={};if(W)for(var $e in W)se[$e]=W[$e];return se.keyPrefix=Lt(W,this._defaultConfig),Qe()?(this._dbInfo=se,se.serializer=Vt,F.resolve()):F.reject()},_support:function at(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function rn(W,Te){var se=this,$e=se.ready().then(function(){for(var pt=se._dbInfo,lt=pt.keyPrefix,jt=lt.length,hn=localStorage.length,fn=1,wn=0;wn=0;pt--){var lt=localStorage.key(pt);0===lt.indexOf($e)&&localStorage.removeItem(lt)}});return ue(se,W),se},length:function xr(W){var se=this.keys().then(function($e){return $e.length});return ue(se,W),se},key:function ai(W,Te){var se=this,$e=se.ready().then(function(){var lt,pt=se._dbInfo;try{lt=localStorage.key(W)}catch{lt=null}return lt&&(lt=lt.substring(pt.keyPrefix.length)),lt});return ue($e,Te),$e},keys:function yr(W){var Te=this,se=Te.ready().then(function(){for(var $e=Te._dbInfo,pt=localStorage.length,lt=[],jt=0;jt=0;jt--){var hn=localStorage.key(jt);0===hn.indexOf(lt)&&localStorage.removeItem(hn)}}):F.reject("Invalid arguments"),Te),pt}},Or=function(Te,se){return Te===se||"number"==typeof Te&&"number"==typeof se&&isNaN(Te)&&isNaN(se)},ft=function(Te,se){for(var $e=Te.length,pt=0;pt<$e;){if(Or(Te[pt],se))return!0;pt++}return!1},St=Array.isArray||function(W){return"[object Array]"===Object.prototype.toString.call(W)},ln={},yn={},An={INDEXEDDB:Ce,WEBSQL:Et,LOCALSTORAGE:Yr},Xn=[An.INDEXEDDB._driver,An.WEBSQL._driver,An.LOCALSTORAGE._driver],zn=["dropInstance"],ri=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(zn),li={description:"",driver:Xn.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Bn(W,Te){W[Te]=function(){var se=arguments;return W.ready().then(function(){return W[Te].apply(W,se)})}}function xe(){for(var W=1;W"u"?"undefined":G(se))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var $e in se){if("storeName"===$e&&(se[$e]=se[$e].replace(/\W/g,"_")),"version"===$e&&"number"!=typeof se[$e])return new Error("Database version must be a number.");this._config[$e]=se[$e]}return!("driver"in se)||!se.driver||this.setDriver(this._config.driver)}return"string"==typeof se?this._config[se]:this._config},W.prototype.defineDriver=function(se,$e,pt){var lt=new F(function(jt,hn){try{var fn=se._driver,wn=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!se._driver)return void hn(wn);for(var Dn=ri.concat("_initStorage"),jn=0,$n=Dn.length;jn<$n;jn++){var ci=Dn[jn];if((!ft(zn,ci)||se[ci])&&"function"!=typeof se[ci])return void hn(wn)}!function(){for(var uo=function(zi){return function(){var Bs=new Error("Method "+zi+" is not implemented by the current driver"),ns=F.reject(Bs);return ue(ns,arguments[arguments.length-1]),ns}},Fr=0,Ci=zn.length;Fr{"use strict";v.d(Ne,{t:()=>y});var u=v(1413);class y extends u.B{constructor(L){super(),this._value=L}get value(){return this.getValue()}_subscribe(L){const G=super._subscribe(L);return!G.closed&&L.next(this._value),G}getValue(){const{hasError:L,thrownError:G,_value:ee}=this;if(L)throw G;return this._throwIfClosed(),ee}next(L){super.next(this._value=L)}}},1985:(tn,Ne,v)=>{"use strict";v.d(Ne,{c:()=>V});var u=v(7707),y=v(8359),o=v(3494),L=v(1203),G=v(1026),ee=v(8071),oe=v(9786);let V=(()=>{class ue{constructor(Ee){Ee&&(this._subscribe=Ee)}lift(Ee){const Re=new ue;return Re.source=this,Re.operator=Ee,Re}subscribe(Ee,Re,ke){const te=function F(ue){return ue&&ue instanceof u.vU||function B(ue){return ue&&(0,ee.T)(ue.next)&&(0,ee.T)(ue.error)&&(0,ee.T)(ue.complete)}(ue)&&(0,y.Uv)(ue)}(Ee)?Ee:new u.Ms(Ee,Re,ke);return(0,oe.Y)(()=>{const{operator:be,source:Ze}=this;te.add(be?be.call(te,Ze):Ze?this._subscribe(te):this._trySubscribe(te))}),te}_trySubscribe(Ee){try{return this._subscribe(Ee)}catch(Re){Ee.error(Re)}}forEach(Ee,Re){return new(Re=P(Re))((ke,te)=>{const be=new u.Ms({next:Ze=>{try{Ee(Ze)}catch(gt){te(gt),be.unsubscribe()}},error:te,complete:ke});this.subscribe(be)})}_subscribe(Ee){var Re;return null===(Re=this.source)||void 0===Re?void 0:Re.subscribe(Ee)}[o.s](){return this}pipe(...Ee){return(0,L.m)(Ee)(this)}toPromise(Ee){return new(Ee=P(Ee))((Re,ke)=>{let te;this.subscribe(be=>te=be,be=>ke(be),()=>Re(te))})}}return ue.create=ge=>new ue(ge),ue})();function P(ue){var ge;return null!==(ge=ue??G.$.Promise)&&void 0!==ge?ge:Promise}},2771:(tn,Ne,v)=>{"use strict";v.d(Ne,{m:()=>o});var u=v(1413),y=v(6129);class o extends u.B{constructor(G=1/0,ee=1/0,oe=y.U){super(),this._bufferSize=G,this._windowTime=ee,this._timestampProvider=oe,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=ee===1/0,this._bufferSize=Math.max(1,G),this._windowTime=Math.max(1,ee)}next(G){const{isStopped:ee,_buffer:oe,_infiniteTimeWindow:V,_timestampProvider:P,_windowTime:B}=this;ee||(oe.push(G),!V&&oe.push(P.now()+B)),this._trimBuffer(),super.next(G)}_subscribe(G){this._throwIfClosed(),this._trimBuffer();const ee=this._innerSubscribe(G),{_infiniteTimeWindow:oe,_buffer:V}=this,P=V.slice();for(let B=0;B{"use strict";v.d(Ne,{B:()=>oe});var u=v(1985),y=v(8359);const L=(0,v(1853).L)(P=>function(){P(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var G=v(7908),ee=v(9786);let oe=(()=>{class P extends u.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(F){const ue=new V(this,this);return ue.operator=F,ue}_throwIfClosed(){if(this.closed)throw new L}next(F){(0,ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ue of this.currentObservers)ue.next(F)}})}error(F){(0,ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=F;const{observers:ue}=this;for(;ue.length;)ue.shift().error(F)}})}complete(){(0,ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:F}=this;for(;F.length;)F.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var F;return(null===(F=this.observers)||void 0===F?void 0:F.length)>0}_trySubscribe(F){return this._throwIfClosed(),super._trySubscribe(F)}_subscribe(F){return this._throwIfClosed(),this._checkFinalizedStatuses(F),this._innerSubscribe(F)}_innerSubscribe(F){const{hasError:ue,isStopped:ge,observers:Ee}=this;return ue||ge?y.Kn:(this.currentObservers=null,Ee.push(F),new y.yU(()=>{this.currentObservers=null,(0,G.o)(Ee,F)}))}_checkFinalizedStatuses(F){const{hasError:ue,thrownError:ge,isStopped:Ee}=this;ue?F.error(ge):Ee&&F.complete()}asObservable(){const F=new u.c;return F.source=this,F}}return P.create=(B,F)=>new V(B,F),P})();class V extends oe{constructor(B,F){super(),this.destination=B,this.source=F}next(B){var F,ue;null===(ue=null===(F=this.destination)||void 0===F?void 0:F.next)||void 0===ue||ue.call(F,B)}error(B){var F,ue;null===(ue=null===(F=this.destination)||void 0===F?void 0:F.error)||void 0===ue||ue.call(F,B)}complete(){var B,F;null===(F=null===(B=this.destination)||void 0===B?void 0:B.complete)||void 0===F||F.call(B)}_subscribe(B){var F,ue;return null!==(ue=null===(F=this.source)||void 0===F?void 0:F.subscribe(B))&&void 0!==ue?ue:y.Kn}}},7707:(tn,Ne,v)=>{"use strict";v.d(Ne,{Ms:()=>ke,vU:()=>ue});var u=v(8071),y=v(8359),o=v(1026),L=v(5334),G=v(5343);const ee=P("C",void 0,void 0);function P(je,qe,We){return{kind:je,value:qe,error:We}}var B=v(9270),F=v(9786);class ue extends y.yU{constructor(qe){super(),this.isStopped=!1,qe?(this.destination=qe,(0,y.Uv)(qe)&&qe.add(this)):this.destination=gt}static create(qe,We,ae){return new ke(qe,We,ae)}next(qe){this.isStopped?Ze(function V(je){return P("N",je,void 0)}(qe),this):this._next(qe)}error(qe){this.isStopped?Ze(function oe(je){return P("E",void 0,je)}(qe),this):(this.isStopped=!0,this._error(qe))}complete(){this.isStopped?Ze(ee,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(qe){this.destination.next(qe)}_error(qe){try{this.destination.error(qe)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ge=Function.prototype.bind;function Ee(je,qe){return ge.call(je,qe)}class Re{constructor(qe){this.partialObserver=qe}next(qe){const{partialObserver:We}=this;if(We.next)try{We.next(qe)}catch(ae){te(ae)}}error(qe){const{partialObserver:We}=this;if(We.error)try{We.error(qe)}catch(ae){te(ae)}else te(qe)}complete(){const{partialObserver:qe}=this;if(qe.complete)try{qe.complete()}catch(We){te(We)}}}class ke extends ue{constructor(qe,We,ae){let me;if(super(),(0,u.T)(qe)||!qe)me={next:qe??void 0,error:We??void 0,complete:ae??void 0};else{let Le;this&&o.$.useDeprecatedNextContext?(Le=Object.create(qe),Le.unsubscribe=()=>this.unsubscribe(),me={next:qe.next&&Ee(qe.next,Le),error:qe.error&&Ee(qe.error,Le),complete:qe.complete&&Ee(qe.complete,Le)}):me=qe}this.destination=new Re(me)}}function te(je){o.$.useDeprecatedSynchronousErrorHandling?(0,F.l)(je):(0,L.m)(je)}function Ze(je,qe){const{onStoppedNotification:We}=o.$;We&&B.f.setTimeout(()=>We(je,qe))}const gt={closed:!0,next:G.l,error:function be(je){throw je},complete:G.l}},8359:(tn,Ne,v)=>{"use strict";v.d(Ne,{Kn:()=>ee,yU:()=>G,Uv:()=>oe});var u=v(8071);const o=(0,v(1853).L)(P=>function(F){P(this),this.message=F?`${F.length} errors occurred during unsubscription:\n${F.map((ue,ge)=>`${ge+1}) ${ue.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=F});var L=v(7908);class G{constructor(B){this.initialTeardown=B,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let B;if(!this.closed){this.closed=!0;const{_parentage:F}=this;if(F)if(this._parentage=null,Array.isArray(F))for(const Ee of F)Ee.remove(this);else F.remove(this);const{initialTeardown:ue}=this;if((0,u.T)(ue))try{ue()}catch(Ee){B=Ee instanceof o?Ee.errors:[Ee]}const{_finalizers:ge}=this;if(ge){this._finalizers=null;for(const Ee of ge)try{V(Ee)}catch(Re){B=B??[],Re instanceof o?B=[...B,...Re.errors]:B.push(Re)}}if(B)throw new o(B)}}add(B){var F;if(B&&B!==this)if(this.closed)V(B);else{if(B instanceof G){if(B.closed||B._hasParent(this))return;B._addParent(this)}(this._finalizers=null!==(F=this._finalizers)&&void 0!==F?F:[]).push(B)}}_hasParent(B){const{_parentage:F}=this;return F===B||Array.isArray(F)&&F.includes(B)}_addParent(B){const{_parentage:F}=this;this._parentage=Array.isArray(F)?(F.push(B),F):F?[F,B]:B}_removeParent(B){const{_parentage:F}=this;F===B?this._parentage=null:Array.isArray(F)&&(0,L.o)(F,B)}remove(B){const{_finalizers:F}=this;F&&(0,L.o)(F,B),B instanceof G&&B._removeParent(this)}}G.EMPTY=(()=>{const P=new G;return P.closed=!0,P})();const ee=G.EMPTY;function oe(P){return P instanceof G||P&&"closed"in P&&(0,u.T)(P.remove)&&(0,u.T)(P.add)&&(0,u.T)(P.unsubscribe)}function V(P){(0,u.T)(P)?P():P.unsubscribe()}},1026:(tn,Ne,v)=>{"use strict";v.d(Ne,{$:()=>u});const u={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(tn,Ne,v)=>{"use strict";v.d(Ne,{G:()=>ee});var u=v(1985),y=v(8359),o=v(9898),L=v(4360),G=v(9974);class ee extends u.c{constructor(V,P){super(),this.source=V,this.subjectFactory=P,this._subject=null,this._refCount=0,this._connection=null,(0,G.S)(V)&&(this.lift=V.lift)}_subscribe(V){return this.getSubject().subscribe(V)}getSubject(){const V=this._subject;return(!V||V.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:V}=this;this._subject=this._connection=null,V?.unsubscribe()}connect(){let V=this._connection;if(!V){V=this._connection=new y.yU;const P=this.getSubject();V.add(this.source.subscribe((0,L._)(P,void 0,()=>{this._teardown(),P.complete()},B=>{this._teardown(),P.error(B)},()=>this._teardown()))),V.closed&&(this._connection=null,V=y.yU.EMPTY)}return V}refCount(){return(0,o.B)()(this)}}},4572:(tn,Ne,v)=>{"use strict";v.d(Ne,{z:()=>B});var u=v(1985),y=v(3073),o=v(6648),L=v(3669),G=v(6450),ee=v(9326),oe=v(8496),V=v(4360),P=v(5225);function B(...ge){const Ee=(0,ee.lI)(ge),Re=(0,ee.ms)(ge),{args:ke,keys:te}=(0,y.D)(ge);if(0===ke.length)return(0,o.H)([],Ee);const be=new u.c(function F(ge,Ee,Re=L.D){return ke=>{ue(Ee,()=>{const{length:te}=ge,be=new Array(te);let Ze=te,gt=te;for(let je=0;je{const qe=(0,o.H)(ge[je],Ee);let We=!1;qe.subscribe((0,V._)(ke,ae=>{be[je]=ae,We||(We=!0,gt--),gt||ke.next(Re(be.slice()))},()=>{--Ze||ke.complete()}))},ke)},ke)}}(ke,Ee,te?Ze=>(0,oe.e)(te,Ze):L.D));return Re?be.pipe((0,G.I)(Re)):be}function ue(ge,Ee,Re){ge?(0,P.N)(Re,ge,Ee):Ee()}},8793:(tn,Ne,v)=>{"use strict";v.d(Ne,{x:()=>G});var u=v(6365),o=v(9326),L=v(6648);function G(...ee){return function y(){return(0,u.U)(1)}()((0,L.H)(ee,(0,o.lI)(ee)))}},9030:(tn,Ne,v)=>{"use strict";v.d(Ne,{v:()=>o});var u=v(1985),y=v(8750);function o(L){return new u.c(G=>{(0,y.Tg)(L()).subscribe(G)})}},983:(tn,Ne,v)=>{"use strict";v.d(Ne,{w:()=>y});const y=new(v(1985).c)(G=>G.complete())},7468:(tn,Ne,v)=>{"use strict";v.d(Ne,{p:()=>V});var u=v(1985),y=v(3073),o=v(8750),L=v(9326),G=v(4360),ee=v(6450),oe=v(8496);function V(...P){const B=(0,L.ms)(P),{args:F,keys:ue}=(0,y.D)(P),ge=new u.c(Ee=>{const{length:Re}=F;if(!Re)return void Ee.complete();const ke=new Array(Re);let te=Re,be=Re;for(let Ze=0;Ze{gt||(gt=!0,be--),ke[Ze]=je},()=>te--,void 0,()=>{(!te||!gt)&&(be||Ee.next(ue?(0,oe.e)(ue,ke):ke),Ee.complete())}))}});return B?ge.pipe((0,ee.I)(B)):ge}},6648:(tn,Ne,v)=>{"use strict";v.d(Ne,{H:()=>ae});var u=v(8750),y=v(5225),o=v(9974),L=v(4360);function G(me,Le=0){return(0,o.N)((nt,At)=>{nt.subscribe((0,L._)(At,vt=>(0,y.N)(At,me,()=>At.next(vt),Le),()=>(0,y.N)(At,me,()=>At.complete(),Le),vt=>(0,y.N)(At,me,()=>At.error(vt),Le)))})}function ee(me,Le=0){return(0,o.N)((nt,At)=>{At.add(me.schedule(()=>nt.subscribe(At),Le))})}var P=v(1985),F=v(4761),ue=v(8071);function Ee(me,Le){if(!me)throw new Error("Iterable cannot be null");return new P.c(nt=>{(0,y.N)(nt,Le,()=>{const At=me[Symbol.asyncIterator]();(0,y.N)(nt,Le,()=>{At.next().then(vt=>{vt.done?nt.complete():nt.next(vt.value)})},0,!0)})})}var Re=v(5055),ke=v(9858),te=v(7441),be=v(5397),Ze=v(7953),gt=v(591),je=v(5196);function ae(me,Le){return Le?function We(me,Le){if(null!=me){if((0,Re.l)(me))return function oe(me,Le){return(0,u.Tg)(me).pipe(ee(Le),G(Le))}(me,Le);if((0,te.X)(me))return function B(me,Le){return new P.c(nt=>{let At=0;return Le.schedule(function(){At===me.length?nt.complete():(nt.next(me[At++]),nt.closed||this.schedule())})})}(me,Le);if((0,ke.y)(me))return function V(me,Le){return(0,u.Tg)(me).pipe(ee(Le),G(Le))}(me,Le);if((0,Ze.T)(me))return Ee(me,Le);if((0,be.x)(me))return function ge(me,Le){return new P.c(nt=>{let At;return(0,y.N)(nt,Le,()=>{At=me[F.l](),(0,y.N)(nt,Le,()=>{let vt,Dt;try{({value:vt,done:Dt}=At.next())}catch(Zt){return void nt.error(Zt)}Dt?nt.complete():nt.next(vt)},0,!0)}),()=>(0,ue.T)(At?.return)&&At.return()})}(me,Le);if((0,je.U)(me))return function qe(me,Le){return Ee((0,je.C)(me),Le)}(me,Le)}throw(0,gt.L)(me)}(me,Le):(0,u.Tg)(me)}},3726:(tn,Ne,v)=>{"use strict";v.d(Ne,{R:()=>B});var u=v(8750),y=v(1985),o=v(1397),L=v(7441),G=v(8071),ee=v(6450);const oe=["addListener","removeListener"],V=["addEventListener","removeEventListener"],P=["on","off"];function B(Re,ke,te,be){if((0,G.T)(te)&&(be=te,te=void 0),be)return B(Re,ke,te).pipe((0,ee.I)(be));const[Ze,gt]=function Ee(Re){return(0,G.T)(Re.addEventListener)&&(0,G.T)(Re.removeEventListener)}(Re)?V.map(je=>qe=>Re[je](ke,qe,te)):function ue(Re){return(0,G.T)(Re.addListener)&&(0,G.T)(Re.removeListener)}(Re)?oe.map(F(Re,ke)):function ge(Re){return(0,G.T)(Re.on)&&(0,G.T)(Re.off)}(Re)?P.map(F(Re,ke)):[];if(!Ze&&(0,L.X)(Re))return(0,o.Z)(je=>B(je,ke,te))((0,u.Tg)(Re));if(!Ze)throw new TypeError("Invalid event target");return new y.c(je=>{const qe=(...We)=>je.next(1gt(qe)})}function F(Re,ke){return te=>be=>Re[te](ke,be)}},8750:(tn,Ne,v)=>{"use strict";v.d(Ne,{Tg:()=>ge});var u=v(1635),y=v(7441),o=v(9858),L=v(1985),G=v(5055),ee=v(7953),oe=v(591),V=v(5397),P=v(5196),B=v(8071),F=v(5334),ue=v(3494);function ge(je){if(je instanceof L.c)return je;if(null!=je){if((0,G.l)(je))return function Ee(je){return new L.c(qe=>{const We=je[ue.s]();if((0,B.T)(We.subscribe))return We.subscribe(qe);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(je);if((0,y.X)(je))return function Re(je){return new L.c(qe=>{for(let We=0;We{je.then(We=>{qe.closed||(qe.next(We),qe.complete())},We=>qe.error(We)).then(null,F.m)})}(je);if((0,ee.T)(je))return be(je);if((0,V.x)(je))return function te(je){return new L.c(qe=>{for(const We of je)if(qe.next(We),qe.closed)return;qe.complete()})}(je);if((0,P.U)(je))return function Ze(je){return be((0,P.C)(je))}(je)}throw(0,oe.L)(je)}function be(je){return new L.c(qe=>{(function gt(je,qe){var We,ae,me,Le;return(0,u.sH)(this,void 0,void 0,function*(){try{for(We=(0,u.xN)(je);!(ae=yield We.next()).done;)if(qe.next(ae.value),qe.closed)return}catch(nt){me={error:nt}}finally{try{ae&&!ae.done&&(Le=We.return)&&(yield Le.call(We))}finally{if(me)throw me.error}}qe.complete()})})(je,qe).catch(We=>qe.error(We))})}},7786:(tn,Ne,v)=>{"use strict";v.d(Ne,{h:()=>ee});var u=v(6365),y=v(8750),o=v(983),L=v(9326),G=v(6648);function ee(...oe){const V=(0,L.lI)(oe),P=(0,L.R0)(oe,1/0),B=oe;return B.length?1===B.length?(0,y.Tg)(B[0]):(0,u.U)(P)((0,G.H)(B,V)):o.w}},7673:(tn,Ne,v)=>{"use strict";v.d(Ne,{of:()=>o});var u=v(9326),y=v(6648);function o(...L){const G=(0,u.lI)(L);return(0,y.H)(L,G)}},8810:(tn,Ne,v)=>{"use strict";v.d(Ne,{$:()=>o});var u=v(1985),y=v(8071);function o(L,G){const ee=(0,y.T)(L)?L:()=>L,oe=V=>V.error(ee());return new u.c(G?V=>G.schedule(oe,0,V):oe)}},1584:(tn,Ne,v)=>{"use strict";v.d(Ne,{O:()=>G});var u=v(1985),y=v(3236),o=v(9470);function G(ee=0,oe,V=y.b){let P=-1;return null!=oe&&((0,o.m)(oe)?V=oe:P=oe),new u.c(B=>{let F=function L(ee){return ee instanceof Date&&!isNaN(ee)}(ee)?+ee-V.now():ee;F<0&&(F=0);let ue=0;return V.schedule(function(){B.closed||(B.next(ue++),0<=P?this.schedule(void 0,P):B.complete())},F)})}},4360:(tn,Ne,v)=>{"use strict";v.d(Ne,{_:()=>y});var u=v(7707);function y(L,G,ee,oe,V){return new o(L,G,ee,oe,V)}class o extends u.vU{constructor(G,ee,oe,V,P,B){super(G),this.onFinalize=P,this.shouldUnsubscribe=B,this._next=ee?function(F){try{ee(F)}catch(ue){G.error(ue)}}:super._next,this._error=V?function(F){try{V(F)}catch(ue){G.error(ue)}finally{this.unsubscribe()}}:super._error,this._complete=oe?function(){try{oe()}catch(F){G.error(F)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var G;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ee}=this;super.unsubscribe(),!ee&&(null===(G=this.onFinalize)||void 0===G||G.call(this))}}}},3798:(tn,Ne,v)=>{"use strict";v.d(Ne,{Z:()=>oe});var u=v(3236),y=v(9974),o=v(8750),L=v(4360),ee=v(1584);function oe(V,P=u.E){return function G(V){return(0,y.N)((P,B)=>{let F=!1,ue=null,ge=null,Ee=!1;const Re=()=>{if(ge?.unsubscribe(),ge=null,F){F=!1;const te=ue;ue=null,B.next(te)}Ee&&B.complete()},ke=()=>{ge=null,Ee&&B.complete()};P.subscribe((0,L._)(B,te=>{F=!0,ue=te,ge||(0,o.Tg)(V(te)).subscribe(ge=(0,L._)(B,Re,ke))},()=>{Ee=!0,(!F||!ge||ge.closed)&&B.complete()}))})}(()=>(0,ee.O)(V,P))}},9437:(tn,Ne,v)=>{"use strict";v.d(Ne,{W:()=>L});var u=v(8750),y=v(4360),o=v(9974);function L(G){return(0,o.N)((ee,oe)=>{let B,V=null,P=!1;V=ee.subscribe((0,y._)(oe,void 0,void 0,F=>{B=(0,u.Tg)(G(F,L(G)(ee))),V?(V.unsubscribe(),V=null,B.subscribe(oe)):P=!0})),P&&(V.unsubscribe(),V=null,B.subscribe(oe))})}},274:(tn,Ne,v)=>{"use strict";v.d(Ne,{H:()=>o});var u=v(1397),y=v(8071);function o(L,G){return(0,y.T)(G)?(0,u.Z)(L,G,1):(0,u.Z)(L,1)}},152:(tn,Ne,v)=>{"use strict";v.d(Ne,{B:()=>L});var u=v(3236),y=v(9974),o=v(4360);function L(G,ee=u.E){return(0,y.N)((oe,V)=>{let P=null,B=null,F=null;const ue=()=>{if(P){P.unsubscribe(),P=null;const Ee=B;B=null,V.next(Ee)}};function ge(){const Ee=F+G,Re=ee.now();if(Re{B=Ee,F=ee.now(),P||(P=ee.schedule(ge,G),V.add(P))},()=>{ue(),V.complete()},void 0,()=>{B=P=null}))})}},1986:(tn,Ne,v)=>{"use strict";v.d(Ne,{c:()=>ge});var u=v(3236),y=v(8793),o=v(6697),L=v(9974),G=v(4360),ee=v(5343),V=v(3703),P=v(1397),B=v(8750);function F(Ee,Re){return Re?ke=>(0,y.x)(Re.pipe((0,o.s)(1),function oe(){return(0,L.N)((Ee,Re)=>{Ee.subscribe((0,G._)(Re,ee.l))})}()),ke.pipe(F(Ee))):(0,P.Z)((ke,te)=>(0,B.Tg)(Ee(ke,te)).pipe((0,o.s)(1),(0,V.u)(ke)))}var ue=v(1584);function ge(Ee,Re=u.E){const ke=(0,ue.O)(Ee,Re);return F(()=>ke)}},3294:(tn,Ne,v)=>{"use strict";v.d(Ne,{F:()=>L});var u=v(3669),y=v(9974),o=v(4360);function L(ee,oe=u.D){return ee=ee??G,(0,y.N)((V,P)=>{let B,F=!0;V.subscribe((0,o._)(P,ue=>{const ge=oe(ue);(F||!ee(B,ge))&&(F=!1,B=ge,P.next(ue))}))})}function G(ee,oe){return ee===oe}},5964:(tn,Ne,v)=>{"use strict";v.d(Ne,{p:()=>o});var u=v(9974),y=v(4360);function o(L,G){return(0,u.N)((ee,oe)=>{let V=0;ee.subscribe((0,y._)(oe,P=>L.call(G,P,V++)&&oe.next(P)))})}},980:(tn,Ne,v)=>{"use strict";v.d(Ne,{j:()=>y});var u=v(9974);function y(o){return(0,u.N)((L,G)=>{try{L.subscribe(G)}finally{G.add(o)}})}},6354:(tn,Ne,v)=>{"use strict";v.d(Ne,{T:()=>o});var u=v(9974),y=v(4360);function o(L,G){return(0,u.N)((ee,oe)=>{let V=0;ee.subscribe((0,y._)(oe,P=>{oe.next(L.call(G,P,V++))}))})}},3703:(tn,Ne,v)=>{"use strict";v.d(Ne,{u:()=>y});var u=v(6354);function y(o){return(0,u.T)(()=>o)}},6365:(tn,Ne,v)=>{"use strict";v.d(Ne,{U:()=>o});var u=v(1397),y=v(3669);function o(L=1/0){return(0,u.Z)(y.D,L)}},1397:(tn,Ne,v)=>{"use strict";v.d(Ne,{Z:()=>V});var u=v(6354),y=v(8750),o=v(9974),L=v(5225),G=v(4360),oe=v(8071);function V(P,B,F=1/0){return(0,oe.T)(B)?V((ue,ge)=>(0,u.T)((Ee,Re)=>B(ue,Ee,ge,Re))((0,y.Tg)(P(ue,ge))),F):("number"==typeof B&&(F=B),(0,o.N)((ue,ge)=>function ee(P,B,F,ue,ge,Ee,Re,ke){const te=[];let be=0,Ze=0,gt=!1;const je=()=>{gt&&!te.length&&!be&&B.complete()},qe=ae=>be{Ee&&B.next(ae),be++;let me=!1;(0,y.Tg)(F(ae,Ze++)).subscribe((0,G._)(B,Le=>{ge?.(Le),Ee?qe(Le):B.next(Le)},()=>{me=!0},void 0,()=>{if(me)try{for(be--;te.length&&beWe(Le)):We(Le)}je()}catch(Le){B.error(Le)}}))};return P.subscribe((0,G._)(B,qe,()=>{gt=!0,je()})),()=>{ke?.()}}(ue,ge,P,F)))}},9898:(tn,Ne,v)=>{"use strict";v.d(Ne,{B:()=>o});var u=v(9974),y=v(4360);function o(){return(0,u.N)((L,G)=>{let ee=null;L._refCount++;const oe=(0,y._)(G,void 0,void 0,void 0,()=>{if(!L||L._refCount<=0||0<--L._refCount)return void(ee=null);const V=L._connection,P=ee;ee=null,V&&(!P||V===P)&&V.unsubscribe(),G.unsubscribe()});L.subscribe(oe),oe.closed||(ee=L.connect())})}},7647:(tn,Ne,v)=>{"use strict";v.d(Ne,{u:()=>G});var u=v(8750),y=v(1413),o=v(7707),L=v(9974);function G(oe={}){const{connector:V=()=>new y.B,resetOnError:P=!0,resetOnComplete:B=!0,resetOnRefCountZero:F=!0}=oe;return ue=>{let ge,Ee,Re,ke=0,te=!1,be=!1;const Ze=()=>{Ee?.unsubscribe(),Ee=void 0},gt=()=>{Ze(),ge=Re=void 0,te=be=!1},je=()=>{const qe=ge;gt(),qe?.unsubscribe()};return(0,L.N)((qe,We)=>{ke++,!be&&!te&&Ze();const ae=Re=Re??V();We.add(()=>{ke--,0===ke&&!be&&!te&&(Ee=ee(je,F))}),ae.subscribe(We),!ge&&ke>0&&(ge=new o.Ms({next:me=>ae.next(me),error:me=>{be=!0,Ze(),Ee=ee(gt,P,me),ae.error(me)},complete:()=>{te=!0,Ze(),Ee=ee(gt,B),ae.complete()}}),(0,u.Tg)(qe).subscribe(ge))})(ue)}}function ee(oe,V,...P){if(!0===V)return void oe();if(!1===V)return;const B=new o.Ms({next:()=>{B.unsubscribe(),oe()}});return(0,u.Tg)(V(...P)).subscribe(B)}},4668:(tn,Ne,v)=>{"use strict";v.d(Ne,{t:()=>o});var u=v(2771),y=v(7647);function o(L,G,ee){let oe,V=!1;return L&&"object"==typeof L?({bufferSize:oe=1/0,windowTime:G=1/0,refCount:V=!1,scheduler:ee}=L):oe=L??1/0,(0,y.u)({connector:()=>new u.m(oe,G,ee),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:V})}},5245:(tn,Ne,v)=>{"use strict";v.d(Ne,{i:()=>y});var u=v(5964);function y(o){return(0,u.p)((L,G)=>o<=G)}},9172:(tn,Ne,v)=>{"use strict";v.d(Ne,{Z:()=>L});var u=v(8793),y=v(9326),o=v(9974);function L(...G){const ee=(0,y.lI)(G);return(0,o.N)((oe,V)=>{(ee?(0,u.x)(G,oe,ee):(0,u.x)(G,oe)).subscribe(V)})}},5558:(tn,Ne,v)=>{"use strict";v.d(Ne,{n:()=>L});var u=v(8750),y=v(9974),o=v(4360);function L(G,ee){return(0,y.N)((oe,V)=>{let P=null,B=0,F=!1;const ue=()=>F&&!P&&V.complete();oe.subscribe((0,o._)(V,ge=>{P?.unsubscribe();let Ee=0;const Re=B++;(0,u.Tg)(G(ge,Re)).subscribe(P=(0,o._)(V,ke=>V.next(ee?ee(ge,ke,Re,Ee++):ke),()=>{P=null,ue()}))},()=>{F=!0,ue()}))})}},6697:(tn,Ne,v)=>{"use strict";v.d(Ne,{s:()=>L});var u=v(983),y=v(9974),o=v(4360);function L(G){return G<=0?()=>u.w:(0,y.N)((ee,oe)=>{let V=0;ee.subscribe((0,o._)(oe,P=>{++V<=G&&(oe.next(P),G<=V&&oe.complete())}))})}},6977:(tn,Ne,v)=>{"use strict";v.d(Ne,{Q:()=>G});var u=v(9974),y=v(4360),o=v(8750),L=v(5343);function G(ee){return(0,u.N)((oe,V)=>{(0,o.Tg)(ee).subscribe((0,y._)(V,()=>V.complete(),L.l)),!V.closed&&oe.subscribe(V)})}},7048:(tn,Ne,v)=>{"use strict";v.d(Ne,{v:()=>o});var u=v(9974),y=v(4360);function o(L,G=!1){return(0,u.N)((ee,oe)=>{let V=0;ee.subscribe((0,y._)(oe,P=>{const B=L(P,V++);(B||G)&&oe.next(P),!B&&oe.complete()}))})}},8141:(tn,Ne,v)=>{"use strict";v.d(Ne,{M:()=>G});var u=v(8071),y=v(9974),o=v(4360),L=v(3669);function G(ee,oe,V){const P=(0,u.T)(ee)||oe||V?{next:ee,error:oe,complete:V}:ee;return P?(0,y.N)((B,F)=>{var ue;null===(ue=P.subscribe)||void 0===ue||ue.call(P);let ge=!0;B.subscribe((0,o._)(F,Ee=>{var Re;null===(Re=P.next)||void 0===Re||Re.call(P,Ee),F.next(Ee)},()=>{var Ee;ge=!1,null===(Ee=P.complete)||void 0===Ee||Ee.call(P),F.complete()},Ee=>{var Re;ge=!1,null===(Re=P.error)||void 0===Re||Re.call(P,Ee),F.error(Ee)},()=>{var Ee,Re;ge&&(null===(Ee=P.unsubscribe)||void 0===Ee||Ee.call(P)),null===(Re=P.finalize)||void 0===Re||Re.call(P)}))}):L.D}},6780:(tn,Ne,v)=>{"use strict";v.d(Ne,{R:()=>G});var u=v(8359);class y extends u.yU{constructor(oe,V){super()}schedule(oe,V=0){return this}}const o={setInterval(ee,oe,...V){const{delegate:P}=o;return P?.setInterval?P.setInterval(ee,oe,...V):setInterval(ee,oe,...V)},clearInterval(ee){const{delegate:oe}=o;return(oe?.clearInterval||clearInterval)(ee)},delegate:void 0};var L=v(7908);class G extends y{constructor(oe,V){super(oe,V),this.scheduler=oe,this.work=V,this.pending=!1}schedule(oe,V=0){var P;if(this.closed)return this;this.state=oe;const B=this.id,F=this.scheduler;return null!=B&&(this.id=this.recycleAsyncId(F,B,V)),this.pending=!0,this.delay=V,this.id=null!==(P=this.id)&&void 0!==P?P:this.requestAsyncId(F,this.id,V),this}requestAsyncId(oe,V,P=0){return o.setInterval(oe.flush.bind(oe,this),P)}recycleAsyncId(oe,V,P=0){if(null!=P&&this.delay===P&&!1===this.pending)return V;null!=V&&o.clearInterval(V)}execute(oe,V){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const P=this._execute(oe,V);if(P)return P;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(oe,V){let B,P=!1;try{this.work(oe)}catch(F){P=!0,B=F||new Error("Scheduled action threw falsy error")}if(P)return this.unsubscribe(),B}unsubscribe(){if(!this.closed){const{id:oe,scheduler:V}=this,{actions:P}=V;this.work=this.state=this.scheduler=null,this.pending=!1,(0,L.o)(P,this),null!=oe&&(this.id=this.recycleAsyncId(V,oe,null)),this.delay=null,super.unsubscribe()}}}},9687:(tn,Ne,v)=>{"use strict";v.d(Ne,{q:()=>o});var u=v(6129);class y{constructor(G,ee=y.now){this.schedulerActionCtor=G,this.now=ee}schedule(G,ee=0,oe){return new this.schedulerActionCtor(this,G).schedule(oe,ee)}}y.now=u.U.now;class o extends y{constructor(G,ee=y.now){super(G,ee),this.actions=[],this._active=!1}flush(G){const{actions:ee}=this;if(this._active)return void ee.push(G);let oe;this._active=!0;do{if(oe=G.execute(G.state,G.delay))break}while(G=ee.shift());if(this._active=!1,oe){for(;G=ee.shift();)G.unsubscribe();throw oe}}}},5007:(tn,Ne,v)=>{"use strict";v.d(Ne,{$:()=>Ee});var u=v(6780);let o,y=1;const L={};function G(ke){return ke in L&&(delete L[ke],!0)}const ee={setImmediate(ke){const te=y++;return L[te]=!0,o||(o=Promise.resolve()),o.then(()=>G(te)&&ke()),te},clearImmediate(ke){G(ke)}},{setImmediate:V,clearImmediate:P}=ee,B={setImmediate(...ke){const{delegate:te}=B;return(te?.setImmediate||V)(...ke)},clearImmediate(ke){const{delegate:te}=B;return(te?.clearImmediate||P)(ke)},delegate:void 0};var ue=v(9687);const Ee=new class ge extends ue.q{flush(te){this._active=!0;const be=this._scheduled;this._scheduled=void 0;const{actions:Ze}=this;let gt;te=te||Ze.shift();do{if(gt=te.execute(te.state,te.delay))break}while((te=Ze[0])&&te.id===be&&Ze.shift());if(this._active=!1,gt){for(;(te=Ze[0])&&te.id===be&&Ze.shift();)te.unsubscribe();throw gt}}}(class F extends u.R{constructor(te,be){super(te,be),this.scheduler=te,this.work=be}requestAsyncId(te,be,Ze=0){return null!==Ze&&Ze>0?super.requestAsyncId(te,be,Ze):(te.actions.push(this),te._scheduled||(te._scheduled=B.setImmediate(te.flush.bind(te,void 0))))}recycleAsyncId(te,be,Ze=0){var gt;if(null!=Ze?Ze>0:this.delay>0)return super.recycleAsyncId(te,be,Ze);const{actions:je}=te;null!=be&&(null===(gt=je[je.length-1])||void 0===gt?void 0:gt.id)!==be&&(B.clearImmediate(be),te._scheduled===be&&(te._scheduled=void 0))}})},3236:(tn,Ne,v)=>{"use strict";v.d(Ne,{E:()=>o,b:()=>L});var u=v(6780);const o=new(v(9687).q)(u.R),L=o},6129:(tn,Ne,v)=>{"use strict";v.d(Ne,{U:()=>u});const u={now:()=>(u.delegate||Date).now(),delegate:void 0}},9270:(tn,Ne,v)=>{"use strict";v.d(Ne,{f:()=>u});const u={setTimeout(y,o,...L){const{delegate:G}=u;return G?.setTimeout?G.setTimeout(y,o,...L):setTimeout(y,o,...L)},clearTimeout(y){const{delegate:o}=u;return(o?.clearTimeout||clearTimeout)(y)},delegate:void 0}},4761:(tn,Ne,v)=>{"use strict";v.d(Ne,{l:()=>y});const y=function u(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(tn,Ne,v)=>{"use strict";v.d(Ne,{s:()=>u});const u="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(tn,Ne,v)=>{"use strict";v.d(Ne,{G:()=>y});const y=(0,v(1853).L)(o=>function(){o(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(tn,Ne,v)=>{"use strict";v.d(Ne,{R0:()=>ee,lI:()=>G,ms:()=>L});var u=v(8071),y=v(9470);function o(oe){return oe[oe.length-1]}function L(oe){return(0,u.T)(o(oe))?oe.pop():void 0}function G(oe){return(0,y.m)(o(oe))?oe.pop():void 0}function ee(oe,V){return"number"==typeof o(oe)?oe.pop():V}},3073:(tn,Ne,v)=>{"use strict";v.d(Ne,{D:()=>G});const{isArray:u}=Array,{getPrototypeOf:y,prototype:o,keys:L}=Object;function G(oe){if(1===oe.length){const V=oe[0];if(u(V))return{args:V,keys:null};if(function ee(oe){return oe&&"object"==typeof oe&&y(oe)===o}(V)){const P=L(V);return{args:P.map(B=>V[B]),keys:P}}}return{args:oe,keys:null}}},7908:(tn,Ne,v)=>{"use strict";function u(y,o){if(y){const L=y.indexOf(o);0<=L&&y.splice(L,1)}}v.d(Ne,{o:()=>u})},1853:(tn,Ne,v)=>{"use strict";function u(y){const L=y(G=>{Error.call(G),G.stack=(new Error).stack});return L.prototype=Object.create(Error.prototype),L.prototype.constructor=L,L}v.d(Ne,{L:()=>u})},8496:(tn,Ne,v)=>{"use strict";function u(y,o){return y.reduce((L,G,ee)=>(L[G]=o[ee],L),{})}v.d(Ne,{e:()=>u})},9786:(tn,Ne,v)=>{"use strict";v.d(Ne,{Y:()=>o,l:()=>L});var u=v(1026);let y=null;function o(G){if(u.$.useDeprecatedSynchronousErrorHandling){const ee=!y;if(ee&&(y={errorThrown:!1,error:null}),G(),ee){const{errorThrown:oe,error:V}=y;if(y=null,oe)throw V}}else G()}function L(G){u.$.useDeprecatedSynchronousErrorHandling&&y&&(y.errorThrown=!0,y.error=G)}},5225:(tn,Ne,v)=>{"use strict";function u(y,o,L,G=0,ee=!1){const oe=o.schedule(function(){L(),ee?y.add(this.schedule(null,G)):this.unsubscribe()},G);if(y.add(oe),!ee)return oe}v.d(Ne,{N:()=>u})},3669:(tn,Ne,v)=>{"use strict";function u(y){return y}v.d(Ne,{D:()=>u})},7441:(tn,Ne,v)=>{"use strict";v.d(Ne,{X:()=>u});const u=y=>y&&"number"==typeof y.length&&"function"!=typeof y},7953:(tn,Ne,v)=>{"use strict";v.d(Ne,{T:()=>y});var u=v(8071);function y(o){return Symbol.asyncIterator&&(0,u.T)(o?.[Symbol.asyncIterator])}},8071:(tn,Ne,v)=>{"use strict";function u(y){return"function"==typeof y}v.d(Ne,{T:()=>u})},5055:(tn,Ne,v)=>{"use strict";v.d(Ne,{l:()=>o});var u=v(3494),y=v(8071);function o(L){return(0,y.T)(L[u.s])}},5397:(tn,Ne,v)=>{"use strict";v.d(Ne,{x:()=>o});var u=v(4761),y=v(8071);function o(L){return(0,y.T)(L?.[u.l])}},4402:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>o});var u=v(1985),y=v(8071);function o(L){return!!L&&(L instanceof u.c||(0,y.T)(L.lift)&&(0,y.T)(L.subscribe))}},9858:(tn,Ne,v)=>{"use strict";v.d(Ne,{y:()=>y});var u=v(8071);function y(o){return(0,u.T)(o?.then)}},5196:(tn,Ne,v)=>{"use strict";v.d(Ne,{C:()=>o,U:()=>L});var u=v(1635),y=v(8071);function o(G){return(0,u.AQ)(this,arguments,function*(){const oe=G.getReader();try{for(;;){const{value:V,done:P}=yield(0,u.N3)(oe.read());if(P)return yield(0,u.N3)(void 0);yield yield(0,u.N3)(V)}}finally{oe.releaseLock()}})}function L(G){return(0,y.T)(G?.getReader)}},9470:(tn,Ne,v)=>{"use strict";v.d(Ne,{m:()=>y});var u=v(8071);function y(o){return o&&(0,u.T)(o.schedule)}},9974:(tn,Ne,v)=>{"use strict";v.d(Ne,{N:()=>o,S:()=>y});var u=v(8071);function y(L){return(0,u.T)(L?.lift)}function o(L){return G=>{if(y(G))return G.lift(function(ee){try{return L(ee,this)}catch(oe){this.error(oe)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(tn,Ne,v)=>{"use strict";v.d(Ne,{I:()=>L});var u=v(6354);const{isArray:y}=Array;function L(G){return(0,u.T)(ee=>function o(G,ee){return y(ee)?G(...ee):G(ee)}(G,ee))}},5343:(tn,Ne,v)=>{"use strict";function u(){}v.d(Ne,{l:()=>u})},1203:(tn,Ne,v)=>{"use strict";v.d(Ne,{F:()=>y,m:()=>o});var u=v(3669);function y(...L){return o(L)}function o(L){return 0===L.length?u.D:1===L.length?L[0]:function(ee){return L.reduce((oe,V)=>V(oe),ee)}}},5334:(tn,Ne,v)=>{"use strict";v.d(Ne,{m:()=>o});var u=v(1026),y=v(9270);function o(L){y.f.setTimeout(()=>{const{onUnhandledError:G}=u.$;if(!G)throw L;G(L)})}},591:(tn,Ne,v)=>{"use strict";function u(y){return new TypeError(`You provided ${null!==y&&"object"==typeof y?"an invalid object":`'${y}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}v.d(Ne,{L:()=>u})},9969:(tn,Ne,v)=>{"use strict";v.d(Ne,{FX:()=>At,If:()=>o,K2:()=>V,MA:()=>Ee,Os:()=>oe,P:()=>ke,S6:()=>be,hZ:()=>G,i0:()=>ee,i7:()=>F,iF:()=>P,kY:()=>ue,kp:()=>L,sf:()=>Le,ui:()=>nt,wk:()=>B});var u=v(177),y=v(4438),o=function(vt){return vt[vt.State=0]="State",vt[vt.Transition=1]="Transition",vt[vt.Sequence=2]="Sequence",vt[vt.Group=3]="Group",vt[vt.Animate=4]="Animate",vt[vt.Keyframes=5]="Keyframes",vt[vt.Style=6]="Style",vt[vt.Trigger=7]="Trigger",vt[vt.Reference=8]="Reference",vt[vt.AnimateChild=9]="AnimateChild",vt[vt.AnimateRef=10]="AnimateRef",vt[vt.Query=11]="Query",vt[vt.Stagger=12]="Stagger",vt}(o||{});const L="*";function G(vt,Dt){return{type:o.Trigger,name:vt,definitions:Dt,options:{}}}function ee(vt,Dt=null){return{type:o.Animate,styles:Dt,timings:vt}}function oe(vt,Dt=null){return{type:o.Group,steps:vt,options:Dt}}function V(vt,Dt=null){return{type:o.Sequence,steps:vt,options:Dt}}function P(vt){return{type:o.Style,styles:vt,offset:null}}function B(vt,Dt,Zt){return{type:o.State,name:vt,styles:Dt,options:Zt}}function F(vt){return{type:o.Keyframes,steps:vt}}function ue(vt,Dt,Zt=null){return{type:o.Transition,expr:vt,animation:Dt,options:Zt}}function Ee(vt=null){return{type:o.AnimateChild,options:vt}}function ke(vt,Dt,Zt=null){return{type:o.Query,selector:vt,animation:Dt,options:Zt}}let be=(()=>{class vt{static#e=this.\u0275fac=function(Fn){return new(Fn||vt)};static#t=this.\u0275prov=y.jDH({token:vt,factory:()=>(0,y.WQX)(gt),providedIn:"root"})}return vt})();class Ze{}let gt=(()=>{class vt extends be{constructor(Zt,Fn){if(super(),this.animationModuleType=(0,y.WQX)(y.bc$,{optional:!0}),this._nextAnimationId=0,this._renderer=Zt.createRenderer(Fn.body,{id:"0",encapsulation:y.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function me(vt){const Dt=vt.\u0275type;return 0===Dt||1===Dt}(this._renderer))throw new y.wOt(3600,!1)}build(Zt){const Fn=this._nextAnimationId;this._nextAnimationId++;const Vn=Array.isArray(Zt)?V(Zt):Zt;return We(this._renderer,null,Fn,"register",[Vn]),new je(Fn,this._renderer)}static#e=this.\u0275fac=function(Fn){return new(Fn||vt)(y.KVO(y._9s),y.KVO(u.qQ))};static#t=this.\u0275prov=y.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})();class je extends Ze{constructor(Dt,Zt){super(),this._id=Dt,this._renderer=Zt}create(Dt,Zt){return new qe(this._id,Dt,Zt||{},this._renderer)}}class qe{constructor(Dt,Zt,Fn,Vn){this.id=Dt,this.element=Zt,this._renderer=Vn,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Fn)}_listen(Dt,Zt){return this._renderer.listen(this.element,`@@${this.id}:${Dt}`,Zt)}_command(Dt,...Zt){We(this._renderer,this.element,this.id,Dt,Zt)}onDone(Dt){this._listen("done",Dt)}onStart(Dt){this._listen("start",Dt)}onDestroy(Dt){this._listen("destroy",Dt)}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(Dt){this._command("setPosition",Dt)}getPosition(){return function ae(vt){const Dt=vt.\u0275type;return 0===Dt?vt:1===Dt?vt.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function We(vt,Dt,Zt,Fn,Vn){vt.setProperty(Dt,`@@${Zt}:${Fn}`,Vn)}class Le{constructor(Dt=0,Zt=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Dt+Zt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Dt=>Dt()),this._onDoneFns=[])}onStart(Dt){this._originalOnStartFns.push(Dt),this._onStartFns.push(Dt)}onDone(Dt){this._originalOnDoneFns.push(Dt),this._onDoneFns.push(Dt)}onDestroy(Dt){this._onDestroyFns.push(Dt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Dt=>Dt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Dt=>Dt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Dt){this._position=this.totalTime?Dt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Dt){const Zt="start"==Dt?this._onStartFns:this._onDoneFns;Zt.forEach(Fn=>Fn()),Zt.length=0}}class nt{constructor(Dt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Dt;let Zt=0,Fn=0,Vn=0;const _n=this.players.length;0==_n?queueMicrotask(()=>this._onFinish()):this.players.forEach(pi=>{pi.onDone(()=>{++Zt==_n&&this._onFinish()}),pi.onDestroy(()=>{++Fn==_n&&this._onDestroy()}),pi.onStart(()=>{++Vn==_n&&this._onStart()})}),this.totalTime=this.players.reduce((pi,_e)=>Math.max(pi,_e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Dt=>Dt()),this._onDoneFns=[])}init(){this.players.forEach(Dt=>Dt.init())}onStart(Dt){this._onStartFns.push(Dt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Dt=>Dt()),this._onStartFns=[])}onDone(Dt){this._onDoneFns.push(Dt)}onDestroy(Dt){this._onDestroyFns.push(Dt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Dt=>Dt.play())}pause(){this.players.forEach(Dt=>Dt.pause())}restart(){this.players.forEach(Dt=>Dt.restart())}finish(){this._onFinish(),this.players.forEach(Dt=>Dt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Dt=>Dt.destroy()),this._onDestroyFns.forEach(Dt=>Dt()),this._onDestroyFns=[])}reset(){this.players.forEach(Dt=>Dt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Dt){const Zt=Dt*this.totalTime;this.players.forEach(Fn=>{const Vn=Fn.totalTime?Math.min(1,Zt/Fn.totalTime):1;Fn.setPosition(Vn)})}getPosition(){const Dt=this.players.reduce((Zt,Fn)=>null===Zt||Fn.totalTime>Zt.totalTime?Fn:Zt,null);return null!=Dt?Dt.getPosition():0}beforeDestroy(){this.players.forEach(Dt=>{Dt.beforeDestroy&&Dt.beforeDestroy()})}triggerCallback(Dt){const Zt="start"==Dt?this._onStartFns:this._onDoneFns;Zt.forEach(Fn=>Fn()),Zt.length=0}}const At="!"},9888:(tn,Ne,v)=>{"use strict";v.d(Ne,{Pd:()=>Lt,Au:()=>_e,vr:()=>Dt,Bu:()=>Ae,FN:()=>zt,GX:()=>tt,Q_:()=>at,Z7:()=>ie,Ai:()=>En,px:()=>We,_G:()=>$,w6:()=>ce,Ae:()=>ae});var u=v(177),y=v(4438),o=v(6860),L=v(1413),G=v(8359),oe=(v(4402),v(7673)),V=v(4412),P=v(7336),B=v(8141),F=v(152),ue=v(5964),ge=v(6354),Re=(v(6697),v(5245)),ke=v(3294),te=v(6977),Ze=v(2318),gt=v(4085),je=v(9327);const qe=" ";function We(st,Qe,Oe){const ct=me(st,Qe);Oe=Oe.trim(),!ct.some(Wt=>Wt.trim()===Oe)&&(ct.push(Oe),st.setAttribute(Qe,ct.join(qe)))}function ae(st,Qe,Oe){const ct=me(st,Qe);Oe=Oe.trim();const Wt=ct.filter(rn=>rn!==Oe);Wt.length?st.setAttribute(Qe,Wt.join(qe)):st.removeAttribute(Qe)}function me(st,Qe){return st.getAttribute(Qe)?.match(/\S+/g)??[]}const nt="cdk-describedby-message",At="cdk-describedby-host";let vt=0,Dt=(()=>{class st{constructor(Oe,ct){this._platform=ct,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+vt++,this._document=Oe,this._id=(0,y.WQX)(y.sZ2)+"-"+vt++}describe(Oe,ct,Wt){if(!this._canBeDescribed(Oe,ct))return;const rn=Zt(ct,Wt);"string"!=typeof ct?(Fn(ct,this._id),this._messageRegistry.set(rn,{messageElement:ct,referenceCount:0})):this._messageRegistry.has(rn)||this._createMessageElement(ct,Wt),this._isElementDescribedByMessage(Oe,rn)||this._addMessageReference(Oe,rn)}removeDescription(Oe,ct,Wt){if(!ct||!this._isElementNode(Oe))return;const rn=Zt(ct,Wt);if(this._isElementDescribedByMessage(Oe,rn)&&this._removeMessageReference(Oe,rn),"string"==typeof ct){const ai=this._messageRegistry.get(rn);ai&&0===ai.referenceCount&&this._deleteMessageElement(rn)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Oe=this._document.querySelectorAll(`[${At}="${this._id}"]`);for(let ct=0;ct0!=Wt.indexOf(nt));Oe.setAttribute("aria-describedby",ct.join(" "))}_addMessageReference(Oe,ct){const Wt=this._messageRegistry.get(ct);We(Oe,"aria-describedby",Wt.messageElement.id),Oe.setAttribute(At,this._id),Wt.referenceCount++}_removeMessageReference(Oe,ct){const Wt=this._messageRegistry.get(ct);Wt.referenceCount--,ae(Oe,"aria-describedby",Wt.messageElement.id),Oe.removeAttribute(At)}_isElementDescribedByMessage(Oe,ct){const Wt=me(Oe,"aria-describedby"),rn=this._messageRegistry.get(ct),ai=rn&&rn.messageElement.id;return!!ai&&-1!=Wt.indexOf(ai)}_canBeDescribed(Oe,ct){if(!this._isElementNode(Oe))return!1;if(ct&&"object"==typeof ct)return!0;const Wt=null==ct?"":`${ct}`.trim(),rn=Oe.getAttribute("aria-label");return!(!Wt||rn&&rn.trim()===Wt)}_isElementNode(Oe){return Oe.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(ct){return new(ct||st)(y.KVO(u.qQ),y.KVO(o.OD))};static#t=this.\u0275prov=y.jDH({token:st,factory:st.\u0275fac,providedIn:"root"})}return st})();function Zt(st,Qe){return"string"==typeof st?`${Qe||""}/${st}`:st}function Fn(st,Qe){st.id||(st.id=`${nt}-${Qe}-${vt++}`)}class _n{constructor(Qe,Oe){this._letterKeyStream=new L.B,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new L.B,this.selectedItem=this._selectedItem;const ct="number"==typeof Oe?.debounceInterval?Oe.debounceInterval:200;Oe?.skipPredicate&&(this._skipPredicateFn=Oe.skipPredicate),this.setItems(Qe),this._setupKeyHandler(ct)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(Qe){this._selectedItemIndex=Qe}setItems(Qe){this._items=Qe}handleKey(Qe){const Oe=Qe.keyCode;Qe.key&&1===Qe.key.length?this._letterKeyStream.next(Qe.key.toLocaleUpperCase()):(Oe>=P.A&&Oe<=P.Z||Oe>=P.f2&&Oe<=P.bn)&&this._letterKeyStream.next(String.fromCharCode(Oe))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(Qe){this._letterKeyStream.pipe((0,B.M)(Oe=>this._pressedLetters.push(Oe)),(0,F.B)(Qe),(0,ue.p)(()=>this._pressedLetters.length>0),(0,ge.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(Oe=>{for(let ct=1;ctct.disabled,this.tabOut=new L.B,this.change=new L.B,Qe instanceof y.rOR?this._itemChangesSubscription=Qe.changes.subscribe(ct=>this._itemsChanged(ct.toArray())):(0,y.Hps)(Qe)&&(this._effectRef=(0,y.QZP)(()=>this._itemsChanged(Qe()),{injector:Oe}))}skipPredicate(Qe){return this._skipPredicateFn=Qe,this}withWrap(Qe=!0){return this._wrap=Qe,this}withVerticalOrientation(Qe=!0){return this._vertical=Qe,this}withHorizontalOrientation(Qe){return this._horizontal=Qe,this}withAllowedModifierKeys(Qe){return this._allowedModifierKeys=Qe,this}withTypeAhead(Qe=200){this._typeaheadSubscription.unsubscribe();const Oe=this._getItemsArray();return this._typeahead=new _n(Oe,{debounceInterval:"number"==typeof Qe?Qe:void 0,skipPredicate:ct=>this._skipPredicateFn(ct)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(ct=>{this.setActiveItem(ct)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(Qe=!0){return this._homeAndEnd=Qe,this}withPageUpDown(Qe=!0,Oe=10){return this._pageUpAndDown={enabled:Qe,delta:Oe},this}setActiveItem(Qe){const Oe=this._activeItem;this.updateActiveItem(Qe),this._activeItem!==Oe&&this.change.next(this._activeItemIndex)}onKeydown(Qe){const Oe=Qe.keyCode,Wt=["altKey","ctrlKey","metaKey","shiftKey"].every(rn=>!Qe[rn]||this._allowedModifierKeys.indexOf(rn)>-1);switch(Oe){case P.wn:return void this.tabOut.next();case P.n6:if(this._vertical&&Wt){this.setNextItemActive();break}return;case P.i7:if(this._vertical&&Wt){this.setPreviousItemActive();break}return;case P.LE:if(this._horizontal&&Wt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case P.UQ:if(this._horizontal&&Wt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case P.yZ:if(this._homeAndEnd&&Wt){this.setFirstItemActive();break}return;case P.Kp:if(this._homeAndEnd&&Wt){this.setLastItemActive();break}return;case P.w_:if(this._pageUpAndDown.enabled&&Wt){const rn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(rn>0?rn:0,1);break}return;case P.dB:if(this._pageUpAndDown.enabled&&Wt){const rn=this._activeItemIndex+this._pageUpAndDown.delta,ai=this._getItemsArray().length;this._setActiveItemByIndex(rn-1&&Oe!==this._activeItemIndex&&(this._activeItemIndex=Oe,this._typeahead?.setCurrentSelectedItemIndex(Oe))}}}class _e extends pi{setActiveItem(Qe){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Qe),this.activeItem&&this.activeItem.setActiveStyles()}}class Ae extends pi{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Qe){return this._origin=Qe,this}setActiveItem(Qe){super.setActiveItem(Qe),this.activeItem&&this.activeItem.focus(this._origin)}}let ie=(()=>{class st{constructor(Oe){this._platform=Oe}isDisabled(Oe){return Oe.hasAttribute("disabled")}isVisible(Oe){return function le(st){return!!(st.offsetWidth||st.offsetHeight||"function"==typeof st.getClientRects&&st.getClientRects().length)}(Oe)&&"visible"===getComputedStyle(Oe).visibility}isTabbable(Oe){if(!this._platform.isBrowser)return!1;const ct=function ve(st){try{return st.frameElement}catch{return null}}(function qt(st){return st.ownerDocument&&st.ownerDocument.defaultView||window}(Oe));if(ct&&(-1===Rt(ct)||!this.isVisible(ct)))return!1;let Wt=Oe.nodeName.toLowerCase(),rn=Rt(Oe);return Oe.hasAttribute("contenteditable")?-1!==rn:!("iframe"===Wt||"object"===Wt||this._platform.WEBKIT&&this._platform.IOS&&!function kn(st){let Qe=st.nodeName.toLowerCase(),Oe="input"===Qe&&st.type;return"text"===Oe||"password"===Oe||"select"===Qe||"textarea"===Qe}(Oe))&&("audio"===Wt?!!Oe.hasAttribute("controls")&&-1!==rn:"video"===Wt?-1!==rn&&(null!==rn||this._platform.FIREFOX||Oe.hasAttribute("controls")):Oe.tabIndex>=0)}isFocusable(Oe,ct){return function hi(st){return!function dt(st){return function it(st){return"input"==st.nodeName.toLowerCase()}(st)&&"hidden"==st.type}(st)&&(function Ce(st){let Qe=st.nodeName.toLowerCase();return"input"===Qe||"select"===Qe||"button"===Qe||"textarea"===Qe}(st)||function un(st){return function It(st){return"a"==st.nodeName.toLowerCase()}(st)&&st.hasAttribute("href")}(st)||st.hasAttribute("contenteditable")||Ft(st))}(Oe)&&!this.isDisabled(Oe)&&(ct?.ignoreVisibility||this.isVisible(Oe))}static#e=this.\u0275fac=function(ct){return new(ct||st)(y.KVO(o.OD))};static#t=this.\u0275prov=y.jDH({token:st,factory:st.\u0275fac,providedIn:"root"})}return st})();function Ft(st){if(!st.hasAttribute("tabindex")||void 0===st.tabIndex)return!1;let Qe=st.getAttribute("tabindex");return!(!Qe||isNaN(parseInt(Qe,10)))}function Rt(st){if(!Ft(st))return null;const Qe=parseInt(st.getAttribute("tabindex")||"",10);return isNaN(Qe)?-1:Qe}class we{get enabled(){return this._enabled}set enabled(Qe){this._enabled=Qe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Qe,this._startAnchor),this._toggleAnchorTabIndex(Qe,this._endAnchor))}constructor(Qe,Oe,ct,Wt,rn=!1,ai){this._element=Qe,this._checker=Oe,this._ngZone=ct,this._document=Wt,this._injector=ai,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,rn||this.attachAnchors()}destroy(){const Qe=this._startAnchor,Oe=this._endAnchor;Qe&&(Qe.removeEventListener("focus",this.startAnchorListener),Qe.remove()),Oe&&(Oe.removeEventListener("focus",this.endAnchorListener),Oe.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Qe){return new Promise(Oe=>{this._executeOnStable(()=>Oe(this.focusInitialElement(Qe)))})}focusFirstTabbableElementWhenReady(Qe){return new Promise(Oe=>{this._executeOnStable(()=>Oe(this.focusFirstTabbableElement(Qe)))})}focusLastTabbableElementWhenReady(Qe){return new Promise(Oe=>{this._executeOnStable(()=>Oe(this.focusLastTabbableElement(Qe)))})}_getRegionBoundary(Qe){const Oe=this._element.querySelectorAll(`[cdk-focus-region-${Qe}], [cdkFocusRegion${Qe}], [cdk-focus-${Qe}]`);return"start"==Qe?Oe.length?Oe[0]:this._getFirstTabbableElement(this._element):Oe.length?Oe[Oe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Qe){const Oe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Oe){if(!this._checker.isFocusable(Oe)){const ct=this._getFirstTabbableElement(Oe);return ct?.focus(Qe),!!ct}return Oe.focus(Qe),!0}return this.focusFirstTabbableElement(Qe)}focusFirstTabbableElement(Qe){const Oe=this._getRegionBoundary("start");return Oe&&Oe.focus(Qe),!!Oe}focusLastTabbableElement(Qe){const Oe=this._getRegionBoundary("end");return Oe&&Oe.focus(Qe),!!Oe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Qe){if(this._checker.isFocusable(Qe)&&this._checker.isTabbable(Qe))return Qe;const Oe=Qe.children;for(let ct=0;ct=0;ct--){const Wt=Oe[ct].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Oe[ct]):null;if(Wt)return Wt}return null}_createAnchor(){const Qe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Qe),Qe.classList.add("cdk-visually-hidden"),Qe.classList.add("cdk-focus-trap-anchor"),Qe.setAttribute("aria-hidden","true"),Qe}_toggleAnchorTabIndex(Qe,Oe){Qe?Oe.setAttribute("tabindex","0"):Oe.removeAttribute("tabindex")}toggleAnchors(Qe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Qe,this._startAnchor),this._toggleAnchorTabIndex(Qe,this._endAnchor))}_executeOnStable(Qe){this._injector?(0,y.mal)(Qe,{injector:this._injector}):setTimeout(Qe)}}let tt=(()=>{class st{constructor(Oe,ct,Wt){this._checker=Oe,this._ngZone=ct,this._injector=(0,y.WQX)(y.zZn),this._document=Wt}create(Oe,ct=!1){return new we(Oe,this._checker,this._ngZone,this._document,ct,this._injector)}static#e=this.\u0275fac=function(ct){return new(ct||st)(y.KVO(ie),y.KVO(y.SKi),y.KVO(u.qQ))};static#t=this.\u0275prov=y.jDH({token:st,factory:st.\u0275fac,providedIn:"root"})}return st})();function $(st){return 0===st.buttons||0===st.detail}function ce(st){const Qe=st.touches&&st.touches[0]||st.changedTouches&&st.changedTouches[0];return!(!Qe||-1!==Qe.identifier||null!=Qe.radiusX&&1!==Qe.radiusX||null!=Qe.radiusY&&1!==Qe.radiusY)}const he=new y.nKC("cdk-input-modality-detector-options"),et={ignoreKeys:[P.A$,P.W3,P.eg,P.Ge,P.FX]},Bt=(0,o.BQ)({passive:!0,capture:!0});let Vt=(()=>{class st{get mostRecentModality(){return this._modality.value}constructor(Oe,ct,Wt,rn){this._platform=Oe,this._mostRecentTarget=null,this._modality=new V.t(null),this._lastTouchMs=0,this._onKeydown=ai=>{this._options?.ignoreKeys?.some(yr=>yr===ai.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,o.Fb)(ai))},this._onMousedown=ai=>{Date.now()-this._lastTouchMs<650||(this._modality.next($(ai)?"keyboard":"mouse"),this._mostRecentTarget=(0,o.Fb)(ai))},this._onTouchstart=ai=>{ce(ai)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,o.Fb)(ai))},this._options={...et,...rn},this.modalityDetected=this._modality.pipe((0,Re.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ke.F)()),Oe.isBrowser&&ct.runOutsideAngular(()=>{Wt.addEventListener("keydown",this._onKeydown,Bt),Wt.addEventListener("mousedown",this._onMousedown,Bt),Wt.addEventListener("touchstart",this._onTouchstart,Bt)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Bt),document.removeEventListener("mousedown",this._onMousedown,Bt),document.removeEventListener("touchstart",this._onTouchstart,Bt))}static#e=this.\u0275fac=function(ct){return new(ct||st)(y.KVO(o.OD),y.KVO(y.SKi),y.KVO(u.qQ),y.KVO(he,8))};static#t=this.\u0275prov=y.jDH({token:st,factory:st.\u0275fac,providedIn:"root"})}return st})();const Mn=new y.nKC("liveAnnouncerElement",{providedIn:"root",factory:function Ln(){return null}}),Ei=new y.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Jt=0,En=(()=>{class st{constructor(Oe,ct,Wt,rn){this._ngZone=ct,this._defaultOptions=rn,this._document=Wt,this._liveElement=Oe||this._createLiveElement()}announce(Oe,...ct){const Wt=this._defaultOptions;let rn,ai;return 1===ct.length&&"number"==typeof ct[0]?ai=ct[0]:[rn,ai]=ct,this.clear(),clearTimeout(this._previousTimeout),rn||(rn=Wt&&Wt.politeness?Wt.politeness:"polite"),null==ai&&Wt&&(ai=Wt.duration),this._liveElement.setAttribute("aria-live",rn),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(yr=>this._currentResolve=yr)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Oe,"number"==typeof ai&&(this._previousTimeout=setTimeout(()=>this.clear(),ai)),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 Oe="cdk-live-announcer-element",ct=this._document.getElementsByClassName(Oe),Wt=this._document.createElement("div");for(let rn=0;rn .cdk-overlay-container [aria-modal="true"]');for(let Wt=0;Wt{class st{constructor(Oe,ct,Wt,rn,ai){this._ngZone=Oe,this._platform=ct,this._inputModalityDetector=Wt,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new L.B,this._rootNodeFocusAndBlurListener=yr=>{for(let Ri=(0,o.Fb)(yr);Ri;Ri=Ri.parentElement)"focus"===yr.type?this._onFocus(yr,Ri):this._onBlur(yr,Ri)},this._document=rn,this._detectionMode=ai?.detectionMode||Be.IMMEDIATE}monitor(Oe,ct=!1){const Wt=(0,gt.i8)(Oe);if(!this._platform.isBrowser||1!==Wt.nodeType)return(0,oe.of)();const rn=(0,o.KT)(Wt)||this._getDocument(),ai=this._elementInfo.get(Wt);if(ai)return ct&&(ai.checkChildren=!0),ai.subject;const yr={checkChildren:ct,subject:new L.B,rootNode:rn};return this._elementInfo.set(Wt,yr),this._registerGlobalListeners(yr),yr.subject}stopMonitoring(Oe){const ct=(0,gt.i8)(Oe),Wt=this._elementInfo.get(ct);Wt&&(Wt.subject.complete(),this._setClasses(ct),this._elementInfo.delete(ct),this._removeGlobalListeners(Wt))}focusVia(Oe,ct,Wt){const rn=(0,gt.i8)(Oe);rn===this._getDocument().activeElement?this._getClosestElementsInfo(rn).forEach(([yr,xr])=>this._originChanged(yr,ct,xr)):(this._setOrigin(ct),"function"==typeof rn.focus&&rn.focus(Wt))}ngOnDestroy(){this._elementInfo.forEach((Oe,ct)=>this.stopMonitoring(ct))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Oe){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Oe)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Oe&&this._isLastInteractionFromInputLabel(Oe)?"mouse":"program"}_shouldBeAttributedToTouch(Oe){return this._detectionMode===Be.EVENTUAL||!!Oe?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Oe,ct){Oe.classList.toggle("cdk-focused",!!ct),Oe.classList.toggle("cdk-touch-focused","touch"===ct),Oe.classList.toggle("cdk-keyboard-focused","keyboard"===ct),Oe.classList.toggle("cdk-mouse-focused","mouse"===ct),Oe.classList.toggle("cdk-program-focused","program"===ct)}_setOrigin(Oe,ct=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Oe,this._originFromTouchInteraction="touch"===Oe&&ct,this._detectionMode===Be.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Oe,ct){const Wt=this._elementInfo.get(ct),rn=(0,o.Fb)(Oe);!Wt||!Wt.checkChildren&&ct!==rn||this._originChanged(ct,this._getFocusOrigin(rn),Wt)}_onBlur(Oe,ct){const Wt=this._elementInfo.get(ct);!Wt||Wt.checkChildren&&Oe.relatedTarget instanceof Node&&ct.contains(Oe.relatedTarget)||(this._setClasses(ct),this._emitOrigin(Wt,null))}_emitOrigin(Oe,ct){Oe.subject.observers.length&&this._ngZone.run(()=>Oe.subject.next(ct))}_registerGlobalListeners(Oe){if(!this._platform.isBrowser)return;const ct=Oe.rootNode,Wt=this._rootNodeFocusListenerCount.get(ct)||0;Wt||this._ngZone.runOutsideAngular(()=>{ct.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ke),ct.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ke)}),this._rootNodeFocusListenerCount.set(ct,Wt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,te.Q)(this._stopInputModalityDetector)).subscribe(rn=>{this._setOrigin(rn,!0)}))}_removeGlobalListeners(Oe){const ct=Oe.rootNode;if(this._rootNodeFocusListenerCount.has(ct)){const Wt=this._rootNodeFocusListenerCount.get(ct);Wt>1?this._rootNodeFocusListenerCount.set(ct,Wt-1):(ct.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ke),ct.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ke),this._rootNodeFocusListenerCount.delete(ct))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Oe,ct,Wt){this._setClasses(Oe,ct),this._emitOrigin(Wt,ct),this._lastFocusOrigin=ct}_getClosestElementsInfo(Oe){const ct=[];return this._elementInfo.forEach((Wt,rn)=>{(rn===Oe||Wt.checkChildren&&rn.contains(Oe))&&ct.push([rn,Wt])}),ct}_isLastInteractionFromInputLabel(Oe){const{_mostRecentTarget:ct,mostRecentModality:Wt}=this._inputModalityDetector;if("mouse"!==Wt||!ct||ct===Oe||"INPUT"!==Oe.nodeName&&"TEXTAREA"!==Oe.nodeName||Oe.disabled)return!1;const rn=Oe.labels;if(rn)for(let ai=0;ai{class st{constructor(Oe,ct){this._platform=Oe,this._document=ct,this._breakpointSubscription=(0,y.WQX)(je.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return vi.NONE;const Oe=this._document.createElement("div");Oe.style.backgroundColor="rgb(1,2,3)",Oe.style.position="absolute",this._document.body.appendChild(Oe);const ct=this._document.defaultView||window,Wt=ct&&ct.getComputedStyle?ct.getComputedStyle(Oe):null,rn=(Wt&&Wt.backgroundColor||"").replace(/ /g,"");switch(Oe.remove(),rn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return vi.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return vi.BLACK_ON_WHITE}return vi.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Oe=this._document.body.classList;Oe.remove(Et,Ti,nn),this._hasCheckedHighContrastMode=!0;const ct=this.getHighContrastMode();ct===vi.BLACK_ON_WHITE?Oe.add(Et,Ti):ct===vi.WHITE_ON_BLACK&&Oe.add(Et,nn)}}static#e=this.\u0275fac=function(ct){return new(ct||st)(y.KVO(o.OD),y.KVO(u.qQ))};static#t=this.\u0275prov=y.jDH({token:st,factory:st.\u0275fac,providedIn:"root"})}return st})(),Lt=(()=>{class st{constructor(Oe){Oe._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(ct){return new(ct||st)(y.KVO(at))};static#t=this.\u0275mod=y.$C({type:st});static#n=this.\u0275inj=y.G2t({imports:[Ze.w5]})}return st})()},8203:(tn,Ne,v)=>{"use strict";v.d(Ne,{dS:()=>oe,jI:()=>P});var u=v(4438),y=v(177);const o=new u.nKC("cdk-dir-doc",{providedIn:"root",factory:function L(){return(0,u.WQX)(y.qQ)}}),G=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let oe=(()=>{class B{constructor(ue){this.value="ltr",this.change=new u.bkB,ue&&(this.value=function ee(B){const F=B?.toLowerCase()||"";return"auto"===F&&typeof navigator<"u"&&navigator?.language?G.test(navigator.language)?"rtl":"ltr":"rtl"===F?"rtl":"ltr"}((ue.body?ue.body.dir:null)||(ue.documentElement?ue.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(ge){return new(ge||B)(u.KVO(o,8))};static#t=this.\u0275prov=u.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})(),P=(()=>{class B{static#e=this.\u0275fac=function(ge){return new(ge||B)};static#t=this.\u0275mod=u.$C({type:B});static#n=this.\u0275inj=u.G2t({})}return B})()},4085:(tn,Ne,v)=>{"use strict";v.d(Ne,{FG:()=>G,OE:()=>o,a1:()=>ee,he:()=>y,i8:()=>oe});var u=v(4438);function y(P){return null!=P&&"false"!=`${P}`}function o(P,B=0){return function L(P){return!isNaN(parseFloat(P))&&!isNaN(Number(P))}(P)?Number(P):2===arguments.length?B:0}function G(P){return Array.isArray(P)?P:[P]}function ee(P){return null==P?"":"string"==typeof P?P:`${P}px`}function oe(P){return P instanceof u.aKT?P.nativeElement:P}},5024:(tn,Ne,v)=>{"use strict";v.d(Ne,{CB:()=>ue,zP:()=>Ee}),v(4402),v(7673);var o=v(1413),L=v(4438);class ue{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(ke=!1,te,be=!0,Ze){this._multiple=ke,this._emitChanges=be,this.compareWith=Ze,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.B,te&&te.length&&(ke?te.forEach(gt=>this._markSelected(gt)):this._markSelected(te[0]),this._selectedToEmit.length=0)}select(...ke){this._verifyValueAssignment(ke),ke.forEach(be=>this._markSelected(be));const te=this._hasQueuedChanges();return this._emitChangeEvent(),te}deselect(...ke){this._verifyValueAssignment(ke),ke.forEach(be=>this._unmarkSelected(be));const te=this._hasQueuedChanges();return this._emitChangeEvent(),te}setSelection(...ke){this._verifyValueAssignment(ke);const te=this.selected,be=new Set(ke);ke.forEach(gt=>this._markSelected(gt)),te.filter(gt=>!be.has(this._getConcreteValue(gt,be))).forEach(gt=>this._unmarkSelected(gt));const Ze=this._hasQueuedChanges();return this._emitChangeEvent(),Ze}toggle(ke){return this.isSelected(ke)?this.deselect(ke):this.select(ke)}clear(ke=!0){this._unmarkAll();const te=this._hasQueuedChanges();return ke&&this._emitChangeEvent(),te}isSelected(ke){return this._selection.has(this._getConcreteValue(ke))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(ke){this._multiple&&this.selected&&this._selected.sort(ke)}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(ke){ke=this._getConcreteValue(ke),this.isSelected(ke)||(this._multiple||this._unmarkAll(),this.isSelected(ke)||this._selection.add(ke),this._emitChanges&&this._selectedToEmit.push(ke))}_unmarkSelected(ke){ke=this._getConcreteValue(ke),this.isSelected(ke)&&(this._selection.delete(ke),this._emitChanges&&this._deselectedToEmit.push(ke))}_unmarkAll(){this.isEmpty()||this._selection.forEach(ke=>this._unmarkSelected(ke))}_verifyValueAssignment(ke){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(ke,te){if(this.compareWith){te=te??this._selection;for(let be of te)if(this.compareWith(ke,be))return be;return ke}return ke}}let Ee=(()=>{class Re{constructor(){this._listeners=[]}notify(te,be){for(let Ze of this._listeners)Ze(te,be)}listen(te){return this._listeners.push(te),()=>{this._listeners=this._listeners.filter(be=>te!==be)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(be){return new(be||Re)};static#t=this.\u0275prov=L.jDH({token:Re,factory:Re.\u0275fac,providedIn:"root"})}return Re})()},7336:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>Ie,A$:()=>V,FX:()=>ee,Fm:()=>G,Ge:()=>T,Kp:()=>Re,LE:()=>Ze,UQ:()=>te,W3:()=>oe,Z:()=>Q,_f:()=>F,bn:()=>_n,dB:()=>Ee,eg:()=>Te,f2:()=>me,i7:()=>be,n6:()=>gt,rp:()=>se,t6:()=>ue,w_:()=>ge,wn:()=>o,yZ:()=>ke});const o=9,G=13,ee=16,oe=17,V=18,F=27,ue=32,ge=33,Ee=34,Re=35,ke=36,te=37,be=38,Ze=39,gt=40,me=48,_n=57,Ie=65,Q=90,T=91,Te=224;function se($e,...pt){return pt.length?pt.some(lt=>$e[lt]):$e.altKey||$e.shiftKey||$e.ctrlKey||$e.metaKey}},9327:(tn,Ne,v)=>{"use strict";v.d(Ne,{QP:()=>gt,Rp:()=>qe});var u=v(4438),y=v(4085),o=v(1413),L=v(4572),G=v(8793),ee=v(1985),oe=v(6697),V=v(5245),P=v(152),B=v(6354),F=v(9172),ue=v(6977),ge=v(6860);const Re=new Set;let ke,te=(()=>{class We{constructor(me,Le){this._platform=me,this._nonce=Le,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ze}matchMedia(me){return(this._platform.WEBKIT||this._platform.BLINK)&&function be(We,ae){if(!Re.has(We))try{ke||(ke=document.createElement("style"),ae&&ke.setAttribute("nonce",ae),ke.setAttribute("type","text/css"),document.head.appendChild(ke)),ke.sheet&&(ke.sheet.insertRule(`@media ${We} {body{ }}`,0),Re.add(We))}catch(me){console.error(me)}}(me,this._nonce),this._matchMedia(me)}static#e=this.\u0275fac=function(Le){return new(Le||We)(u.KVO(ge.OD),u.KVO(u.BIS,8))};static#t=this.\u0275prov=u.jDH({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function Ze(We){return{matches:"all"===We||""===We,media:We,addListener:()=>{},removeListener:()=>{}}}let gt=(()=>{class We{constructor(me,Le){this._mediaMatcher=me,this._zone=Le,this._queries=new Map,this._destroySubject=new o.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(me){return je((0,y.FG)(me)).some(nt=>this._registerQuery(nt).mql.matches)}observe(me){const nt=je((0,y.FG)(me)).map(vt=>this._registerQuery(vt).observable);let At=(0,L.z)(nt);return At=(0,G.x)(At.pipe((0,oe.s)(1)),At.pipe((0,V.i)(1),(0,P.B)(0))),At.pipe((0,B.T)(vt=>{const Dt={matches:!1,breakpoints:{}};return vt.forEach(({matches:Zt,query:Fn})=>{Dt.matches=Dt.matches||Zt,Dt.breakpoints[Fn]=Zt}),Dt}))}_registerQuery(me){if(this._queries.has(me))return this._queries.get(me);const Le=this._mediaMatcher.matchMedia(me),At={observable:new ee.c(vt=>{const Dt=Zt=>this._zone.run(()=>vt.next(Zt));return Le.addListener(Dt),()=>{Le.removeListener(Dt)}}).pipe((0,F.Z)(Le),(0,B.T)(({matches:vt})=>({query:me,matches:vt})),(0,ue.Q)(this._destroySubject)),mql:Le};return this._queries.set(me,At),At}static#e=this.\u0275fac=function(Le){return new(Le||We)(u.KVO(te),u.KVO(u.SKi))};static#t=this.\u0275prov=u.jDH({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function je(We){return We.map(ae=>ae.split(",")).reduce((ae,me)=>ae.concat(me)).map(ae=>ae.trim())}const qe={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},2318:(tn,Ne,v)=>{"use strict";v.d(Ne,{w5:()=>ee});var u=v(4438);let o=(()=>{class oe{create(P){return typeof MutationObserver>"u"?null:new MutationObserver(P)}static#e=this.\u0275fac=function(B){return new(B||oe)};static#t=this.\u0275prov=u.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})(),ee=(()=>{class oe{static#e=this.\u0275fac=function(B){return new(B||oe)};static#t=this.\u0275mod=u.$C({type:oe});static#n=this.\u0275inj=u.G2t({providers:[o]})}return oe})()},7987:(tn,Ne,v)=>{"use strict";v.d(Ne,{$Q:()=>it,Sf:()=>_n,Tv:()=>We,WB:()=>It,hJ:()=>Ce,rR:()=>ae,yY:()=>pi,z_:()=>kn});var u=v(5542),y=v(177),o=v(4438),L=v(4085),G=v(6860),ee=v(5964),oe=v(6977),V=v(7048),P=v(8203),B=v(6939),F=v(1413),ue=v(8359),ge=v(7786),Ee=v(7336);const Re=(0,G.CZ)();class ke{constructor(we,tt){this._viewportRuler=we,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=tt}attach(){}enable(){if(this._canBeEnabled()){const we=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=we.style.left||"",this._previousHTMLStyles.top=we.style.top||"",we.style.left=(0,L.a1)(-this._previousScrollPosition.left),we.style.top=(0,L.a1)(-this._previousScrollPosition.top),we.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const we=this._document.documentElement,rt=we.style,bt=this._document.body.style,on=rt.scrollBehavior||"",Q=bt.scrollBehavior||"";this._isEnabled=!1,rt.left=this._previousHTMLStyles.left,rt.top=this._previousHTMLStyles.top,we.classList.remove("cdk-global-scrollblock"),Re&&(rt.scrollBehavior=bt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Re&&(rt.scrollBehavior=on,bt.scrollBehavior=Q)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const tt=this._document.body,rt=this._viewportRuler.getViewportSize();return tt.scrollHeight>rt.height||tt.scrollWidth>rt.width}}class be{constructor(we,tt,rt,bt){this._scrollDispatcher=we,this._ngZone=tt,this._viewportRuler=rt,this._config=bt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(we){this._overlayRef=we}enable(){if(this._scrollSubscription)return;const we=this._scrollDispatcher.scrolled(0).pipe((0,ee.p)(tt=>!tt||!this._overlayRef.overlayElement.contains(tt.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=we.subscribe(()=>{const tt=this._viewportRuler.getViewportScrollPosition().top;Math.abs(tt-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=we.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Ze{enable(){}disable(){}attach(){}}function gt(qt,we){return we.some(tt=>qt.bottomtt.bottom||qt.righttt.right)}function je(qt,we){return we.some(tt=>qt.toptt.bottom||qt.lefttt.right)}class qe{constructor(we,tt,rt,bt){this._scrollDispatcher=we,this._viewportRuler=tt,this._ngZone=rt,this._config=bt,this._scrollSubscription=null}attach(we){this._overlayRef=we}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 tt=this._overlayRef.overlayElement.getBoundingClientRect(),{width:rt,height:bt}=this._viewportRuler.getViewportSize();gt(tt,[{width:rt,height:bt,bottom:bt,right:rt,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 We=(()=>{class qt{constructor(tt,rt,bt,on){this._scrollDispatcher=tt,this._viewportRuler=rt,this._ngZone=bt,this.noop=()=>new Ze,this.close=Q=>new be(this._scrollDispatcher,this._ngZone,this._viewportRuler,Q),this.block=()=>new ke(this._viewportRuler,this._document),this.reposition=Q=>new qe(this._scrollDispatcher,this._viewportRuler,this._ngZone,Q),this._document=on}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.KVO(u.R),o.KVO(u.Xj),o.KVO(o.SKi),o.KVO(y.qQ))};static#t=this.\u0275prov=o.jDH({token:qt,factory:qt.\u0275fac,providedIn:"root"})}return qt})();class ae{constructor(we){if(this.scrollStrategy=new Ze,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,we){const tt=Object.keys(we);for(const rt of tt)void 0!==we[rt]&&(this[rt]=we[rt])}}}class nt{constructor(we,tt){this.connectionPair=we,this.scrollableViewProperties=tt}}let Dt=(()=>{class qt{constructor(tt){this._attachedOverlays=[],this._document=tt}ngOnDestroy(){this.detach()}add(tt){this.remove(tt),this._attachedOverlays.push(tt)}remove(tt){const rt=this._attachedOverlays.indexOf(tt);rt>-1&&this._attachedOverlays.splice(rt,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.KVO(y.qQ))};static#t=this.\u0275prov=o.jDH({token:qt,factory:qt.\u0275fac,providedIn:"root"})}return qt})(),Zt=(()=>{class qt extends Dt{constructor(tt,rt){super(tt),this._ngZone=rt,this._keydownListener=bt=>{const on=this._attachedOverlays;for(let Q=on.length-1;Q>-1;Q--)if(on[Q]._keydownEvents.observers.length>0){const T=on[Q]._keydownEvents;this._ngZone?this._ngZone.run(()=>T.next(bt)):T.next(bt);break}}}add(tt){super.add(tt),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.KVO(y.qQ),o.KVO(o.SKi,8))};static#t=this.\u0275prov=o.jDH({token:qt,factory:qt.\u0275fac,providedIn:"root"})}return qt})(),Fn=(()=>{class qt extends Dt{constructor(tt,rt,bt){super(tt),this._platform=rt,this._ngZone=bt,this._cursorStyleIsSet=!1,this._pointerDownListener=on=>{this._pointerDownEventTarget=(0,G.Fb)(on)},this._clickListener=on=>{const Q=(0,G.Fb)(on),T="click"===on.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Q;this._pointerDownEventTarget=null;const N=this._attachedOverlays.slice();for(let $=N.length-1;$>-1;$--){const ce=N[$];if(ce._outsidePointerEvents.observers.length<1||!ce.hasAttached())continue;if(Vn(ce.overlayElement,Q)||Vn(ce.overlayElement,T))break;const he=ce._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>he.next(on)):he.next(on)}}}add(tt){if(super.add(tt),!this._isAttached){const rt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(rt)):this._addEventListeners(rt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=rt.style.cursor,rt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const tt=this._document.body;tt.removeEventListener("pointerdown",this._pointerDownListener,!0),tt.removeEventListener("click",this._clickListener,!0),tt.removeEventListener("auxclick",this._clickListener,!0),tt.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(tt.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(tt){tt.addEventListener("pointerdown",this._pointerDownListener,!0),tt.addEventListener("click",this._clickListener,!0),tt.addEventListener("auxclick",this._clickListener,!0),tt.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.KVO(y.qQ),o.KVO(G.OD),o.KVO(o.SKi,8))};static#t=this.\u0275prov=o.jDH({token:qt,factory:qt.\u0275fac,providedIn:"root"})}return qt})();function Vn(qt,we){const tt=typeof ShadowRoot<"u"&&ShadowRoot;let rt=we;for(;rt;){if(rt===qt)return!0;rt=tt&&rt instanceof ShadowRoot?rt.host:rt.parentNode}return!1}let _n=(()=>{class qt{constructor(tt,rt){this._platform=rt,this._document=tt}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const tt="cdk-overlay-container";if(this._platform.isBrowser||(0,G.v8)()){const bt=this._document.querySelectorAll(`.${tt}[platform="server"], .${tt}[platform="test"]`);for(let on=0;onthis._backdropClick.next(et),this._backdropTransitionendHandler=et=>{this._disposeBackdrop(et.target)},this._keydownEvents=new F.B,this._outsidePointerEvents=new F.B,this._renders=new F.B,bt.scrollStrategy&&(this._scrollStrategy=bt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=bt.positionStrategy,this._afterRenderRef=(0,o.O8t)(()=>(0,o.Tzd)(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(we){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const tt=this._portalOutlet.attach(we);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,o.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof tt?.onDestroy&&tt.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),tt}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const we=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),we}dispose(){const we=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,we&&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(we){we!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=we,this.hasAttached()&&(we.attach(this),this.updatePosition()))}updateSize(we){this._config={...this._config,...we},this._updateElementSize()}setDirection(we){this._config={...this._config,direction:we},this._updateElementDirection()}addPanelClass(we){this._pane&&this._toggleClasses(this._pane,we,!0)}removePanelClass(we){this._pane&&this._toggleClasses(this._pane,we,!1)}getDirection(){const we=this._config.direction;return we?"string"==typeof we?we:we.value:"ltr"}updateScrollStrategy(we){we!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=we,this.hasAttached()&&(we.attach(this),we.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const we=this._pane.style;we.width=(0,L.a1)(this._config.width),we.height=(0,L.a1)(this._config.height),we.minWidth=(0,L.a1)(this._config.minWidth),we.minHeight=(0,L.a1)(this._config.minHeight),we.maxWidth=(0,L.a1)(this._config.maxWidth),we.maxHeight=(0,L.a1)(this._config.maxHeight)}_togglePointerEvents(we){this._pane.style.pointerEvents=we?"":"none"}_attachBackdrop(){const we="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(we)})}):this._backdropElement.classList.add(we)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const we=this._backdropElement;if(we){if(this._animationsDisabled)return void this._disposeBackdrop(we);we.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{we.addEventListener("transitionend",this._backdropTransitionendHandler)}),we.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(we)},500))}}_toggleClasses(we,tt,rt){const bt=(0,L.FG)(tt||[]).filter(on=>!!on);bt.length&&(rt?we.classList.add(...bt):we.classList.remove(...bt))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const we=this._renders.pipe((0,oe.Q)((0,ge.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()),we.unsubscribe())})})}_disposeScrollStrategy(){const we=this._scrollStrategy;we&&(we.disable(),we.detach&&we.detach())}_disposeBackdrop(we){we&&(we.removeEventListener("click",this._backdropClickHandler),we.removeEventListener("transitionend",this._backdropTransitionendHandler),we.remove(),this._backdropElement===we&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const _e="cdk-overlay-connected-position-bounding-box",Ae=/([A-Za-z%]+)$/;class J{get positions(){return this._preferredPositions}constructor(we,tt,rt,bt,on){this._viewportRuler=tt,this._document=rt,this._platform=bt,this._overlayContainer=on,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new F.B,this._resizeSubscription=ue.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(we)}attach(we){this._validatePositions(),we.hostElement.classList.add(_e),this._overlayRef=we,this._boundingBox=we.hostElement,this._pane=we.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 we=this._originRect,tt=this._overlayRect,rt=this._viewportRect,bt=this._containerRect,on=[];let Q;for(let T of this._preferredPositions){let N=this._getOriginPoint(we,bt,T),$=this._getOverlayPoint(N,tt,T),ce=this._getOverlayFit($,tt,rt,T);if(ce.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(T,N);this._canFitWithFlexibleDimensions(ce,$,rt)?on.push({position:T,origin:N,overlayRect:tt,boundingBoxRect:this._calculateBoundingBoxRect(N,T)}):(!Q||Q.overlayFit.visibleAreaN&&(N=ce,T=$)}return this._isPushed=!1,void this._applyPosition(T.position,T.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Q.position,Q.originPoint);this._applyPosition(Q.position,Q.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ie(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(_e),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const we=this._lastPosition;if(we){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const tt=this._getOriginPoint(this._originRect,this._containerRect,we);this._applyPosition(we,tt)}else this.apply()}withScrollableContainers(we){return this._scrollables=we,this}withPositions(we){return this._preferredPositions=we,-1===we.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(we){return this._viewportMargin=we,this}withFlexibleDimensions(we=!0){return this._hasFlexibleDimensions=we,this}withGrowAfterOpen(we=!0){return this._growAfterOpen=we,this}withPush(we=!0){return this._canPush=we,this}withLockedPosition(we=!0){return this._positionLocked=we,this}setOrigin(we){return this._origin=we,this}withDefaultOffsetX(we){return this._offsetX=we,this}withDefaultOffsetY(we){return this._offsetY=we,this}withTransformOriginOn(we){return this._transformOriginSelector=we,this}_getOriginPoint(we,tt,rt){let bt,on;if("center"==rt.originX)bt=we.left+we.width/2;else{const Q=this._isRtl()?we.right:we.left,T=this._isRtl()?we.left:we.right;bt="start"==rt.originX?Q:T}return tt.left<0&&(bt-=tt.left),on="center"==rt.originY?we.top+we.height/2:"top"==rt.originY?we.top:we.bottom,tt.top<0&&(on-=tt.top),{x:bt,y:on}}_getOverlayPoint(we,tt,rt){let bt,on;return bt="center"==rt.overlayX?-tt.width/2:"start"===rt.overlayX?this._isRtl()?-tt.width:0:this._isRtl()?0:-tt.width,on="center"==rt.overlayY?-tt.height/2:"top"==rt.overlayY?0:-tt.height,{x:we.x+bt,y:we.y+on}}_getOverlayFit(we,tt,rt,bt){const on=Pe(tt);let{x:Q,y:T}=we,N=this._getOffset(bt,"x"),$=this._getOffset(bt,"y");N&&(Q+=N),$&&(T+=$);let et=0-T,$t=T+on.height-rt.height,Bt=this._subtractOverflows(on.width,0-Q,Q+on.width-rt.width),Vt=this._subtractOverflows(on.height,et,$t),Mn=Bt*Vt;return{visibleArea:Mn,isCompletelyWithinViewport:on.width*on.height===Mn,fitsInViewportVertically:Vt===on.height,fitsInViewportHorizontally:Bt==on.width}}_canFitWithFlexibleDimensions(we,tt,rt){if(this._hasFlexibleDimensions){const bt=rt.bottom-tt.y,on=rt.right-tt.x,Q=Ot(this._overlayRef.getConfig().minHeight),T=Ot(this._overlayRef.getConfig().minWidth);return(we.fitsInViewportVertically||null!=Q&&Q<=bt)&&(we.fitsInViewportHorizontally||null!=T&&T<=on)}return!1}_pushOverlayOnScreen(we,tt,rt){if(this._previousPushAmount&&this._positionLocked)return{x:we.x+this._previousPushAmount.x,y:we.y+this._previousPushAmount.y};const bt=Pe(tt),on=this._viewportRect,Q=Math.max(we.x+bt.width-on.width,0),T=Math.max(we.y+bt.height-on.height,0),N=Math.max(on.top-rt.top-we.y,0),$=Math.max(on.left-rt.left-we.x,0);let ce=0,he=0;return ce=bt.width<=on.width?$||-Q:we.xBt&&!this._isInitialRender&&!this._growAfterOpen&&(Q=we.y-Bt/2)}if("end"===tt.overlayX&&!bt||"start"===tt.overlayX&&bt)et=rt.width-we.x+2*this._viewportMargin,ce=we.x-this._viewportMargin;else if("start"===tt.overlayX&&!bt||"end"===tt.overlayX&&bt)he=we.x,ce=rt.right-we.x;else{const $t=Math.min(rt.right-we.x+rt.left,we.x),Bt=this._lastBoundingBoxSize.width;ce=2*$t,he=we.x-$t,ce>Bt&&!this._isInitialRender&&!this._growAfterOpen&&(he=we.x-Bt/2)}return{top:Q,left:he,bottom:T,right:et,width:ce,height:on}}_setBoundingBoxStyles(we,tt){const rt=this._calculateBoundingBoxRect(we,tt);!this._isInitialRender&&!this._growAfterOpen&&(rt.height=Math.min(rt.height,this._lastBoundingBoxSize.height),rt.width=Math.min(rt.width,this._lastBoundingBoxSize.width));const bt={};if(this._hasExactPosition())bt.top=bt.left="0",bt.bottom=bt.right=bt.maxHeight=bt.maxWidth="",bt.width=bt.height="100%";else{const on=this._overlayRef.getConfig().maxHeight,Q=this._overlayRef.getConfig().maxWidth;bt.height=(0,L.a1)(rt.height),bt.top=(0,L.a1)(rt.top),bt.bottom=(0,L.a1)(rt.bottom),bt.width=(0,L.a1)(rt.width),bt.left=(0,L.a1)(rt.left),bt.right=(0,L.a1)(rt.right),bt.alignItems="center"===tt.overlayX?"center":"end"===tt.overlayX?"flex-end":"flex-start",bt.justifyContent="center"===tt.overlayY?"center":"bottom"===tt.overlayY?"flex-end":"flex-start",on&&(bt.maxHeight=(0,L.a1)(on)),Q&&(bt.maxWidth=(0,L.a1)(Q))}this._lastBoundingBoxSize=rt,Ie(this._boundingBox.style,bt)}_resetBoundingBoxStyles(){Ie(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ie(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(we,tt){const rt={},bt=this._hasExactPosition(),on=this._hasFlexibleDimensions,Q=this._overlayRef.getConfig();if(bt){const ce=this._viewportRuler.getViewportScrollPosition();Ie(rt,this._getExactOverlayY(tt,we,ce)),Ie(rt,this._getExactOverlayX(tt,we,ce))}else rt.position="static";let T="",N=this._getOffset(tt,"x"),$=this._getOffset(tt,"y");N&&(T+=`translateX(${N}px) `),$&&(T+=`translateY(${$}px)`),rt.transform=T.trim(),Q.maxHeight&&(bt?rt.maxHeight=(0,L.a1)(Q.maxHeight):on&&(rt.maxHeight="")),Q.maxWidth&&(bt?rt.maxWidth=(0,L.a1)(Q.maxWidth):on&&(rt.maxWidth="")),Ie(this._pane.style,rt)}_getExactOverlayY(we,tt,rt){let bt={top:"",bottom:""},on=this._getOverlayPoint(tt,this._overlayRect,we);return this._isPushed&&(on=this._pushOverlayOnScreen(on,this._overlayRect,rt)),"bottom"===we.overlayY?bt.bottom=this._document.documentElement.clientHeight-(on.y+this._overlayRect.height)+"px":bt.top=(0,L.a1)(on.y),bt}_getExactOverlayX(we,tt,rt){let Q,bt={left:"",right:""},on=this._getOverlayPoint(tt,this._overlayRect,we);return this._isPushed&&(on=this._pushOverlayOnScreen(on,this._overlayRect,rt)),Q=this._isRtl()?"end"===we.overlayX?"left":"right":"end"===we.overlayX?"right":"left","right"===Q?bt.right=this._document.documentElement.clientWidth-(on.x+this._overlayRect.width)+"px":bt.left=(0,L.a1)(on.x),bt}_getScrollVisibility(){const we=this._getOriginRect(),tt=this._pane.getBoundingClientRect(),rt=this._scrollables.map(bt=>bt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:je(we,rt),isOriginOutsideView:gt(we,rt),isOverlayClipped:je(tt,rt),isOverlayOutsideView:gt(tt,rt)}}_subtractOverflows(we,...tt){return tt.reduce((rt,bt)=>rt-Math.max(bt,0),we)}_getNarrowedViewportRect(){const we=this._document.documentElement.clientWidth,tt=this._document.documentElement.clientHeight,rt=this._viewportRuler.getViewportScrollPosition();return{top:rt.top+this._viewportMargin,left:rt.left+this._viewportMargin,right:rt.left+we-this._viewportMargin,bottom:rt.top+tt-this._viewportMargin,width:we-2*this._viewportMargin,height:tt-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(we,tt){return"x"===tt?null==we.offsetX?this._offsetX:we.offsetX:null==we.offsetY?this._offsetY:we.offsetY}_validatePositions(){}_addPanelClasses(we){this._pane&&(0,L.FG)(we).forEach(tt=>{""!==tt&&-1===this._appliedPanelClasses.indexOf(tt)&&(this._appliedPanelClasses.push(tt),this._pane.classList.add(tt))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(we=>{this._pane.classList.remove(we)}),this._appliedPanelClasses=[])}_getOriginRect(){const we=this._origin;if(we instanceof o.aKT)return we.nativeElement.getBoundingClientRect();if(we instanceof Element)return we.getBoundingClientRect();const tt=we.width||0,rt=we.height||0;return{top:we.y,bottom:we.y+rt,left:we.x,right:we.x+tt,height:rt,width:tt}}}function Ie(qt,we){for(let tt in we)we.hasOwnProperty(tt)&&(qt[tt]=we[tt]);return qt}function Ot(qt){if("number"!=typeof qt&&null!=qt){const[we,tt]=qt.split(Ae);return tt&&"px"!==tt?null:parseFloat(we)}return qt||null}function Pe(qt){return{top:Math.floor(qt.top),right:Math.floor(qt.right),bottom:Math.floor(qt.bottom),left:Math.floor(qt.left),width:Math.floor(qt.width),height:Math.floor(qt.height)}}const Me="cdk-global-overlay-wrapper";class ie{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(we){const tt=we.getConfig();this._overlayRef=we,this._width&&!tt.width&&we.updateSize({width:this._width}),this._height&&!tt.height&&we.updateSize({height:this._height}),we.hostElement.classList.add(Me),this._isDisposed=!1}top(we=""){return this._bottomOffset="",this._topOffset=we,this._alignItems="flex-start",this}left(we=""){return this._xOffset=we,this._xPosition="left",this}bottom(we=""){return this._topOffset="",this._bottomOffset=we,this._alignItems="flex-end",this}right(we=""){return this._xOffset=we,this._xPosition="right",this}start(we=""){return this._xOffset=we,this._xPosition="start",this}end(we=""){return this._xOffset=we,this._xPosition="end",this}width(we=""){return this._overlayRef?this._overlayRef.updateSize({width:we}):this._width=we,this}height(we=""){return this._overlayRef?this._overlayRef.updateSize({height:we}):this._height=we,this}centerHorizontally(we=""){return this.left(we),this._xPosition="center",this}centerVertically(we=""){return this.top(we),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const we=this._overlayRef.overlayElement.style,tt=this._overlayRef.hostElement.style,rt=this._overlayRef.getConfig(),{width:bt,height:on,maxWidth:Q,maxHeight:T}=rt,N=!("100%"!==bt&&"100vw"!==bt||Q&&"100%"!==Q&&"100vw"!==Q),$=!("100%"!==on&&"100vh"!==on||T&&"100%"!==T&&"100vh"!==T),ce=this._xPosition,he=this._xOffset,et="rtl"===this._overlayRef.getConfig().direction;let $t="",Bt="",Vt="";N?Vt="flex-start":"center"===ce?(Vt="center",et?Bt=he:$t=he):et?"left"===ce||"end"===ce?(Vt="flex-end",$t=he):("right"===ce||"start"===ce)&&(Vt="flex-start",Bt=he):"left"===ce||"start"===ce?(Vt="flex-start",$t=he):("right"===ce||"end"===ce)&&(Vt="flex-end",Bt=he),we.position=this._cssPosition,we.marginLeft=N?"0":$t,we.marginTop=$?"0":this._topOffset,we.marginBottom=this._bottomOffset,we.marginRight=N?"0":Bt,tt.justifyContent=Vt,tt.alignItems=$?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const we=this._overlayRef.overlayElement.style,tt=this._overlayRef.hostElement,rt=tt.style;tt.classList.remove(Me),rt.justifyContent=rt.alignItems=we.marginTop=we.marginBottom=we.marginLeft=we.marginRight=we.position="",this._overlayRef=null,this._isDisposed=!0}}let ve=(()=>{class qt{constructor(tt,rt,bt,on){this._viewportRuler=tt,this._document=rt,this._platform=bt,this._overlayContainer=on}global(){return new ie}flexibleConnectedTo(tt){return new J(tt,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.KVO(u.Xj),o.KVO(y.qQ),o.KVO(G.OD),o.KVO(_n))};static#t=this.\u0275prov=o.jDH({token:qt,factory:qt.\u0275fac,providedIn:"root"})}return qt})(),le=0,Ce=(()=>{class qt{constructor(tt,rt,bt,on,Q,T,N,$,ce,he,et,$t){this.scrollStrategies=tt,this._overlayContainer=rt,this._componentFactoryResolver=bt,this._positionBuilder=on,this._keyboardDispatcher=Q,this._injector=T,this._ngZone=N,this._document=$,this._directionality=ce,this._location=he,this._outsideClickDispatcher=et,this._animationsModuleType=$t}create(tt){const rt=this._createHostElement(),bt=this._createPaneElement(rt),on=this._createPortalOutlet(bt),Q=new ae(tt);return Q.direction=Q.direction||this._directionality.value,new pi(on,rt,bt,Q,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(o.uvJ))}position(){return this._positionBuilder}_createPaneElement(tt){const rt=this._document.createElement("div");return rt.id="cdk-overlay-"+le++,rt.classList.add("cdk-overlay-pane"),tt.appendChild(rt),rt}_createHostElement(){const tt=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(tt),tt}_createPortalOutlet(tt){return this._appRef||(this._appRef=this._injector.get(o.o8S)),new B.aI(tt,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.KVO(We),o.KVO(_n),o.KVO(o.OM3),o.KVO(ve),o.KVO(Zt),o.KVO(o.zZn),o.KVO(o.SKi),o.KVO(y.qQ),o.KVO(P.dS),o.KVO(y.aZ),o.KVO(Fn),o.KVO(o.bc$,8))};static#t=this.\u0275prov=o.jDH({token:qt,factory:qt.\u0275fac,providedIn:"root"})}return qt})();const dt=[{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"}],un=new o.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const qt=(0,o.WQX)(Ce);return()=>qt.scrollStrategies.reposition()}});let it=(()=>{class qt{constructor(tt){this.elementRef=tt}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.rXU(o.aKT))};static#t=this.\u0275dir=o.FsC({type:qt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return qt})(),It=(()=>{class qt{get offsetX(){return this._offsetX}set offsetX(tt){this._offsetX=tt,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(tt){this._offsetY=tt,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(tt){this._disposeOnNavigation=tt}constructor(tt,rt,bt,on,Q){this._overlay=tt,this._dir=Q,this._backdropSubscription=ue.yU.EMPTY,this._attachSubscription=ue.yU.EMPTY,this._detachSubscription=ue.yU.EMPTY,this._positionSubscription=ue.yU.EMPTY,this._disposeOnNavigation=!1,this._ngZone=(0,o.WQX)(o.SKi),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new o.bkB,this.positionChange=new o.bkB,this.attach=new o.bkB,this.detach=new o.bkB,this.overlayKeydown=new o.bkB,this.overlayOutsideClick=new o.bkB,this._templatePortal=new B.VA(rt,bt),this._scrollStrategyFactory=on,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(tt){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),tt.origin&&this.open&&this._position.apply()),tt.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=dt);const tt=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=tt.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=tt.detachments().subscribe(()=>this.detach.emit()),tt.keydownEvents().subscribe(rt=>{this.overlayKeydown.next(rt),rt.keyCode===Ee._f&&!this.disableClose&&!(0,Ee.rp)(rt)&&(rt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(rt=>{const bt=this._getOriginElement(),on=(0,G.Fb)(rt);(!bt||bt!==on&&!bt.contains(on))&&this.overlayOutsideClick.next(rt)})}_buildConfig(){const tt=this._position=this.positionStrategy||this._createPositionStrategy(),rt=new ae({direction:this._dir,positionStrategy:tt,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(rt.width=this.width),(this.height||0===this.height)&&(rt.height=this.height),(this.minWidth||0===this.minWidth)&&(rt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(rt.minHeight=this.minHeight),this.backdropClass&&(rt.backdropClass=this.backdropClass),this.panelClass&&(rt.panelClass=this.panelClass),rt}_updatePositionStrategy(tt){const rt=this.positions.map(bt=>({originX:bt.originX,originY:bt.originY,overlayX:bt.overlayX,overlayY:bt.overlayY,offsetX:bt.offsetX||this.offsetX,offsetY:bt.offsetY||this.offsetY,panelClass:bt.panelClass||void 0}));return tt.setOrigin(this._getOrigin()).withPositions(rt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const tt=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(tt),tt}_getOrigin(){return this.origin instanceof it?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof it?this.origin.elementRef.nativeElement:this.origin instanceof o.aKT?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(tt=>{this.backdropClick.emit(tt)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,V.v)(()=>this.positionChange.observers.length>0)).subscribe(tt=>{this._ngZone.run(()=>this.positionChange.emit(tt)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.rXU(Ce),o.rXU(o.C4Q),o.rXU(o.c1b),o.rXU(un),o.rXU(P.dS,8))};static#t=this.\u0275dir=o.FsC({type:qt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",o.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",o.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",o.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",o.L39],push:[2,"cdkConnectedOverlayPush","push",o.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",o.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[o.GFd,o.OA$]})}return qt})();const Rt={provide:un,deps:[Ce],useFactory:function Ft(qt){return()=>qt.scrollStrategies.reposition()}};let kn=(()=>{class qt{static#e=this.\u0275fac=function(rt){return new(rt||qt)};static#t=this.\u0275mod=o.$C({type:qt});static#n=this.\u0275inj=o.G2t({providers:[Ce,Rt],imports:[P.jI,B.jc,u.E9,u.E9]})}return qt})()},6860:(tn,Ne,v)=>{"use strict";v.d(Ne,{BD:()=>ke,BQ:()=>F,CZ:()=>Re,Fb:()=>je,KT:()=>Ze,MU:()=>V,OD:()=>L,r5:()=>ue,v8:()=>qe,vc:()=>gt});var u=v(4438),y=v(177);let o;try{o=typeof Intl<"u"&&Intl.v8BreakIterator}catch{o=!1}let ee,L=(()=>{class We{constructor(me){this._platformId=me,this.isBrowser=this._platformId?(0,y.UE)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!o)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(Le){return new(Le||We)(u.KVO(u.Agw))};static#t=this.\u0275prov=u.jDH({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();const oe=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function V(){if(ee)return ee;if("object"!=typeof document||!document)return ee=new Set(oe),ee;let We=document.createElement("input");return ee=new Set(oe.filter(ae=>(We.setAttribute("type",ae),We.type===ae))),ee}let P;function F(We){return function B(){if(null==P&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>P=!0}))}finally{P=P||!1}return P}()?We:!!We.capture}var ue=function(We){return We[We.NORMAL=0]="NORMAL",We[We.NEGATED=1]="NEGATED",We[We.INVERTED=2]="INVERTED",We}(ue||{});let ge,Ee,te;function Re(){if(null==Ee){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ee=!1,Ee;if("scrollBehavior"in document.documentElement.style)Ee=!0;else{const We=Element.prototype.scrollTo;Ee=!!We&&!/\{\s*\[native code\]\s*\}/.test(We.toString())}}return Ee}function ke(){if("object"!=typeof document||!document)return ue.NORMAL;if(null==ge){const We=document.createElement("div"),ae=We.style;We.dir="rtl",ae.width="1px",ae.overflow="auto",ae.visibility="hidden",ae.pointerEvents="none",ae.position="absolute";const me=document.createElement("div"),Le=me.style;Le.width="2px",Le.height="1px",We.appendChild(me),document.body.appendChild(We),ge=ue.NORMAL,0===We.scrollLeft&&(We.scrollLeft=1,ge=0===We.scrollLeft?ue.NEGATED:ue.INVERTED),We.remove()}return ge}function Ze(We){if(function be(){if(null==te){const We=typeof document<"u"?document.head:null;te=!(!We||!We.createShadowRoot&&!We.attachShadow)}return te}()){const ae=We.getRootNode?We.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ae instanceof ShadowRoot)return ae}return null}function gt(){let We=typeof document<"u"&&document?document.activeElement:null;for(;We&&We.shadowRoot;){const ae=We.shadowRoot.activeElement;if(ae===We)break;We=ae}return We}function je(We){return We.composedPath?We.composedPath()[0]:We.target}function qe(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(tn,Ne,v)=>{"use strict";v.d(Ne,{A8:()=>B,I3:()=>Ze,VA:()=>F,aI:()=>Re,jc:()=>je,lb:()=>ge});var u=v(4438),y=v(177);class P{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 B extends P{constructor(ae,me,Le,nt,At){super(),this.component=ae,this.viewContainerRef=me,this.injector=Le,this.componentFactoryResolver=nt,this.projectableNodes=At}}class F extends P{constructor(ae,me,Le,nt){super(),this.templateRef=ae,this.viewContainerRef=me,this.context=Le,this.injector=nt}get origin(){return this.templateRef.elementRef}attach(ae,me=this.context){return this.context=me,super.attach(ae)}detach(){return this.context=void 0,super.detach()}}class ue extends P{constructor(ae){super(),this.element=ae instanceof u.aKT?ae.nativeElement:ae}}class ge{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ae){return ae instanceof B?(this._attachedPortal=ae,this.attachComponentPortal(ae)):ae instanceof F?(this._attachedPortal=ae,this.attachTemplatePortal(ae)):this.attachDomPortal&&ae instanceof ue?(this._attachedPortal=ae,this.attachDomPortal(ae)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(ae){this._disposeFn=ae}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Re extends ge{constructor(ae,me,Le,nt,At){super(),this.outletElement=ae,this._componentFactoryResolver=me,this._appRef=Le,this._defaultInjector=nt,this.attachDomPortal=vt=>{const Dt=vt.element,Zt=this._document.createComment("dom-portal");Dt.parentNode.insertBefore(Zt,Dt),this.outletElement.appendChild(Dt),this._attachedPortal=vt,super.setDisposeFn(()=>{Zt.parentNode&&Zt.parentNode.replaceChild(Dt,Zt)})},this._document=At}attachComponentPortal(ae){const Le=(ae.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ae.component);let nt;return ae.viewContainerRef?(nt=ae.viewContainerRef.createComponent(Le,ae.viewContainerRef.length,ae.injector||ae.viewContainerRef.injector,ae.projectableNodes||void 0),this.setDisposeFn(()=>nt.destroy())):(nt=Le.create(ae.injector||this._defaultInjector||u.zZn.NULL),this._appRef.attachView(nt.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(nt.hostView),nt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(nt)),this._attachedPortal=ae,nt}attachTemplatePortal(ae){let me=ae.viewContainerRef,Le=me.createEmbeddedView(ae.templateRef,ae.context,{injector:ae.injector});return Le.rootNodes.forEach(nt=>this.outletElement.appendChild(nt)),Le.detectChanges(),this.setDisposeFn(()=>{let nt=me.indexOf(Le);-1!==nt&&me.remove(nt)}),this._attachedPortal=ae,Le}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ae){return ae.hostView.rootNodes[0]}}let Ze=(()=>{class We extends ge{constructor(me,Le,nt){super(),this._componentFactoryResolver=me,this._viewContainerRef=Le,this._isInitialized=!1,this.attached=new u.bkB,this.attachDomPortal=At=>{const vt=At.element,Dt=this._document.createComment("dom-portal");At.setAttachedHost(this),vt.parentNode.insertBefore(Dt,vt),this._getRootNode().appendChild(vt),this._attachedPortal=At,super.setDisposeFn(()=>{Dt.parentNode&&Dt.parentNode.replaceChild(vt,Dt)})},this._document=nt}get portal(){return this._attachedPortal}set portal(me){this.hasAttached()&&!me&&!this._isInitialized||(this.hasAttached()&&super.detach(),me&&super.attach(me),this._attachedPortal=me||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(me){me.setAttachedHost(this);const Le=null!=me.viewContainerRef?me.viewContainerRef:this._viewContainerRef,At=(me.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(me.component),vt=Le.createComponent(At,Le.length,me.injector||Le.injector,me.projectableNodes||void 0);return Le!==this._viewContainerRef&&this._getRootNode().appendChild(vt.hostView.rootNodes[0]),super.setDisposeFn(()=>vt.destroy()),this._attachedPortal=me,this._attachedRef=vt,this.attached.emit(vt),vt}attachTemplatePortal(me){me.setAttachedHost(this);const Le=this._viewContainerRef.createEmbeddedView(me.templateRef,me.context,{injector:me.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=me,this._attachedRef=Le,this.attached.emit(Le),Le}_getRootNode(){const me=this._viewContainerRef.element.nativeElement;return me.nodeType===me.ELEMENT_NODE?me:me.parentNode}static#e=this.\u0275fac=function(Le){return new(Le||We)(u.rXU(u.OM3),u.rXU(u.c1b),u.rXU(y.qQ))};static#t=this.\u0275dir=u.FsC({type:We,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[u.Vt3]})}return We})(),je=(()=>{class We{static#e=this.\u0275fac=function(Le){return new(Le||We)};static#t=this.\u0275mod=u.$C({type:We});static#n=this.\u0275inj=u.G2t({})}return We})()},5542:(tn,Ne,v)=>{"use strict";v.d(Ne,{uv:()=>Dt,Gj:()=>ht,R:()=>vt,E9:()=>Xe,Xj:()=>Fn});var u=v(4085),y=v(4438),o=v(1413),L=v(7673),G=v(1985),ee=v(3726),oe=v(6780),V=v(8359);const P={schedule(Je){let Me=requestAnimationFrame,ie=cancelAnimationFrame;const{delegate:ve}=P;ve&&(Me=ve.requestAnimationFrame,ie=ve.cancelAnimationFrame);const le=Me(Ce=>{ie=void 0,Je(Ce)});return new V.yU(()=>ie?.(le))},requestAnimationFrame(...Je){const{delegate:Me}=P;return(Me?.requestAnimationFrame||requestAnimationFrame)(...Je)},cancelAnimationFrame(...Je){const{delegate:Me}=P;return(Me?.cancelAnimationFrame||cancelAnimationFrame)(...Je)},delegate:void 0};var F=v(9687);new class ue extends F.q{flush(Me){this._active=!0;const ie=this._scheduled;this._scheduled=void 0;const{actions:ve}=this;let le;Me=Me||ve.shift();do{if(le=Me.execute(Me.state,Me.delay))break}while((Me=ve[0])&&Me.id===ie&&ve.shift());if(this._active=!1,le){for(;(Me=ve[0])&&Me.id===ie&&ve.shift();)Me.unsubscribe();throw le}}}(class B extends oe.R{constructor(Me,ie){super(Me,ie),this.scheduler=Me,this.work=ie}requestAsyncId(Me,ie,ve=0){return null!==ve&&ve>0?super.requestAsyncId(Me,ie,ve):(Me.actions.push(this),Me._scheduled||(Me._scheduled=P.requestAnimationFrame(()=>Me.flush(void 0))))}recycleAsyncId(Me,ie,ve=0){var le;if(null!=ve?ve>0:this.delay>0)return super.recycleAsyncId(Me,ie,ve);const{actions:Ce}=Me;null!=ie&&(null===(le=Ce[Ce.length-1])||void 0===le?void 0:le.id)!==ie&&(P.cancelAnimationFrame(ie),Me._scheduled=void 0)}});v(5007);var ke=v(3798),te=v(5964),be=v(6977),Ze=v(6860),gt=v(177),je=v(8203);let vt=(()=>{class Je{constructor(ie,ve,le){this._ngZone=ie,this._platform=ve,this._scrolled=new o.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=le}register(ie){this.scrollContainers.has(ie)||this.scrollContainers.set(ie,ie.elementScrolled().subscribe(()=>this._scrolled.next(ie)))}deregister(ie){const ve=this.scrollContainers.get(ie);ve&&(ve.unsubscribe(),this.scrollContainers.delete(ie))}scrolled(ie=20){return this._platform.isBrowser?new G.c(ve=>{this._globalSubscription||this._addGlobalListener();const le=ie>0?this._scrolled.pipe((0,ke.Z)(ie)).subscribe(ve):this._scrolled.subscribe(ve);return this._scrolledCount++,()=>{le.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,L.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ie,ve)=>this.deregister(ve)),this._scrolled.complete()}ancestorScrolled(ie,ve){const le=this.getAncestorScrollContainers(ie);return this.scrolled(ve).pipe((0,te.p)(Ce=>!Ce||le.indexOf(Ce)>-1))}getAncestorScrollContainers(ie){const ve=[];return this.scrollContainers.forEach((le,Ce)=>{this._scrollableContainsElement(Ce,ie)&&ve.push(Ce)}),ve}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ie,ve){let le=(0,u.i8)(ve),Ce=ie.getElementRef().nativeElement;do{if(le==Ce)return!0}while(le=le.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ie=this._getWindow();return(0,ee.R)(ie.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(ve){return new(ve||Je)(y.KVO(y.SKi),y.KVO(Ze.OD),y.KVO(gt.qQ,8))};static#t=this.\u0275prov=y.jDH({token:Je,factory:Je.\u0275fac,providedIn:"root"})}return Je})(),Dt=(()=>{class Je{constructor(ie,ve,le,Ce){this.elementRef=ie,this.scrollDispatcher=ve,this.ngZone=le,this.dir=Ce,this._destroyed=new o.B,this._elementScrolled=new G.c(dt=>this.ngZone.runOutsideAngular(()=>(0,ee.R)(this.elementRef.nativeElement,"scroll").pipe((0,be.Q)(this._destroyed)).subscribe(dt)))}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(ie){const ve=this.elementRef.nativeElement,le=this.dir&&"rtl"==this.dir.value;null==ie.left&&(ie.left=le?ie.end:ie.start),null==ie.right&&(ie.right=le?ie.start:ie.end),null!=ie.bottom&&(ie.top=ve.scrollHeight-ve.clientHeight-ie.bottom),le&&(0,Ze.BD)()!=Ze.r5.NORMAL?(null!=ie.left&&(ie.right=ve.scrollWidth-ve.clientWidth-ie.left),(0,Ze.BD)()==Ze.r5.INVERTED?ie.left=ie.right:(0,Ze.BD)()==Ze.r5.NEGATED&&(ie.left=ie.right?-ie.right:ie.right)):null!=ie.right&&(ie.left=ve.scrollWidth-ve.clientWidth-ie.right),this._applyScrollToOptions(ie)}_applyScrollToOptions(ie){const ve=this.elementRef.nativeElement;(0,Ze.CZ)()?ve.scrollTo(ie):(null!=ie.top&&(ve.scrollTop=ie.top),null!=ie.left&&(ve.scrollLeft=ie.left))}measureScrollOffset(ie){const ve="left",Ce=this.elementRef.nativeElement;if("top"==ie)return Ce.scrollTop;if("bottom"==ie)return Ce.scrollHeight-Ce.clientHeight-Ce.scrollTop;const dt=this.dir&&"rtl"==this.dir.value;return"start"==ie?ie=dt?"right":ve:"end"==ie&&(ie=dt?ve:"right"),dt&&(0,Ze.BD)()==Ze.r5.INVERTED?ie==ve?Ce.scrollWidth-Ce.clientWidth-Ce.scrollLeft:Ce.scrollLeft:dt&&(0,Ze.BD)()==Ze.r5.NEGATED?ie==ve?Ce.scrollLeft+Ce.scrollWidth-Ce.clientWidth:-Ce.scrollLeft:ie==ve?Ce.scrollLeft:Ce.scrollWidth-Ce.clientWidth-Ce.scrollLeft}static#e=this.\u0275fac=function(ve){return new(ve||Je)(y.rXU(y.aKT),y.rXU(vt),y.rXU(y.SKi),y.rXU(je.dS,8))};static#t=this.\u0275dir=y.FsC({type:Je,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return Je})(),Fn=(()=>{class Je{constructor(ie,ve,le){this._platform=ie,this._change=new o.B,this._changeListener=Ce=>{this._change.next(Ce)},this._document=le,ve.runOutsideAngular(()=>{if(ie.isBrowser){const Ce=this._getWindow();Ce.addEventListener("resize",this._changeListener),Ce.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ie=this._getWindow();ie.removeEventListener("resize",this._changeListener),ie.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ie={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ie}getViewportRect(){const ie=this.getViewportScrollPosition(),{width:ve,height:le}=this.getViewportSize();return{top:ie.top,left:ie.left,bottom:ie.top+le,right:ie.left+ve,height:le,width:ve}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ie=this._document,ve=this._getWindow(),le=ie.documentElement,Ce=le.getBoundingClientRect();return{top:-Ce.top||ie.body.scrollTop||ve.scrollY||le.scrollTop||0,left:-Ce.left||ie.body.scrollLeft||ve.scrollX||le.scrollLeft||0}}change(ie=20){return ie>0?this._change.pipe((0,ke.Z)(ie)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ie=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ie.innerWidth,height:ie.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(ve){return new(ve||Je)(y.KVO(Ze.OD),y.KVO(y.SKi),y.KVO(gt.qQ,8))};static#t=this.\u0275prov=y.jDH({token:Je,factory:Je.\u0275fac,providedIn:"root"})}return Je})(),ht=(()=>{class Je{static#e=this.\u0275fac=function(ve){return new(ve||Je)};static#t=this.\u0275mod=y.$C({type:Je});static#n=this.\u0275inj=y.G2t({})}return Je})(),Xe=(()=>{class Je{static#e=this.\u0275fac=function(ve){return new(ve||Je)};static#t=this.\u0275mod=y.$C({type:Je});static#n=this.\u0275inj=y.G2t({imports:[je.jI,ht,je.jI,ht]})}return Je})()},7403:(tn,Ne,v)=>{"use strict";v.d(Ne,{EE:()=>Ee,P8:()=>F,xb:()=>ge});var u=v(6860),y=v(4438),o=v(4085),L=v(983),G=v(1413),ee=v(3726),oe=v(3798),V=v(6977),P=v(177);const B=(0,u.BQ)({passive:!0});let F=(()=>{class Re{constructor(te,be){this._platform=te,this._ngZone=be,this._monitoredElements=new Map}monitor(te){if(!this._platform.isBrowser)return L.w;const be=(0,o.i8)(te),Ze=this._monitoredElements.get(be);if(Ze)return Ze.subject;const gt=new G.B,je="cdk-text-field-autofilled",qe=We=>{"cdk-text-field-autofill-start"!==We.animationName||be.classList.contains(je)?"cdk-text-field-autofill-end"===We.animationName&&be.classList.contains(je)&&(be.classList.remove(je),this._ngZone.run(()=>gt.next({target:We.target,isAutofilled:!1}))):(be.classList.add(je),this._ngZone.run(()=>gt.next({target:We.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{be.addEventListener("animationstart",qe,B),be.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(be,{subject:gt,unlisten:()=>{be.removeEventListener("animationstart",qe,B)}}),gt}stopMonitoring(te){const be=(0,o.i8)(te),Ze=this._monitoredElements.get(be);Ze&&(Ze.unlisten(),Ze.subject.complete(),be.classList.remove("cdk-text-field-autofill-monitored"),be.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(be))}ngOnDestroy(){this._monitoredElements.forEach((te,be)=>this.stopMonitoring(be))}static#e=this.\u0275fac=function(be){return new(be||Re)(y.KVO(u.OD),y.KVO(y.SKi))};static#t=this.\u0275prov=y.jDH({token:Re,factory:Re.\u0275fac,providedIn:"root"})}return Re})(),ge=(()=>{class Re{get minRows(){return this._minRows}set minRows(te){this._minRows=(0,o.OE)(te),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(te){this._maxRows=(0,o.OE)(te),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(te){this._enabled!==te&&((this._enabled=te)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(te){this._cachedPlaceholderHeight=void 0,te?this._textareaElement.setAttribute("placeholder",te):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(te,be,Ze,gt){this._elementRef=te,this._platform=be,this._ngZone=Ze,this._destroyed=new G.B,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=je=>{this._hasFocus="focus"===je.type},this._document=gt,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const te=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;te&&(this._textareaElement.style.minHeight=te)}_setMaxHeight(){const te=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;te&&(this._textareaElement.style.maxHeight=te)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const te=this._getWindow();(0,ee.R)(te,"resize").pipe((0,oe.Z)(16),(0,V.Q)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let te=this._textareaElement.cloneNode(!1);te.rows=1,te.style.position="absolute",te.style.visibility="hidden",te.style.border="none",te.style.padding="0",te.style.height="",te.style.minHeight="",te.style.maxHeight="",te.style.overflow="hidden",this._textareaElement.parentNode.appendChild(te),this._cachedLineHeight=te.clientHeight,te.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const te=this._textareaElement,be=te.style.marginBottom||"",Ze=this._platform.FIREFOX,gt=Ze&&this._hasFocus,je=Ze?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";gt&&(te.style.marginBottom=`${te.clientHeight}px`),te.classList.add(je);const qe=te.scrollHeight-4;return te.classList.remove(je),gt&&(te.style.marginBottom=be),qe}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const te=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=te}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(te=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const be=this._elementRef.nativeElement,Ze=be.value;if(!te&&this._minRows===this._previousMinRows&&Ze===this._previousValue)return;const gt=this._measureScrollHeight(),je=Math.max(gt,this._cachedPlaceholderHeight||0);be.style.height=`${je}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(be)):setTimeout(()=>this._scrollToCaretPosition(be))}),this._previousValue=Ze,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(te){const{selectionStart:be,selectionEnd:Ze}=te;!this._destroyed.isStopped&&this._hasFocus&&te.setSelectionRange(be,Ze)}static#e=this.\u0275fac=function(be){return new(be||Re)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(P.qQ,8))};static#t=this.\u0275dir=y.FsC({type:Re,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(be,Ze){1&be&&y.bIt("input",function(){return Ze._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",y.L39],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"],standalone:!0,features:[y.GFd]})}return Re})(),Ee=(()=>{class Re{static#e=this.\u0275fac=function(be){return new(be||Re)};static#t=this.\u0275mod=y.$C({type:Re});static#n=this.\u0275inj=y.G2t({})}return Re})()},177:(tn,Ne,v)=>{"use strict";v.d(Ne,{AJ:()=>Hr,B3:()=>ci,Jj:()=>Lr,MD:()=>js,N0:()=>zo,PV:()=>Bs,QT:()=>o,Sm:()=>ke,Sq:()=>Ge,T3:()=>ki,UE:()=>Uo,VF:()=>G,Vy:()=>va,Xr:()=>Hs,YU:()=>li,ZD:()=>L,_b:()=>Xn,aZ:()=>be,bT:()=>se,fw:()=>te,hb:()=>Ee,hj:()=>P,jo:()=>Lo,qQ:()=>oe,vh:()=>Ul});var u=v(4438);let y=null;function o(){return y}function L(S){y??=S}class G{}const oe=new u.nKC("");let V=(()=>{class S{historyGo(f){throw new Error("")}static#e=this.\u0275fac=function(_){return new(_||S)};static#t=this.\u0275prov=u.jDH({token:S,factory:()=>(0,u.WQX)(B),providedIn:"platform"})}return S})();const P=new u.nKC("");let B=(()=>{class S extends V{constructor(){super(),this._doc=(0,u.WQX)(oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(f){const _=o().getGlobalEventTarget(this._doc,"window");return _.addEventListener("popstate",f,!1),()=>_.removeEventListener("popstate",f)}onHashChange(f){const _=o().getGlobalEventTarget(this._doc,"window");return _.addEventListener("hashchange",f,!1),()=>_.removeEventListener("hashchange",f)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(f){this._location.pathname=f}pushState(f,_,x){this._history.pushState(f,_,x)}replaceState(f,_,x){this._history.replaceState(f,_,x)}forward(){this._history.forward()}back(){this._history.back()}historyGo(f=0){this._history.go(f)}getState(){return this._history.state}static#e=this.\u0275fac=function(_){return new(_||S)};static#t=this.\u0275prov=u.jDH({token:S,factory:()=>new S,providedIn:"platform"})}return S})();function F(S,ne){if(0==S.length)return ne;if(0==ne.length)return S;let f=0;return S.endsWith("/")&&f++,ne.startsWith("/")&&f++,2==f?S+ne.substring(1):1==f?S+ne:S+"/"+ne}function ue(S){const ne=S.match(/#|\?|$/),f=ne&&ne.index||S.length;return S.slice(0,f-("/"===S[f-1]?1:0))+S.slice(f)}function ge(S){return S&&"?"!==S[0]?"?"+S:S}let Ee=(()=>{class S{historyGo(f){throw new Error("")}static#e=this.\u0275fac=function(_){return new(_||S)};static#t=this.\u0275prov=u.jDH({token:S,factory:()=>(0,u.WQX)(ke),providedIn:"root"})}return S})();const Re=new u.nKC("");let ke=(()=>{class S extends Ee{constructor(f,_){super(),this._platformLocation=f,this._removeListenerFns=[],this._baseHref=_??this._platformLocation.getBaseHrefFromDOM()??(0,u.WQX)(oe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(f){this._removeListenerFns.push(this._platformLocation.onPopState(f),this._platformLocation.onHashChange(f))}getBaseHref(){return this._baseHref}prepareExternalUrl(f){return F(this._baseHref,f)}path(f=!1){const _=this._platformLocation.pathname+ge(this._platformLocation.search),x=this._platformLocation.hash;return x&&f?`${_}${x}`:_}pushState(f,_,x,K){const de=this.prepareExternalUrl(x+ge(K));this._platformLocation.pushState(f,_,de)}replaceState(f,_,x,K){const de=this.prepareExternalUrl(x+ge(K));this._platformLocation.replaceState(f,_,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(f=0){this._platformLocation.historyGo?.(f)}static#e=this.\u0275fac=function(_){return new(_||S)(u.KVO(V),u.KVO(Re,8))};static#t=this.\u0275prov=u.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})(),te=(()=>{class S extends Ee{constructor(f,_){super(),this._platformLocation=f,this._baseHref="",this._removeListenerFns=[],null!=_&&(this._baseHref=_)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(f){this._removeListenerFns.push(this._platformLocation.onPopState(f),this._platformLocation.onHashChange(f))}getBaseHref(){return this._baseHref}path(f=!1){const _=this._platformLocation.hash??"#";return _.length>0?_.substring(1):_}prepareExternalUrl(f){const _=F(this._baseHref,f);return _.length>0?"#"+_:_}pushState(f,_,x,K){let de=this.prepareExternalUrl(x+ge(K));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.pushState(f,_,de)}replaceState(f,_,x,K){let de=this.prepareExternalUrl(x+ge(K));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.replaceState(f,_,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(f=0){this._platformLocation.historyGo?.(f)}static#e=this.\u0275fac=function(_){return new(_||S)(u.KVO(V),u.KVO(Re,8))};static#t=this.\u0275prov=u.jDH({token:S,factory:S.\u0275fac})}return S})(),be=(()=>{class S{constructor(f){this._subject=new u.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=f;const _=this._locationStrategy.getBaseHref();this._basePath=function qe(S){if(new RegExp("^(https?:)?//").test(S)){const[,f]=S.split(/\/\/[^\/]+/);return f}return S}(ue(je(_))),this._locationStrategy.onPopState(x=>{this._subject.emit({url:this.path(!0),pop:!0,state:x.state,type:x.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(f=!1){return this.normalize(this._locationStrategy.path(f))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(f,_=""){return this.path()==this.normalize(f+ge(_))}normalize(f){return S.stripTrailingSlash(function gt(S,ne){if(!S||!ne.startsWith(S))return ne;const f=ne.substring(S.length);return""===f||["/",";","?","#"].includes(f[0])?f:ne}(this._basePath,je(f)))}prepareExternalUrl(f){return f&&"/"!==f[0]&&(f="/"+f),this._locationStrategy.prepareExternalUrl(f)}go(f,_="",x=null){this._locationStrategy.pushState(x,"",f,_),this._notifyUrlChangeListeners(this.prepareExternalUrl(f+ge(_)),x)}replaceState(f,_="",x=null){this._locationStrategy.replaceState(x,"",f,_),this._notifyUrlChangeListeners(this.prepareExternalUrl(f+ge(_)),x)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(f=0){this._locationStrategy.historyGo?.(f)}onUrlChange(f){return this._urlChangeListeners.push(f),this._urlChangeSubscription??=this.subscribe(_=>{this._notifyUrlChangeListeners(_.url,_.state)}),()=>{const _=this._urlChangeListeners.indexOf(f);this._urlChangeListeners.splice(_,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(f="",_){this._urlChangeListeners.forEach(x=>x(f,_))}subscribe(f,_,x){return this._subject.subscribe({next:f,error:_,complete:x})}static#e=this.normalizeQueryParams=ge;static#t=this.joinWithSlash=F;static#n=this.stripTrailingSlash=ue;static#i=this.\u0275fac=function(_){return new(_||S)(u.KVO(Ee))};static#r=this.\u0275prov=u.jDH({token:S,factory:()=>function Ze(){return new be((0,u.KVO)(Ee))}(),providedIn:"root"})}return S})();function je(S){return S.replace(/\/index.html$/,"")}var me=function(S){return S[S.Zero=0]="Zero",S[S.One=1]="One",S[S.Two=2]="Two",S[S.Few=3]="Few",S[S.Many=4]="Many",S[S.Other=5]="Other",S}(me||{}),Le=function(S){return S[S.Format=0]="Format",S[S.Standalone=1]="Standalone",S}(Le||{}),nt=function(S){return S[S.Narrow=0]="Narrow",S[S.Abbreviated=1]="Abbreviated",S[S.Wide=2]="Wide",S[S.Short=3]="Short",S}(nt||{}),At=function(S){return S[S.Short=0]="Short",S[S.Medium=1]="Medium",S[S.Long=2]="Long",S[S.Full=3]="Full",S}(At||{});const vt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function J(S,ne){return it((0,u.H5H)(S)[u.KH2.DateFormat],ne)}function Ie(S,ne){return it((0,u.H5H)(S)[u.KH2.TimeFormat],ne)}function Ot(S,ne){return it((0,u.H5H)(S)[u.KH2.DateTimeFormat],ne)}function Pe(S,ne){const f=(0,u.H5H)(S),_=f[u.KH2.NumberSymbols][ne];if(typeof _>"u"){if(ne===vt.CurrencyDecimal)return f[u.KH2.NumberSymbols][vt.Decimal];if(ne===vt.CurrencyGroup)return f[u.KH2.NumberSymbols][vt.Group]}return _}const ve=u.mq5;function le(S){if(!S[u.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${S[u.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function it(S,ne){for(let f=ne;f>-1;f--)if(typeof S[f]<"u")return S[f];throw new Error("Locale data API: locale data undefined")}function It(S){const[ne,f]=S.split(":");return{hours:+ne,minutes:+f}}const hi=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,qt={},we=/((?:[^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 tt=function(S){return S[S.Short=0]="Short",S[S.ShortGMT=1]="ShortGMT",S[S.Long=2]="Long",S[S.Extended=3]="Extended",S}(tt||{}),rt=function(S){return S[S.FullYear=0]="FullYear",S[S.Month=1]="Month",S[S.Date=2]="Date",S[S.Hours=3]="Hours",S[S.Minutes=4]="Minutes",S[S.Seconds=5]="Seconds",S[S.FractionalSeconds=6]="FractionalSeconds",S[S.Day=7]="Day",S}(rt||{}),bt=function(S){return S[S.DayPeriods=0]="DayPeriods",S[S.Days=1]="Days",S[S.Months=2]="Months",S[S.Eras=3]="Eras",S}(bt||{});function on(S,ne,f,_){let x=function vi(S){if(nn(S))return S;if("number"==typeof S&&!isNaN(S))return new Date(S);if("string"==typeof S){if(S=S.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(S)){const[x,K=1,de=1]=S.split("-").map(ze=>+ze);return Q(x,K-1,de)}const f=parseFloat(S);if(!isNaN(S-f))return new Date(f);let _;if(_=S.match(hi))return function Ti(S){const ne=new Date(0);let f=0,_=0;const x=S[8]?ne.setUTCFullYear:ne.setFullYear,K=S[8]?ne.setUTCHours:ne.setHours;S[9]&&(f=Number(S[9]+S[10]),_=Number(S[9]+S[11])),x.call(ne,Number(S[1]),Number(S[2])-1,Number(S[3]));const de=Number(S[4]||0)-f,ze=Number(S[5]||0)-_,_t=Number(S[6]||0),wt=Math.floor(1e3*parseFloat("0."+(S[7]||0)));return K.call(ne,de,ze,_t,wt),ne}(_)}const ne=new Date(S);if(!nn(ne))throw new Error(`Unable to convert "${S}" into a date`);return ne}(S);ne=T(f,ne)||ne;let ze,de=[];for(;ne;){if(ze=we.exec(ne),!ze){de.push(ne);break}{de=de.concat(ze.slice(1));const kt=de.pop();if(!kt)break;ne=kt}}let _t=x.getTimezoneOffset();_&&(_t=Ke(_,_t),x=function Pn(S,ne,f){const _=f?-1:1,x=S.getTimezoneOffset();return function zt(S,ne){return(S=new Date(S.getTime())).setMinutes(S.getMinutes()+ne),S}(S,_*(Ke(ne,x)-x))}(x,_,!0));let wt="";return de.forEach(kt=>{const Yt=function ye(S){if(Be[S])return Be[S];let ne;switch(S){case"G":case"GG":case"GGG":ne=$t(bt.Eras,nt.Abbreviated);break;case"GGGG":ne=$t(bt.Eras,nt.Wide);break;case"GGGGG":ne=$t(bt.Eras,nt.Narrow);break;case"y":ne=he(rt.FullYear,1,0,!1,!0);break;case"yy":ne=he(rt.FullYear,2,0,!0,!0);break;case"yyy":ne=he(rt.FullYear,3,0,!1,!0);break;case"yyyy":ne=he(rt.FullYear,4,0,!1,!0);break;case"Y":ne=He(1);break;case"YY":ne=He(2,!0);break;case"YYY":ne=He(3);break;case"YYYY":ne=He(4);break;case"M":case"L":ne=he(rt.Month,1,1);break;case"MM":case"LL":ne=he(rt.Month,2,1);break;case"MMM":ne=$t(bt.Months,nt.Abbreviated);break;case"MMMM":ne=$t(bt.Months,nt.Wide);break;case"MMMMM":ne=$t(bt.Months,nt.Narrow);break;case"LLL":ne=$t(bt.Months,nt.Abbreviated,Le.Standalone);break;case"LLLL":ne=$t(bt.Months,nt.Wide,Le.Standalone);break;case"LLLLL":ne=$t(bt.Months,nt.Narrow,Le.Standalone);break;case"w":ne=En(1);break;case"ww":ne=En(2);break;case"W":ne=En(1,!0);break;case"d":ne=he(rt.Date,1);break;case"dd":ne=he(rt.Date,2);break;case"c":case"cc":ne=he(rt.Day,1);break;case"ccc":ne=$t(bt.Days,nt.Abbreviated,Le.Standalone);break;case"cccc":ne=$t(bt.Days,nt.Wide,Le.Standalone);break;case"ccccc":ne=$t(bt.Days,nt.Narrow,Le.Standalone);break;case"cccccc":ne=$t(bt.Days,nt.Short,Le.Standalone);break;case"E":case"EE":case"EEE":ne=$t(bt.Days,nt.Abbreviated);break;case"EEEE":ne=$t(bt.Days,nt.Wide);break;case"EEEEE":ne=$t(bt.Days,nt.Narrow);break;case"EEEEEE":ne=$t(bt.Days,nt.Short);break;case"a":case"aa":case"aaa":ne=$t(bt.DayPeriods,nt.Abbreviated);break;case"aaaa":ne=$t(bt.DayPeriods,nt.Wide);break;case"aaaaa":ne=$t(bt.DayPeriods,nt.Narrow);break;case"b":case"bb":case"bbb":ne=$t(bt.DayPeriods,nt.Abbreviated,Le.Standalone,!0);break;case"bbbb":ne=$t(bt.DayPeriods,nt.Wide,Le.Standalone,!0);break;case"bbbbb":ne=$t(bt.DayPeriods,nt.Narrow,Le.Standalone,!0);break;case"B":case"BB":case"BBB":ne=$t(bt.DayPeriods,nt.Abbreviated,Le.Format,!0);break;case"BBBB":ne=$t(bt.DayPeriods,nt.Wide,Le.Format,!0);break;case"BBBBB":ne=$t(bt.DayPeriods,nt.Narrow,Le.Format,!0);break;case"h":ne=he(rt.Hours,1,-12);break;case"hh":ne=he(rt.Hours,2,-12);break;case"H":ne=he(rt.Hours,1);break;case"HH":ne=he(rt.Hours,2);break;case"m":ne=he(rt.Minutes,1);break;case"mm":ne=he(rt.Minutes,2);break;case"s":ne=he(rt.Seconds,1);break;case"ss":ne=he(rt.Seconds,2);break;case"S":ne=he(rt.FractionalSeconds,1);break;case"SS":ne=he(rt.FractionalSeconds,2);break;case"SSS":ne=he(rt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ne=Vt(tt.Short);break;case"ZZZZZ":ne=Vt(tt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ne=Vt(tt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ne=Vt(tt.Long);break;default:return null}return Be[S]=ne,ne}(kt);wt+=Yt?Yt(x,f,_t):"''"===kt?"'":kt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),wt}function Q(S,ne,f){const _=new Date(0);return _.setFullYear(S,ne,f),_.setHours(0,0,0),_}function T(S,ne){const f=function Zt(S){return(0,u.H5H)(S)[u.KH2.LocaleId]}(S);if(qt[f]??={},qt[f][ne])return qt[f][ne];let _="";switch(ne){case"shortDate":_=J(S,At.Short);break;case"mediumDate":_=J(S,At.Medium);break;case"longDate":_=J(S,At.Long);break;case"fullDate":_=J(S,At.Full);break;case"shortTime":_=Ie(S,At.Short);break;case"mediumTime":_=Ie(S,At.Medium);break;case"longTime":_=Ie(S,At.Long);break;case"fullTime":_=Ie(S,At.Full);break;case"short":const x=T(S,"shortTime"),K=T(S,"shortDate");_=N(Ot(S,At.Short),[x,K]);break;case"medium":const de=T(S,"mediumTime"),ze=T(S,"mediumDate");_=N(Ot(S,At.Medium),[de,ze]);break;case"long":const _t=T(S,"longTime"),wt=T(S,"longDate");_=N(Ot(S,At.Long),[_t,wt]);break;case"full":const kt=T(S,"fullTime"),Yt=T(S,"fullDate");_=N(Ot(S,At.Full),[kt,Yt])}return _&&(qt[f][ne]=_),_}function N(S,ne){return ne&&(S=S.replace(/\{([^}]+)}/g,function(f,_){return null!=ne&&_ in ne?ne[_]:f})),S}function $(S,ne,f="-",_,x){let K="";(S<0||x&&S<=0)&&(x?S=1-S:(S=-S,K=f));let de=String(S);for(;de.length0||ze>-f)&&(ze+=f),S===rt.Hours)0===ze&&-12===f&&(ze=12);else if(S===rt.FractionalSeconds)return function ce(S,ne){return $(S,3).substring(0,ne)}(ze,ne);const _t=Pe(de,vt.MinusSign);return $(ze,ne,_t,_,x)}}function $t(S,ne,f=Le.Format,_=!1){return function(x,K){return function Bt(S,ne,f,_,x,K){switch(f){case bt.Months:return function _n(S,ne,f){const _=(0,u.H5H)(S),K=it([_[u.KH2.MonthsFormat],_[u.KH2.MonthsStandalone]],ne);return it(K,f)}(ne,x,_)[S.getMonth()];case bt.Days:return function Vn(S,ne,f){const _=(0,u.H5H)(S),K=it([_[u.KH2.DaysFormat],_[u.KH2.DaysStandalone]],ne);return it(K,f)}(ne,x,_)[S.getDay()];case bt.DayPeriods:const de=S.getHours(),ze=S.getMinutes();if(K){const wt=function Ce(S){const ne=(0,u.H5H)(S);return le(ne),(ne[u.KH2.ExtraData][2]||[]).map(_=>"string"==typeof _?It(_):[It(_[0]),It(_[1])])}(ne),kt=function dt(S,ne,f){const _=(0,u.H5H)(S);le(_);const K=it([_[u.KH2.ExtraData][0],_[u.KH2.ExtraData][1]],ne)||[];return it(K,f)||[]}(ne,x,_),Yt=wt.findIndex(vn=>{if(Array.isArray(vn)){const[xt,Ht]=vn,cn=de>=xt.hours&&ze>=xt.minutes,Rn=de0?Math.floor(x/60):Math.ceil(x/60);switch(S){case tt.Short:return(x>=0?"+":"")+$(de,2,K)+$(Math.abs(x%60),2,K);case tt.ShortGMT:return"GMT"+(x>=0?"+":"")+$(de,1,K);case tt.Long:return"GMT"+(x>=0?"+":"")+$(de,2,K)+":"+$(Math.abs(x%60),2,K);case tt.Extended:return 0===_?"Z":(x>=0?"+":"")+$(de,2,K)+":"+$(Math.abs(x%60),2,K);default:throw new Error(`Unknown zone width "${S}"`)}}}const Mn=0,Ln=4;function Jt(S){const ne=S.getDay(),f=0===ne?-3:Ln-ne;return Q(S.getFullYear(),S.getMonth(),S.getDate()+f)}function En(S,ne=!1){return function(f,_){let x;if(ne){const K=new Date(f.getFullYear(),f.getMonth(),1).getDay()-1,de=f.getDate();x=1+Math.floor((de+K)/7)}else{const K=Jt(f),de=function Ei(S){const ne=Q(S,Mn,1).getDay();return Q(S,0,1+(ne<=Ln?Ln:Ln+7)-ne)}(K.getFullYear()),ze=K.getTime()-de.getTime();x=1+Math.round(ze/6048e5)}return $(x,S,Pe(_,vt.MinusSign))}}function He(S,ne=!1){return function(f,_){return $(Jt(f).getFullYear(),S,Pe(_,vt.MinusSign),ne)}}const Be={};function Ke(S,ne){S=S.replace(/:/g,"");const f=Date.parse("Jan 01, 1970 00:00:00 "+S)/6e4;return isNaN(f)?ne:f}function nn(S){return S instanceof Date&&!isNaN(S.valueOf())}let St=(()=>{class S{static#e=this.\u0275fac=function(_){return new(_||S)};static#t=this.\u0275prov=u.jDH({token:S,factory:function(_){let x=null;return _?x=new _:(K=u.KVO(u.xe9),x=new yn(K)),x;var K},providedIn:"root"})}return S})();let yn=(()=>{class S extends St{constructor(f){super(),this.locale=f}getPluralCategory(f,_){switch(ve(_||this.locale)(f)){case me.Zero:return"zero";case me.One:return"one";case me.Two:return"two";case me.Few:return"few";case me.Many:return"many";default:return"other"}}static#e=this.\u0275fac=function(_){return new(_||S)(u.KVO(u.xe9))};static#t=this.\u0275prov=u.jDH({token:S,factory:S.\u0275fac})}return S})();function Xn(S,ne){ne=encodeURIComponent(ne);for(const f of S.split(";")){const _=f.indexOf("="),[x,K]=-1==_?[f,""]:[f.slice(0,_),f.slice(_+1)];if(x.trim()===ne)return decodeURIComponent(K)}return null}const zn=/\s+/,ri=[];let li=(()=>{class S{constructor(f,_){this._ngEl=f,this._renderer=_,this.initialClasses=ri,this.stateMap=new Map}set klass(f){this.initialClasses=null!=f?f.trim().split(zn):ri}set ngClass(f){this.rawClass="string"==typeof f?f.trim().split(zn):f}ngDoCheck(){for(const _ of this.initialClasses)this._updateState(_,!0);const f=this.rawClass;if(Array.isArray(f)||f instanceof Set)for(const _ of f)this._updateState(_,!0);else if(null!=f)for(const _ of Object.keys(f))this._updateState(_,!!f[_]);this._applyStateDiff()}_updateState(f,_){const x=this.stateMap.get(f);void 0!==x?(x.enabled!==_&&(x.changed=!0,x.enabled=_),x.touched=!0):this.stateMap.set(f,{enabled:_,changed:!0,touched:!0})}_applyStateDiff(){for(const f of this.stateMap){const _=f[0],x=f[1];x.changed?(this._toggleClass(_,x.enabled),x.changed=!1):x.touched||(x.enabled&&this._toggleClass(_,!1),this.stateMap.delete(_)),x.touched=!1}}_toggleClass(f,_){(f=f.trim()).length>0&&f.split(zn).forEach(x=>{_?this._renderer.addClass(this._ngEl.nativeElement,x):this._renderer.removeClass(this._ngEl.nativeElement,x)})}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(u.aKT),u.rXU(u.sFG))};static#t=this.\u0275dir=u.FsC({type:S,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return S})();class Ye{constructor(ne,f,_,x){this.$implicit=ne,this.ngForOf=f,this.index=_,this.count=x}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ge=(()=>{class S{set ngForOf(f){this._ngForOf=f,this._ngForOfDirty=!0}set ngForTrackBy(f){this._trackByFn=f}get ngForTrackBy(){return this._trackByFn}constructor(f,_,x){this._viewContainer=f,this._template=_,this._differs=x,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(f){f&&(this._template=f)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const f=this._ngForOf;!this._differ&&f&&(this._differ=this._differs.find(f).create(this.ngForTrackBy))}if(this._differ){const f=this._differ.diff(this._ngForOf);f&&this._applyChanges(f)}}_applyChanges(f){const _=this._viewContainer;f.forEachOperation((x,K,de)=>{if(null==x.previousIndex)_.createEmbeddedView(this._template,new Ye(x.item,this._ngForOf,-1,-1),null===de?void 0:de);else if(null==de)_.remove(null===K?void 0:K);else if(null!==K){const ze=_.get(K);_.move(ze,de),W(ze,x)}});for(let x=0,K=_.length;x{W(_.get(x.currentIndex),x)})}static ngTemplateContextGuard(f,_){return!0}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(u.c1b),u.rXU(u.C4Q),u.rXU(u._q3))};static#t=this.\u0275dir=u.FsC({type:S,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return S})();function W(S,ne){S.context.$implicit=ne.item}let se=(()=>{class S{constructor(f,_){this._viewContainer=f,this._context=new $e,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=_}set ngIf(f){this._context.$implicit=this._context.ngIf=f,this._updateView()}set ngIfThen(f){pt("ngIfThen",f),this._thenTemplateRef=f,this._thenViewRef=null,this._updateView()}set ngIfElse(f){pt("ngIfElse",f),this._elseTemplateRef=f,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(f,_){return!0}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(u.c1b),u.rXU(u.C4Q))};static#t=this.\u0275dir=u.FsC({type:S,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return S})();class $e{constructor(){this.$implicit=null,this.ngIf=null}}function pt(S,ne){if(ne&&!ne.createEmbeddedView)throw new Error(`${S} must be a TemplateRef, but received '${(0,u.Tbb)(ne)}'.`)}let ci=(()=>{class S{constructor(f,_,x){this._ngEl=f,this._differs=_,this._renderer=x,this._ngStyle=null,this._differ=null}set ngStyle(f){this._ngStyle=f,!this._differ&&f&&(this._differ=this._differs.find(f).create())}ngDoCheck(){if(this._differ){const f=this._differ.diff(this._ngStyle);f&&this._applyChanges(f)}}_setStyle(f,_){const[x,K]=f.split("."),de=-1===x.indexOf("-")?void 0:u.czy.DashCase;null!=_?this._renderer.setStyle(this._ngEl.nativeElement,x,K?`${_}${K}`:_,de):this._renderer.removeStyle(this._ngEl.nativeElement,x,de)}_applyChanges(f){f.forEachRemovedItem(_=>this._setStyle(_.key,null)),f.forEachAddedItem(_=>this._setStyle(_.key,_.currentValue)),f.forEachChangedItem(_=>this._setStyle(_.key,_.currentValue))}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(u.aKT),u.rXU(u.MKu),u.rXU(u.sFG))};static#t=this.\u0275dir=u.FsC({type:S,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return S})(),ki=(()=>{class S{constructor(f){this._viewContainerRef=f,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(f){if(this._shouldRecreateView(f)){const _=this._viewContainerRef;if(this._viewRef&&_.remove(_.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const x=this._createContextForwardProxy();this._viewRef=_.createEmbeddedView(this.ngTemplateOutlet,x,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(f){return!!f.ngTemplateOutlet||!!f.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(f,_,x)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,_,x),get:(f,_,x)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,_,x)}})}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(u.c1b))};static#t=this.\u0275dir=u.FsC({type:S,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[u.OA$]})}return S})();function Gn(S,ne){return new u.wOt(2100,!1)}class Rr{createSubscription(ne,f){return(0,u.O8t)(()=>ne.subscribe({next:f,error:_=>{throw _}}))}dispose(ne){(0,u.O8t)(()=>ne.unsubscribe())}}class uo{createSubscription(ne,f){return ne.then(f,_=>{throw _})}dispose(ne){}}const Fr=new uo,Ci=new Rr;let Lr=(()=>{class S{constructor(f){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=f}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(f){if(!this._obj){if(f)try{this.markForCheckOnValueUpdate=!1,this._subscribe(f)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return f!==this._obj?(this._dispose(),this.transform(f)):this._latestValue}_subscribe(f){this._obj=f,this._strategy=this._selectStrategy(f),this._subscription=this._strategy.createSubscription(f,_=>this._updateLatestValue(f,_))}_selectStrategy(f){if((0,u.jNT)(f))return Fr;if((0,u.zjR)(f))return Ci;throw Gn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(f,_){f===this._obj&&(this._latestValue=_,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(u.gRc,16))};static#t=this.\u0275pipe=u.EJ8({name:"async",type:S,pure:!1,standalone:!0})}return S})();const zi=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Bs=(()=>{class S{transform(f){if(null==f)return null;if("string"!=typeof f)throw Gn();return f.replace(zi,_=>_[0].toUpperCase()+_.slice(1).toLowerCase())}static#e=this.\u0275fac=function(_){return new(_||S)};static#t=this.\u0275pipe=u.EJ8({name:"titlecase",type:S,pure:!0,standalone:!0})}return S})();const ma=new u.nKC(""),ga=new u.nKC("");let Ul=(()=>{class S{constructor(f,_,x){this.locale=f,this.defaultTimezone=_,this.defaultOptions=x}transform(f,_,x,K){if(null==f||""===f||f!=f)return null;try{return on(f,_??this.defaultOptions?.dateFormat??"mediumDate",K||this.locale,x??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(de){throw Gn()}}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(u.xe9,16),u.rXU(ma,24),u.rXU(ga,24))};static#t=this.\u0275pipe=u.EJ8({name:"date",type:S,pure:!0,standalone:!0})}return S})();const vo=/#/g;let Lo=(()=>{class S{constructor(f){this._localization=f}transform(f,_,x){if(null==f)return"";if("object"!=typeof _||null===_)throw Gn();return _[function ln(S,ne,f,_){let x=`=${S}`;if(ne.indexOf(x)>-1||(x=f.getPluralCategory(S,_),ne.indexOf(x)>-1))return x;if(ne.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${S}"`)}(f,Object.keys(_),this._localization,x)].replace(vo,f.toString())}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(St,16))};static#t=this.\u0275pipe=u.EJ8({name:"i18nPlural",type:S,pure:!0,standalone:!0})}return S})(),js=(()=>{class S{static#e=this.\u0275fac=function(_){return new(_||S)};static#t=this.\u0275mod=u.$C({type:S});static#n=this.\u0275inj=u.G2t({})}return S})();const Hr="browser",Bo="server";function Uo(S){return S===Hr}function va(S){return S===Bo}let Hs=(()=>{class S{static#e=this.\u0275prov=(0,u.jDH)({token:S,providedIn:"root",factory:()=>Uo((0,u.WQX)(u.Agw))?new Qr((0,u.WQX)(oe),window):new gr})}return S})();class Qr{constructor(ne,f){this.document=ne,this.window=f,this.offset=()=>[0,0]}setOffset(ne){this.offset=Array.isArray(ne)?()=>ne:ne}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(ne){this.window.scrollTo(ne[0],ne[1])}scrollToAnchor(ne){const f=function Li(S,ne){const f=S.getElementById(ne)||S.getElementsByName(ne)[0];if(f)return f;if("function"==typeof S.createTreeWalker&&S.body&&"function"==typeof S.body.attachShadow){const _=S.createTreeWalker(S.body,NodeFilter.SHOW_ELEMENT);let x=_.currentNode;for(;x;){const K=x.shadowRoot;if(K){const de=K.getElementById(ne)||K.querySelector(`[name="${ne}"]`);if(de)return de}x=_.nextNode()}}return null}(this.document,ne);f&&(this.scrollToElement(f),f.focus())}setHistoryScrollRestoration(ne){this.window.history.scrollRestoration=ne}scrollToElement(ne){const f=ne.getBoundingClientRect(),_=f.left+this.window.pageXOffset,x=f.top+this.window.pageYOffset,K=this.offset();this.window.scrollTo(_-K[0],x-K[1])}}class gr{setOffset(ne){}getScrollPosition(){return[0,0]}scrollToPosition(ne){}scrollToAnchor(ne){}setHistoryScrollRestoration(ne){}}class zo{}},1626:(tn,Ne,v)=>{"use strict";v.d(Ne,{$R:()=>Pn,Nl:()=>qe,Qq:()=>Ot,b$:()=>vi,cS:()=>_n,yz:()=>pi});var u=v(467),y=v(4438),o=v(7673),L=v(1985),G=v(6648),ee=v(274),oe=v(5964),V=v(6354),P=v(980),B=v(5558),F=v(177);class ue{}class ge{}class Ee{constructor(Ye){this.normalizedNames=new Map,this.lazyUpdate=null,Ye?"string"==typeof Ye?this.lazyInit=()=>{this.headers=new Map,Ye.split("\n").forEach(Ge=>{const W=Ge.indexOf(":");if(W>0){const Te=Ge.slice(0,W),se=Te.toLowerCase(),$e=Ge.slice(W+1).trim();this.maybeSetNormalizedName(Te,se),this.headers.has(se)?this.headers.get(se).push($e):this.headers.set(se,[$e])}})}:typeof Headers<"u"&&Ye instanceof Headers?(this.headers=new Map,Ye.forEach((Ge,W)=>{this.setHeaderEntries(W,Ge)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Ye).forEach(([Ge,W])=>{this.setHeaderEntries(Ge,W)})}:this.headers=new Map}has(Ye){return this.init(),this.headers.has(Ye.toLowerCase())}get(Ye){this.init();const Ge=this.headers.get(Ye.toLowerCase());return Ge&&Ge.length>0?Ge[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Ye){return this.init(),this.headers.get(Ye.toLowerCase())||null}append(Ye,Ge){return this.clone({name:Ye,value:Ge,op:"a"})}set(Ye,Ge){return this.clone({name:Ye,value:Ge,op:"s"})}delete(Ye,Ge){return this.clone({name:Ye,value:Ge,op:"d"})}maybeSetNormalizedName(Ye,Ge){this.normalizedNames.has(Ge)||this.normalizedNames.set(Ge,Ye)}init(){this.lazyInit&&(this.lazyInit instanceof Ee?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Ye=>this.applyUpdate(Ye)),this.lazyUpdate=null))}copyFrom(Ye){Ye.init(),Array.from(Ye.headers.keys()).forEach(Ge=>{this.headers.set(Ge,Ye.headers.get(Ge)),this.normalizedNames.set(Ge,Ye.normalizedNames.get(Ge))})}clone(Ye){const Ge=new Ee;return Ge.lazyInit=this.lazyInit&&this.lazyInit instanceof Ee?this.lazyInit:this,Ge.lazyUpdate=(this.lazyUpdate||[]).concat([Ye]),Ge}applyUpdate(Ye){const Ge=Ye.name.toLowerCase();switch(Ye.op){case"a":case"s":let W=Ye.value;if("string"==typeof W&&(W=[W]),0===W.length)return;this.maybeSetNormalizedName(Ye.name,Ge);const Te=("a"===Ye.op?this.headers.get(Ge):void 0)||[];Te.push(...W),this.headers.set(Ge,Te);break;case"d":const se=Ye.value;if(se){let $e=this.headers.get(Ge);if(!$e)return;$e=$e.filter(pt=>-1===se.indexOf(pt)),0===$e.length?(this.headers.delete(Ge),this.normalizedNames.delete(Ge)):this.headers.set(Ge,$e)}else this.headers.delete(Ge),this.normalizedNames.delete(Ge)}}setHeaderEntries(Ye,Ge){const W=(Array.isArray(Ge)?Ge:[Ge]).map(se=>se.toString()),Te=Ye.toLowerCase();this.headers.set(Te,W),this.maybeSetNormalizedName(Ye,Te)}forEach(Ye){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ge=>Ye(this.normalizedNames.get(Ge),this.headers.get(Ge)))}}class ke{encodeKey(Ye){return gt(Ye)}encodeValue(Ye){return gt(Ye)}decodeKey(Ye){return decodeURIComponent(Ye)}decodeValue(Ye){return decodeURIComponent(Ye)}}const be=/%(\d[a-f0-9])/gi,Ze={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function gt(xe){return encodeURIComponent(xe).replace(be,(Ye,Ge)=>Ze[Ge]??Ye)}function je(xe){return`${xe}`}class qe{constructor(Ye={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Ye.encoder||new ke,Ye.fromString){if(Ye.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function te(xe,Ye){const Ge=new Map;return xe.length>0&&xe.replace(/^\?/,"").split("&").forEach(Te=>{const se=Te.indexOf("="),[$e,pt]=-1==se?[Ye.decodeKey(Te),""]:[Ye.decodeKey(Te.slice(0,se)),Ye.decodeValue(Te.slice(se+1))],lt=Ge.get($e)||[];lt.push(pt),Ge.set($e,lt)}),Ge}(Ye.fromString,this.encoder)}else Ye.fromObject?(this.map=new Map,Object.keys(Ye.fromObject).forEach(Ge=>{const W=Ye.fromObject[Ge],Te=Array.isArray(W)?W.map(je):[je(W)];this.map.set(Ge,Te)})):this.map=null}has(Ye){return this.init(),this.map.has(Ye)}get(Ye){this.init();const Ge=this.map.get(Ye);return Ge?Ge[0]:null}getAll(Ye){return this.init(),this.map.get(Ye)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Ye,Ge){return this.clone({param:Ye,value:Ge,op:"a"})}appendAll(Ye){const Ge=[];return Object.keys(Ye).forEach(W=>{const Te=Ye[W];Array.isArray(Te)?Te.forEach(se=>{Ge.push({param:W,value:se,op:"a"})}):Ge.push({param:W,value:Te,op:"a"})}),this.clone(Ge)}set(Ye,Ge){return this.clone({param:Ye,value:Ge,op:"s"})}delete(Ye,Ge){return this.clone({param:Ye,value:Ge,op:"d"})}toString(){return this.init(),this.keys().map(Ye=>{const Ge=this.encoder.encodeKey(Ye);return this.map.get(Ye).map(W=>Ge+"="+this.encoder.encodeValue(W)).join("&")}).filter(Ye=>""!==Ye).join("&")}clone(Ye){const Ge=new qe({encoder:this.encoder});return Ge.cloneFrom=this.cloneFrom||this,Ge.updates=(this.updates||[]).concat(Ye),Ge}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Ye=>this.map.set(Ye,this.cloneFrom.map.get(Ye))),this.updates.forEach(Ye=>{switch(Ye.op){case"a":case"s":const Ge=("a"===Ye.op?this.map.get(Ye.param):void 0)||[];Ge.push(je(Ye.value)),this.map.set(Ye.param,Ge);break;case"d":if(void 0===Ye.value){this.map.delete(Ye.param);break}{let W=this.map.get(Ye.param)||[];const Te=W.indexOf(je(Ye.value));-1!==Te&&W.splice(Te,1),W.length>0?this.map.set(Ye.param,W):this.map.delete(Ye.param)}}}),this.cloneFrom=this.updates=null)}}class ae{constructor(){this.map=new Map}set(Ye,Ge){return this.map.set(Ye,Ge),this}get(Ye){return this.map.has(Ye)||this.map.set(Ye,Ye.defaultValue()),this.map.get(Ye)}delete(Ye){return this.map.delete(Ye),this}has(Ye){return this.map.has(Ye)}keys(){return this.map.keys()}}function Le(xe){return typeof ArrayBuffer<"u"&&xe instanceof ArrayBuffer}function nt(xe){return typeof Blob<"u"&&xe instanceof Blob}function At(xe){return typeof FormData<"u"&&xe instanceof FormData}class Dt{constructor(Ye,Ge,W,Te){let se;if(this.url=Ge,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Ye.toUpperCase(),function me(xe){switch(xe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Te?(this.body=void 0!==W?W:null,se=Te):se=W,se&&(this.reportProgress=!!se.reportProgress,this.withCredentials=!!se.withCredentials,se.responseType&&(this.responseType=se.responseType),se.headers&&(this.headers=se.headers),se.context&&(this.context=se.context),se.params&&(this.params=se.params),this.transferCache=se.transferCache),this.headers??=new Ee,this.context??=new ae,this.params){const $e=this.params.toString();if(0===$e.length)this.urlWithParams=Ge;else{const pt=Ge.indexOf("?");this.urlWithParams=Ge+(-1===pt?"?":ptwn.set(Dn,Ye.setHeaders[Dn]),jt)),Ye.setParams&&(hn=Object.keys(Ye.setParams).reduce((wn,Dn)=>wn.set(Dn,Ye.setParams[Dn]),hn)),new Dt(Ge,W,$e,{params:hn,headers:jt,context:fn,reportProgress:lt,responseType:Te,withCredentials:pt,transferCache:se})}}var Zt=function(xe){return xe[xe.Sent=0]="Sent",xe[xe.UploadProgress=1]="UploadProgress",xe[xe.ResponseHeader=2]="ResponseHeader",xe[xe.DownloadProgress=3]="DownloadProgress",xe[xe.Response=4]="Response",xe[xe.User=5]="User",xe}(Zt||{});class Fn{constructor(Ye,Ge=200,W="OK"){this.headers=Ye.headers||new Ee,this.status=void 0!==Ye.status?Ye.status:Ge,this.statusText=Ye.statusText||W,this.url=Ye.url||null,this.ok=this.status>=200&&this.status<300}}class Vn extends Fn{constructor(Ye={}){super(Ye),this.type=Zt.ResponseHeader}clone(Ye={}){return new Vn({headers:Ye.headers||this.headers,status:void 0!==Ye.status?Ye.status:this.status,statusText:Ye.statusText||this.statusText,url:Ye.url||this.url||void 0})}}class _n extends Fn{constructor(Ye={}){super(Ye),this.type=Zt.Response,this.body=void 0!==Ye.body?Ye.body:null}clone(Ye={}){return new _n({body:void 0!==Ye.body?Ye.body:this.body,headers:Ye.headers||this.headers,status:void 0!==Ye.status?Ye.status:this.status,statusText:Ye.statusText||this.statusText,url:Ye.url||this.url||void 0})}}class pi extends Fn{constructor(Ye){super(Ye,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Ye.url||"(unknown url)"}`:`Http failure response for ${Ye.url||"(unknown url)"}: ${Ye.status} ${Ye.statusText}`,this.error=Ye.error||null}}function Ie(xe,Ye){return{body:Ye,headers:xe.headers,context:xe.context,observe:xe.observe,params:xe.params,reportProgress:xe.reportProgress,responseType:xe.responseType,withCredentials:xe.withCredentials,transferCache:xe.transferCache}}let Ot=(()=>{class xe{constructor(Ge){this.handler=Ge}request(Ge,W,Te={}){let se;if(Ge instanceof Dt)se=Ge;else{let lt,jt;lt=Te.headers instanceof Ee?Te.headers:new Ee(Te.headers),Te.params&&(jt=Te.params instanceof qe?Te.params:new qe({fromObject:Te.params})),se=new Dt(Ge,W,void 0!==Te.body?Te.body:null,{headers:lt,context:Te.context,params:jt,reportProgress:Te.reportProgress,responseType:Te.responseType||"json",withCredentials:Te.withCredentials,transferCache:Te.transferCache})}const $e=(0,o.of)(se).pipe((0,ee.H)(lt=>this.handler.handle(lt)));if(Ge instanceof Dt||"events"===Te.observe)return $e;const pt=$e.pipe((0,oe.p)(lt=>lt instanceof _n));switch(Te.observe||"body"){case"body":switch(se.responseType){case"arraybuffer":return pt.pipe((0,V.T)(lt=>{if(null!==lt.body&&!(lt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return lt.body}));case"blob":return pt.pipe((0,V.T)(lt=>{if(null!==lt.body&&!(lt.body instanceof Blob))throw new Error("Response is not a Blob.");return lt.body}));case"text":return pt.pipe((0,V.T)(lt=>{if(null!==lt.body&&"string"!=typeof lt.body)throw new Error("Response is not a string.");return lt.body}));default:return pt.pipe((0,V.T)(lt=>lt.body))}case"response":return pt;default:throw new Error(`Unreachable: unhandled observe type ${Te.observe}}`)}}delete(Ge,W={}){return this.request("DELETE",Ge,W)}get(Ge,W={}){return this.request("GET",Ge,W)}head(Ge,W={}){return this.request("HEAD",Ge,W)}jsonp(Ge,W){return this.request("JSONP",Ge,{params:(new qe).append(W,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ge,W={}){return this.request("OPTIONS",Ge,W)}patch(Ge,W,Te={}){return this.request("PATCH",Ge,Ie(Te,W))}post(Ge,W,Te={}){return this.request("POST",Ge,Ie(Te,W))}put(Ge,W,Te={}){return this.request("PUT",Ge,Ie(Te,W))}static#e=this.\u0275fac=function(W){return new(W||xe)(y.KVO(ue))};static#t=this.\u0275prov=y.jDH({token:xe,factory:xe.\u0275fac})}return xe})();const Pe=/^\)\]\}',?\n/;function Xe(xe){if(xe.url)return xe.url;const Ye="X-Request-URL".toLocaleLowerCase();return xe.headers.get(Ye)}let Je=(()=>{class xe{constructor(){this.fetchImpl=(0,y.WQX)(Me,{optional:!0})?.fetch??((...Ge)=>globalThis.fetch(...Ge)),this.ngZone=(0,y.WQX)(y.SKi)}handle(Ge){return new L.c(W=>{const Te=new AbortController;return this.doRequest(Ge,Te.signal,W).then(ie,se=>W.error(new pi({error:se}))),()=>Te.abort()})}doRequest(Ge,W,Te){var se=this;return(0,u.A)(function*(){const $e=se.createRequestInit(Ge);let pt;try{const jn=se.ngZone.runOutsideAngular(()=>se.fetchImpl(Ge.urlWithParams,{signal:W,...$e}));(function ve(xe){xe.then(ie,ie)})(jn),Te.next({type:Zt.Sent}),pt=yield jn}catch(jn){return void Te.error(new pi({error:jn,status:jn.status??0,statusText:jn.statusText,url:Ge.urlWithParams,headers:jn.headers}))}const lt=new Ee(pt.headers),jt=pt.statusText,hn=Xe(pt)??Ge.urlWithParams;let fn=pt.status,wn=null;if(Ge.reportProgress&&Te.next(new Vn({headers:lt,status:fn,statusText:jt,url:hn})),pt.body){const jn=pt.headers.get("content-length"),$n=[],ci=pt.body.getReader();let ei,Gn,ki=0;const Rr=typeof Zone<"u"&&Zone.current;yield se.ngZone.runOutsideAngular((0,u.A)(function*(){for(;;){const{done:Fr,value:Ci}=yield ci.read();if(Fr)break;if($n.push(Ci),ki+=Ci.length,Ge.reportProgress){Gn="text"===Ge.responseType?(Gn??"")+(ei??=new TextDecoder).decode(Ci,{stream:!0}):void 0;const Lr=()=>Te.next({type:Zt.DownloadProgress,total:jn?+jn:void 0,loaded:ki,partialText:Gn});Rr?Rr.run(Lr):Lr()}}}));const uo=se.concatChunks($n,ki);try{const Fr=pt.headers.get("Content-Type")??"";wn=se.parseBody(Ge,uo,Fr)}catch(Fr){return void Te.error(new pi({error:Fr,headers:new Ee(pt.headers),status:pt.status,statusText:pt.statusText,url:Xe(pt)??Ge.urlWithParams}))}}0===fn&&(fn=wn?200:0),fn>=200&&fn<300?(Te.next(new _n({body:wn,headers:lt,status:fn,statusText:jt,url:hn})),Te.complete()):Te.error(new pi({error:wn,headers:lt,status:fn,statusText:jt,url:hn}))})()}parseBody(Ge,W,Te){switch(Ge.responseType){case"json":const se=(new TextDecoder).decode(W).replace(Pe,"");return""===se?null:JSON.parse(se);case"text":return(new TextDecoder).decode(W);case"blob":return new Blob([W],{type:Te});case"arraybuffer":return W.buffer}}createRequestInit(Ge){const W={},Te=Ge.withCredentials?"include":void 0;if(Ge.headers.forEach((se,$e)=>W[se]=$e.join(",")),Ge.headers.has("Accept")||(W.Accept="application/json, text/plain, */*"),!Ge.headers.has("Content-Type")){const se=Ge.detectContentTypeHeader();null!==se&&(W["Content-Type"]=se)}return{body:Ge.serializeBody(),method:Ge.method,headers:W,credentials:Te}}concatChunks(Ge,W){const Te=new Uint8Array(W);let se=0;for(const $e of Ge)Te.set($e,se),se+=$e.length;return Te}static#e=this.\u0275fac=function(W){return new(W||xe)};static#t=this.\u0275prov=y.jDH({token:xe,factory:xe.\u0275fac})}return xe})();class Me{}function ie(){}function le(xe,Ye){return Ye(xe)}const it=new y.nKC(""),It=new y.nKC(""),Ft=new y.nKC("",{providedIn:"root",factory:()=>!0});let qt=(()=>{class xe extends ue{constructor(Ge,W){super(),this.backend=Ge,this.injector=W,this.chain=null,this.pendingTasks=(0,y.WQX)(y.TgB),this.contributeToStability=(0,y.WQX)(Ft)}handle(Ge){if(null===this.chain){const W=Array.from(new Set([...this.injector.get(it),...this.injector.get(It,[])]));this.chain=W.reduceRight((Te,se)=>function dt(xe,Ye,Ge){return(W,Te)=>(0,y.N4e)(Ge,()=>Ye(W,se=>xe(se,Te)))}(Te,se,this.injector),le)}if(this.contributeToStability){const W=this.pendingTasks.add();return this.chain(Ge,Te=>this.backend.handle(Te)).pipe((0,P.j)(()=>this.pendingTasks.remove(W)))}return this.chain(Ge,W=>this.backend.handle(W))}static#e=this.\u0275fac=function(W){return new(W||xe)(y.KVO(ge),y.KVO(y.uvJ))};static#t=this.\u0275prov=y.jDH({token:xe,factory:xe.\u0275fac})}return xe})();const et=/^\)\]\}',?\n/;let Bt=(()=>{class xe{constructor(Ge){this.xhrFactory=Ge}handle(Ge){if("JSONP"===Ge.method)throw new y.wOt(-2800,!1);const W=this.xhrFactory;return(W.\u0275loadImpl?(0,G.H)(W.\u0275loadImpl()):(0,o.of)(null)).pipe((0,B.n)(()=>new L.c(se=>{const $e=W.build();if($e.open(Ge.method,Ge.urlWithParams),Ge.withCredentials&&($e.withCredentials=!0),Ge.headers.forEach(($n,ci)=>$e.setRequestHeader($n,ci.join(","))),Ge.headers.has("Accept")||$e.setRequestHeader("Accept","application/json, text/plain, */*"),!Ge.headers.has("Content-Type")){const $n=Ge.detectContentTypeHeader();null!==$n&&$e.setRequestHeader("Content-Type",$n)}if(Ge.responseType){const $n=Ge.responseType.toLowerCase();$e.responseType="json"!==$n?$n:"text"}const pt=Ge.serializeBody();let lt=null;const jt=()=>{if(null!==lt)return lt;const $n=$e.statusText||"OK",ci=new Ee($e.getAllResponseHeaders()),ki=function $t(xe){return"responseURL"in xe&&xe.responseURL?xe.responseURL:/^X-Request-URL:/m.test(xe.getAllResponseHeaders())?xe.getResponseHeader("X-Request-URL"):null}($e)||Ge.url;return lt=new Vn({headers:ci,status:$e.status,statusText:$n,url:ki}),lt},hn=()=>{let{headers:$n,status:ci,statusText:ki,url:ei}=jt(),Gn=null;204!==ci&&(Gn=typeof $e.response>"u"?$e.responseText:$e.response),0===ci&&(ci=Gn?200:0);let Rr=ci>=200&&ci<300;if("json"===Ge.responseType&&"string"==typeof Gn){const uo=Gn;Gn=Gn.replace(et,"");try{Gn=""!==Gn?JSON.parse(Gn):null}catch(Fr){Gn=uo,Rr&&(Rr=!1,Gn={error:Fr,text:Gn})}}Rr?(se.next(new _n({body:Gn,headers:$n,status:ci,statusText:ki,url:ei||void 0})),se.complete()):se.error(new pi({error:Gn,headers:$n,status:ci,statusText:ki,url:ei||void 0}))},fn=$n=>{const{url:ci}=jt(),ki=new pi({error:$n,status:$e.status||0,statusText:$e.statusText||"Unknown Error",url:ci||void 0});se.error(ki)};let wn=!1;const Dn=$n=>{wn||(se.next(jt()),wn=!0);let ci={type:Zt.DownloadProgress,loaded:$n.loaded};$n.lengthComputable&&(ci.total=$n.total),"text"===Ge.responseType&&$e.responseText&&(ci.partialText=$e.responseText),se.next(ci)},jn=$n=>{let ci={type:Zt.UploadProgress,loaded:$n.loaded};$n.lengthComputable&&(ci.total=$n.total),se.next(ci)};return $e.addEventListener("load",hn),$e.addEventListener("error",fn),$e.addEventListener("timeout",fn),$e.addEventListener("abort",fn),Ge.reportProgress&&($e.addEventListener("progress",Dn),null!==pt&&$e.upload&&$e.upload.addEventListener("progress",jn)),$e.send(pt),se.next({type:Zt.Sent}),()=>{$e.removeEventListener("error",fn),$e.removeEventListener("abort",fn),$e.removeEventListener("load",hn),$e.removeEventListener("timeout",fn),Ge.reportProgress&&($e.removeEventListener("progress",Dn),null!==pt&&$e.upload&&$e.upload.removeEventListener("progress",jn)),$e.readyState!==$e.DONE&&$e.abort()}})))}static#e=this.\u0275fac=function(W){return new(W||xe)(y.KVO(F.N0))};static#t=this.\u0275prov=y.jDH({token:xe,factory:xe.\u0275fac})}return xe})();const Vt=new y.nKC(""),Ln=new y.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Jt=new y.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class En{}let He=(()=>{class xe{constructor(Ge,W,Te){this.doc=Ge,this.platform=W,this.cookieName=Te,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ge=this.doc.cookie||"";return Ge!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,F._b)(Ge,this.cookieName),this.lastCookieString=Ge),this.lastToken}static#e=this.\u0275fac=function(W){return new(W||xe)(y.KVO(F.qQ),y.KVO(y.Agw),y.KVO(Ln))};static#t=this.\u0275prov=y.jDH({token:xe,factory:xe.\u0275fac})}return xe})();function Be(xe,Ye){const Ge=xe.url.toLowerCase();if(!(0,y.WQX)(Vt)||"GET"===xe.method||"HEAD"===xe.method||Ge.startsWith("http://")||Ge.startsWith("https://"))return Ye(xe);const W=(0,y.WQX)(En).getToken(),Te=(0,y.WQX)(Jt);return null!=W&&!xe.headers.has(Te)&&(xe=xe.clone({headers:xe.headers.set(Te,W)})),Ye(xe)}var Ke=function(xe){return xe[xe.Interceptors=0]="Interceptors",xe[xe.LegacyInterceptors=1]="LegacyInterceptors",xe[xe.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",xe[xe.NoXsrfProtection=3]="NoXsrfProtection",xe[xe.JsonpSupport=4]="JsonpSupport",xe[xe.RequestsMadeViaParent=5]="RequestsMadeViaParent",xe[xe.Fetch=6]="Fetch",xe}(Ke||{});function Pn(...xe){const Ye=[Ot,Bt,qt,{provide:ue,useExisting:qt},{provide:ge,useFactory:()=>(0,y.WQX)(Je,{optional:!0})??(0,y.WQX)(Bt)},{provide:it,useValue:Be,multi:!0},{provide:Vt,useValue:!0},{provide:En,useClass:He}];for(const Ge of xe)Ye.push(...Ge.\u0275providers);return(0,y.EmA)(Ye)}function vi(xe){return function zt(xe,Ye){return{\u0275kind:xe,\u0275providers:Ye}}(Ke.Interceptors,xe.map(Ye=>({provide:it,useValue:Ye,multi:!0})))}},4438:(tn,Ne,v)=>{"use strict";function u(e,t){return Object.is(e,t)}v.d(Ne,{bc$:()=>Ng,iLQ:()=>Sy,sZ2:()=>lf,hnV:()=>M1,wjH:()=>Th,o8S:()=>Mc,BIS:()=>Pg,gRc:()=>W1,Ql9:()=>UM,OM3:()=>Eh,Ocv:()=>GM,Z63:()=>ss,aKT:()=>Ut,uvJ:()=>po,zcH:()=>fe,bkB:()=>Va,$GK:()=>zi,nKC:()=>Bn,zZn:()=>Es,_q3:()=>NE,MKu:()=>PE,xe9:()=>TE,Co$:()=>bC,Vns:()=>Sh,SKi:()=>mo,Xx1:()=>Qr,Agw:()=>Zd,PLl:()=>cf,rOR:()=>Un,sFG:()=>nw,_9s:()=>zm,czy:()=>Af,WPN:()=>Rl,kdw:()=>gr,C4Q:()=>dh,NYb:()=>RM,giA:()=>T1,RxE:()=>b1,c1b:()=>zf,gXe:()=>Ko,mal:()=>sy,Tzd:()=>MC,L39:()=>GO,EWP:()=>YO,sbv:()=>sl,Ol2:()=>Aw,w6W:()=>US,QZP:()=>CS,Rfq:()=>He,oKB:()=>Qo,WQX:()=>Di,naY:()=>tO,Hps:()=>h,QuC:()=>Yo,EmA:()=>ao,Udg:()=>KO,HJs:()=>tR,N4e:()=>sc,vPA:()=>H,O8t:()=>QO,H3F:()=>w1,H8p:()=>So,KH2:()=>dp,TgB:()=>bc,wOt:()=>Rt,WHO:()=>S1,e01:()=>A1,lNU:()=>Ft,h9k:()=>iv,$MX:()=>Ef,ZF7:()=>Yu,Kcf:()=>rb,e5t:()=>lb,UyX:()=>sb,cWb:()=>ob,osQ:()=>ab,H5H:()=>nE,Zy3:()=>kn,mq5:()=>ID,JZv:()=>et,TL3:()=>SO,LfX:()=>St,plB:()=>xc,jNT:()=>DE,zjR:()=>I1,ngT:()=>c,TL$:()=>BE,Tbb:()=>Ln,rcV:()=>Zl,nM4:()=>mC,Vt3:()=>Dw,GFd:()=>yC,OA$:()=>Ms,Jv_:()=>Ux,aNF:()=>Vx,R7$:()=>Tv,BMQ:()=>Vw,HbH:()=>dD,ZvI:()=>_D,AVh:()=>Kw,BUC:()=>yD,vxM:()=>CD,wni:()=>ux,C6U:()=>px,VBU:()=>Ss,FsC:()=>Cl,jDH:()=>wi,G2t:()=>Or,$C:()=>Ra,EJ8:()=>ka,rXU:()=>id,nrm:()=>Jw,eu8:()=>qw,bVm:()=>my,qex:()=>py,k0s:()=>fy,j41:()=>hy,RV6:()=>TD,xGo:()=>Rs,Mr5:()=>eE,KVO:()=>Ir,kS0:()=>Xl,QTQ:()=>Mv,bIt:()=>oE,lsd:()=>fx,joV:()=>Wh,qSk:()=>Su,XpG:()=>qD,nI1:()=>e1,bMT:()=>t1,i5U:()=>n1,SdG:()=>tx,NAR:()=>ex,Y8G:()=>zw,FS9:()=>lE,Mz_:()=>by,lJ4:()=>$x,eq3:()=>zx,l_i:()=>Wx,sMw:()=>Gx,ziG:()=>Kx,lV:()=>Xx,NyB:()=>mx,mGM:()=>hx,sdS:()=>gx,Dyx:()=>xD,Z7z:()=>DD,Njj:()=>bu,eBV:()=>Ad,npT:()=>rv,f$h:()=>sm,B4B:()=>om,n$t:()=>ov,Aen:()=>ic,xc7:()=>Gw,Kam:()=>sE,zvX:()=>tE,DNE:()=>Iw,C5r:()=>r1,EFF:()=>Sx,JRh:()=>uE,SpI:()=>wy,Lme:()=>dE,DH7:()=>Px,mxI:()=>fE,R50:()=>hE,GBs:()=>dx});let y=null,o=!1,L=1;const G=Symbol("SIGNAL");function ee(e){const t=y;return y=e,t}const B={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 F(e){if(o)throw new Error("");if(null===y)return;y.consumerOnSignalRead(e);const t=y.nextProducerIndex++;ae(y),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ze(e){ae(e);for(let t=0;t0}function ae(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function me(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Le(e){return void 0!==e.producerNode}function nt(e){const t=Object.create(Zt);t.computation=e;const n=()=>{if(ge(t),F(t),t.value===Dt)throw t.error;return t.value};return n[G]=t,n}const At=Symbol("UNSET"),vt=Symbol("COMPUTING"),Dt=Symbol("ERRORED"),Zt={...B,value:At,dirty:!0,error:null,equal:u,producerMustRecompute:e=>e.value===At||e.value===vt,producerRecomputeValue(e){if(e.value===vt)throw new Error("Detected cycle in computations.");const t=e.value;e.value=vt;const n=te(e);let r;try{r=e.computation()}catch(l){r=Dt,e.error=l}finally{be(e,n)}t!==At&&t!==Dt&&r!==Dt&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}};let Vn=function Fn(){throw new Error};function _n(){Vn()}let _e=null;function Ot(e,t){Re()||_n(),e.equal(e.value,t)||(e.value=t,function Je(e){e.version++,function ue(){L++}(),Ee(e),_e?.()}(e))}const Xe={...B,equal:u,value:void 0};const ie=()=>{},ve={...B,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:ie};var Ce=v(4412),dt=v(1413),un=v(8359),it=v(6354);const Ft="https://g.co/ng/security#xss";class Rt extends Error{constructor(t,n){super(kn(t,n)),this.code=t}}function kn(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function bt(e){return{toString:e}.toString()}const Q="__parameters__";function ce(e,t,n){return bt(()=>{const r=function $(e){return function(...n){if(e){const r=e(...n);for(const l in r)this[l]=r[l]}}}(t);function l(...d){if(this instanceof l)return r.apply(this,d),this;const m=new l(...d);return w.annotation=m,w;function w(A,j,Z){const Ve=A.hasOwnProperty(Q)?A[Q]:Object.defineProperty(A,Q,{value:[]})[Q];for(;Ve.length<=Z;)Ve.push(null);return(Ve[Z]=Ve[Z]||[]).push(m),A}}return n&&(l.prototype=Object.create(n.prototype)),l.prototype.ngMetadataName=e,l.annotationCls=l,l})}const et=globalThis;function Vt(e){for(let t in e)if(e[t]===Vt)return t;throw Error("Could not find renamed property on target object.")}function Mn(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ln(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ln).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ei(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const En=Vt({__forward_ref__:Vt});function He(e){return e.__forward_ref__=He,e.toString=function(){return Ln(this())},e}function Be(e){return ye(e)?e():e}function ye(e){return"function"==typeof e&&e.hasOwnProperty(En)&&e.__forward_ref__===He}function wi(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Or(e){return{providers:e.providers||[],imports:e.imports||[]}}function ft(e){return ln(e,Xn)||ln(e,ri)}function St(e){return null!==ft(e)}function ln(e,t){return e.hasOwnProperty(t)?e[t]:null}function An(e){return e&&(e.hasOwnProperty(zn)||e.hasOwnProperty(li))?e[zn]:null}const Xn=Vt({\u0275prov:Vt}),zn=Vt({\u0275inj:Vt}),ri=Vt({ngInjectableDef:Vt}),li=Vt({ngInjectorDef:Vt});class Bn{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=wi({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function hn(e){return e&&!!e.\u0275providers}const fn=Vt({\u0275cmp:Vt}),wn=Vt({\u0275dir:Vt}),Dn=Vt({\u0275pipe:Vt}),jn=Vt({\u0275mod:Vt}),$n=Vt({\u0275fac:Vt}),ci=Vt({__NG_ELEMENT_ID__:Vt}),ki=Vt({__NG_ENV_ID__:Vt});function ei(e){return"string"==typeof e?e:null==e?"":String(e)}function $o(e,t){throw new Rt(-201,!1)}var zi=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}(zi||{});let Bs;function ns(){return Bs}function oo(e){const t=Bs;return Bs=e,t}function ma(e,t,n){const r=ft(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&zi.Optional?null:void 0!==t?t:void $o()}const vo={},Lo="__NG_DI_FLAG__",Sr="ngTempTokenPath",hr=/\n/gm,no="__source";let Ii;function Ar(e){const t=Ii;return Ii=e,t}function Tr(e,t=zi.Default){if(void 0===Ii)throw new Rt(-203,!1);return null===Ii?ma(e,void 0,t):Ii.get(e,t&zi.Optional?null:void 0,t)}function Ir(e,t=zi.Default){return(ns()||Tr)(Be(e),t)}function Di(e,t=zi.Default){return Ir(e,js(t))}function js(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Hr(e){const t=[];for(let n=0;nArray.isArray(n)?Io(n,t):t(n))}function Eo(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function $s(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Co(e,t,n){let r=Ta(e,t);return r>=0?e[1|r]=n:(r=~r,function Wo(e,t,n,r){let l=e.length;if(l==t)e.push(n,r);else if(1===l)e.push(r,e[0]),e[0]=n;else{for(l--,e.push(e[l-1],e[l]);l>t;)e[l]=e[l-2],l--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function zs(e,t){const n=Ta(e,t);if(n>=0)return e[1|n]}function Ta(e,t){return function Cs(e,t,n){let r=0,l=e.length>>n;for(;l!==r;){const d=r+(l-r>>1),m=e[d<t?l=d:r=d+1}return~(l<t){m=d-1;break}}}for(;d-1){let d;for(;++ld?"":l[Z+1].toLowerCase(),2&r&&j!==Ve){if(X(r))return!1;m=!0}}}}else{if(!m&&!X(r)&&!X(A))return!1;if(m&&X(A))continue;m=!1,r=A|1&r}}return X(r)||m}function X(e){return!(1&e)}function k(e,t,n,r){if(null===t)return-1;let l=0;if(r||!n){let d=!1;for(;l-1)for(n++;n0?'="'+w+'"':"")+"]"}else 8&r?l+="."+m:4&r&&(l+=" "+m);else""!==l&&!X(m)&&(t+=_o(d,l),l=""),r=m,d=d||!X(r);n++}return""!==l&&(t+=_o(d,l)),t}function Ss(e){return bt(()=>{const t=Na(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ws.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ko.Emulated,styles:e.styles||or,_:null,schemas:e.schemas||null,tView:null,id:""};As(n);const r=e.dependencies;return n.directiveDefs=la(r,!1),n.pipeDefs=la(r,!0),n.id=function Gs(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const l of n)t=Math.imul(31,t)+l.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function Oa(e){return Wi(e)||Jr(e)}function aa(e){return null!==e}function Ra(e){return bt(()=>({type:e.type,bootstrap:e.bootstrap||or,declarations:e.declarations||or,imports:e.imports||or,exports:e.exports||or,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ho(e,t){if(null==e)return Go;const n={};for(const r in e)if(e.hasOwnProperty(r)){const l=e[r];let d,m,w=Mo.None;Array.isArray(l)?(w=l[0],d=l[1],m=l[2]??d):(d=l,m=l),t?(n[d]=w!==Mo.None?[r,w]:r,t[d]=m):n[d]=r}return n}function Cl(e){return bt(()=>{const t=Na(e);return As(t),t})}function ka(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Wi(e){return e[fn]||null}function Jr(e){return e[wn]||null}function qr(e){return e[Dn]||null}function Yo(e){const t=Wi(e)||Jr(e)||qr(e);return null!==t&&t.standalone}function fo(e,t){const n=e[jn]||null;if(!n&&!0===t)throw new Error(`Type ${Ln(e)} does not have '\u0275mod' property.`);return n}function Na(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Go,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||or,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ho(e.inputs,t),outputs:ho(e.outputs),debugInfo:null}}function As(e){e.features?.forEach(t=>t(e))}function la(e,t){if(!e)return null;const n=t?qr:Oa;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(aa)}function ao(e){return{\u0275providers:e}}function Qo(...e){return{\u0275providers:Pa(0,e),\u0275fromNgModule:!0}}function Pa(e,...t){const n=[],r=new Set;let l;const d=m=>{n.push(m)};return Io(t,m=>{const w=m;Ho(w,d,[],r)&&(l||=[],l.push(w))}),void 0!==l&&Ks(l,d),n}function Ks(e,t){for(let n=0;n{t(d,r)})}}function Ho(e,t,n,r){if(!(e=Be(e)))return!1;let l=null,d=An(e);const m=!d&&Wi(e);if(d||m){if(m&&!m.standalone)return!1;l=e}else{const A=e.ngModule;if(d=An(A),!d)return!1;l=A}const w=r.has(l);if(m){if(w)return!1;if(r.add(l),m.dependencies){const A="function"==typeof m.dependencies?m.dependencies():m.dependencies;for(const j of A)Ho(j,t,n,r)}}else{if(!d)return!1;{if(null!=d.imports&&!w){let j;r.add(l);try{Io(d.imports,Z=>{Ho(Z,t,n,r)&&(j||=[],j.push(Z))})}finally{}void 0!==j&&Ks(j,t)}if(!w){const j=so(l)||(()=>new l);t({provide:l,useFactory:j,deps:or},l),t({provide:Vo,useValue:l,multi:!0},l),t({provide:ss,useValue:()=>Ir(l),multi:!0},l)}const A=d.providers;if(null!=A&&!w){const j=e;_a(A,Z=>{t(Z,j)})}}}return l!==e&&void 0!==e.providers}function _a(e,t){for(let n of e)hn(n)&&(n=n.\u0275providers),Array.isArray(n)?_a(n,t):t(n)}const Xs=Vt({provide:String,useValue:Vt});function Ga(e){return null!==e&&"object"==typeof e&&Xs in e}function Ts(e){return"function"==typeof e}const So=new Bn(""),_s={},Oc={};let Is;function Ka(){return void 0===Is&&(Is=new jo),Is}class po{}class Xa extends po{get destroyed(){return this._destroyed}constructor(t,n,r,l){super(),this.parent=n,this.source=r,this.scopes=l,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ua(t,m=>this.processProvider(m)),this.records.set(br,ca(void 0,this)),l.has("environment")&&this.records.set(po,ca(void 0,this));const d=this.records.get(So);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(Vo,or,zi.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=ee(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ee(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Ar(this),r=oo(void 0);try{return t()}finally{Ar(n),oo(r)}}get(t,n=vo,r=zi.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(ki))return t[ki](this);r=js(r);const d=Ar(this),m=oo(void 0);try{if(!(r&zi.SkipSelf)){let A=this.records.get(t);if(void 0===A){const j=function fl(e){return"function"==typeof e||"object"==typeof e&&e instanceof Bn}(t)&&ft(t);A=j&&this.injectableDefInScope(j)?ca(ys(t),_s):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(r&zi.Self?Ka():this.parent).get(t,n=r&zi.Optional&&n===vo?null:n)}catch(w){if("NullInjectorError"===w.name){if((w[Sr]=w[Sr]||[]).unshift(Ln(t)),d)throw w;return function va(e,t,n,r){const l=e[Sr];throw t[no]&&l.unshift(t[no]),e.message=function gs(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let l=Ln(t);if(Array.isArray(t))l=t.map(Ln).join(" -> ");else if("object"==typeof t){let d=[];for(let m in t)if(t.hasOwnProperty(m)){let w=t[m];d.push(m+":"+("string"==typeof w?JSON.stringify(w):Ln(w)))}l=`{${d.join(", ")}}`}return`${n}${r?"("+r+")":""}[${l}]: ${e.replace(hr,"\n ")}`}("\n"+e.message,l,n,r),e.ngTokenPath=l,e[Sr]=null,e}(w,t,"R3InjectorError",this.source)}throw w}finally{oo(m),Ar(d)}}resolveInjectorInitializers(){const t=ee(null),n=Ar(this),r=oo(void 0);try{const d=this.get(ss,or,zi.Self);for(const m of d)m()}finally{Ar(n),oo(r),ee(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Ln(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Rt(205,!1)}processProvider(t){let n=Ts(t=Be(t))?t:Be(t&&t.provide);const r=function ur(e){return Ga(e)?ca(void 0,e.useValue):ca(bs(e),_s)}(t);if(!Ts(t)&&!0===t.multi){let l=this.records.get(n);l||(l=ca(void 0,_s,!0),l.factory=()=>Hr(l.multi),this.records.set(n,l)),n=t,l.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=ee(null);try{return n.value===_s&&(n.value=Oc,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Gr(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{ee(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Be(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function ys(e){const t=ft(e),n=null!==t?t.factory:so(e);if(null!==n)return n;if(e instanceof Bn)throw new Rt(204,!1);if(e instanceof Function)return function Rc(e){if(e.length>0)throw new Rt(204,!1);const n=function yn(e){return e&&(e[Xn]||e[ri])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Rt(204,!1)}function bs(e,t,n){let r;if(Ts(e)){const l=Be(e);return so(l)||ys(l)}if(Ga(e))r=()=>Be(e.useValue);else if(function Fa(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Hr(e.deps||[]));else if(function Zo(e){return!(!e||!e.useExisting)}(e))r=()=>Ir(Be(e.useExisting));else{const l=Be(e&&(e.useClass||e.provide));if(!function Wr(e){return!!e.deps}(e))return so(l)||ys(l);r=()=>new l(...Hr(e.deps))}return r}function ca(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ua(e,t){for(const n of e)Array.isArray(n)?ua(n,t):n&&hn(n)?ua(n.\u0275providers,t):t(n)}function sc(e,t){e instanceof Xa&&e.assertNotDestroyed();const r=Ar(e),l=oo(void 0);try{return t()}finally{Ar(r),oo(l)}}function da(){return void 0!==ns()||null!=function rs(){return Ii}()}function ir(e){if(!da())throw new Rt(-203,!1)}const xt=0,Ht=1,cn=2,Rn=3,pn=4,Tn=5,Nn=6,Yn=7,Sn=8,ui=9,di=10,On=11,Si=12,Ai=13,qi=14,Pi=15,er=16,lo=17,Er=18,sr=19,Zn=20,gi=21,tr=22,pr=23,Jn=25,Cr=1,$r=7,cs=9,kr=10;var Qs=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Qs||{});function Ur(e){return Array.isArray(e)&&"object"==typeof e[Cr]}function yo(e){return Array.isArray(e)&&!0===e[Cr]}function ws(e){return!!(4&e.flags)}function Do(e){return e.componentOffset>-1}function yi(e){return!(1&~e.flags)}function eo(e){return!!e.template}function ha(e){return!!(512&e[cn])}class qo{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function La(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function Ms(){return Dl}function Dl(e){return e.type.prototype.ngOnChanges&&(e.setInput=lc),vd}function vd(){const e=Ph(this),t=e?.current;if(t){const n=e.previous;if(n===Go)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function lc(e,t,n,r,l){const d=this.declaredInputs[r],m=Ph(e)||function mp(e,t){return e[Nh]=t}(e,{previous:Go,current:null}),w=m.current||(m.current={}),A=m.previous,j=A[d];w[d]=new qo(j&&j.currentValue,n,A===Go),La(e,t,l,n)}Ms.ngInherit=!0;const Nh="__ngSimpleChanges__";function Ph(e){return e[Nh]||null}const Za=function(e,t,n){},Fh="svg";function Mr(e){for(;Array.isArray(e);)e=e[xt];return e}function kc(e,t){return Mr(t[e])}function Os(e,t){return Mr(t[e.index])}function Nc(e,t){return e.data[t]}function cc(e,t){return e[t]}function fa(e,t){const n=t[e];return Ur(n)?n:n[xt]}function Ja(e){return!(128&~e[cn])}function Zs(e,t){return null==t?null:e[t]}function gu(e){e[lo]=0}function vu(e){1024&e[cn]||(e[cn]|=1024,Ja(e)&&Hl(e))}function Pc(e){return!!(9216&e[cn]||e[pr]?.dirty)}function bd(e){e[di].changeDetectionScheduler?.notify(8),64&e[cn]&&(e[cn]|=1024),Pc(e)&&Hl(e)}function Hl(e){e[di].changeDetectionScheduler?.notify(0);let t=qa(e);for(;null!==t&&!(8192&t[cn])&&(t[cn]|=8192,Ja(t));)t=qa(t)}function Fc(e,t){if(!(256&~e[cn]))throw new Rt(911,!1);null===e[gi]&&(e[gi]=[]),e[gi].push(t)}function qa(e){const t=e[Rn];return yo(t)?t[Rn]:t}const Gi={lFrame:Hh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Cd=!1;function _u(){return Gi.bindingsEnabled}function $l(){return null!==Gi.skipHydrationRootTNode}function gn(){return Gi.lFrame.lView}function ar(){return Gi.lFrame.tView}function Ad(e){return Gi.lFrame.contextLView=e,e[Sn]}function bu(e){return Gi.lFrame.contextLView=null,e}function _r(){let e=wu();for(;null!==e&&64===e.type;)e=e.parent;return e}function wu(){return Gi.lFrame.currentTNode}function Ba(e,t){const n=Gi.lFrame;n.currentTNode=e,n.isParent=t}function Td(){return Gi.lFrame.isParent}function Eu(){Gi.lFrame.isParent=!1}function Id(){return Cd}function Md(e){Cd=e}function Ao(){const e=Gi.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function tl(){return Gi.lFrame.bindingIndex++}function gl(e){const t=Gi.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Du(e,t){const n=Gi.lFrame;n.bindingIndex=n.bindingRootIndex=e,dc(t)}function dc(e){Gi.lFrame.currentDirectiveIndex=e}function Vh(e){const t=Gi.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function xu(){return Gi.lFrame.currentQueryIndex}function Od(e){Gi.lFrame.currentQueryIndex=e}function xp(e){const t=e[Ht];return 2===t.type?t.declTNode:1===t.type?e[Tn]:null}function Sp(e,t,n){if(n&zi.SkipSelf){let l=t,d=e;for(;!(l=l.parent,null!==l||n&zi.Host||(l=xp(d),null===l||(d=d[qi],10&l.type))););if(null===l)return!1;t=l,e=d}const r=Gi.lFrame=hc();return r.currentTNode=t,r.lView=e,!0}function jh(e){const t=hc(),n=e[Ht];Gi.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function hc(){const e=Gi.lFrame,t=null===e?null:e.child;return null===t?Hh(e):t}function Hh(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 Rd(){const e=Gi.lFrame;return Gi.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const $h=Rd;function Sl(){const e=Rd();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 es(){return Gi.lFrame.selectedIndex}function ba(e){Gi.lFrame.selectedIndex=e}function to(){const e=Gi.lFrame;return Nc(e.tView,e.selectedIndex)}function Su(){Gi.lFrame.currentNamespace=Fh}function Wh(){!function Au(){Gi.lFrame.currentNamespace=null}()}let Gh=!0;function Vc(){return Gh}function nl(e){Gh=e}function fc(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[A]<0&&(e[lo]+=65536),(w>14>16&&(3&e[cn])===t&&(e[cn]+=16384,Kh(w,d)):Kh(w,d)}const zl=-1;class Wl{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}const Hc={};class il{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=js(r);const l=this.injector.get(t,Hc,r);return l!==Hc||n===Hc?l:this.parentInjector.get(t,n,r)}}function Xh(e){return e!==zl}function $c(e){return 32767&e}function mc(e,t){let n=function Yh(e){return e>>16}(e),r=t;for(;n>0;)r=r[qi],n--;return r}let Fd=!0;function gc(e){const t=Fd;return Fd=e,t}const Ld=255,Qh=5;let Zh=0;const rl={};function ku(e,t){const n=zc(e,t);if(-1!==n)return n;const r=t[Ht];r.firstCreatePass&&(e.injectorIndex=t.length,Bd(r.data,e),Bd(t,null),Bd(r.blueprint,null));const l=Nu(e,t),d=e.injectorIndex;if(Xh(l)){const m=$c(l),w=mc(l,t),A=w[Ht].data;for(let j=0;j<8;j++)t[d+j]=w[m+j]|A[m+j]}return t[d+8]=l,d}function Bd(e,t){e.push(0,0,0,0,0,0,0,0,t)}function zc(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Nu(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,l=t;for(;null!==l;){if(r=qh(l),null===r)return zl;if(n++,l=l[qi],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return zl}function Pu(e,t,n){!function Ru(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ci)&&(r=n[ci]),null==r&&(r=n[ci]=Zh++);const l=r&Ld;t.data[e+(l>>Qh)]|=1<=0?t&Ld:Ud:t}(n);if("function"==typeof d){if(!Sp(t,e,r))return r&zi.Host?wa(l,0,r):Fu(t,n,r,l);try{let m;if(m=d(r),null!=m||r&zi.Optional)return m;$o()}finally{$h()}}else if("number"==typeof d){let m=null,w=zc(e,t),A=zl,j=r&zi.Host?t[Pi][Tn]:null;for((-1===w||r&zi.SkipSelf)&&(A=-1===w?Nu(e,t):t[w+8],A!==zl&&Wc(r,!1)?(m=t[Ht],w=$c(A),t=mc(A,t)):w=-1);-1!==w;){const Z=t[Ht];if(Jh(d,w,Z.data)){const Ve=Rp(w,t,n,m,r,j);if(Ve!==rl)return Ve}A=t[w+8],A!==zl&&Wc(r,t[Ht].data[w+8]===j)&&Jh(d,w,t)?(m=Z,w=$c(A),t=mc(A,t)):w=-1}}return l}function Rp(e,t,n,r,l,d){const m=t[Ht],w=m.data[e+8],Z=Lu(w,m,n,null==r?Do(w)&&Fd:r!=m&&!!(3&w.type),l&zi.Host&&d===w);return null!==Z?_l(t,m,Z,w):rl}function Lu(e,t,n,r,l){const d=e.providerIndexes,m=t.data,w=1048575&d,A=e.directiveStart,Z=d>>20,mt=l?w+Z:e.directiveEnd;for(let Tt=r?w:w+Z;Tt=A&&Qt.type===n)return Tt}if(l){const Tt=m[A];if(Tt&&eo(Tt)&&Tt.type===n)return A}return null}function _l(e,t,n,r){let l=e[n];const d=t.data;if(function Nd(e){return e instanceof Wl}(l)){const m=l;m.resolving&&function Fr(e,t){throw t&&t.join(" > "),new Rt(-200,e)}(function Gn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ei(e)}(d[n]));const w=gc(m.canSeeViewProviders);m.resolving=!0;const j=m.injectImpl?oo(m.injectImpl):null;Sp(e,r,zi.Default);try{l=e[n]=m.factory(void 0,d,e,r),t.firstCreatePass&&n>=r.directiveStart&&function vl(e,t,n){const{ngOnChanges:r,ngOnInit:l,ngDoCheck:d}=t.type.prototype;if(r){const m=Dl(t);(n.preOrderHooks??=[]).push(e,m),(n.preOrderCheckHooks??=[]).push(e,m)}l&&(n.preOrderHooks??=[]).push(0-e,l),d&&((n.preOrderHooks??=[]).push(e,d),(n.preOrderCheckHooks??=[]).push(e,d))}(n,d[n],t)}finally{null!==j&&oo(j),gc(w),m.resolving=!1,$h()}}return l}function Jh(e,t,n){return!!(n[t+(e>>Qh)]&1<{const t=e.prototype.constructor,n=t[$n]||Tl(t),r=Object.prototype;let l=Object.getPrototypeOf(e.prototype).constructor;for(;l&&l!==r;){const d=l[$n]||Tl(l);if(d&&d!==n)return d;l=Object.getPrototypeOf(l)}return d=>new d})}function Tl(e){return ye(e)?()=>{const t=Tl(Be(e));return t&&t()}:so(e)}function qh(e){const t=e[Ht],n=t.type;return 2===n?t.declTNode:1===n?e[Tn]:null}function Xl(e){return function Op(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let l=0;for(;lIr(br)});static#i=this.__NG_ELEMENT_ID__=-1}new Bn("").__NG_ELEMENT_ID__=e=>{const t=_r();if(null===t)throw new Rt(204,!1);if(2&t.type)return t.value;if(e&zi.Optional)return null;throw new Rt(204,!1)};function Kc(e){return e.ngOriginalError}const tf=!0;let Hu=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Ag;static#t=this.__NG_ENV_ID__=n=>n}return e})();class Wd extends Hu{constructor(t){super(),this._lView=t}onDestroy(t){return Fc(this._lView,t),()=>function ml(e,t){if(null===e[gi])return;const n=e[gi].indexOf(t);-1!==n&&e[gi].splice(n,1)}(this._lView,t)}}function Ag(){return new Wd(gn())}let bc=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ce.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=wi({token:e,providedIn:"root",factory:()=>new e})}return e})();const Va=class wc extends dt.B{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,da()&&(this.destroyRef=Di(Hu,{optional:!0})??void 0,this.pendingTasks=Di(bc,{optional:!0})??void 0)}emit(t){const n=ee(null);try{super.next(t)}finally{ee(n)}}subscribe(t,n,r){let l=t,d=n||(()=>null),m=r;if(t&&"object"==typeof t){const A=t;l=A.next?.bind(A),d=A.error?.bind(A),m=A.complete?.bind(A)}this.__isAsync&&(d=this.wrapInTimeout(d),l&&(l=this.wrapInTimeout(l)),m&&(m=this.wrapInTimeout(m)));const w=super.subscribe({next:l,error:d,complete:m});return t instanceof un.yU&&t.add(w),w}wrapInTimeout(t){return n=>{const r=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==r&&this.pendingTasks?.remove(r)})}}};function zr(...e){}function $u(e){let t,n;function r(){e=zr;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ql(e){return queueMicrotask(()=>e()),()=>{e=zr}}const ol="isAngularZone",Il=ol+"_ID";let us=0;class mo{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Va(!1),this.onMicrotaskEmpty=new Va(!1),this.onStable=new Va(!1),this.onError=new Va(!1);const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:l=!1,scheduleInRootZone:d=tf}=t;if(typeof Zone>"u")throw new Rt(908,!1);Zone.assertZonePatched();const m=this;m._nesting=0,m._outer=m._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(m._inner=m._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(m._inner=m._inner.fork(Zone.longStackTraceZoneSpec)),m.shouldCoalesceEventChangeDetection=!l&&r,m.shouldCoalesceRunChangeDetection=l,m.callbackScheduled=!1,m.scheduleInRootZone=d,function rf(e){const t=()=>{!function zu(e){function t(){$u(()=>{e.callbackScheduled=!1,Wu(e),e.isCheckStableRunning=!0,Xc(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Wu(e))}(e)},n=us++;e._inner=e._inner.fork({name:"angular",properties:{[ol]:!0,[Il]:n,[Il+n]:!0},onInvokeTask:(r,l,d,m,w,A)=>{if(function b(e){return U(e,"__ignore_ng_zone__")}(A))return r.invokeTask(d,m,w,A);try{return Yc(e),r.invokeTask(d,m,w,A)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===m.type||e.shouldCoalesceRunChangeDetection)&&t(),p(e)}},onInvoke:(r,l,d,m,w,A,j)=>{try{return Yc(e),r.invoke(d,m,w,A,j)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function M(e){return U(e,"__scheduler_tick__")}(A)&&t(),p(e)}},onHasTask:(r,l,d,m)=>{r.hasTask(d,m),l===d&&("microTask"==m.change?(e._hasPendingMicrotasks=m.microTask,Wu(e),Xc(e)):"macroTask"==m.change&&(e.hasPendingMacrotasks=m.macroTask))},onHandleError:(r,l,d,m)=>(r.handleError(d,m),e.runOutsideAngular(()=>e.onError.emit(m)),!1)})}(m)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(ol)}static assertInAngularZone(){if(!mo.isInAngularZone())throw new Rt(909,!1)}static assertNotInAngularZone(){if(mo.isInAngularZone())throw new Rt(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,l){const d=this._inner,m=d.scheduleEventTask("NgZoneEvent: "+l,t,Gd,zr,zr);try{return d.runTask(m,n,r)}finally{d.cancelTask(m)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Gd={};function Xc(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 Wu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Yc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function p(e){e._nesting--,Xc(e)}class g{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Va,this.onMicrotaskEmpty=new Va,this.onStable=new Va,this.onError=new Va}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,l){return t.apply(n,r)}}function U(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class fe{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Kc(t);for(;n&&Kc(n);)n=Kc(n);return n||null}}const De=new Bn("",{providedIn:"root",factory:()=>{const e=Di(mo),t=Di(fe);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Xt(){return Nt(_r(),gn())}function Nt(e,t){return new Ut(Os(e,t))}let Ut=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=Xt}return e})();function dn(e){return e instanceof Ut?e.nativeElement:e}function mn(){return this._results[Symbol.iterator]()}class Un{static#e=Symbol.iterator;get changes(){return this._changes??=new Va}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Un.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=mn)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const r=function lr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function oa(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rGy}),Gy="ng",cf=new Bn(""),Zd=new Bn("",{providedIn:"platform",factory:()=>"unknown"}),Ng=new Bn(""),Pg=new Bn("",{providedIn:"root",factory:()=>Ol().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let pf=()=>null;function Qp(e,t,n=!1){return pf(e,t,n)}const $g=new Bn("",{providedIn:"root",factory:()=>!1});let bf,wf;function Xu(e){return function qp(){if(void 0===bf&&(bf=null,et.trustedTypes))try{bf=et.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return bf}()?.createHTML(e)||e}function em(){if(void 0===wf&&(wf=null,et.trustedTypes))try{wf=et.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return wf}function Gg(e){return em()?.createHTML(e)||e}function tm(e){return em()?.createScriptURL(e)||e}class Zc{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ft})`}}class qy extends Zc{getTypeName(){return"HTML"}}class eb extends Zc{getTypeName(){return"Style"}}class Xg extends Zc{getTypeName(){return"Script"}}class tb extends Zc{getTypeName(){return"URL"}}class nb extends Zc{getTypeName(){return"ResourceURL"}}function Zl(e){return e instanceof Zc?e.changingThisBreaksApplicationSecurity:e}function Yu(e,t){const n=function ib(e){return e instanceof Zc&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ft})`)}return n===t}function rb(e){return new qy(e)}function ob(e){return new eb(e)}function sb(e){return new Xg(e)}function ab(e){return new tb(e)}function lb(e){return new nb(e)}class cb{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Xu(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}}class ub{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Xu(t),n}}const hb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ef(e){return(e=String(e)).match(hb)?e:"unsafe:"+e}function Jl(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function oh(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Qg=Jl("area,br,col,hr,img,wbr"),Zg=Jl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Jg=Jl("rp,rt"),im=oh(Qg,oh(Zg,Jl("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")),oh(Jg,Jl("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")),oh(Jg,Zg)),rm=Jl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qg=oh(rm,Jl("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"),Jl("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")),pb=Jl("script,style,template");class mb{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,l=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)l.push(n),n=_b(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let d=vb(n);if(d){n=d;break}n=l.pop()}return this.buf.join("")}startElement(t){const n=ev(t).toLowerCase();if(!im.hasOwnProperty(n))return this.sanitizedSomething=!0,!pb.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let l=0;l"),!0}endElement(t){const n=ev(t).toLowerCase();im.hasOwnProperty(n)&&!Qg.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(nv(t))}}function vb(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw tv(t);return t}function _b(e){const t=e.firstChild;if(t&&function gb(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw tv(t);return t}function ev(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function tv(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const yb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bb=/([^\#-~ |!])/g;function nv(e){return e.replace(/&/g,"&").replace(yb,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(bb,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Cf;function iv(e,t){let n=null;try{Cf=Cf||function Yg(e){const t=new ub(e);return function db(){try{return!!(new window.DOMParser).parseFromString(Xu(""),"text/html")}catch{return!1}}()?new cb(t):t}(e);let r=t?String(t):"";n=Cf.getInertBodyElement(r);let l=5,d=r;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,r=d,d=n.innerHTML,n=Cf.getInertBodyElement(r)}while(r!==d);return Xu((new mb).sanitizeChildren(Qu(n)||n))}finally{if(n){const r=Qu(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Qu(e){return"content"in e&&function Df(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Rl=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}(Rl||{});function rv(e){const t=sh();return t?Gg(t.sanitize(Rl.HTML,e)||""):Yu(e,"HTML")?Gg(Zl(e)):iv(Ol(),ei(e))}function om(e){const t=sh();return t?t.sanitize(Rl.URL,e)||"":Yu(e,"URL")?Zl(e):Ef(ei(e))}function sm(e){const t=sh();if(t)return tm(t.sanitize(Rl.RESOURCE_URL,e)||"");if(Yu(e,"ResourceURL"))return tm(Zl(e));throw new Rt(904,!1)}function ov(e,t,n){return function xb(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?sm:om}(t,n)(e)}function sh(){const e=gn();return e&&e[di].sanitizer}const Sb=/^>|^->||--!>|)/g,Tb="\u200b$1\u200b";function bo(e){return e instanceof Function?e():e}function na(e){return"browser"===(e??Di(Es)).get(Zd)}var Af=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Af||{});let qc;function Tf(e,t){return qc(e,t)}function ql(e,t,n,r,l){if(null!=r){let d,m=!1;yo(r)?d=r:Ur(r)&&(m=!0,r=r[xt]);const w=Mr(r);0===e&&null!==n?null==l?mm(t,n,w):eu(t,n,w,l||null,!0):1===e&&null!==n?eu(t,n,w,l||null,!0):2===e?function ah(e,t,n){e.removeChild(null,t,n)}(t,w,m):3===e&&t.destroyNode(w),null!=d&&function Wb(e,t,n,r,l){const d=n[$r];d!==Mr(n)&&ql(t,e,r,d,l);for(let w=kr;wt.replace(Ab,Tb))}(t))}function If(e,t,n){return e.createElement(t,n)}function kl(e,t){t[di].changeDetectionScheduler?.notify(9),Rf(e,t,t[On],2,null,null)}function gv(e,t){const n=e[cs],r=t[Rn];(Ur(r)||t[Pi]!==r[Rn][Pi])&&(e[cn]|=Qs.HasTransplantedViews),null===n?e[cs]=[t]:n.push(t)}function hm(e,t){const n=e[cs],r=n.indexOf(t);n.splice(r,1)}function td(e,t){if(e.length<=kr)return;const n=kr+t,r=e[n];if(r){const l=r[er];null!==l&&l!==e&&hm(l,r),t>0&&(e[n-1][pn]=r[pn]);const d=$s(e,kr+t);!function Ub(e,t){kl(e,t),t[xt]=null,t[Tn]=null}(r[Ht],r);const m=d[Er];null!==m&&m.detachView(d[Ht]),r[Rn]=null,r[pn]=null,r[cn]&=-129}return r}function Mf(e,t){if(!(256&t[cn])){const n=t[On];n.destroyNode&&Rf(e,t,n,3,null,null),function mv(e){let t=e[Si];if(!t)return fm(e[Ht],e);for(;t;){let n=null;if(Ur(t))n=t[Si];else{const r=t[kr];r&&(n=r)}if(!n){for(;t&&!t[pn]&&t!==e;)Ur(t)&&fm(t[Ht],t),t=t[Rn];null===t&&(t=e),Ur(t)&&fm(t[Ht],t),n=t&&t[pn]}t=n}}(t)}}function fm(e,t){if(256&t[cn])return;const n=ee(null);try{t[cn]&=-129,t[cn]|=256,t[pr]&>(t[pr]),function Hb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[m]():r[-m].unsubscribe(),d+=2}else n[d].call(r[n[d+1]]);null!==r&&(t[Yn]=null);const l=t[gi];if(null!==l){t[gi]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[r.directiveStart+l];if(d===Ko.None||d===Ko.Emulated)return null}return Os(r,n)}}(e,t.parent,n)}function eu(e,t,n,r,l){e.insertBefore(t,n,r,l)}function mm(e,t,n){e.appendChild(t,n)}function gm(e,t,n,r,l){null!==r?eu(e,t,n,r,l):mm(e,t,n)}function Nl(e,t){return e.parentNode(t)}function vv(e,t,n){return yv(e,t,n)}let vm,yv=function _v(e,t,n){return 40&e.type?Os(e,n):null};function Of(e,t,n,r){const l=pm(e,r,t),d=t[On],w=vv(r.parent||t[Tn],r,t);if(null!=l)if(Array.isArray(n))for(let A=0;AJn&&Iv(e,t,Jn,!1),Za(m?2:0,l),n(r,l)}finally{ba(d),Za(m?3:1,l)}}function wm(e,t,n){if(ws(t)){const r=ee(null);try{const d=t.directiveEnd;for(let m=t.directiveStart;mnull;function ru(e,t,n,r,l){for(let d in t){if(!t.hasOwnProperty(d))continue;const m=t[d];if(void 0===m)continue;r??={};let w,A=Mo.None;Array.isArray(m)?(w=m[0],A=m[1]):w=m;let j=d;if(null!==l){if(!l.hasOwnProperty(d))continue;j=l[d]}0===e?Nf(r,n,j,w,A):Nf(r,n,j,w)}return r}function Nf(e,t,n,r,l){let d;e.hasOwnProperty(n)?(d=e[n]).push(t,r):d=e[n]=[t,r],void 0!==l&&d.push(l)}function xa(e,t,n,r,l,d,m,w){const A=Os(t,n);let Z,j=t.inputs;!w&&null!=j&&(Z=j[r])?(Mm(e,n,Z,r,l),Do(t)&&function Zb(e,t){const n=fa(t,e);16&n[cn]||(n[cn]|=64)}(n,t.index)):3&t.type&&(r=function Lv(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),l=null!=m?m(l,t.value||"",r):l,d.setProperty(A,r,l))}function xm(e,t,n,r){if(_u()){const l=null===r?null:{"":-1},d=function eC(e,t){const n=e.directiveRegistry;let r=null,l=null;if(n)for(let d=0;d0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(m)!=w&&m.push(w),m.push(n,r,d)}}(e,t,r,lh(e,n,l.hostVars,Zi),l)}function Fl(e,t,n,r,l,d){const m=Os(e,t);!function Tm(e,t,n,r,l,d,m){if(null==d)e.removeAttribute(t,l,n);else{const w=null==m?ei(d):m(d,r||"",l);e.setAttribute(t,l,w,n)}}(t[On],m,d,e.value,n,r,l)}function Hv(e,t,n,r,l,d){const m=d[t];if(null!==m)for(let w=0;w0&&(n[l-1][pn]=t),r{Hl(e.lView)},consumerOnSignalRead(){this.lView[pr]=this}},h0={...B,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=qa(e.lView);for(;t&&!qv(t[Ht]);)t=qa(t);t&&vu(t)},consumerOnSignalRead(){this.lView[pr]=this}};function qv(e){return 2!==e.type}const f0=100;function sd(e,t=!0,n=0){const r=e[di],l=r.rendererFactory;l.begin?.();try{!function Lf(e,t){const n=Id();try{Md(!0),km(e,t);let r=0;for(;Pc(e);){if(r===f0)throw new Rt(103,!1);r++,km(e,1)}}finally{Md(n)}}(e,n)}catch(m){throw t&&Ff(e,m),m}finally{l.end?.(),r.inlineEffectRunner?.flush()}}function p0(e,t,n,r){const l=t[cn];if(!(256&~l))return;t[di].inlineEffectRunner?.flush(),jh(t);let w=!0,A=null,j=null;qv(e)?(j=function a0(e){return e[pr]??function l0(e){const t=Jv.pop()??Object.create(u0);return t.lView=e,t}(e)}(t),A=te(j)):null===function oe(){return y}()?(w=!1,j=function d0(e){const t=e[pr]??Object.create(h0);return t.lView=e,t}(t),A=te(j)):t[pr]&&(gt(t[pr]),t[pr]=null);try{gu(t),function Lc(e){return Gi.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Rv(e,t,n,2,r);const Z=!(3&~l);if(Z){const Tt=e.preOrderCheckHooks;null!==Tt&&jc(t,Tt,null)}else{const Tt=e.preOrderHooks;null!==Tt&&Al(t,Tt,0,null),Tu(t,0)}if(function m0(e){for(let t=Tg(e);null!==t;t=Vy(t)){if(!(t[cn]&Qs.HasTransplantedViews))continue;const n=t[cs];for(let r=0;r-1&&(td(t,r),$s(n,r))}this._attachedToViewContainer=!1}Mf(this._lView[Ht],this._lView)}onDestroy(t){Fc(this._lView,t)}markForCheck(){ch(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[cn]&=-129}reattach(){bd(this._lView),this._lView[cn]|=128}detectChanges(){this._lView[cn]|=1024,sd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Rt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=ha(this._lView),n=this._lView[er];null!==n&&!t&&hm(n,this._lView),kl(this._lView[Ht],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Rt(902,!1);this._appRef=t;const n=ha(this._lView),r=this._lView[er];null!==r&&!n&&gv(r,this._lView),bd(this._lView)}}let dh=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=y0}return e})();const v0=dh,_0=class extends v0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const l=ou(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new uh(l)}};function y0(){return Bf(_r(),gn())}function Bf(e,t){return 4&e.type?new _0(t,e,Nt(e,t)):null}let T_=()=>null;function uu(e,t){return T_(e,t)}class hd{}const wh=new Bn("",{providedIn:"root",factory:()=>!1}),I_=new Bn(""),$m=new Bn("");class q0{}class M_{}class tw{resolveComponentFactory(t){throw function ew(e){const t=Error(`No component factory found for ${Ln(e)}.`);return t.ngComponent=e,t}(t)}}class Eh{static#e=this.NULL=new tw}class zm{}let nw=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function iw(){const e=gn(),n=fa(_r().index,e);return(Ur(n)?n:e)[On]}()}return e})(),R_=(()=>{class e{static#e=this.\u0275prov=wi({token:e,providedIn:"root",factory:()=>null})}return e})();function xc(e){return!!fo(e)}function Dh(e,t,n){let r=n?e.styles:null,l=n?e.classes:null,d=0;if(null!==t)for(let m=0;m0&&Sv(e,n,d.join(" "))}}(mt,ms,Qt,r),void 0!==n&&function B_(e,t,n){const r=e.projection=[];for(let l=0;l{class e{static#e=this.__NG_ELEMENT_ID__=hw}return e})();function hw(){return H_(_r(),gn())}const U_=zf,V_=class extends U_{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Nt(this._hostTNode,this._hostLView)}get injector(){return new Po(this._hostTNode,this._hostLView)}get parentInjector(){const t=Nu(this._hostTNode,this._hostLView);if(Xh(t)){const n=mc(t,this._hostLView),r=$c(t);return new Po(n[Ht].data[r+8],n)}return new Po(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=j_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-kr}createEmbeddedView(t,n,r){let l,d;"number"==typeof r?l=r:null!=r&&(l=r.index,d=r.injector);const m=uu(this._lContainer,t.ssrId),w=t.createEmbeddedViewImpl(n||{},d,m);return this.insertImpl(w,l,su(this._hostTNode,m)),w}createComponent(t,n,r,l,d){const m=t&&!function x(e){return"function"==typeof e}(t);let w;if(m)w=n;else{const Qt=n||{};w=Qt.index,r=Qt.injector,l=Qt.projectableNodes,d=Qt.environmentInjector||Qt.ngModuleRef}const A=m?t:new xh(Wi(t)),j=r||this.parentInjector;if(!d&&null==A.ngModule){const In=(m?j:this.parentInjector).get(po,null);In&&(d=In)}const Z=Wi(A.componentType??{}),Ve=uu(this._lContainer,Z?.id??null),Tt=A.create(j,l,Ve?.firstChild??null,d);return this.insertImpl(Tt.hostView,w,su(this._hostTNode,Ve)),Tt}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const l=t._lView;if(function Bh(e){return yo(e[Rn])}(l)){const w=this.indexOf(t);if(-1!==w)this.detach(w);else{const A=l[Rn],j=new V_(A,A[Tn],A[Rn]);j.detach(j.indexOf(t))}}const d=this._adjustIndex(n),m=this._lContainer;return rd(m,l,d,r),t.attachToViewContainerRef(),Eo(Xm(m),d,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=j_(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=td(this._lContainer,n);r&&($s(Xm(this._lContainer),n),Mf(r[Ht],r))}detach(t){const n=this._adjustIndex(t,-1),r=td(this._lContainer,n);return r&&null!=$s(Xm(this._lContainer),n)?new uh(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function j_(e){return e[8]}function Xm(e){return e[8]||(e[8]=[])}function H_(e,t){let n;const r=t[e.index];return yo(r)?n=r:(n=$v(r,t,null,e),t[e.index]=n,Pf(t,n)),$_(n,t,e,r),new V_(n,e,t)}let $_=function W_(e,t,n,r){if(e[$r])return;let l;l=8&n.type?Mr(r):function fw(e,t){const n=e[On],r=n.createComment(""),l=Os(t,e);return eu(n,Nl(n,l),r,function $b(e,t){return e.nextSibling(t)}(n,l),!1),r}(t,n),e[$r]=l},Ym=()=>!1;class Qm{constructor(t){this.queryList=t,this.matches=null}clone(){return new Qm(this.queryList)}setDirty(){this.queryList.setDirty()}}class Zm{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,l=[];for(let d=0;dt.trim())}(t):t}}class Jm{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r0)r.push(m[w/2]);else{const j=d[w+1],Z=t[-A];for(let Ve=kr;Ve(F(t),t.value);return n[G]=t,n}(e),r=n[G];return t?.equal&&(r.equal=t.equal),n.set=l=>Ot(r,l),n.update=l=>function Pe(e,t){Re()||_n(),Ot(e,t(e.value))}(r,l),n.asReadonly=re.bind(n),n}function re(){const e=this[G];if(void 0===e.readonlyFn){const t=()=>this();t[G]=e,e.readonlyFn=t}return e.readonlyFn}function Fe(e){return h(e)&&"function"==typeof e.set}function Pt(e,t){let n;const r=nt(()=>{n._dirtyCounter();const l=function fi(e,t){const n=e._lView,r=e._queryIndex;if(void 0===n||void 0===r||4&n[cn])return t?void 0:or;const l=X_(n,r),d=s(n,r);return l.reset(d,dn),t?l.first:l._changesDetected||void 0===e._flatValue?e._flatValue=l.toArray():e._flatValue}(n,e);if(t&&void 0===l)throw new Rt(-951,!1);return l});return n=r[G],n._dirtyCounter=H(0),n._flatValue=void 0,r}function go(e,t){return function Gt(){return Pt(!0,!1)}()}const sl=(go.required=function nc(e,t){return function Hn(){return Pt(!0,!0)}()},go);function Dw(e){let t=function pC(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let l;if(eo(e))l=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Rt(903,!1);l=t.\u0275dir}if(l){if(n){r.push(l);const m=e;m.inputs=ey(e.inputs),m.inputTransforms=ey(e.inputTransforms),m.declaredInputs=ey(e.declaredInputs),m.outputs=ey(e.outputs);const w=l.hostBindings;w&&NS(e,w);const A=l.viewQuery,j=l.contentQueries;if(A&&RS(e,A),j&&kS(e,j),MS(e,l),Mn(e.outputs,l.outputs),eo(l)&&l.data.animation){const Z=e.data;Z.animation=(Z.animation||[]).concat(l.data.animation)}}const d=l.features;if(d)for(let m=0;m=0;r--){const l=e[r];l.hostVars=t+=l.hostVars,l.hostAttrs=Ds(l.hostAttrs,n=Ds(n,l.hostAttrs))}}(r)}function MS(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const l=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(l))continue;e.inputTransforms??={},e.inputTransforms[l]=t.inputTransforms[l]}}}function ey(e){return e===Go?{}:e===or?[]:e}function RS(e,t){const n=e.viewQuery;e.viewQuery=n?(r,l)=>{t(r,l),n(r,l)}:t}function kS(e,t){const n=e.contentQueries;e.contentQueries=n?(r,l,d)=>{t(r,l,d),n(r,l,d)}:t}function NS(e,t){const n=e.hostBindings;e.hostBindings=n?(r,l)=>{t(r,l),n(r,l)}:t}function mC(e){const t=n=>{const r=(Array.isArray(e)?e:e()).map(l=>"function"==typeof l?{directive:Be(l),inputs:Go,outputs:Go}:{directive:Be(l.directive),inputs:vC(l.inputs),outputs:vC(l.outputs)});null===n.hostDirectives?(n.findHostDirectiveDefs=gC,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return t.ngInherit=!0,t}function gC(e,t,n){if(null!==e.hostDirectives)for(const r of e.hostDirectives){const l=Jr(r.directive);BS(l.declaredInputs,r.inputs),gC(l,t,n),n.set(l,r),t.push(l)}}function vC(e){if(void 0===e||0===e.length)return Go;const t={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Sw extends bC{constructor(t){super(),this.moduleType=t}create(t){return new xw(this.moduleType,t,[])}}class wC extends Sh{constructor(t){super(),this.componentFactoryResolver=new P_(this),this.instance=null;const n=new Xa([...t.providers,{provide:Sh,useValue:this},{provide:Eh,useValue:this.componentFactoryResolver}],t.parent||Ka(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Aw(e,t,n=null){return new wC({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function ty(e){return!!Tw(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Tw(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Tc(e,t,n){return e[t]=n}function tg(e,t){return e[t]}function hs(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ah(e,t,n,r){const l=hs(e,t,n);return hs(e,t+1,r)||l}function Bl(e,t,n,r,l,d){const m=Ah(e,t,n,r);return Ah(e,t+2,l,d)||m}function ng(e,t,n,r,l,d,m,w,A,j){const Z=n+Jn,Ve=t.firstCreatePass?function WS(e,t,n,r,l,d,m,w,A){const j=t.consts,Z=nu(t,e,4,m||null,w||null);xm(t,n,Z,Zs(j,A)),fc(t,Z);const Ve=Z.tView=Dm(2,Z,r,l,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,j,null);return null!==t.queries&&(t.queries.template(t,Z),Ve.queries=t.queries.embeddedTView(Z)),Z}(Z,t,e,r,l,d,m,w,A):t.data[Z];Ba(Ve,!1);const mt=EC(t,e,Ve,n);Vc()&&Of(t,e,mt,Ve),Vr(mt,e);const Tt=$v(mt,e,mt,Ve);return e[Z]=Tt,Pf(e,Tt),function z_(e,t,n){return Ym(e,t,n)}(Tt,Ve,e),yi(Ve)&&Em(t,e,Ve),null!=A&&Cm(e,Ve,j),Ve}function Iw(e,t,n,r,l,d,m,w){const A=gn(),j=ar();return ng(A,j,e,t,n,r,l,Zs(j.consts,d),m,w),Iw}let EC=function CC(e,t,n,r){return nl(!0),t[On].createComment("")};var Th=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Th||{});let IC=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static#e=this.\u0275prov=wi({token:e,providedIn:"root",factory:()=>new e})}return e})();class og{constructor(){this.ngZone=Di(mo),this.scheduler=Di(hd),this.errorHandler=Di(fe,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static#e=this.PHASES=[Th.EarlyRead,Th.Write,Th.MixedReadWrite,Th.Read];execute(){this.executing=!0;for(const t of og.PHASES)for(const n of this.sequences)if(!n.erroredOrDestroyed&&n.hooks[t])try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(const t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static#t=this.\u0275prov=wi({token:og,providedIn:"root",factory:()=>new og})}class YS{constructor(t,n,r,l){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=l?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function MC(e,t){!t?.injector&&ir();const n=t?.injector??Di(Es);return na(n)?(c("NgAfterRender"),OC(e,n,t,!1)):RC}function sy(e,t){!t?.injector&&ir();const n=t?.injector??Di(Es);return na(n)?(c("NgAfterNextRender"),OC(e,n,t,!0)):RC}function OC(e,t,n,r){const l=t.get(IC);l.impl??=t.get(og);const d=n?.phase??Th.MixedReadWrite,m=!0!==n?.manualCleanup?t.get(Hu):null,w=new YS(l.impl,function QS(e,t){if(e instanceof Function){const n=[void 0,void 0,void 0,void 0];return n[t]=e,n}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,d),r,m);return l.impl.register(w),w}const RC={destroy(){}};function Vw(e,t,n,r){const l=gn();return hs(l,tl(),t)&&(ar(),Fl(to(),l,e,t,n,r)),Vw}function tp(e,t,n,r){return hs(e,tl(),n)?t+ei(n)+r:Zi}function np(e,t,n,r,l,d){const w=Ah(e,function el(){return Gi.lFrame.bindingIndex}(),n,l);return gl(2),w?t+ei(n)+r+ei(l)+d:Zi}function cy(e,t){return e<<17|t<<2}function md(e){return e>>17&32767}function jw(e){return 2|e}function Mh(e){return(131068&e)>>2}function Hw(e,t){return-131069&e|t<<2}function $w(e){return 1|e}function rD(e,t,n,r){const l=e[n+1],d=null===t;let m=r?md(l):Mh(l),w=!1;for(;0!==m&&(!1===w||d);){const j=e[m+1];RA(e[m],t)&&(w=!0,e[m+1]=r?$w(j):jw(j)),m=r?md(j):Mh(j)}w&&(e[n+1]=r?jw(l):$w(l))}function RA(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ta(e,t)>=0}const Fs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function oD(e){return e.substring(Fs.key,Fs.keyEnd)}function kA(e){return e.substring(Fs.value,Fs.valueEnd)}function sD(e,t){const n=Fs.textEnd;return n===t?-1:(t=Fs.keyEnd=function FA(e,t,n){for(;t32;)t++;return t}(e,Fs.key=t,n),cp(e,t,n))}function aD(e,t){const n=Fs.textEnd;let r=Fs.key=cp(e,t,n);return n===r?-1:(r=Fs.keyEnd=function LA(e,t,n){let r;for(;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=cD(e,r,n),r=Fs.value=cp(e,r,n),r=Fs.valueEnd=function BA(e,t,n){let r=-1,l=-1,d=-1,m=t,w=m;for(;m32&&(w=m),d=l,l=r,r=-33&A}return w}(e,r,n),cD(e,r,n))}function lD(e){Fs.key=0,Fs.keyEnd=0,Fs.value=0,Fs.valueEnd=0,Fs.textEnd=e.length}function cp(e,t,n){for(;t=0;n=aD(t,n))pD(e,oD(t),kA(t))}function dD(e){oc(WA,Ic,e,!0)}function Ic(e,t){for(let n=function NA(e){return lD(e),sD(e,cp(e,0,Fs.textEnd))}(t);n>=0;n=sD(t,n))Co(e,oD(t),!0)}function rc(e,t,n,r){const l=gn(),d=ar(),m=gl(2);d.firstUpdatePass&&fD(d,e,m,r),t!==Zi&&hs(l,m,t)&&mD(d,d.data[es()],l,l[On],e,l[m+1]=function KA(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Ln(Zl(e)))),e}(t,n),r,m)}function oc(e,t,n,r){const l=ar(),d=gl(2);l.firstUpdatePass&&fD(l,null,d,r);const m=gn();if(n!==Zi&&hs(m,d,n)){const w=l.data[es()];if(vD(w,r)&&!hD(l,d)){let A=r?w.classesWithoutHost:w.stylesWithoutHost;null!==A&&(n=Ei(A,n||"")),Ww(l,w,m,n,r)}else!function GA(e,t,n,r,l,d,m,w){l===Zi&&(l=or);let A=0,j=0,Z=0=e.expandoStartIndex}function fD(e,t,n,r){const l=e.data;if(null===l[n+1]){const d=l[es()],m=hD(e,n);vD(d,r)&&null===t&&!m&&(t=!1),t=function VA(e,t,n,r){const l=Vh(e);let d=r?t.residualClasses:t.residualStyles;if(null===l)0===(r?t.classBindings:t.styleBindings)&&(n=ag(n=Xw(null,e,t,n,r),t.attrs,r),d=null);else{const m=t.directiveStylingLast;if(-1===m||e[m]!==l)if(n=Xw(l,e,t,n,r),null===d){let A=function jA(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Mh(r))return e[md(r)]}(e,t,r);void 0!==A&&Array.isArray(A)&&(A=Xw(null,e,t,A[1],r),A=ag(A,t.attrs,r),function HA(e,t,n,r){e[md(n?t.classBindings:t.styleBindings)]=r}(e,t,r,A))}else d=function $A(e,t,n){let r;const l=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(j=!0)):Z=n,l)if(0!==A){const mt=md(e[w+1]);e[r+1]=cy(mt,w),0!==mt&&(e[mt+1]=Hw(e[mt+1],r)),e[w+1]=function TA(e,t){return 131071&e|t<<17}(e[w+1],r)}else e[r+1]=cy(w,0),0!==w&&(e[w+1]=Hw(e[w+1],r)),w=r;else e[r+1]=cy(A,0),0===w?w=r:e[A+1]=Hw(e[A+1],r),A=r;j&&(e[r+1]=jw(e[r+1])),rD(e,Z,r,!0),rD(e,Z,r,!1),function OA(e,t,n,r,l){const d=l?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&Ta(d,t)>=0&&(n[r+1]=$w(n[r+1]))}(t,Z,e,r,d),m=cy(w,A),d?t.classBindings=m:t.styleBindings=m}(l,d,t,n,m,r)}}function Xw(e,t,n,r,l){let d=null;const m=n.directiveEnd;let w=n.directiveStylingLast;for(-1===w?w=n.directiveStart:w++;w0;){const A=e[l],j=Array.isArray(A),Z=j?A[1]:A,Ve=null===Z;let mt=n[l+1];mt===Zi&&(mt=Ve?or:void 0);let Tt=Ve?zs(mt,r):Z===r?mt:void 0;if(j&&!uy(Tt)&&(Tt=zs(A,r)),uy(Tt)&&(w=Tt,m))return w;const Qt=e[l+1];l=m?md(Qt):Mh(Qt)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(w=zs(A,r))}return w}function uy(e){return void 0!==e}function vD(e,t){return!!(e.flags&(t?8:16))}function _D(e,t,n){oc(Co,Ic,tp(gn(),e,t,n),!0)}function yD(){return gn()[Pi][Sn]}class nT{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),l=Math.max(t,n),d=this.detach(l);if(l-r>1){const m=this.detach(r);this.attach(r,d),this.attach(l,m)}else this.attach(r,d)}move(t,n){this.attach(n,this.detach(t))}}function Yw(e,t,n,r,l){return e===n&&Object.is(t,r)?1:Object.is(l(e,t),l(n,r))?-1:0}function Qw(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function bD(e,t,n,r,l){if(Qw(e,t,r,n(r,l)))e.updateValue(r,l);else{const d=e.create(r,l);e.attach(r,d)}}function wD(e,t,n,r){const l=new Set;for(let d=t;d<=n;d++)l.add(r(d,e.at(d)));return l}class ED{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const l=this._vMap;for(;l.has(r);)r=l.get(r);l.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),void 0!==this._vMap){const l=this._vMap;for(;l.has(r);)r=l.get(r),t(r,n)}}}function CD(e,t){c("NgControlFlow");const n=gn(),r=tl(),l=n[r]!==Zi?n[r]:-1,d=-1!==l?dy(n,Jn+l):void 0;if(hs(n,r,e)){const w=ee(null);try{if(void 0!==d&&Rm(d,0),-1!==e){const A=Jn+e,j=dy(n,A),Z=Zw(n[Ht],A),Ve=uu(j,Z.tView.ssrId);rd(j,ou(n,Z,t,{dehydratedView:Ve}),0,su(Z,Ve))}}finally{ee(w)}}else if(void 0!==d){const w=Qv(d,0);void 0!==w&&(w[Sn]=t)}}class rT{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-kr}}class aT{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}function DD(e,t,n,r,l,d,m,w,A,j,Z,Ve,mt){c("NgControlFlow");const Tt=gn(),Qt=ar(),In=void 0!==A,Qn=gn(),si=w?m.bind(Qn[Pi][Sn]):m,xn=new aT(In,si);Qn[Jn+e]=xn,ng(Tt,Qt,e+1,t,n,r,l,Zs(Qt.consts,d)),In&&ng(Tt,Qt,e+2,A,j,Z,Ve,Zs(Qt.consts,mt))}class lT extends nT{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-kr}at(t){return this.getLView(t)[Sn].$implicit}attach(t,n){const r=n[Nn];this.needsIndexUpdate||=t!==this.length,rd(this.lContainer,n,t,su(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function cT(e,t){return td(e,t)}(this.lContainer,t)}create(t,n){const r=uu(this.lContainer,this.templateTNode.tView.ssrId),l=ou(this.hostLView,this.templateTNode,new rT(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),l}destroy(t){Mf(t[Ht],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Sn].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(A)})}(A,e,d.trackByFn),A.updateIndexes(),d.hasEmptyBlock){const j=tl(),Z=0===A.length;if(hs(r,j,Z)){const Ve=n+2,mt=dy(r,Ve);if(Z){const Tt=Zw(l,Ve),Qt=uu(mt,Tt.tView.ssrId);rd(mt,ou(r,Tt,void 0,{dehydratedView:Qt}),0,su(Tt,Qt))}else Rm(mt,0)}}}finally{ee(t)}}function dy(e,t){return e[t]}function Zw(e,t){return Nc(e,t)}function hy(e,t,n,r){const l=gn(),d=ar(),m=Jn+e,w=l[On],A=d.firstCreatePass?function dT(e,t,n,r,l,d){const m=t.consts,A=nu(t,e,2,r,Zs(m,l));return xm(t,n,A,Zs(m,d)),null!==A.attrs&&Dh(A,A.attrs,!1),null!==A.mergedAttrs&&Dh(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(m,d,l,t,n,r):d.data[m],j=SD(d,l,A,w,t,e);l[m]=j;const Z=yi(A);return Ba(A,!0),Av(w,j,A),!function Kf(e){return!(32&~e.flags)}(A)&&Vc()&&Of(d,l,j,A),0===function Cg(){return Gi.lFrame.elementDepthCount}()&&Vr(j,l),function Dd(){Gi.lFrame.elementDepthCount++}(),Z&&(Em(d,l,A),wm(d,A,l)),null!==r&&Cm(l,A),hy}function fy(){let e=_r();Td()?Eu():(e=e.parent,Ba(e,!1));const t=e;(function bp(e){return Gi.skipHydrationRootTNode===e})(t)&&function yu(){Gi.skipHydrationRootTNode=null}(),function xd(){Gi.lFrame.elementDepthCount--}();const n=ar();return n.firstCreatePass&&(fc(n,e),ws(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Ap(e){return!!(8&e.flags)}(t)&&Ww(n,t,gn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Ou(e){return!!(16&e.flags)}(t)&&Ww(n,t,gn(),t.stylesWithoutHost,!1),fy}function Jw(e,t,n,r){return hy(e,t,n,r),fy(),Jw}let SD=(e,t,n,r,l,d)=>(nl(!0),If(r,l,function Uc(){return Gi.lFrame.currentNamespace}()));function py(e,t,n){const r=gn(),l=ar(),d=e+Jn,m=l.firstCreatePass?function pT(e,t,n,r,l){const d=t.consts,m=Zs(d,r),w=nu(t,e,8,"ng-container",m);return null!==m&&Dh(w,m,!0),xm(t,n,w,Zs(d,l)),null!==t.queries&&t.queries.elementStart(t,w),w}(d,l,r,t,n):l.data[d];Ba(m,!0);const w=AD(l,r,m,e);return r[d]=w,Vc()&&Of(l,r,w,m),Vr(w,r),yi(m)&&(Em(l,r,m),wm(l,m,r)),null!=n&&Cm(r,m),py}function my(){let e=_r();const t=ar();return Td()?Eu():(e=e.parent,Ba(e,!1)),t.firstCreatePass&&(fc(t,e),ws(e)&&t.queries.elementEnd(e)),my}function qw(e,t,n){return py(e,t,n),my(),qw}let AD=(e,t,n,r)=>(nl(!0),xo(t[On],""));function TD(){return gn()}function eE(e,t,n){const r=gn();return hs(r,tl(),t)&&xa(ar(),to(),r,e,t,r[On],n,!0),eE}function tE(e,t,n){const r=gn();if(hs(r,tl(),t)){const d=ar(),m=to();xa(d,m,r,e,t,Kv(Vh(d.data),m,r),n,!0)}return tE}const Oh=void 0;var _T=["en",[["a","p"],["AM","PM"],Oh],[["AM","PM"],Oh,Oh],[["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"]],Oh,[["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"]],Oh,[["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}",Oh,"{1} 'at' {0}",Oh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function vT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let up={};function nE(e){const t=function yT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=MD(t);if(n)return n;const r=t.split("-")[0];if(n=MD(r),n)return n;if("en"===r)return _T;throw new Rt(701,!1)}function ID(e){return nE(e)[dp.PluralCase]}function MD(e){return e in up||(up[e]=et.ng&&et.ng.common&&et.ng.common.locales&&et.ng.common.locales[e]),up[e]}var dp=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}(dp||{});const gy="en-US";let OD=gy,YD=(e,t,n)=>{};function oE(e,t,n,r){const l=gn(),d=ar(),m=_r();return aE(d,l,l[On],m,e,t,r),oE}function sE(e,t){const n=_r(),r=gn(),l=ar();return aE(l,r,Kv(Vh(l.data),n,r),n,e,t),sE}function aE(e,t,n,r,l,d,m){const w=yi(r),j=e.firstCreatePass&&Gv(e),Z=t[Sn],Ve=Wv(t);let mt=!0;if(3&r.type||m){const In=Os(r,t),Qn=m?m(In):In,si=Ve.length,xn=m?Nr=>m(Mr(Nr[r.index])):r.index;let rr=null;if(!m&&w&&(rr=function aI(e,t,n,r){const l=e.cleanup;if(null!=l)for(let d=0;dA?w[A]:null}"string"==typeof m&&(d+=2)}return null}(e,t,l,r.index)),null!==rr)(rr.__ngLastListenerFn__||rr).__ngNextListenerFn__=d,rr.__ngLastListenerFn__=d,mt=!1;else{d=JD(r,t,Z,d),YD(In,l,d);const Nr=n.listen(Qn,l,d);Ve.push(d,Nr),j&&j.push(l,xn,si,si+1)}}else d=JD(r,t,Z,d);const Tt=r.outputs;let Qt;if(mt&&null!==Tt&&(Qt=Tt[l])){const In=Qt.length;if(In)for(let Qn=0;Qn-1?fa(e.index,t):t,5);let w=ZD(t,n,r,d),A=l.__ngNextListenerFn__;for(;A;)w=ZD(t,n,A,d)&&w,A=A.__ngNextListenerFn__;return w}}function qD(e=1){return function Bc(e){return(Gi.lFrame.contextLView=function Js(e,t){for(;e>0;)t=t[qi],e--;return t}(e,Gi.lFrame.contextLView))[Sn]}(e)}function lI(e,t){let n=null;const r=function yt(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let l=0;ln._dirtyCounter.update(r=>r+1))}(t,qm(e,n,r,l))}function mx(e=1){Od(xu()+e)}function gx(e){return cc(function Ua(){return Gi.lFrame.contextLView}(),Jn+e)}function Sx(e,t=""){const n=gn(),r=ar(),l=e+Jn,d=r.firstCreatePass?nu(r,l,1,t,null):r.data[l],m=Ax(r,n,d,t,e);n[l]=m,Vc()&&Of(r,n,m,d),Ba(d,!1)}let Ax=(e,t,n,r,l)=>(nl(!0),function qu(e,t){return e.createText(t)}(t[On],r));function uE(e){return wy("",e,""),uE}function wy(e,t,n){const r=gn(),l=tp(r,e,t,n);return l!==Zi&&Ll(r,es(),l),wy}function dE(e,t,n,r,l){const d=gn(),m=np(d,e,t,n,r,l);return m!==Zi&&Ll(d,es(),m),dE}function hE(e,t,n){Fe(t)&&(t=t());const r=gn();return hs(r,tl(),t)&&xa(ar(),to(),r,e,t,r[On],n,!1),hE}function Px(e,t){const n=Fe(e);return n&&e.set(t),n}function fE(e,t){const n=gn(),r=ar(),l=_r();return aE(r,n,n[On],l,e,t),fE}function pE(e,t,n,r,l){if(e=Be(e),Array.isArray(e))for(let d=0;d>20;if(Ts(e)||!e.multi){const Tt=new Wl(j,l,id),Qt=gE(A,t,l?Z:Z+mt,Ve);-1===Qt?(Pu(ku(w,m),d,A),mE(d,e,t.length),t.push(A),w.directiveStart++,w.directiveEnd++,l&&(w.providerIndexes+=1048576),n.push(Tt),m.push(Tt)):(n[Qt]=Tt,m[Qt]=Tt)}else{const Tt=gE(A,t,Z+mt,Ve),Qt=gE(A,t,Z,Z+mt),Qn=Qt>=0&&n[Qt];if(l&&!Qn||!l&&!(Tt>=0&&n[Tt])){Pu(ku(w,m),d,A);const si=function AI(e,t,n,r,l){const d=new Wl(e,n,id);return d.multi=[],d.index=t,d.componentProviders=0,Bx(d,l,r&&!n),d}(l?SI:xI,n.length,l,r,j);!l&&Qn&&(n[Qt].providerFactory=si),mE(d,e,t.length,0),t.push(A),w.directiveStart++,w.directiveEnd++,l&&(w.providerIndexes+=1048576),n.push(si),m.push(si)}else mE(d,e,Tt>-1?Tt:Qt,Bx(n[l?Qt:Tt],j,!l&&r));!l&&r&&Qn&&n[Qt].componentProviders++}}}function mE(e,t,n,r){const l=Ts(t),d=function hl(e){return!!e.useClass}(t);if(l||d){const A=(d?Be(t.useClass):t).prototype.ngOnDestroy;if(A){const j=e.destroyHooks||(e.destroyHooks=[]);if(!l&&t.multi){const Z=j.indexOf(n);-1===Z?j.push(n,[r,A]):j[Z+1].push(r,A)}else j.push(n,A)}}}function Bx(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function gE(e,t,n,r){for(let l=n;l{n.providersResolver=(r,l)=>function DI(e,t,n){const r=ar();if(r.firstCreatePass){const l=eo(e);pE(n,r.data,r.blueprint,l,!0),pE(t,r.data,r.blueprint,l,!1)}}(r,l?l(e):e,t)}}let TI=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=Pa(0,n.type),l=r.length>0?Aw([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,l)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=wi({token:e,providedIn:"environment",factory:()=>new e(Ir(po))})}return e})();function Vx(e){c("NgStandalone"),e.getStandaloneInjector=t=>t.get(TI).getOrCreateStandaloneInjector(e)}function $x(e,t,n){const r=Ao()+e,l=gn();return l[r]===Zi?Tc(l,r,n?t.call(n):t()):tg(l,r)}function zx(e,t,n,r){return Yx(gn(),Ao(),e,t,n,r)}function Wx(e,t,n,r,l){return Qx(gn(),Ao(),e,t,n,r,l)}function Gx(e,t,n,r,l,d){return function Zx(e,t,n,r,l,d,m,w){const A=t+n;return function ny(e,t,n,r,l){const d=Ah(e,t,n,r);return hs(e,t+2,l)||d}(e,A,l,d,m)?Tc(e,A+3,w?r.call(w,l,d,m):r(l,d,m)):fg(e,A+3)}(gn(),Ao(),e,t,n,r,l,d)}function Kx(e,t,n,r,l,d,m){return function Jx(e,t,n,r,l,d,m,w,A){const j=t+n;return Bl(e,j,l,d,m,w)?Tc(e,j+4,A?r.call(A,l,d,m,w):r(l,d,m,w)):fg(e,j+4)}(gn(),Ao(),e,t,n,r,l,d,m)}function Xx(e,t,n,r,l,d,m,w,A,j,Z){const Ve=Ao()+e,mt=gn(),Tt=Bl(mt,Ve,n,r,l,d);return Bl(mt,Ve+4,m,w,A,j)||Tt?Tc(mt,Ve+8,Z?t.call(Z,n,r,l,d,m,w,A,j):t(n,r,l,d,m,w,A,j)):tg(mt,Ve+8)}function fg(e,t){const n=e[t];return n===Zi?void 0:n}function Yx(e,t,n,r,l,d){const m=t+n;return hs(e,m,l)?Tc(e,m+1,d?r.call(d,l):r(l)):fg(e,m+1)}function Qx(e,t,n,r,l,d,m){const w=t+n;return Ah(e,w,l,d)?Tc(e,w+2,m?r.call(m,l,d):r(l,d)):fg(e,w+2)}function e1(e,t){const n=ar();let r;const l=e+Jn;n.firstCreatePass?(r=function FI(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[l]=r,r.onDestroy&&(n.destroyHooks??=[]).push(l,r.onDestroy)):r=n.data[l];const d=r.factory||(r.factory=so(r.type)),w=oo(id);try{const A=gc(!1),j=d();return gc(A),function cE(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,gn(),l,j),j}finally{oo(w)}}function t1(e,t,n){const r=e+Jn,l=gn(),d=cc(l,r);return pg(l,r)?Yx(l,Ao(),t,d.transform,n,d):d.transform(n)}function n1(e,t,n,r){const l=e+Jn,d=gn(),m=cc(d,l);return pg(d,l)?Qx(d,Ao(),t,m.transform,n,r,m):m.transform(n,r)}function pg(e,t){return e[Ht].data[t].pure}function r1(e,t){return Bf(e,t)}class b1{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let w1=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const S1=new Bn(""),A1=new Bn("");let CE,RM=(()=>{class e{constructor(n,r,l){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,CE||(function kM(e){CE=e}(l),l.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{mo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,l){let d=-1;r&&r>0&&(d=setTimeout(()=>{this._callbacks=this._callbacks.filter(m=>m.timeoutId!==d),n()},r)),this._callbacks.push({doneCb:n,timeoutId:d,updateCb:l})}whenStable(n,r,l){if(l&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,l),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,l){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(Ir(mo),Ir(T1),Ir(A1))};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac})}return e})(),T1=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return CE?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function DE(e){return!!e&&"function"==typeof e.then}function I1(e){return!!e&&"function"==typeof e.subscribe}const M1=new Bn("");let O1=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=Di(M1,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const l of this.appInits){const d=l();if(DE(d))n.push(d);else if(I1(d)){const m=new Promise((w,A)=>{d.subscribe({complete:w,error:A})});n.push(m)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(l=>{this.reject(l)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Sy=new Bn("");let Mc=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Di(De),this.afterRenderManager=Di(IC),this.zonelessEnabled=Di(wh),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new dt.B,this.afterTick=new dt.B,this.componentTypes=[],this.components=[],this.isStable=Di(bc).hasPendingTasks.pipe((0,it.T)(n=>!n)),this._injector=Di(po)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:l=>{l&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){const l=n instanceof M_;if(!this._injector.get(O1).done)throw!l&&Yo(n),new Rt(405,!1);let m;m=l?n:this._injector.get(Eh).resolveComponentFactory(n),this.componentTypes.push(m.componentType);const w=function NM(e){return e.isBoundToModule}(m)?void 0:this._injector.get(Sh),j=m.create(Es.NULL,[],r||m.selector,w),Z=j.location.nativeElement,Ve=j.injector.get(S1,null);return Ve?.registerApplication(Z),j.onDestroy(()=>{this.detachView(j.hostView),Ay(this.components,j),Ve?.unregisterApplication(Z)}),this._loadComponent(j),j}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new Rt(101,!1);const n=ee(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,ee(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(zm,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;0!==this.dirtyFlags&&r++<10;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:l,notifyErrorHandler:d}of this._views)LM(l,d,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else n?.begin?.(),n?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:n})=>Pc(n))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Ay(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Sy,[]);[...this._bootstrapListeners,...r].forEach(l=>l(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ay(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Rt(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ay(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function LM(e,t,n,r){(n||Pc(e))&&sd(e,t,n&&!r?0:1)}class BM{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let UM=(()=>{class e{compileModuleSync(n){return new Sw(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),d=bo(fo(n).declarations).reduce((m,w)=>{const A=Wi(w);return A&&m.push(new xh(A)),m},[]);return new BM(r,d)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),HM=(()=>{class e{constructor(){this.zone=Di(mo),this.changeDetectionScheduler=Di(hd),this.applicationRef=Di(Mc)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function xE({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new mo({...SE(),scheduleInRootZone:n}),[{provide:mo,useFactory:e},{provide:ss,multi:!0,useFactory:()=>{const r=Di(HM,{optional:!0});return()=>r.initialize()}},{provide:ss,multi:!0,useFactory:()=>{const r=Di(zM);return()=>{r.initialize()}}},!0===t?{provide:I_,useValue:!0}:[],{provide:$m,useValue:n??tf}]}function SE(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let zM=(()=>{class e{constructor(){this.subscription=new un.yU,this.initialized=!1,this.zone=Di(mo),this.pendingTasks=Di(bc)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{mo.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{mo.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vg=(()=>{class e{constructor(){this.appRef=Di(Mc),this.taskService=Di(bc),this.ngZone=Di(mo),this.zonelessEnabled=Di(wh),this.disableScheduling=Di(I_,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new un.yU,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Il):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(Di($m,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof g||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&5===n)return;switch(n){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?Ql:$u;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Il+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ql(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const TE=new Bn("",{providedIn:"root",factory:()=>Di(TE,zi.Optional|zi.SkipSelf)||function WM(){return typeof $localize<"u"&&$localize.locale||gy}()}),GM=new Bn("",{providedIn:"root",factory:()=>"USD"}),Iy=new Bn("");function My(e){return!e.moduleRef}let gd=null;function tO(){return!1}let W1=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=nO}return e})();function nO(e){return function iO(e,t,n){if(Do(e)&&!n){const r=fa(e.index,t);return new uh(r,r)}return 175&e.type?new uh(t[Pi],t):null}(_r(),gn(),!(16&~e))}class Y1{constructor(){}supports(t){return ty(t)}create(t){return new lO(t)}}const aO=(e,t)=>t;class lO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||aO}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,l=0,d=null;for(;n||r;){const m=!r||n&&n.currentIndex{m=this._trackByFn(l,w),null!==n&&Object.is(n.trackById,m)?(r&&(n=this._verifyReinsertion(n,w,m,l)),Object.is(n.item,w)||this._addIdentityChange(n,w)):(n=this._mismatch(n,w,m,l),r=!0),n=n._next,l++}),this.length=l;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,l){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,d,l)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,l))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,d,l)):t=this._addAfter(new cO(n,r),d,l),t}_verifyReinsertion(t,n,r,l){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==d?t=this._reinsertAfter(d,t._prev,l):t.currentIndex!=l&&(t.currentIndex=l,this._addToMoves(t,l)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const l=t._prevRemoved,d=t._nextRemoved;return null===l?this._removalsHead=d:l._nextRemoved=d,null===d?this._removalsTail=l:d._prevRemoved=l,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const l=null===n?this._itHead:n._next;return t._next=l,t._prev=n,null===l?this._itTail=t:l._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Q1),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Q1),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class cO{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class uO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Q1{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new uO,this.map.set(n,r)),r.add(t)}get(t,n){const l=this.map.get(t);return l?l.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Z1(e,t,n){const r=e.previousIndex;if(null===r)return r;let l=0;return n&&r{if(n&&n.key===l)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const d=this._getOrCreateRecordForKey(l,r);n=this._insertBeforeOrAppend(n,d)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const l=this._records.get(t);this._maybeAddToChanges(l,n);const d=l._prev,m=l._next;return d&&(d._next=m),m&&(m._prev=d),l._next=null,l._prev=null,l}const r=new hO(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class hO{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function q1(){return new NE([new Y1])}let NE=(()=>{class e{static#e=this.\u0275prov=wi({token:e,providedIn:"root",factory:q1});constructor(n){this.factories=n}static create(n,r){if(null!=r){const l=r.factories.slice();n=n.concat(l)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||q1()),deps:[[e,new gr,new Qr]]}}find(n){const r=this.factories.find(l=>l.supports(n));if(null!=r)return r;throw new Rt(901,!1)}}return e})();function eS(){return new PE([new J1])}let PE=(()=>{class e{static#e=this.\u0275prov=wi({token:e,providedIn:"root",factory:eS});constructor(n){this.factories=n}static create(n,r){if(r){const l=r.factories.slice();n=n.concat(l)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||eS()),deps:[[e,new gr,new Qr]]}}find(n){const r=this.factories.find(l=>l.supports(n));if(r)return r;throw new Rt(901,!1)}}return e})();function SO(e){try{const{rootComponent:t,appProviders:n,platformProviders:r}=e,l=function eO(e=[]){if(gd)return gd;const t=function H1(e=[],t){return Es.create({name:t,providers:[{provide:So,useValue:"platform"},{provide:Iy,useValue:new Set([()=>gd=null])},...e]})}(e);return gd=t,function R1(){!function pi(e){Vn=e}(()=>{throw new Rt(600,!1)})}(),function $1(e){e.get(cf,null)?.forEach(n=>n())}(t),t}(r),d=[xE({}),{provide:hd,useExisting:vg},...n||[]];return function U1(e){const t=My(e)?e.r3Injector:e.moduleRef.injector,n=t.get(mo);return n.run(()=>{My(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=t.get(fe,null);let l;if(n.runOutsideAngular(()=>{l=n.onError.subscribe({next:d=>{r.handleError(d)}})}),My(e)){const d=()=>t.destroy(),m=e.platformInjector.get(Iy);m.add(d),t.onDestroy(()=>{l.unsubscribe(),m.delete(d)})}else{const d=()=>e.moduleRef.destroy(),m=e.platformInjector.get(Iy);m.add(d),e.moduleRef.onDestroy(()=>{Ay(e.allPlatformModules,e.moduleRef),l.unsubscribe(),m.delete(d)})}return function FM(e,t,n){try{const r=n();return DE(r)?r.catch(l=>{throw t.runOutsideAngular(()=>e.handleError(l)),l}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(r,n,()=>{const d=t.get(O1);return d.runInitializers(),d.donePromise.then(()=>{if(function CT(e){"string"==typeof e&&(OD=e.toLowerCase().replace(/_/g,"-"))}(t.get(TE,gy)||gy),My(e)){const w=t.get(Mc);return void 0!==e.rootComponent&&w.bootstrap(e.rootComponent),w}return function ZM(e,t){const n=e.injector.get(Mc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Rt(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new wC({providers:d,parent:l,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:l,rootComponent:t})}catch(t){return Promise.reject(t)}}function GO(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function KO(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function YO(e,t){c("NgSignals");const n=nt(e);return t?.equal&&(n[G].equal=t.equal),n}function QO(e){const t=ee(null);try{return e()}finally{ee(t)}}const ZO=new Bn("",{providedIn:"root",factory:()=>Di(JO)});let JO=(()=>{class e{static#e=this.\u0275prov=wi({token:e,providedIn:"root",factory:()=>new qO})}return e})();class qO{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Di(bc),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){const n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);const r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,n]of this.queues)null===t?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(const n of t)t.delete(n),this.queuedEffectCount--,n.run()}}class eR{constructor(t,n,r,l,d,m){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=d,this.watcher=function Me(e,t,n){const r=Object.create(ve);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const l=A=>{r.cleanupFn=A};return r.ref={notify:()=>ke(r),run:()=>{if(null===r.fn)return;if(function V(){return o}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Ze(r))return;r.hasRun=!0;const A=te(r);try{r.cleanupFn(),r.cleanupFn=ie,r.fn(l)}finally{be(r,A)}},cleanup:()=>r.cleanupFn(),destroy:()=>function m(A){(function d(A){return null===A.fn&&null===A.schedule})(A)||(gt(A),A.cleanupFn(),A.fn=null,A.schedule=null,A.cleanupFn=ie)}(r),[G]:r},r.ref}(w=>this.runEffect(w),()=>this.schedule(),m),this.unregisterOnDestroy=l?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(fe,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function CS(e,t){c("NgSignals"),!t?.injector&&ir();const n=t?.injector??Di(Es),r=!0!==t?.manualCleanup?n.get(Hu):null,l=new eR(n.get(ZO),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),d=n.get(W1,null,{optional:!0});return d&&8&d._lView[cn]?(d._lView[tr]??=[]).push(l.watcher.notify):l.watcher.notify(),l}function tR(e){const t=Wi(e);if(!t)return null;const n=new xh(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},9417:(tn,Ne,v)=>{"use strict";v.d(Ne,{BC:()=>Ft,JD:()=>Hr,Q0:()=>ma,X1:()=>Ro,YN:()=>fr,YS:()=>Co,cV:()=>wn,cb:()=>Rt,cz:()=>be,hs:()=>ci,j4:()=>rs,k0:()=>je,kq:()=>P,l_:()=>no,me:()=>Re,ok:()=>Ds,qT:()=>ns,vO:()=>dt,vS:()=>Bs,xq:()=>zs,ze:()=>xs});var u=v(4438),y=v(177),o=v(6648),L=v(7468),G=v(1413),ee=v(6354);let oe=(()=>{class z{constructor(k,pe){this._renderer=k,this._elementRef=pe,this.onChange=yt=>{},this.onTouched=()=>{}}setProperty(k,pe){this._renderer.setProperty(this._elementRef.nativeElement,k,pe)}registerOnTouched(k){this.onTouched=k}registerOnChange(k){this.onChange=k}setDisabledState(k){this.setProperty("disabled",k)}static#e=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(u.sFG),u.rXU(u.aKT))};static#t=this.\u0275dir=u.FsC({type:z})}return z})(),V=(()=>{class z extends oe{static#e=this.\u0275fac=(()=>{let k;return function(yt){return(k||(k=u.xGo(z)))(yt||z)}})();static#t=this.\u0275dir=u.FsC({type:z,features:[u.Vt3]})}return z})();const P=new u.nKC(""),ue={provide:P,useExisting:(0,u.Rfq)(()=>Re),multi:!0},Ee=new u.nKC("");let Re=(()=>{class z extends oe{constructor(k,pe,yt){super(k,pe),this._compositionMode=yt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ge(){const z=(0,y.QT)()?(0,y.QT)().getUserAgent():"";return/android (\d+)/.test(z.toLowerCase())}())}writeValue(k){this.setProperty("value",k??"")}_handleInput(k){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(k)}_compositionStart(){this._composing=!0}_compositionEnd(k){this._composing=!1,this._compositionMode&&this.onChange(k)}static#e=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(Ee,8))};static#t=this.\u0275dir=u.FsC({type:z,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(pe,yt){1&pe&&u.bIt("input",function(Xi){return yt._handleInput(Xi.target.value)})("blur",function(){return yt.onTouched()})("compositionstart",function(){return yt._compositionStart()})("compositionend",function(Xi){return yt._compositionEnd(Xi.target.value)})},features:[u.Jv_([ue]),u.Vt3]})}return z})();function ke(z){return null==z||("string"==typeof z||Array.isArray(z))&&0===z.length}function te(z){return null!=z&&"number"==typeof z.length}const be=new u.nKC(""),Ze=new u.nKC(""),gt=/^(?=.{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 je{static min(X){return function qe(z){return X=>{if(ke(X.value)||ke(z))return null;const k=parseFloat(X.value);return!isNaN(k)&&k{if(ke(X.value)||ke(z))return null;const k=parseFloat(X.value);return!isNaN(k)&&k>z?{max:{max:z,actual:X.value}}:null}}(X)}static required(X){return ae(X)}static requiredTrue(X){return me(X)}static email(X){return function Le(z){return ke(z.value)||gt.test(z.value)?null:{email:!0}}(X)}static minLength(X){return function nt(z){return X=>ke(X.value)||!te(X.value)?null:X.value.lengthte(X.value)&&X.value.length>z?{maxlength:{requiredLength:z,actualLength:X.value.length}}:null}(X)}static pattern(X){return function vt(z){if(!z)return Dt;let X,k;return"string"==typeof z?(k="","^"!==z.charAt(0)&&(k+="^"),k+=z,"$"!==z.charAt(z.length-1)&&(k+="$"),X=new RegExp(k)):(k=z.toString(),X=z),pe=>{if(ke(pe.value))return null;const yt=pe.value;return X.test(yt)?null:{pattern:{requiredPattern:k,actualValue:yt}}}}(X)}static nullValidator(X){return null}static compose(X){return Ae(X)}static composeAsync(X){return Ie(X)}}function ae(z){return ke(z.value)?{required:!0}:null}function me(z){return!0===z.value?null:{required:!0}}function Dt(z){return null}function Zt(z){return null!=z}function Fn(z){return(0,u.jNT)(z)?(0,o.H)(z):z}function Vn(z){let X={};return z.forEach(k=>{X=null!=k?{...X,...k}:X}),0===Object.keys(X).length?null:X}function _n(z,X){return X.map(k=>k(z))}function _e(z){return z.map(X=>function pi(z){return!z.validate}(X)?X:k=>X.validate(k))}function Ae(z){if(!z)return null;const X=z.filter(Zt);return 0==X.length?null:function(k){return Vn(_n(k,X))}}function J(z){return null!=z?Ae(_e(z)):null}function Ie(z){if(!z)return null;const X=z.filter(Zt);return 0==X.length?null:function(k){const pe=_n(k,X).map(Fn);return(0,L.p)(pe).pipe((0,ee.T)(Vn))}}function Ot(z){return null!=z?Ie(_e(z)):null}function Pe(z,X){return null===z?[X]:Array.isArray(z)?[...z,X]:[z,X]}function ht(z){return z._rawValidators}function Xe(z){return z._rawAsyncValidators}function Je(z){return z?Array.isArray(z)?z:[z]:[]}function Me(z,X){return Array.isArray(z)?z.includes(X):z===X}function ie(z,X){const k=Je(X);return Je(z).forEach(yt=>{Me(k,yt)||k.push(yt)}),k}function ve(z,X){return Je(X).filter(k=>!Me(z,k))}class le{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(X){this._rawValidators=X||[],this._composedValidatorFn=J(this._rawValidators)}_setAsyncValidators(X){this._rawAsyncValidators=X||[],this._composedAsyncValidatorFn=Ot(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(X){this._onDestroyCallbacks.push(X)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(X=>X()),this._onDestroyCallbacks=[]}reset(X=void 0){this.control&&this.control.reset(X)}hasError(X,k){return!!this.control&&this.control.hasError(X,k)}getError(X,k){return this.control?this.control.getError(X,k):null}}class Ce extends le{get formDirective(){return null}get path(){return null}}class dt extends le{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class un{constructor(X){this._cd=X}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 Ft=(()=>{class z extends un{constructor(k){super(k)}static#e=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(dt,2))};static#t=this.\u0275dir=u.FsC({type:z,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(pe,yt){2&pe&&u.AVh("ng-untouched",yt.isUntouched)("ng-touched",yt.isTouched)("ng-pristine",yt.isPristine)("ng-dirty",yt.isDirty)("ng-valid",yt.isValid)("ng-invalid",yt.isInvalid)("ng-pending",yt.isPending)},features:[u.Vt3]})}return z})(),Rt=(()=>{class z extends un{constructor(k){super(k)}static#e=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(Ce,10))};static#t=this.\u0275dir=u.FsC({type:z,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(pe,yt){2&pe&&u.AVh("ng-untouched",yt.isUntouched)("ng-touched",yt.isTouched)("ng-pristine",yt.isPristine)("ng-dirty",yt.isDirty)("ng-valid",yt.isValid)("ng-invalid",yt.isInvalid)("ng-pending",yt.isPending)("ng-submitted",yt.isSubmitted)},features:[u.Vt3]})}return z})();const Mn="VALID",Ln="INVALID",Ei="PENDING",Jt="DISABLED";class En{}class He extends En{constructor(X,k){super(),this.value=X,this.source=k}}class Be extends En{constructor(X,k){super(),this.pristine=X,this.source=k}}class ye extends En{constructor(X,k){super(),this.touched=X,this.source=k}}class Ke extends En{constructor(X,k){super(),this.status=X,this.source=k}}class zt extends En{constructor(X){super(),this.source=X}}class Pn extends En{constructor(X){super(),this.source=X}}function vi(z){return(at(z)?z.validators:z)||null}function nn(z,X){return(at(X)?X.asyncValidators:z)||null}function at(z){return null!=z&&!Array.isArray(z)&&"object"==typeof z}function Lt(z,X,k){const pe=z.controls;if(!(X?Object.keys(pe):pe).length)throw new u.wOt(1e3,"");if(!pe[k])throw new u.wOt(1001,"")}function st(z,X,k){z._forEachChild((pe,yt)=>{if(void 0===k[yt])throw new u.wOt(1002,"")})}class Qe{constructor(X,k){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=(0,u.EWP)(()=>this.statusReactive()),this.statusReactive=(0,u.vPA)(void 0),this._pristine=(0,u.EWP)(()=>this.pristineReactive()),this.pristineReactive=(0,u.vPA)(!0),this._touched=(0,u.EWP)(()=>this.touchedReactive()),this.touchedReactive=(0,u.vPA)(!1),this._events=new G.B,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(X),this._assignAsyncValidators(k)}get validator(){return this._composedValidatorFn}set validator(X){this._rawValidators=this._composedValidatorFn=X}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(X){this._rawAsyncValidators=this._composedAsyncValidatorFn=X}get parent(){return this._parent}get status(){return(0,u.O8t)(this.statusReactive)}set status(X){(0,u.O8t)(()=>this.statusReactive.set(X))}get valid(){return this.status===Mn}get invalid(){return this.status===Ln}get pending(){return this.status==Ei}get disabled(){return this.status===Jt}get enabled(){return this.status!==Jt}get pristine(){return(0,u.O8t)(this.pristineReactive)}set pristine(X){(0,u.O8t)(()=>this.pristineReactive.set(X))}get dirty(){return!this.pristine}get touched(){return(0,u.O8t)(this.touchedReactive)}set touched(X){(0,u.O8t)(()=>this.touchedReactive.set(X))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(X){this._assignValidators(X)}setAsyncValidators(X){this._assignAsyncValidators(X)}addValidators(X){this.setValidators(ie(X,this._rawValidators))}addAsyncValidators(X){this.setAsyncValidators(ie(X,this._rawAsyncValidators))}removeValidators(X){this.setValidators(ve(X,this._rawValidators))}removeAsyncValidators(X){this.setAsyncValidators(ve(X,this._rawAsyncValidators))}hasValidator(X){return Me(this._rawValidators,X)}hasAsyncValidator(X){return Me(this._rawAsyncValidators,X)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(X={}){const k=!1===this.touched;this.touched=!0;const pe=X.sourceControl??this;this._parent&&!X.onlySelf&&this._parent.markAsTouched({...X,sourceControl:pe}),k&&!1!==X.emitEvent&&this._events.next(new ye(!0,pe))}markAllAsTouched(X={}){this.markAsTouched({onlySelf:!0,emitEvent:X.emitEvent,sourceControl:this}),this._forEachChild(k=>k.markAllAsTouched(X))}markAsUntouched(X={}){const k=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const pe=X.sourceControl??this;this._forEachChild(yt=>{yt.markAsUntouched({onlySelf:!0,emitEvent:X.emitEvent,sourceControl:pe})}),this._parent&&!X.onlySelf&&this._parent._updateTouched(X,pe),k&&!1!==X.emitEvent&&this._events.next(new ye(!1,pe))}markAsDirty(X={}){const k=!0===this.pristine;this.pristine=!1;const pe=X.sourceControl??this;this._parent&&!X.onlySelf&&this._parent.markAsDirty({...X,sourceControl:pe}),k&&!1!==X.emitEvent&&this._events.next(new Be(!1,pe))}markAsPristine(X={}){const k=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const pe=X.sourceControl??this;this._forEachChild(yt=>{yt.markAsPristine({onlySelf:!0,emitEvent:X.emitEvent})}),this._parent&&!X.onlySelf&&this._parent._updatePristine(X,pe),k&&!1!==X.emitEvent&&this._events.next(new Be(!0,pe))}markAsPending(X={}){this.status=Ei;const k=X.sourceControl??this;!1!==X.emitEvent&&(this._events.next(new Ke(this.status,k)),this.statusChanges.emit(this.status)),this._parent&&!X.onlySelf&&this._parent.markAsPending({...X,sourceControl:k})}disable(X={}){const k=this._parentMarkedDirty(X.onlySelf);this.status=Jt,this.errors=null,this._forEachChild(yt=>{yt.disable({...X,onlySelf:!0})}),this._updateValue();const pe=X.sourceControl??this;!1!==X.emitEvent&&(this._events.next(new He(this.value,pe)),this._events.next(new Ke(this.status,pe)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...X,skipPristineCheck:k},this),this._onDisabledChange.forEach(yt=>yt(!0))}enable(X={}){const k=this._parentMarkedDirty(X.onlySelf);this.status=Mn,this._forEachChild(pe=>{pe.enable({...X,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:X.emitEvent}),this._updateAncestors({...X,skipPristineCheck:k},this),this._onDisabledChange.forEach(pe=>pe(!1))}_updateAncestors(X,k){this._parent&&!X.onlySelf&&(this._parent.updateValueAndValidity(X),X.skipPristineCheck||this._parent._updatePristine({},k),this._parent._updateTouched({},k))}setParent(X){this._parent=X}getRawValue(){return this.value}updateValueAndValidity(X={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const pe=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Mn||this.status===Ei)&&this._runAsyncValidator(pe,X.emitEvent)}const k=X.sourceControl??this;!1!==X.emitEvent&&(this._events.next(new He(this.value,k)),this._events.next(new Ke(this.status,k)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!X.onlySelf&&this._parent.updateValueAndValidity({...X,sourceControl:k})}_updateTreeValidity(X={emitEvent:!0}){this._forEachChild(k=>k._updateTreeValidity(X)),this.updateValueAndValidity({onlySelf:!0,emitEvent:X.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Jt:Mn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(X,k){if(this.asyncValidator){this.status=Ei,this._hasOwnPendingAsyncValidator={emitEvent:!1!==k};const pe=Fn(this.asyncValidator(this));this._asyncValidationSubscription=pe.subscribe(yt=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(yt,{emitEvent:k,shouldHaveEmitted:X})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const X=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,X}return!1}setErrors(X,k={}){this.errors=X,this._updateControlsErrors(!1!==k.emitEvent,this,k.shouldHaveEmitted)}get(X){let k=X;return null==k||(Array.isArray(k)||(k=k.split(".")),0===k.length)?null:k.reduce((pe,yt)=>pe&&pe._find(yt),this)}getError(X,k){const pe=k?this.get(k):this;return pe&&pe.errors?pe.errors[X]:null}hasError(X,k){return!!this.getError(X,k)}get root(){let X=this;for(;X._parent;)X=X._parent;return X}_updateControlsErrors(X,k,pe){this.status=this._calculateStatus(),X&&this.statusChanges.emit(this.status),(X||pe)&&this._events.next(new Ke(this.status,k)),this._parent&&this._parent._updateControlsErrors(X,k,pe)}_initObservables(){this.valueChanges=new u.bkB,this.statusChanges=new u.bkB}_calculateStatus(){return this._allControlsDisabled()?Jt:this.errors?Ln:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ei)?Ei:this._anyControlsHaveStatus(Ln)?Ln:Mn}_anyControlsHaveStatus(X){return this._anyControls(k=>k.status===X)}_anyControlsDirty(){return this._anyControls(X=>X.dirty)}_anyControlsTouched(){return this._anyControls(X=>X.touched)}_updatePristine(X,k){const pe=!this._anyControlsDirty(),yt=this.pristine!==pe;this.pristine=pe,this._parent&&!X.onlySelf&&this._parent._updatePristine(X,k),yt&&this._events.next(new Be(this.pristine,k))}_updateTouched(X={},k){this.touched=this._anyControlsTouched(),this._events.next(new ye(this.touched,k)),this._parent&&!X.onlySelf&&this._parent._updateTouched(X,k)}_registerOnCollectionChange(X){this._onCollectionChange=X}_setUpdateStrategy(X){at(X)&&null!=X.updateOn&&(this._updateOn=X.updateOn)}_parentMarkedDirty(X){return!X&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(X){return null}_assignValidators(X){this._rawValidators=Array.isArray(X)?X.slice():X,this._composedValidatorFn=function Ti(z){return Array.isArray(z)?J(z):z||null}(this._rawValidators)}_assignAsyncValidators(X){this._rawAsyncValidators=Array.isArray(X)?X.slice():X,this._composedAsyncValidatorFn=function Et(z){return Array.isArray(z)?Ot(z):z||null}(this._rawAsyncValidators)}}class Oe extends Qe{constructor(X,k,pe){super(vi(k),nn(pe,k)),this.controls=X,this._initObservables(),this._setUpdateStrategy(k),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(X,k){return this.controls[X]?this.controls[X]:(this.controls[X]=k,k.setParent(this),k._registerOnCollectionChange(this._onCollectionChange),k)}addControl(X,k,pe={}){this.registerControl(X,k),this.updateValueAndValidity({emitEvent:pe.emitEvent}),this._onCollectionChange()}removeControl(X,k={}){this.controls[X]&&this.controls[X]._registerOnCollectionChange(()=>{}),delete this.controls[X],this.updateValueAndValidity({emitEvent:k.emitEvent}),this._onCollectionChange()}setControl(X,k,pe={}){this.controls[X]&&this.controls[X]._registerOnCollectionChange(()=>{}),delete this.controls[X],k&&this.registerControl(X,k),this.updateValueAndValidity({emitEvent:pe.emitEvent}),this._onCollectionChange()}contains(X){return this.controls.hasOwnProperty(X)&&this.controls[X].enabled}setValue(X,k={}){st(this,0,X),Object.keys(X).forEach(pe=>{Lt(this,!0,pe),this.controls[pe].setValue(X[pe],{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k)}patchValue(X,k={}){null!=X&&(Object.keys(X).forEach(pe=>{const yt=this.controls[pe];yt&&yt.patchValue(X[pe],{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k))}reset(X={},k={}){this._forEachChild((pe,yt)=>{pe.reset(X?X[yt]:null,{onlySelf:!0,emitEvent:k.emitEvent})}),this._updatePristine(k,this),this._updateTouched(k,this),this.updateValueAndValidity(k)}getRawValue(){return this._reduceChildren({},(X,k,pe)=>(X[pe]=k.getRawValue(),X))}_syncPendingControls(){let X=this._reduceChildren(!1,(k,pe)=>!!pe._syncPendingControls()||k);return X&&this.updateValueAndValidity({onlySelf:!0}),X}_forEachChild(X){Object.keys(this.controls).forEach(k=>{const pe=this.controls[k];pe&&X(pe,k)})}_setUpControls(){this._forEachChild(X=>{X.setParent(this),X._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(X){for(const[k,pe]of Object.entries(this.controls))if(this.contains(k)&&X(pe))return!0;return!1}_reduceValue(){return this._reduceChildren({},(k,pe,yt)=>((pe.enabled||this.disabled)&&(k[yt]=pe.value),k))}_reduceChildren(X,k){let pe=X;return this._forEachChild((yt,ii)=>{pe=k(pe,yt,ii)}),pe}_allControlsDisabled(){for(const X of Object.keys(this.controls))if(this.controls[X].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(X){return this.controls.hasOwnProperty(X)?this.controls[X]:null}}class ai extends Oe{}const xr=new u.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>Ri}),Ri="always";function Pr(z,X){return[...X.path,z]}function wi(z,X,k=Ri){St(z,X),X.valueAccessor.writeValue(z.value),(z.disabled||"always"===k)&&X.valueAccessor.setDisabledState?.(z.disabled),function yn(z,X){X.valueAccessor.registerOnChange(k=>{z._pendingValue=k,z._pendingChange=!0,z._pendingDirty=!0,"change"===z.updateOn&&Xn(z,X)})}(z,X),function zn(z,X){const k=(pe,yt)=>{X.valueAccessor.writeValue(pe),yt&&X.viewToModelUpdate(pe)};z.registerOnChange(k),X._registerOnDestroy(()=>{z._unregisterOnChange(k)})}(z,X),function An(z,X){X.valueAccessor.registerOnTouched(()=>{z._pendingTouched=!0,"blur"===z.updateOn&&z._pendingChange&&Xn(z,X),"submit"!==z.updateOn&&z.markAsTouched()})}(z,X),function ft(z,X){if(X.valueAccessor.setDisabledState){const k=pe=>{X.valueAccessor.setDisabledState(pe)};z.registerOnDisabledChange(k),X._registerOnDestroy(()=>{z._unregisterOnDisabledChange(k)})}}(z,X)}function Yr(z,X,k=!0){const pe=()=>{};X.valueAccessor&&(X.valueAccessor.registerOnChange(pe),X.valueAccessor.registerOnTouched(pe)),ln(z,X),z&&(X._invokeOnDestroyCallbacks(),z._registerOnCollectionChange(()=>{}))}function Or(z,X){z.forEach(k=>{k.registerOnValidatorChange&&k.registerOnValidatorChange(X)})}function St(z,X){const k=ht(z);null!==X.validator?z.setValidators(Pe(k,X.validator)):"function"==typeof k&&z.setValidators([k]);const pe=Xe(z);null!==X.asyncValidator?z.setAsyncValidators(Pe(pe,X.asyncValidator)):"function"==typeof pe&&z.setAsyncValidators([pe]);const yt=()=>z.updateValueAndValidity();Or(X._rawValidators,yt),Or(X._rawAsyncValidators,yt)}function ln(z,X){let k=!1;if(null!==z){if(null!==X.validator){const yt=ht(z);if(Array.isArray(yt)&&yt.length>0){const ii=yt.filter(Xi=>Xi!==X.validator);ii.length!==yt.length&&(k=!0,z.setValidators(ii))}}if(null!==X.asyncValidator){const yt=Xe(z);if(Array.isArray(yt)&&yt.length>0){const ii=yt.filter(Xi=>Xi!==X.asyncValidator);ii.length!==yt.length&&(k=!0,z.setAsyncValidators(ii))}}}const pe=()=>{};return Or(X._rawValidators,pe),Or(X._rawAsyncValidators,pe),k}function Xn(z,X){z._pendingDirty&&z.markAsDirty(),z.setValue(z._pendingValue,{emitModelToViewChange:!1}),X.viewToModelUpdate(z._pendingValue),z._pendingChange=!1}function ri(z,X){St(z,X)}function Te(z,X){if(!z.hasOwnProperty("model"))return!1;const k=z.model;return!!k.isFirstChange()||!Object.is(X,k.currentValue)}function $e(z,X){z._syncPendingControls(),X.forEach(k=>{const pe=k.control;"submit"===pe.updateOn&&pe._pendingChange&&(k.viewToModelUpdate(pe._pendingValue),pe._pendingChange=!1)})}function pt(z,X){if(!X)return null;let k,pe,yt;return Array.isArray(X),X.forEach(ii=>{ii.constructor===Re?k=ii:function se(z){return Object.getPrototypeOf(z.constructor)===V}(ii)?pe=ii:yt=ii}),yt||pe||k||null}const hn={provide:Ce,useExisting:(0,u.Rfq)(()=>wn)},fn=Promise.resolve();let wn=(()=>{class z extends Ce{get submitted(){return(0,u.O8t)(this.submittedReactive)}constructor(k,pe,yt){super(),this.callSetDisabledState=yt,this._submitted=(0,u.EWP)(()=>this.submittedReactive()),this.submittedReactive=(0,u.vPA)(!1),this._directives=new Set,this.ngSubmit=new u.bkB,this.form=new Oe({},J(k),Ot(pe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(k){fn.then(()=>{const pe=this._findContainer(k.path);k.control=pe.registerControl(k.name,k.control),wi(k.control,k,this.callSetDisabledState),k.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(k)})}getControl(k){return this.form.get(k.path)}removeControl(k){fn.then(()=>{const pe=this._findContainer(k.path);pe&&pe.removeControl(k.name),this._directives.delete(k)})}addFormGroup(k){fn.then(()=>{const pe=this._findContainer(k.path),yt=new Oe({});ri(yt,k),pe.registerControl(k.name,yt),yt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(k){fn.then(()=>{const pe=this._findContainer(k.path);pe&&pe.removeControl(k.name)})}getFormGroup(k){return this.form.get(k.path)}updateModel(k,pe){fn.then(()=>{this.form.get(k.path).setValue(pe)})}setValue(k){this.control.setValue(k)}onSubmit(k){return this.submittedReactive.set(!0),$e(this.form,this._directives),this.ngSubmit.emit(k),"dialog"===k?.target?.method}onReset(){this.resetForm()}resetForm(k=void 0){this.form.reset(k),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(k){return k.pop(),k.length?this.form.get(k):this.form}static#e=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(be,10),u.rXU(Ze,10),u.rXU(xr,8))};static#t=this.\u0275dir=u.FsC({type:z,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(pe,yt){1&pe&&u.bIt("submit",function(Xi){return yt.onSubmit(Xi)})("reset",function(){return yt.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u.Jv_([hn]),u.Vt3]})}return z})();function Dn(z,X){const k=z.indexOf(X);k>-1&&z.splice(k,1)}function jn(z){return"object"==typeof z&&null!==z&&2===Object.keys(z).length&&"value"in z&&"disabled"in z}const $n=class extends Qe{constructor(X=null,k,pe){super(vi(k),nn(pe,k)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(X),this._setUpdateStrategy(k),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),at(k)&&(k.nonNullable||k.initialValueIsDefault)&&(this.defaultValue=jn(X)?X.value:X)}setValue(X,k={}){this.value=this._pendingValue=X,this._onChange.length&&!1!==k.emitModelToViewChange&&this._onChange.forEach(pe=>pe(this.value,!1!==k.emitViewToModelChange)),this.updateValueAndValidity(k)}patchValue(X,k={}){this.setValue(X,k)}reset(X=this.defaultValue,k={}){this._applyFormState(X),this.markAsPristine(k),this.markAsUntouched(k),this.setValue(this.value,k),this._pendingChange=!1}_updateValue(){}_anyControls(X){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(X){this._onChange.push(X)}_unregisterOnChange(X){Dn(this._onChange,X)}registerOnDisabledChange(X){this._onDisabledChange.push(X)}_unregisterOnDisabledChange(X){Dn(this._onDisabledChange,X)}_forEachChild(X){}_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(X){jn(X)?(this.value=this._pendingValue=X.value,X.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=X}},ci=$n,$o={provide:dt,useExisting:(0,u.Rfq)(()=>Bs)},zi=Promise.resolve();let Bs=(()=>{class z extends dt{constructor(k,pe,yt,ii,Xi,ko){super(),this._changeDetectorRef=Xi,this.callSetDisabledState=ko,this.control=new $n,this._registered=!1,this.name="",this.update=new u.bkB,this._parent=k,this._setValidators(pe),this._setAsyncValidators(yt),this.valueAccessor=pt(0,ii)}ngOnChanges(k){if(this._checkForErrors(),!this._registered||"name"in k){if(this._registered&&(this._checkName(),this.formDirective)){const pe=k.name.previousValue;this.formDirective.removeControl({name:pe,path:this._getPath(pe)})}this._setUpControl()}"isDisabled"in k&&this._updateDisabled(k),Te(k,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(k){this.viewModel=k,this.update.emit(k)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){wi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(k){zi.then(()=>{this.control.setValue(k,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(k){const pe=k.isDisabled.currentValue,yt=0!==pe&&(0,u.L39)(pe);zi.then(()=>{yt&&!this.control.disabled?this.control.disable():!yt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(k){return this._parent?Pr(k,this._parent):[k]}static#e=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(Ce,9),u.rXU(be,10),u.rXU(Ze,10),u.rXU(P,10),u.rXU(u.gRc,8),u.rXU(xr,8))};static#t=this.\u0275dir=u.FsC({type:z,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[u.Jv_([$o]),u.Vt3,u.OA$]})}return z})(),ns=(()=>{class z{static#e=this.\u0275fac=function(pe){return new(pe||z)};static#t=this.\u0275dir=u.FsC({type:z,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return z})();const oo={provide:P,useExisting:(0,u.Rfq)(()=>ma),multi:!0};let ma=(()=>{class z extends V{writeValue(k){this.setProperty("value",k??"")}registerOnChange(k){this.onChange=pe=>{k(""==pe?null:parseFloat(pe))}}static#e=this.\u0275fac=(()=>{let k;return function(yt){return(k||(k=u.xGo(z)))(yt||z)}})();static#t=this.\u0275dir=u.FsC({type:z,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(pe,yt){1&pe&&u.bIt("input",function(Xi){return yt.onChange(Xi.target.value)})("blur",function(){return yt.onTouched()})},features:[u.Jv_([oo]),u.Vt3]})}return z})();const hr=new u.nKC(""),is={provide:dt,useExisting:(0,u.Rfq)(()=>no)};let no=(()=>{class z extends dt{set isDisabled(k){}static#e=this._ngModelWarningSentOnce=!1;constructor(k,pe,yt,ii,Xi){super(),this._ngModelWarningConfig=ii,this.callSetDisabledState=Xi,this.update=new u.bkB,this._ngModelWarningSent=!1,this._setValidators(k),this._setAsyncValidators(pe),this.valueAccessor=pt(0,yt)}ngOnChanges(k){if(this._isControlChanged(k)){const pe=k.form.previousValue;pe&&Yr(pe,this,!1),wi(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Te(k,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Yr(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(k){this.viewModel=k,this.update.emit(k)}_isControlChanged(k){return k.hasOwnProperty("form")}static#t=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(be,10),u.rXU(Ze,10),u.rXU(P,10),u.rXU(hr,8),u.rXU(xr,8))};static#n=this.\u0275dir=u.FsC({type:z,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[u.Jv_([is]),u.Vt3,u.OA$]})}return z})();const Ii={provide:Ce,useExisting:(0,u.Rfq)(()=>rs)};let rs=(()=>{class z extends Ce{get submitted(){return(0,u.O8t)(this._submittedReactive)}set submitted(k){this._submittedReactive.set(k)}constructor(k,pe,yt){super(),this.callSetDisabledState=yt,this._submitted=(0,u.EWP)(()=>this._submittedReactive()),this._submittedReactive=(0,u.vPA)(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new u.bkB,this._setValidators(k),this._setAsyncValidators(pe)}ngOnChanges(k){this._checkFormPresent(),k.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ln(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(k){const pe=this.form.get(k.path);return wi(pe,k,this.callSetDisabledState),pe.updateValueAndValidity({emitEvent:!1}),this.directives.push(k),pe}getControl(k){return this.form.get(k.path)}removeControl(k){Yr(k.control||null,k,!1),function lt(z,X){const k=z.indexOf(X);k>-1&&z.splice(k,1)}(this.directives,k)}addFormGroup(k){this._setUpFormContainer(k)}removeFormGroup(k){this._cleanUpFormContainer(k)}getFormGroup(k){return this.form.get(k.path)}addFormArray(k){this._setUpFormContainer(k)}removeFormArray(k){this._cleanUpFormContainer(k)}getFormArray(k){return this.form.get(k.path)}updateModel(k,pe){this.form.get(k.path).setValue(pe)}onSubmit(k){return this._submittedReactive.set(!0),$e(this.form,this.directives),this.ngSubmit.emit(k),this.form._events.next(new zt(this.control)),"dialog"===k?.target?.method}onReset(){this.resetForm()}resetForm(k=void 0){this.form.reset(k),this._submittedReactive.set(!1),this.form._events.next(new Pn(this.form))}_updateDomValue(){this.directives.forEach(k=>{const pe=k.control,yt=this.form.get(k.path);pe!==yt&&(Yr(pe||null,k),(z=>z instanceof $n)(yt)&&(wi(yt,k,this.callSetDisabledState),k.control=yt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(k){const pe=this.form.get(k.path);ri(pe,k),pe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(k){if(this.form){const pe=this.form.get(k.path);pe&&function li(z,X){return ln(z,X)}(pe,k)&&pe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){St(this.form,this),this._oldForm&&ln(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(be,10),u.rXU(Ze,10),u.rXU(xr,8))};static#t=this.\u0275dir=u.FsC({type:z,selectors:[["","formGroup",""]],hostBindings:function(pe,yt){1&pe&&u.bIt("submit",function(Xi){return yt.onSubmit(Xi)})("reset",function(){return yt.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u.Jv_([Ii]),u.Vt3,u.OA$]})}return z})();const js={provide:dt,useExisting:(0,u.Rfq)(()=>Hr)};let Hr=(()=>{class z extends dt{set isDisabled(k){}static#e=this._ngModelWarningSentOnce=!1;constructor(k,pe,yt,ii,Xi){super(),this._ngModelWarningConfig=Xi,this._added=!1,this.name=null,this.update=new u.bkB,this._ngModelWarningSent=!1,this._parent=k,this._setValidators(pe),this._setAsyncValidators(yt),this.valueAccessor=pt(0,ii)}ngOnChanges(k){this._added||this._setUpControl(),Te(k,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(k){this.viewModel=k,this.update.emit(k)}get path(){return Pr(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#t=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(Ce,13),u.rXU(be,10),u.rXU(Ze,10),u.rXU(P,10),u.rXU(hr,8))};static#n=this.\u0275dir=u.FsC({type:z,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[u.Jv_([js]),u.Vt3,u.OA$]})}return z})(),Eo=(()=>{class z{constructor(){this._validator=Dt}ngOnChanges(k){if(this.inputName in k){const pe=this.normalizeInput(k[this.inputName].currentValue);this._enabled=this.enabled(pe),this._validator=this._enabled?this.createValidator(pe):Dt,this._onChange&&this._onChange()}}validate(k){return this._validator(k)}registerOnValidatorChange(k){this._onChange=k}enabled(k){return null!=k}static#e=this.\u0275fac=function(pe){return new(pe||z)};static#t=this.\u0275dir=u.FsC({type:z,features:[u.OA$]})}return z})();const Wo={provide:be,useExisting:(0,u.Rfq)(()=>Co),multi:!0},ul={provide:be,useExisting:(0,u.Rfq)(()=>zs),multi:!0};let Co=(()=>{class z extends Eo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=u.L39,this.createValidator=k=>ae}enabled(k){return k}static#e=this.\u0275fac=(()=>{let k;return function(yt){return(k||(k=u.xGo(z)))(yt||z)}})();static#t=this.\u0275dir=u.FsC({type:z,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(pe,yt){2&pe&&u.BMQ("required",yt._enabled?"":null)},inputs:{required:"required"},features:[u.Jv_([Wo]),u.Vt3]})}return z})(),zs=(()=>{class z extends Co{constructor(){super(...arguments),this.createValidator=k=>me}static#e=this.\u0275fac=(()=>{let k;return function(yt){return(k||(k=u.xGo(z)))(yt||z)}})();static#t=this.\u0275dir=u.FsC({type:z,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(pe,yt){2&pe&&u.BMQ("required",yt._enabled?"":null)},features:[u.Jv_([ul]),u.Vt3]})}return z})(),Mo=(()=>{class z{static#e=this.\u0275fac=function(pe){return new(pe||z)};static#t=this.\u0275mod=u.$C({type:z});static#n=this.\u0275inj=u.G2t({})}return z})();class as extends Qe{constructor(X,k,pe){super(vi(k),nn(pe,k)),this.controls=X,this._initObservables(),this._setUpdateStrategy(k),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(X){return this.controls[this._adjustIndex(X)]}push(X,k={}){this.controls.push(X),this._registerControl(X),this.updateValueAndValidity({emitEvent:k.emitEvent}),this._onCollectionChange()}insert(X,k,pe={}){this.controls.splice(X,0,k),this._registerControl(k),this.updateValueAndValidity({emitEvent:pe.emitEvent})}removeAt(X,k={}){let pe=this._adjustIndex(X);pe<0&&(pe=0),this.controls[pe]&&this.controls[pe]._registerOnCollectionChange(()=>{}),this.controls.splice(pe,1),this.updateValueAndValidity({emitEvent:k.emitEvent})}setControl(X,k,pe={}){let yt=this._adjustIndex(X);yt<0&&(yt=0),this.controls[yt]&&this.controls[yt]._registerOnCollectionChange(()=>{}),this.controls.splice(yt,1),k&&(this.controls.splice(yt,0,k),this._registerControl(k)),this.updateValueAndValidity({emitEvent:pe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(X,k={}){st(this,0,X),X.forEach((pe,yt)=>{Lt(this,!1,yt),this.at(yt).setValue(pe,{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k)}patchValue(X,k={}){null!=X&&(X.forEach((pe,yt)=>{this.at(yt)&&this.at(yt).patchValue(pe,{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k))}reset(X=[],k={}){this._forEachChild((pe,yt)=>{pe.reset(X[yt],{onlySelf:!0,emitEvent:k.emitEvent})}),this._updatePristine(k,this),this._updateTouched(k,this),this.updateValueAndValidity(k)}getRawValue(){return this.controls.map(X=>X.getRawValue())}clear(X={}){this.controls.length<1||(this._forEachChild(k=>k._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:X.emitEvent}))}_adjustIndex(X){return X<0?X+this.length:X}_syncPendingControls(){let X=this.controls.reduce((k,pe)=>!!pe._syncPendingControls()||k,!1);return X&&this.updateValueAndValidity({onlySelf:!0}),X}_forEachChild(X){this.controls.forEach((k,pe)=>{X(k,pe)})}_updateValue(){this.value=this.controls.filter(X=>X.enabled||this.disabled).map(X=>X.value)}_anyControls(X){return this.controls.some(k=>k.enabled&&X(k))}_setUpControls(){this._forEachChild(X=>this._registerControl(X))}_allControlsDisabled(){for(const X of this.controls)if(X.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(X){X.setParent(this),X._registerOnCollectionChange(this._onCollectionChange)}_find(X){return this.at(X)??null}}function Ia(z){return!!z&&(void 0!==z.asyncValidators||void 0!==z.validators||void 0!==z.updateOn)}let Ds=(()=>{class z{constructor(){this.useNonNullable=!1}get nonNullable(){const k=new z;return k.useNonNullable=!0,k}group(k,pe=null){const yt=this._reduceControls(k);let ii={};return Ia(pe)?ii=pe:null!==pe&&(ii.validators=pe.validator,ii.asyncValidators=pe.asyncValidator),new Oe(yt,ii)}record(k,pe=null){const yt=this._reduceControls(k);return new ai(yt,pe)}control(k,pe,yt){let ii={};return this.useNonNullable?(Ia(pe)?ii=pe:(ii.validators=pe,ii.asyncValidators=yt),new $n(k,{...ii,nonNullable:!0})):new $n(k,pe,yt)}array(k,pe,yt){const ii=k.map(Xi=>this._createControl(Xi));return new as(ii,pe,yt)}_reduceControls(k){const pe={};return Object.keys(k).forEach(yt=>{pe[yt]=this._createControl(k[yt])}),pe}_createControl(k){return k instanceof $n||k instanceof Qe?k:Array.isArray(k)?this.control(k[0],k.length>1?k[1]:null,k.length>2?k[2]:null):this.control(k)}static#e=this.\u0275fac=function(pe){return new(pe||z)};static#t=this.\u0275prov=u.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),xs=(()=>{class z extends Ds{group(k,pe=null){return super.group(k,pe)}control(k,pe,yt){return super.control(k,pe,yt)}array(k,pe,yt){return super.array(k,pe,yt)}static#e=this.\u0275fac=(()=>{let k;return function(yt){return(k||(k=u.xGo(z)))(yt||z)}})();static#t=this.\u0275prov=u.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),fr=(()=>{class z{static withConfig(k){return{ngModule:z,providers:[{provide:xr,useValue:k.callSetDisabledState??Ri}]}}static#e=this.\u0275fac=function(pe){return new(pe||z)};static#t=this.\u0275mod=u.$C({type:z});static#n=this.\u0275inj=u.G2t({imports:[Mo]})}return z})(),Ro=(()=>{class z{static withConfig(k){return{ngModule:z,providers:[{provide:hr,useValue:k.warnOnNgModelWithFormControl??"always"},{provide:xr,useValue:k.callSetDisabledState??Ri}]}}static#e=this.\u0275fac=function(pe){return new(pe||z)};static#t=this.\u0275mod=u.$C({type:z});static#n=this.\u0275inj=u.G2t({imports:[Mo]})}return z})()},8834:(tn,Ne,v)=>{"use strict";v.d(Ne,{$0:()=>At,$z:()=>qe,Hl:()=>Vn,It:()=>We,iY:()=>Zt,pQ:()=>Fn});var u=v(6860),y=v(4438),o=v(9888),L=v(6600);const G=["mat-button",""],ee=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],oe=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],P=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",F=["mat-mini-fab",""],ge=["mat-icon-button",""],Ee=["*"],ke=new y.nKC("MAT_BUTTON_CONFIG"),be=[{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 Ze=(()=>{class _n{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(_e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,_e)}get disableRipple(){return this._disableRipple}set disableRipple(_e){this._disableRipple=_e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(_e){this._disabled=_e,this._updateRippleDisabled()}constructor(_e,Ae,J,Ie){this._elementRef=_e,this._platform=Ae,this._ngZone=J,this._animationMode=Ie,this._focusMonitor=(0,y.WQX)(o.FN),this._rippleLoader=(0,y.WQX)(L.Ej),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const Ot=(0,y.WQX)(ke,{optional:!0}),Pe=_e.nativeElement,ht=Pe.classList;this.disabledInteractive=Ot?.disabledInteractive??!1,this.color=Ot?.color??null,this._rippleLoader?.configureRipple(Pe,{className:"mat-mdc-button-ripple"});for(const{attribute:Xe,mdcClasses:Je}of be)Pe.hasAttribute(Xe)&&ht.add(...Je)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(_e="program",Ae){_e?this._focusMonitor.focusVia(this._elementRef.nativeElement,_e,Ae):this._elementRef.nativeElement.focus(Ae)}_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#e=this.\u0275fac=function(Ae){y.QTQ()};static#t=this.\u0275dir=y.FsC({type:_n,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",y.L39],disabled:[2,"disabled","disabled",y.L39],ariaDisabled:[2,"aria-disabled","ariaDisabled",y.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",y.L39]},features:[y.GFd]})}return _n})(),je=(()=>{class _n extends Ze{constructor(_e,Ae,J,Ie){super(_e,Ae,J,Ie),this._haltDisabledEvents=Ot=>{this.disabled&&(Ot.preventDefault(),Ot.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return null==this.ariaDisabled?this.disabled:this.ariaDisabled}static#e=this.\u0275fac=function(Ae){y.QTQ()};static#t=this.\u0275dir=y.FsC({type:_n,inputs:{tabIndex:[2,"tabIndex","tabIndex",_e=>null==_e?void 0:(0,y.Udg)(_e)]},features:[y.GFd,y.Vt3]})}return _n})(),qe=(()=>{class _n extends Ze{constructor(_e,Ae,J,Ie){super(_e,Ae,J,Ie)}static#e=this.\u0275fac=function(Ae){return new(Ae||_n)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))};static#t=this.\u0275cmp=y.VBU({type:_n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(Ae,J){2&Ae&&(y.BMQ("disabled",J._getDisabledAttribute())("aria-disabled",J._getAriaDisabled()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[y.Vt3,y.aNF],attrs:G,ngContentSelectors:oe,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ae,J){1&Ae&&(y.NAR(ee),y.nrm(0,"span",0),y.SdG(1),y.j41(2,"span",1),y.SdG(3,1),y.k0s(),y.SdG(4,2),y.nrm(5,"span",2)(6,"span",3)),2&Ae&&y.AVh("mdc-button__ripple",!J._isFab)("mdc-fab__ripple",J._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return _n})(),We=(()=>{class _n extends je{constructor(_e,Ae,J,Ie){super(_e,Ae,J,Ie)}static#e=this.\u0275fac=function(Ae){return new(Ae||_n)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))};static#t=this.\u0275cmp=y.VBU({type:_n,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(Ae,J){2&Ae&&(y.BMQ("disabled",J._getDisabledAttribute())("tabindex",J.disabled&&!J.disabledInteractive?-1:J.tabIndex)("aria-disabled",J._getDisabledAttribute()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[y.Vt3,y.aNF],attrs:G,ngContentSelectors:oe,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ae,J){1&Ae&&(y.NAR(ee),y.nrm(0,"span",0),y.SdG(1),y.j41(2,"span",1),y.SdG(3,1),y.k0s(),y.SdG(4,2),y.nrm(5,"span",2)(6,"span",3)),2&Ae&&y.AVh("mdc-button__ripple",!J._isFab)("mdc-fab__ripple",J._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',P],encapsulation:2,changeDetection:0})}return _n})();const ae=new y.nKC("mat-mdc-fab-default-options",{providedIn:"root",factory:me});function me(){return{color:"accent"}}const Le=me();let At=(()=>{class _n extends Ze{constructor(_e,Ae,J,Ie,Ot){super(_e,Ae,J,Ie),this._options=Ot,this._isFab=!0,this._options=this._options||Le,this.color=this._options.color||Le.color}static#e=this.\u0275fac=function(Ae){return new(Ae||_n)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8),y.rXU(ae,8))};static#t=this.\u0275cmp=y.VBU({type:_n,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(Ae,J){2&Ae&&(y.BMQ("disabled",J._getDisabledAttribute())("aria-disabled",J._getAriaDisabled()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[y.Vt3,y.aNF],attrs:F,ngContentSelectors:oe,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ae,J){1&Ae&&(y.NAR(ee),y.nrm(0,"span",0),y.SdG(1),y.j41(2,"span",1),y.SdG(3,1),y.k0s(),y.SdG(4,2),y.nrm(5,"span",2)(6,"span",3)),2&Ae&&y.AVh("mdc-button__ripple",!J._isFab)("mdc-fab__ripple",J._isFab)},styles:['.mat-mdc-fab-base{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-app-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-app-corner-large));color:var(--mat-fab-foreground-color, var(--mat-app-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-app-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-app-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-app-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-app-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-app-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-app-level3));height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-app-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0})}return _n})(),Zt=(()=>{class _n extends Ze{constructor(_e,Ae,J,Ie){super(_e,Ae,J,Ie),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(Ae){return new(Ae||_n)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))};static#t=this.\u0275cmp=y.VBU({type:_n,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(Ae,J){2&Ae&&(y.BMQ("disabled",J._getDisabledAttribute())("aria-disabled",J._getAriaDisabled()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[y.Vt3,y.aNF],attrs:ge,ngContentSelectors:Ee,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ae,J){1&Ae&&(y.NAR(),y.nrm(0,"span",0),y.SdG(1),y.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',P],encapsulation:2,changeDetection:0})}return _n})(),Fn=(()=>{class _n extends je{constructor(_e,Ae,J,Ie){super(_e,Ae,J,Ie)}static#e=this.\u0275fac=function(Ae){return new(Ae||_n)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))};static#t=this.\u0275cmp=y.VBU({type:_n,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(Ae,J){2&Ae&&(y.BMQ("disabled",J._getDisabledAttribute())("tabindex",J.disabled&&!J.disabledInteractive?-1:J.tabIndex)("aria-disabled",J._getDisabledAttribute()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[y.Vt3,y.aNF],attrs:ge,ngContentSelectors:Ee,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ae,J){1&Ae&&(y.NAR(),y.nrm(0,"span",0),y.SdG(1),y.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',P],encapsulation:2,changeDetection:0})}return _n})(),Vn=(()=>{class _n{static#e=this.\u0275fac=function(Ae){return new(Ae||_n)};static#t=this.\u0275mod=y.$C({type:_n});static#n=this.\u0275inj=y.G2t({imports:[L.yE,L.pZ,L.yE]})}return _n})()},6600:(tn,Ne,v)=>{"use strict";v.d(Ne,{MJ:()=>J,es:()=>le,N:()=>ae,de:()=>Ie,Ju:()=>_e,QC:()=>$t,is:()=>he,yE:()=>me,wT:()=>Ln,Sy:()=>En,MI:()=>Mn,r6:()=>T,Ej:()=>vi,pZ:()=>N,X0:()=>Vn,tO:()=>Ti,jb:()=>Ei,TL:()=>Jt});var u=v(4438),y=v(9888),o=v(8203),G=v(177),ee=v(6860),oe=v(4085),V=v(1413),P=v(7336);const ue=["text"],ge=[[["mat-icon"]],"*"],Ee=["mat-icon","*"];function Re(nn,Et){if(1&nn&&u.nrm(0,"mat-pseudo-checkbox",1),2&nn){const at=u.XpG();u.Y8G("disabled",at.disabled)("state",at.selected?"checked":"unchecked")}}function ke(nn,Et){if(1&nn&&u.nrm(0,"mat-pseudo-checkbox",3),2&nn){const at=u.XpG();u.Y8G("disabled",at.disabled)}}function te(nn,Et){if(1&nn&&(u.j41(0,"span",4),u.EFF(1),u.k0s()),2&nn){const at=u.XpG();u.R7$(),u.SpI("(",at.group.label,")")}}const be=["mat-internal-form-field",""],Ze=["*"],ae=new u.nKC("mat-sanity-checks",{providedIn:"root",factory:function We(){return!0}});let me=(()=>{class nn{constructor(at,Lt,st){this._sanityChecks=Lt,this._document=st,this._hasDoneGlobalChecks=!1,at._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(at){return!(0,ee.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[at])}static#e=this.\u0275fac=function(Lt){return new(Lt||nn)(u.KVO(y.Q_),u.KVO(ae,8),u.KVO(G.qQ))};static#t=this.\u0275mod=u.$C({type:nn});static#n=this.\u0275inj=u.G2t({imports:[o.jI,o.jI]})}return nn})();class Vn{constructor(Et,at,Lt,st,Qe){this._defaultMatcher=Et,this.ngControl=at,this._parentFormGroup=Lt,this._parentForm=st,this._stateChanges=Qe,this.errorState=!1}updateErrorState(){const Et=this.errorState,at=this._parentFormGroup||this._parentForm,Lt=this.matcher||this._defaultMatcher,st=this.ngControl?this.ngControl.control:null,Qe=Lt?.isErrorState(st,at)??!1;Qe!==Et&&(this.errorState=Qe,this._stateChanges.next())}}const _e=new u.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function Ae(){return(0,u.WQX)(u.xe9)}});class J{constructor(){this._localeChanges=new V.B,this.localeChanges=this._localeChanges}getValidDateOrNull(Et){return this.isDateInstance(Et)&&this.isValid(Et)?Et:null}deserialize(Et){return null==Et||this.isDateInstance(Et)&&this.isValid(Et)?Et:this.invalid()}setLocale(Et){this.locale=Et,this._localeChanges.next()}compareDate(Et,at){return this.getYear(Et)-this.getYear(at)||this.getMonth(Et)-this.getMonth(at)||this.getDate(Et)-this.getDate(at)}sameDate(Et,at){if(Et&&at){let Lt=this.isValid(Et),st=this.isValid(at);return Lt&&st?!this.compareDate(Et,at):Lt==st}return Et==at}clampDate(Et,at,Lt){return at&&this.compareDate(Et,at)<0?at:Lt&&this.compareDate(Et,Lt)>0?Lt:Et}}const Ie=new u.nKC("mat-date-formats");let le=(()=>{class nn{isErrorState(at,Lt){return!!(at&&at.invalid&&(at.touched||Lt&&Lt.submitted))}static#e=this.\u0275fac=function(Lt){return new(Lt||nn)};static#t=this.\u0275prov=u.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})();var It=function(nn){return nn[nn.FADING_IN=0]="FADING_IN",nn[nn.VISIBLE=1]="VISIBLE",nn[nn.FADING_OUT=2]="FADING_OUT",nn[nn.HIDDEN=3]="HIDDEN",nn}(It||{});class Ft{constructor(Et,at,Lt,st=!1){this._renderer=Et,this.element=at,this.config=Lt,this._animationForciblyDisabledThroughCss=st,this.state=It.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const Rt=(0,ee.BQ)({passive:!0,capture:!0});class kn{constructor(){this._events=new Map,this._delegateEventHandler=Et=>{const at=(0,ee.Fb)(Et);at&&this._events.get(Et.type)?.forEach((Lt,st)=>{(st===at||st.contains(at))&&Lt.forEach(Qe=>Qe.handleEvent(Et))})}}addHandler(Et,at,Lt,st){const Qe=this._events.get(at);if(Qe){const Oe=Qe.get(Lt);Oe?Oe.add(st):Qe.set(Lt,new Set([st]))}else this._events.set(at,new Map([[Lt,new Set([st])]])),Et.runOutsideAngular(()=>{document.addEventListener(at,this._delegateEventHandler,Rt)})}removeHandler(Et,at,Lt){const st=this._events.get(Et);if(!st)return;const Qe=st.get(at);Qe&&(Qe.delete(Lt),0===Qe.size&&st.delete(at),0===st.size&&(this._events.delete(Et),document.removeEventListener(Et,this._delegateEventHandler,Rt)))}}const hi={enterDuration:225,exitDuration:150},we=(0,ee.BQ)({passive:!0,capture:!0}),tt=["mousedown","touchstart"],rt=["mouseup","mouseleave","touchend","touchcancel"];class bt{static#e=this._eventManager=new kn;constructor(Et,at,Lt,st){this._target=Et,this._ngZone=at,this._platform=st,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,st.isBrowser&&(this._containerElement=(0,oe.i8)(Lt))}fadeInRipple(Et,at,Lt={}){const st=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Qe={...hi,...Lt.animation};Lt.centered&&(Et=st.left+st.width/2,at=st.top+st.height/2);const Oe=Lt.radius||function on(nn,Et,at){const Lt=Math.max(Math.abs(nn-at.left),Math.abs(nn-at.right)),st=Math.max(Math.abs(Et-at.top),Math.abs(Et-at.bottom));return Math.sqrt(Lt*Lt+st*st)}(Et,at,st),ct=Et-st.left,Wt=at-st.top,rn=Qe.enterDuration,ai=document.createElement("div");ai.classList.add("mat-ripple-element"),ai.style.left=ct-Oe+"px",ai.style.top=Wt-Oe+"px",ai.style.height=2*Oe+"px",ai.style.width=2*Oe+"px",null!=Lt.color&&(ai.style.backgroundColor=Lt.color),ai.style.transitionDuration=`${rn}ms`,this._containerElement.appendChild(ai);const yr=window.getComputedStyle(ai),Ri=yr.transitionDuration,Pr="none"===yr.transitionProperty||"0s"===Ri||"0s, 0s"===Ri||0===st.width&&0===st.height,wi=new Ft(this,ai,Lt,Pr);ai.style.transform="scale3d(1, 1, 1)",wi.state=It.FADING_IN,Lt.persistent||(this._mostRecentTransientRipple=wi);let Yr=null;return!Pr&&(rn||Qe.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Or=()=>{Yr&&(Yr.fallbackTimer=null),clearTimeout(St),this._finishRippleTransition(wi)},ft=()=>this._destroyRipple(wi),St=setTimeout(ft,rn+100);ai.addEventListener("transitionend",Or),ai.addEventListener("transitioncancel",ft),Yr={onTransitionEnd:Or,onTransitionCancel:ft,fallbackTimer:St}}),this._activeRipples.set(wi,Yr),(Pr||!rn)&&this._finishRippleTransition(wi),wi}fadeOutRipple(Et){if(Et.state===It.FADING_OUT||Et.state===It.HIDDEN)return;const at=Et.element,Lt={...hi,...Et.config.animation};at.style.transitionDuration=`${Lt.exitDuration}ms`,at.style.opacity="0",Et.state=It.FADING_OUT,(Et._animationForciblyDisabledThroughCss||!Lt.exitDuration)&&this._finishRippleTransition(Et)}fadeOutAll(){this._getActiveRipples().forEach(Et=>Et.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Et=>{Et.config.persistent||Et.fadeOut()})}setupTriggerEvents(Et){const at=(0,oe.i8)(Et);!this._platform.isBrowser||!at||at===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=at,tt.forEach(Lt=>{bt._eventManager.addHandler(this._ngZone,Lt,at,this)}))}handleEvent(Et){"mousedown"===Et.type?this._onMousedown(Et):"touchstart"===Et.type?this._onTouchStart(Et):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{rt.forEach(at=>{this._triggerElement.addEventListener(at,this,we)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Et){Et.state===It.FADING_IN?this._startFadeOutTransition(Et):Et.state===It.FADING_OUT&&this._destroyRipple(Et)}_startFadeOutTransition(Et){const at=Et===this._mostRecentTransientRipple,{persistent:Lt}=Et.config;Et.state=It.VISIBLE,!Lt&&(!at||!this._isPointerDown)&&Et.fadeOut()}_destroyRipple(Et){const at=this._activeRipples.get(Et)??null;this._activeRipples.delete(Et),this._activeRipples.size||(this._containerRect=null),Et===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Et.state=It.HIDDEN,null!==at&&(Et.element.removeEventListener("transitionend",at.onTransitionEnd),Et.element.removeEventListener("transitioncancel",at.onTransitionCancel),null!==at.fallbackTimer&&clearTimeout(at.fallbackTimer)),Et.element.remove()}_onMousedown(Et){const at=(0,y._G)(Et),Lt=this._lastTouchStartEvent&&Date.now(){!Et.config.persistent&&(Et.state===It.VISIBLE||Et.config.terminateOnPointerUp&&Et.state===It.FADING_IN)&&Et.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Et=this._triggerElement;Et&&(tt.forEach(at=>bt._eventManager.removeHandler(at,Et,this)),this._pointerUpEventsRegistered&&(rt.forEach(at=>Et.removeEventListener(at,this,we)),this._pointerUpEventsRegistered=!1))}}const Q=new u.nKC("mat-ripple-global-options");let T=(()=>{class nn{get disabled(){return this._disabled}set disabled(at){at&&this.fadeOutAllNonPersistent(),this._disabled=at,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(at){this._trigger=at,this._setupTriggerEventsIfEnabled()}constructor(at,Lt,st,Qe,Oe){this._elementRef=at,this._animationMode=Oe,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Qe||{},this._rippleRenderer=new bt(this,Lt,at,st)}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(at,Lt=0,st){return"number"==typeof at?this._rippleRenderer.fadeInRipple(at,Lt,{...this.rippleConfig,...st}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...at})}static#e=this.\u0275fac=function(Lt){return new(Lt||nn)(u.rXU(u.aKT),u.rXU(u.SKi),u.rXU(ee.OD),u.rXU(Q,8),u.rXU(u.bc$,8))};static#t=this.\u0275dir=u.FsC({type:nn,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Lt,st){2&Lt&&u.AVh("mat-ripple-unbounded",st.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}return nn})(),N=(()=>{class nn{static#e=this.\u0275fac=function(Lt){return new(Lt||nn)};static#t=this.\u0275mod=u.$C({type:nn});static#n=this.\u0275inj=u.G2t({imports:[me,me]})}return nn})(),$=(()=>{class nn{constructor(at){this._animationMode=at,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(Lt){return new(Lt||nn)(u.rXU(u.bc$,8))};static#t=this.\u0275cmp=u.VBU({type:nn,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(Lt,st){2&Lt&&u.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===st.state)("mat-pseudo-checkbox-checked","checked"===st.state)("mat-pseudo-checkbox-disabled",st.disabled)("mat-pseudo-checkbox-minimal","minimal"===st.appearance)("mat-pseudo-checkbox-full","full"===st.appearance)("_mat-animation-noopable","NoopAnimations"===st._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[u.aNF],decls:0,vars:0,template:function(Lt,st){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-app-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-app-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return nn})(),ce=(()=>{class nn{static#e=this.\u0275fac=function(Lt){return new(Lt||nn)};static#t=this.\u0275mod=u.$C({type:nn});static#n=this.\u0275inj=u.G2t({imports:[me]})}return nn})();const he=new u.nKC("MAT_OPTION_PARENT_COMPONENT"),$t=new u.nKC("MatOptgroup");let Vt=0;class Mn{constructor(Et,at=!1){this.source=Et,this.isUserInput=at}}let Ln=(()=>{class nn{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(at){this._disabled=at}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(at,Lt,st,Qe){this._element=at,this._changeDetectorRef=Lt,this._parent=st,this.group=Qe,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Vt++,this.onSelectionChange=new u.bkB,this._stateChanges=new V.B}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(at=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),at&&this._emitSelectionChangeEvent())}deselect(at=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),at&&this._emitSelectionChangeEvent())}focus(at,Lt){const st=this._getHostElement();"function"==typeof st.focus&&st.focus(Lt)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(at){(at.keyCode===P.Fm||at.keyCode===P.t6)&&!(0,P.rp)(at)&&(this._selectViaInteraction(),at.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 at=this.viewValue;at!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=at)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(at=!1){this.onSelectionChange.emit(new Mn(this,at))}static#e=this.\u0275fac=function(Lt){return new(Lt||nn)(u.rXU(u.aKT),u.rXU(u.gRc),u.rXU(he,8),u.rXU($t,8))};static#t=this.\u0275cmp=u.VBU({type:nn,selectors:[["mat-option"]],viewQuery:function(Lt,st){if(1&Lt&&u.GBs(ue,7),2&Lt){let Qe;u.mGM(Qe=u.lsd())&&(st._text=Qe.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(Lt,st){1&Lt&&u.bIt("click",function(){return st._selectViaInteraction()})("keydown",function(Oe){return st._handleKeydown(Oe)}),2&Lt&&(u.Mr5("id",st.id),u.BMQ("aria-selected",st.selected)("aria-disabled",st.disabled.toString()),u.AVh("mdc-list-item--selected",st.selected)("mat-mdc-option-multiple",st.multiple)("mat-mdc-option-active",st.active)("mdc-list-item--disabled",st.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",u.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[u.GFd,u.aNF],ngContentSelectors:Ee,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(Lt,st){1&Lt&&(u.NAR(ge),u.DNE(0,Re,1,2,"mat-pseudo-checkbox",1),u.SdG(1),u.j41(2,"span",2,0),u.SdG(4,1),u.k0s(),u.DNE(5,ke,1,1,"mat-pseudo-checkbox",3)(6,te,2,1,"span",4),u.nrm(7,"div",5)),2&Lt&&(u.vxM(st.multiple?0:-1),u.R7$(5),u.vxM(st.multiple||!st.selected||st.hideSingleSelectionIndicator?-1:5),u.R7$(),u.vxM(st.group&&st.group._inert?6:-1),u.R7$(),u.Y8G("matRippleTrigger",st._getHostElement())("matRippleDisabled",st.disabled||st.disableRipple))},dependencies:[$,T],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-app-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-app-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return nn})();function Ei(nn,Et,at){if(at.length){let Lt=Et.toArray(),st=at.toArray(),Qe=0;for(let Oe=0;Oeat+Lt?Math.max(0,nn-Lt+Et):at}let En=(()=>{class nn{static#e=this.\u0275fac=function(Lt){return new(Lt||nn)};static#t=this.\u0275mod=u.$C({type:nn});static#n=this.\u0275inj=u.G2t({imports:[N,me,ce]})}return nn})();const He={capture:!0},Be=["focus","mousedown","mouseenter","touchstart"],ye="mat-ripple-loader-uninitialized",Ke="mat-ripple-loader-class-name",zt="mat-ripple-loader-centered",Pn="mat-ripple-loader-disabled";let vi=(()=>{class nn{constructor(){this._document=(0,u.WQX)(G.qQ,{optional:!0}),this._animationMode=(0,u.WQX)(u.bc$,{optional:!0}),this._globalRippleOptions=(0,u.WQX)(Q,{optional:!0}),this._platform=(0,u.WQX)(ee.OD),this._ngZone=(0,u.WQX)(u.SKi),this._hosts=new Map,this._onInteraction=at=>{const Lt=(0,ee.Fb)(at);if(Lt instanceof HTMLElement){const st=Lt.closest(`[${ye}="${this._globalRippleOptions?.namespace??""}"]`);st&&this._createRipple(st)}},this._ngZone.runOutsideAngular(()=>{for(const at of Be)this._document?.addEventListener(at,this._onInteraction,He)})}ngOnDestroy(){const at=this._hosts.keys();for(const Lt of at)this.destroyRipple(Lt);for(const Lt of Be)this._document?.removeEventListener(Lt,this._onInteraction,He)}configureRipple(at,Lt){at.setAttribute(ye,this._globalRippleOptions?.namespace??""),(Lt.className||!at.hasAttribute(Ke))&&at.setAttribute(Ke,Lt.className||""),Lt.centered&&at.setAttribute(zt,""),Lt.disabled&&at.setAttribute(Pn,"")}getRipple(at){return this._hosts.get(at)||this._createRipple(at)}setDisabled(at,Lt){const st=this._hosts.get(at);st?st.disabled=Lt:Lt?at.setAttribute(Pn,""):at.removeAttribute(Pn)}_createRipple(at){if(!this._document)return;const Lt=this._hosts.get(at);if(Lt)return Lt;at.querySelector(".mat-ripple")?.remove();const st=this._document.createElement("span");st.classList.add("mat-ripple",at.getAttribute(Ke)),at.append(st);const Qe=new T(new u.aKT(st),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return Qe._isInitialized=!0,Qe.trigger=at,Qe.centered=at.hasAttribute(zt),Qe.disabled=at.hasAttribute(Pn),this.attachRipple(at,Qe),Qe}attachRipple(at,Lt){at.removeAttribute(ye),this._hosts.set(at,Lt)}destroyRipple(at){const Lt=this._hosts.get(at);Lt&&(Lt.ngOnDestroy(),this._hosts.delete(at))}static#e=this.\u0275fac=function(Lt){return new(Lt||nn)};static#t=this.\u0275prov=u.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})(),Ti=(()=>{class nn{static#e=this.\u0275fac=function(Lt){return new(Lt||nn)};static#t=this.\u0275cmp=u.VBU({type:nn,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(Lt,st){2&Lt&&u.AVh("mdc-form-field--align-end","before"===st.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[u.aNF],attrs:be,ngContentSelectors:Ze,decls:1,vars:0,template:function(Lt,st){1&Lt&&(u.NAR(),u.SdG(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}return nn})()},5351:(tn,Ne,v)=>{"use strict";v.d(Ne,{Vh:()=>ve,bZ:()=>It,E7:()=>we,tx:()=>Rt,Yi:()=>qt,hM:()=>bt,CP:()=>Me});var u=v(7987),y=v(177),o=v(4438),L=v(9888),G=v(6860),ee=v(6939),oe=v(7336),V=v(1413),P=v(9030),B=v(7673),F=v(8203),ue=v(9172);function ge(T,N){}class Ee{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let ke=(()=>{class T extends ee.lb{constructor($,ce,he,et,$t,Bt,Vt,Mn){super(),this._elementRef=$,this._focusTrapFactory=ce,this._config=et,this._interactivityChecker=$t,this._ngZone=Bt,this._overlayRef=Vt,this._focusMonitor=Mn,this._platform=(0,o.WQX)(G.OD),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=(0,o.WQX)(o.gRc),this._injector=(0,o.WQX)(o.zZn),this._isDestroyed=!1,this.attachDomPortal=Ln=>{this._portalOutlet.hasAttached();const Ei=this._portalOutlet.attachDomPortal(Ln);return this._contentAttached(),Ei},this._document=he,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy($){this._ariaLabelledByQueue.push($),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy($){const ce=this._ariaLabelledByQueue.indexOf($);ce>-1&&(this._ariaLabelledByQueue.splice(ce,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal($){this._portalOutlet.hasAttached();const ce=this._portalOutlet.attachComponentPortal($);return this._contentAttached(),ce}attachTemplatePortal($){this._portalOutlet.hasAttached();const ce=this._portalOutlet.attachTemplatePortal($);return this._contentAttached(),ce}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus($,ce){this._interactivityChecker.isFocusable($)||($.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const he=()=>{$.removeEventListener("blur",he),$.removeEventListener("mousedown",he),$.removeAttribute("tabindex")};$.addEventListener("blur",he),$.addEventListener("mousedown",he)})),$.focus(ce)}_focusByCssSelector($,ce){let he=this._elementRef.nativeElement.querySelector($);he&&this._forceFocus(he,ce)}_trapFocus(){this._isDestroyed||(0,o.mal)(()=>{const $=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||$.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}},{injector:this._injector})}_restoreFocus(){const $=this._config.restoreFocus;let ce=null;if("string"==typeof $?ce=this._document.querySelector($):"boolean"==typeof $?ce=$?this._elementFocusedBeforeDialogWasOpened:null:$&&(ce=$),this._config.restoreFocus&&ce&&"function"==typeof ce.focus){const he=(0,G.vc)(),et=this._elementRef.nativeElement;(!he||he===this._document.body||he===et||et.contains(he))&&(this._focusMonitor?(this._focusMonitor.focusVia(ce,this._closeInteractionType),this._closeInteractionType=null):ce.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const $=this._elementRef.nativeElement,ce=(0,G.vc)();return $===ce||$.contains(ce)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,G.vc)()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(ce){return new(ce||T)(o.rXU(o.aKT),o.rXU(L.GX),o.rXU(y.qQ,8),o.rXU(Ee),o.rXU(L.Z7),o.rXU(o.SKi),o.rXU(u.yY),o.rXU(L.FN))};static#t=this.\u0275cmp=o.VBU({type:T,selectors:[["cdk-dialog-container"]],viewQuery:function(ce,he){if(1&ce&&o.GBs(ee.I3,7),2&ce){let et;o.mGM(et=o.lsd())&&(he._portalOutlet=et.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(ce,he){2&ce&&o.BMQ("id",he._config.id||null)("role",he._config.role)("aria-modal",he._config.ariaModal)("aria-labelledby",he._config.ariaLabel?null:he._ariaLabelledByQueue[0])("aria-label",he._config.ariaLabel)("aria-describedby",he._config.ariaDescribedBy||null)},standalone:!0,features:[o.Vt3,o.aNF],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ce,he){1&ce&&o.DNE(0,ge,0,0,"ng-template",0)},dependencies:[ee.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return T})();class te{constructor(N,$){this.overlayRef=N,this.config=$,this.closed=new V.B,this.disableClose=$.disableClose,this.backdropClick=N.backdropClick(),this.keydownEvents=N.keydownEvents(),this.outsidePointerEvents=N.outsidePointerEvents(),this.id=$.id,this.keydownEvents.subscribe(ce=>{ce.keyCode===oe._f&&!this.disableClose&&!(0,oe.rp)(ce)&&(ce.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=N.detachments().subscribe(()=>{!1!==$.closeOnOverlayDetachments&&this.close()})}close(N,$){if(this.containerInstance){const ce=this.closed;this.containerInstance._closeInteractionType=$?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),ce.next(N),ce.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(N="",$=""){return this.overlayRef.updateSize({width:N,height:$}),this}addPanelClass(N){return this.overlayRef.addPanelClass(N),this}removePanelClass(N){return this.overlayRef.removePanelClass(N),this}}const be=new o.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const T=(0,o.WQX)(u.hJ);return()=>T.scrollStrategies.block()}}),Ze=new o.nKC("DialogData"),gt=new o.nKC("DefaultDialogConfig");let We=0,ae=(()=>{class T{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor($,ce,he,et,$t,Bt){this._overlay=$,this._injector=ce,this._defaultOptions=he,this._parentDialog=et,this._overlayContainer=$t,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new V.B,this._afterOpenedAtThisLevel=new V.B,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,P.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,ue.Z)(void 0))),this._scrollStrategy=Bt}open($,ce){(ce={...this._defaultOptions||new Ee,...ce}).id=ce.id||"cdk-dialog-"+We++,ce.id&&this.getDialogById(ce.id);const et=this._getOverlayConfig(ce),$t=this._overlay.create(et),Bt=new te($t,ce),Vt=this._attachContainer($t,Bt,ce);return Bt.containerInstance=Vt,this._attachDialogContent($,Bt,Vt,ce),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Bt),Bt.closed.subscribe(()=>this._removeOpenDialog(Bt,!0)),this.afterOpened.next(Bt),Bt}closeAll(){me(this.openDialogs,$=>$.close())}getDialogById($){return this.openDialogs.find(ce=>ce.id===$)}ngOnDestroy(){me(this._openDialogsAtThisLevel,$=>{!1===$.config.closeOnDestroy&&this._removeOpenDialog($,!1)}),me(this._openDialogsAtThisLevel,$=>$.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig($){const ce=new u.rR({positionStrategy:$.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:$.scrollStrategy||this._scrollStrategy(),panelClass:$.panelClass,hasBackdrop:$.hasBackdrop,direction:$.direction,minWidth:$.minWidth,minHeight:$.minHeight,maxWidth:$.maxWidth,maxHeight:$.maxHeight,width:$.width,height:$.height,disposeOnNavigation:$.closeOnNavigation});return $.backdropClass&&(ce.backdropClass=$.backdropClass),ce}_attachContainer($,ce,he){const et=he.injector||he.viewContainerRef?.injector,$t=[{provide:Ee,useValue:he},{provide:te,useValue:ce},{provide:u.yY,useValue:$}];let Bt;he.container?"function"==typeof he.container?Bt=he.container:(Bt=he.container.type,$t.push(...he.container.providers(he))):Bt=ke;const Vt=new ee.A8(Bt,he.viewContainerRef,o.zZn.create({parent:et||this._injector,providers:$t}),he.componentFactoryResolver);return $.attach(Vt).instance}_attachDialogContent($,ce,he,et){if($ instanceof o.C4Q){const $t=this._createInjector(et,ce,he,void 0);let Bt={$implicit:et.data,dialogRef:ce};et.templateContext&&(Bt={...Bt,..."function"==typeof et.templateContext?et.templateContext():et.templateContext}),he.attachTemplatePortal(new ee.VA($,null,Bt,$t))}else{const $t=this._createInjector(et,ce,he,this._injector),Bt=he.attachComponentPortal(new ee.A8($,et.viewContainerRef,$t,et.componentFactoryResolver));ce.componentRef=Bt,ce.componentInstance=Bt.instance}}_createInjector($,ce,he,et){const $t=$.injector||$.viewContainerRef?.injector,Bt=[{provide:Ze,useValue:$.data},{provide:te,useValue:ce}];return $.providers&&("function"==typeof $.providers?Bt.push(...$.providers(ce,$,he)):Bt.push(...$.providers)),$.direction&&(!$t||!$t.get(F.dS,null,{optional:!0}))&&Bt.push({provide:F.dS,useValue:{value:$.direction,change:(0,B.of)()}}),o.zZn.create({parent:$t||et,providers:Bt})}_removeOpenDialog($,ce){const he=this.openDialogs.indexOf($);he>-1&&(this.openDialogs.splice(he,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((et,$t)=>{et?$t.setAttribute("aria-hidden",et):$t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),ce&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const $=this._overlayContainer.getContainerElement();if($.parentElement){const ce=$.parentElement.children;for(let he=ce.length-1;he>-1;he--){const et=ce[he];et!==$&&"SCRIPT"!==et.nodeName&&"STYLE"!==et.nodeName&&!et.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(et,et.getAttribute("aria-hidden")),et.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const $=this._parentDialog;return $?$._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(ce){return new(ce||T)(o.KVO(u.hJ),o.KVO(o.zZn),o.KVO(gt,8),o.KVO(T,12),o.KVO(u.Sf),o.KVO(be))};static#t=this.\u0275prov=o.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})();function me(T,N){let $=T.length;for(;$--;)N(T[$])}let Le=(()=>{class T{static#e=this.\u0275fac=function(ce){return new(ce||T)};static#t=this.\u0275mod=o.$C({type:T});static#n=this.\u0275inj=o.G2t({providers:[ae],imports:[u.z_,ee.jc,L.Pd,ee.jc]})}return T})();var nt=v(4085),At=v(7786),vt=v(5964),Dt=v(6697),Zt=v(5542),Fn=v(6600);function _n(T,N){}v(9969);class pi{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const _e="mdc-dialog--open",Ae="mdc-dialog--opening",J="mdc-dialog--closing";let Pe=(()=>{class T extends ke{constructor($,ce,he,et,$t,Bt,Vt,Mn,Ln){super($,ce,he,et,$t,Bt,Vt,Ln),this._animationMode=Mn,this._animationStateChanged=new o.bkB,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?Xe(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?Xe(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ht,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ae,_e)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(_e),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(_e),this._animationsEnabled?(this._hostElement.style.setProperty(ht,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(J)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount($){this._actionSectionCount+=$,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(Ae,J)}_waitForAnimationToComplete($,ce){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(ce,$)}_requestAnimationFrame($){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame($):$()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone($){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:$})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal($){const ce=super.attachComponentPortal($);return ce.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),ce}static#e=this.\u0275fac=function(ce){return new(ce||T)(o.rXU(o.aKT),o.rXU(L.GX),o.rXU(y.qQ,8),o.rXU(pi),o.rXU(L.Z7),o.rXU(o.SKi),o.rXU(u.yY),o.rXU(o.bc$,8),o.rXU(L.FN))};static#t=this.\u0275cmp=o.VBU({type:T,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(ce,he){2&ce&&(o.Mr5("id",he._config.id),o.BMQ("aria-modal",he._config.ariaModal)("role",he._config.role)("aria-labelledby",he._config.ariaLabel?null:he._ariaLabelledByQueue[0])("aria-label",he._config.ariaLabel)("aria-describedby",he._config.ariaDescribedBy||null),o.AVh("_mat-animation-noopable",!he._animationsEnabled)("mat-mdc-dialog-container-with-actions",he._actionSectionCount>0))},standalone:!0,features:[o.Vt3,o.aNF],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(ce,he){1&ce&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,_n,0,0,"ng-template",2),o.k0s()())},dependencies:[ee.I3],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}return T})();const ht="--mat-dialog-transition-duration";function Xe(T){return null==T?null:"number"==typeof T?T:T.endsWith("ms")?(0,nt.OE)(T.substring(0,T.length-2)):T.endsWith("s")?1e3*(0,nt.OE)(T.substring(0,T.length-1)):"0"===T?0:null}var Je=function(T){return T[T.OPEN=0]="OPEN",T[T.CLOSING=1]="CLOSING",T[T.CLOSED=2]="CLOSED",T}(Je||{});class Me{constructor(N,$,ce){this._ref=N,this._containerInstance=ce,this._afterOpened=new V.B,this._beforeClosed=new V.B,this._state=Je.OPEN,this.disableClose=$.disableClose,this.id=N.id,N.addPanelClass("mat-mdc-dialog-panel"),ce._animationStateChanged.pipe((0,vt.p)(he=>"opened"===he.state),(0,Dt.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ce._animationStateChanged.pipe((0,vt.p)(he=>"closed"===he.state),(0,Dt.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),N.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,At.h)(this.backdropClick(),this.keydownEvents().pipe((0,vt.p)(he=>he.keyCode===oe._f&&!this.disableClose&&!(0,oe.rp)(he)))).subscribe(he=>{this.disableClose||(he.preventDefault(),ie(this,"keydown"===he.type?"keyboard":"mouse"))})}close(N){this._result=N,this._containerInstance._animationStateChanged.pipe((0,vt.p)($=>"closing"===$.state),(0,Dt.s)(1)).subscribe($=>{this._beforeClosed.next(N),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),$.totalTime+100)}),this._state=Je.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(N){let $=this._ref.config.positionStrategy;return N&&(N.left||N.right)?N.left?$.left(N.left):$.right(N.right):$.centerHorizontally(),N&&(N.top||N.bottom)?N.top?$.top(N.top):$.bottom(N.bottom):$.centerVertically(),this._ref.updatePosition(),this}updateSize(N="",$=""){return this._ref.updateSize(N,$),this}addPanelClass(N){return this._ref.addPanelClass(N),this}removePanelClass(N){return this._ref.removePanelClass(N),this}getState(){return this._state}_finishDialogClose(){this._state=Je.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function ie(T,N,$){return T._closeInteractionType=N,T.close($)}const ve=new o.nKC("MatMdcDialogData"),le=new o.nKC("mat-mdc-dialog-default-options"),Ce=new o.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const T=(0,o.WQX)(u.hJ);return()=>T.scrollStrategies.block()}});let it=0,It=(()=>{class T{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const $=this._parentDialog;return $?$._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor($,ce,he,et,$t,Bt,Vt,Mn){this._overlay=$,this._defaultOptions=et,this._scrollStrategy=$t,this._parentDialog=Bt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new V.B,this._afterOpenedAtThisLevel=new V.B,this.dialogConfigClass=pi,this.afterAllClosed=(0,P.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,ue.Z)(void 0))),this._dialog=ce.get(ae),this._dialogRefConstructor=Me,this._dialogContainerType=Pe,this._dialogDataToken=ve}open($,ce){let he;(ce={...this._defaultOptions||new pi,...ce}).id=ce.id||"mat-mdc-dialog-"+it++,ce.scrollStrategy=ce.scrollStrategy||this._scrollStrategy();const et=this._dialog.open($,{...ce,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:ce},{provide:Ee,useValue:ce}]},templateContext:()=>({dialogRef:he}),providers:($t,Bt,Vt)=>(he=new this._dialogRefConstructor($t,ce,Vt),he.updatePosition(ce?.position),[{provide:this._dialogContainerType,useValue:Vt},{provide:this._dialogDataToken,useValue:Bt.data},{provide:this._dialogRefConstructor,useValue:he}])});return he.componentRef=et.componentRef,he.componentInstance=et.componentInstance,this.openDialogs.push(he),this.afterOpened.next(he),he.afterClosed().subscribe(()=>{const $t=this.openDialogs.indexOf(he);$t>-1&&(this.openDialogs.splice($t,1),this.openDialogs.length||this._getAfterAllClosed().next())}),he}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById($){return this.openDialogs.find(ce=>ce.id===$)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs($){let ce=$.length;for(;ce--;)$[ce].close()}static#e=this.\u0275fac=function(ce){return new(ce||T)(o.KVO(u.hJ),o.KVO(o.zZn),o.KVO(y.aZ,8),o.KVO(le,8),o.KVO(Ce),o.KVO(T,12),o.KVO(u.Sf),o.KVO(o.bc$,8))};static#t=this.\u0275prov=o.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})(),Rt=(()=>{class T{constructor($,ce,he){this.dialogRef=$,this._elementRef=ce,this._dialog=he,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=tt(this._elementRef,this._dialog.openDialogs))}ngOnChanges($){const ce=$._matDialogClose||$._matDialogCloseResult;ce&&(this.dialogResult=ce.currentValue)}_onButtonClick($){ie(this.dialogRef,0===$.screenX&&0===$.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(ce){return new(ce||T)(o.rXU(Me,8),o.rXU(o.aKT),o.rXU(It))};static#t=this.\u0275dir=o.FsC({type:T,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ce,he){1&ce&&o.bIt("click",function($t){return he._onButtonClick($t)}),2&ce&&o.BMQ("aria-label",he.ariaLabel||null)("type",he.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[o.OA$]})}return T})(),kn=(()=>{class T{constructor($,ce,he){this._dialogRef=$,this._elementRef=ce,this._dialog=he}ngOnInit(){this._dialogRef||(this._dialogRef=tt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static#e=this.\u0275fac=function(ce){return new(ce||T)(o.rXU(Me,8),o.rXU(o.aKT),o.rXU(It))};static#t=this.\u0275dir=o.FsC({type:T,standalone:!0})}return T})(),qt=(()=>{class T{static#e=this.\u0275fac=function(ce){return new(ce||T)};static#t=this.\u0275dir=o.FsC({type:T,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[o.nM4([Zt.uv])]})}return T})(),we=(()=>{class T extends kn{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static#e=this.\u0275fac=(()=>{let $;return function(he){return($||($=o.xGo(T)))(he||T)}})();static#t=this.\u0275dir=o.FsC({type:T,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(ce,he){2&ce&&o.AVh("mat-mdc-dialog-actions-align-start","start"===he.align)("mat-mdc-dialog-actions-align-center","center"===he.align)("mat-mdc-dialog-actions-align-end","end"===he.align)},inputs:{align:"align"},standalone:!0,features:[o.Vt3]})}return T})();function tt(T,N){let $=T.nativeElement.parentElement;for(;$&&!$.classList.contains("mat-mdc-dialog-container");)$=$.parentElement;return $?N.find(ce=>ce.id===$.id):null}let bt=(()=>{class T{static#e=this.\u0275fac=function(ce){return new(ce||T)};static#t=this.\u0275mod=o.$C({type:T});static#n=this.\u0275inj=o.G2t({providers:[It],imports:[Le,u.z_,ee.jc,Fn.yE,Fn.yE]})}return T})()},1997:(tn,Ne,v)=>{"use strict";v.d(Ne,{q:()=>L,w:()=>G});var u=v(4438),y=v(4085),o=v(6600);let L=(()=>{class ee{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(V){this._vertical=(0,y.he)(V)}get inset(){return this._inset}set inset(V){this._inset=(0,y.he)(V)}static#e=this.\u0275fac=function(P){return new(P||ee)};static#t=this.\u0275cmp=u.VBU({type:ee,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(P,B){2&P&&(u.BMQ("aria-orientation",B.vertical?"vertical":"horizontal"),u.AVh("mat-divider-vertical",B.vertical)("mat-divider-horizontal",!B.vertical)("mat-divider-inset",B.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[u.aNF],decls:0,vars:0,template:function(P,B){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-app-outline));border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-app-outline));border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return ee})(),G=(()=>{class ee{static#e=this.\u0275fac=function(P){return new(P||ee)};static#t=this.\u0275mod=u.$C({type:ee});static#n=this.\u0275inj=u.G2t({imports:[o.yE,o.yE]})}return ee})()},2102:(tn,Ne,v)=>{"use strict";v.d(Ne,{xb:()=>ce,U$:()=>he,TL:()=>Ce,rl:()=>Ln,qT:()=>Q,RG:()=>Ei,MV:()=>un,nJ:()=>ie,JW:()=>It,yw:()=>Rt});var u=v(4438),y=v(8203),o=v(4085),L=v(6860),G=v(177),ee=v(8359),oe=v(1413),V=v(7786),P=v(6977),B=v(1985),F=v(5964),ue=v(4668);class Ee{constructor(En){this._box=En,this._destroyed=new oe.B,this._resizeSubject=new oe.B,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(He=>this._resizeSubject.next(He)))}observe(En){return this._elementObservables.has(En)||this._elementObservables.set(En,new B.c(He=>{const Be=this._resizeSubject.subscribe(He);return this._resizeObserver?.observe(En,{box:this._box}),()=>{this._resizeObserver?.unobserve(En),Be.unsubscribe(),this._elementObservables.delete(En)}}).pipe((0,F.p)(He=>He.some(Be=>Be.target===En)),(0,ue.t)({bufferSize:1,refCount:!0}),(0,P.Q)(this._destroyed))),this._elementObservables.get(En)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Re=(()=>{class Jt{constructor(){this._observers=new Map,this._ngZone=(0,u.WQX)(u.SKi)}ngOnDestroy(){for(const[,He]of this._observers)He.destroy();this._observers.clear()}observe(He,Be){const ye=Be?.box||"content-box";return this._observers.has(ye)||this._observers.set(ye,new Ee(ye)),this._observers.get(ye).observe(He)}static#e=this.\u0275fac=function(Be){return new(Be||Jt)};static#t=this.\u0275prov=u.jDH({token:Jt,factory:Jt.\u0275fac,providedIn:"root"})}return Jt})();var ke=v(9969),te=v(2318),be=v(6600);const Ze=["notch"],gt=["matFormFieldNotchedOutline",""],je=["*"],qe=["textField"],We=["iconPrefixContainer"],ae=["textPrefixContainer"],me=["iconSuffixContainer"],Le=["textSuffixContainer"],nt=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],At=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function vt(Jt,En){1&Jt&&u.nrm(0,"span",21)}function Dt(Jt,En){if(1&Jt&&(u.j41(0,"label",20),u.SdG(1,1),u.DNE(2,vt,1,0,"span",21),u.k0s()),2&Jt){const He=u.XpG(2);u.Y8G("floating",He._shouldLabelFloat())("monitorResize",He._hasOutline())("id",He._labelId),u.BMQ("for",He._control.disableAutomaticLabeling?null:He._control.id),u.R7$(2),u.vxM(!He.hideRequiredMarker&&He._control.required?2:-1)}}function Zt(Jt,En){if(1&Jt&&u.DNE(0,Dt,3,5,"label",20),2&Jt){const He=u.XpG();u.vxM(He._hasFloatingLabel()?0:-1)}}function Fn(Jt,En){1&Jt&&u.nrm(0,"div",7)}function Vn(Jt,En){}function _n(Jt,En){if(1&Jt&&u.DNE(0,Vn,0,0,"ng-template",13),2&Jt){u.XpG(2);const He=u.sdS(1);u.Y8G("ngTemplateOutlet",He)}}function pi(Jt,En){if(1&Jt&&(u.j41(0,"div",9),u.DNE(1,_n,1,1,null,13),u.k0s()),2&Jt){const He=u.XpG();u.Y8G("matFormFieldNotchedOutlineOpen",He._shouldLabelFloat()),u.R7$(),u.vxM(He._forceDisplayInfixLabel()?-1:1)}}function _e(Jt,En){1&Jt&&(u.j41(0,"div",10,2),u.SdG(2,2),u.k0s())}function Ae(Jt,En){1&Jt&&(u.j41(0,"div",11,3),u.SdG(2,3),u.k0s())}function J(Jt,En){}function Ie(Jt,En){if(1&Jt&&u.DNE(0,J,0,0,"ng-template",13),2&Jt){u.XpG();const He=u.sdS(1);u.Y8G("ngTemplateOutlet",He)}}function Ot(Jt,En){1&Jt&&(u.j41(0,"div",14,4),u.SdG(2,4),u.k0s())}function Pe(Jt,En){1&Jt&&(u.j41(0,"div",15,5),u.SdG(2,5),u.k0s())}function ht(Jt,En){1&Jt&&u.nrm(0,"div",16)}function Xe(Jt,En){if(1&Jt&&(u.j41(0,"div",18),u.SdG(1,6),u.k0s()),2&Jt){const He=u.XpG();u.Y8G("@transitionMessages",He._subscriptAnimationState)}}function Je(Jt,En){if(1&Jt&&(u.j41(0,"mat-hint",22),u.EFF(1),u.k0s()),2&Jt){const He=u.XpG(2);u.Y8G("id",He._hintLabelId),u.R7$(),u.JRh(He.hintLabel)}}function Me(Jt,En){if(1&Jt&&(u.j41(0,"div",19),u.DNE(1,Je,2,2,"mat-hint",22),u.SdG(2,7),u.nrm(3,"div",23),u.SdG(4,8),u.k0s()),2&Jt){const He=u.XpG();u.Y8G("@transitionMessages",He._subscriptAnimationState),u.R7$(),u.vxM(He.hintLabel?1:-1)}}let ie=(()=>{class Jt{static#e=this.\u0275fac=function(Be){return new(Be||Jt)};static#t=this.\u0275dir=u.FsC({type:Jt,selectors:[["mat-label"]],standalone:!0})}return Jt})(),ve=0;const le=new u.nKC("MatError");let Ce=(()=>{class Jt{constructor(He,Be){this.id="mat-mdc-error-"+ve++,He||Be.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(Be){return new(Be||Jt)(u.kS0("aria-live"),u.rXU(u.aKT))};static#t=this.\u0275dir=u.FsC({type:Jt,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(Be,ye){2&Be&&u.Mr5("id",ye.id)},inputs:{id:"id"},standalone:!0,features:[u.Jv_([{provide:le,useExisting:Jt}])]})}return Jt})(),dt=0,un=(()=>{class Jt{constructor(){this.align="start",this.id="mat-mdc-hint-"+dt++}static#e=this.\u0275fac=function(Be){return new(Be||Jt)};static#t=this.\u0275dir=u.FsC({type:Jt,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(Be,ye){2&Be&&(u.Mr5("id",ye.id),u.BMQ("align",null),u.AVh("mat-mdc-form-field-hint-end","end"===ye.align))},inputs:{align:"align",id:"id"},standalone:!0})}return Jt})();const it=new u.nKC("MatPrefix");let It=(()=>{class Jt{constructor(){this._isText=!1}set _isTextSelector(He){this._isText=!0}static#e=this.\u0275fac=function(Be){return new(Be||Jt)};static#t=this.\u0275dir=u.FsC({type:Jt,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[u.Jv_([{provide:it,useExisting:Jt}])]})}return Jt})();const Ft=new u.nKC("MatSuffix");let Rt=(()=>{class Jt{constructor(){this._isText=!1}set _isTextSelector(He){this._isText=!0}static#e=this.\u0275fac=function(Be){return new(Be||Jt)};static#t=this.\u0275dir=u.FsC({type:Jt,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[u.Jv_([{provide:Ft,useExisting:Jt}])]})}return Jt})();const kn=new u.nKC("FloatingLabelParent");let hi=(()=>{class Jt{get floating(){return this._floating}set floating(He){this._floating=He,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(He){this._monitorResize=He,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(He){this._elementRef=He,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,u.WQX)(Re),this._ngZone=(0,u.WQX)(u.SKi),this._parent=(0,u.WQX)(kn),this._resizeSubscription=new ee.yU}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function qt(Jt){if(null!==Jt.offsetParent)return Jt.scrollWidth;const He=Jt.cloneNode(!0);He.style.setProperty("position","absolute"),He.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(He);const Be=He.scrollWidth;return He.remove(),Be}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(Be){return new(Be||Jt)(u.rXU(u.aKT))};static#t=this.\u0275dir=u.FsC({type:Jt,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(Be,ye){2&Be&&u.AVh("mdc-floating-label--float-above",ye.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}return Jt})();const we="mdc-line-ripple--active",tt="mdc-line-ripple--deactivating";let rt=(()=>{class Jt{constructor(He,Be){this._elementRef=He,this._handleTransitionEnd=ye=>{const Ke=this._elementRef.nativeElement.classList,zt=Ke.contains(tt);"opacity"===ye.propertyName&&zt&&Ke.remove(we,tt)},Be.runOutsideAngular(()=>{He.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const He=this._elementRef.nativeElement.classList;He.remove(tt),He.add(we)}deactivate(){this._elementRef.nativeElement.classList.add(tt)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(Be){return new(Be||Jt)(u.rXU(u.aKT),u.rXU(u.SKi))};static#t=this.\u0275dir=u.FsC({type:Jt,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}return Jt})(),bt=(()=>{class Jt{constructor(He,Be){this._elementRef=He,this._ngZone=Be,this.open=!1}ngAfterViewInit(){const He=this._elementRef.nativeElement.querySelector(".mdc-floating-label");He?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(He.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>He.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(He){this._notch.nativeElement.style.width=this.open&&He?`calc(${He}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(Be){return new(Be||Jt)(u.rXU(u.aKT),u.rXU(u.SKi))};static#t=this.\u0275cmp=u.VBU({type:Jt,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(Be,ye){if(1&Be&&u.GBs(Ze,5),2&Be){let Ke;u.mGM(Ke=u.lsd())&&(ye._notch=Ke.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(Be,ye){2&Be&&u.AVh("mdc-notched-outline--notched",ye.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[u.aNF],attrs:gt,ngContentSelectors:je,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(Be,ye){1&Be&&(u.NAR(),u.nrm(0,"div",1),u.j41(1,"div",2,0),u.SdG(3),u.k0s(),u.nrm(4,"div",3))},encapsulation:2,changeDetection:0})}return Jt})();const on={transitionMessages:(0,ke.hZ)("transitionMessages",[(0,ke.wk)("enter",(0,ke.iF)({opacity:1,transform:"translateY(0%)"})),(0,ke.kY)("void => enter",[(0,ke.iF)({opacity:0,transform:"translateY(-5px)"}),(0,ke.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Q=(()=>{class Jt{static#e=this.\u0275fac=function(Be){return new(Be||Jt)};static#t=this.\u0275dir=u.FsC({type:Jt})}return Jt})();const ce=new u.nKC("MatFormField"),he=new u.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let et=0,Ln=(()=>{class Jt{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(He){this._hideRequiredMarker=(0,o.he)(He)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(He){He!==this._floatLabel&&(this._floatLabel=He,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(He){const Be=this._appearance;this._appearance=He||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==Be&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(He){this._subscriptSizing=He||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(He){this._hintLabel=He,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(He){this._explicitFormFieldControl=He}constructor(He,Be,ye,Ke,zt,Pn,vi,Ti){this._elementRef=He,this._changeDetectorRef=Be,this._dir=Ke,this._platform=zt,this._defaults=Pn,this._animationMode=vi,this._labelChild=(0,u.sbv)(ie),this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+et++,this._hintLabelId="mat-mdc-hint-"+et++,this._subscriptAnimationState="",this._destroyed=new oe.B,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=(0,u.WQX)(u.zZn),this.getLabelId=(0,u.EWP)(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=(0,u.EWP)(()=>!!this._labelChild()),Pn&&(Pn.appearance&&(this.appearance=Pn.appearance),this._hideRequiredMarker=!!Pn?.hideRequiredMarker,Pn.color&&(this.color=Pn.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(He){const Be=this._control,ye="mat-mdc-form-field-type-";He&&this._elementRef.nativeElement.classList.remove(ye+He.controlType),Be.controlType&&this._elementRef.nativeElement.classList.add(ye+Be.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=Be.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),Be.ngControl&&Be.ngControl.valueChanges&&(this._valueChanges=Be.ngControl.valueChanges.pipe((0,P.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(He=>!He._isText),this._hasTextPrefix=!!this._prefixChildren.find(He=>He._isText),this._hasIconSuffix=!!this._suffixChildren.find(He=>!He._isText),this._hasTextSuffix=!!this._suffixChildren.find(He=>He._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,V.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),(0,u.Tzd)(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe((0,P.Q)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return!!this._hasFloatingLabel()&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_shouldForward(He){const Be=this._control?this._control.ngControl:null;return Be&&Be[He]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let He=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&He.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Be=this._hintChildren?this._hintChildren.find(Ke=>"start"===Ke.align):null,ye=this._hintChildren?this._hintChildren.find(Ke=>"end"===Ke.align):null;Be?He.push(Be.id):this._hintLabel&&He.push(this._hintLabelId),ye&&He.push(ye.id)}else this._errorChildren&&He.push(...this._errorChildren.map(Be=>Be.id));this._control.setDescribedByIds(He)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;const He=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(He.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdate=!0);const Be=this._iconPrefixContainer?.nativeElement,ye=this._textPrefixContainer?.nativeElement,Ke=this._iconSuffixContainer?.nativeElement,zt=this._textSuffixContainer?.nativeElement,Pn=Be?.getBoundingClientRect().width??0,vi=ye?.getBoundingClientRect().width??0,Ti=Ke?.getBoundingClientRect().width??0,nn=zt?.getBoundingClientRect().width??0;He.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Pn+vi}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`,this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Pn+vi+Ti+nn}px)`)}_isAttachedToDom(){const He=this._elementRef.nativeElement;if(He.getRootNode){const Be=He.getRootNode();return Be&&Be!==He}return document.documentElement.contains(He)}static#e=this.\u0275fac=function(Be){return new(Be||Jt)(u.rXU(u.aKT),u.rXU(u.gRc),u.rXU(u.SKi),u.rXU(y.dS),u.rXU(L.OD),u.rXU(he,8),u.rXU(u.bc$,8),u.rXU(G.qQ))};static#t=this.\u0275cmp=u.VBU({type:Jt,selectors:[["mat-form-field"]],contentQueries:function(Be,ye,Ke){if(1&Be&&(u.C6U(Ke,ye._labelChild,ie,5),u.wni(Ke,Q,5),u.wni(Ke,it,5),u.wni(Ke,Ft,5),u.wni(Ke,le,5),u.wni(Ke,un,5)),2&Be){let zt;u.NyB(),u.mGM(zt=u.lsd())&&(ye._formFieldControl=zt.first),u.mGM(zt=u.lsd())&&(ye._prefixChildren=zt),u.mGM(zt=u.lsd())&&(ye._suffixChildren=zt),u.mGM(zt=u.lsd())&&(ye._errorChildren=zt),u.mGM(zt=u.lsd())&&(ye._hintChildren=zt)}},viewQuery:function(Be,ye){if(1&Be&&(u.GBs(qe,5),u.GBs(We,5),u.GBs(ae,5),u.GBs(me,5),u.GBs(Le,5),u.GBs(hi,5),u.GBs(bt,5),u.GBs(rt,5)),2&Be){let Ke;u.mGM(Ke=u.lsd())&&(ye._textField=Ke.first),u.mGM(Ke=u.lsd())&&(ye._iconPrefixContainer=Ke.first),u.mGM(Ke=u.lsd())&&(ye._textPrefixContainer=Ke.first),u.mGM(Ke=u.lsd())&&(ye._iconSuffixContainer=Ke.first),u.mGM(Ke=u.lsd())&&(ye._textSuffixContainer=Ke.first),u.mGM(Ke=u.lsd())&&(ye._floatingLabel=Ke.first),u.mGM(Ke=u.lsd())&&(ye._notchedOutline=Ke.first),u.mGM(Ke=u.lsd())&&(ye._lineRipple=Ke.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(Be,ye){2&Be&&u.AVh("mat-mdc-form-field-label-always-float",ye._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",ye._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",ye._hasIconSuffix)("mat-form-field-invalid",ye._control.errorState)("mat-form-field-disabled",ye._control.disabled)("mat-form-field-autofilled",ye._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===ye._animationMode)("mat-form-field-appearance-fill","fill"==ye.appearance)("mat-form-field-appearance-outline","outline"==ye.appearance)("mat-form-field-hide-placeholder",ye._hasFloatingLabel()&&!ye._shouldLabelFloat())("mat-focused",ye._control.focused)("mat-primary","accent"!==ye.color&&"warn"!==ye.color)("mat-accent","accent"===ye.color)("mat-warn","warn"===ye.color)("ng-untouched",ye._shouldForward("untouched"))("ng-touched",ye._shouldForward("touched"))("ng-pristine",ye._shouldForward("pristine"))("ng-dirty",ye._shouldForward("dirty"))("ng-valid",ye._shouldForward("valid"))("ng-invalid",ye._shouldForward("invalid"))("ng-pending",ye._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[u.Jv_([{provide:ce,useExisting:Jt},{provide:kn,useExisting:Jt}]),u.aNF],ngContentSelectors:At,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(Be,ye){if(1&Be){const Ke=u.RV6();u.NAR(nt),u.DNE(0,Zt,1,1,"ng-template",null,0,u.C5r),u.j41(2,"div",6,1),u.bIt("click",function(Pn){return u.eBV(Ke),u.Njj(ye._control.onContainerClick(Pn))}),u.DNE(4,Fn,1,0,"div",7),u.j41(5,"div",8),u.DNE(6,pi,2,2,"div",9)(7,_e,3,0,"div",10)(8,Ae,3,0,"div",11),u.j41(9,"div",12),u.DNE(10,Ie,1,1,null,13),u.SdG(11),u.k0s(),u.DNE(12,Ot,3,0,"div",14)(13,Pe,3,0,"div",15),u.k0s(),u.DNE(14,ht,1,0,"div",16),u.k0s(),u.j41(15,"div",17),u.DNE(16,Xe,2,1,"div",18)(17,Me,5,2,"div",19),u.k0s()}if(2&Be){let Ke;u.R7$(2),u.AVh("mdc-text-field--filled",!ye._hasOutline())("mdc-text-field--outlined",ye._hasOutline())("mdc-text-field--no-label",!ye._hasFloatingLabel())("mdc-text-field--disabled",ye._control.disabled)("mdc-text-field--invalid",ye._control.errorState),u.R7$(2),u.vxM(ye._hasOutline()||ye._control.disabled?-1:4),u.R7$(2),u.vxM(ye._hasOutline()?6:-1),u.R7$(),u.vxM(ye._hasIconPrefix?7:-1),u.R7$(),u.vxM(ye._hasTextPrefix?8:-1),u.R7$(2),u.vxM(!ye._hasOutline()||ye._forceDisplayInfixLabel()?10:-1),u.R7$(2),u.vxM(ye._hasTextSuffix?12:-1),u.R7$(),u.vxM(ye._hasIconSuffix?13:-1),u.R7$(),u.vxM(ye._hasOutline()?-1:14),u.R7$(),u.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===ye.subscriptSizing),u.R7$(),u.vxM("error"===(Ke=ye._getDisplayedMessages())?16:"hint"===Ke?17:-1)}},dependencies:[hi,bt,G.T3,rt,un],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-app-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-app-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-app-outline));border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-app-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-app-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-app-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-app-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-app-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-app-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-app-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-app-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-app-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-app-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-app-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-app-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-app-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-app-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-app-body-large-weight))}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-app-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-app-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-app-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[on.transitionMessages]},changeDetection:0})}return Jt})(),Ei=(()=>{class Jt{static#e=this.\u0275fac=function(Be){return new(Be||Jt)};static#t=this.\u0275mod=u.$C({type:Jt});static#n=this.\u0275inj=u.G2t({imports:[be.yE,G.MD,te.w5,be.yE]})}return Jt})()},9213:(tn,Ne,v)=>{"use strict";v.d(Ne,{An:()=>Ae,m_:()=>J,tp:()=>me});var u=v(4438),y=v(6600),o=v(177),L=v(7673),G=v(8810),ee=v(7468),oe=v(8359),V=v(8141),P=v(6354),B=v(9437),F=v(980),ue=v(7647),ge=v(6697),Ee=v(1626),Re=v(345);const ke=["*"];let te;function Ze(Ie){return function be(){if(void 0===te&&(te=null,typeof window<"u")){const Ie=window;void 0!==Ie.trustedTypes&&(te=Ie.trustedTypes.createPolicy("angular#components",{createHTML:Ot=>Ot}))}return te}()?.createHTML(Ie)||Ie}function gt(Ie){return Error(`Unable to find icon with the name "${Ie}"`)}function qe(Ie){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Ie}".`)}function We(Ie){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Ie}".`)}class ae{constructor(Ot,Pe,ht){this.url=Ot,this.svgText=Pe,this.options=ht}}let me=(()=>{class Ie{constructor(Pe,ht,Xe,Je){this._httpClient=Pe,this._sanitizer=ht,this._errorHandler=Je,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Xe}addSvgIcon(Pe,ht,Xe){return this.addSvgIconInNamespace("",Pe,ht,Xe)}addSvgIconLiteral(Pe,ht,Xe){return this.addSvgIconLiteralInNamespace("",Pe,ht,Xe)}addSvgIconInNamespace(Pe,ht,Xe,Je){return this._addSvgIconConfig(Pe,ht,new ae(Xe,null,Je))}addSvgIconResolver(Pe){return this._resolvers.push(Pe),this}addSvgIconLiteralInNamespace(Pe,ht,Xe,Je){const Me=this._sanitizer.sanitize(u.WPN.HTML,Xe);if(!Me)throw We(Xe);const ie=Ze(Me);return this._addSvgIconConfig(Pe,ht,new ae("",ie,Je))}addSvgIconSet(Pe,ht){return this.addSvgIconSetInNamespace("",Pe,ht)}addSvgIconSetLiteral(Pe,ht){return this.addSvgIconSetLiteralInNamespace("",Pe,ht)}addSvgIconSetInNamespace(Pe,ht,Xe){return this._addSvgIconSetConfig(Pe,new ae(ht,null,Xe))}addSvgIconSetLiteralInNamespace(Pe,ht,Xe){const Je=this._sanitizer.sanitize(u.WPN.HTML,ht);if(!Je)throw We(ht);const Me=Ze(Je);return this._addSvgIconSetConfig(Pe,new ae("",Me,Xe))}registerFontClassAlias(Pe,ht=Pe){return this._fontCssClassesByAlias.set(Pe,ht),this}classNameForFontAlias(Pe){return this._fontCssClassesByAlias.get(Pe)||Pe}setDefaultFontSetClass(...Pe){return this._defaultFontSetClass=Pe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Pe){const ht=this._sanitizer.sanitize(u.WPN.RESOURCE_URL,Pe);if(!ht)throw qe(Pe);const Xe=this._cachedIconsByUrl.get(ht);return Xe?(0,L.of)(At(Xe)):this._loadSvgIconFromConfig(new ae(Pe,null)).pipe((0,V.M)(Je=>this._cachedIconsByUrl.set(ht,Je)),(0,P.T)(Je=>At(Je)))}getNamedSvgIcon(Pe,ht=""){const Xe=vt(ht,Pe);let Je=this._svgIconConfigs.get(Xe);if(Je)return this._getSvgFromConfig(Je);if(Je=this._getIconConfigFromResolvers(ht,Pe),Je)return this._svgIconConfigs.set(Xe,Je),this._getSvgFromConfig(Je);const Me=this._iconSetConfigs.get(ht);return Me?this._getSvgFromIconSetConfigs(Pe,Me):(0,G.$)(gt(Xe))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Pe){return Pe.svgText?(0,L.of)(At(this._svgElementFromConfig(Pe))):this._loadSvgIconFromConfig(Pe).pipe((0,P.T)(ht=>At(ht)))}_getSvgFromIconSetConfigs(Pe,ht){const Xe=this._extractIconWithNameFromAnySet(Pe,ht);if(Xe)return(0,L.of)(Xe);const Je=ht.filter(Me=>!Me.svgText).map(Me=>this._loadSvgIconSetFromConfig(Me).pipe((0,B.W)(ie=>{const le=`Loading icon set URL: ${this._sanitizer.sanitize(u.WPN.RESOURCE_URL,Me.url)} failed: ${ie.message}`;return this._errorHandler.handleError(new Error(le)),(0,L.of)(null)})));return(0,ee.p)(Je).pipe((0,P.T)(()=>{const Me=this._extractIconWithNameFromAnySet(Pe,ht);if(!Me)throw gt(Pe);return Me}))}_extractIconWithNameFromAnySet(Pe,ht){for(let Xe=ht.length-1;Xe>=0;Xe--){const Je=ht[Xe];if(Je.svgText&&Je.svgText.toString().indexOf(Pe)>-1){const Me=this._svgElementFromConfig(Je),ie=this._extractSvgIconFromSet(Me,Pe,Je.options);if(ie)return ie}}return null}_loadSvgIconFromConfig(Pe){return this._fetchIcon(Pe).pipe((0,V.M)(ht=>Pe.svgText=ht),(0,P.T)(()=>this._svgElementFromConfig(Pe)))}_loadSvgIconSetFromConfig(Pe){return Pe.svgText?(0,L.of)(null):this._fetchIcon(Pe).pipe((0,V.M)(ht=>Pe.svgText=ht))}_extractSvgIconFromSet(Pe,ht,Xe){const Je=Pe.querySelector(`[id="${ht}"]`);if(!Je)return null;const Me=Je.cloneNode(!0);if(Me.removeAttribute("id"),"svg"===Me.nodeName.toLowerCase())return this._setSvgAttributes(Me,Xe);if("symbol"===Me.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Me),Xe);const ie=this._svgElementFromString(Ze(""));return ie.appendChild(Me),this._setSvgAttributes(ie,Xe)}_svgElementFromString(Pe){const ht=this._document.createElement("DIV");ht.innerHTML=Pe;const Xe=ht.querySelector("svg");if(!Xe)throw Error(" tag not found");return Xe}_toSvgElement(Pe){const ht=this._svgElementFromString(Ze("")),Xe=Pe.attributes;for(let Je=0;JeZe(le)),(0,F.j)(()=>this._inProgressUrlFetches.delete(Me)),(0,ue.u)());return this._inProgressUrlFetches.set(Me,ve),ve}_addSvgIconConfig(Pe,ht,Xe){return this._svgIconConfigs.set(vt(Pe,ht),Xe),this}_addSvgIconSetConfig(Pe,ht){const Xe=this._iconSetConfigs.get(Pe);return Xe?Xe.push(ht):this._iconSetConfigs.set(Pe,[ht]),this}_svgElementFromConfig(Pe){if(!Pe.svgElement){const ht=this._svgElementFromString(Pe.svgText);this._setSvgAttributes(ht,Pe.options),Pe.svgElement=ht}return Pe.svgElement}_getIconConfigFromResolvers(Pe,ht){for(let Xe=0;XeOt?Ot.pathname+Ot.search:""}}}),_n=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],pi=_n.map(Ie=>`[${Ie}]`).join(", "),_e=/^url\(['"]?#(.*?)['"]?\)$/;let Ae=(()=>{class Ie{get color(){return this._color||this._defaultColor}set color(Pe){this._color=Pe}get svgIcon(){return this._svgIcon}set svgIcon(Pe){Pe!==this._svgIcon&&(Pe?this._updateSvgIcon(Pe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Pe)}get fontSet(){return this._fontSet}set fontSet(Pe){const ht=this._cleanupFontValue(Pe);ht!==this._fontSet&&(this._fontSet=ht,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Pe){const ht=this._cleanupFontValue(Pe);ht!==this._fontIcon&&(this._fontIcon=ht,this._updateFontIconClasses())}constructor(Pe,ht,Xe,Je,Me,ie){this._elementRef=Pe,this._iconRegistry=ht,this._location=Je,this._errorHandler=Me,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=oe.yU.EMPTY,ie&&(ie.color&&(this.color=this._defaultColor=ie.color),ie.fontSet&&(this.fontSet=ie.fontSet)),Xe||Pe.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Pe){if(!Pe)return["",""];const ht=Pe.split(":");switch(ht.length){case 1:return["",ht[0]];case 2:return ht;default:throw Error(`Invalid icon name: "${Pe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Pe=this._elementsWithExternalReferences;if(Pe&&Pe.size){const ht=this._location.getPathname();ht!==this._previousPath&&(this._previousPath=ht,this._prependPathToReferences(ht))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Pe){this._clearSvgElement();const ht=this._location.getPathname();this._previousPath=ht,this._cacheChildrenWithExternalReferences(Pe),this._prependPathToReferences(ht),this._elementRef.nativeElement.appendChild(Pe)}_clearSvgElement(){const Pe=this._elementRef.nativeElement;let ht=Pe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();ht--;){const Xe=Pe.childNodes[ht];(1!==Xe.nodeType||"svg"===Xe.nodeName.toLowerCase())&&Xe.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Pe=this._elementRef.nativeElement,ht=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Xe=>Xe.length>0);this._previousFontSetClass.forEach(Xe=>Pe.classList.remove(Xe)),ht.forEach(Xe=>Pe.classList.add(Xe)),this._previousFontSetClass=ht,this.fontIcon!==this._previousFontIconClass&&!ht.includes("mat-ligature-font")&&(this._previousFontIconClass&&Pe.classList.remove(this._previousFontIconClass),this.fontIcon&&Pe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Pe){return"string"==typeof Pe?Pe.trim().split(" ")[0]:Pe}_prependPathToReferences(Pe){const ht=this._elementsWithExternalReferences;ht&&ht.forEach((Xe,Je)=>{Xe.forEach(Me=>{Je.setAttribute(Me.name,`url('${Pe}#${Me.value}')`)})})}_cacheChildrenWithExternalReferences(Pe){const ht=Pe.querySelectorAll(pi),Xe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Je=0;Je{const ie=ht[Je],ve=ie.getAttribute(Me),le=ve?ve.match(_e):null;if(le){let Ce=Xe.get(ie);Ce||(Ce=[],Xe.set(ie,Ce)),Ce.push({name:Me,value:le[1]})}})}_updateSvgIcon(Pe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Pe){const[ht,Xe]=this._splitIconName(Pe);ht&&(this._svgNamespace=ht),Xe&&(this._svgName=Xe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Xe,ht).pipe((0,ge.s)(1)).subscribe(Je=>this._setSvgElement(Je),Je=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${ht}:${Xe}! ${Je.message}`))})}}static#e=this.\u0275fac=function(ht){return new(ht||Ie)(u.rXU(u.aKT),u.rXU(me),u.kS0("aria-hidden"),u.rXU(Fn),u.rXU(u.zcH),u.rXU(Zt,8))};static#t=this.\u0275cmp=u.VBU({type:Ie,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(ht,Xe){2&ht&&(u.BMQ("data-mat-icon-type",Xe._usingFontIcon()?"font":"svg")("data-mat-icon-name",Xe._svgName||Xe.fontIcon)("data-mat-icon-namespace",Xe._svgNamespace||Xe.fontSet)("fontIcon",Xe._usingFontIcon()?Xe.fontIcon:null),u.HbH(Xe.color?"mat-"+Xe.color:""),u.AVh("mat-icon-inline",Xe.inline)("mat-icon-no-color","primary"!==Xe.color&&"accent"!==Xe.color&&"warn"!==Xe.color))},inputs:{color:"color",inline:[2,"inline","inline",u.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[u.GFd,u.aNF],ngContentSelectors:ke,decls:1,vars:0,template:function(ht,Xe){1&ht&&(u.NAR(),u.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return Ie})(),J=(()=>{class Ie{static#e=this.\u0275fac=function(ht){return new(ht||Ie)};static#t=this.\u0275mod=u.$C({type:Ie});static#n=this.\u0275inj=u.G2t({imports:[y.yE,y.yE]})}return Ie})()},9042:(tn,Ne,v)=>{"use strict";v.d(Ne,{fS:()=>Ee,fg:()=>ge});var u=v(4085),y=v(6860),o=v(7403),L=v(4438),G=v(9417),ee=v(6600),oe=v(2102),V=v(1413);const B=new L.nKC("MAT_INPUT_VALUE_ACCESSOR"),F=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let ue=0,ge=(()=>{class Re{get disabled(){return this._disabled}set disabled(te){this._disabled=(0,u.he)(te),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(te){this._id=te||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(G.k0.required)??!1}set required(te){this._required=(0,u.he)(te)}get type(){return this._type}set type(te){this._type=te||"text",this._validateType(),!this._isTextarea&&(0,y.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(te){this._errorStateTracker.matcher=te}get value(){return this._inputValueAccessor.value}set value(te){te!==this.value&&(this._inputValueAccessor.value=te,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(te){this._readonly=(0,u.he)(te)}get errorState(){return this._errorStateTracker.errorState}set errorState(te){this._errorStateTracker.errorState=te}constructor(te,be,Ze,gt,je,qe,We,ae,me,Le){this._elementRef=te,this._platform=be,this.ngControl=Ze,this._autofillMonitor=ae,this._ngZone=me,this._formField=Le,this._uid="mat-input-"+ue++,this._webkitBlinkWheelListenerAttached=!1,this.focused=!1,this.stateChanges=new V.B,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(vt=>(0,y.MU)().has(vt)),this._iOSKeyupListener=vt=>{const Dt=vt.target;!Dt.value&&0===Dt.selectionStart&&0===Dt.selectionEnd&&(Dt.setSelectionRange(1,1),Dt.setSelectionRange(0,0))},this._webkitBlinkWheelListener=()=>{};const nt=this._elementRef.nativeElement,At=nt.nodeName.toLowerCase();this._inputValueAccessor=We||nt,this._previousNativeValue=this.value,this.id=this.id,be.IOS&&me.runOutsideAngular(()=>{te.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new ee.X0(qe,Ze,je,gt,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===At,this._isTextarea="textarea"===At,this._isInFormField=!!Le,this._isNativeSelect&&(this.controlType=nt.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(te=>{this.autofilled=te.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(te){this._elementRef.nativeElement.focus(te)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(te){te!==this.focused&&(this.focused=te,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const te=this._elementRef.nativeElement.value;this._previousNativeValue!==te&&(this._previousNativeValue=te,this.stateChanges.next())}_dirtyCheckPlaceholder(){const te=this._getPlaceholder();if(te!==this._previousPlaceholder){const be=this._elementRef.nativeElement;this._previousPlaceholder=te,te?be.setAttribute("placeholder",te):be.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){F.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let te=this._elementRef.nativeElement.validity;return te&&te.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const te=this._elementRef.nativeElement,be=te.options[0];return this.focused||te.multiple||!this.empty||!!(te.selectedIndex>-1&&be&&be.label)}return this.focused||!this.empty}setDescribedByIds(te){te.length?this._elementRef.nativeElement.setAttribute("aria-describedby",te.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const te=this._elementRef.nativeElement;return this._isNativeSelect&&(te.multiple||te.size>1)}_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&"number"===this._type&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&"number"!==this._type&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}static#e=this.\u0275fac=function(be){return new(be||Re)(L.rXU(L.aKT),L.rXU(y.OD),L.rXU(G.vO,10),L.rXU(G.cV,8),L.rXU(G.j4,8),L.rXU(ee.es),L.rXU(B,10),L.rXU(o.P8),L.rXU(L.SKi),L.rXU(oe.xb,8))};static#t=this.\u0275dir=L.FsC({type:Re,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(be,Ze){1&be&&L.bIt("focus",function(){return Ze._focusChanged(!0)})("blur",function(){return Ze._focusChanged(!1)})("input",function(){return Ze._onInput()}),2&be&&(L.Mr5("id",Ze.id)("disabled",Ze.disabled)("required",Ze.required),L.BMQ("name",Ze.name||null)("readonly",Ze.readonly&&!Ze._isNativeSelect||null)("aria-invalid",Ze.empty&&Ze.required?null:Ze.errorState)("aria-required",Ze.required)("id",Ze.id),L.AVh("mat-input-server",Ze._isServer)("mat-mdc-form-field-textarea-control",Ze._isInFormField&&Ze._isTextarea)("mat-mdc-form-field-input-control",Ze._isInFormField)("mdc-text-field__input",Ze._isInFormField)("mat-mdc-native-select-inline",Ze._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[L.Jv_([{provide:oe.qT,useExisting:Re}]),L.OA$]})}return Re})(),Ee=(()=>{class Re{static#e=this.\u0275fac=function(be){return new(be||Re)};static#t=this.\u0275mod=L.$C({type:Re});static#n=this.\u0275inj=L.G2t({imports:[ee.yE,oe.RG,oe.RG,o.EE,ee.yE]})}return Re})()},9115:(tn,Ne,v)=>{"use strict";v.d(Ne,{Cn:()=>Ce,Cp:()=>le,fb:()=>Dt,kk:()=>ht});var u=v(4438),y=v(9888),o=v(7336),L=v(1413),G=v(7786),ee=v(8359),oe=v(7673),V=v(5007),P=v(9172),B=v(5558),F=v(6977),ue=v(5964),ge=v(6697),Ee=v(1986),Re=v(177),ke=v(6600),te=v(6939),be=v(9969),Ze=v(8203),gt=v(7987),je=v(6860),qe=v(5542);const We=["mat-menu-item",""],ae=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],me=["mat-icon, [matMenuItemIcon]","*"];function Le(dt,un){1&dt&&(u.qSk(),u.j41(0,"svg",2),u.nrm(1,"polygon",3),u.k0s())}const nt=["*"];function At(dt,un){if(1&dt){const it=u.RV6();u.j41(0,"div",0),u.bIt("keydown",function(Ft){u.eBV(it);const Rt=u.XpG();return u.Njj(Rt._handleKeydown(Ft))})("click",function(){u.eBV(it);const Ft=u.XpG();return u.Njj(Ft.closed.emit("click"))})("@transformMenu.start",function(Ft){u.eBV(it);const Rt=u.XpG();return u.Njj(Rt._onAnimationStart(Ft))})("@transformMenu.done",function(Ft){u.eBV(it);const Rt=u.XpG();return u.Njj(Rt._onAnimationDone(Ft))}),u.j41(1,"div",1),u.SdG(2),u.k0s()()}if(2&dt){const it=u.XpG();u.HbH(it._classList),u.Y8G("id",it.panelId)("@transformMenu",it._panelAnimationState),u.BMQ("aria-label",it.ariaLabel||null)("aria-labelledby",it.ariaLabelledby||null)("aria-describedby",it.ariaDescribedby||null)}}const vt=new u.nKC("MAT_MENU_PANEL");let Dt=(()=>{class dt{constructor(it,It,Ft,Rt,kn){this._elementRef=it,this._document=It,this._focusMonitor=Ft,this._parentMenu=Rt,this._changeDetectorRef=kn,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new L.B,this._focused=new L.B,this._highlighted=!1,this._triggersSubmenu=!1,Rt?.addItem?.(this)}focus(it,It){this._focusMonitor&&it?this._focusMonitor.focusVia(this._getHostElement(),it,It):this._getHostElement().focus(It),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(it){this.disabled&&(it.preventDefault(),it.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const it=this._elementRef.nativeElement.cloneNode(!0),It=it.querySelectorAll("mat-icon, .material-icons");for(let Ft=0;Ft enter",(0,be.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,be.iF)({opacity:1,transform:"scale(1)"}))),(0,be.kY)("* => void",(0,be.i0)("100ms 25ms linear",(0,be.iF)({opacity:0})))]),fadeInItems:(0,be.hZ)("fadeInItems",[(0,be.wk)("showing",(0,be.iF)({opacity:1})),(0,be.kY)("void => *",[(0,be.iF)({opacity:0}),(0,be.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ie=0;const Ot=new u.nKC("mat-menu-default-options",{providedIn:"root",factory:function Pe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let ht=(()=>{class dt{get xPosition(){return this._xPosition}set xPosition(it){this._xPosition=it,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(it){this._yPosition=it,this.setPositionClasses()}set panelClass(it){const It=this._previousPanelClass,Ft={...this._classList};It&&It.length&&It.split(" ").forEach(Rt=>{Ft[Rt]=!1}),this._previousPanelClass=it,it&&it.length&&(it.split(" ").forEach(Rt=>{Ft[Rt]=!0}),this._elementRef.nativeElement.className=""),this._classList=Ft}get classList(){return this.panelClass}set classList(it){this.panelClass=it}constructor(it,It,Ft,Rt){this._elementRef=it,this._changeDetectorRef=Rt,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new u.rOR,this._classList={},this._panelAnimationState="void",this._animationDone=new L.B,this.closed=new u.bkB,this.close=this.closed,this.panelId="mat-menu-panel-"+Ie++,this._injector=(0,u.WQX)(u.zZn),this.overlayPanelClass=Ft.overlayPanelClass||"",this._xPosition=Ft.xPosition,this._yPosition=Ft.yPosition,this.backdropClass=Ft.backdropClass,this.overlapTrigger=Ft.overlapTrigger,this.hasBackdrop=Ft.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new y.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,P.Z)(this._directDescendantItems),(0,B.n)(it=>(0,G.h)(...it.map(It=>It._focused)))).subscribe(it=>this._keyManager.updateActiveItem(it)),this._directDescendantItems.changes.subscribe(it=>{const It=this._keyManager;if("enter"===this._panelAnimationState&&It.activeItem?._hasFocus()){const Ft=it.toArray(),Rt=Math.max(0,Math.min(Ft.length-1,It.activeItemIndex||0));Ft[Rt]&&!Ft[Rt].disabled?It.setActiveItem(Rt):It.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe((0,P.Z)(this._directDescendantItems),(0,B.n)(It=>(0,G.h)(...It.map(Ft=>Ft._hovered))))}addItem(it){}removeItem(it){}_handleKeydown(it){const It=it.keyCode,Ft=this._keyManager;switch(It){case o._f:(0,o.rp)(it)||(it.preventDefault(),this.closed.emit("keydown"));break;case o.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case o.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(It===o.i7||It===o.n6)&&Ft.setFocusOrigin("keyboard"),void Ft.onKeydown(it)}it.stopPropagation()}focusFirstItem(it="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,u.mal)(()=>{let It=null;if(this._directDescendantItems.length&&(It=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!It||!It.contains(document.activeElement)){const Ft=this._keyManager;Ft.setFocusOrigin(it).setFirstItemActive(),!Ft.activeItem&&It&&It.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(it){if(null===this._baseElevation){const hi=("function"==typeof getComputedStyle?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(hi)}const It=Math.min(this._baseElevation+it,24),Ft=`${this._elevationPrefix}${It}`,Rt=Object.keys(this._classList).find(kn=>kn.startsWith(this._elevationPrefix));if(!Rt||Rt===this._previousElevation){const kn={...this._classList};this._previousElevation&&(kn[this._previousElevation]=!1),kn[Ft]=!0,this._previousElevation=Ft,this._classList=kn}}setPositionClasses(it=this.xPosition,It=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===it,"mat-menu-after":"after"===it,"mat-menu-above":"above"===It,"mat-menu-below":"below"===It},this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(it){this._animationDone.next(it),this._isAnimating=!1}_onAnimationStart(it){this._isAnimating=!0,"enter"===it.toState&&0===this._keyManager.activeItemIndex&&(it.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,P.Z)(this._allItems)).subscribe(it=>{this._directDescendantItems.reset(it.filter(It=>It._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(It){return new(It||dt)(u.rXU(u.aKT),u.rXU(u.SKi),u.rXU(Ot),u.rXU(u.gRc))};static#t=this.\u0275cmp=u.VBU({type:dt,selectors:[["mat-menu"]],contentQueries:function(It,Ft,Rt){if(1&It&&(u.wni(Rt,_n,5),u.wni(Rt,Dt,5),u.wni(Rt,Dt,4)),2&It){let kn;u.mGM(kn=u.lsd())&&(Ft.lazyContent=kn.first),u.mGM(kn=u.lsd())&&(Ft._allItems=kn),u.mGM(kn=u.lsd())&&(Ft.items=kn)}},viewQuery:function(It,Ft){if(1&It&&u.GBs(u.C4Q,5),2&It){let Rt;u.mGM(Rt=u.lsd())&&(Ft.templateRef=Rt.first)}},hostVars:3,hostBindings:function(It,Ft){2&It&&u.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",u.L39],hasBackdrop:[2,"hasBackdrop","hasBackdrop",it=>null==it?null:(0,u.L39)(it)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[u.Jv_([{provide:vt,useExisting:dt}]),u.GFd,u.aNF],ngContentSelectors:nt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(It,Ft){1&It&&(u.NAR(),u.DNE(0,At,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-app-surface-container));will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-app-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-app-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[_e.transformMenu,_e.fadeInItems]},changeDetection:0})}return dt})();const Xe=new u.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const dt=(0,u.WQX)(gt.hJ);return()=>dt.scrollStrategies.reposition()}}),Me={provide:Xe,deps:[gt.hJ],useFactory:function Je(dt){return()=>dt.scrollStrategies.reposition()}},ie=(0,je.BQ)({passive:!0});let le=(()=>{class dt{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(it){this.menu=it}get menu(){return this._menu}set menu(it){it!==this._menu&&(this._menu=it,this._menuCloseSubscription.unsubscribe(),it&&(this._menuCloseSubscription=it.close.subscribe(It=>{this._destroyMenu(It),("click"===It||"tab"===It)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(It)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(it,It,Ft,Rt,kn,hi,qt,we,tt){this._overlay=it,this._element=It,this._viewContainerRef=Ft,this._menuItemInstance=hi,this._dir=qt,this._focusMonitor=we,this._ngZone=tt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ee.yU.EMPTY,this._hoverSubscription=ee.yU.EMPTY,this._menuCloseSubscription=ee.yU.EMPTY,this._changeDetectorRef=(0,u.WQX)(u.gRc),this._handleTouchStart=rt=>{(0,y.w6)(rt)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new u.bkB,this.onMenuOpen=this.menuOpened,this.menuClosed=new u.bkB,this.onMenuClose=this.menuClosed,this._scrollStrategy=Rt,this._parentMaterialMenu=kn instanceof ht?kn:void 0,It.nativeElement.addEventListener("touchstart",this._handleTouchStart,ie)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ie),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 it=this.menu;if(this._menuOpen||!it)return;const It=this._createOverlay(it),Ft=It.getConfig(),Rt=Ft.positionStrategy;this._setPosition(it,Rt),Ft.hasBackdrop=null==it.hasBackdrop?!this.triggersSubmenu():it.hasBackdrop,It.attach(this._getPortal(it)),it.lazyContent&&it.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(it),it instanceof ht&&(it._startAnimation(),it._directDescendantItems.changes.pipe((0,F.Q)(it.close)).subscribe(()=>{Rt.withLockedPosition(!1).reapplyLastPosition(),Rt.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(it,It){this._focusMonitor&&it?this._focusMonitor.focusVia(this._element,it,It):this._element.nativeElement.focus(It)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(it){if(!this._overlayRef||!this.menuOpen)return;const It=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===it||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,It instanceof ht?(It._resetAnimation(),It.lazyContent?It._animationDone.pipe((0,ue.p)(Ft=>"void"===Ft.toState),(0,ge.s)(1),(0,F.Q)(It.lazyContent._attached)).subscribe({next:()=>It.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),It?.lazyContent?.detach())}_initMenu(it){it.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,it.direction=this.dir,this._setMenuElevation(it),it.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(it){if(it.setElevation){let It=0,Ft=it.parentMenu;for(;Ft;)It++,Ft=Ft.parentMenu;it.setElevation(It)}}_setIsMenuOpen(it){it!==this._menuOpen&&(this._menuOpen=it,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(it),this._changeDetectorRef.markForCheck())}_createOverlay(it){if(!this._overlayRef){const It=this._getOverlayConfig(it);this._subscribeToPositions(it,It.positionStrategy),this._overlayRef=this._overlay.create(It),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(it){return new gt.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:it.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:it.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(it,It){it.setPositionClasses&&It.positionChanges.subscribe(Ft=>{const Rt="start"===Ft.connectionPair.overlayX?"after":"before",kn="top"===Ft.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>it.setPositionClasses(Rt,kn)):it.setPositionClasses(Rt,kn)})}_setPosition(it,It){let[Ft,Rt]="before"===it.xPosition?["end","start"]:["start","end"],[kn,hi]="above"===it.yPosition?["bottom","top"]:["top","bottom"],[qt,we]=[kn,hi],[tt,rt]=[Ft,Rt],bt=0;if(this.triggersSubmenu()){if(rt=Ft="before"===it.xPosition?"start":"end",Rt=tt="end"===Ft?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const on=this._parentMaterialMenu.items.first;this._parentInnerPadding=on?on._getHostElement().offsetTop:0}bt="bottom"===kn?this._parentInnerPadding:-this._parentInnerPadding}}else it.overlapTrigger||(qt="top"===kn?"bottom":"top",we="top"===hi?"bottom":"top");It.withPositions([{originX:Ft,originY:qt,overlayX:tt,overlayY:kn,offsetY:bt},{originX:Rt,originY:qt,overlayX:rt,overlayY:kn,offsetY:bt},{originX:Ft,originY:we,overlayX:tt,overlayY:hi,offsetY:-bt},{originX:Rt,originY:we,overlayX:rt,overlayY:hi,offsetY:-bt}])}_menuClosingActions(){const it=this._overlayRef.backdropClick(),It=this._overlayRef.detachments(),Ft=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,oe.of)(),Rt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ue.p)(kn=>kn!==this._menuItemInstance),(0,ue.p)(()=>this._menuOpen)):(0,oe.of)();return(0,G.h)(it,Ft,Rt,It)}_handleMousedown(it){(0,y._G)(it)||(this._openedBy=0===it.button?"mouse":void 0,this.triggersSubmenu()&&it.preventDefault())}_handleKeydown(it){const It=it.keyCode;(It===o.Fm||It===o.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(It===o.LE&&"ltr"===this.dir||It===o.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(it){this.triggersSubmenu()?(it.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ue.p)(it=>it===this._menuItemInstance&&!it.disabled),(0,Ee.c)(0,V.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ht&&this.menu._isAnimating?this.menu._animationDone.pipe((0,ge.s)(1),(0,Ee.c)(0,V.$),(0,F.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(it){return(!this._portal||this._portal.templateRef!==it.templateRef)&&(this._portal=new te.VA(it.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(It){return new(It||dt)(u.rXU(gt.hJ),u.rXU(u.aKT),u.rXU(u.c1b),u.rXU(Xe),u.rXU(vt,8),u.rXU(Dt,10),u.rXU(Ze.dS,8),u.rXU(y.FN),u.rXU(u.SKi))};static#t=this.\u0275dir=u.FsC({type:dt,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(It,Ft){1&It&&u.bIt("click",function(kn){return Ft._handleClick(kn)})("mousedown",function(kn){return Ft._handleMousedown(kn)})("keydown",function(kn){return Ft._handleKeydown(kn)}),2&It&&u.BMQ("aria-haspopup",Ft.menu?"menu":null)("aria-expanded",Ft.menuOpen)("aria-controls",Ft.menuOpen?Ft.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0})}return dt})(),Ce=(()=>{class dt{static#e=this.\u0275fac=function(It){return new(It||dt)};static#t=this.\u0275mod=u.$C({type:dt});static#n=this.\u0275inj=u.G2t({providers:[Me],imports:[Re.MD,ke.pZ,ke.yE,gt.z_,qe.Gj,ke.yE]})}return dt})()},7575:(tn,Ne,v)=>{"use strict";v.d(Ne,{HM:()=>V,PO:()=>B});var u=v(4438),o=(v(177),v(6600));function L(F,ue){1&F&&u.nrm(0,"div",2)}const G=new u.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let V=(()=>{class F{constructor(ge,Ee,Re,ke,te){this._elementRef=ge,this._ngZone=Ee,this._changeDetectorRef=Re,this._animationMode=ke,this._isNoopAnimation=!1,this._defaultColor="primary",this._value=0,this._bufferValue=0,this.animationEnd=new u.bkB,this._mode="determinate",this._transitionendHandler=be=>{0===this.animationEnd.observers.length||!be.target||!be.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===ke,te&&(te.color&&(this.color=this._defaultColor=te.color),this.mode=te.mode||this.mode)}get color(){return this._color||this._defaultColor}set color(ge){this._color=ge}get value(){return this._value}set value(ge){this._value=P(ge||0),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(ge){this._bufferValue=P(ge||0),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(ge){this._mode=ge,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(Ee){return new(Ee||F)(u.rXU(u.aKT),u.rXU(u.SKi),u.rXU(u.gRc),u.rXU(u.bc$,8),u.rXU(G,8))};static#t=this.\u0275cmp=u.VBU({type:F,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(Ee,Re){2&Ee&&(u.BMQ("aria-valuenow",Re._isIndeterminate()?null:Re.value)("mode",Re.mode),u.HbH("mat-"+Re.color),u.AVh("_mat-animation-noopable",Re._isNoopAnimation)("mdc-linear-progress--animation-ready",!Re._isNoopAnimation)("mdc-linear-progress--indeterminate",Re._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",u.Udg],bufferValue:[2,"bufferValue","bufferValue",u.Udg],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],standalone:!0,features:[u.GFd,u.aNF],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(Ee,Re){1&Ee&&(u.j41(0,"div",0),u.nrm(1,"div",1),u.DNE(2,L,1,0,"div",2),u.k0s(),u.j41(3,"div",3),u.nrm(4,"span",4),u.k0s(),u.j41(5,"div",5),u.nrm(6,"span",4),u.k0s()),2&Ee&&(u.R7$(),u.xc7("flex-basis",Re._getBufferBarFlexBasis()),u.R7$(),u.vxM("buffer"===Re.mode?2:-1),u.R7$(),u.xc7("transform",Re._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mdc-linear-progress-track-height),var(--mdc-linear-progress-active-indicator-height))}.cdk-high-contrast-active .mdc-linear-progress{outline-color:CanvasText}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mdc-linear-progress-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mdc-linear-progress-track-height);border-radius:var(--mdc-linear-progress-track-shape, var(--mat-app-corner-none))}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mdc-linear-progress-track-color, var(--mat-app-surface-variant))}.cdk-high-contrast-active .mdc-linear-progress__buffer-dots{background-color:ButtonBorder}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mdc-linear-progress-track-color, var(--mat-app-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}"],encapsulation:2,changeDetection:0})}return F})();function P(F,ue=0,ge=100){return Math.max(ue,Math.min(ge,F))}let B=(()=>{class F{static#e=this.\u0275fac=function(Ee){return new(Ee||F)};static#t=this.\u0275mod=u.$C({type:F});static#n=this.\u0275inj=u.G2t({imports:[o.yE]})}return F})()},2798:(tn,Ne,v)=>{"use strict";v.d(Ne,{$2:()=>Je,VO:()=>Xe,Ve:()=>Me});var u=v(7987),y=v(177),o=v(4438),L=v(6600),G=v(2102),ee=v(5542),oe=v(9888),V=v(8203),P=v(5024),B=v(7336),F=v(9417),ue=v(1413),ge=v(9030),Ee=v(7786),Re=v(9172),ke=v(5558),te=v(5964),be=v(6354),Ze=v(3294),gt=v(6977),je=v(6697),qe=v(9969);const We=["trigger"],ae=["panel"],me=[[["mat-select-trigger"]],"*"],Le=["mat-select-trigger","*"];function nt(ie,ve){if(1&ie&&(o.j41(0,"span",4),o.EFF(1),o.k0s()),2&ie){const le=o.XpG();o.R7$(),o.JRh(le.placeholder)}}function At(ie,ve){1&ie&&o.SdG(0)}function vt(ie,ve){if(1&ie&&(o.j41(0,"span",11),o.EFF(1),o.k0s()),2&ie){const le=o.XpG(2);o.R7$(),o.JRh(le.triggerValue)}}function Dt(ie,ve){if(1&ie&&(o.j41(0,"span",5),o.DNE(1,At,1,0)(2,vt,2,1,"span",11),o.k0s()),2&ie){const le=o.XpG();o.R7$(),o.vxM(le.customTrigger?1:2)}}function Zt(ie,ve){if(1&ie){const le=o.RV6();o.j41(0,"div",12,1),o.bIt("@transformPanel.done",function(dt){o.eBV(le);const un=o.XpG();return o.Njj(un._panelDoneAnimatingStream.next(dt.toState))})("keydown",function(dt){o.eBV(le);const un=o.XpG();return o.Njj(un._handleKeydown(dt))}),o.SdG(2,1),o.k0s()}if(2&ie){const le=o.XpG();o.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",le._getPanelTheme(),""),o.Y8G("ngClass",le.panelClass)("@transformPanel","showing"),o.BMQ("id",le.id+"-panel")("aria-multiselectable",le.multiple)("aria-label",le.ariaLabel||null)("aria-labelledby",le._getPanelAriaLabelledby())}}const Fn={transformPanelWrap:(0,qe.hZ)("transformPanelWrap",[(0,qe.kY)("* => void",(0,qe.P)("@transformPanel",[(0,qe.MA)()],{optional:!0}))]),transformPanel:(0,qe.hZ)("transformPanel",[(0,qe.wk)("void",(0,qe.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,qe.kY)("void => showing",(0,qe.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,qe.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,qe.kY)("* => void",(0,qe.i0)("100ms linear",(0,qe.iF)({opacity:0})))])};let _e=0;const Ae=new o.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const ie=(0,o.WQX)(u.hJ);return()=>ie.scrollStrategies.reposition()}}),Ie=new o.nKC("MAT_SELECT_CONFIG"),Ot={provide:Ae,deps:[u.hJ],useFactory:function J(ie){return()=>ie.scrollStrategies.reposition()}},Pe=new o.nKC("MatSelectTrigger");class ht{constructor(ve,le){this.source=ve,this.value=le}}let Xe=(()=>{class ie{_scrollOptionIntoView(le){const Ce=this.options.toArray()[le];if(Ce){const dt=this.panel.nativeElement,un=(0,L.jb)(le,this.options,this.optionGroups),it=Ce._getHostElement();dt.scrollTop=0===le&&1===un?0:(0,L.TL)(it.offsetTop,it.offsetHeight,dt.scrollTop,dt.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(le){return new ht(this,le)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(le){this._hideSingleSelectionIndicator=le,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(le){this._placeholder=le,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(F.k0.required)??!1}set required(le){this._required=le,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(le){this._multiple=le}get compareWith(){return this._compareWith}set compareWith(le){this._compareWith=le,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(le){this._assignValue(le)&&this._onChange(le)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(le){this._errorStateTracker.matcher=le}get id(){return this._id}set id(le){this._id=le||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(le){this._errorStateTracker.errorState=le}constructor(le,Ce,dt,un,it,It,Ft,Rt,kn,hi,qt,we,tt,rt){this._viewportRuler=le,this._changeDetectorRef=Ce,this._elementRef=it,this._dir=It,this._parentFormField=kn,this.ngControl=hi,this._liveAnnouncer=tt,this._defaultOptions=rt,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(bt,on)=>bt===on,this._uid="mat-select-"+_e++,this._triggerAriaLabelledBy=null,this._destroy=new ue.B,this.stateChanges=new ue.B,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+_e++,this._panelDoneAnimatingStream=new ue.B,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new ue.B,this.optionSelectionChanges=(0,ge.v)(()=>{const bt=this.options;return bt?bt.changes.pipe((0,Re.Z)(bt),(0,ke.n)(()=>(0,Ee.h)(...bt.map(on=>on.onSelectionChange)))):this._initialized.pipe((0,ke.n)(()=>this.optionSelectionChanges))}),this.openedChange=new o.bkB,this._openedStream=this.openedChange.pipe((0,te.p)(bt=>bt),(0,be.T)(()=>{})),this._closedStream=this.openedChange.pipe((0,te.p)(bt=>!bt),(0,be.T)(()=>{})),this.selectionChange=new o.bkB,this.valueChange=new o.bkB,this._trackedModal=null,this._skipPredicate=bt=>!this.panelOpen&&bt.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),null!=rt?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=rt.typeaheadDebounceInterval),this._errorStateTracker=new L.X0(un,hi,Rt,Ft,this.stateChanges),this._scrollStrategyFactory=we,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(qt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new P.CB(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Ze.F)(),(0,gt.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,gt.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,gt.Q)(this._destroy)).subscribe(le=>{le.added.forEach(Ce=>Ce.select()),le.removed.forEach(Ce=>Ce.deselect())}),this.options.changes.pipe((0,Re.Z)(null),(0,gt.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const le=this._getTriggerAriaLabelledby(),Ce=this.ngControl;if(le!==this._triggerAriaLabelledBy){const dt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=le,le?dt.setAttribute("aria-labelledby",le):dt.removeAttribute("aria-labelledby")}Ce&&(this._previousControl!==Ce.control&&(void 0!==this._previousControl&&null!==Ce.disabled&&Ce.disabled!==this.disabled&&(this.disabled=Ce.disabled),this._previousControl=Ce.control),this.updateErrorState())}ngOnChanges(le){(le.disabled||le.userAriaDescribedBy)&&this.stateChanges.next(),le.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){const le=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!le)return;const Ce=`${this.id}-panel`;this._trackedModal&&(0,oe.Ae)(this._trackedModal,"aria-owns",Ce),(0,oe.px)(le,"aria-owns",Ce),this._trackedModal=le}_clearFromModal(){this._trackedModal&&((0,oe.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(le){this._assignValue(le)}registerOnChange(le){this._onChange=le}registerOnTouched(le){this._onTouched=le}setDisabledState(le){this.disabled=le,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 le=this._selectionModel.selected.map(Ce=>Ce.viewValue);return this._isRtl()&&le.reverse(),le.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(le){this.disabled||(this.panelOpen?this._handleOpenKeydown(le):this._handleClosedKeydown(le))}_handleClosedKeydown(le){const Ce=le.keyCode,dt=Ce===B.n6||Ce===B.i7||Ce===B.UQ||Ce===B.LE,un=Ce===B.Fm||Ce===B.t6,it=this._keyManager;if(!it.isTyping()&&un&&!(0,B.rp)(le)||(this.multiple||le.altKey)&&dt)le.preventDefault(),this.open();else if(!this.multiple){const It=this.selected;it.onKeydown(le);const Ft=this.selected;Ft&&It!==Ft&&this._liveAnnouncer.announce(Ft.viewValue,1e4)}}_handleOpenKeydown(le){const Ce=this._keyManager,dt=le.keyCode,un=dt===B.n6||dt===B.i7,it=Ce.isTyping();if(un&&le.altKey)le.preventDefault(),this.close();else if(it||dt!==B.Fm&&dt!==B.t6||!Ce.activeItem||(0,B.rp)(le))if(!it&&this._multiple&&dt===B.A&&le.ctrlKey){le.preventDefault();const It=this.options.some(Ft=>!Ft.disabled&&!Ft.selected);this.options.forEach(Ft=>{Ft.disabled||(It?Ft.select():Ft.deselect())})}else{const It=Ce.activeItemIndex;Ce.onKeydown(le),this._multiple&&un&&le.shiftKey&&Ce.activeItem&&Ce.activeItemIndex!==It&&Ce.activeItem._selectViaInteraction()}else le.preventDefault(),Ce.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,je.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(le){if(this.options.forEach(Ce=>Ce.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&le)Array.isArray(le),le.forEach(Ce=>this._selectOptionByValue(Ce)),this._sortValues();else{const Ce=this._selectOptionByValue(le);Ce?this._keyManager.updateActiveItem(Ce):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(le){const Ce=this.options.find(dt=>{if(this._selectionModel.isSelected(dt))return!1;try{return null!=dt.value&&this._compareWith(dt.value,le)}catch{return!1}});return Ce&&this._selectionModel.select(Ce),Ce}_assignValue(le){return!!(le!==this._value||this._multiple&&Array.isArray(le))&&(this.options&&this._setSelectionByValue(le),this._value=le,!0)}_getOverlayWidth(le){return"auto"===this.panelWidth?(le instanceof u.$Q?le.elementRef:le||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const le of this.options)le._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new oe.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 le=(0,Ee.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,gt.Q)(le)).subscribe(Ce=>{this._onSelect(Ce.source,Ce.isUserInput),Ce.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Ee.h)(...this.options.map(Ce=>Ce._stateChanges)).pipe((0,gt.Q)(le)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(le,Ce){const dt=this._selectionModel.isSelected(le);null!=le.value||this._multiple?(dt!==le.selected&&(le.selected?this._selectionModel.select(le):this._selectionModel.deselect(le)),Ce&&this._keyManager.setActiveItem(le),this.multiple&&(this._sortValues(),Ce&&this.focus())):(le.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(le.value)),dt!==this._selectionModel.isSelected(le)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const le=this.options.toArray();this._selectionModel.sort((Ce,dt)=>this.sortComparator?this.sortComparator(Ce,dt,le):le.indexOf(Ce)-le.indexOf(dt)),this.stateChanges.next()}}_propagateChanges(le){let Ce;Ce=this.multiple?this.selected.map(dt=>dt.value):this.selected?this.selected.value:le,this._value=Ce,this.valueChange.emit(Ce),this._onChange(Ce),this.selectionChange.emit(this._getChangeEvent(Ce)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let le=-1;for(let Ce=0;Ce0}focus(le){this._elementRef.nativeElement.focus(le)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const le=this._parentFormField?.getLabelId();return this.ariaLabelledby?(le?le+" ":"")+this.ariaLabelledby:le}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const le=this._parentFormField?.getLabelId();let Ce=(le?le+" ":"")+this._valueId;return this.ariaLabelledby&&(Ce+=" "+this.ariaLabelledby),Ce}_panelDoneAnimating(le){this.openedChange.emit(le)}setDescribedByIds(le){le.length?this._elementRef.nativeElement.setAttribute("aria-describedby",le.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static#e=this.\u0275fac=function(Ce){return new(Ce||ie)(o.rXU(ee.Xj),o.rXU(o.gRc),o.rXU(o.SKi),o.rXU(L.es),o.rXU(o.aKT),o.rXU(V.dS,8),o.rXU(F.cV,8),o.rXU(F.j4,8),o.rXU(G.xb,8),o.rXU(F.vO,10),o.kS0("tabindex"),o.rXU(Ae),o.rXU(oe.Ai),o.rXU(Ie,8))};static#t=this.\u0275cmp=o.VBU({type:ie,selectors:[["mat-select"]],contentQueries:function(Ce,dt,un){if(1&Ce&&(o.wni(un,Pe,5),o.wni(un,L.wT,5),o.wni(un,L.QC,5)),2&Ce){let it;o.mGM(it=o.lsd())&&(dt.customTrigger=it.first),o.mGM(it=o.lsd())&&(dt.options=it),o.mGM(it=o.lsd())&&(dt.optionGroups=it)}},viewQuery:function(Ce,dt){if(1&Ce&&(o.GBs(We,5),o.GBs(ae,5),o.GBs(u.WB,5)),2&Ce){let un;o.mGM(un=o.lsd())&&(dt.trigger=un.first),o.mGM(un=o.lsd())&&(dt.panel=un.first),o.mGM(un=o.lsd())&&(dt._overlayDir=un.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(Ce,dt){1&Ce&&o.bIt("keydown",function(it){return dt._handleKeydown(it)})("focus",function(){return dt._onFocus()})("blur",function(){return dt._onBlur()}),2&Ce&&(o.BMQ("id",dt.id)("tabindex",dt.disabled?-1:dt.tabIndex)("aria-controls",dt.panelOpen?dt.id+"-panel":null)("aria-expanded",dt.panelOpen)("aria-label",dt.ariaLabel||null)("aria-required",dt.required.toString())("aria-disabled",dt.disabled.toString())("aria-invalid",dt.errorState)("aria-activedescendant",dt._getAriaActiveDescendant()),o.AVh("mat-mdc-select-disabled",dt.disabled)("mat-mdc-select-invalid",dt.errorState)("mat-mdc-select-required",dt.required)("mat-mdc-select-empty",dt.empty)("mat-mdc-select-multiple",dt.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",o.L39],disableRipple:[2,"disableRipple","disableRipple",o.L39],tabIndex:[2,"tabIndex","tabIndex",le=>null==le?0:(0,o.Udg)(le)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",o.L39],placeholder:"placeholder",required:[2,"required","required",o.L39],multiple:[2,"multiple","multiple",o.L39],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",o.L39],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",o.Udg],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[o.Jv_([{provide:G.qT,useExisting:ie},{provide:L.is,useExisting:ie}]),o.GFd,o.OA$,o.aNF],ngContentSelectors:Le,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(Ce,dt){if(1&Ce){const un=o.RV6();o.NAR(me),o.j41(0,"div",2,0),o.bIt("click",function(){return o.eBV(un),o.Njj(dt.open())}),o.j41(3,"div",3),o.DNE(4,nt,2,1,"span",4)(5,Dt,3,1,"span",5),o.k0s(),o.j41(6,"div",6)(7,"div",7),o.qSk(),o.j41(8,"svg",8),o.nrm(9,"path",9),o.k0s()()()(),o.DNE(10,Zt,3,9,"ng-template",10),o.bIt("backdropClick",function(){return o.eBV(un),o.Njj(dt.close())})("attach",function(){return o.eBV(un),o.Njj(dt._onAttached())})("detach",function(){return o.eBV(un),o.Njj(dt.close())})}if(2&Ce){const un=o.sdS(1);o.R7$(3),o.BMQ("id",dt._valueId),o.R7$(),o.vxM(dt.empty?4:5),o.R7$(6),o.Y8G("cdkConnectedOverlayPanelClass",dt._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",dt._scrollStrategy)("cdkConnectedOverlayOrigin",dt._preferredOverlayOrigin||un)("cdkConnectedOverlayOpen",dt.panelOpen)("cdkConnectedOverlayPositions",dt._positions)("cdkConnectedOverlayWidth",dt._overlayWidth)}},dependencies:[u.$Q,u.WB,y.YU],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[Fn.transformPanel]},changeDetection:0})}return ie})(),Je=(()=>{class ie{static#e=this.\u0275fac=function(Ce){return new(Ce||ie)};static#t=this.\u0275dir=o.FsC({type:ie,selectors:[["mat-select-trigger"]],standalone:!0,features:[o.Jv_([{provide:Pe,useExisting:ie}])]})}return ie})(),Me=(()=>{class ie{static#e=this.\u0275fac=function(Ce){return new(Ce||ie)};static#t=this.\u0275mod=o.$C({type:ie});static#n=this.\u0275inj=o.G2t({providers:[Ot],imports:[y.MD,u.z_,L.Sy,L.yE,ee.Gj,G.RG,L.Sy,L.yE]})}return ie})()},882:(tn,Ne,v)=>{"use strict";v.d(Ne,{$C:()=>Ot,$l:()=>J,qe:()=>Ie,vg:()=>Je});var u=v(5542),y=v(4438),o=v(6600),L=v(9888),G=v(8203),ee=v(4085),oe=v(7336),V=v(6860),P=v(177),B=v(1413),F=v(3726),ue=v(7786),ge=v(5964),Ee=v(6354),Re=v(3703),ke=v(6977),te=v(3294),be=v(6697),Ze=v(9172),gt=v(152),je=v(9969);const qe=["*"],We=["content"],ae=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],me=["mat-drawer","mat-drawer-content","*"];function Le(Me,ie){if(1&Me){const ve=y.RV6();y.j41(0,"div",1),y.bIt("click",function(){y.eBV(ve);const Ce=y.XpG();return y.Njj(Ce._onBackdropClicked())}),y.k0s()}if(2&Me){const ve=y.XpG();y.AVh("mat-drawer-shown",ve._isShowingBackdrop())}}function nt(Me,ie){1&Me&&(y.j41(0,"mat-drawer-content"),y.SdG(1,2),y.k0s())}const Vn={transformDrawer:(0,je.hZ)("transform",[(0,je.wk)("open, open-instant",(0,je.iF)({transform:"none",visibility:"visible"})),(0,je.wk)("void",(0,je.iF)({"box-shadow":"none",visibility:"hidden"})),(0,je.kY)("void => open-instant",(0,je.i0)("0ms")),(0,je.kY)("void <=> open, open-instant => void",(0,je.i0)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},pi=new y.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Ae(){return!1}}),_e=new y.nKC("MAT_DRAWER_CONTAINER");let J=(()=>{class Me extends u.uv{constructor(ve,le,Ce,dt,un){super(Ce,dt,un),this._changeDetectorRef=ve,this._container=le}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(le){return new(le||Me)(y.rXU(y.gRc),y.rXU((0,y.Rfq)(()=>Ot)),y.rXU(y.aKT),y.rXU(u.R),y.rXU(y.SKi))};static#t=this.\u0275cmp=y.VBU({type:Me,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(le,Ce){2&le&&y.xc7("margin-left",Ce._container._contentMargins.left,"px")("margin-right",Ce._container._contentMargins.right,"px")},standalone:!0,features:[y.Jv_([{provide:u.uv,useExisting:Me}]),y.Vt3,y.aNF],ngContentSelectors:qe,decls:1,vars:0,template:function(le,Ce){1&le&&(y.NAR(),y.SdG(0))},encapsulation:2,changeDetection:0})}return Me})(),Ie=(()=>{class Me{get position(){return this._position}set position(ve){(ve="end"===ve?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(ve),this._position=ve,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(ve){this._mode=ve,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(ve){this._disableClose=(0,ee.he)(ve)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(ve){("true"===ve||"false"===ve||null==ve)&&(ve=(0,ee.he)(ve)),this._autoFocus=ve}get opened(){return this._opened}set opened(ve){this.toggle((0,ee.he)(ve))}constructor(ve,le,Ce,dt,un,it,It,Ft){this._elementRef=ve,this._focusTrapFactory=le,this._focusMonitor=Ce,this._platform=dt,this._ngZone=un,this._interactivityChecker=it,this._doc=It,this._container=Ft,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new B.B,this._animationEnd=new B.B,this._animationState="void",this.openedChange=new y.bkB(!0),this._openedStream=this.openedChange.pipe((0,ge.p)(Rt=>Rt),(0,Ee.T)(()=>{})),this.openedStart=this._animationStarted.pipe((0,ge.p)(Rt=>Rt.fromState!==Rt.toState&&0===Rt.toState.indexOf("open")),(0,Re.u)(void 0)),this._closedStream=this.openedChange.pipe((0,ge.p)(Rt=>!Rt),(0,Ee.T)(()=>{})),this.closedStart=this._animationStarted.pipe((0,ge.p)(Rt=>Rt.fromState!==Rt.toState&&"void"===Rt.toState),(0,Re.u)(void 0)),this._destroyed=new B.B,this.onPositionChanged=new y.bkB,this._modeChanged=new B.B,this._injector=(0,y.WQX)(y.zZn),this._changeDetectorRef=(0,y.WQX)(y.gRc),this.openedChange.pipe((0,ke.Q)(this._destroyed)).subscribe(Rt=>{Rt?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,F.R)(this._elementRef.nativeElement,"keydown").pipe((0,ge.p)(Rt=>Rt.keyCode===oe._f&&!this.disableClose&&!(0,oe.rp)(Rt)),(0,ke.Q)(this._destroyed)).subscribe(Rt=>this._ngZone.run(()=>{this.close(),Rt.stopPropagation(),Rt.preventDefault()}))}),this._animationEnd.pipe((0,te.F)((Rt,kn)=>Rt.fromState===kn.fromState&&Rt.toState===kn.toState)).subscribe(Rt=>{const{fromState:kn,toState:hi}=Rt;(0===hi.indexOf("open")&&"void"===kn||"void"===hi&&0===kn.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(ve,le){this._interactivityChecker.isFocusable(ve)||(ve.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ce=()=>{ve.removeEventListener("blur",Ce),ve.removeEventListener("mousedown",Ce),ve.removeAttribute("tabindex")};ve.addEventListener("blur",Ce),ve.addEventListener("mousedown",Ce)})),ve.focus(le)}_focusByCssSelector(ve,le){let Ce=this._elementRef.nativeElement.querySelector(ve);Ce&&this._forceFocus(Ce,le)}_takeFocus(){if(!this._focusTrap)return;const ve=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":(0,y.mal)(()=>{!this._focusTrap.focusInitialElement()&&"function"==typeof ve.focus&&ve.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(ve){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,ve):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const ve=this._doc.activeElement;return!!ve&&this._elementRef.nativeElement.contains(ve)}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(ve){return this.toggle(!0,ve)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(ve=!this.opened,le){ve&&le&&(this._openedVia=le);const Ce=this._setOpen(ve,!ve&&this._isFocusWithinDrawer(),this._openedVia||"program");return ve||(this._openedVia=null),Ce}_setOpen(ve,le,Ce){return this._opened=ve,ve?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",le&&this._restoreFocus(Ce)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(dt=>{this.openedChange.pipe((0,be.s)(1)).subscribe(un=>dt(un?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(ve){if(!this._platform.isBrowser)return;const le=this._elementRef.nativeElement,Ce=le.parentNode;"end"===ve?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Ce.insertBefore(this._anchor,le)),Ce.appendChild(le)):this._anchor&&this._anchor.parentNode.insertBefore(le,this._anchor)}static#e=this.\u0275fac=function(le){return new(le||Me)(y.rXU(y.aKT),y.rXU(L.GX),y.rXU(L.FN),y.rXU(V.OD),y.rXU(y.SKi),y.rXU(L.Z7),y.rXU(P.qQ,8),y.rXU(_e,8))};static#t=this.\u0275cmp=y.VBU({type:Me,selectors:[["mat-drawer"]],viewQuery:function(le,Ce){if(1&le&&y.GBs(We,5),2&le){let dt;y.mGM(dt=y.lsd())&&(Ce._content=dt.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(le,Ce){1&le&&y.Kam("@transform.start",function(un){return Ce._animationStarted.next(un)})("@transform.done",function(un){return Ce._animationEnd.next(un)}),2&le&&(y.zvX("@transform",Ce._animationState),y.BMQ("align",null),y.AVh("mat-drawer-end","end"===Ce.position)("mat-drawer-over","over"===Ce.mode)("mat-drawer-push","push"===Ce.mode)("mat-drawer-side","side"===Ce.mode)("mat-drawer-opened",Ce.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],standalone:!0,features:[y.aNF],ngContentSelectors:qe,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(le,Ce){1&le&&(y.NAR(),y.j41(0,"div",1,0),y.SdG(2),y.k0s())},dependencies:[u.uv],encapsulation:2,data:{animation:[Vn.transformDrawer]},changeDetection:0})}return Me})(),Ot=(()=>{class Me{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(ve){this._autosize=(0,ee.he)(ve)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(ve){this._backdropOverride=null==ve?null:(0,ee.he)(ve)}get scrollable(){return this._userContent||this._content}constructor(ve,le,Ce,dt,un,it=!1,It){this._dir=ve,this._element=le,this._ngZone=Ce,this._changeDetectorRef=dt,this._animationMode=It,this._drawers=new y.rOR,this.backdropClick=new y.bkB,this._destroyed=new B.B,this._doCheckSubject=new B.B,this._contentMargins={left:null,right:null},this._contentMarginChanges=new B.B,this._injector=(0,y.WQX)(y.zZn),ve&&ve.change.pipe((0,ke.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),un.change().pipe((0,ke.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=it}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Ze.Z)(this._allDrawers),(0,ke.Q)(this._destroyed)).subscribe(ve=>{this._drawers.reset(ve.filter(le=>!le._container||le._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Ze.Z)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(ve=>{this._watchDrawerToggle(ve),this._watchDrawerPosition(ve),this._watchDrawerMode(ve)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,gt.B)(10),(0,ke.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(ve=>ve.open())}close(){this._drawers.forEach(ve=>ve.close())}updateContentMargins(){let ve=0,le=0;if(this._left&&this._left.opened)if("side"==this._left.mode)ve+=this._left._getWidth();else if("push"==this._left.mode){const Ce=this._left._getWidth();ve+=Ce,le-=Ce}if(this._right&&this._right.opened)if("side"==this._right.mode)le+=this._right._getWidth();else if("push"==this._right.mode){const Ce=this._right._getWidth();le+=Ce,ve-=Ce}ve=ve||null,le=le||null,(ve!==this._contentMargins.left||le!==this._contentMargins.right)&&(this._contentMargins={left:ve,right:le},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(ve){ve._animationStarted.pipe((0,ge.p)(le=>le.fromState!==le.toState),(0,ke.Q)(this._drawers.changes)).subscribe(le=>{"open-instant"!==le.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==ve.mode&&ve.openedChange.pipe((0,ke.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(ve.opened))}_watchDrawerPosition(ve){ve&&ve.onPositionChanged.pipe((0,ke.Q)(this._drawers.changes)).subscribe(()=>{(0,y.mal)(()=>{this._validateDrawers()},{injector:this._injector,phase:y.wjH.Read})})}_watchDrawerMode(ve){ve&&ve._modeChanged.pipe((0,ke.Q)((0,ue.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(ve){const le=this._element.nativeElement.classList,Ce="mat-drawer-container-has-open";ve?le.add(Ce):le.remove(Ce)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(ve=>{"end"==ve.position?this._end=ve:this._start=ve}),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(ve=>ve&&!ve.disableClose&&this._drawerHasBackdrop(ve)).forEach(ve=>ve._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(ve){return null!=ve&&ve.opened}_drawerHasBackdrop(ve){return null==this._backdropOverride?!!ve&&"side"!==ve.mode:this._backdropOverride}static#e=this.\u0275fac=function(le){return new(le||Me)(y.rXU(G.dS,8),y.rXU(y.aKT),y.rXU(y.SKi),y.rXU(y.gRc),y.rXU(u.Xj),y.rXU(pi),y.rXU(y.bc$,8))};static#t=this.\u0275cmp=y.VBU({type:Me,selectors:[["mat-drawer-container"]],contentQueries:function(le,Ce,dt){if(1&le&&(y.wni(dt,J,5),y.wni(dt,Ie,5)),2&le){let un;y.mGM(un=y.lsd())&&(Ce._content=un.first),y.mGM(un=y.lsd())&&(Ce._allDrawers=un)}},viewQuery:function(le,Ce){if(1&le&&y.GBs(J,5),2&le){let dt;y.mGM(dt=y.lsd())&&(Ce._userContent=dt.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(le,Ce){2&le&&y.AVh("mat-drawer-container-explicit-backdrop",Ce._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[y.Jv_([{provide:_e,useExisting:Me}]),y.aNF],ngContentSelectors:me,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(le,Ce){1&le&&(y.NAR(ae),y.DNE(0,Le,1,2,"div",0),y.SdG(1),y.SdG(2,1),y.DNE(3,nt,2,0,"mat-drawer-content")),2&le&&(y.vxM(Ce.hasBackdrop?0:-1),y.R7$(3),y.vxM(Ce._content?-1:3))},dependencies:[J],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-app-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-app-background));box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-app-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color, var(--mat-app-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return Me})(),Je=(()=>{class Me{static#e=this.\u0275fac=function(le){return new(le||Me)};static#t=this.\u0275mod=y.$C({type:Me});static#n=this.\u0275inj=y.G2t({imports:[o.yE,u.Gj,u.Gj,o.yE]})}return Me})()},4823:(tn,Ne,v)=>{"use strict";v.d(Ne,{oV:()=>Dt,uc:()=>Vn});var u=v(6977),y=v(4085),o=v(7336),L=v(4438),G=v(177),ee=v(6860),oe=v(9888),V=v(8203),P=v(7987),B=v(5542),F=v(6939),ue=v(1413),Ee=(v(9969),v(6600));const Re=["tooltip"],be=new L.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const _n=(0,L.WQX)(P.hJ);return()=>_n.scrollStrategies.reposition({scrollThrottle:20})}}),gt={provide:be,deps:[P.hJ],useFactory:function Ze(_n){return()=>_n.scrollStrategies.reposition({scrollThrottle:20})}},qe=new L.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function je(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ae="tooltip-panel",me=(0,ee.BQ)({passive:!0});let Dt=(()=>{class _n{get position(){return this._position}set position(_e){_e!==this._position&&(this._position=_e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(_e){this._positionAtOrigin=(0,y.he)(_e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(_e){const Ae=(0,y.he)(_e);this._disabled!==Ae&&(this._disabled=Ae,Ae?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(_e){this._showDelay=(0,y.OE)(_e)}get hideDelay(){return this._hideDelay}set hideDelay(_e){this._hideDelay=(0,y.OE)(_e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(_e){const Ae=this._message;this._message=null!=_e?String(_e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(Ae)}get tooltipClass(){return this._tooltipClass}set tooltipClass(_e){this._tooltipClass=_e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(_e,Ae,J,Ie,Ot,Pe,ht,Xe,Je,Me,ie,ve){this._overlay=_e,this._elementRef=Ae,this._scrollDispatcher=J,this._viewContainerRef=Ie,this._ngZone=Ot,this._platform=Pe,this._ariaDescriber=ht,this._focusMonitor=Xe,this._dir=Me,this._defaultOptions=ie,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Zt,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new ue.B,this._injector=(0,L.WQX)(L.zZn),this._scrollStrategy=Je,this._document=ve,ie&&(this._showDelay=ie.showDelay,this._hideDelay=ie.hideDelay,ie.position&&(this.position=ie.position),ie.positionAtOrigin&&(this.positionAtOrigin=ie.positionAtOrigin),ie.touchGestures&&(this.touchGestures=ie.touchGestures),ie.tooltipClass&&(this.tooltipClass=ie.tooltipClass)),Me.change.pipe((0,u.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,u.Q)(this._destroyed)).subscribe(_e=>{_e?"keyboard"===_e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const _e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Ae,J])=>{_e.removeEventListener(Ae,J,me)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(_e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(_e)}show(_e=this.showDelay,Ae){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const J=this._createOverlay(Ae);this._detach(),this._portal=this._portal||new F.A8(this._tooltipComponent,this._viewContainerRef);const Ie=this._tooltipInstance=J.attach(this._portal).instance;Ie._triggerElement=this._elementRef.nativeElement,Ie._mouseLeaveHideDelay=this._hideDelay,Ie.afterHidden().pipe((0,u.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Ie.show(_e)}hide(_e=this.hideDelay){const Ae=this._tooltipInstance;Ae&&(Ae.isVisible()?Ae.hide(_e):(Ae._cancelPendingAnimations(),this._detach()))}toggle(_e){this._isTooltipVisible()?this.hide():this.show(void 0,_e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(_e){if(this._overlayRef){const Ie=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!_e)&&Ie._origin instanceof L.aKT)return this._overlayRef;this._detach()}const Ae=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),J=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&_e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Ae);return J.positionChanges.pipe((0,u.Q)(this._destroyed)).subscribe(Ie=>{this._updateCurrentPositionClass(Ie.connectionPair),this._tooltipInstance&&Ie.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:J,panelClass:`${this._cssClassPrefix}-${ae}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,u.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,u.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,u.Q)(this._destroyed)).subscribe(Ie=>{this._isTooltipVisible()&&Ie.keyCode===o._f&&!(0,o.rp)(Ie)&&(Ie.preventDefault(),Ie.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(_e){const Ae=_e.getConfig().positionStrategy,J=this._getOrigin(),Ie=this._getOverlayPosition();Ae.withPositions([this._addOffset({...J.main,...Ie.main}),this._addOffset({...J.fallback,...Ie.fallback})])}_addOffset(_e){const J=!this._dir||"ltr"==this._dir.value;return"top"===_e.originY?_e.offsetY=-8:"bottom"===_e.originY?_e.offsetY=8:"start"===_e.originX?_e.offsetX=J?-8:8:"end"===_e.originX&&(_e.offsetX=J?8:-8),_e}_getOrigin(){const _e=!this._dir||"ltr"==this._dir.value,Ae=this.position;let J;"above"==Ae||"below"==Ae?J={originX:"center",originY:"above"==Ae?"top":"bottom"}:"before"==Ae||"left"==Ae&&_e||"right"==Ae&&!_e?J={originX:"start",originY:"center"}:("after"==Ae||"right"==Ae&&_e||"left"==Ae&&!_e)&&(J={originX:"end",originY:"center"});const{x:Ie,y:Ot}=this._invertPosition(J.originX,J.originY);return{main:J,fallback:{originX:Ie,originY:Ot}}}_getOverlayPosition(){const _e=!this._dir||"ltr"==this._dir.value,Ae=this.position;let J;"above"==Ae?J={overlayX:"center",overlayY:"bottom"}:"below"==Ae?J={overlayX:"center",overlayY:"top"}:"before"==Ae||"left"==Ae&&_e||"right"==Ae&&!_e?J={overlayX:"end",overlayY:"center"}:("after"==Ae||"right"==Ae&&_e||"left"==Ae&&!_e)&&(J={overlayX:"start",overlayY:"center"});const{x:Ie,y:Ot}=this._invertPosition(J.overlayX,J.overlayY);return{main:J,fallback:{overlayX:Ie,overlayY:Ot}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,L.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(_e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=_e,this._tooltipInstance._markForCheck())}_invertPosition(_e,Ae){return"above"===this.position||"below"===this.position?"top"===Ae?Ae="bottom":"bottom"===Ae&&(Ae="top"):"end"===_e?_e="start":"start"===_e&&(_e="end"),{x:_e,y:Ae}}_updateCurrentPositionClass(_e){const{overlayY:Ae,originX:J,originY:Ie}=_e;let Ot;if(Ot="center"===Ae?this._dir&&"rtl"===this._dir.value?"end"===J?"left":"right":"start"===J?"left":"right":"bottom"===Ae&&"top"===Ie?"above":"below",Ot!==this._currentPosition){const Pe=this._overlayRef;if(Pe){const ht=`${this._cssClassPrefix}-${ae}-`;Pe.removePanelClass(ht+this._currentPosition),Pe.addPanelClass(ht+Ot)}this._currentPosition=Ot}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",_e=>{let Ae;this._setupPointerExitEventsIfNeeded(),void 0!==_e.x&&void 0!==_e.y&&(Ae=_e),this.show(void 0,Ae)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",_e=>{const Ae=_e.targetTouches?.[0],J=Ae?{x:Ae.clientX,y:Ae.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,J)},this._defaultOptions.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const _e=[];if(this._platformSupportsMouseEvents())_e.push(["mouseleave",Ae=>{const J=Ae.relatedTarget;(!J||!this._overlayRef?.overlayElement.contains(J))&&this.hide()}],["wheel",Ae=>this._wheelListener(Ae)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ae=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};_e.push(["touchend",Ae],["touchcancel",Ae])}this._addListeners(_e),this._passiveListeners.push(..._e)}_addListeners(_e){_e.forEach(([Ae,J])=>{this._elementRef.nativeElement.addEventListener(Ae,J,me)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(_e){if(this._isTooltipVisible()){const Ae=this._document.elementFromPoint(_e.clientX,_e.clientY),J=this._elementRef.nativeElement;Ae!==J&&!J.contains(Ae)&&this.hide()}}_disableNativeGesturesIfNecessary(){const _e=this.touchGestures;if("off"!==_e){const Ae=this._elementRef.nativeElement,J=Ae.style;("on"===_e||"INPUT"!==Ae.nodeName&&"TEXTAREA"!==Ae.nodeName)&&(J.userSelect=J.msUserSelect=J.webkitUserSelect=J.MozUserSelect="none"),("on"===_e||!Ae.draggable)&&(J.webkitUserDrag="none"),J.touchAction="none",J.webkitTapHighlightColor="transparent"}}_syncAriaDescription(_e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,_e,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static#e=this.\u0275fac=function(Ae){return new(Ae||_n)(L.rXU(P.hJ),L.rXU(L.aKT),L.rXU(B.R),L.rXU(L.c1b),L.rXU(L.SKi),L.rXU(ee.OD),L.rXU(oe.vr),L.rXU(oe.FN),L.rXU(be),L.rXU(V.dS),L.rXU(qe,8),L.rXU(G.qQ))};static#t=this.\u0275dir=L.FsC({type:_n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(Ae,J){2&Ae&&L.AVh("mat-mdc-tooltip-disabled",J.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}return _n})(),Zt=(()=>{class _n{constructor(_e,Ae,J){this._changeDetectorRef=_e,this._elementRef=Ae,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new ue.B,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===J}show(_e){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},_e)}hide(_e){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},_e)}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:_e}){(!_e||!this._triggerElement.contains(_e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const _e=this._elementRef.nativeElement.getBoundingClientRect();return _e.height>24&&_e.width>=200}_handleAnimationEnd({animationName:_e}){(_e===this._showAnimation||_e===this._hideAnimation)&&this._finalizeAnimation(_e===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(_e){_e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(_e){const Ae=this._tooltip.nativeElement,J=this._showAnimation,Ie=this._hideAnimation;if(Ae.classList.remove(_e?Ie:J),Ae.classList.add(_e?J:Ie),this._isVisible!==_e&&(this._isVisible=_e,this._changeDetectorRef.markForCheck()),_e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Ot=getComputedStyle(Ae);("0s"===Ot.getPropertyValue("animation-duration")||"none"===Ot.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}_e&&this._onShow(),this._animationsDisabled&&(Ae.classList.add("_mat-animation-noopable"),this._finalizeAnimation(_e))}static#e=this.\u0275fac=function(Ae){return new(Ae||_n)(L.rXU(L.gRc),L.rXU(L.aKT),L.rXU(L.bc$,8))};static#t=this.\u0275cmp=L.VBU({type:_n,selectors:[["mat-tooltip-component"]],viewQuery:function(Ae,J){if(1&Ae&&L.GBs(Re,7),2&Ae){let Ie;L.mGM(Ie=L.lsd())&&(J._tooltip=Ie.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(Ae,J){1&Ae&&L.bIt("mouseleave",function(Ot){return J._handleMouseLeave(Ot)})},standalone:!0,features:[L.aNF],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(Ae,J){if(1&Ae){const Ie=L.RV6();L.j41(0,"div",1,0),L.bIt("animationend",function(Pe){return L.eBV(Ie),L.Njj(J._handleAnimationEnd(Pe))}),L.j41(2,"div",2),L.EFF(3),L.k0s()()}2&Ae&&(L.AVh("mdc-tooltip--multiline",J._isMultiline),L.Y8G("ngClass",J.tooltipClass),L.R7$(3),L.JRh(J.message))},dependencies:[G.YU],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-app-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-app-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-app-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-app-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-app-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-app-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-app-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return _n})(),Vn=(()=>{class _n{static#e=this.\u0275fac=function(Ae){return new(Ae||_n)};static#t=this.\u0275mod=L.$C({type:_n});static#n=this.\u0275inj=L.G2t({providers:[gt],imports:[oe.Pd,G.MD,P.z_,Ee.yE,Ee.yE,B.Gj]})}return _n})()},345:(tn,Ne,v)=>{"use strict";v.d(Ne,{B7:()=>me,B8:()=>J,hE:()=>It,up:()=>ce});var u=v(177),y=v(4438);class o extends u.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class L extends o{static makeCurrent(){(0,u.ZD)(new L)}onAndCancel(Be,ye,Ke){return Be.addEventListener(ye,Ke),()=>{Be.removeEventListener(ye,Ke)}}dispatchEvent(Be,ye){Be.dispatchEvent(ye)}remove(Be){Be.remove()}createElement(Be,ye){return(ye=ye||this.getDefaultDocument()).createElement(Be)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Be){return Be.nodeType===Node.ELEMENT_NODE}isShadowRoot(Be){return Be instanceof DocumentFragment}getGlobalEventTarget(Be,ye){return"window"===ye?window:"document"===ye?Be:"body"===ye?Be.body:null}getBaseHref(Be){const ye=function ee(){return G=G||document.querySelector("base"),G?G.getAttribute("href"):null}();return null==ye?null:function oe(He){return new URL(He,document.baseURI).pathname}(ye)}resetBaseElement(){G=null}getUserAgent(){return window.navigator.userAgent}getCookie(Be){return(0,u._b)(document.cookie,Be)}}let G=null,P=(()=>{class He{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Ke){return new(Ke||He)};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}return He})();const B=new y.nKC("");let F=(()=>{class He{constructor(ye,Ke){this._zone=Ke,this._eventNameToPlugin=new Map,ye.forEach(zt=>{zt.manager=this}),this._plugins=ye.slice().reverse()}addEventListener(ye,Ke,zt){return this._findPluginFor(Ke).addEventListener(ye,Ke,zt)}getZone(){return this._zone}_findPluginFor(ye){let Ke=this._eventNameToPlugin.get(ye);if(Ke)return Ke;if(Ke=this._plugins.find(Pn=>Pn.supports(ye)),!Ke)throw new y.wOt(5101,!1);return this._eventNameToPlugin.set(ye,Ke),Ke}static#e=this.\u0275fac=function(Ke){return new(Ke||He)(y.KVO(B),y.KVO(y.SKi))};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}return He})();class ue{constructor(Be){this._doc=Be}}const ge="ng-app-id";let Ee=(()=>{class He{constructor(ye,Ke,zt,Pn={}){this.doc=ye,this.appId=Ke,this.nonce=zt,this.platformId=Pn,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,u.Vy)(Pn),this.resetHostNodes()}addStyles(ye){for(const Ke of ye)1===this.changeUsageCount(Ke,1)&&this.onStyleAdded(Ke)}removeStyles(ye){for(const Ke of ye)this.changeUsageCount(Ke,-1)<=0&&this.onStyleRemoved(Ke)}ngOnDestroy(){const ye=this.styleNodesInDOM;ye&&(ye.forEach(Ke=>Ke.remove()),ye.clear());for(const Ke of this.getAllStyles())this.onStyleRemoved(Ke);this.resetHostNodes()}addHost(ye){this.hostNodes.add(ye);for(const Ke of this.getAllStyles())this.addStyleToHost(ye,Ke)}removeHost(ye){this.hostNodes.delete(ye)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ye){for(const Ke of this.hostNodes)this.addStyleToHost(Ke,ye)}onStyleRemoved(ye){const Ke=this.styleRef;Ke.get(ye)?.elements?.forEach(zt=>zt.remove()),Ke.delete(ye)}collectServerRenderedStyles(){const ye=this.doc.head?.querySelectorAll(`style[${ge}="${this.appId}"]`);if(ye?.length){const Ke=new Map;return ye.forEach(zt=>{null!=zt.textContent&&Ke.set(zt.textContent,zt)}),Ke}return null}changeUsageCount(ye,Ke){const zt=this.styleRef;if(zt.has(ye)){const Pn=zt.get(ye);return Pn.usage+=Ke,Pn.usage}return zt.set(ye,{usage:Ke,elements:[]}),Ke}getStyleElement(ye,Ke){const zt=this.styleNodesInDOM,Pn=zt?.get(Ke);if(Pn?.parentNode===ye)return zt.delete(Ke),Pn.removeAttribute(ge),Pn;{const vi=this.doc.createElement("style");return this.nonce&&vi.setAttribute("nonce",this.nonce),vi.textContent=Ke,this.platformIsServer&&vi.setAttribute(ge,this.appId),ye.appendChild(vi),vi}}addStyleToHost(ye,Ke){const zt=this.getStyleElement(ye,Ke),Pn=this.styleRef,vi=Pn.get(Ke)?.elements;vi?vi.push(zt):Pn.set(Ke,{elements:[zt],usage:1})}resetHostNodes(){const ye=this.hostNodes;ye.clear(),ye.add(this.doc.head)}static#e=this.\u0275fac=function(Ke){return new(Ke||He)(y.KVO(u.qQ),y.KVO(y.sZ2),y.KVO(y.BIS,8),y.KVO(y.Agw))};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}return He})();const Re={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"},ke=/%COMP%/g,je=new y.nKC("",{providedIn:"root",factory:()=>!0});function ae(He,Be){return Be.map(ye=>ye.replace(ke,He))}let me=(()=>{class He{constructor(ye,Ke,zt,Pn,vi,Ti,nn,Et=null){this.eventManager=ye,this.sharedStylesHost=Ke,this.appId=zt,this.removeStylesOnCompDestroy=Pn,this.doc=vi,this.platformId=Ti,this.ngZone=nn,this.nonce=Et,this.rendererByCompId=new Map,this.platformIsServer=(0,u.Vy)(Ti),this.defaultRenderer=new Le(ye,vi,nn,this.platformIsServer)}createRenderer(ye,Ke){if(!ye||!Ke)return this.defaultRenderer;this.platformIsServer&&Ke.encapsulation===y.gXe.ShadowDom&&(Ke={...Ke,encapsulation:y.gXe.Emulated});const zt=this.getOrCreateRenderer(ye,Ke);return zt instanceof Fn?zt.applyToHost(ye):zt instanceof Zt&&zt.applyStyles(),zt}getOrCreateRenderer(ye,Ke){const zt=this.rendererByCompId;let Pn=zt.get(Ke.id);if(!Pn){const vi=this.doc,Ti=this.ngZone,nn=this.eventManager,Et=this.sharedStylesHost,at=this.removeStylesOnCompDestroy,Lt=this.platformIsServer;switch(Ke.encapsulation){case y.gXe.Emulated:Pn=new Fn(nn,Et,Ke,this.appId,at,vi,Ti,Lt);break;case y.gXe.ShadowDom:return new Dt(nn,Et,ye,Ke,vi,Ti,this.nonce,Lt);default:Pn=new Zt(nn,Et,Ke,at,vi,Ti,Lt)}zt.set(Ke.id,Pn)}return Pn}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Ke){return new(Ke||He)(y.KVO(F),y.KVO(Ee),y.KVO(y.sZ2),y.KVO(je),y.KVO(u.qQ),y.KVO(y.Agw),y.KVO(y.SKi),y.KVO(y.BIS))};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}return He})();class Le{constructor(Be,ye,Ke,zt){this.eventManager=Be,this.doc=ye,this.ngZone=Ke,this.platformIsServer=zt,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Be,ye){return ye?this.doc.createElementNS(Re[ye]||ye,Be):this.doc.createElement(Be)}createComment(Be){return this.doc.createComment(Be)}createText(Be){return this.doc.createTextNode(Be)}appendChild(Be,ye){(vt(Be)?Be.content:Be).appendChild(ye)}insertBefore(Be,ye,Ke){Be&&(vt(Be)?Be.content:Be).insertBefore(ye,Ke)}removeChild(Be,ye){ye.remove()}selectRootElement(Be,ye){let Ke="string"==typeof Be?this.doc.querySelector(Be):Be;if(!Ke)throw new y.wOt(-5104,!1);return ye||(Ke.textContent=""),Ke}parentNode(Be){return Be.parentNode}nextSibling(Be){return Be.nextSibling}setAttribute(Be,ye,Ke,zt){if(zt){ye=zt+":"+ye;const Pn=Re[zt];Pn?Be.setAttributeNS(Pn,ye,Ke):Be.setAttribute(ye,Ke)}else Be.setAttribute(ye,Ke)}removeAttribute(Be,ye,Ke){if(Ke){const zt=Re[Ke];zt?Be.removeAttributeNS(zt,ye):Be.removeAttribute(`${Ke}:${ye}`)}else Be.removeAttribute(ye)}addClass(Be,ye){Be.classList.add(ye)}removeClass(Be,ye){Be.classList.remove(ye)}setStyle(Be,ye,Ke,zt){zt&(y.czy.DashCase|y.czy.Important)?Be.style.setProperty(ye,Ke,zt&y.czy.Important?"important":""):Be.style[ye]=Ke}removeStyle(Be,ye,Ke){Ke&y.czy.DashCase?Be.style.removeProperty(ye):Be.style[ye]=""}setProperty(Be,ye,Ke){null!=Be&&(Be[ye]=Ke)}setValue(Be,ye){Be.nodeValue=ye}listen(Be,ye,Ke){if("string"==typeof Be&&!(Be=(0,u.QT)().getGlobalEventTarget(this.doc,Be)))throw new Error(`Unsupported event target ${Be} for event ${ye}`);return this.eventManager.addEventListener(Be,ye,this.decoratePreventDefault(Ke))}decoratePreventDefault(Be){return ye=>{if("__ngUnwrap__"===ye)return Be;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Be(ye)):Be(ye))&&ye.preventDefault()}}}function vt(He){return"TEMPLATE"===He.tagName&&void 0!==He.content}class Dt extends Le{constructor(Be,ye,Ke,zt,Pn,vi,Ti,nn){super(Be,Pn,vi,nn),this.sharedStylesHost=ye,this.hostEl=Ke,this.shadowRoot=Ke.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Et=ae(zt.id,zt.styles);for(const at of Et){const Lt=document.createElement("style");Ti&&Lt.setAttribute("nonce",Ti),Lt.textContent=at,this.shadowRoot.appendChild(Lt)}}nodeOrShadowRoot(Be){return Be===this.hostEl?this.shadowRoot:Be}appendChild(Be,ye){return super.appendChild(this.nodeOrShadowRoot(Be),ye)}insertBefore(Be,ye,Ke){return super.insertBefore(this.nodeOrShadowRoot(Be),ye,Ke)}removeChild(Be,ye){return super.removeChild(null,ye)}parentNode(Be){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Be)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Zt extends Le{constructor(Be,ye,Ke,zt,Pn,vi,Ti,nn){super(Be,Pn,vi,Ti),this.sharedStylesHost=ye,this.removeStylesOnCompDestroy=zt,this.styles=nn?ae(nn,Ke.styles):Ke.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Fn extends Zt{constructor(Be,ye,Ke,zt,Pn,vi,Ti,nn){const Et=zt+"-"+Ke.id;super(Be,ye,Ke,Pn,vi,Ti,nn,Et),this.contentAttr=function qe(He){return"_ngcontent-%COMP%".replace(ke,He)}(Et),this.hostAttr=function We(He){return"_nghost-%COMP%".replace(ke,He)}(Et)}applyToHost(Be){this.applyStyles(),this.setAttribute(Be,this.hostAttr,"")}createElement(Be,ye){const Ke=super.createElement(Be,ye);return super.setAttribute(Ke,this.contentAttr,""),Ke}}let Vn=(()=>{class He extends ue{constructor(ye){super(ye)}supports(ye){return!0}addEventListener(ye,Ke,zt){return ye.addEventListener(Ke,zt,!1),()=>this.removeEventListener(ye,Ke,zt)}removeEventListener(ye,Ke,zt){return ye.removeEventListener(Ke,zt)}static#e=this.\u0275fac=function(Ke){return new(Ke||He)(y.KVO(u.qQ))};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}return He})();const _n=["alt","control","meta","shift"],pi={"\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"},_e={alt:He=>He.altKey,control:He=>He.ctrlKey,meta:He=>He.metaKey,shift:He=>He.shiftKey};let Ae=(()=>{class He extends ue{constructor(ye){super(ye)}supports(ye){return null!=He.parseEventName(ye)}addEventListener(ye,Ke,zt){const Pn=He.parseEventName(Ke),vi=He.eventCallback(Pn.fullKey,zt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,u.QT)().onAndCancel(ye,Pn.domEventName,vi))}static parseEventName(ye){const Ke=ye.toLowerCase().split("."),zt=Ke.shift();if(0===Ke.length||"keydown"!==zt&&"keyup"!==zt)return null;const Pn=He._normalizeKey(Ke.pop());let vi="",Ti=Ke.indexOf("code");if(Ti>-1&&(Ke.splice(Ti,1),vi="code."),_n.forEach(Et=>{const at=Ke.indexOf(Et);at>-1&&(Ke.splice(at,1),vi+=Et+".")}),vi+=Pn,0!=Ke.length||0===Pn.length)return null;const nn={};return nn.domEventName=zt,nn.fullKey=vi,nn}static matchEventFullKeyCode(ye,Ke){let zt=pi[ye.key]||ye.key,Pn="";return Ke.indexOf("code.")>-1&&(zt=ye.code,Pn="code."),!(null==zt||!zt)&&(zt=zt.toLowerCase()," "===zt?zt="space":"."===zt&&(zt="dot"),_n.forEach(vi=>{vi!==zt&&(0,_e[vi])(ye)&&(Pn+=vi+".")}),Pn+=zt,Pn===Ke)}static eventCallback(ye,Ke,zt){return Pn=>{He.matchEventFullKeyCode(Pn,ye)&&zt.runGuarded(()=>Ke(Pn))}}static _normalizeKey(ye){return"esc"===ye?"escape":ye}static#e=this.\u0275fac=function(Ke){return new(Ke||He)(y.KVO(u.qQ))};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}return He})();function J(He,Be){return(0,y.TL3)({rootComponent:He,...Ot(Be)})}function Ot(He){return{appProviders:[...Ce,...He?.providers??[]],platformProviders:Me}}const Me=[{provide:y.Agw,useValue:u.AJ},{provide:y.PLl,useValue:function ht(){L.makeCurrent()},multi:!0},{provide:u.qQ,useFactory:function Je(){return(0,y.TL$)(document),document},deps:[]}],Ce=[{provide:y.H8p,useValue:"root"},{provide:y.zcH,useFactory:function Xe(){return new y.zcH},deps:[]},{provide:B,useClass:Vn,multi:!0,deps:[u.qQ,y.SKi,y.Agw]},{provide:B,useClass:Ae,multi:!0,deps:[u.qQ]},me,Ee,F,{provide:y._9s,useExisting:me},{provide:u.N0,useClass:P,deps:[]},[]];let It=(()=>{class He{constructor(ye){this._doc=ye}getTitle(){return this._doc.title}setTitle(ye){this._doc.title=ye||""}static#e=this.\u0275fac=function(Ke){return new(Ke||He)(y.KVO(u.qQ))};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}return He})(),ce=(()=>{class He{static#e=this.\u0275fac=function(Ke){return new(Ke||He)};static#t=this.\u0275prov=y.jDH({token:He,factory:function(Ke){let zt=null;return zt=Ke?new(Ke||He):y.KVO(he),zt},providedIn:"root"})}return He})(),he=(()=>{class He extends ce{constructor(ye){super(),this._doc=ye}sanitize(ye,Ke){if(null==Ke)return null;switch(ye){case y.WPN.NONE:return Ke;case y.WPN.HTML:return(0,y.ZF7)(Ke,"HTML")?(0,y.rcV)(Ke):(0,y.h9k)(this._doc,String(Ke)).toString();case y.WPN.STYLE:return(0,y.ZF7)(Ke,"Style")?(0,y.rcV)(Ke):Ke;case y.WPN.SCRIPT:if((0,y.ZF7)(Ke,"Script"))return(0,y.rcV)(Ke);throw new y.wOt(5200,!1);case y.WPN.URL:return(0,y.ZF7)(Ke,"URL")?(0,y.rcV)(Ke):(0,y.$MX)(String(Ke));case y.WPN.RESOURCE_URL:if((0,y.ZF7)(Ke,"ResourceURL"))return(0,y.rcV)(Ke);throw new y.wOt(5201,!1);default:throw new y.wOt(5202,!1)}}bypassSecurityTrustHtml(ye){return(0,y.Kcf)(ye)}bypassSecurityTrustStyle(ye){return(0,y.cWb)(ye)}bypassSecurityTrustScript(ye){return(0,y.UyX)(ye)}bypassSecurityTrustUrl(ye){return(0,y.osQ)(ye)}bypassSecurityTrustResourceUrl(ye){return(0,y.e5t)(ye)}static#e=this.\u0275fac=function(Ke){return new(Ke||He)(y.KVO(u.qQ))};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}return He})()},9192:(tn,Ne,v)=>{"use strict";v.d(Ne,{nX:()=>Hr,wF:()=>se,Kp:()=>Yn,Ix:()=>xt,Wk:()=>Rn,wQ:()=>pn,iI:()=>Do,n3:()=>zo,lh:()=>Si,oH:()=>Er,Sn:()=>Br});var u=v(4438),y=v(4402),o=v(6648),L=v(7673),G=v(4412),ee=v(4572),oe=v(9350),V=v(8793),P=v(9030),B=v(1203),F=v(8810),ue=v(983),ge=v(17),Ee=v(1413),Re=v(8359),ke=v(177),te=v(6354),be=v(5558),Ze=v(6697),gt=v(9172),je=v(5964),qe=v(1397),We=v(9974),ae=v(4360);function me(E){return(0,We.N)((O,D)=>{let R=!1;O.subscribe((0,ae._)(D,Y=>{R=!0,D.next(Y)},()=>{R||D.next(E),D.complete()}))})}function Le(E=nt){return(0,We.N)((O,D)=>{let R=!1;O.subscribe((0,ae._)(D,Y=>{R=!0,D.next(Y)},()=>R?D.complete():D.error(E())))})}function nt(){return new oe.G}var At=v(3669);function vt(E,O){const D=arguments.length>=2;return R=>R.pipe(E?(0,je.p)((Y,Se)=>E(Y,Se,R)):At.D,(0,Ze.s)(1),D?me(O):Le(()=>new oe.G))}var Dt=v(274),Zt=v(8141),Fn=v(9437);function pi(E){return E<=0?()=>ue.w:(0,We.N)((O,D)=>{let R=[];O.subscribe((0,ae._)(D,Y=>{R.push(Y),E{for(const Y of R)D.next(Y);D.complete()},void 0,()=>{R=null}))})}var Ae=v(3703),J=v(980),Ie=v(9898),Ot=v(6977),Pe=v(6365),ht=v(345);const Xe="primary",Je=Symbol("RouteTitle");class Me{constructor(O){this.params=O||{}}has(O){return Object.prototype.hasOwnProperty.call(this.params,O)}get(O){if(this.has(O)){const D=this.params[O];return Array.isArray(D)?D[0]:D}return null}getAll(O){if(this.has(O)){const D=this.params[O];return Array.isArray(D)?D:[D]}return[]}get keys(){return Object.keys(this.params)}}function ie(E){return new Me(E)}function ve(E,O,D){const R=D.path.split("/");if(R.length>E.length||"full"===D.pathMatch&&(O.hasChildren()||R.lengthR[Se]===Y)}return E===O}function it(E){return E.length>0?E[E.length-1]:null}function It(E){return(0,y.A)(E)?E:(0,u.jNT)(E)?(0,o.H)(Promise.resolve(E)):(0,L.of)(E)}const Ft={exact:function qt(E,O,D){if(!$(E.segments,O.segments)||!bt(E.segments,O.segments,D)||E.numberOfChildren!==O.numberOfChildren)return!1;for(const R in O.children)if(!E.children[R]||!qt(E.children[R],O.children[R],D))return!1;return!0},subset:tt},Rt={exact:function hi(E,O){return Ce(E,O)},subset:function we(E,O){return Object.keys(O).length<=Object.keys(E).length&&Object.keys(O).every(D=>un(E[D],O[D]))},ignored:()=>!0};function kn(E,O,D){return Ft[D.paths](E.root,O.root,D.matrixParams)&&Rt[D.queryParams](E.queryParams,O.queryParams)&&!("exact"===D.fragment&&E.fragment!==O.fragment)}function tt(E,O,D){return rt(E,O,O.segments,D)}function rt(E,O,D,R){if(E.segments.length>D.length){const Y=E.segments.slice(0,D.length);return!(!$(Y,D)||O.hasChildren()||!bt(Y,D,R))}if(E.segments.length===D.length){if(!$(E.segments,D)||!bt(E.segments,D,R))return!1;for(const Y in O.children)if(!E.children[Y]||!tt(E.children[Y],O.children[Y],R))return!1;return!0}{const Y=D.slice(0,E.segments.length),Se=D.slice(E.segments.length);return!!($(E.segments,Y)&&bt(E.segments,Y,R)&&E.children[Xe])&&rt(E.children[Xe],O,Se,R)}}function bt(E,O,D){return O.every((R,Y)=>Rt[D](E[Y].parameters,R.parameters))}class on{constructor(O=new Q([],{}),D={},R=null){this.root=O,this.queryParams=D,this.fragment=R}get queryParamMap(){return this._queryParamMap??=ie(this.queryParams),this._queryParamMap}toString(){return $t.serialize(this)}}class Q{constructor(O,D){this.segments=O,this.children=D,this.parent=null,Object.values(D).forEach(R=>R.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bt(this)}}class T{constructor(O,D){this.path=O,this.parameters=D}get parameterMap(){return this._parameterMap??=ie(this.parameters),this._parameterMap}toString(){return Be(this)}}function $(E,O){return E.length===O.length&&E.every((D,R)=>D.path===O[R].path)}let he=(()=>{class E{static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:()=>new et,providedIn:"root"})}return E})();class et{parse(O){const D=new st(O);return new on(D.parseRootSegment(),D.parseQueryParams(),D.parseFragment())}serialize(O){const D=`/${Vt(O.root,!0)}`,R=function Ke(E){const O=Object.entries(E).map(([D,R])=>Array.isArray(R)?R.map(Y=>`${Ln(D)}=${Ln(Y)}`).join("&"):`${Ln(D)}=${Ln(R)}`).filter(D=>D);return O.length?`?${O.join("&")}`:""}(O.queryParams);return`${D}${R}${"string"==typeof O.fragment?`#${function Ei(E){return encodeURI(E)}(O.fragment)}`:""}`}}const $t=new et;function Bt(E){return E.segments.map(O=>Be(O)).join("/")}function Vt(E,O){if(!E.hasChildren())return Bt(E);if(O){const D=E.children[Xe]?Vt(E.children[Xe],!1):"",R=[];return Object.entries(E.children).forEach(([Y,Se])=>{Y!==Xe&&R.push(`${Y}:${Vt(Se,!1)}`)}),R.length>0?`${D}(${R.join("//")})`:D}{const D=function ce(E,O){let D=[];return Object.entries(E.children).forEach(([R,Y])=>{R===Xe&&(D=D.concat(O(Y,R)))}),Object.entries(E.children).forEach(([R,Y])=>{R!==Xe&&(D=D.concat(O(Y,R)))}),D}(E,(R,Y)=>Y===Xe?[Vt(E.children[Xe],!1)]:[`${Y}:${Vt(R,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[Xe]?`${Bt(E)}/${D[0]}`:`${Bt(E)}/(${D.join("//")})`}}function Mn(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ln(E){return Mn(E).replace(/%3B/gi,";")}function Jt(E){return Mn(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function En(E){return decodeURIComponent(E)}function He(E){return En(E.replace(/\+/g,"%20"))}function Be(E){return`${Jt(E.path)}${function ye(E){return Object.entries(E).map(([O,D])=>`;${Jt(O)}=${Jt(D)}`).join("")}(E.parameters)}`}const zt=/^[^\/()?;#]+/;function Pn(E){const O=E.match(zt);return O?O[0]:""}const vi=/^[^\/()?;=#]+/,nn=/^[^=?&#]+/,at=/^[^&#]+/;class st{constructor(O){this.url=O,this.remaining=O}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Q([],{}):new Q([],this.parseChildren())}parseQueryParams(){const O={};if(this.consumeOptional("?"))do{this.parseQueryParam(O)}while(this.consumeOptional("&"));return O}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const O=[];for(this.peekStartsWith("(")||O.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),O.push(this.parseSegment());let D={};this.peekStartsWith("/(")&&(this.capture("/"),D=this.parseParens(!0));let R={};return this.peekStartsWith("(")&&(R=this.parseParens(!1)),(O.length>0||Object.keys(D).length>0)&&(R[Xe]=new Q(O,D)),R}parseSegment(){const O=Pn(this.remaining);if(""===O&&this.peekStartsWith(";"))throw new u.wOt(4009,!1);return this.capture(O),new T(En(O),this.parseMatrixParams())}parseMatrixParams(){const O={};for(;this.consumeOptional(";");)this.parseParam(O);return O}parseParam(O){const D=function Ti(E){const O=E.match(vi);return O?O[0]:""}(this.remaining);if(!D)return;this.capture(D);let R="";if(this.consumeOptional("=")){const Y=Pn(this.remaining);Y&&(R=Y,this.capture(R))}O[En(D)]=En(R)}parseQueryParam(O){const D=function Et(E){const O=E.match(nn);return O?O[0]:""}(this.remaining);if(!D)return;this.capture(D);let R="";if(this.consumeOptional("=")){const ut=function Lt(E){const O=E.match(at);return O?O[0]:""}(this.remaining);ut&&(R=ut,this.capture(R))}const Y=He(D),Se=He(R);if(O.hasOwnProperty(Y)){let ut=O[Y];Array.isArray(ut)||(ut=[ut],O[Y]=ut),ut.push(Se)}else O[Y]=Se}parseParens(O){const D={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const R=Pn(this.remaining),Y=this.remaining[R.length];if("/"!==Y&&")"!==Y&&";"!==Y)throw new u.wOt(4010,!1);let Se;R.indexOf(":")>-1?(Se=R.slice(0,R.indexOf(":")),this.capture(Se),this.capture(":")):O&&(Se=Xe);const ut=this.parseChildren();D[Se]=1===Object.keys(ut).length?ut[Xe]:new Q([],ut),this.consumeOptional("//")}return D}peekStartsWith(O){return this.remaining.startsWith(O)}consumeOptional(O){return!!this.peekStartsWith(O)&&(this.remaining=this.remaining.substring(O.length),!0)}capture(O){if(!this.consumeOptional(O))throw new u.wOt(4011,!1)}}function Qe(E){return E.segments.length>0?new Q([],{[Xe]:E}):E}function Oe(E){const O={};for(const[R,Y]of Object.entries(E.children)){const Se=Oe(Y);if(R===Xe&&0===Se.segments.length&&Se.hasChildren())for(const[ut,sn]of Object.entries(Se.children))O[ut]=sn;else(Se.segments.length>0||Se.hasChildren())&&(O[R]=Se)}return function ct(E){if(1===E.numberOfChildren&&E.children[Xe]){const O=E.children[Xe];return new Q(E.segments.concat(O.segments),O.children)}return E}(new Q(E.segments,O))}function Wt(E){return E instanceof on}function ai(E){let O;const Y=Qe(function D(Se){const ut={};for(const Kt of Se.children){const ti=D(Kt);ut[Kt.outlet]=ti}const sn=new Q(Se.url,ut);return Se===E&&(O=sn),sn}(E.root));return O??Y}function yr(E,O,D,R){let Y=E;for(;Y.parent;)Y=Y.parent;if(0===O.length)return Pr(Y,Y,Y,D,R);const Se=function Or(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new Yr(!0,0,E);let O=0,D=!1;const R=E.reduce((Y,Se,ut)=>{if("object"==typeof Se&&null!=Se){if(Se.outlets){const sn={};return Object.entries(Se.outlets).forEach(([Kt,ti])=>{sn[Kt]="string"==typeof ti?ti.split("/"):ti}),[...Y,{outlets:sn}]}if(Se.segmentPath)return[...Y,Se.segmentPath]}return"string"!=typeof Se?[...Y,Se]:0===ut?(Se.split("/").forEach((sn,Kt)=>{0==Kt&&"."===sn||(0==Kt&&""===sn?D=!0:".."===sn?O++:""!=sn&&Y.push(sn))}),Y):[...Y,Se]},[]);return new Yr(D,O,R)}(O);if(Se.toRoot())return Pr(Y,Y,new Q([],{}),D,R);const ut=function St(E,O,D){if(E.isAbsolute)return new ft(O,!0,0);if(!D)return new ft(O,!1,NaN);if(null===D.parent)return new ft(D,!0,0);const R=xr(E.commands[0])?0:1;return function ln(E,O,D){let R=E,Y=O,Se=D;for(;Se>Y;){if(Se-=Y,R=R.parent,!R)throw new u.wOt(4005,!1);Y=R.segments.length}return new ft(R,!1,Y-Se)}(D,D.segments.length-1+R,E.numberOfDoubleDots)}(Se,Y,E),sn=ut.processChildren?Xn(ut.segmentGroup,ut.index,Se.commands):An(ut.segmentGroup,ut.index,Se.commands);return Pr(Y,ut.segmentGroup,sn,D,R)}function xr(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function Ri(E){return"object"==typeof E&&null!=E&&E.outlets}function Pr(E,O,D,R,Y){let ut,Se={};R&&Object.entries(R).forEach(([Kt,ti])=>{Se[Kt]=Array.isArray(ti)?ti.map(ji=>`${ji}`):`${ti}`}),ut=E===O?D:wi(E,O,D);const sn=Qe(Oe(ut));return new on(sn,Se,Y)}function wi(E,O,D){const R={};return Object.entries(E.children).forEach(([Y,Se])=>{R[Y]=Se===O?D:wi(Se,O,D)}),new Q(E.segments,R)}class Yr{constructor(O,D,R){if(this.isAbsolute=O,this.numberOfDoubleDots=D,this.commands=R,O&&R.length>0&&xr(R[0]))throw new u.wOt(4003,!1);const Y=R.find(Ri);if(Y&&Y!==it(R))throw new u.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ft{constructor(O,D,R){this.segmentGroup=O,this.processChildren=D,this.index=R}}function An(E,O,D){if(E??=new Q([],{}),0===E.segments.length&&E.hasChildren())return Xn(E,O,D);const R=function zn(E,O,D){let R=0,Y=O;const Se={match:!1,pathIndex:0,commandIndex:0};for(;Y=D.length)return Se;const ut=E.segments[Y],sn=D[R];if(Ri(sn))break;const Kt=`${sn}`,ti=R0&&void 0===Kt)break;if(Kt&&ti&&"object"==typeof ti&&void 0===ti.outlets){if(!xe(Kt,ti,ut))return Se;R+=2}else{if(!xe(Kt,{},ut))return Se;R++}Y++}return{match:!0,pathIndex:Y,commandIndex:R}}(E,O,D),Y=D.slice(R.commandIndex);if(R.match&&R.pathIndexSe!==Xe)&&E.children[Xe]&&1===E.numberOfChildren&&0===E.children[Xe].segments.length){const Se=Xn(E.children[Xe],O,D);return new Q(E.segments,Se.children)}return Object.entries(R).forEach(([Se,ut])=>{"string"==typeof ut&&(ut=[ut]),null!==ut&&(Y[Se]=An(E.children[Se],O,ut))}),Object.entries(E.children).forEach(([Se,ut])=>{void 0===R[Se]&&(Y[Se]=ut)}),new Q(E.segments,Y)}}function ri(E,O,D){const R=E.segments.slice(0,O);let Y=0;for(;Y{"string"==typeof R&&(R=[R]),null!==R&&(O[D]=ri(new Q([],{}),0,R))}),O}function Bn(E){const O={};return Object.entries(E).forEach(([D,R])=>O[D]=`${R}`),O}function xe(E,O,D){return E==D.path&&Ce(O,D.parameters)}const Ye="imperative";var Ge=function(E){return E[E.NavigationStart=0]="NavigationStart",E[E.NavigationEnd=1]="NavigationEnd",E[E.NavigationCancel=2]="NavigationCancel",E[E.NavigationError=3]="NavigationError",E[E.RoutesRecognized=4]="RoutesRecognized",E[E.ResolveStart=5]="ResolveStart",E[E.ResolveEnd=6]="ResolveEnd",E[E.GuardsCheckStart=7]="GuardsCheckStart",E[E.GuardsCheckEnd=8]="GuardsCheckEnd",E[E.RouteConfigLoadStart=9]="RouteConfigLoadStart",E[E.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",E[E.ChildActivationStart=11]="ChildActivationStart",E[E.ChildActivationEnd=12]="ChildActivationEnd",E[E.ActivationStart=13]="ActivationStart",E[E.ActivationEnd=14]="ActivationEnd",E[E.Scroll=15]="Scroll",E[E.NavigationSkipped=16]="NavigationSkipped",E}(Ge||{});class W{constructor(O,D){this.id=O,this.url=D}}class Te extends W{constructor(O,D,R="imperative",Y=null){super(O,D),this.type=Ge.NavigationStart,this.navigationTrigger=R,this.restoredState=Y}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class se extends W{constructor(O,D,R){super(O,D),this.urlAfterRedirects=R,this.type=Ge.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var $e=function(E){return E[E.Redirect=0]="Redirect",E[E.SupersededByNewNavigation=1]="SupersededByNewNavigation",E[E.NoDataFromResolver=2]="NoDataFromResolver",E[E.GuardRejected=3]="GuardRejected",E}($e||{}),pt=function(E){return E[E.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",E[E.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",E}(pt||{});class lt extends W{constructor(O,D,R,Y){super(O,D),this.reason=R,this.code=Y,this.type=Ge.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class jt extends W{constructor(O,D,R,Y){super(O,D),this.reason=R,this.code=Y,this.type=Ge.NavigationSkipped}}class hn extends W{constructor(O,D,R,Y){super(O,D),this.error=R,this.target=Y,this.type=Ge.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class fn extends W{constructor(O,D,R,Y){super(O,D),this.urlAfterRedirects=R,this.state=Y,this.type=Ge.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wn extends W{constructor(O,D,R,Y){super(O,D),this.urlAfterRedirects=R,this.state=Y,this.type=Ge.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dn extends W{constructor(O,D,R,Y,Se){super(O,D),this.urlAfterRedirects=R,this.state=Y,this.shouldActivate=Se,this.type=Ge.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class jn extends W{constructor(O,D,R,Y){super(O,D),this.urlAfterRedirects=R,this.state=Y,this.type=Ge.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $n extends W{constructor(O,D,R,Y){super(O,D),this.urlAfterRedirects=R,this.state=Y,this.type=Ge.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ci{constructor(O){this.route=O,this.type=Ge.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ki{constructor(O){this.route=O,this.type=Ge.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ei{constructor(O){this.snapshot=O,this.type=Ge.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gn{constructor(O){this.snapshot=O,this.type=Ge.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rr{constructor(O){this.snapshot=O,this.type=Ge.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class uo{constructor(O){this.snapshot=O,this.type=Ge.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fr{constructor(O,D,R){this.routerEvent=O,this.position=D,this.anchor=R,this.type=Ge.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ci{}class Lr{constructor(O,D){this.url=O,this.navigationBehaviorOptions=D}}function Sr(E){return E.outlet||Xe}function hr(E){if(!E)return null;if(E.routeConfig?._injector)return E.routeConfig._injector;for(let O=E.parent;O;O=O.parent){const D=O.routeConfig;if(D?._loadedInjector)return D._loadedInjector;if(D?._injector)return D._injector}return null}class is{get injector(){return hr(this.route?.snapshot)??this.rootInjector}set injector(O){}constructor(O){this.rootInjector=O,this.outlet=null,this.route=null,this.children=new no(this.rootInjector),this.attachRef=null}}let no=(()=>{class E{constructor(D){this.rootInjector=D,this.contexts=new Map}onChildOutletCreated(D,R){const Y=this.getOrCreateContext(D);Y.outlet=R,this.contexts.set(D,Y)}onChildOutletDestroyed(D){const R=this.getContext(D);R&&(R.outlet=null,R.attachRef=null)}onOutletDeactivated(){const D=this.contexts;return this.contexts=new Map,D}onOutletReAttached(D){this.contexts=D}getOrCreateContext(D){let R=this.getContext(D);return R||(R=new is(this.rootInjector),this.contexts.set(D,R)),R}getContext(D){return this.contexts.get(D)||null}static#e=this.\u0275fac=function(R){return new(R||E)(u.KVO(u.uvJ))};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();class Ii{constructor(O){this._root=O}get root(){return this._root.value}parent(O){const D=this.pathFromRoot(O);return D.length>1?D[D.length-2]:null}children(O){const D=rs(O,this._root);return D?D.children.map(R=>R.value):[]}firstChild(O){const D=rs(O,this._root);return D&&D.children.length>0?D.children[0].value:null}siblings(O){const D=Ar(O,this._root);return D.length<2?[]:D[D.length-2].children.map(Y=>Y.value).filter(Y=>Y!==O)}pathFromRoot(O){return Ar(O,this._root).map(D=>D.value)}}function rs(E,O){if(E===O.value)return O;for(const D of O.children){const R=rs(E,D);if(R)return R}return null}function Ar(E,O){if(E===O.value)return[O];for(const D of O.children){const R=Ar(E,D);if(R.length)return R.unshift(O),R}return[]}class Tr{constructor(O,D){this.value=O,this.children=D}toString(){return`TreeNode(${this.value})`}}function Ir(E){const O={};return E&&E.children.forEach(D=>O[D.value.outlet]=D),O}class Vs extends Ii{constructor(O,D){super(O),this.snapshot=D,gs(this,O)}toString(){return this.snapshot.toString()}}function Di(E){const O=function js(E){const Se=new Uo([],{},{},"",{},Xe,E,null,{});return new va("",new Tr(Se,[]))}(E),D=new G.t([new T("",{})]),R=new G.t({}),Y=new G.t({}),Se=new G.t({}),ut=new G.t(""),sn=new Hr(D,R,Se,ut,Y,Xe,E,O.root);return sn.snapshot=O.root,new Vs(new Tr(sn,[]),O)}class Hr{constructor(O,D,R,Y,Se,ut,sn,Kt){this.urlSubject=O,this.paramsSubject=D,this.queryParamsSubject=R,this.fragmentSubject=Y,this.dataSubject=Se,this.outlet=ut,this.component=sn,this._futureSnapshot=Kt,this.title=this.dataSubject?.pipe((0,te.T)(ti=>ti[Je]))??(0,L.of)(void 0),this.url=O,this.params=D,this.queryParams=R,this.fragment=Y,this.data=Se}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,te.T)(O=>ie(O))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,te.T)(O=>ie(O))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Bo(E,O,D="emptyOnly"){let R;const{routeConfig:Y}=E;return R=null===O||"always"!==D&&""!==Y?.path&&(O.component||O.routeConfig?.loadComponent)?{params:{...E.params},data:{...E.data},resolve:{...E.data,...E._resolvedData??{}}}:{params:{...O.params,...E.params},data:{...O.data,...E.data},resolve:{...E.data,...O.data,...Y?.data,...E._resolvedData}},Y&&gr(Y)&&(R.resolve[Je]=Y.title),R}class Uo{get title(){return this.data?.[Je]}constructor(O,D,R,Y,Se,ut,sn,Kt,ti){this.url=O,this.params=D,this.queryParams=R,this.fragment=Y,this.data=Se,this.outlet=ut,this.component=sn,this.routeConfig=Kt,this._resolve=ti}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??=ie(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ie(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(R=>R.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class va extends Ii{constructor(O,D){super(D),this.url=O,gs(this,D)}toString(){return Hs(this._root)}}function gs(E,O){O.value._routerState=E,O.children.forEach(D=>gs(E,D))}function Hs(E){const O=E.children.length>0?` { ${E.children.map(Hs).join(", ")} } `:"";return`${E.value}${O}`}function Qr(E){if(E.snapshot){const O=E.snapshot,D=E._futureSnapshot;E.snapshot=D,Ce(O.queryParams,D.queryParams)||E.queryParamsSubject.next(D.queryParams),O.fragment!==D.fragment&&E.fragmentSubject.next(D.fragment),Ce(O.params,D.params)||E.paramsSubject.next(D.params),function le(E,O){if(E.length!==O.length)return!1;for(let D=0;DCe(D.parameters,O[R].parameters))}(E.url,O.url);return D&&!(!E.parent!=!O.parent)&&(!E.parent||Li(E.parent,O.parent))}function gr(E){return"string"==typeof E.title||null===E.title}let zo=(()=>{class E{constructor(){this.activated=null,this._activatedRoute=null,this.name=Xe,this.activateEvents=new u.bkB,this.deactivateEvents=new u.bkB,this.attachEvents=new u.bkB,this.detachEvents=new u.bkB,this.parentContexts=(0,u.WQX)(no),this.location=(0,u.WQX)(u.c1b),this.changeDetector=(0,u.WQX)(u.gRc),this.inputBinder=(0,u.WQX)(oa,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(D){if(D.name){const{firstChange:R,previousValue:Y}=D.name;if(R)return;this.isTrackedInParentContexts(Y)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Y)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(D){return this.parentContexts.getContext(D)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const D=this.parentContexts.getContext(this.name);D?.route&&(D.attachRef?this.attach(D.attachRef,D.route):this.activateWith(D.route,D.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new u.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new u.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new u.wOt(4012,!1);this.location.detach();const D=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(D.instance),D}attach(D,R){this.activated=D,this._activatedRoute=R,this.location.insert(D.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(D.instance)}deactivate(){if(this.activated){const D=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(D)}}activateWith(D,R){if(this.isActivated)throw new u.wOt(4013,!1);this._activatedRoute=D;const Y=this.location,ut=D.snapshot.component,sn=this.parentContexts.getOrCreateContext(this.name).children,Kt=new so(D,sn,Y.injector);this.activated=Y.createComponent(ut,{index:Y.length,injector:Kt,environmentInjector:R}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275dir=u.FsC({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[u.OA$]})}return E})();class so{__ngOutletInjector(O){return new so(this.route,this.childContexts,O)}constructor(O,D,R){this.route=O,this.childContexts=D,this.parent=R}get(O,D){return O===Hr?this.route:O===no?this.childContexts:this.parent.get(O,D)}}const oa=new u.nKC("");let lr=(()=>{class E{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(D){this.unsubscribeFromRouteData(D),this.subscribeToRouteData(D)}unsubscribeFromRouteData(D){this.outletDataSubscriptions.get(D)?.unsubscribe(),this.outletDataSubscriptions.delete(D)}subscribeToRouteData(D){const{activatedRoute:R}=D,Y=(0,ee.z)([R.queryParams,R.params,R.data]).pipe((0,be.n)(([Se,ut,sn],Kt)=>(sn={...Se,...ut,...sn},0===Kt?(0,L.of)(sn):Promise.resolve(sn)))).subscribe(Se=>{if(!D.isActivated||!D.activatedComponentRef||D.activatedRoute!==R||null===R.component)return void this.unsubscribeFromRouteData(D);const ut=(0,u.HJs)(R.component);if(ut)for(const{templateName:sn}of ut.inputs)D.activatedComponentRef.setInput(sn,Se[sn]);else this.unsubscribeFromRouteData(D)});this.outletDataSubscriptions.set(D,Y)}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac})}return E})();function Eo(E,O,D){if(D&&E.shouldReuseRoute(O.value,D.value.snapshot)){const R=D.value;R._futureSnapshot=O.value;const Y=function $s(E,O,D){return O.children.map(R=>{for(const Y of D.children)if(E.shouldReuseRoute(R.value,Y.value.snapshot))return Eo(E,R,Y);return Eo(E,R)})}(E,O,D);return new Tr(R,Y)}{if(E.shouldAttach(O.value)){const Se=E.retrieve(O.value);if(null!==Se){const ut=Se.route;return ut.value._futureSnapshot=O.value,ut.children=O.children.map(sn=>Eo(E,sn)),ut}}const R=function Mi(E){return new Hr(new G.t(E.url),new G.t(E.params),new G.t(E.queryParams),new G.t(E.fragment),new G.t(E.data),E.outlet,E.component,E)}(O.value),Y=O.children.map(Se=>Eo(E,Se));return new Tr(R,Y)}}class os{constructor(O,D){this.redirectTo=O,this.navigationBehaviorOptions=D}}const Zr="ngNavigationCancelingError";function Wo(E,O){const{redirectTo:D,navigationBehaviorOptions:R}=Wt(O)?{redirectTo:O,navigationBehaviorOptions:void 0}:O,Y=ul(!1,$e.Redirect);return Y.url=D,Y.navigationBehaviorOptions=R,Y}function ul(E,O){const D=new Error(`NavigationCancelingError: ${E||""}`);return D[Zr]=!0,D.cancellationCode=O,D}function zs(E){return!!E&&E[Zr]}class Cs{constructor(O,D,R,Y,Se){this.routeReuseStrategy=O,this.futureState=D,this.currState=R,this.forwardEvent=Y,this.inputBindingEnabled=Se}activate(O){const D=this.futureState._root,R=this.currState?this.currState._root:null;this.deactivateChildRoutes(D,R,O),Qr(this.futureState.root),this.activateChildRoutes(D,R,O)}deactivateChildRoutes(O,D,R){const Y=Ir(D);O.children.forEach(Se=>{const ut=Se.value.outlet;this.deactivateRoutes(Se,Y[ut],R),delete Y[ut]}),Object.values(Y).forEach(Se=>{this.deactivateRouteAndItsChildren(Se,R)})}deactivateRoutes(O,D,R){const Y=O.value,Se=D?D.value:null;if(Y===Se)if(Y.component){const ut=R.getContext(Y.outlet);ut&&this.deactivateChildRoutes(O,D,ut.children)}else this.deactivateChildRoutes(O,D,R);else Se&&this.deactivateRouteAndItsChildren(D,R)}deactivateRouteAndItsChildren(O,D){O.value.component&&this.routeReuseStrategy.shouldDetach(O.value.snapshot)?this.detachAndStoreRouteSubtree(O,D):this.deactivateRouteAndOutlet(O,D)}detachAndStoreRouteSubtree(O,D){const R=D.getContext(O.value.outlet),Y=R&&O.value.component?R.children:D,Se=Ir(O);for(const ut of Object.values(Se))this.deactivateRouteAndItsChildren(ut,Y);if(R&&R.outlet){const ut=R.outlet.detach(),sn=R.children.onOutletDeactivated();this.routeReuseStrategy.store(O.value.snapshot,{componentRef:ut,route:O,contexts:sn})}}deactivateRouteAndOutlet(O,D){const R=D.getContext(O.value.outlet),Y=R&&O.value.component?R.children:D,Se=Ir(O);for(const ut of Object.values(Se))this.deactivateRouteAndItsChildren(ut,Y);R&&(R.outlet&&(R.outlet.deactivate(),R.children.onOutletDeactivated()),R.attachRef=null,R.route=null)}activateChildRoutes(O,D,R){const Y=Ir(D);O.children.forEach(Se=>{this.activateRoutes(Se,Y[Se.value.outlet],R),this.forwardEvent(new uo(Se.value.snapshot))}),O.children.length&&this.forwardEvent(new Gn(O.value.snapshot))}activateRoutes(O,D,R){const Y=O.value,Se=D?D.value:null;if(Qr(Y),Y===Se)if(Y.component){const ut=R.getOrCreateContext(Y.outlet);this.activateChildRoutes(O,D,ut.children)}else this.activateChildRoutes(O,D,R);else if(Y.component){const ut=R.getOrCreateContext(Y.outlet);if(this.routeReuseStrategy.shouldAttach(Y.snapshot)){const sn=this.routeReuseStrategy.retrieve(Y.snapshot);this.routeReuseStrategy.store(Y.snapshot,null),ut.children.onOutletReAttached(sn.contexts),ut.attachRef=sn.componentRef,ut.route=sn.route.value,ut.outlet&&ut.outlet.attach(sn.componentRef,sn.route.value),Qr(sn.route.value),this.activateChildRoutes(O,null,ut.children)}else ut.attachRef=null,ut.route=Y,ut.outlet&&ut.outlet.activateWith(Y,ut.injector),this.activateChildRoutes(O,null,ut.children)}else this.activateChildRoutes(O,null,R)}}class Go{constructor(O){this.path=O,this.route=this.path[this.path.length-1]}}class or{constructor(O,D){this.component=O,this.route=D}}function ss(E,O,D){const R=E._root;return jo(R,O?O._root:null,D,[R.value])}function Vo(E,O){const D=Symbol(),R=O.get(E,D);return R===D?"function"!=typeof E||(0,u.LfX)(E)?O.get(E):E:R}function jo(E,O,D,R,Y={canDeactivateChecks:[],canActivateChecks:[]}){const Se=Ir(O);return E.children.forEach(ut=>{(function Ws(E,O,D,R,Y={canDeactivateChecks:[],canActivateChecks:[]}){const Se=E.value,ut=O?O.value:null,sn=D?D.getContext(E.value.outlet):null;if(ut&&Se.routeConfig===ut.routeConfig){const Kt=function Ko(E,O,D){if("function"==typeof D)return D(E,O);switch(D){case"pathParamsChange":return!$(E.url,O.url);case"pathParamsOrQueryParamsChange":return!$(E.url,O.url)||!Ce(E.queryParams,O.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Li(E,O)||!Ce(E.queryParams,O.queryParams);default:return!Li(E,O)}}(ut,Se,Se.routeConfig.runGuardsAndResolvers);Kt?Y.canActivateChecks.push(new Go(R)):(Se.data=ut.data,Se._resolvedData=ut._resolvedData),jo(E,O,Se.component?sn?sn.children:null:D,R,Y),Kt&&sn&&sn.outlet&&sn.outlet.isActivated&&Y.canDeactivateChecks.push(new or(sn.outlet.component,ut))}else ut&&Mo(O,sn,Y),Y.canActivateChecks.push(new Go(R)),jo(E,null,Se.component?sn?sn.children:null:D,R,Y)})(ut,Se[ut.value.outlet],D,R.concat([ut.value]),Y),delete Se[ut.value.outlet]}),Object.entries(Se).forEach(([ut,sn])=>Mo(sn,D.getContext(ut),Y)),Y}function Mo(E,O,D){const R=Ir(E),Y=E.value;Object.entries(R).forEach(([Se,ut])=>{Mo(ut,Y.component?O?O.children.getContext(Se):null:O,D)}),D.canDeactivateChecks.push(new or(Y.component&&O&&O.outlet&&O.outlet.isActivated?O.outlet.component:null,Y))}function as(E){return"function"==typeof E}function Xo(E){return E instanceof oe.G||"EmptyError"===E?.name}const fr=Symbol("INITIAL_VALUE");function Ro(){return(0,be.n)(E=>(0,ee.z)(E.map(O=>O.pipe((0,Ze.s)(1),(0,gt.Z)(fr)))).pipe((0,te.T)(O=>{for(const D of O)if(!0!==D){if(D===fr)return fr;if(!1===D||z(D))return D}return!0}),(0,je.p)(O=>O!==fr),(0,Ze.s)(1)))}function z(E){return Wt(E)||E instanceof os}function Vl(E){return(0,B.F)((0,Zt.M)(O=>{if("boolean"!=typeof O)throw Wo(0,O)}),(0,te.T)(O=>!0===O))}class Ss{constructor(O){this.segmentGroup=O||null}}class Oa extends Error{constructor(O){super(),this.urlTree=O}}function aa(E){return(0,F.$)(new Ss(E))}class ka{constructor(O,D){this.urlSerializer=O,this.urlTree=D}lineralizeSegments(O,D){let R=[],Y=D.root;for(;;){if(R=R.concat(Y.segments),0===Y.numberOfChildren)return(0,L.of)(R);if(Y.numberOfChildren>1||!Y.children[Xe])return(0,F.$)(new u.wOt(4e3,!1));Y=Y.children[Xe]}}applyRedirectCommands(O,D,R,Y,Se){if("string"!=typeof D){const sn=D,{queryParams:Kt,fragment:ti,routeConfig:ji,url:Qi,outlet:io,params:ya,data:qo,title:La}=Y,Ms=(0,u.N4e)(Se,()=>sn({params:ya,data:qo,queryParams:Kt,fragment:ti,routeConfig:ji,url:Qi,outlet:io,title:La}));if(Ms instanceof on)throw new Oa(Ms);D=Ms}const ut=this.applyRedirectCreateUrlTree(D,this.urlSerializer.parse(D),O,R);if("/"===D[0])throw new Oa(ut);return ut}applyRedirectCreateUrlTree(O,D,R,Y){const Se=this.createSegmentGroup(O,D.root,R,Y);return new on(Se,this.createQueryParams(D.queryParams,this.urlTree.queryParams),D.fragment)}createQueryParams(O,D){const R={};return Object.entries(O).forEach(([Y,Se])=>{if("string"==typeof Se&&":"===Se[0]){const sn=Se.substring(1);R[Y]=D[sn]}else R[Y]=Se}),R}createSegmentGroup(O,D,R,Y){const Se=this.createSegments(O,D.segments,R,Y);let ut={};return Object.entries(D.children).forEach(([sn,Kt])=>{ut[sn]=this.createSegmentGroup(O,Kt,R,Y)}),new Q(Se,ut)}createSegments(O,D,R,Y){return D.map(Se=>":"===Se.path[0]?this.findPosParam(O,Se,Y):this.findOrReturn(Se,R))}findPosParam(O,D,R){const Y=R[D.path.substring(1)];if(!Y)throw new u.wOt(4001,!1);return Y}findOrReturn(O,D){let R=0;for(const Y of D){if(Y.path===O.path)return D.splice(R),Y;R++}return O}}const Wi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Jr(E,O,D,R,Y){const Se=qr(E,O,D);return Se.matched?(R=function zi(E,O){return E.providers&&!E._injector&&(E._injector=(0,u.Ol2)(E.providers,O,`Route: ${E.path}`)),E._injector??O}(O,R),function Ma(E,O,D,R){const Y=O.canMatch;if(!Y||0===Y.length)return(0,L.of)(!0);const Se=Y.map(ut=>{const sn=Vo(ut,E);return It(function xs(E){return E&&as(E.canMatch)}(sn)?sn.canMatch(O,D):(0,u.N4e)(E,()=>sn(O,D)))});return(0,L.of)(Se).pipe(Ro(),Vl())}(R,O,D).pipe((0,te.T)(ut=>!0===ut?Se:{...Wi}))):(0,L.of)(Se)}function qr(E,O,D){if("**"===O.path)return function Yo(E){return{matched:!0,parameters:E.length>0?it(E).parameters:{},consumedSegments:E,remainingSegments:[],positionalParamSegments:{}}}(D);if(""===O.path)return"full"===O.pathMatch&&(E.hasChildren()||D.length>0)?{...Wi}:{matched:!0,consumedSegments:[],remainingSegments:D,parameters:{},positionalParamSegments:{}};const Y=(O.matcher||ve)(D,E,O);if(!Y)return{...Wi};const Se={};Object.entries(Y.posParams??{}).forEach(([sn,Kt])=>{Se[sn]=Kt.path});const ut=Y.consumed.length>0?{...Se,...Y.consumed[Y.consumed.length-1].parameters}:Se;return{matched:!0,consumedSegments:Y.consumed,remainingSegments:D.slice(Y.consumed.length),parameters:ut,positionalParamSegments:Y.posParams??{}}}function fo(E,O,D,R){return D.length>0&&function la(E,O,D){return D.some(R=>Gs(E,O,R)&&Sr(R)!==Xe)}(E,D,R)?{segmentGroup:new Q(O,As(R,new Q(D,E.children))),slicedSegments:[]}:0===D.length&&function Wa(E,O,D){return D.some(R=>Gs(E,O,R))}(E,D,R)?{segmentGroup:new Q(E.segments,Na(E,D,R,E.children)),slicedSegments:D}:{segmentGroup:new Q(E.segments,E.children),slicedSegments:D}}function Na(E,O,D,R){const Y={};for(const Se of D)if(Gs(E,O,Se)&&!R[Sr(Se)]){const ut=new Q([],{});Y[Sr(Se)]=ut}return{...R,...Y}}function As(E,O){const D={};D[Xe]=O;for(const R of E)if(""===R.path&&Sr(R)!==Xe){const Y=new Q([],{});D[Sr(R)]=Y}return D}function Gs(E,O,D){return(!(E.hasChildren()||O.length>0)||"full"!==D.pathMatch)&&""===D.path}class Qo{}class Ho{constructor(O,D,R,Y,Se,ut,sn){this.injector=O,this.configLoader=D,this.rootComponentType=R,this.config=Y,this.urlTree=Se,this.paramsInheritanceStrategy=ut,this.urlSerializer=sn,this.applyRedirects=new ka(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(O){return new u.wOt(4002,`'${O.segmentGroup}'`)}recognize(){const O=fo(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(O).pipe((0,te.T)(({children:D,rootSnapshot:R})=>{const Y=new Tr(R,D),Se=new va("",Y),ut=function rn(E,O,D=null,R=null){return yr(ai(E),O,D,R)}(R,[],this.urlTree.queryParams,this.urlTree.fragment);return ut.queryParams=this.urlTree.queryParams,Se.url=this.urlSerializer.serialize(ut),{state:Se,tree:ut}}))}match(O){const D=new Uo([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),Xe,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,O,Xe,D).pipe((0,te.T)(R=>({children:R,rootSnapshot:D})),(0,Fn.W)(R=>{if(R instanceof Oa)return this.urlTree=R.urlTree,this.match(R.urlTree.root);throw R instanceof Ss?this.noMatchError(R):R}))}processSegmentGroup(O,D,R,Y,Se){return 0===R.segments.length&&R.hasChildren()?this.processChildren(O,D,R,Se):this.processSegment(O,D,R,R.segments,Y,!0,Se).pipe((0,te.T)(ut=>ut instanceof Tr?[ut]:[]))}processChildren(O,D,R,Y){const Se=[];for(const ut of Object.keys(R.children))"primary"===ut?Se.unshift(ut):Se.push(ut);return(0,o.H)(Se).pipe((0,Dt.H)(ut=>{const sn=R.children[ut],Kt=function Us(E,O){const D=E.filter(R=>Sr(R)===O);return D.push(...E.filter(R=>Sr(R)!==O)),D}(D,ut);return this.processSegmentGroup(O,Kt,sn,ut,Y)}),function _n(E,O){return(0,We.N)(function Vn(E,O,D,R,Y){return(Se,ut)=>{let sn=D,Kt=O,ti=0;Se.subscribe((0,ae._)(ut,ji=>{const Qi=ti++;Kt=sn?E(Kt,ji,Qi):(sn=!0,ji),R&&ut.next(Kt)},Y&&(()=>{sn&&ut.next(Kt),ut.complete()})))}}(E,O,arguments.length>=2,!0))}((ut,sn)=>(ut.push(...sn),ut)),me(null),function _e(E,O){const D=arguments.length>=2;return R=>R.pipe(E?(0,je.p)((Y,Se)=>E(Y,Se,R)):At.D,pi(1),D?me(O):Le(()=>new oe.G))}(),(0,qe.Z)(ut=>{if(null===ut)return aa(R);const sn=Xs(ut);return function No(E){E.sort((O,D)=>O.value.outlet===Xe?-1:D.value.outlet===Xe?1:O.value.outlet.localeCompare(D.value.outlet))}(sn),(0,L.of)(sn)}))}processSegment(O,D,R,Y,Se,ut,sn){return(0,o.H)(D).pipe((0,Dt.H)(Kt=>this.processSegmentAgainstRoute(Kt._injector??O,D,Kt,R,Y,Se,ut,sn).pipe((0,Fn.W)(ti=>{if(ti instanceof Ss)return(0,L.of)(null);throw ti}))),vt(Kt=>!!Kt),(0,Fn.W)(Kt=>{if(Xo(Kt))return function ao(E,O,D){return 0===O.length&&!E.children[D]}(R,Y,Se)?(0,L.of)(new Qo):aa(R);throw Kt}))}processSegmentAgainstRoute(O,D,R,Y,Se,ut,sn,Kt){return Sr(R)===ut||ut!==Xe&&Gs(Y,Se,R)?void 0===R.redirectTo?this.matchSegmentAgainstRoute(O,Y,R,Se,ut,Kt):this.allowRedirects&&sn?this.expandSegmentAgainstRouteUsingRedirect(O,Y,D,R,Se,ut,Kt):aa(Y):aa(Y)}expandSegmentAgainstRouteUsingRedirect(O,D,R,Y,Se,ut,sn){const{matched:Kt,parameters:ti,consumedSegments:ji,positionalParamSegments:Qi,remainingSegments:io}=qr(D,Y,Se);if(!Kt)return aa(D);"string"==typeof Y.redirectTo&&"/"===Y.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const ya=new Uo(Se,ti,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zo(Y),Sr(Y),Y.component??Y._loadedComponent??null,Y,Fa(Y)),qo=Bo(ya,sn,this.paramsInheritanceStrategy);ya.params=Object.freeze(qo.params),ya.data=Object.freeze(qo.data);const La=this.applyRedirects.applyRedirectCommands(ji,Y.redirectTo,Qi,ya,O);return this.applyRedirects.lineralizeSegments(Y,La).pipe((0,qe.Z)(Ms=>this.processSegment(O,R,D,Ms.concat(io),ut,!1,sn)))}matchSegmentAgainstRoute(O,D,R,Y,Se,ut){const sn=Jr(D,R,Y,O);return"**"===R.path&&(D.children={}),sn.pipe((0,be.n)(Kt=>Kt.matched?this.getChildConfig(O=R._injector??O,R,Y).pipe((0,be.n)(({routes:ti})=>{const ji=R._loadedInjector??O,{parameters:Qi,consumedSegments:io,remainingSegments:ya}=Kt,qo=new Uo(io,Qi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zo(R),Sr(R),R.component??R._loadedComponent??null,R,Fa(R)),La=Bo(qo,ut,this.paramsInheritanceStrategy);qo.params=Object.freeze(La.params),qo.data=Object.freeze(La.data);const{segmentGroup:Ms,slicedSegments:Dl}=fo(D,io,ya,ti);if(0===Dl.length&&Ms.hasChildren())return this.processChildren(ji,ti,Ms,qo).pipe((0,te.T)(lc=>new Tr(qo,lc)));if(0===ti.length&&0===Dl.length)return(0,L.of)(new Tr(qo,[]));const vd=Sr(R)===Se;return this.processSegment(ji,ti,Ms,Dl,vd?Xe:Se,!0,qo).pipe((0,te.T)(lc=>new Tr(qo,lc instanceof Tr?[lc]:[])))})):aa(D)))}getChildConfig(O,D,R){return D.children?(0,L.of)({routes:D.children,injector:O}):D.loadChildren?void 0!==D._loadedRoutes?(0,L.of)({routes:D._loadedRoutes,injector:D._loadedInjector}):function ls(E,O,D,R){const Y=O.canLoad;if(void 0===Y||0===Y.length)return(0,L.of)(!0);const Se=Y.map(ut=>{const sn=Vo(ut,E);return It(function sa(E){return E&&as(E.canLoad)}(sn)?sn.canLoad(O,D):(0,u.N4e)(E,()=>sn(O,D)))});return(0,L.of)(Se).pipe(Ro(),Vl())}(O,D,R).pipe((0,qe.Z)(Y=>Y?this.configLoader.loadChildren(O,D).pipe((0,Zt.M)(Se=>{D._loadedRoutes=Se.routes,D._loadedInjector=Se.injector})):function Cl(){return(0,F.$)(ul(!1,$e.GuardRejected))}())):(0,L.of)({routes:[],injector:O})}}function _a(E){const O=E.value.routeConfig;return O&&""===O.path}function Xs(E){const O=[],D=new Set;for(const R of E){if(!_a(R)){O.push(R);continue}const Y=O.find(Se=>R.value.routeConfig===Se.value.routeConfig);void 0!==Y?(Y.children.push(...R.children),D.add(Y)):O.push(R)}for(const R of D){const Y=Xs(R.children);O.push(new Tr(R.value,Y))}return O.filter(R=>!D.has(R))}function Zo(E){return E.data||{}}function Fa(E){return E.resolve||{}}function So(E){const O=E.children.map(D=>So(D)).flat();return[E,...O]}function Ka(E){return(0,be.n)(O=>{const D=E(O);return D?(0,o.H)(D).pipe((0,te.T)(()=>O)):(0,L.of)(O)})}let po=(()=>{class E{buildTitle(D){let R,Y=D.root;for(;void 0!==Y;)R=this.getResolvedTitleForRoute(Y)??R,Y=Y.children.find(Se=>Se.outlet===Xe);return R}getResolvedTitleForRoute(D){return D.data[Je]}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(Xa),providedIn:"root"})}return E})(),Xa=(()=>{class E extends po{constructor(D){super(),this.title=D}updateTitle(D){const R=this.buildTitle(D);void 0!==R&&this.title.setTitle(R)}static#e=this.\u0275fac=function(R){return new(R||E)(u.KVO(ht.hE))};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const ys=new u.nKC("",{providedIn:"root",factory:()=>({})});let Rc=(()=>{class E{static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275cmp=u.VBU({type:E,selectors:[["ng-component"]],standalone:!0,features:[u.aNF],decls:1,vars:0,template:function(R,Y){1&R&&u.nrm(0,"router-outlet")},dependencies:[zo],encapsulation:2})}return E})();function ur(E){const O=E.children&&E.children.map(ur),D=O?{...E,children:O}:{...E};return!D.component&&!D.loadComponent&&(O||D.loadChildren)&&D.outlet&&D.outlet!==Xe&&(D.component=Rc),D}const bs=new u.nKC("");let ca=(()=>{class E{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,u.WQX)(u.Ql9)}loadComponent(D){if(this.componentLoaders.get(D))return this.componentLoaders.get(D);if(D._loadedComponent)return(0,L.of)(D._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(D);const R=It(D.loadComponent()).pipe((0,te.T)(fl),(0,Zt.M)(Se=>{this.onLoadEndListener&&this.onLoadEndListener(D),D._loadedComponent=Se}),(0,J.j)(()=>{this.componentLoaders.delete(D)})),Y=new ge.G(R,()=>new Ee.B).pipe((0,Ie.B)());return this.componentLoaders.set(D,Y),Y}loadChildren(D,R){if(this.childrenLoaders.get(R))return this.childrenLoaders.get(R);if(R._loadedRoutes)return(0,L.of)({routes:R._loadedRoutes,injector:R._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(R);const Se=function Wr(E,O,D,R){return It(E.loadChildren()).pipe((0,te.T)(fl),(0,qe.Z)(Y=>Y instanceof u.Co$||Array.isArray(Y)?(0,L.of)(Y):(0,o.H)(O.compileModuleAsync(Y))),(0,te.T)(Y=>{R&&R(E);let Se,ut,sn=!1;return Array.isArray(Y)?(ut=Y,!0):(Se=Y.create(D).injector,ut=Se.get(bs,[],{optional:!0,self:!0}).flat()),{routes:ut.map(ur),injector:Se}}))}(R,this.compiler,D,this.onLoadEndListener).pipe((0,J.j)(()=>{this.childrenLoaders.delete(R)})),ut=new ge.G(Se,()=>new Ee.B).pipe((0,Ie.B)());return this.childrenLoaders.set(R,ut),ut}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function fl(E){return function Gr(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let ua=(()=>{class E{static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(sc),providedIn:"root"})}return E})(),sc=(()=>{class E{shouldProcessUrl(D){return!0}extract(D){return D}merge(D,R){return D}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const da=new u.nKC(""),ir=new u.nKC("");function Ya(E,O,D){const R=E.get(ir),Y=E.get(ke.qQ);return E.get(u.SKi).runOutsideAngular(()=>{if(!Y.startViewTransition||R.skipNextTransition)return R.skipNextTransition=!1,new Promise(ti=>setTimeout(ti));let Se;const ut=new Promise(ti=>{Se=ti}),sn=Y.startViewTransition(()=>(Se(),function jl(E){return new Promise(O=>{(0,u.mal)({read:()=>setTimeout(O)},{injector:E})})}(E))),{onViewTransitionCreated:Kt}=R;return Kt&&(0,u.N4e)(E,()=>Kt({transition:sn,from:O,to:D})),ut})}const S=new u.nKC("");let ne=(()=>{class E{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ee.B,this.transitionAbortSubject=new Ee.B,this.configLoader=(0,u.WQX)(ca),this.environmentInjector=(0,u.WQX)(u.uvJ),this.urlSerializer=(0,u.WQX)(he),this.rootContexts=(0,u.WQX)(no),this.location=(0,u.WQX)(ke.aZ),this.inputBindingEnabled=null!==(0,u.WQX)(oa,{optional:!0}),this.titleStrategy=(0,u.WQX)(po),this.options=(0,u.WQX)(ys,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,u.WQX)(ua),this.createViewTransition=(0,u.WQX)(da,{optional:!0}),this.navigationErrorHandler=(0,u.WQX)(S,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,L.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Y=>this.events.next(new ki(Y)),this.configLoader.onLoadStartListener=Y=>this.events.next(new ci(Y))}complete(){this.transitions?.complete()}handleNavigationRequest(D){const R=++this.navigationId;this.transitions?.next({...this.transitions.value,...D,id:R})}setupNavigations(D,R,Y){return this.transitions=new G.t({id:0,currentUrlTree:R,currentRawUrl:R,extractedUrl:this.urlHandlingStrategy.extract(R),urlAfterRedirects:this.urlHandlingStrategy.extract(R),rawUrl:R,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Ye,restoredState:null,currentSnapshot:Y.snapshot,targetSnapshot:null,currentRouterState:Y,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,je.p)(Se=>0!==Se.id),(0,te.T)(Se=>({...Se,extractedUrl:this.urlHandlingStrategy.extract(Se.rawUrl)})),(0,be.n)(Se=>{let ut=!1,sn=!1;return(0,L.of)(Se).pipe((0,be.n)(Kt=>{if(this.navigationId>Se.id)return this.cancelNavigationTransition(Se,"",$e.SupersededByNewNavigation),ue.w;this.currentTransition=Se,this.currentNavigation={id:Kt.id,initialUrl:Kt.rawUrl,extractedUrl:Kt.extractedUrl,targetBrowserUrl:"string"==typeof Kt.extras.browserUrl?this.urlSerializer.parse(Kt.extras.browserUrl):Kt.extras.browserUrl,trigger:Kt.source,extras:Kt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const ti=!D.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!ti&&"reload"!==(Kt.extras.onSameUrlNavigation??D.onSameUrlNavigation)){const Qi="";return this.events.next(new jt(Kt.id,this.urlSerializer.serialize(Kt.rawUrl),Qi,pt.IgnoredSameUrlNavigation)),Kt.resolve(!1),ue.w}if(this.urlHandlingStrategy.shouldProcessUrl(Kt.rawUrl))return(0,L.of)(Kt).pipe((0,be.n)(Qi=>{const io=this.transitions?.getValue();return this.events.next(new Te(Qi.id,this.urlSerializer.serialize(Qi.extractedUrl),Qi.source,Qi.restoredState)),io!==this.transitions?.getValue()?ue.w:Promise.resolve(Qi)}),function Ts(E,O,D,R,Y,Se){return(0,qe.Z)(ut=>function Pa(E,O,D,R,Y,Se,ut="emptyOnly"){return new Ho(E,O,D,R,Y,ut,Se).recognize()}(E,O,D,R,ut.extractedUrl,Y,Se).pipe((0,te.T)(({state:sn,tree:Kt})=>({...ut,targetSnapshot:sn,urlAfterRedirects:Kt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,D.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,Zt.M)(Qi=>{Se.targetSnapshot=Qi.targetSnapshot,Se.urlAfterRedirects=Qi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Qi.urlAfterRedirects};const io=new fn(Qi.id,this.urlSerializer.serialize(Qi.extractedUrl),this.urlSerializer.serialize(Qi.urlAfterRedirects),Qi.targetSnapshot);this.events.next(io)}));if(ti&&this.urlHandlingStrategy.shouldProcessUrl(Kt.currentRawUrl)){const{id:Qi,extractedUrl:io,source:ya,restoredState:qo,extras:La}=Kt,Ms=new Te(Qi,this.urlSerializer.serialize(io),ya,qo);this.events.next(Ms);const Dl=Di(this.rootComponentType).snapshot;return this.currentTransition=Se={...Kt,targetSnapshot:Dl,urlAfterRedirects:io,extras:{...La,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=io,(0,L.of)(Se)}{const Qi="";return this.events.next(new jt(Kt.id,this.urlSerializer.serialize(Kt.extractedUrl),Qi,pt.IgnoredByUrlHandlingStrategy)),Kt.resolve(!1),ue.w}}),(0,Zt.M)(Kt=>{const ti=new wn(Kt.id,this.urlSerializer.serialize(Kt.extractedUrl),this.urlSerializer.serialize(Kt.urlAfterRedirects),Kt.targetSnapshot);this.events.next(ti)}),(0,te.T)(Kt=>(this.currentTransition=Se={...Kt,guards:ss(Kt.targetSnapshot,Kt.currentSnapshot,this.rootContexts)},Se)),function X(E,O){return(0,qe.Z)(D=>{const{targetSnapshot:R,currentSnapshot:Y,guards:{canActivateChecks:Se,canDeactivateChecks:ut}}=D;return 0===ut.length&&0===Se.length?(0,L.of)({...D,guardsResult:!0}):function k(E,O,D,R){return(0,o.H)(E).pipe((0,qe.Z)(Y=>function _o(E,O,D,R,Y){const Se=O&&O.routeConfig?O.routeConfig.canDeactivate:null;if(!Se||0===Se.length)return(0,L.of)(!0);const ut=Se.map(sn=>{const Kt=hr(O)??Y,ti=Vo(sn,Kt);return It(function vs(E){return E&&as(E.canDeactivate)}(ti)?ti.canDeactivate(E,O,D,R):(0,u.N4e)(Kt,()=>ti(E,O,D,R))).pipe(vt())});return(0,L.of)(ut).pipe(Ro())}(Y.component,Y.route,D,O,R)),vt(Y=>!0!==Y,!0))}(ut,R,Y,E).pipe((0,qe.Z)(sn=>sn&&function dl(E){return"boolean"==typeof E}(sn)?function pe(E,O,D,R){return(0,o.H)(O).pipe((0,Dt.H)(Y=>(0,V.x)(function ii(E,O){return null!==E&&O&&O(new ei(E)),(0,L.of)(!0)}(Y.route.parent,R),function yt(E,O){return null!==E&&O&&O(new Rr(E)),(0,L.of)(!0)}(Y.route,R),function ko(E,O,D){const R=O[O.length-1],Se=O.slice(0,O.length-1).reverse().map(ut=>function br(E){const O=E.routeConfig?E.routeConfig.canActivateChild:null;return O&&0!==O.length?{node:E,guards:O}:null}(ut)).filter(ut=>null!==ut).map(ut=>(0,P.v)(()=>{const sn=ut.guards.map(Kt=>{const ti=hr(ut.node)??D,ji=Vo(Kt,ti);return It(function Ds(E){return E&&as(E.canActivateChild)}(ji)?ji.canActivateChild(R,E):(0,u.N4e)(ti,()=>ji(R,E))).pipe(vt())});return(0,L.of)(sn).pipe(Ro())}));return(0,L.of)(Se).pipe(Ro())}(E,Y.path,D),function Xi(E,O,D){const R=O.routeConfig?O.routeConfig.canActivate:null;if(!R||0===R.length)return(0,L.of)(!0);const Y=R.map(Se=>(0,P.v)(()=>{const ut=hr(O)??D,sn=Vo(Se,ut);return It(function Ia(E){return E&&as(E.canActivate)}(sn)?sn.canActivate(O,E):(0,u.N4e)(ut,()=>sn(O,E))).pipe(vt())}));return(0,L.of)(Y).pipe(Ro())}(E,Y.route,D))),vt(Y=>!0!==Y,!0))}(R,Se,E,O):(0,L.of)(sn)),(0,te.T)(sn=>({...D,guardsResult:sn})))})}(this.environmentInjector,Kt=>this.events.next(Kt)),(0,Zt.M)(Kt=>{if(Se.guardsResult=Kt.guardsResult,Kt.guardsResult&&"boolean"!=typeof Kt.guardsResult)throw Wo(0,Kt.guardsResult);const ti=new Dn(Kt.id,this.urlSerializer.serialize(Kt.extractedUrl),this.urlSerializer.serialize(Kt.urlAfterRedirects),Kt.targetSnapshot,!!Kt.guardsResult);this.events.next(ti)}),(0,je.p)(Kt=>!!Kt.guardsResult||(this.cancelNavigationTransition(Kt,"",$e.GuardRejected),!1)),Ka(Kt=>{if(Kt.guards.canActivateChecks.length)return(0,L.of)(Kt).pipe((0,Zt.M)(ti=>{const ji=new jn(ti.id,this.urlSerializer.serialize(ti.extractedUrl),this.urlSerializer.serialize(ti.urlAfterRedirects),ti.targetSnapshot);this.events.next(ji)}),(0,be.n)(ti=>{let ji=!1;return(0,L.of)(ti).pipe(function hl(E,O){return(0,qe.Z)(D=>{const{targetSnapshot:R,guards:{canActivateChecks:Y}}=D;if(!Y.length)return(0,L.of)(D);const Se=new Set(Y.map(Kt=>Kt.route)),ut=new Set;for(const Kt of Se)if(!ut.has(Kt))for(const ti of So(Kt))ut.add(ti);let sn=0;return(0,o.H)(ut).pipe((0,Dt.H)(Kt=>Se.has(Kt)?function _s(E,O,D,R){const Y=E.routeConfig,Se=E._resolve;return void 0!==Y?.title&&!gr(Y)&&(Se[Je]=Y.title),function Oc(E,O,D,R){const Y=dt(E);if(0===Y.length)return(0,L.of)({});const Se={};return(0,o.H)(Y).pipe((0,qe.Z)(ut=>function Is(E,O,D,R){const Y=hr(O)??R,Se=Vo(E,Y);return It(Se.resolve?Se.resolve(O,D):(0,u.N4e)(Y,()=>Se(O,D)))}(E[ut],O,D,R).pipe(vt(),(0,Zt.M)(sn=>{if(sn instanceof os)throw Wo(new et,sn);Se[ut]=sn}))),pi(1),(0,Ae.u)(Se),(0,Fn.W)(ut=>Xo(ut)?ue.w:(0,F.$)(ut)))}(Se,E,O,R).pipe((0,te.T)(ut=>(E._resolvedData=ut,E.data=Bo(E,E.parent,D).resolve,null)))}(Kt,R,E,O):(Kt.data=Bo(Kt,Kt.parent,E).resolve,(0,L.of)(void 0))),(0,Zt.M)(()=>sn++),pi(1),(0,qe.Z)(Kt=>sn===ut.size?(0,L.of)(D):ue.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,Zt.M)({next:()=>ji=!0,complete:()=>{ji||this.cancelNavigationTransition(ti,"",$e.NoDataFromResolver)}}))}),(0,Zt.M)(ti=>{const ji=new $n(ti.id,this.urlSerializer.serialize(ti.extractedUrl),this.urlSerializer.serialize(ti.urlAfterRedirects),ti.targetSnapshot);this.events.next(ji)}))}),Ka(Kt=>{const ti=ji=>{const Qi=[];ji.routeConfig?.loadComponent&&!ji.routeConfig._loadedComponent&&Qi.push(this.configLoader.loadComponent(ji.routeConfig).pipe((0,Zt.M)(io=>{ji.component=io}),(0,te.T)(()=>{})));for(const io of ji.children)Qi.push(...ti(io));return Qi};return(0,ee.z)(ti(Kt.targetSnapshot.root)).pipe(me(null),(0,Ze.s)(1))}),Ka(()=>this.afterPreactivation()),(0,be.n)(()=>{const{currentSnapshot:Kt,targetSnapshot:ti}=Se,ji=this.createViewTransition?.(this.environmentInjector,Kt.root,ti.root);return ji?(0,o.H)(ji).pipe((0,te.T)(()=>Se)):(0,L.of)(Se)}),(0,te.T)(Kt=>{const ti=function Io(E,O,D){const R=Eo(E,O._root,D?D._root:void 0);return new Vs(R,O)}(D.routeReuseStrategy,Kt.targetSnapshot,Kt.currentRouterState);return this.currentTransition=Se={...Kt,targetRouterState:ti},this.currentNavigation.targetRouterState=ti,Se}),(0,Zt.M)(()=>{this.events.next(new Ci)}),((E,O,D,R)=>(0,te.T)(Y=>(new Cs(O,Y.targetRouterState,Y.currentRouterState,D,R).activate(E),Y)))(this.rootContexts,D.routeReuseStrategy,Kt=>this.events.next(Kt),this.inputBindingEnabled),(0,Ze.s)(1),(0,Zt.M)({next:Kt=>{ut=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new se(Kt.id,this.urlSerializer.serialize(Kt.extractedUrl),this.urlSerializer.serialize(Kt.urlAfterRedirects))),this.titleStrategy?.updateTitle(Kt.targetRouterState.snapshot),Kt.resolve(!0)},complete:()=>{ut=!0}}),(0,Ot.Q)(this.transitionAbortSubject.pipe((0,Zt.M)(Kt=>{throw Kt}))),(0,J.j)(()=>{!ut&&!sn&&this.cancelNavigationTransition(Se,"",$e.SupersededByNewNavigation),this.currentTransition?.id===Se.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Fn.W)(Kt=>{if(sn=!0,zs(Kt))this.events.next(new lt(Se.id,this.urlSerializer.serialize(Se.extractedUrl),Kt.message,Kt.cancellationCode)),function Co(E){return zs(E)&&Wt(E.url)}(Kt)?this.events.next(new Lr(Kt.url,Kt.navigationBehaviorOptions)):Se.resolve(!1);else{const ti=new hn(Se.id,this.urlSerializer.serialize(Se.extractedUrl),Kt,Se.targetSnapshot??void 0);try{const ji=(0,u.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(ti));if(ji instanceof os){const{message:Qi,cancellationCode:io}=Wo(0,ji);this.events.next(new lt(Se.id,this.urlSerializer.serialize(Se.extractedUrl),Qi,io)),this.events.next(new Lr(ji.redirectTo,ji.navigationBehaviorOptions))}else{this.events.next(ti);const Qi=D.errorHandler(Kt);Se.resolve(!!Qi)}}catch(ji){this.options.resolveNavigationPromiseOnError?Se.resolve(!1):Se.reject(ji)}}return ue.w}))}))}cancelNavigationTransition(D,R,Y){const Se=new lt(D.id,this.urlSerializer.serialize(D.extractedUrl),R,Y);this.events.next(Se),D.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const D=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),R=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return D.toString()!==R?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function f(E){return E!==Ye}let _=(()=>{class E{static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(K),providedIn:"root"})}return E})();class x{shouldDetach(O){return!1}store(O,D){}shouldAttach(O){return!1}retrieve(O){return null}shouldReuseRoute(O,D){return O.routeConfig===D.routeConfig}}let K=(()=>{class E extends x{static#e=this.\u0275fac=(()=>{let D;return function(Y){return(D||(D=u.xGo(E)))(Y||E)}})();static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),de=(()=>{class E{static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(ze),providedIn:"root"})}return E})(),ze=(()=>{class E extends de{constructor(){super(...arguments),this.location=(0,u.WQX)(ke.aZ),this.urlSerializer=(0,u.WQX)(he),this.options=(0,u.WQX)(ys,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,u.WQX)(ua),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new on,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Di(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(D){return this.location.subscribe(R=>{"popstate"===R.type&&D(R.url,R.state)})}handleRouterEvent(D,R){if(D instanceof Te)this.stateMemento=this.createStateMemento();else if(D instanceof jt)this.rawUrlTree=R.initialUrl;else if(D instanceof fn){if("eager"===this.urlUpdateStrategy&&!R.extras.skipLocationChange){const Y=this.urlHandlingStrategy.merge(R.finalUrl,R.initialUrl);this.setBrowserUrl(R.targetBrowserUrl??Y,R)}}else D instanceof Ci?(this.currentUrlTree=R.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(R.finalUrl,R.initialUrl),this.routerState=R.targetRouterState,"deferred"===this.urlUpdateStrategy&&!R.extras.skipLocationChange&&this.setBrowserUrl(R.targetBrowserUrl??this.rawUrlTree,R)):D instanceof lt&&(D.code===$e.GuardRejected||D.code===$e.NoDataFromResolver)?this.restoreHistory(R):D instanceof hn?this.restoreHistory(R,!0):D instanceof se&&(this.lastSuccessfulId=D.id,this.currentPageId=this.browserPageId)}setBrowserUrl(D,R){const Y=D instanceof on?this.urlSerializer.serialize(D):D;if(this.location.isCurrentPathEqualTo(Y)||R.extras.replaceUrl){const ut={...R.extras.state,...this.generateNgRouterState(R.id,this.browserPageId)};this.location.replaceState(Y,"",ut)}else{const Se={...R.extras.state,...this.generateNgRouterState(R.id,this.browserPageId+1)};this.location.go(Y,"",Se)}}restoreHistory(D,R=!1){if("computed"===this.canceledNavigationResolution){const Se=this.currentPageId-this.browserPageId;0!==Se?this.location.historyGo(Se):this.currentUrlTree===D.finalUrl&&0===Se&&(this.resetState(D),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(R&&this.resetState(D),this.resetUrlToCurrentUrlTree())}resetState(D){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,D.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(D,R){return"computed"===this.canceledNavigationResolution?{navigationId:D,\u0275routerPageId:R}:{navigationId:D}}static#e=this.\u0275fac=(()=>{let D;return function(Y){return(D||(D=u.xGo(E)))(Y||E)}})();static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();var _t=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(_t||{});function wt(E,O){E.events.pipe((0,je.p)(D=>D instanceof se||D instanceof lt||D instanceof hn||D instanceof jt),(0,te.T)(D=>D instanceof se||D instanceof jt?_t.COMPLETE:D instanceof lt&&(D.code===$e.Redirect||D.code===$e.SupersededByNewNavigation)?_t.REDIRECTING:_t.FAILED),(0,je.p)(D=>D!==_t.REDIRECTING),(0,Ze.s)(1)).subscribe(()=>{O()})}function kt(E){throw E}const Yt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let xt=(()=>{class E{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=(0,u.WQX)(u.H3F),this.stateManager=(0,u.WQX)(de),this.options=(0,u.WQX)(ys,{optional:!0})||{},this.pendingTasks=(0,u.WQX)(u.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,u.WQX)(ne),this.urlSerializer=(0,u.WQX)(he),this.location=(0,u.WQX)(ke.aZ),this.urlHandlingStrategy=(0,u.WQX)(ua),this._events=new Ee.B,this.errorHandler=this.options.errorHandler||kt,this.navigated=!1,this.routeReuseStrategy=(0,u.WQX)(_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,u.WQX)(bs,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,u.WQX)(oa,{optional:!0}),this.eventsSubscription=new Re.yU,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:D=>{this.console.warn(D)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const D=this.navigationTransitions.events.subscribe(R=>{try{const Y=this.navigationTransitions.currentTransition,Se=this.navigationTransitions.currentNavigation;if(null!==Y&&null!==Se)if(this.stateManager.handleRouterEvent(R,Se),R instanceof lt&&R.code!==$e.Redirect&&R.code!==$e.SupersededByNewNavigation)this.navigated=!0;else if(R instanceof se)this.navigated=!0;else if(R instanceof Lr){const ut=R.navigationBehaviorOptions,sn=this.urlHandlingStrategy.merge(R.url,Y.currentRawUrl),Kt={browserUrl:Y.extras.browserUrl,info:Y.extras.info,skipLocationChange:Y.extras.skipLocationChange,replaceUrl:Y.extras.replaceUrl||"eager"===this.urlUpdateStrategy||f(Y.source),...ut};this.scheduleNavigation(sn,Ye,null,Kt,{resolve:Y.resolve,reject:Y.reject,promise:Y.promise})}(function cn(E){return!(E instanceof Ci||E instanceof Lr)})(R)&&this._events.next(R)}catch(Y){this.navigationTransitions.transitionAbortSubject.next(Y)}});this.eventsSubscription.add(D)}resetRootComponentType(D){this.routerState.root.component=D,this.navigationTransitions.rootComponentType=D}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ye,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((D,R)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(D,"popstate",R)},0)})}navigateToSyncWithBrowser(D,R,Y){const Se={replaceUrl:!0},ut=Y?.navigationId?Y:null;if(Y){const Kt={...Y};delete Kt.navigationId,delete Kt.\u0275routerPageId,0!==Object.keys(Kt).length&&(Se.state=Kt)}const sn=this.parseUrl(D);this.scheduleNavigation(sn,R,ut,Se)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(D){this.config=D.map(ur),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(D,R={}){const{relativeTo:Y,queryParams:Se,fragment:ut,queryParamsHandling:sn,preserveFragment:Kt}=R,ti=Kt?this.currentUrlTree.fragment:ut;let Qi,ji=null;switch(sn??this.options.defaultQueryParamsHandling){case"merge":ji={...this.currentUrlTree.queryParams,...Se};break;case"preserve":ji=this.currentUrlTree.queryParams;break;default:ji=Se||null}null!==ji&&(ji=this.removeEmptyProps(ji));try{Qi=ai(Y?Y.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof D[0]||"/"!==D[0][0])&&(D=[]),Qi=this.currentUrlTree.root}return yr(Qi,D,ji,ti??null)}navigateByUrl(D,R={skipLocationChange:!1}){const Y=Wt(D)?D:this.parseUrl(D),Se=this.urlHandlingStrategy.merge(Y,this.rawUrlTree);return this.scheduleNavigation(Se,Ye,null,R)}navigate(D,R={skipLocationChange:!1}){return function Ht(E){for(let O=0;O(null!=Se&&(R[Y]=Se),R),{})}scheduleNavigation(D,R,Y,Se,ut){if(this.disposed)return Promise.resolve(!1);let sn,Kt,ti;ut?(sn=ut.resolve,Kt=ut.reject,ti=ut.promise):ti=new Promise((Qi,io)=>{sn=Qi,Kt=io});const ji=this.pendingTasks.add();return wt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ji))}),this.navigationTransitions.handleNavigationRequest({source:R,restoredState:Y,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:D,extras:Se,resolve:sn,reject:Kt,promise:ti,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ti.catch(Qi=>Promise.reject(Qi))}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),Rn=(()=>{class E{constructor(D,R,Y,Se,ut,sn){this.router=D,this.route=R,this.tabIndexAttribute=Y,this.renderer=Se,this.el=ut,this.locationStrategy=sn,this.href=null,this.onChanges=new Ee.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;const Kt=ut.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Kt||"area"===Kt,this.isAnchorElement?this.subscription=D.events.subscribe(ti=>{ti instanceof se&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(D){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",D)}ngOnChanges(D){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(D){null==D?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=Wt(D)||Array.isArray(D)?D:[D],this.setTabIndexIfNotOnNativeEl("0"))}onClick(D,R,Y,Se,ut){const sn=this.urlTree;return!!(null===sn||this.isAnchorElement&&(0!==D||R||Y||Se||ut||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(sn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const D=this.urlTree;this.href=null!==D&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(D)):null;const R=null===this.href?null:(0,u.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",R)}applyAttributeValue(D,R){const Y=this.renderer,Se=this.el.nativeElement;null!==R?Y.setAttribute(Se,D,R):Y.removeAttribute(Se,D)}get urlTree(){return null===this.routerLinkInput?null:Wt(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#e=this.\u0275fac=function(R){return new(R||E)(u.rXU(xt),u.rXU(Hr),u.kS0("tabindex"),u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(ke.hb))};static#t=this.\u0275dir=u.FsC({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(R,Y){1&R&&u.bIt("click",function(ut){return Y.onClick(ut.button,ut.ctrlKey,ut.shiftKey,ut.altKey,ut.metaKey)}),2&R&&u.BMQ("target",Y.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",u.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",u.L39],replaceUrl:[2,"replaceUrl","replaceUrl",u.L39],routerLink:"routerLink"},standalone:!0,features:[u.GFd,u.OA$]})}return E})(),pn=(()=>{class E{get isActive(){return this._isActive}constructor(D,R,Y,Se,ut){this.router=D,this.element=R,this.renderer=Y,this.cdr=Se,this.link=ut,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new u.bkB,this.routerEventsSubscription=D.events.subscribe(sn=>{sn instanceof se&&this.update()})}ngAfterContentInit(){(0,L.of)(this.links.changes,(0,L.of)(null)).pipe((0,Pe.U)()).subscribe(D=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const D=[...this.links.toArray(),this.link].filter(R=>!!R).map(R=>R.onChanges);this.linkInputChangesSubscription=(0,o.H)(D).pipe((0,Pe.U)()).subscribe(R=>{this._isActive!==this.isLinkActive(this.router)(R)&&this.update()})}set routerLinkActive(D){const R=Array.isArray(D)?D:D.split(" ");this.classes=R.filter(Y=>!!Y)}ngOnChanges(D){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const D=this.hasActiveLinks();this.classes.forEach(R=>{D?this.renderer.addClass(this.element.nativeElement,R):this.renderer.removeClass(this.element.nativeElement,R)}),D&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==D&&(this._isActive=D,this.cdr.markForCheck(),this.isActiveChange.emit(D))})}isLinkActive(D){const R=function Tn(E){return!!E.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Y=>{const Se=Y.urlTree;return!!Se&&D.isActive(Se,R)}}hasActiveLinks(){const D=this.isLinkActive(this.router);return this.link&&D(this.link)||this.links.some(D)}static#e=this.\u0275fac=function(R){return new(R||E)(u.rXU(xt),u.rXU(u.aKT),u.rXU(u.sFG),u.rXU(u.gRc),u.rXU(Rn,8))};static#t=this.\u0275dir=u.FsC({type:E,selectors:[["","routerLinkActive",""]],contentQueries:function(R,Y,Se){if(1&R&&u.wni(Se,Rn,5),2&R){let ut;u.mGM(ut=u.lsd())&&(Y.links=ut)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[u.OA$]})}return E})();class Nn{}let Yn=(()=>{class E{preload(D,R){return R().pipe((0,Fn.W)(()=>(0,L.of)(null)))}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),ui=(()=>{class E{constructor(D,R,Y,Se,ut){this.router=D,this.injector=Y,this.preloadingStrategy=Se,this.loader=ut}setUpPreloading(){this.subscription=this.router.events.pipe((0,je.p)(D=>D instanceof se),(0,Dt.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(D,R){const Y=[];for(const Se of R){Se.providers&&!Se._injector&&(Se._injector=(0,u.Ol2)(Se.providers,D,`Route: ${Se.path}`));const ut=Se._injector??D,sn=Se._loadedInjector??ut;(Se.loadChildren&&!Se._loadedRoutes&&void 0===Se.canLoad||Se.loadComponent&&!Se._loadedComponent)&&Y.push(this.preloadConfig(ut,Se)),(Se.children||Se._loadedRoutes)&&Y.push(this.processRoutes(sn,Se.children??Se._loadedRoutes))}return(0,o.H)(Y).pipe((0,Pe.U)())}preloadConfig(D,R){return this.preloadingStrategy.preload(R,()=>{let Y;Y=R.loadChildren&&void 0===R.canLoad?this.loader.loadChildren(D,R):(0,L.of)(null);const Se=Y.pipe((0,qe.Z)(ut=>null===ut?(0,L.of)(void 0):(R._loadedRoutes=ut.routes,R._loadedInjector=ut.injector,this.processRoutes(ut.injector??D,ut.routes))));if(R.loadComponent&&!R._loadedComponent){const ut=this.loader.loadComponent(R);return(0,o.H)([Se,ut]).pipe((0,Pe.U)())}return Se})}static#e=this.\u0275fac=function(R){return new(R||E)(u.KVO(xt),u.KVO(u.Ql9),u.KVO(u.uvJ),u.KVO(Nn),u.KVO(ca))};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const di=new u.nKC("");let On=(()=>{class E{constructor(D,R,Y,Se,ut={}){this.urlSerializer=D,this.transitions=R,this.viewportScroller=Y,this.zone=Se,this.options=ut,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ut.scrollPositionRestoration||="disabled",ut.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof Te?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=D.navigationTrigger,this.restoredId=D.restoredState?D.restoredState.navigationId:0):D instanceof se?(this.lastId=D.id,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.urlAfterRedirects).fragment)):D instanceof jt&&D.code===pt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof Fr&&(D.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(D.position):D.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(D.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(D,R){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Fr(D,"popstate"===this.lastSource?this.store[this.restoredId]:null,R))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(R){u.QTQ()};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac})}return E})();function Si(E,...O){return(0,u.EmA)([{provide:bs,multi:!0,useValue:E},[],{provide:Hr,useFactory:Ai,deps:[xt]},{provide:u.iLQ,multi:!0,useFactory:sr},O.map(D=>D.\u0275providers)])}function Ai(E){return E.routerState.root}function qi(E,O){return{\u0275kind:E,\u0275providers:O}}function Er(E={}){return qi(4,[{provide:di,useFactory:()=>{const D=(0,u.WQX)(ke.Xr),R=(0,u.WQX)(u.SKi),Y=(0,u.WQX)(ne),Se=(0,u.WQX)(he);return new On(Se,Y,D,R,E)}}])}function sr(){const E=(0,u.WQX)(u.zZn);return O=>{const D=E.get(u.o8S);if(O!==D.components[0])return;const R=E.get(xt),Y=E.get(Zn);1===E.get(gi)&&R.initialNavigation(),E.get(Cr,null,u.$GK.Optional)?.setUpPreloading(),E.get(di,null,u.$GK.Optional)?.init(),R.resetRootComponentType(D.componentTypes[0]),Y.closed||(Y.next(),Y.complete(),Y.unsubscribe())}}const Zn=new u.nKC("",{factory:()=>new Ee.B}),gi=new u.nKC("",{providedIn:"root",factory:()=>1}),Cr=new u.nKC("");function Br(E){return qi(0,[{provide:Cr,useExisting:ui},{provide:Nn,useExisting:E}])}function Qs(E){return qi(9,[{provide:da,useValue:Ya},{provide:ir,useValue:{skipNextTransition:!!E?.skipInitialTransition,...E}}])}const yo=new u.nKC("ROUTER_FORROOT_GUARD"),ws=[ke.aZ,{provide:he,useClass:et},xt,no,{provide:Hr,useFactory:Ai,deps:[xt]},ca,[]];let Do=(()=>{class E{constructor(D){}static forRoot(D,R){return{ngModule:E,providers:[ws,[],{provide:bs,multi:!0,useValue:D},{provide:yo,useFactory:Jo,deps:[[xt,new u.Xx1,new u.kdw]]},{provide:ys,useValue:R||{}},R?.useHash?{provide:ke.hb,useClass:ke.fw}:{provide:ke.hb,useClass:ke.Sm},{provide:di,useFactory:()=>{const E=(0,u.WQX)(ke.Xr),O=(0,u.WQX)(u.SKi),D=(0,u.WQX)(ys),R=(0,u.WQX)(ne),Y=(0,u.WQX)(he);return D.scrollOffset&&E.setOffset(D.scrollOffset),new On(Y,R,E,O,D)}},R?.preloadingStrategy?Br(R.preloadingStrategy).\u0275providers:[],R?.initialNavigation?Qa(R):[],R?.bindToComponentInputs?qi(8,[lr,{provide:oa,useExisting:lr}]).\u0275providers:[],R?.enableViewTransitions?Qs().\u0275providers:[],[{provide:pl,useFactory:sr},{provide:u.iLQ,multi:!0,useExisting:pl}]]}}static forChild(D){return{ngModule:E,providers:[{provide:bs,multi:!0,useValue:D}]}}static#e=this.\u0275fac=function(R){return new(R||E)(u.KVO(yo,8))};static#t=this.\u0275mod=u.$C({type:E});static#n=this.\u0275inj=u.G2t({})}return E})();function Jo(E){return"guarded"}function Qa(E){return["disabled"===E.initialNavigation?qi(3,[{provide:u.hnV,multi:!0,useFactory:()=>{const O=(0,u.WQX)(xt);return()=>{O.setUpLocationChangeListener()}}},{provide:gi,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?qi(2,[{provide:gi,useValue:0},{provide:u.hnV,multi:!0,deps:[u.zZn],useFactory:O=>{const D=O.get(ke.hj,Promise.resolve());return()=>D.then(()=>new Promise(R=>{const Y=O.get(xt),Se=O.get(Zn);wt(Y,()=>{R(!0)}),O.get(ne).afterPreactivation=()=>(R(!0),Se.closed?(0,L.of)(void 0):Se),Y.initialNavigation()}))}}]).\u0275providers:[]]}const pl=new u.nKC("")},5766:(tn,Ne,v)=>{"use strict";v.d(Ne,{My:()=>je,aT:()=>ae}),new Uint8Array(new Uint32Array([287454020]).buffer);const gt=Array.from({length:256},(J,Ie)=>Ie.toString(16).padStart(2,"0"));function je(J){!function L(J,...Ie){if(!function o(J){return J instanceof Uint8Array||null!=J&&"object"==typeof J&&"Uint8Array"===J.constructor.name}(J))throw new Error("Uint8Array expected");if(Ie.length>0&&!Ie.includes(J.length))throw new Error(`Uint8Array expected of length ${Ie}, not of length=${J.length}`)}(J);let Ie="";for(let Ot=0;Ot=qe._0&&J<=qe._9?J-qe._0:J>=qe._A&&J<=qe._F?J-(qe._A-10):J>=qe._a&&J<=qe._f?J-(qe._a-10):void 0}function ae(J){if("string"!=typeof J)throw new Error("hex string expected, got "+typeof J);const Ie=J.length,Ot=Ie/2;if(Ie%2)throw new Error("padded hex string expected, got unpadded hex of length "+Ie);const Pe=new Uint8Array(Ot);for(let ht=0,Xe=0;ht{"use strict";function u(Je){if(!Number.isSafeInteger(Je))throw new Error(`Wrong integer: ${Je}`)}function y(...Je){const Me=(le,Ce)=>dt=>le(Ce(dt));return{encode:Array.from(Je).reverse().reduce((le,Ce)=>le?Me(le,Ce.encode):Ce.encode,void 0),decode:Je.reduce((le,Ce)=>le?Me(le,Ce.decode):Ce.decode,void 0)}}function o(Je){return{encode:Me=>{if(!Array.isArray(Me)||Me.length&&"number"!=typeof Me[0])throw new Error("alphabet.encode input should be an array of numbers");return Me.map(ie=>{if(u(ie),ie<0||ie>=Je.length)throw new Error(`Digit index outside alphabet: ${ie} (alphabet: ${Je.length})`);return Je[ie]})},decode:Me=>{if(!Array.isArray(Me)||Me.length&&"string"!=typeof Me[0])throw new Error("alphabet.decode input should be array of strings");return Me.map(ie=>{if("string"!=typeof ie)throw new Error(`alphabet.decode: not string element=${ie}`);const ve=Je.indexOf(ie);if(-1===ve)throw new Error(`Unknown letter: "${ie}". Allowed: ${Je}`);return ve})}}}function L(Je=""){if("string"!=typeof Je)throw new Error("join separator should be string");return{encode:Me=>{if(!Array.isArray(Me)||Me.length&&"string"!=typeof Me[0])throw new Error("join.encode input should be array of strings");for(let ie of Me)if("string"!=typeof ie)throw new Error(`join.encode: non-string input=${ie}`);return Me.join(Je)},decode:Me=>{if("string"!=typeof Me)throw new Error("join.decode input should be string");return Me.split(Je)}}}function G(Je,Me="="){if(u(Je),"string"!=typeof Me)throw new Error("padding chr should be string");return{encode(ie){if(!Array.isArray(ie)||ie.length&&"string"!=typeof ie[0])throw new Error("padding.encode input should be array of strings");for(let ve of ie)if("string"!=typeof ve)throw new Error(`padding.encode: non-string input=${ve}`);for(;ie.length*Je%8;)ie.push(Me);return ie},decode(ie){if(!Array.isArray(ie)||ie.length&&"string"!=typeof ie[0])throw new Error("padding.encode input should be array of strings");for(let le of ie)if("string"!=typeof le)throw new Error(`padding.decode: non-string input=${le}`);let ve=ie.length;if(ve*Je%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;ve>0&&ie[ve-1]===Me;ve--)if(!((ve-1)*Je%8))throw new Error("Invalid padding: string has too much padding");return ie.slice(0,ve)}}}function ee(Je){if("function"!=typeof Je)throw new Error("normalize fn should be function");return{encode:Me=>Me,decode:Me=>Je(Me)}}function oe(Je,Me,ie){if(Me<2)throw new Error(`convertRadix: wrong from=${Me}, base cannot be less than 2`);if(ie<2)throw new Error(`convertRadix: wrong to=${ie}, base cannot be less than 2`);if(!Array.isArray(Je))throw new Error("convertRadix: data should be array");if(!Je.length)return[];let ve=0;const le=[],Ce=Array.from(Je);for(Ce.forEach(dt=>{if(u(dt),dt<0||dt>=Me)throw new Error(`Wrong integer: ${dt}`)});;){let dt=0,un=!0;for(let it=ve;it_n,K3:()=>gt,Tq:()=>At,Wp:()=>Re});const V=(Je,Me)=>Me?V(Me,Je%Me):Je,P=(Je,Me)=>Je+(Me-V(Je,Me));function B(Je,Me,ie,ve){if(!Array.isArray(Je))throw new Error("convertRadix2: data should be array");if(Me<=0||Me>32)throw new Error(`convertRadix2: wrong from=${Me}`);if(ie<=0||ie>32)throw new Error(`convertRadix2: wrong to=${ie}`);if(P(Me,ie)>32)throw new Error(`convertRadix2: carry overflow from=${Me} to=${ie} carryBits=${P(Me,ie)}`);let le=0,Ce=0;const dt=2**ie-1,un=[];for(const it of Je){if(u(it),it>=2**Me)throw new Error(`convertRadix2: invalid data word=${it} from=${Me}`);if(le=le<32)throw new Error(`convertRadix2: carry overflow pos=${Ce} from=${Me}`);for(Ce+=Me;Ce>=ie;Ce-=ie)un.push((le>>Ce-ie&dt)>>>0);le&=2**Ce-1}if(le=le<=Me)throw new Error("Excess padding");if(!ve&&le)throw new Error(`Non-zero padding: ${le}`);return ve&&Ce>0&&un.push(le>>>0),un}function F(Je){return u(Je),{encode:Me=>{if(!(Me instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return oe(Array.from(Me),256,Je)},decode:Me=>{if(!Array.isArray(Me)||Me.length&&"number"!=typeof Me[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(oe(Me,Je,256))}}}function ue(Je,Me=!1){if(u(Je),Je<=0||Je>32)throw new Error("radix2: bits should be in (0..32]");if(P(8,Je)>32||P(Je,8)>32)throw new Error("radix2: carry overflow");return{encode:ie=>{if(!(ie instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return B(Array.from(ie),8,Je,!Me)},decode:ie=>{if(!Array.isArray(ie)||ie.length&&"number"!=typeof ie[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(B(ie,Je,8,Me))}}}function ge(Je){if("function"!=typeof Je)throw new Error("unsafeWrapper fn should be function");return function(...Me){try{return Je.apply(null,Me)}catch{}}}function Ee(Je,Me){if(u(Je),"function"!=typeof Me)throw new Error("checksum fn should be function");return{encode(ie){if(!(ie instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const ve=Me(ie).slice(0,Je),le=new Uint8Array(ie.length+Je);return le.set(ie),le.set(ve,ie.length),le},decode(ie){if(!(ie instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const ve=ie.slice(0,-Je),le=Me(ve).slice(0,Je),Ce=ie.slice(-Je);for(let dt=0;dtJe.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),y(ue(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),G(6),L(""))),qe=(y(ue(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),G(6),L("")),Je=>y(F(58),o(Je),L(""))),We=qe("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),At=(qe("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),qe("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),Je=>y(Ee(4,Me=>Je(Je(Me))),We)),vt=y(o("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),L("")),Dt=[996825010,642813549,513874426,1027748829,705979059];function Zt(Je){const Me=Je>>25;let ie=(33554431&Je)<<5;for(let ve=0;ve>ve&1)&&(ie^=Dt[ve]);return ie}function Fn(Je,Me,ie=1){const ve=Je.length;let le=1;for(let Ce=0;Ce126)throw new Error(`Invalid prefix (${Je})`);le=Zt(le)^dt>>5}le=Zt(le);for(let Ce=0;CeRt)throw new TypeError(`Wrong string length: ${Ft.length} (${Ft}). Expected (8..${Rt})`);const kn=Ft.toLowerCase();if(Ft!==kn&&Ft!==Ft.toUpperCase())throw new Error("String must be lowercase or uppercase");const hi=(Ft=kn).lastIndexOf("1");if(0===hi||-1===hi)throw new Error('Letter "1" must be present between prefix and data only');const qt=Ft.slice(0,hi),we=Ft.slice(hi+1);if(we.length<6)throw new Error("Data must be at least 6 characters long");const tt=vt.decode(we).slice(0,-6),rt=Fn(qt,tt,Me);if(!we.endsWith(rt))throw new Error(`Invalid checksum in ${Ft}: expected "${rt}"`);return{prefix:qt,words:tt}}return{encode:function dt(Ft,Rt,kn=90){if("string"!=typeof Ft)throw new Error("bech32.encode prefix should be string, not "+typeof Ft);if(!Array.isArray(Rt)||Rt.length&&"number"!=typeof Rt[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof Rt);const hi=Ft.length+7+Rt.length;if(!1!==kn&&hi>kn)throw new TypeError(`Length ${hi} exceeds limit ${kn}`);return`${Ft=Ft.toLowerCase()}1${vt.encode(Rt)}${Fn(Ft,Rt,Me)}`},decode:un,decodeToBytes:function It(Ft){const{prefix:Rt,words:kn}=un(Ft,!1);return{prefix:Rt,words:kn,bytes:ve(kn)}},decodeUnsafe:ge(un),fromWords:ve,fromWordsUnsafe:Ce,toWords:le}}const _n=Vn("bech32");Vn("bech32m"),y(ue(4),o("0123456789abcdef"),L(""),ee(Je=>{if("string"!=typeof Je||Je.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof Je} with length ${Je.length}`);return Je.toLowerCase()}))},9608:(tn,Ne,v)=>{"use strict";v.d(Ne,{c:()=>ne});var u={};function y(f){if(!Number.isSafeInteger(f)||f<0)throw new Error(`Wrong positive integer: ${f}`)}function G(f,..._){if(!function L(f){return f instanceof Uint8Array||null!=f&&"object"==typeof f&&"Uint8Array"===f.constructor.name}(f))throw new Error("Expected Uint8Array");if(_.length>0&&!_.includes(f.length))throw new Error(`Expected Uint8Array of length ${_}, not of length=${f.length}`)}function oe(f,_=!0){if(f.destroyed)throw new Error("Hash instance has been destroyed");if(_&&f.finished)throw new Error("Hash#digest() has already been called")}function ge(f){return f instanceof Uint8Array||null!=f&&"object"==typeof f&&"Uint8Array"===f.constructor.name}v.r(u),v.d(u,{OG:()=>Bo,My:()=>vo,Ph:()=>hr,lX:()=>is,Id:()=>Tr,fg:()=>gs,qj:()=>Ar,aT:()=>Us,lq:()=>no,z:()=>Ii,Q5:()=>Qr});const Ee=f=>new DataView(f.buffer,f.byteOffset,f.byteLength),Re=(f,_)=>f<<32-_|f>>>_;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const te=Array.from({length:256},(f,_)=>_.toString(16).padStart(2,"0")),Ze={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function gt(f){return f>=Ze._0&&f<=Ze._9?f-Ze._0:f>=Ze._A&&f<=Ze._F?f-(Ze._A-10):f>=Ze._a&&f<=Ze._f?f-(Ze._a-10):void 0}function me(f){if("string"!=typeof f)throw new Error("utf8ToBytes expected string, got "+typeof f);return new Uint8Array((new TextEncoder).encode(f))}function Le(f){if("string"==typeof f&&(f=me(f)),!ge(f))throw new Error("expected Uint8Array, got "+typeof f);return f}function nt(...f){let _=0;for(let K=0;Kf().update(Le(K)).digest(),x=f();return _.outputLen=x.outputLen,_.blockLen=x.blockLen,_.create=()=>f(),_}class pi extends At{constructor(_,x){super(),this.finished=!1,this.destroyed=!1,function ee(f){if("function"!=typeof f||"function"!=typeof f.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");y(f.outputLen),y(f.blockLen)}(_);const K=Le(x);if(this.iHash=_.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const de=this.blockLen,ze=new Uint8Array(de);ze.set(K.length>de?_.create().update(K).digest():K);for(let _t=0;_tnew pi(f,_).update(x).digest();_e.create=(f,_)=>new pi(f,_);class J extends At{constructor(_,x,K,de){super(),this.blockLen=_,this.outputLen=x,this.padOffset=K,this.isLE=de,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(_),this.view=Ee(this.buffer)}update(_){oe(this);const{view:x,buffer:K,blockLen:de}=this,ze=(_=Le(_)).length;for(let _t=0;_tde-_t&&(this.process(K,0),_t=0);for(let xt=_t;xt>de&ze),wt=Number(x&ze),Yt=K?0:4;f.setUint32(_+(K?4:0),_t,K),f.setUint32(_+Yt,wt,K)})(K,de-8,BigInt(8*this.length),ze),this.process(K,0);const wt=Ee(_),kt=this.outputLen;if(kt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Yt=kt/4,vn=this.get();if(Yt>vn.length)throw new Error("_sha2: outputLen bigger than state");for(let xt=0;xt_);let ht=[Ot],Xe=[Ot.map(f=>(9*f+5)%16)];for(let f=0;f<4;f++)for(let _ of[ht,Xe])_.push(_[f].map(x=>Ie[x]));const Je=[[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(f=>new Uint8Array(f)),Me=ht.map((f,_)=>f.map(x=>Je[_][x])),ie=Xe.map((f,_)=>f.map(x=>Je[_][x])),ve=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),le=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),Ce=(f,_)=>f<<_|f>>>32-_;function dt(f,_,x,K){return 0===f?_^x^K:1===f?_&x|~_&K:2===f?(_|~x)^K:3===f?_&K|x&~K:_^(x|~K)}const un=new Uint32Array(16);class it extends J{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:_,h1:x,h2:K,h3:de,h4:ze}=this;return[_,x,K,de,ze]}set(_,x,K,de,ze){this.h0=0|_,this.h1=0|x,this.h2=0|K,this.h3=0|de,this.h4=0|ze}process(_,x){for(let cn=0;cn<16;cn++,x+=4)un[cn]=_.getUint32(x,!0);let K=0|this.h0,de=K,ze=0|this.h1,_t=ze,wt=0|this.h2,kt=wt,Yt=0|this.h3,vn=Yt,xt=0|this.h4,Ht=xt;for(let cn=0;cn<5;cn++){const Rn=4-cn,pn=ve[cn],Tn=le[cn],Nn=ht[cn],Yn=Xe[cn],Sn=Me[cn],ui=ie[cn];for(let di=0;di<16;di++){const On=Ce(K+dt(cn,ze,wt,Yt)+un[Nn[di]]+pn,Sn[di])+xt|0;K=xt,xt=Yt,Yt=0|Ce(wt,10),wt=ze,ze=On}for(let di=0;di<16;di++){const On=Ce(de+dt(Rn,_t,kt,vn)+un[Yn[di]]+Tn,ui[di])+Ht|0;de=Ht,Ht=vn,vn=0|Ce(kt,10),kt=_t,_t=On}}this.set(this.h1+wt+vn|0,this.h2+Yt+Ht|0,this.h3+xt+de|0,this.h4+K+_t|0,this.h0+ze+kt|0)}roundClean(){un.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const It=Zt(()=>new it),Ft=(f,_,x)=>f&_^~f&x,Rt=(f,_,x)=>f&_^f&x^_&x,kn=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]),hi=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),qt=new Uint32Array(64);class we extends J{constructor(){super(64,32,8,!1),this.A=0|hi[0],this.B=0|hi[1],this.C=0|hi[2],this.D=0|hi[3],this.E=0|hi[4],this.F=0|hi[5],this.G=0|hi[6],this.H=0|hi[7]}get(){const{A:_,B:x,C:K,D:de,E:ze,F:_t,G:wt,H:kt}=this;return[_,x,K,de,ze,_t,wt,kt]}set(_,x,K,de,ze,_t,wt,kt){this.A=0|_,this.B=0|x,this.C=0|K,this.D=0|de,this.E=0|ze,this.F=0|_t,this.G=0|wt,this.H=0|kt}process(_,x){for(let xt=0;xt<16;xt++,x+=4)qt[xt]=_.getUint32(x,!1);for(let xt=16;xt<64;xt++){const Ht=qt[xt-15],cn=qt[xt-2],Rn=Re(Ht,7)^Re(Ht,18)^Ht>>>3,pn=Re(cn,17)^Re(cn,19)^cn>>>10;qt[xt]=pn+qt[xt-7]+Rn+qt[xt-16]|0}let{A:K,B:de,C:ze,D:_t,E:wt,F:kt,G:Yt,H:vn}=this;for(let xt=0;xt<64;xt++){const cn=vn+(Re(wt,6)^Re(wt,11)^Re(wt,25))+Ft(wt,kt,Yt)+kn[xt]+qt[xt]|0,pn=(Re(K,2)^Re(K,13)^Re(K,22))+Rt(K,de,ze)|0;vn=Yt,Yt=kt,kt=wt,wt=_t+cn|0,_t=ze,ze=de,de=K,K=cn+pn|0}K=K+this.A|0,de=de+this.B|0,ze=ze+this.C|0,_t=_t+this.D|0,wt=wt+this.E|0,kt=kt+this.F|0,Yt=Yt+this.G|0,vn=vn+this.H|0,this.set(K,de,ze,_t,wt,kt,Yt,vn)}roundClean(){qt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const rt=Zt(()=>new we),on=BigInt(2**32-1),Q=BigInt(32);function T(f,_=!1){return _?{h:Number(f&on),l:Number(f>>Q&on)}:{h:0|Number(f>>Q&on),l:0|Number(f&on)}}const Et_split=function N(f,_=!1){let x=new Uint32Array(f.length),K=new Uint32Array(f.length);for(let de=0;def>>>x,Et_shrSL=(f,_,x)=>f<<32-x|_>>>x,Et_rotrSH=(f,_,x)=>f>>>x|_<<32-x,Et_rotrSL=(f,_,x)=>f<<32-x|_>>>x,Et_rotrBH=(f,_,x)=>f<<64-x|_>>>x-32,Et_rotrBL=(f,_,x)=>f>>>x-32|_<<64-x,Et_add=function Be(f,_,x,K){const de=(_>>>0)+(K>>>0);return{h:f+x+(de/2**32|0)|0,l:0|de}},Et_add3L=(f,_,x)=>(f>>>0)+(_>>>0)+(x>>>0),Et_add3H=(f,_,x,K)=>_+x+K+(f/2**32|0)|0,Et_add4L=(f,_,x,K)=>(f>>>0)+(_>>>0)+(x>>>0)+(K>>>0),Et_add4H=(f,_,x,K,de)=>_+x+K+de+(f/2**32|0)|0,Et_add5H=(f,_,x,K,de,ze)=>_+x+K+de+ze+(f/2**32|0)|0,Et_add5L=(f,_,x,K,de)=>(f>>>0)+(_>>>0)+(x>>>0)+(K>>>0)+(de>>>0),[at,Lt]=Et_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(f=>BigInt(f))),st=new Uint32Array(80),Qe=new Uint32Array(80);class Oe extends J{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:_,Al:x,Bh:K,Bl:de,Ch:ze,Cl:_t,Dh:wt,Dl:kt,Eh:Yt,El:vn,Fh:xt,Fl:Ht,Gh:cn,Gl:Rn,Hh:pn,Hl:Tn}=this;return[_,x,K,de,ze,_t,wt,kt,Yt,vn,xt,Ht,cn,Rn,pn,Tn]}set(_,x,K,de,ze,_t,wt,kt,Yt,vn,xt,Ht,cn,Rn,pn,Tn){this.Ah=0|_,this.Al=0|x,this.Bh=0|K,this.Bl=0|de,this.Ch=0|ze,this.Cl=0|_t,this.Dh=0|wt,this.Dl=0|kt,this.Eh=0|Yt,this.El=0|vn,this.Fh=0|xt,this.Fl=0|Ht,this.Gh=0|cn,this.Gl=0|Rn,this.Hh=0|pn,this.Hl=0|Tn}process(_,x){for(let Sn=0;Sn<16;Sn++,x+=4)st[Sn]=_.getUint32(x),Qe[Sn]=_.getUint32(x+=4);for(let Sn=16;Sn<80;Sn++){const ui=0|st[Sn-15],di=0|Qe[Sn-15],On=Et_rotrSH(ui,di,1)^Et_rotrSH(ui,di,8)^Et_shrSH(ui,di,7),Si=Et_rotrSL(ui,di,1)^Et_rotrSL(ui,di,8)^Et_shrSL(ui,di,7),Ai=0|st[Sn-2],qi=0|Qe[Sn-2],Pi=Et_rotrSH(Ai,qi,19)^Et_rotrBH(Ai,qi,61)^Et_shrSH(Ai,qi,6),er=Et_rotrSL(Ai,qi,19)^Et_rotrBL(Ai,qi,61)^Et_shrSL(Ai,qi,6),lo=Et_add4L(Si,er,Qe[Sn-7],Qe[Sn-16]),Er=Et_add4H(lo,On,Pi,st[Sn-7],st[Sn-16]);st[Sn]=0|Er,Qe[Sn]=0|lo}let{Ah:K,Al:de,Bh:ze,Bl:_t,Ch:wt,Cl:kt,Dh:Yt,Dl:vn,Eh:xt,El:Ht,Fh:cn,Fl:Rn,Gh:pn,Gl:Tn,Hh:Nn,Hl:Yn}=this;for(let Sn=0;Sn<80;Sn++){const ui=Et_rotrSH(xt,Ht,14)^Et_rotrSH(xt,Ht,18)^Et_rotrBH(xt,Ht,41),di=Et_rotrSL(xt,Ht,14)^Et_rotrSL(xt,Ht,18)^Et_rotrBL(xt,Ht,41),On=xt&cn^~xt&pn,Ai=Et_add5L(Yn,di,Ht&Rn^~Ht&Tn,Lt[Sn],Qe[Sn]),qi=Et_add5H(Ai,Nn,ui,On,at[Sn],st[Sn]),Pi=0|Ai,er=Et_rotrSH(K,de,28)^Et_rotrBH(K,de,34)^Et_rotrBH(K,de,39),lo=Et_rotrSL(K,de,28)^Et_rotrBL(K,de,34)^Et_rotrBL(K,de,39),Er=K&ze^K&wt^ze&wt,sr=de&_t^de&kt^_t&kt;Nn=0|pn,Yn=0|Tn,pn=0|cn,Tn=0|Rn,cn=0|xt,Rn=0|Ht,({h:xt,l:Ht}=Et_add(0|Yt,0|vn,0|qi,0|Pi)),Yt=0|wt,vn=0|kt,wt=0|ze,kt=0|_t,ze=0|K,_t=0|de;const Zn=Et_add3L(Pi,lo,sr);K=Et_add3H(Zn,qi,er,Er),de=0|Zn}({h:K,l:de}=Et_add(0|this.Ah,0|this.Al,0|K,0|de)),({h:ze,l:_t}=Et_add(0|this.Bh,0|this.Bl,0|ze,0|_t)),({h:wt,l:kt}=Et_add(0|this.Ch,0|this.Cl,0|wt,0|kt)),({h:Yt,l:vn}=Et_add(0|this.Dh,0|this.Dl,0|Yt,0|vn)),({h:xt,l:Ht}=Et_add(0|this.Eh,0|this.El,0|xt,0|Ht)),({h:cn,l:Rn}=Et_add(0|this.Fh,0|this.Fl,0|cn,0|Rn)),({h:pn,l:Tn}=Et_add(0|this.Gh,0|this.Gl,0|pn,0|Tn)),({h:Nn,l:Yn}=Et_add(0|this.Hh,0|this.Hl,0|Nn,0|Yn)),this.set(K,de,ze,_t,wt,kt,Yt,vn,xt,Ht,cn,Rn,pn,Tn,Nn,Yn)}roundClean(){st.fill(0),Qe.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const ai=Zt(()=>new Oe);function Pr(f){if(!Number.isSafeInteger(f)||f<0)throw new Error(`Wrong positive integer: ${f}`)}function Yr(f,..._){if(!(f instanceof Uint8Array))throw new Error("Expected Uint8Array");if(_.length>0&&!_.includes(f.length))throw new Error(`Expected Uint8Array of length ${_}, not of length=${f.length}`)}const yn={number:Pr,bool:function wi(f){if("boolean"!=typeof f)throw new Error(`Expected boolean, not ${f}`)},bytes:Yr,hash:function Or(f){if("function"!=typeof f||"function"!=typeof f.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Pr(f.outputLen),Pr(f.blockLen)},exists:function ft(f,_=!0){if(f.destroyed)throw new Error("Hash instance has been destroyed");if(_&&f.finished)throw new Error("Hash#digest() has already been called")},output:function St(f,_){Yr(f);const x=_.outputLen;if(f.lengthf instanceof Uint8Array,li=f=>new DataView(f.buffer,f.byteOffset,f.byteLength),Bn=(f,_)=>f<<32-_|f>>>_;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function lt(f){if("string"==typeof f&&(f=function pt(f){if("string"!=typeof f)throw new Error("utf8ToBytes expected string, got "+typeof f);return new Uint8Array((new TextEncoder).encode(f))}(f)),!Xn(f))throw new Error("expected Uint8Array, got "+typeof f);return f}Array.from({length:256},(f,_)=>_.toString(16).padStart(2,"0"));class hn{clone(){return this._cloneInto()}}function Dn(f){const _=K=>f().update(lt(K)).digest(),x=f();return _.outputLen=x.outputLen,_.blockLen=x.blockLen,_.create=()=>f(),_}function ci(f=32){if(An&&"function"==typeof An.getRandomValues)return An.getRandomValues(new Uint8Array(f));throw new Error("crypto.getRandomValues must be defined")}class ei extends hn{constructor(_,x,K,de){super(),this.blockLen=_,this.outputLen=x,this.padOffset=K,this.isLE=de,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(_),this.view=li(this.buffer)}update(_){yn.exists(this);const{view:x,buffer:K,blockLen:de}=this,ze=(_=lt(_)).length;for(let _t=0;_tde-_t&&(this.process(K,0),_t=0);for(let xt=_t;xt>de&ze),wt=Number(x&ze),Yt=K?0:4;f.setUint32(_+(K?4:0),_t,K),f.setUint32(_+Yt,wt,K)})(K,de-8,BigInt(8*this.length),ze),this.process(K,0);const wt=li(_),kt=this.outputLen;if(kt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Yt=kt/4,vn=this.get();if(Yt>vn.length)throw new Error("_sha2: outputLen bigger than state");for(let xt=0;xtf&_^~f&x,Rr=(f,_,x)=>f&_^f&x^_&x,uo=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]),Fr=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ci=new Uint32Array(64);class Lr extends ei{constructor(){super(64,32,8,!1),this.A=0|Fr[0],this.B=0|Fr[1],this.C=0|Fr[2],this.D=0|Fr[3],this.E=0|Fr[4],this.F=0|Fr[5],this.G=0|Fr[6],this.H=0|Fr[7]}get(){const{A:_,B:x,C:K,D:de,E:ze,F:_t,G:wt,H:kt}=this;return[_,x,K,de,ze,_t,wt,kt]}set(_,x,K,de,ze,_t,wt,kt){this.A=0|_,this.B=0|x,this.C=0|K,this.D=0|de,this.E=0|ze,this.F=0|_t,this.G=0|wt,this.H=0|kt}process(_,x){for(let xt=0;xt<16;xt++,x+=4)Ci[xt]=_.getUint32(x,!1);for(let xt=16;xt<64;xt++){const Ht=Ci[xt-15],cn=Ci[xt-2],Rn=Bn(Ht,7)^Bn(Ht,18)^Ht>>>3,pn=Bn(cn,17)^Bn(cn,19)^cn>>>10;Ci[xt]=pn+Ci[xt-7]+Rn+Ci[xt-16]|0}let{A:K,B:de,C:ze,D:_t,E:wt,F:kt,G:Yt,H:vn}=this;for(let xt=0;xt<64;xt++){const cn=vn+(Bn(wt,6)^Bn(wt,11)^Bn(wt,25))+Gn(wt,kt,Yt)+uo[xt]+Ci[xt]|0,pn=(Bn(K,2)^Bn(K,13)^Bn(K,22))+Rr(K,de,ze)|0;vn=Yt,Yt=kt,kt=wt,wt=_t+cn|0,_t=ze,ze=de,de=K,K=cn+pn|0}K=K+this.A|0,de=de+this.B|0,ze=ze+this.C|0,_t=_t+this.D|0,wt=wt+this.E|0,kt=kt+this.F|0,Yt=Yt+this.G|0,vn=vn+this.H|0,this.set(K,de,ze,_t,wt,kt,Yt,vn)}roundClean(){Ci.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class $o extends Lr{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 zi=Dn(()=>new Lr),oo=(Dn(()=>new $o),BigInt(0),BigInt(1)),ma=BigInt(2),ga=f=>f instanceof Uint8Array,Ul=Array.from({length:256},(f,_)=>_.toString(16).padStart(2,"0"));function vo(f){if(!ga(f))throw new Error("Uint8Array expected");let _="";for(let x=0;xK+de.length,0));let x=0;return f.forEach(K=>{if(!ga(K))throw new Error("Uint8Array expected");_.set(K,x),x+=K.length}),_}const Bo=f=>(ma<new Uint8Array(f),va=f=>Uint8Array.from(f);function gs(f,_,x){if("number"!=typeof f||f<2)throw new Error("hashLen must be a number");if("number"!=typeof _||_<2)throw new Error("qByteLen must be a number");if("function"!=typeof x)throw new Error("hmacFn must be a function");let K=Uo(f),de=Uo(f),ze=0;const _t=()=>{K.fill(1),de.fill(0),ze=0},wt=(...xt)=>x(de,K,...xt),kt=(xt=Uo())=>{de=wt(va([0]),xt),K=wt(),0!==xt.length&&(de=wt(va([1]),xt),K=wt())},Yt=()=>{if(ze++>=1e3)throw new Error("drbg: tried 1000 values");let xt=0;const Ht=[];for(;xt<_;){K=wt();const cn=K.slice();Ht.push(cn),xt+=K.length}return Tr(...Ht)};return(xt,Ht)=>{let cn;for(_t(),kt(xt);!(cn=Ht(Yt()));)kt();return _t(),cn}}const Hs={bigint:f=>"bigint"==typeof f,function:f=>"function"==typeof f,boolean:f=>"boolean"==typeof f,string:f=>"string"==typeof f,isSafeInteger:f=>Number.isSafeInteger(f),array:f=>Array.isArray(f),field:(f,_)=>_.Fp.isValid(f),hash:f=>"function"==typeof f&&Number.isSafeInteger(f.outputLen)};function Qr(f,_,x={}){const K=(de,ze,_t)=>{const wt=Hs[ze];if("function"!=typeof wt)throw new Error(`Invalid validator "${ze}", expected function`);const kt=f[de];if(!(_t&&void 0===kt||wt(kt,f)))throw new Error(`Invalid param ${String(de)}=${kt} (${typeof kt}), expected ${ze}`)};for(const[de,ze]of Object.entries(_))K(de,ze,!1);for(const[de,ze]of Object.entries(x))K(de,ze,!0);return f}const Li=BigInt(0),gr=BigInt(1),zo=BigInt(2),so=BigInt(3),oa=BigInt(4),lr=BigInt(5),Io=BigInt(8);function Mi(f,_){const x=f%_;return x>=Li?x:_+x}function os(f,_,x){if(x<=Li||_ 0");if(x===gr)return Li;let K=gr;for(;_>Li;)_&gr&&(K=K*f%x),f=f*f%x,_>>=gr;return K}function Zr(f,_,x){let K=f;for(;_-- >Li;)K*=K,K%=x;return K}function Wo(f,_){if(f===Li||_<=Li)throw new Error(`invert: expected positive integers, got n=${f} mod=${_}`);let x=Mi(f,_),K=_,de=Li,ze=gr,_t=gr,wt=Li;for(;x!==Li;){const Yt=K/x,vn=K%x,xt=de-_t*Yt,Ht=ze-wt*Yt;K=x,x=vn,de=_t,ze=wt,_t=xt,wt=Ht}if(K!==gr)throw new Error("invert: does not exist");return Mi(de,_)}BigInt(9),BigInt(16);const Ta=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function br(f,_){const x=void 0!==_?_:f.toString(2).length;return{nBitLength:x,nByteLength:Math.ceil(x/8)}}const Mo=BigInt(0),as=BigInt(1);function sa(f){return function Ji(f){Qr(f,Ta.reduce((K,de)=>(K[de]="function",K),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(f.Fp),Qr(f,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...br(f.n,f.nBitLength),...f,p:f.Fp.ORDER})}const{Ph:Ds,aT:vs}=u,xs={Err:class extends Error{constructor(_=""){super(_)}},_parseInt(f){const{Err:_}=xs;if(f.length<2||2!==f[0])throw new _("Invalid signature integer tag");const x=f[1],K=f.subarray(2,x+2);if(!x||K.length!==x)throw new _("Invalid signature integer: wrong length");if(128&K[0])throw new _("Invalid signature integer: negative");if(0===K[0]&&!(128&K[1]))throw new _("Invalid signature integer: unnecessary leading zero");return{d:Ds(K),l:f.subarray(x+2)}},toSig(f){const{Err:_}=xs,x="string"==typeof f?vs(f):f;if(!(x instanceof Uint8Array))throw new Error("ui8a expected");let K=x.length;if(K<2||48!=x[0])throw new _("Invalid signature tag");if(x[1]!==K-2)throw new _("Invalid signature: incorrect length");const{d:de,l:ze}=xs._parseInt(x.subarray(2)),{d:_t,l:wt}=xs._parseInt(ze);if(wt.length)throw new _("Invalid signature: left bytes after parsing");return{r:de,s:_t}},hexFromSig(f){const _=Yt=>8&Number.parseInt(Yt[0],16)?"00"+Yt:Yt,x=Yt=>{const vn=Yt.toString(16);return 1&vn.length?`0${vn}`:vn},K=_(x(f.s)),de=_(x(f.r)),ze=K.length/2,_t=de.length/2,wt=x(ze),kt=x(_t);return`30${x(_t+ze+4)}02${kt}${de}02${wt}${K}`}},Xo=BigInt(0),fr=BigInt(1),z=(BigInt(2),BigInt(3));function yt(f){const _=function pe(f){const _=sa(f);return Qr(_,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,..._})}(f),{Fp:x,n:K}=_,de=x.BYTES+1,ze=2*x.BYTES+1;function wt(Zn){return Mi(Zn,K)}function kt(Zn){return Wo(Zn,K)}const{ProjectivePoint:Yt,normPrivateKeyToScalar:vn,weierstrassEquation:xt,isWithinCurveOrder:Ht}=function k(f){const _=function Ia(f){const _=sa(f);Qr(_,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:x,Fp:K,a:de}=_;if(x){if(!K.eql(de,K.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof x||"bigint"!=typeof x.beta||"function"!=typeof x.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({..._})}(f),{Fp:x}=_,K=_.toBytes||((Rn,pn,Tn)=>{const Nn=pn.toAffine();return Tr(Uint8Array.from([4]),x.toBytes(Nn.x),x.toBytes(Nn.y))}),de=_.fromBytes||(Rn=>{const pn=Rn.subarray(1);return{x:x.fromBytes(pn.subarray(0,x.BYTES)),y:x.fromBytes(pn.subarray(x.BYTES,2*x.BYTES))}});function ze(Rn){const{a:pn,b:Tn}=_,Nn=x.sqr(Rn),Yn=x.mul(Nn,Rn);return x.add(x.add(Yn,x.mul(Rn,pn)),Tn)}if(!x.eql(x.sqr(_.Gy),ze(_.Gx)))throw new Error("bad generator point: equation left != right");function _t(Rn){return"bigint"==typeof Rn&&Xox.eql(Sn,x.ZERO);return Yn(Tn)&&Yn(Nn)?xt.ZERO:new xt(Tn,Nn,x.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(pn){const Tn=x.invertBatch(pn.map(Nn=>Nn.pz));return pn.map((Nn,Yn)=>Nn.toAffine(Tn[Yn])).map(xt.fromAffine)}static fromHex(pn){const Tn=xt.fromAffine(de(Ar("pointHex",pn)));return Tn.assertValidity(),Tn}static fromPrivateKey(pn){return xt.BASE.multiply(kt(pn))}_setWindowSize(pn){this._WINDOW_SIZE=pn,Yt.delete(this)}assertValidity(){if(this.is0()){if(_.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:pn,y:Tn}=this.toAffine();if(!x.isValid(pn)||!x.isValid(Tn))throw new Error("bad point: x or y not FE");const Nn=x.sqr(Tn),Yn=ze(pn);if(!x.eql(Nn,Yn))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:pn}=this.toAffine();if(x.isOdd)return!x.isOdd(pn);throw new Error("Field doesn't support isOdd")}equals(pn){vn(pn);const{px:Tn,py:Nn,pz:Yn}=this,{px:Sn,py:ui,pz:di}=pn,On=x.eql(x.mul(Tn,di),x.mul(Sn,Yn)),Si=x.eql(x.mul(Nn,di),x.mul(ui,Yn));return On&&Si}negate(){return new xt(this.px,x.neg(this.py),this.pz)}double(){const{a:pn,b:Tn}=_,Nn=x.mul(Tn,z),{px:Yn,py:Sn,pz:ui}=this;let di=x.ZERO,On=x.ZERO,Si=x.ZERO,Ai=x.mul(Yn,Yn),qi=x.mul(Sn,Sn),Pi=x.mul(ui,ui),er=x.mul(Yn,Sn);return er=x.add(er,er),Si=x.mul(Yn,ui),Si=x.add(Si,Si),di=x.mul(pn,Si),On=x.mul(Nn,Pi),On=x.add(di,On),di=x.sub(qi,On),On=x.add(qi,On),On=x.mul(di,On),di=x.mul(er,di),Si=x.mul(Nn,Si),Pi=x.mul(pn,Pi),er=x.sub(Ai,Pi),er=x.mul(pn,er),er=x.add(er,Si),Si=x.add(Ai,Ai),Ai=x.add(Si,Ai),Ai=x.add(Ai,Pi),Ai=x.mul(Ai,er),On=x.add(On,Ai),Pi=x.mul(Sn,ui),Pi=x.add(Pi,Pi),Ai=x.mul(Pi,er),di=x.sub(di,Ai),Si=x.mul(Pi,qi),Si=x.add(Si,Si),Si=x.add(Si,Si),new xt(di,On,Si)}add(pn){vn(pn);const{px:Tn,py:Nn,pz:Yn}=this,{px:Sn,py:ui,pz:di}=pn;let On=x.ZERO,Si=x.ZERO,Ai=x.ZERO;const qi=_.a,Pi=x.mul(_.b,z);let er=x.mul(Tn,Sn),lo=x.mul(Nn,ui),Er=x.mul(Yn,di),sr=x.add(Tn,Nn),Zn=x.add(Sn,ui);sr=x.mul(sr,Zn),Zn=x.add(er,lo),sr=x.sub(sr,Zn),Zn=x.add(Tn,Yn);let gi=x.add(Sn,di);return Zn=x.mul(Zn,gi),gi=x.add(er,Er),Zn=x.sub(Zn,gi),gi=x.add(Nn,Yn),On=x.add(ui,di),gi=x.mul(gi,On),On=x.add(lo,Er),gi=x.sub(gi,On),Ai=x.mul(qi,Zn),On=x.mul(Pi,Er),Ai=x.add(On,Ai),On=x.sub(lo,Ai),Ai=x.add(lo,Ai),Si=x.mul(On,Ai),lo=x.add(er,er),lo=x.add(lo,er),Er=x.mul(qi,Er),Zn=x.mul(Pi,Zn),lo=x.add(lo,Er),Er=x.sub(er,Er),Er=x.mul(qi,Er),Zn=x.add(Zn,Er),er=x.mul(lo,Zn),Si=x.add(Si,er),er=x.mul(gi,Zn),On=x.mul(sr,On),On=x.sub(On,er),er=x.mul(sr,lo),Ai=x.mul(gi,Ai),Ai=x.add(Ai,er),new xt(On,Si,Ai)}subtract(pn){return this.add(pn.negate())}is0(){return this.equals(xt.ZERO)}wNAF(pn){return cn.wNAFCached(this,Yt,pn,Tn=>{const Nn=x.invertBatch(Tn.map(Yn=>Yn.pz));return Tn.map((Yn,Sn)=>Yn.toAffine(Nn[Sn])).map(xt.fromAffine)})}multiplyUnsafe(pn){const Tn=xt.ZERO;if(pn===Xo)return Tn;if(wt(pn),pn===fr)return this;const{endo:Nn}=_;if(!Nn)return cn.unsafeLadder(this,pn);let{k1neg:Yn,k1:Sn,k2neg:ui,k2:di}=Nn.splitScalar(pn),On=Tn,Si=Tn,Ai=this;for(;Sn>Xo||di>Xo;)Sn&fr&&(On=On.add(Ai)),di&fr&&(Si=Si.add(Ai)),Ai=Ai.double(),Sn>>=fr,di>>=fr;return Yn&&(On=On.negate()),ui&&(Si=Si.negate()),Si=new xt(x.mul(Si.px,Nn.beta),Si.py,Si.pz),On.add(Si)}multiply(pn){wt(pn);let Nn,Yn,Tn=pn;const{endo:Sn}=_;if(Sn){const{k1neg:ui,k1:di,k2neg:On,k2:Si}=Sn.splitScalar(Tn);let{p:Ai,f:qi}=this.wNAF(di),{p:Pi,f:er}=this.wNAF(Si);Ai=cn.constTimeNegate(ui,Ai),Pi=cn.constTimeNegate(On,Pi),Pi=new xt(x.mul(Pi.px,Sn.beta),Pi.py,Pi.pz),Nn=Ai.add(Pi),Yn=qi.add(er)}else{const{p:ui,f:di}=this.wNAF(Tn);Nn=ui,Yn=di}return xt.normalizeZ([Nn,Yn])[0]}multiplyAndAddUnsafe(pn,Tn,Nn){const Yn=xt.BASE,Sn=(di,On)=>On!==Xo&&On!==fr&&di.equals(Yn)?di.multiply(On):di.multiplyUnsafe(On),ui=Sn(this,Tn).add(Sn(pn,Nn));return ui.is0()?void 0:ui}toAffine(pn){const{px:Tn,py:Nn,pz:Yn}=this,Sn=this.is0();null==pn&&(pn=Sn?x.ONE:x.inv(Yn));const ui=x.mul(Tn,pn),di=x.mul(Nn,pn),On=x.mul(Yn,pn);if(Sn)return{x:x.ZERO,y:x.ZERO};if(!x.eql(On,x.ONE))throw new Error("invZ was invalid");return{x:ui,y:di}}isTorsionFree(){const{h:pn,isTorsionFree:Tn}=_;if(pn===fr)return!0;if(Tn)return Tn(xt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:pn,clearCofactor:Tn}=_;return pn===fr?this:Tn?Tn(xt,this):this.multiplyUnsafe(_.h)}toRawBytes(pn=!0){return this.assertValidity(),K(xt,this,pn)}toHex(pn=!0){return vo(this.toRawBytes(pn))}}xt.BASE=new xt(_.Gx,_.Gy,x.ONE),xt.ZERO=new xt(x.ZERO,x.ONE,x.ZERO);const Ht=_.nBitLength,cn=function dl(f,_){const x=(de,ze)=>{const _t=ze.negate();return de?_t:ze},K=de=>({windows:Math.ceil(_/de)+1,windowSize:2**(de-1)});return{constTimeNegate:x,unsafeLadder(de,ze){let _t=f.ZERO,wt=de;for(;ze>Mo;)ze&as&&(_t=_t.add(wt)),wt=wt.double(),ze>>=as;return _t},precomputeWindow(de,ze){const{windows:_t,windowSize:wt}=K(ze),kt=[];let Yt=de,vn=Yt;for(let xt=0;xt<_t;xt++){vn=Yt,kt.push(vn);for(let Ht=1;Ht>=cn,Tn>kt&&(Tn-=Ht,_t+=as);const Nn=pn,Yn=pn+Math.abs(Tn)-1,ui=Tn<0;0===Tn?vn=vn.add(x(Rn%2!=0,ze[Nn])):Yt=Yt.add(x(ui,ze[Yn]))}return{p:Yt,f:vn}},wNAFCached(de,ze,_t,wt){const kt=de._WINDOW_SIZE||1;let Yt=ze.get(de);return Yt||(Yt=this.precomputeWindow(de,kt),1!==kt&&ze.set(de,wt(Yt))),this.wNAF(kt,Yt,_t)}}}(xt,_.endo?Math.ceil(Ht/2):Ht);return{CURVE:_,ProjectivePoint:xt,normPrivateKeyToScalar:kt,weierstrassEquation:ze,isWithinCurveOrder:_t}}({..._,toBytes(Zn,gi,tr){const pr=gi.toAffine(),Jn=x.toBytes(pr.x),Cr=Tr;return tr?Cr(Uint8Array.from([gi.hasEvenY()?2:3]),Jn):Cr(Uint8Array.from([4]),Jn,x.toBytes(pr.y))},fromBytes(Zn){const gi=Zn.length,tr=Zn[0],pr=Zn.subarray(1);if(gi!==de||2!==tr&&3!==tr){if(gi===ze&&4===tr)return{x:x.fromBytes(pr.subarray(0,x.BYTES)),y:x.fromBytes(pr.subarray(x.BYTES,2*x.BYTES))};throw new Error(`Point of length ${gi} was invalid. Expected ${de} compressed bytes or ${ze} uncompressed bytes`)}{const Jn=hr(pr);if(!function _t(Zn){return Xovo(no(Zn,_.nByteLength));function Rn(Zn){return Zn>K>>fr}const Tn=(Zn,gi,tr)=>hr(Zn.slice(gi,tr));class Nn{constructor(gi,tr,pr){this.r=gi,this.s=tr,this.recovery=pr,this.assertValidity()}static fromCompact(gi){const tr=_.nByteLength;return gi=Ar("compactSignature",gi,2*tr),new Nn(Tn(gi,0,tr),Tn(gi,tr,2*tr))}static fromDER(gi){const{r:tr,s:pr}=xs.toSig(Ar("DER",gi));return new Nn(tr,pr)}assertValidity(){if(!Ht(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Ht(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(gi){return new Nn(this.r,this.s,gi)}recoverPublicKey(gi){const{r:tr,s:pr,recovery:Jn}=this,Cr=Si(Ar("msgHash",gi));if(null==Jn||![0,1,2,3].includes(Jn))throw new Error("recovery id invalid");const Br=2===Jn||3===Jn?tr+_.n:tr;if(Br>=x.ORDER)throw new Error("recovery id 2 or 3 invalid");const Ys=Yt.fromHex((1&Jn?"03":"02")+cn(Br)),cs=kt(Br),kr=wt(-Cr*cs),Qs=wt(pr*cs),Ur=Yt.BASE.multiplyAndAddUnsafe(Ys,kr,Qs);if(!Ur)throw new Error("point at infinify");return Ur.assertValidity(),Ur}hasHighS(){return Rn(this.s)}normalizeS(){return this.hasHighS()?new Nn(this.r,wt(-this.s),this.recovery):this}toDERRawBytes(){return Us(this.toDERHex())}toDERHex(){return xs.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Us(this.toCompactHex())}toCompactHex(){return cn(this.r)+cn(this.s)}}const Yn={isValidPrivateKey(Zn){try{return vn(Zn),!0}catch{return!1}},normPrivateKeyToScalar:vn,randomPrivateKey:()=>{const gi=function Ko(f,_,x=!1){const K=(f=Ar("privateHash",f)).length,de=br(_).nByteLength+8;if(de<24||K1024)throw new Error(`hashToPrivateScalar: expected ${de}-1024 bytes of input, got ${K}`);return Mi(x?is(f):hr(f),_-gr)+gr}(_.randomBytes(x.BYTES+8),K);return no(gi,_.nByteLength)},precompute:(Zn=8,gi=Yt.BASE)=>(gi._setWindowSize(Zn),gi.multiply(BigInt(3)),gi)};function ui(Zn){const gi=Zn instanceof Uint8Array,tr="string"==typeof Zn,pr=(gi||tr)&&Zn.length;return gi?pr===de||pr===ze:tr?pr===2*de||pr===2*ze:Zn instanceof Yt}const On=_.bits2int||function(Zn){const gi=hr(Zn),tr=8*Zn.length-_.nBitLength;return tr>0?gi>>BigInt(tr):gi},Si=_.bits2int_modN||function(Zn){return wt(On(Zn))},Ai=Bo(_.nBitLength);function qi(Zn){if("bigint"!=typeof Zn)throw new Error("bigint expected");if(!(Xo<=Zn&&Znws in tr))throw new Error("sign() legacy options not supported");const{hash:pr,randomBytes:Jn}=_;let{lowS:Cr,prehash:Br,extraEntropy:$r}=tr;null==Cr&&(Cr=!0),Zn=Ar("msgHash",Zn),Br&&(Zn=Ar("prehashed msgHash",pr(Zn)));const Ys=Si(Zn),cs=vn(gi),kr=[qi(cs),qi(Ys)];if(null!=$r){const ws=!0===$r?Jn(x.BYTES):$r;kr.push(Ar("extraEntropy",ws,x.BYTES))}const Qs=Tr(...kr),Ur=Ys;return{seed:Qs,k2sig:function yo(ws){const Do=On(ws);if(!Ht(Do))return;const yi=kt(Do),eo=Yt.BASE.multiply(Do).toAffine(),ha=wt(eo.x);if(ha===Xo)return;const Jo=wt(yi*wt(Ur+ha*cs));if(Jo===Xo)return;let Qa=(eo.x===ha?0:2)|Number(eo.y&fr),pl=Jo;return Cr&&Rn(Jo)&&(pl=function pn(Zn){return Rn(Zn)?wt(-Zn):Zn}(Jo),Qa^=1),new Nn(ha,pl,Qa)}}}(Zn,gi,tr);return gs(_.hash.outputLen,_.nByteLength,_.hmac)(pr,Jn)},verify:function sr(Zn,gi,tr,pr=lo){const Jn=Zn;if(gi=Ar("msgHash",gi),tr=Ar("publicKey",tr),"strict"in pr)throw new Error("options.strict was renamed to lowS");const{lowS:Cr,prehash:Br}=pr;let $r,Ys;try{if("string"==typeof Jn||Jn instanceof Uint8Array)try{$r=Nn.fromDER(Jn)}catch(eo){if(!(eo instanceof xs.Err))throw eo;$r=Nn.fromCompact(Jn)}else{if("object"!=typeof Jn||"bigint"!=typeof Jn.r||"bigint"!=typeof Jn.s)throw new Error("PARSE");{const{r:eo,s:ha}=Jn;$r=new Nn(eo,ha)}}Ys=Yt.fromHex(tr)}catch(eo){if("PARSE"===eo.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Cr&&$r.hasHighS())return!1;Br&&(gi=_.hash(gi));const{r:cs,s:kr}=$r,Qs=Si(gi),Ur=kt(kr),yo=wt(Qs*Ur),ws=wt(cs*Ur),Do=Yt.BASE.multiplyAndAddUnsafe(Ys,yo,ws)?.toAffine();return!!Do&&wt(Do.x)===cs},ProjectivePoint:Yt,Signature:Nn,utils:Yn}}BigInt(4);class ka extends hn{constructor(_,x){super(),this.finished=!1,this.destroyed=!1,yn.hash(_);const K=lt(x);if(this.iHash=_.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const de=this.blockLen,ze=new Uint8Array(de);ze.set(K.length>de?_.create().update(K).digest():K);for(let _t=0;_tnew ka(f,_).update(x).digest();function Jr(f){return{hash:f,hmac:(_,...x)=>Wi(f,_,function jt(...f){const _=new Uint8Array(f.reduce((K,de)=>K+de.length,0));let x=0;return f.forEach(K=>{if(!Xn(K))throw new Error("Uint8Array expected");_.set(K,x),x+=K.length}),_}(...x)),randomBytes:ci}}Wi.create=(f,_)=>new ka(f,_);const Yo=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),fo=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Na=BigInt(1),As=BigInt(2),la=(f,_)=>(f+_/As)/_;const Gs=function Vo(f,_,x=!1,K={}){if(f<=Li)throw new Error(`Expected Fp ORDER > 0, got ${f}`);const{nBitLength:de,nByteLength:ze}=br(f,_);if(ze>2048)throw new Error("Field lengths over 2048 bytes are not supported");const _t=function Co(f){if(f%oa===so){const _=(f+gr)/oa;return function(K,de){const ze=K.pow(de,_);if(!K.eql(K.sqr(ze),de))throw new Error("Cannot find square root");return ze}}if(f%Io===lr){const _=(f-lr)/Io;return function(K,de){const ze=K.mul(de,zo),_t=K.pow(ze,_),wt=K.mul(de,_t),kt=K.mul(K.mul(wt,zo),_t),Yt=K.mul(wt,K.sub(kt,K.ONE));if(!K.eql(K.sqr(Yt),de))throw new Error("Cannot find square root");return Yt}}return function ul(f){const _=(f-gr)/zo;let x,K,de;for(x=f-gr,K=0;x%zo===Li;x/=zo,K++);for(de=zo;deMi(kt,f),isValid:kt=>{if("bigint"!=typeof kt)throw new Error("Invalid field element: expected bigint, got "+typeof kt);return Li<=kt&&ktkt===Li,isOdd:kt=>(kt&gr)===gr,neg:kt=>Mi(-kt,f),eql:(kt,Yt)=>kt===Yt,sqr:kt=>Mi(kt*kt,f),add:(kt,Yt)=>Mi(kt+Yt,f),sub:(kt,Yt)=>Mi(kt-Yt,f),mul:(kt,Yt)=>Mi(kt*Yt,f),pow:(kt,Yt)=>function Cs(f,_,x){if(x 0");if(x===Li)return f.ONE;if(x===gr)return _;let K=f.ONE,de=_;for(;x>Li;)x&gr&&(K=f.mul(K,de)),de=f.sqr(de),x>>=gr;return K}(wt,kt,Yt),div:(kt,Yt)=>Mi(kt*Wo(Yt,f),f),sqrN:kt=>kt*kt,addN:(kt,Yt)=>kt+Yt,subN:(kt,Yt)=>kt-Yt,mulN:(kt,Yt)=>kt*Yt,inv:kt=>Wo(kt,f),sqrt:K.sqrt||(kt=>_t(wt,kt)),invertBatch:kt=>function Go(f,_){const x=new Array(_.length),K=_.reduce((ze,_t,wt)=>f.is0(_t)?ze:(x[wt]=ze,f.mul(ze,_t)),f.ONE),de=f.inv(K);return _.reduceRight((ze,_t,wt)=>f.is0(_t)?ze:(x[wt]=f.mul(ze,x[wt]),f.mul(ze,_t)),de),x}(wt,kt),cmov:(kt,Yt,vn)=>vn?Yt:kt,toBytes:kt=>x?Ii(kt,ze):no(kt,ze),fromBytes:kt=>{if(kt.length!==ze)throw new Error(`Fp.fromBytes: expected ${ze}, got ${kt.length}`);return x?is(kt):hr(kt)}});return Object.freeze(wt)}(Yo,void 0,void 0,{sqrt:function Wa(f){const _=Yo,x=BigInt(3),K=BigInt(6),de=BigInt(11),ze=BigInt(22),_t=BigInt(23),wt=BigInt(44),kt=BigInt(88),Yt=f*f*f%_,vn=Yt*Yt*f%_,xt=Zr(vn,x,_)*vn%_,Ht=Zr(xt,x,_)*vn%_,cn=Zr(Ht,As,_)*Yt%_,Rn=Zr(cn,de,_)*cn%_,pn=Zr(Rn,ze,_)*Rn%_,Tn=Zr(pn,wt,_)*pn%_,Nn=Zr(Tn,kt,_)*Tn%_,Yn=Zr(Nn,wt,_)*pn%_,Sn=Zr(Yn,x,_)*vn%_,ui=Zr(Sn,_t,_)*Rn%_,di=Zr(ui,K,_)*Yt%_,On=Zr(di,As,_);if(!Gs.eql(Gs.sqr(On),f))throw new Error("Cannot find square root");return On}}),ao=function qr(f,_){const x=K=>yt({...f,...Jr(K)});return Object.freeze({...x(_),create:x})}({a:BigInt(0),b:BigInt(7),Fp:Gs,n:fo,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:f=>{const _=fo,x=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),K=-Na*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),de=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ze=x,_t=BigInt("0x100000000000000000000000000000000"),wt=la(ze*f,_),kt=la(-K*f,_);let Yt=Mi(f-wt*x-kt*de,_),vn=Mi(-wt*K-kt*ze,_);const xt=Yt>_t,Ht=vn>_t;if(xt&&(Yt=_-Yt),Ht&&(vn=_-vn),Yt>_t||vn>_t)throw new Error("splitScalar: Endomorphism failed, k="+f);return{k1neg:xt,k1:Yt,k2neg:Ht,k2:vn}}}},zi);BigInt(0);var ca=v(3813);const Wr=ao.ProjectivePoint,Gr=(0,ca.Tq)(rt);function fl(f){return BigInt(`0x${function be(f){if(!ge(f))throw new Error("Uint8Array expected");let _="";for(let x=0;x{if(!Number.isSafeInteger(f)||f<0||f>2**32-1)throw new Error(`Invalid number=${f}. Should be from 0 to 2 ** 32 - 1`);const _=new Uint8Array(4);return Ee(_).setUint32(0,f,!1),_};class ne{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return Ee(this.pubHash).getUint32(0,!1)}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){const _=this.privateKey;if(!_)throw new Error("No private key");return Gr.encode(this.serialize(this.versions.private,nt(new Uint8Array([0]),_)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return Gr.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(_,x=da){if(G(_),8*_.length<128||8*_.length>512)throw new Error(`HDKey: wrong seed length=${_.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const K=_e(ai,sc,_);return new ne({versions:x,chainCode:K.slice(32),privateKey:K.slice(0,32)})}static fromExtendedKey(_,x=da){const K=Gr.decode(_),de=Ee(K),ze=de.getUint32(0,!1),_t={versions:x,depth:K[4],parentFingerprint:de.getUint32(5,!1),index:de.getUint32(9,!1),chainCode:K.slice(13,45)},wt=K.slice(45),kt=0===wt[0];if(ze!==x[kt?"private":"public"])throw new Error("Version mismatch");return new ne(kt?{..._t,privateKey:wt.slice(1)}:{..._t,publicKey:wt})}static fromJSON(_){return ne.fromExtendedKey(_.xpriv)}constructor(_){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!_||"object"!=typeof _)throw new Error("HDKey.constructor must not be called directly");if(this.versions=_.versions||da,this.depth=_.depth||0,this.chainCode=_.chainCode,this.index=_.index||0,this.parentFingerprint=_.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(_.publicKey&&_.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(_.privateKey){if(!ao.utils.isValidPrivateKey(_.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof _.privateKey?_.privateKey:fl(_.privateKey),this.privKeyBytes=function ua(f){return function je(f){if("string"!=typeof f)throw new Error("hex string expected, got "+typeof f);const _=f.length,x=_/2;if(_%2)throw new Error("padded hex string expected, got unpadded hex of length "+_);const K=new Uint8Array(x);for(let de=0,ze=0;de=ir)throw new Error("Invalid index");"'"===ze[2]&&(_t+=ir),K=K.deriveChild(_t)}return K}deriveChild(_){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let x=S(_);if(_>=ir){const wt=this.privateKey;if(!wt)throw new Error("Could not derive hardened child key");x=nt(new Uint8Array([0]),wt,x)}else x=nt(this.pubKey,x);const K=_e(ai,this.chainCode,x),de=fl(K.slice(0,32)),ze=K.slice(32);if(!ao.utils.isValidPrivateKey(de))throw new Error("Tweak bigger than curve order");const _t={versions:this.versions,chainCode:ze,depth:this.depth+1,parentFingerprint:this.fingerprint,index:_};try{if(this.privateKey){const wt=Mi(this.privKey+de,ao.CURVE.n);if(!ao.utils.isValidPrivateKey(wt))throw new Error("The tweak was out of range or the resulted private key is invalid");_t.privateKey=wt}else{const wt=Wr.fromHex(this.pubKey).add(Wr.fromPrivateKey(de));if(wt.equals(Wr.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");_t.publicKey=wt.toRawBytes(!0)}return new ne(_t)}catch{return this.deriveChild(_+1)}}sign(_){if(!this.privateKey)throw new Error("No privateKey set!");return G(_,32),ao.sign(_,this.privKey).toCompactRawBytes()}verify(_,x){if(G(_,32),G(x,64),!this.publicKey)throw new Error("No publicKey set!");let K;try{K=ao.Signature.fromCompact(x)}catch{return!1}return ao.verify(K,_,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(_,x){if(!this.chainCode)throw new Error("No chainCode set");return G(x,33),nt(S(_),new Uint8Array([this.depth]),S(this.parentFingerprint),S(this.index),this.chainCode,x)}}},9673:(tn,Ne,v)=>{"use strict";function u(ft){if(!Number.isSafeInteger(ft)||ft<0)throw new Error(`Wrong positive integer: ${ft}`)}function L(ft,...St){if(!function o(ft){return ft instanceof Uint8Array||null!=ft&&"object"==typeof ft&&"Uint8Array"===ft.constructor.name}(ft))throw new Error("Expected Uint8Array");if(St.length>0&&!St.includes(ft.length))throw new Error(`Expected Uint8Array of length ${St}, not of length=${ft.length}`)}function G(ft){if("function"!=typeof ft||"function"!=typeof ft.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");u(ft.outputLen),u(ft.blockLen)}function ee(ft,St=!0){if(ft.destroyed)throw new Error("Hash instance has been destroyed");if(St&&ft.finished)throw new Error("Hash#digest() has already been called")}function oe(ft,St){L(ft);const ln=St.outputLen;if(ft.lengthrn,kw:()=>Or,JB:()=>Pr});const P={number:u,bool:function y(ft){if("boolean"!=typeof ft)throw new Error(`Expected boolean, not ${ft}`)},bytes:L,hash:G,exists:ee,output:oe},B="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;const Ee=ft=>new DataView(ft.buffer,ft.byteOffset,ft.byteLength),Re=(ft,St)=>ft<<32-St|ft>>>St;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Le(ft){if("string"==typeof ft&&(ft=function me(ft){if("string"!=typeof ft)throw new Error("utf8ToBytes expected string, got "+typeof ft);return new Uint8Array((new TextEncoder).encode(ft))}(ft)),!function ge(ft){return ft instanceof Uint8Array||null!=ft&&"object"==typeof ft&&"Uint8Array"===ft.constructor.name}(ft))throw new Error("expected Uint8Array, got "+typeof ft);return ft}class At{clone(){return this._cloneInto()}}const vt={}.toString;function Zt(ft){const St=yn=>ft().update(Le(yn)).digest(),ln=ft();return St.outputLen=ln.outputLen,St.blockLen=ln.blockLen,St.create=()=>ft(),St}class pi extends At{constructor(St,ln){super(),this.finished=!1,this.destroyed=!1,G(St);const yn=Le(ln);if(this.iHash=St.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 An=this.blockLen,Xn=new Uint8Array(An);Xn.set(yn.length>An?St.create().update(yn).digest():yn);for(let zn=0;znnew pi(ft,St).update(ln).digest();_e.create=(ft,St)=>new pi(ft,St);class Xe extends At{constructor(St,ln,yn,An){super(),this.blockLen=St,this.outputLen=ln,this.padOffset=yn,this.isLE=An,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(St),this.view=Ee(this.buffer)}update(St){ee(this);const{view:ln,buffer:yn,blockLen:An}=this,Xn=(St=Le(St)).length;for(let zn=0;znAn-zn&&(this.process(yn,0),zn=0);for(let Ye=zn;Ye>An&Xn),ri=Number(ln&Xn),Bn=yn?0:4;ft.setUint32(St+(yn?4:0),zn,yn),ft.setUint32(St+Bn,ri,yn)})(yn,An-8,BigInt(8*this.length),Xn),this.process(yn,0);const ri=Ee(St),li=this.outputLen;if(li%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Bn=li/4,xe=this.get();if(Bn>xe.length)throw new Error("_sha2: outputLen bigger than state");for(let Ye=0;Yeft&St^~ft&ln,Me=(ft,St,ln)=>ft&St^ft&ln^St&ln,ie=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]),ve=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),le=new Uint32Array(64);class Ce extends Xe{constructor(){super(64,32,8,!1),this.A=0|ve[0],this.B=0|ve[1],this.C=0|ve[2],this.D=0|ve[3],this.E=0|ve[4],this.F=0|ve[5],this.G=0|ve[6],this.H=0|ve[7]}get(){const{A:St,B:ln,C:yn,D:An,E:Xn,F:zn,G:ri,H:li}=this;return[St,ln,yn,An,Xn,zn,ri,li]}set(St,ln,yn,An,Xn,zn,ri,li){this.A=0|St,this.B=0|ln,this.C=0|yn,this.D=0|An,this.E=0|Xn,this.F=0|zn,this.G=0|ri,this.H=0|li}process(St,ln){for(let Ye=0;Ye<16;Ye++,ln+=4)le[Ye]=St.getUint32(ln,!1);for(let Ye=16;Ye<64;Ye++){const Ge=le[Ye-15],W=le[Ye-2],Te=Re(Ge,7)^Re(Ge,18)^Ge>>>3,se=Re(W,17)^Re(W,19)^W>>>10;le[Ye]=se+le[Ye-7]+Te+le[Ye-16]|0}let{A:yn,B:An,C:Xn,D:zn,E:ri,F:li,G:Bn,H:xe}=this;for(let Ye=0;Ye<64;Ye++){const W=xe+(Re(ri,6)^Re(ri,11)^Re(ri,25))+Je(ri,li,Bn)+ie[Ye]+le[Ye]|0,se=(Re(yn,2)^Re(yn,13)^Re(yn,22))+Me(yn,An,Xn)|0;xe=Bn,Bn=li,li=ri,ri=zn+W|0,zn=Xn,Xn=An,An=yn,yn=W+se|0}yn=yn+this.A|0,An=An+this.B|0,Xn=Xn+this.C|0,zn=zn+this.D|0,ri=ri+this.E|0,li=li+this.F|0,Bn=Bn+this.G|0,xe=xe+this.H|0,this.set(yn,An,Xn,zn,ri,li,Bn,xe)}roundClean(){le.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const un=Zt(()=>new Ce),It=BigInt(2**32-1),Ft=BigInt(32);function Rt(ft,St=!1){return St?{h:Number(ft&It),l:Number(ft>>Ft&It)}:{h:0|Number(ft>>Ft&It),l:0|Number(ft&It)}}const En_split=function kn(ft,St=!1){let ln=new Uint32Array(ft.length),yn=new Uint32Array(ft.length);for(let An=0;Anft>>>ln,En_shrSL=(ft,St,ln)=>ft<<32-ln|St>>>ln,En_rotrSH=(ft,St,ln)=>ft>>>ln|St<<32-ln,En_rotrSL=(ft,St,ln)=>ft<<32-ln|St>>>ln,En_rotrBH=(ft,St,ln)=>ft<<64-ln|St>>>ln-32,En_rotrBL=(ft,St,ln)=>ft>>>ln-32|St<<64-ln,En_add=function et(ft,St,ln,yn){const An=(St>>>0)+(yn>>>0);return{h:ft+ln+(An/2**32|0)|0,l:0|An}},En_add3L=(ft,St,ln)=>(ft>>>0)+(St>>>0)+(ln>>>0),En_add3H=(ft,St,ln,yn)=>St+ln+yn+(ft/2**32|0)|0,En_add4L=(ft,St,ln,yn)=>(ft>>>0)+(St>>>0)+(ln>>>0)+(yn>>>0),En_add4H=(ft,St,ln,yn,An)=>St+ln+yn+An+(ft/2**32|0)|0,En_add5H=(ft,St,ln,yn,An,Xn)=>St+ln+yn+An+Xn+(ft/2**32|0)|0,En_add5L=(ft,St,ln,yn,An)=>(ft>>>0)+(St>>>0)+(ln>>>0)+(yn>>>0)+(An>>>0),[He,Be]=En_split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(ft=>BigInt(ft))),ye=new Uint32Array(80),Ke=new Uint32Array(80);class zt extends Xe{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:St,Al:ln,Bh:yn,Bl:An,Ch:Xn,Cl:zn,Dh:ri,Dl:li,Eh:Bn,El:xe,Fh:Ye,Fl:Ge,Gh:W,Gl:Te,Hh:se,Hl:$e}=this;return[St,ln,yn,An,Xn,zn,ri,li,Bn,xe,Ye,Ge,W,Te,se,$e]}set(St,ln,yn,An,Xn,zn,ri,li,Bn,xe,Ye,Ge,W,Te,se,$e){this.Ah=0|St,this.Al=0|ln,this.Bh=0|yn,this.Bl=0|An,this.Ch=0|Xn,this.Cl=0|zn,this.Dh=0|ri,this.Dl=0|li,this.Eh=0|Bn,this.El=0|xe,this.Fh=0|Ye,this.Fl=0|Ge,this.Gh=0|W,this.Gl=0|Te,this.Hh=0|se,this.Hl=0|$e}process(St,ln){for(let jt=0;jt<16;jt++,ln+=4)ye[jt]=St.getUint32(ln),Ke[jt]=St.getUint32(ln+=4);for(let jt=16;jt<80;jt++){const hn=0|ye[jt-15],fn=0|Ke[jt-15],wn=En_rotrSH(hn,fn,1)^En_rotrSH(hn,fn,8)^En_shrSH(hn,fn,7),Dn=En_rotrSL(hn,fn,1)^En_rotrSL(hn,fn,8)^En_shrSL(hn,fn,7),jn=0|ye[jt-2],$n=0|Ke[jt-2],ci=En_rotrSH(jn,$n,19)^En_rotrBH(jn,$n,61)^En_shrSH(jn,$n,6),ki=En_rotrSL(jn,$n,19)^En_rotrBL(jn,$n,61)^En_shrSL(jn,$n,6),ei=En_add4L(Dn,ki,Ke[jt-7],Ke[jt-16]),Gn=En_add4H(ei,wn,ci,ye[jt-7],ye[jt-16]);ye[jt]=0|Gn,Ke[jt]=0|ei}let{Ah:yn,Al:An,Bh:Xn,Bl:zn,Ch:ri,Cl:li,Dh:Bn,Dl:xe,Eh:Ye,El:Ge,Fh:W,Fl:Te,Gh:se,Gl:$e,Hh:pt,Hl:lt}=this;for(let jt=0;jt<80;jt++){const hn=En_rotrSH(Ye,Ge,14)^En_rotrSH(Ye,Ge,18)^En_rotrBH(Ye,Ge,41),fn=En_rotrSL(Ye,Ge,14)^En_rotrSL(Ye,Ge,18)^En_rotrBL(Ye,Ge,41),wn=Ye&W^~Ye&se,jn=En_add5L(lt,fn,Ge&Te^~Ge&$e,Be[jt],Ke[jt]),$n=En_add5H(jn,pt,hn,wn,He[jt],ye[jt]),ci=0|jn,ki=En_rotrSH(yn,An,28)^En_rotrBH(yn,An,34)^En_rotrBH(yn,An,39),ei=En_rotrSL(yn,An,28)^En_rotrBL(yn,An,34)^En_rotrBL(yn,An,39),Gn=yn&Xn^yn&ri^Xn&ri,Rr=An&zn^An&li^zn&li;pt=0|se,lt=0|$e,se=0|W,$e=0|Te,W=0|Ye,Te=0|Ge,({h:Ye,l:Ge}=En_add(0|Bn,0|xe,0|$n,0|ci)),Bn=0|ri,xe=0|li,ri=0|Xn,li=0|zn,Xn=0|yn,zn=0|An;const uo=En_add3L(ci,ei,Rr);yn=En_add3H(uo,$n,ki,Gn),An=0|uo}({h:yn,l:An}=En_add(0|this.Ah,0|this.Al,0|yn,0|An)),({h:Xn,l:zn}=En_add(0|this.Bh,0|this.Bl,0|Xn,0|zn)),({h:ri,l:li}=En_add(0|this.Ch,0|this.Cl,0|ri,0|li)),({h:Bn,l:xe}=En_add(0|this.Dh,0|this.Dl,0|Bn,0|xe)),({h:Ye,l:Ge}=En_add(0|this.Eh,0|this.El,0|Ye,0|Ge)),({h:W,l:Te}=En_add(0|this.Fh,0|this.Fl,0|W,0|Te)),({h:se,l:$e}=En_add(0|this.Gh,0|this.Gl,0|se,0|$e)),({h:pt,l:lt}=En_add(0|this.Hh,0|this.Hl,0|pt,0|lt)),this.set(yn,An,Xn,zn,ri,li,Bn,xe,Ye,Ge,W,Te,se,$e,pt,lt)}roundClean(){ye.fill(0),Ke.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 nn=Zt(()=>new zt);var st=v(3813);const Qe=ft=>"\u3042\u3044\u3053\u304f\u3057\u3093"===ft[0];function Oe(ft){if("string"!=typeof ft)throw new TypeError("Invalid mnemonic type: "+typeof ft);return ft.normalize("NFKD")}function ct(ft){const St=Oe(ft),ln=St.split(" ");if(![12,15,18,21,24].includes(ln.length))throw new Error("Invalid mnemonic");return{nfkd:St,words:ln}}function Wt(ft){P.bytes(ft,16,20,24,28,32)}function rn(ft,St=128){if(P.number(St),St%32!=0||St>256)throw new TypeError("Invalid entropy");return function Ri(ft,St){return Wt(ft),yr(St).encode(ft).join(Qe(St)?"\u3000":" ")}(function _n(ft=32){if(B&&"function"==typeof B.getRandomValues)return B.getRandomValues(new Uint8Array(ft));throw new Error("crypto.getRandomValues must be defined")}(St/8),ft)}const ai=ft=>{const St=8-ft.length/4;return new Uint8Array([un(ft)[0]>>St<{if("string"!=typeof St)throw new Error(`Wordlist: non-string element: ${St}`)}),st.Wp.chain(st.Wp.checksum(1,ai),st.Wp.radix2(11,!0),st.Wp.alphabet(ft))}function Pr(ft,St){try{!function xr(ft,St){const{words:ln}=ct(ft),yn=yr(St).decode(ln);Wt(yn)}(ft,St)}catch{return!1}return!0}const wi=ft=>Oe(`mnemonic${ft}`);function Or(ft,St=""){return function Ie(ft,St,ln,yn){const{c:An,dkLen:Xn,DK:zn,PRF:ri,PRFSalt:li}=function Ae(ft,St,ln,yn){G(ft);const An=function Dt(ft,St){if(void 0!==St&&"[object Object]"!==vt.call(St))throw new Error("Options should be object or undefined");return Object.assign(ft,St)}({dkLen:32,asyncTick:10},yn),{c:Xn,dkLen:zn,asyncTick:ri}=An;if(u(Xn),u(zn),u(ri),Xn<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const li=Le(St),Bn=Le(ln),xe=new Uint8Array(zn),Ye=_e.create(ft,li),Ge=Ye._cloneInto().update(Bn);return{c:Xn,dkLen:zn,asyncTick:ri,DK:xe,PRF:Ye,PRFSalt:Ge}}(ft,St,ln,yn);let Bn;const xe=new Uint8Array(4),Ye=Ee(xe),Ge=new Uint8Array(ri.outputLen);for(let W=1,Te=0;Te{"use strict";v.d(Ne,{p:()=>u});const u="abandon\nability\nable\nabout\nabove\nabsent\nabsorb\nabstract\nabsurd\nabuse\naccess\naccident\naccount\naccuse\nachieve\nacid\nacoustic\nacquire\nacross\nact\naction\nactor\nactress\nactual\nadapt\nadd\naddict\naddress\nadjust\nadmit\nadult\nadvance\nadvice\naerobic\naffair\nafford\nafraid\nagain\nage\nagent\nagree\nahead\naim\nair\nairport\naisle\nalarm\nalbum\nalcohol\nalert\nalien\nall\nalley\nallow\nalmost\nalone\nalpha\nalready\nalso\nalter\nalways\namateur\namazing\namong\namount\namused\nanalyst\nanchor\nancient\nanger\nangle\nangry\nanimal\nankle\nannounce\nannual\nanother\nanswer\nantenna\nantique\nanxiety\nany\napart\napology\nappear\napple\napprove\napril\narch\narctic\narea\narena\nargue\narm\narmed\narmor\narmy\naround\narrange\narrest\narrive\narrow\nart\nartefact\nartist\nartwork\nask\naspect\nassault\nasset\nassist\nassume\nasthma\nathlete\natom\nattack\nattend\nattitude\nattract\nauction\naudit\naugust\naunt\nauthor\nauto\nautumn\naverage\navocado\navoid\nawake\naware\naway\nawesome\nawful\nawkward\naxis\nbaby\nbachelor\nbacon\nbadge\nbag\nbalance\nbalcony\nball\nbamboo\nbanana\nbanner\nbar\nbarely\nbargain\nbarrel\nbase\nbasic\nbasket\nbattle\nbeach\nbean\nbeauty\nbecause\nbecome\nbeef\nbefore\nbegin\nbehave\nbehind\nbelieve\nbelow\nbelt\nbench\nbenefit\nbest\nbetray\nbetter\nbetween\nbeyond\nbicycle\nbid\nbike\nbind\nbiology\nbird\nbirth\nbitter\nblack\nblade\nblame\nblanket\nblast\nbleak\nbless\nblind\nblood\nblossom\nblouse\nblue\nblur\nblush\nboard\nboat\nbody\nboil\nbomb\nbone\nbonus\nbook\nboost\nborder\nboring\nborrow\nboss\nbottom\nbounce\nbox\nboy\nbracket\nbrain\nbrand\nbrass\nbrave\nbread\nbreeze\nbrick\nbridge\nbrief\nbright\nbring\nbrisk\nbroccoli\nbroken\nbronze\nbroom\nbrother\nbrown\nbrush\nbubble\nbuddy\nbudget\nbuffalo\nbuild\nbulb\nbulk\nbullet\nbundle\nbunker\nburden\nburger\nburst\nbus\nbusiness\nbusy\nbutter\nbuyer\nbuzz\ncabbage\ncabin\ncable\ncactus\ncage\ncake\ncall\ncalm\ncamera\ncamp\ncan\ncanal\ncancel\ncandy\ncannon\ncanoe\ncanvas\ncanyon\ncapable\ncapital\ncaptain\ncar\ncarbon\ncard\ncargo\ncarpet\ncarry\ncart\ncase\ncash\ncasino\ncastle\ncasual\ncat\ncatalog\ncatch\ncategory\ncattle\ncaught\ncause\ncaution\ncave\nceiling\ncelery\ncement\ncensus\ncentury\ncereal\ncertain\nchair\nchalk\nchampion\nchange\nchaos\nchapter\ncharge\nchase\nchat\ncheap\ncheck\ncheese\nchef\ncherry\nchest\nchicken\nchief\nchild\nchimney\nchoice\nchoose\nchronic\nchuckle\nchunk\nchurn\ncigar\ncinnamon\ncircle\ncitizen\ncity\ncivil\nclaim\nclap\nclarify\nclaw\nclay\nclean\nclerk\nclever\nclick\nclient\ncliff\nclimb\nclinic\nclip\nclock\nclog\nclose\ncloth\ncloud\nclown\nclub\nclump\ncluster\nclutch\ncoach\ncoast\ncoconut\ncode\ncoffee\ncoil\ncoin\ncollect\ncolor\ncolumn\ncombine\ncome\ncomfort\ncomic\ncommon\ncompany\nconcert\nconduct\nconfirm\ncongress\nconnect\nconsider\ncontrol\nconvince\ncook\ncool\ncopper\ncopy\ncoral\ncore\ncorn\ncorrect\ncost\ncotton\ncouch\ncountry\ncouple\ncourse\ncousin\ncover\ncoyote\ncrack\ncradle\ncraft\ncram\ncrane\ncrash\ncrater\ncrawl\ncrazy\ncream\ncredit\ncreek\ncrew\ncricket\ncrime\ncrisp\ncritic\ncrop\ncross\ncrouch\ncrowd\ncrucial\ncruel\ncruise\ncrumble\ncrunch\ncrush\ncry\ncrystal\ncube\nculture\ncup\ncupboard\ncurious\ncurrent\ncurtain\ncurve\ncushion\ncustom\ncute\ncycle\ndad\ndamage\ndamp\ndance\ndanger\ndaring\ndash\ndaughter\ndawn\nday\ndeal\ndebate\ndebris\ndecade\ndecember\ndecide\ndecline\ndecorate\ndecrease\ndeer\ndefense\ndefine\ndefy\ndegree\ndelay\ndeliver\ndemand\ndemise\ndenial\ndentist\ndeny\ndepart\ndepend\ndeposit\ndepth\ndeputy\nderive\ndescribe\ndesert\ndesign\ndesk\ndespair\ndestroy\ndetail\ndetect\ndevelop\ndevice\ndevote\ndiagram\ndial\ndiamond\ndiary\ndice\ndiesel\ndiet\ndiffer\ndigital\ndignity\ndilemma\ndinner\ndinosaur\ndirect\ndirt\ndisagree\ndiscover\ndisease\ndish\ndismiss\ndisorder\ndisplay\ndistance\ndivert\ndivide\ndivorce\ndizzy\ndoctor\ndocument\ndog\ndoll\ndolphin\ndomain\ndonate\ndonkey\ndonor\ndoor\ndose\ndouble\ndove\ndraft\ndragon\ndrama\ndrastic\ndraw\ndream\ndress\ndrift\ndrill\ndrink\ndrip\ndrive\ndrop\ndrum\ndry\nduck\ndumb\ndune\nduring\ndust\ndutch\nduty\ndwarf\ndynamic\neager\neagle\nearly\nearn\nearth\neasily\neast\neasy\necho\necology\neconomy\nedge\nedit\neducate\neffort\negg\neight\neither\nelbow\nelder\nelectric\nelegant\nelement\nelephant\nelevator\nelite\nelse\nembark\nembody\nembrace\nemerge\nemotion\nemploy\nempower\nempty\nenable\nenact\nend\nendless\nendorse\nenemy\nenergy\nenforce\nengage\nengine\nenhance\nenjoy\nenlist\nenough\nenrich\nenroll\nensure\nenter\nentire\nentry\nenvelope\nepisode\nequal\nequip\nera\nerase\nerode\nerosion\nerror\nerupt\nescape\nessay\nessence\nestate\neternal\nethics\nevidence\nevil\nevoke\nevolve\nexact\nexample\nexcess\nexchange\nexcite\nexclude\nexcuse\nexecute\nexercise\nexhaust\nexhibit\nexile\nexist\nexit\nexotic\nexpand\nexpect\nexpire\nexplain\nexpose\nexpress\nextend\nextra\neye\neyebrow\nfabric\nface\nfaculty\nfade\nfaint\nfaith\nfall\nfalse\nfame\nfamily\nfamous\nfan\nfancy\nfantasy\nfarm\nfashion\nfat\nfatal\nfather\nfatigue\nfault\nfavorite\nfeature\nfebruary\nfederal\nfee\nfeed\nfeel\nfemale\nfence\nfestival\nfetch\nfever\nfew\nfiber\nfiction\nfield\nfigure\nfile\nfilm\nfilter\nfinal\nfind\nfine\nfinger\nfinish\nfire\nfirm\nfirst\nfiscal\nfish\nfit\nfitness\nfix\nflag\nflame\nflash\nflat\nflavor\nflee\nflight\nflip\nfloat\nflock\nfloor\nflower\nfluid\nflush\nfly\nfoam\nfocus\nfog\nfoil\nfold\nfollow\nfood\nfoot\nforce\nforest\nforget\nfork\nfortune\nforum\nforward\nfossil\nfoster\nfound\nfox\nfragile\nframe\nfrequent\nfresh\nfriend\nfringe\nfrog\nfront\nfrost\nfrown\nfrozen\nfruit\nfuel\nfun\nfunny\nfurnace\nfury\nfuture\ngadget\ngain\ngalaxy\ngallery\ngame\ngap\ngarage\ngarbage\ngarden\ngarlic\ngarment\ngas\ngasp\ngate\ngather\ngauge\ngaze\ngeneral\ngenius\ngenre\ngentle\ngenuine\ngesture\nghost\ngiant\ngift\ngiggle\nginger\ngiraffe\ngirl\ngive\nglad\nglance\nglare\nglass\nglide\nglimpse\nglobe\ngloom\nglory\nglove\nglow\nglue\ngoat\ngoddess\ngold\ngood\ngoose\ngorilla\ngospel\ngossip\ngovern\ngown\ngrab\ngrace\ngrain\ngrant\ngrape\ngrass\ngravity\ngreat\ngreen\ngrid\ngrief\ngrit\ngrocery\ngroup\ngrow\ngrunt\nguard\nguess\nguide\nguilt\nguitar\ngun\ngym\nhabit\nhair\nhalf\nhammer\nhamster\nhand\nhappy\nharbor\nhard\nharsh\nharvest\nhat\nhave\nhawk\nhazard\nhead\nhealth\nheart\nheavy\nhedgehog\nheight\nhello\nhelmet\nhelp\nhen\nhero\nhidden\nhigh\nhill\nhint\nhip\nhire\nhistory\nhobby\nhockey\nhold\nhole\nholiday\nhollow\nhome\nhoney\nhood\nhope\nhorn\nhorror\nhorse\nhospital\nhost\nhotel\nhour\nhover\nhub\nhuge\nhuman\nhumble\nhumor\nhundred\nhungry\nhunt\nhurdle\nhurry\nhurt\nhusband\nhybrid\nice\nicon\nidea\nidentify\nidle\nignore\nill\nillegal\nillness\nimage\nimitate\nimmense\nimmune\nimpact\nimpose\nimprove\nimpulse\ninch\ninclude\nincome\nincrease\nindex\nindicate\nindoor\nindustry\ninfant\ninflict\ninform\ninhale\ninherit\ninitial\ninject\ninjury\ninmate\ninner\ninnocent\ninput\ninquiry\ninsane\ninsect\ninside\ninspire\ninstall\nintact\ninterest\ninto\ninvest\ninvite\ninvolve\niron\nisland\nisolate\nissue\nitem\nivory\njacket\njaguar\njar\njazz\njealous\njeans\njelly\njewel\njob\njoin\njoke\njourney\njoy\njudge\njuice\njump\njungle\njunior\njunk\njust\nkangaroo\nkeen\nkeep\nketchup\nkey\nkick\nkid\nkidney\nkind\nkingdom\nkiss\nkit\nkitchen\nkite\nkitten\nkiwi\nknee\nknife\nknock\nknow\nlab\nlabel\nlabor\nladder\nlady\nlake\nlamp\nlanguage\nlaptop\nlarge\nlater\nlatin\nlaugh\nlaundry\nlava\nlaw\nlawn\nlawsuit\nlayer\nlazy\nleader\nleaf\nlearn\nleave\nlecture\nleft\nleg\nlegal\nlegend\nleisure\nlemon\nlend\nlength\nlens\nleopard\nlesson\nletter\nlevel\nliar\nliberty\nlibrary\nlicense\nlife\nlift\nlight\nlike\nlimb\nlimit\nlink\nlion\nliquid\nlist\nlittle\nlive\nlizard\nload\nloan\nlobster\nlocal\nlock\nlogic\nlonely\nlong\nloop\nlottery\nloud\nlounge\nlove\nloyal\nlucky\nluggage\nlumber\nlunar\nlunch\nluxury\nlyrics\nmachine\nmad\nmagic\nmagnet\nmaid\nmail\nmain\nmajor\nmake\nmammal\nman\nmanage\nmandate\nmango\nmansion\nmanual\nmaple\nmarble\nmarch\nmargin\nmarine\nmarket\nmarriage\nmask\nmass\nmaster\nmatch\nmaterial\nmath\nmatrix\nmatter\nmaximum\nmaze\nmeadow\nmean\nmeasure\nmeat\nmechanic\nmedal\nmedia\nmelody\nmelt\nmember\nmemory\nmention\nmenu\nmercy\nmerge\nmerit\nmerry\nmesh\nmessage\nmetal\nmethod\nmiddle\nmidnight\nmilk\nmillion\nmimic\nmind\nminimum\nminor\nminute\nmiracle\nmirror\nmisery\nmiss\nmistake\nmix\nmixed\nmixture\nmobile\nmodel\nmodify\nmom\nmoment\nmonitor\nmonkey\nmonster\nmonth\nmoon\nmoral\nmore\nmorning\nmosquito\nmother\nmotion\nmotor\nmountain\nmouse\nmove\nmovie\nmuch\nmuffin\nmule\nmultiply\nmuscle\nmuseum\nmushroom\nmusic\nmust\nmutual\nmyself\nmystery\nmyth\nnaive\nname\nnapkin\nnarrow\nnasty\nnation\nnature\nnear\nneck\nneed\nnegative\nneglect\nneither\nnephew\nnerve\nnest\nnet\nnetwork\nneutral\nnever\nnews\nnext\nnice\nnight\nnoble\nnoise\nnominee\nnoodle\nnormal\nnorth\nnose\nnotable\nnote\nnothing\nnotice\nnovel\nnow\nnuclear\nnumber\nnurse\nnut\noak\nobey\nobject\noblige\nobscure\nobserve\nobtain\nobvious\noccur\nocean\noctober\nodor\noff\noffer\noffice\noften\noil\nokay\nold\nolive\nolympic\nomit\nonce\none\nonion\nonline\nonly\nopen\nopera\nopinion\noppose\noption\norange\norbit\norchard\norder\nordinary\norgan\norient\noriginal\norphan\nostrich\nother\noutdoor\nouter\noutput\noutside\noval\noven\nover\nown\nowner\noxygen\noyster\nozone\npact\npaddle\npage\npair\npalace\npalm\npanda\npanel\npanic\npanther\npaper\nparade\nparent\npark\nparrot\nparty\npass\npatch\npath\npatient\npatrol\npattern\npause\npave\npayment\npeace\npeanut\npear\npeasant\npelican\npen\npenalty\npencil\npeople\npepper\nperfect\npermit\nperson\npet\nphone\nphoto\nphrase\nphysical\npiano\npicnic\npicture\npiece\npig\npigeon\npill\npilot\npink\npioneer\npipe\npistol\npitch\npizza\nplace\nplanet\nplastic\nplate\nplay\nplease\npledge\npluck\nplug\nplunge\npoem\npoet\npoint\npolar\npole\npolice\npond\npony\npool\npopular\nportion\nposition\npossible\npost\npotato\npottery\npoverty\npowder\npower\npractice\npraise\npredict\nprefer\nprepare\npresent\npretty\nprevent\nprice\npride\nprimary\nprint\npriority\nprison\nprivate\nprize\nproblem\nprocess\nproduce\nprofit\nprogram\nproject\npromote\nproof\nproperty\nprosper\nprotect\nproud\nprovide\npublic\npudding\npull\npulp\npulse\npumpkin\npunch\npupil\npuppy\npurchase\npurity\npurpose\npurse\npush\nput\npuzzle\npyramid\nquality\nquantum\nquarter\nquestion\nquick\nquit\nquiz\nquote\nrabbit\nraccoon\nrace\nrack\nradar\nradio\nrail\nrain\nraise\nrally\nramp\nranch\nrandom\nrange\nrapid\nrare\nrate\nrather\nraven\nraw\nrazor\nready\nreal\nreason\nrebel\nrebuild\nrecall\nreceive\nrecipe\nrecord\nrecycle\nreduce\nreflect\nreform\nrefuse\nregion\nregret\nregular\nreject\nrelax\nrelease\nrelief\nrely\nremain\nremember\nremind\nremove\nrender\nrenew\nrent\nreopen\nrepair\nrepeat\nreplace\nreport\nrequire\nrescue\nresemble\nresist\nresource\nresponse\nresult\nretire\nretreat\nreturn\nreunion\nreveal\nreview\nreward\nrhythm\nrib\nribbon\nrice\nrich\nride\nridge\nrifle\nright\nrigid\nring\nriot\nripple\nrisk\nritual\nrival\nriver\nroad\nroast\nrobot\nrobust\nrocket\nromance\nroof\nrookie\nroom\nrose\nrotate\nrough\nround\nroute\nroyal\nrubber\nrude\nrug\nrule\nrun\nrunway\nrural\nsad\nsaddle\nsadness\nsafe\nsail\nsalad\nsalmon\nsalon\nsalt\nsalute\nsame\nsample\nsand\nsatisfy\nsatoshi\nsauce\nsausage\nsave\nsay\nscale\nscan\nscare\nscatter\nscene\nscheme\nschool\nscience\nscissors\nscorpion\nscout\nscrap\nscreen\nscript\nscrub\nsea\nsearch\nseason\nseat\nsecond\nsecret\nsection\nsecurity\nseed\nseek\nsegment\nselect\nsell\nseminar\nsenior\nsense\nsentence\nseries\nservice\nsession\nsettle\nsetup\nseven\nshadow\nshaft\nshallow\nshare\nshed\nshell\nsheriff\nshield\nshift\nshine\nship\nshiver\nshock\nshoe\nshoot\nshop\nshort\nshoulder\nshove\nshrimp\nshrug\nshuffle\nshy\nsibling\nsick\nside\nsiege\nsight\nsign\nsilent\nsilk\nsilly\nsilver\nsimilar\nsimple\nsince\nsing\nsiren\nsister\nsituate\nsix\nsize\nskate\nsketch\nski\nskill\nskin\nskirt\nskull\nslab\nslam\nsleep\nslender\nslice\nslide\nslight\nslim\nslogan\nslot\nslow\nslush\nsmall\nsmart\nsmile\nsmoke\nsmooth\nsnack\nsnake\nsnap\nsniff\nsnow\nsoap\nsoccer\nsocial\nsock\nsoda\nsoft\nsolar\nsoldier\nsolid\nsolution\nsolve\nsomeone\nsong\nsoon\nsorry\nsort\nsoul\nsound\nsoup\nsource\nsouth\nspace\nspare\nspatial\nspawn\nspeak\nspecial\nspeed\nspell\nspend\nsphere\nspice\nspider\nspike\nspin\nspirit\nsplit\nspoil\nsponsor\nspoon\nsport\nspot\nspray\nspread\nspring\nspy\nsquare\nsqueeze\nsquirrel\nstable\nstadium\nstaff\nstage\nstairs\nstamp\nstand\nstart\nstate\nstay\nsteak\nsteel\nstem\nstep\nstereo\nstick\nstill\nsting\nstock\nstomach\nstone\nstool\nstory\nstove\nstrategy\nstreet\nstrike\nstrong\nstruggle\nstudent\nstuff\nstumble\nstyle\nsubject\nsubmit\nsubway\nsuccess\nsuch\nsudden\nsuffer\nsugar\nsuggest\nsuit\nsummer\nsun\nsunny\nsunset\nsuper\nsupply\nsupreme\nsure\nsurface\nsurge\nsurprise\nsurround\nsurvey\nsuspect\nsustain\nswallow\nswamp\nswap\nswarm\nswear\nsweet\nswift\nswim\nswing\nswitch\nsword\nsymbol\nsymptom\nsyrup\nsystem\ntable\ntackle\ntag\ntail\ntalent\ntalk\ntank\ntape\ntarget\ntask\ntaste\ntattoo\ntaxi\nteach\nteam\ntell\nten\ntenant\ntennis\ntent\nterm\ntest\ntext\nthank\nthat\ntheme\nthen\ntheory\nthere\nthey\nthing\nthis\nthought\nthree\nthrive\nthrow\nthumb\nthunder\nticket\ntide\ntiger\ntilt\ntimber\ntime\ntiny\ntip\ntired\ntissue\ntitle\ntoast\ntobacco\ntoday\ntoddler\ntoe\ntogether\ntoilet\ntoken\ntomato\ntomorrow\ntone\ntongue\ntonight\ntool\ntooth\ntop\ntopic\ntopple\ntorch\ntornado\ntortoise\ntoss\ntotal\ntourist\ntoward\ntower\ntown\ntoy\ntrack\ntrade\ntraffic\ntragic\ntrain\ntransfer\ntrap\ntrash\ntravel\ntray\ntreat\ntree\ntrend\ntrial\ntribe\ntrick\ntrigger\ntrim\ntrip\ntrophy\ntrouble\ntruck\ntrue\ntruly\ntrumpet\ntrust\ntruth\ntry\ntube\ntuition\ntumble\ntuna\ntunnel\nturkey\nturn\nturtle\ntwelve\ntwenty\ntwice\ntwin\ntwist\ntwo\ntype\ntypical\nugly\numbrella\nunable\nunaware\nuncle\nuncover\nunder\nundo\nunfair\nunfold\nunhappy\nuniform\nunique\nunit\nuniverse\nunknown\nunlock\nuntil\nunusual\nunveil\nupdate\nupgrade\nuphold\nupon\nupper\nupset\nurban\nurge\nusage\nuse\nused\nuseful\nuseless\nusual\nutility\nvacant\nvacuum\nvague\nvalid\nvalley\nvalve\nvan\nvanish\nvapor\nvarious\nvast\nvault\nvehicle\nvelvet\nvendor\nventure\nvenue\nverb\nverify\nversion\nvery\nvessel\nveteran\nviable\nvibrant\nvicious\nvictory\nvideo\nview\nvillage\nvintage\nviolin\nvirtual\nvirus\nvisa\nvisit\nvisual\nvital\nvivid\nvocal\nvoice\nvoid\nvolcano\nvolume\nvote\nvoyage\nwage\nwagon\nwait\nwalk\nwall\nwalnut\nwant\nwarfare\nwarm\nwarrior\nwash\nwasp\nwaste\nwater\nwave\nway\nwealth\nweapon\nwear\nweasel\nweather\nweb\nwedding\nweekend\nweird\nwelcome\nwest\nwet\nwhale\nwhat\nwheat\nwheel\nwhen\nwhere\nwhip\nwhisper\nwide\nwidth\nwife\nwild\nwill\nwin\nwindow\nwine\nwing\nwink\nwinner\nwinter\nwire\nwisdom\nwise\nwish\nwitness\nwolf\nwoman\nwonder\nwood\nwool\nword\nwork\nworld\nworry\nworth\nwrap\nwreck\nwrestle\nwrist\nwrite\nwrong\nyard\nyear\nyellow\nyou\nyoung\nyouth\nzebra\nzero\nzone\nzoo".split("\n")},6568:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>L});var u=v(4713),y=v(1860);const L=(0,u.A)(y.A,"Map")},7730:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>ce});var o=v(1319);const G=function L(he,et){for(var $t=he.length;$t--;)if((0,o.A)(he[$t][0],et))return $t;return-1};var oe=Array.prototype.splice;function ke(he){var et=-1,$t=null==he?0:he.length;for(this.clear();++et<$t;){var Bt=he[et];this.set(Bt[0],Bt[1])}}ke.prototype.clear=function u(){this.__data__=[],this.size=0},ke.prototype.delete=function V(he){var et=this.__data__,$t=G(et,he);return!($t<0||($t==et.length-1?et.pop():oe.call(et,$t,1),--this.size,0))},ke.prototype.get=function B(he){var et=this.__data__,$t=G(et,he);return $t<0?void 0:et[$t][1]},ke.prototype.has=function ue(he){return G(this.__data__,he)>-1},ke.prototype.set=function Ee(he,et){var $t=this.__data__,Bt=G($t,he);return Bt<0?(++this.size,$t.push([he,et])):$t[Bt][1]=et,this};const te=ke;var Le=v(6568);const vt=(0,v(4713).A)(Object,"create");var _e=Object.prototype.hasOwnProperty;var Ot=Object.prototype.hasOwnProperty;function ie(he){var et=-1,$t=null==he?0:he.length;for(this.clear();++et<$t;){var Bt=he[et];this.set(Bt[0],Bt[1])}}ie.prototype.clear=function Dt(){this.__data__=vt?vt(null):{},this.size=0},ie.prototype.delete=function Fn(he){var et=this.has(he)&&delete this.__data__[he];return this.size-=et?1:0,et},ie.prototype.get=function Ae(he){var et=this.__data__;if(vt){var $t=et[he];return"__lodash_hash_undefined__"===$t?void 0:$t}return _e.call(et,he)?et[he]:void 0},ie.prototype.has=function Pe(he){var et=this.__data__;return vt?void 0!==et[he]:Ot.call(et,he)},ie.prototype.set=function Je(he,et){var $t=this.__data__;return this.size+=this.has(he)?0:1,$t[he]=vt&&void 0===et?"__lodash_hash_undefined__":et,this};const ve=ie,It=function it(he,et){var $t=he.__data__;return function dt(he){var et=typeof he;return"string"==et||"number"==et||"symbol"==et||"boolean"==et?"__proto__"!==he:null===he}(et)?$t["string"==typeof et?"string":"hash"]:$t.map};function bt(he){var et=-1,$t=null==he?0:he.length;for(this.clear();++et<$t;){var Bt=he[et];this.set(Bt[0],Bt[1])}}bt.prototype.clear=function le(){this.size=0,this.__data__={hash:new ve,map:new(Le.A||te),string:new ve}},bt.prototype.delete=function Ft(he){var et=It(this,he).delete(he);return this.size-=et?1:0,et},bt.prototype.get=function kn(he){return It(this,he).get(he)},bt.prototype.has=function qt(he){return It(this,he).has(he)},bt.prototype.set=function tt(he,et){var $t=It(this,he),Bt=$t.size;return $t.set(he,et),this.size+=$t.size==Bt?0:1,this};const on=bt;function $(he){var et=this.__data__=new te(he);this.size=et.size}$.prototype.clear=function be(){this.__data__=new te,this.size=0},$.prototype.delete=function gt(he){var et=this.__data__,$t=et.delete(he);return this.size=et.size,$t},$.prototype.get=function qe(he){return this.__data__.get(he)},$.prototype.has=function ae(he){return this.__data__.has(he)},$.prototype.set=function T(he,et){var $t=this.__data__;if($t instanceof te){var Bt=$t.__data__;if(!Le.A||Bt.length<199)return Bt.push([he,et]),this.size=++$t.size,this;$t=this.__data__=new on(Bt)}return $t.set(he,et),this.size=$t.size,this};const ce=$},6944:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>o});const o=v(1860).A.Symbol},6726:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>F});var o=v(6513),L=v(3744),G=v(9377),ee=v(8606),oe=v(8885),P=Object.prototype.hasOwnProperty;const F=function B(ue,ge){var Ee=(0,L.A)(ue),Re=!Ee&&(0,o.A)(ue),ke=!Ee&&!Re&&(0,G.A)(ue),te=!Ee&&!Re&&!ke&&(0,oe.A)(ue),be=Ee||Re||ke||te,Ze=be?function u(ue,ge){for(var Ee=-1,Re=Array(ue);++Ee{"use strict";v.d(Ne,{A:()=>ee});var u=v(1827),y=v(1319),L=Object.prototype.hasOwnProperty;const ee=function G(oe,V,P){var B=oe[V];(!L.call(oe,V)||!(0,y.A)(B,P)||void 0===P&&!(V in oe))&&(0,u.A)(oe,V,P)}},1827:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>o});var u=v(4746);const o=function y(L,G,ee){"__proto__"==G&&u.A?(0,u.A)(L,G,{configurable:!0,enumerable:!0,value:ee,writable:!0}):L[G]=ee}},5281:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>ke});var u=v(6944),y=Object.prototype,o=y.hasOwnProperty,L=y.toString,G=u.A?u.A.toStringTag:void 0;var P=Object.prototype.toString;var Ee=u.A?u.A.toStringTag:void 0;const ke=function Re(te){return null==te?void 0===te?"[object Undefined]":"[object Null]":Ee&&Ee in Object(te)?function ee(te){var be=o.call(te,G),Ze=te[G];try{te[G]=void 0;var gt=!0}catch{}var je=L.call(te);return gt&&(be?te[G]=Ze:delete te[G]),je}(te):function B(te){return P.call(te)}(te)}},778:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=function u(o){return function(L){return o(L)}}},9750:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>G});const o=v(1860).A.Uint8Array,G=function L(ee){var oe=new ee.constructor(ee.byteLength);return new o(oe).set(new o(ee)),oe}},9933:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>V});var u=v(1860),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=y&&"object"==typeof module&&module&&!module.nodeType&&module,G=o&&o.exports===y?u.A.Buffer:void 0,ee=G?G.allocUnsafe:void 0;const V=function oe(P,B){if(B)return P.slice();var F=P.length,ue=ee?ee(F):new P.constructor(F);return P.copy(ue),ue}},4314:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>o});var u=v(9750);const o=function y(L,G){var ee=G?(0,u.A)(L.buffer):L.buffer;return new L.constructor(ee,L.byteOffset,L.length)}},4528:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=function u(o,L){var G=-1,ee=o.length;for(L||(L=Array(ee));++G{"use strict";v.d(Ne,{A:()=>L});var u=v(1984),y=v(1827);const L=function o(G,ee,oe,V){var P=!oe;oe||(oe={});for(var B=-1,F=ee.length;++B{"use strict";v.d(Ne,{A:()=>o});var u=v(4713);const o=function(){try{var L=(0,u.A)(Object,"defineProperty");return L({},"",{}),L}catch{}}()},7133:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y="object"==typeof global&&global&&global.Object===Object&&global},4713:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>qe});var We,u=v(129),o=v(1860).A["__core-js_shared__"],G=(We=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+We:"";var V=v(554),P=v(8736),F=/^\[object .+?Constructor\]$/,ke=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const be=function te(We){return!(!(0,V.A)(We)||function ee(We){return!!G&&G in We}(We))&&((0,u.A)(We)?ke:F).test((0,P.A)(We))},qe=function je(We,ae){var me=function Ze(We,ae){return We?.[ae]}(We,ae);return be(me)?me:void 0}},8010:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>o});const o=(0,v(8992).A)(Object.getPrototypeOf,Object)},923:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>V});var u=v(554),y=Object.create;const L=function(){function P(){}return function(B){if(!(0,u.A)(B))return{};if(y)return y(B);P.prototype=B;var F=new P;return P.prototype=void 0,F}}();var G=v(8010),ee=v(5776);const V=function oe(P){return"function"!=typeof P.constructor||(0,ee.A)(P)?{}:L((0,G.A)(P))}},8606:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>L});var y=/^(?:0|[1-9]\d*)$/;const L=function o(G,ee){var oe=typeof G;return!!(ee=ee??9007199254740991)&&("number"==oe||"symbol"!=oe&&y.test(G))&&G>-1&&G%1==0&&G{"use strict";v.d(Ne,{A:()=>o});var u=Object.prototype;const o=function y(L){var G=L&&L.constructor;return L===("function"==typeof G&&G.prototype||u)}},3340:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>oe});var u=v(7133),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=y&&"object"==typeof module&&module&&!module.nodeType&&module,G=o&&o.exports===y&&u.A.process;const oe=function(){try{return o&&o.require&&o.require("util").types||G&&G.binding&&G.binding("util")}catch{}}()},8992:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=function u(o,L){return function(G){return o(L(G))}}},1860:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>L});var u=v(7133),y="object"==typeof self&&self&&self.Object===Object&&self;const L=u.A||y||Function("return this")()},8736:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>L});var y=Function.prototype.toString;const L=function o(G){if(null!=G){try{return y.call(G)}catch{}try{return G+""}catch{}}return""}},1319:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=function u(o,L){return o===L||o!=o&&L!=L}},7680:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=function u(o){for(var L=-1,G=null==o?0:o.length,ee={};++L{"use strict";v.d(Ne,{A:()=>B});var u=v(5281),y=v(2661);const G=function L(F){return(0,y.A)(F)&&"[object Arguments]"==(0,u.A)(F)};var ee=Object.prototype,oe=ee.hasOwnProperty,V=ee.propertyIsEnumerable;const B=G(function(){return arguments}())?G:function(F){return(0,y.A)(F)&&oe.call(F,"callee")&&!V.call(F,"callee")}},3744:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=Array.isArray},1287:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>L});var u=v(129),y=v(5481);const L=function o(G){return null!=G&&(0,y.A)(G.length)&&!(0,u.A)(G)}},9377:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>B});var u=v(1860),L="object"==typeof exports&&exports&&!exports.nodeType&&exports,G=L&&"object"==typeof module&&module&&!module.nodeType&&module,oe=G&&G.exports===L?u.A.Buffer:void 0;const B=(oe?oe.isBuffer:void 0)||function y(){return!1}},129:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>V});var u=v(5281),y=v(554);const V=function oe(P){if(!(0,y.A)(P))return!1;var B=(0,u.A)(P);return"[object Function]"==B||"[object GeneratorFunction]"==B||"[object AsyncFunction]"==B||"[object Proxy]"==B}},5481:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>o});const o=function y(L){return"number"==typeof L&&L>-1&&L%1==0&&L<=9007199254740991}},554:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=function u(o){var L=typeof o;return null!=o&&("object"==L||"function"==L)}},2661:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=function u(o){return null!=o&&"object"==typeof o}},8885:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>pi});var u=v(5281),y=v(5481),o=v(2661),At={};At["[object Float32Array]"]=At["[object Float64Array]"]=At["[object Int8Array]"]=At["[object Int16Array]"]=At["[object Int32Array]"]=At["[object Uint8Array]"]=At["[object Uint8ClampedArray]"]=At["[object Uint16Array]"]=At["[object Uint32Array]"]=!0,At["[object Arguments]"]=At["[object Array]"]=At["[object ArrayBuffer]"]=At["[object Boolean]"]=At["[object DataView]"]=At["[object Date]"]=At["[object Error]"]=At["[object Function]"]=At["[object Map]"]=At["[object Number]"]=At["[object Object]"]=At["[object RegExp]"]=At["[object Set]"]=At["[object String]"]=At["[object WeakMap]"]=!1;var Zt=v(778),Fn=v(3340),Vn=Fn.A&&Fn.A.isTypedArray;const pi=Vn?(0,Zt.A)(Vn):function vt(_e){return(0,o.A)(_e)&&(0,y.A)(_e.length)&&!!At[(0,u.A)(_e)]}},133:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>ue});var u=v(6726),y=v(554),o=v(5776);var oe=Object.prototype.hasOwnProperty;const P=function V(ge){if(!(0,y.A)(ge))return function L(ge){var Ee=[];if(null!=ge)for(var Re in Object(ge))Ee.push(Re);return Ee}(ge);var Ee=(0,o.A)(ge),Re=[];for(var ke in ge)"constructor"==ke&&(Ee||!oe.call(ge,ke))||Re.push(ke);return Re};var B=v(1287);const ue=function F(ge){return(0,B.A)(ge)?(0,u.A)(ge,!0):P(ge)}},2401:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>$t});var u=v(7730),y=v(1827),o=v(1319);const G=function L(Bt,Vt,Mn){(void 0!==Mn&&!(0,o.A)(Bt[Vt],Mn)||void 0===Mn&&!(Vt in Bt))&&(0,y.A)(Bt,Vt,Mn)},P=function ee(Bt){return function(Vt,Mn,Ln){for(var Ei=-1,Jt=Object(Vt),En=Ln(Vt),He=En.length;He--;){var Be=En[Bt?He:++Ei];if(!1===Mn(Jt[Be],Be,Jt))break}return Vt}}();var B=v(9933),F=v(4314),ue=v(4528),ge=v(923),Ee=v(6513),Re=v(3744),ke=v(1287),te=v(2661);var gt=v(9377),je=v(129),qe=v(554),We=v(5281),ae=v(8010),At=Function.prototype.toString,vt=Object.prototype.hasOwnProperty,Dt=At.call(Object);var Vn=v(8885);const pi=function _n(Bt,Vt){if(("constructor"!==Vt||"function"!=typeof Bt[Vt])&&"__proto__"!=Vt)return Bt[Vt]};var _e=v(7517),Ae=v(133);const Pe=function Ot(Bt,Vt,Mn,Ln,Ei,Jt,En){var He=pi(Bt,Mn),Be=pi(Vt,Mn),ye=En.get(Be);if(ye)G(Bt,Mn,ye);else{var Ke=Jt?Jt(He,Be,Mn+"",Bt,Vt,En):void 0,zt=void 0===Ke;if(zt){var Pn=(0,Re.A)(Be),vi=!Pn&&(0,gt.A)(Be),Ti=!Pn&&!vi&&(0,Vn.A)(Be);Ke=Be,Pn||vi||Ti?(0,Re.A)(He)?Ke=He:function be(Bt){return(0,te.A)(Bt)&&(0,ke.A)(Bt)}(He)?Ke=(0,ue.A)(He):vi?(zt=!1,Ke=(0,B.A)(Be,!0)):Ti?(zt=!1,Ke=(0,F.A)(Be,!0)):Ke=[]:function Zt(Bt){if(!(0,te.A)(Bt)||"[object Object]"!=(0,We.A)(Bt))return!1;var Vt=(0,ae.A)(Bt);if(null===Vt)return!0;var Mn=vt.call(Vt,"constructor")&&Vt.constructor;return"function"==typeof Mn&&Mn instanceof Mn&&At.call(Mn)==Dt}(Be)||(0,Ee.A)(Be)?(Ke=He,(0,Ee.A)(He)?Ke=function J(Bt){return(0,_e.A)(Bt,(0,Ae.A)(Bt))}(He):(!(0,qe.A)(He)||(0,je.A)(He))&&(Ke=(0,ge.A)(Be))):zt=!1}zt&&(En.set(Be,Ke),Ei(Ke,Be,Ln,Jt,En),En.delete(Be)),G(Bt,Mn,Ke)}},Xe=function ht(Bt,Vt,Mn,Ln,Ei){Bt!==Vt&&P(Vt,function(Jt,En){if(Ei||(Ei=new u.A),(0,qe.A)(Jt))Pe(Bt,Vt,En,Mn,ht,Ln,Ei);else{var He=Ln?Ln(pi(Bt,En),Jt,En+"",Bt,Vt,Ei):void 0;void 0===He&&(He=Jt),G(Bt,En,He)}},Ae.A)},Me=function Je(Bt){return Bt};var le=Math.max;const it=function un(Bt){return function(){return Bt}};var It=v(4746),qt=Date.now;const bt=function we(Bt){var Vt=0,Mn=0;return function(){var Ln=qt(),Ei=16-(Ln-Mn);if(Mn=Ln,Ei>0){if(++Vt>=800)return arguments[0]}else Vt=0;return Bt.apply(void 0,arguments)}}(It.A?function(Bt,Vt){return(0,It.A)(Bt,"toString",{configurable:!0,enumerable:!1,value:it(Vt),writable:!0})}:Me),Q=function on(Bt,Vt){return bt(function Ce(Bt,Vt,Mn){return Vt=le(void 0===Vt?Bt.length-1:Vt,0),function(){for(var Ln=arguments,Ei=-1,Jt=le(Ln.length-Vt,0),En=Array(Jt);++Ei1?Mn[Ei-1]:void 0,En=Ei>2?Mn[2]:void 0;for(Jt=Bt.length>3&&"function"==typeof Jt?(Ei--,Jt):void 0,En&&function N(Bt,Vt,Mn){if(!(0,qe.A)(Mn))return!1;var Ln=typeof Vt;return!!("number"==Ln?(0,ke.A)(Mn)&&(0,T.A)(Vt,Mn.length):"string"==Ln&&Vt in Mn)&&(0,o.A)(Mn[Vt],Bt)}(Mn[0],Mn[1],En)&&(Jt=Ei<3?void 0:Jt,Ei=1),Vt=Object(Vt);++Ln{"use strict";v.d(Ne,{lo:()=>Hh,pC:()=>Jo,Bq:()=>eo,dq:()=>Do,lG:()=>ha,sh:()=>Al,Qe:()=>Rd});var u={};v.r(u),v.d(u,{OG:()=>N,My:()=>dt,Ph:()=>Ft,lX:()=>Rt,Id:()=>tt,fg:()=>he,qj:()=>we,aT:()=>It,lq:()=>kn,z:()=>hi,Q5:()=>$t});var y=v(467);function o(p){if(!Number.isSafeInteger(p)||p<0)throw new Error(`Wrong positive integer: ${p}`)}function G(p,...g){if(!(p instanceof Uint8Array))throw new Error("Expected Uint8Array");if(g.length>0&&!g.includes(p.length))throw new Error(`Expected Uint8Array of length ${g}, not of length=${p.length}`)}function oe(p,g=!0){if(p.destroyed)throw new Error("Hash instance has been destroyed");if(g&&p.finished)throw new Error("Hash#digest() has already been called")}const F="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,ue=p=>p instanceof Uint8Array,Re=p=>new DataView(p.buffer,p.byteOffset,p.byteLength),ke=(p,g)=>p<<32-g|p>>>g;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function me(p){if("string"==typeof p&&(p=function ae(p){if("string"!=typeof p)throw new Error("utf8ToBytes expected string, got "+typeof p);return new Uint8Array((new TextEncoder).encode(p))}(p)),!ue(p))throw new Error("expected Uint8Array, got "+typeof p);return p}class nt{clone(){return this._cloneInto()}}function Dt(p){const g=M=>p().update(me(M)).digest(),b=p();return g.outputLen=b.outputLen,g.blockLen=b.blockLen,g.create=()=>p(),g}function Vn(p=32){if(F&&"function"==typeof F.getRandomValues)return F.getRandomValues(new Uint8Array(p));throw new Error("crypto.getRandomValues must be defined")}class pi extends nt{constructor(g,b,M,U){super(),this.blockLen=g,this.outputLen=b,this.padOffset=M,this.isLE=U,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(g),this.view=Re(this.buffer)}update(g){oe(this);const{view:b,buffer:M,blockLen:U}=this,q=(g=me(g)).length;for(let fe=0;feU-fe&&(this.process(M,0),fe=0);for(let Ct=fe;Ct>U&q),De=Number(b&q),ot=M?0:4;p.setUint32(g+(M?4:0),fe,M),p.setUint32(g+ot,De,M)})(M,U-8,BigInt(8*this.length),q),this.process(M,0);const De=Re(g),Ue=this.outputLen;if(Ue%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const ot=Ue/4,Mt=this.get();if(ot>Mt.length)throw new Error("_sha2: outputLen bigger than state");for(let Ct=0;Ctp&g^~p&b,Ae=(p,g,b)=>p&g^p&b^g&b,J=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ie=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ot=new Uint32Array(64);class Pe extends pi{constructor(){super(64,32,8,!1),this.A=0|Ie[0],this.B=0|Ie[1],this.C=0|Ie[2],this.D=0|Ie[3],this.E=0|Ie[4],this.F=0|Ie[5],this.G=0|Ie[6],this.H=0|Ie[7]}get(){const{A:g,B:b,C:M,D:U,E:q,F:fe,G:De,H:Ue}=this;return[g,b,M,U,q,fe,De,Ue]}set(g,b,M,U,q,fe,De,Ue){this.A=0|g,this.B=0|b,this.C=0|M,this.D=0|U,this.E=0|q,this.F=0|fe,this.G=0|De,this.H=0|Ue}process(g,b){for(let Ct=0;Ct<16;Ct++,b+=4)Ot[Ct]=g.getUint32(b,!1);for(let Ct=16;Ct<64;Ct++){const en=Ot[Ct-15],an=Ot[Ct-2],Xt=ke(en,7)^ke(en,18)^en>>>3,Nt=ke(an,17)^ke(an,19)^an>>>10;Ot[Ct]=Nt+Ot[Ct-7]+Xt+Ot[Ct-16]|0}let{A:M,B:U,C:q,D:fe,E:De,F:Ue,G:ot,H:Mt}=this;for(let Ct=0;Ct<64;Ct++){const an=Mt+(ke(De,6)^ke(De,11)^ke(De,25))+_e(De,Ue,ot)+J[Ct]+Ot[Ct]|0,Nt=(ke(M,2)^ke(M,13)^ke(M,22))+Ae(M,U,q)|0;Mt=ot,ot=Ue,Ue=De,De=fe+an|0,fe=q,q=U,U=M,M=an+Nt|0}M=M+this.A|0,U=U+this.B|0,q=q+this.C|0,fe=fe+this.D|0,De=De+this.E|0,Ue=Ue+this.F|0,ot=ot+this.G|0,Mt=Mt+this.H|0,this.set(M,U,q,fe,De,Ue,ot,Mt)}roundClean(){Ot.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Xe=Dt(()=>new Pe),ie=(BigInt(0),BigInt(1)),ve=BigInt(2),le=p=>p instanceof Uint8Array,Ce=Array.from({length:256},(p,g)=>g.toString(16).padStart(2,"0"));function dt(p){if(!le(p))throw new Error("Uint8Array expected");let g="";for(let b=0;bM+U.length,0));let b=0;return p.forEach(M=>{if(!le(M))throw new Error("Uint8Array expected");g.set(M,b),b+=M.length}),g}const N=p=>(ve<new Uint8Array(p),ce=p=>Uint8Array.from(p);function he(p,g,b){if("number"!=typeof p||p<2)throw new Error("hashLen must be a number");if("number"!=typeof g||g<2)throw new Error("qByteLen must be a number");if("function"!=typeof b)throw new Error("hmacFn must be a function");let M=$(p),U=$(p),q=0;const fe=()=>{M.fill(1),U.fill(0),q=0},De=(...Ct)=>b(U,M,...Ct),Ue=(Ct=$())=>{U=De(ce([0]),Ct),M=De(),0!==Ct.length&&(U=De(ce([1]),Ct),M=De())},ot=()=>{if(q++>=1e3)throw new Error("drbg: tried 1000 values");let Ct=0;const en=[];for(;Ct{let an;for(fe(),Ue(Ct);!(an=en(ot()));)Ue();return fe(),an}}const et={bigint:p=>"bigint"==typeof p,function:p=>"function"==typeof p,boolean:p=>"boolean"==typeof p,string:p=>"string"==typeof p,stringOrUint8Array:p=>"string"==typeof p||p instanceof Uint8Array,isSafeInteger:p=>Number.isSafeInteger(p),array:p=>Array.isArray(p),field:(p,g)=>g.Fp.isValid(p),hash:p=>"function"==typeof p&&Number.isSafeInteger(p.outputLen)};function $t(p,g,b={}){const M=(U,q,fe)=>{const De=et[q];if("function"!=typeof De)throw new Error(`Invalid validator "${q}", expected function`);const Ue=p[U];if(!(fe&&void 0===Ue||De(Ue,p)))throw new Error(`Invalid param ${String(U)}=${Ue} (${typeof Ue}), expected ${q}`)};for(const[U,q]of Object.entries(g))M(U,q,!1);for(const[U,q]of Object.entries(b))M(U,q,!0);return p}const Bt=BigInt(0),Vt=BigInt(1),Mn=BigInt(2),Ln=BigInt(3),Ei=BigInt(4),Jt=BigInt(5),En=BigInt(8);function ye(p,g){const b=p%g;return b>=Bt?b:g+b}function Ke(p,g,b){if(b<=Bt||g 0");if(b===Vt)return Bt;let M=Vt;for(;g>Bt;)g&Vt&&(M=M*p%b),p=p*p%b,g>>=Vt;return M}function zt(p,g,b){let M=p;for(;g-- >Bt;)M*=M,M%=b;return M}function Pn(p,g){if(p===Bt||g<=Bt)throw new Error(`invert: expected positive integers, got n=${p} mod=${g}`);let b=ye(p,g),M=g,U=Bt,q=Vt,fe=Vt,De=Bt;for(;b!==Bt;){const ot=M/b,Mt=M%b,Ct=U-fe*ot,en=q-De*ot;M=b,b=Mt,U=fe,q=De,fe=Ct,De=en}if(M!==Vt)throw new Error("invert: does not exist");return ye(U,g)}BigInt(9),BigInt(16);const Et=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ct(p,g){const b=void 0!==g?g:p.toString(2).length;return{nBitLength:b,nByteLength:Math.ceil(b/8)}}function xr(p){if("bigint"!=typeof p)throw new Error("field order must be bigint");const g=p.toString(2).length;return Math.ceil(g/8)}function Ri(p){const g=xr(p);return g+Math.ceil(g/2)}class wi extends nt{constructor(g,b){super(),this.finished=!1,this.destroyed=!1,function ee(p){if("function"!=typeof p||"function"!=typeof p.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");o(p.outputLen),o(p.blockLen)}(g);const M=me(b);if(this.iHash=g.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 U=this.blockLen,q=new Uint8Array(U);q.set(M.length>U?g.create().update(M).digest():M);for(let fe=0;fenew wi(p,g).update(b).digest();Yr.create=(p,g)=>new wi(p,g);const Or=BigInt(0),ft=BigInt(1);function ln(p){return function at(p){$t(p,Et.reduce((M,U)=>(M[U]="function",M),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(p.Fp),$t(p,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...ct(p.n,p.nBitLength),...p,p:p.Fp.ORDER})}const{Ph:An,aT:Xn}=u,zn={Err:class extends Error{constructor(g=""){super(g)}},_parseInt(p){const{Err:g}=zn;if(p.length<2||2!==p[0])throw new g("Invalid signature integer tag");const b=p[1],M=p.subarray(2,b+2);if(!b||M.length!==b)throw new g("Invalid signature integer: wrong length");if(128&M[0])throw new g("Invalid signature integer: negative");if(0===M[0]&&!(128&M[1]))throw new g("Invalid signature integer: unnecessary leading zero");return{d:An(M),l:p.subarray(b+2)}},toSig(p){const{Err:g}=zn,b="string"==typeof p?Xn(p):p;if(!(b instanceof Uint8Array))throw new Error("ui8a expected");let M=b.length;if(M<2||48!=b[0])throw new g("Invalid signature tag");if(b[1]!==M-2)throw new g("Invalid signature: incorrect length");const{d:U,l:q}=zn._parseInt(b.subarray(2)),{d:fe,l:De}=zn._parseInt(q);if(De.length)throw new g("Invalid signature: left bytes after parsing");return{r:U,s:fe}},hexFromSig(p){const g=ot=>8&Number.parseInt(ot[0],16)?"00"+ot:ot,b=ot=>{const Mt=ot.toString(16);return 1&Mt.length?`0${Mt}`:Mt},M=g(b(p.s)),U=g(b(p.r)),q=M.length/2,fe=U.length/2,De=b(q),Ue=b(fe);return`30${b(fe+q+4)}02${Ue}${U}02${De}${M}`}},ri=BigInt(0),li=BigInt(1),xe=(BigInt(2),BigInt(3));function Te(p){const g=function W(p){const g=ln(p);return $t(g,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...g})}(p),{Fp:b,n:M}=g,U=b.BYTES+1,q=2*b.BYTES+1;function De(Wn){return ye(Wn,M)}function Ue(Wn){return Pn(Wn,M)}const{ProjectivePoint:ot,normPrivateKeyToScalar:Mt,weierstrassEquation:Ct,isWithinCurveOrder:en}=function Ge(p){const g=function yn(p){const g=ln(p);$t(g,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:b,Fp:M,a:U}=g;if(b){if(!M.eql(U,M.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof b||"bigint"!=typeof b.beta||"function"!=typeof b.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...g})}(p),{Fp:b}=g,M=g.toBytes||((Xt,Nt,Ut)=>{const dn=Nt.toAffine();return tt(Uint8Array.from([4]),b.toBytes(dn.x),b.toBytes(dn.y))}),U=g.fromBytes||(Xt=>{const Nt=Xt.subarray(1);return{x:b.fromBytes(Nt.subarray(0,b.BYTES)),y:b.fromBytes(Nt.subarray(b.BYTES,2*b.BYTES))}});function q(Xt){const{a:Nt,b:Ut}=g,dn=b.sqr(Xt),mn=b.mul(dn,Xt);return b.add(b.add(mn,b.mul(Xt,Nt)),Ut)}if(!b.eql(b.sqr(g.Gy),q(g.Gx)))throw new Error("bad generator point: equation left != right");function fe(Xt){return"bigint"==typeof Xt&&rib.eql(Un,b.ZERO);return mn(Ut)&&mn(dn)?Ct.ZERO:new Ct(Ut,dn,b.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Nt){const Ut=b.invertBatch(Nt.map(dn=>dn.pz));return Nt.map((dn,mn)=>dn.toAffine(Ut[mn])).map(Ct.fromAffine)}static fromHex(Nt){const Ut=Ct.fromAffine(U(we("pointHex",Nt)));return Ut.assertValidity(),Ut}static fromPrivateKey(Nt){return Ct.BASE.multiply(Ue(Nt))}_setWindowSize(Nt){this._WINDOW_SIZE=Nt,ot.delete(this)}assertValidity(){if(this.is0()){if(g.allowInfinityPoint&&!b.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:Nt,y:Ut}=this.toAffine();if(!b.isValid(Nt)||!b.isValid(Ut))throw new Error("bad point: x or y not FE");const dn=b.sqr(Ut),mn=q(Nt);if(!b.eql(dn,mn))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Nt}=this.toAffine();if(b.isOdd)return!b.isOdd(Nt);throw new Error("Field doesn't support isOdd")}equals(Nt){Mt(Nt);const{px:Ut,py:dn,pz:mn}=this,{px:Un,py:Kn,pz:xi}=Nt,oi=b.eql(b.mul(Ut,xi),b.mul(Un,mn)),_i=b.eql(b.mul(dn,xi),b.mul(Kn,mn));return oi&&_i}negate(){return new Ct(this.px,b.neg(this.py),this.pz)}double(){const{a:Nt,b:Ut}=g,dn=b.mul(Ut,xe),{px:mn,py:Un,pz:Kn}=this;let xi=b.ZERO,oi=b.ZERO,_i=b.ZERO,bi=b.mul(mn,mn),Yi=b.mul(Un,Un),Hi=b.mul(Kn,Kn),Ui=b.mul(mn,Un);return Ui=b.add(Ui,Ui),_i=b.mul(mn,Kn),_i=b.add(_i,_i),xi=b.mul(Nt,_i),oi=b.mul(dn,Hi),oi=b.add(xi,oi),xi=b.sub(Yi,oi),oi=b.add(Yi,oi),oi=b.mul(xi,oi),xi=b.mul(Ui,xi),_i=b.mul(dn,_i),Hi=b.mul(Nt,Hi),Ui=b.sub(bi,Hi),Ui=b.mul(Nt,Ui),Ui=b.add(Ui,_i),_i=b.add(bi,bi),bi=b.add(_i,bi),bi=b.add(bi,Hi),bi=b.mul(bi,Ui),oi=b.add(oi,bi),Hi=b.mul(Un,Kn),Hi=b.add(Hi,Hi),bi=b.mul(Hi,Ui),xi=b.sub(xi,bi),_i=b.mul(Hi,Yi),_i=b.add(_i,_i),_i=b.add(_i,_i),new Ct(xi,oi,_i)}add(Nt){Mt(Nt);const{px:Ut,py:dn,pz:mn}=this,{px:Un,py:Kn,pz:xi}=Nt;let oi=b.ZERO,_i=b.ZERO,bi=b.ZERO;const Yi=g.a,Hi=b.mul(g.b,xe);let Ui=b.mul(Ut,Un),vr=b.mul(dn,Kn),mr=b.mul(mn,xi),Dr=b.add(Ut,dn),Wn=b.add(Un,Kn);Dr=b.mul(Dr,Wn),Wn=b.add(Ui,vr),Dr=b.sub(Dr,Wn),Wn=b.add(Ut,mn);let ni=b.add(Un,xi);return Wn=b.mul(Wn,ni),ni=b.add(Ui,mr),Wn=b.sub(Wn,ni),ni=b.add(dn,mn),oi=b.add(Kn,xi),ni=b.mul(ni,oi),oi=b.add(vr,mr),ni=b.sub(ni,oi),bi=b.mul(Yi,Wn),oi=b.mul(Hi,mr),bi=b.add(oi,bi),oi=b.sub(vr,bi),bi=b.add(vr,bi),_i=b.mul(oi,bi),vr=b.add(Ui,Ui),vr=b.add(vr,Ui),mr=b.mul(Yi,mr),Wn=b.mul(Hi,Wn),vr=b.add(vr,mr),mr=b.sub(Ui,mr),mr=b.mul(Yi,mr),Wn=b.add(Wn,mr),Ui=b.mul(vr,Wn),_i=b.add(_i,Ui),Ui=b.mul(ni,Wn),oi=b.mul(Dr,oi),oi=b.sub(oi,Ui),Ui=b.mul(Dr,vr),bi=b.mul(ni,bi),bi=b.add(bi,Ui),new Ct(oi,_i,bi)}subtract(Nt){return this.add(Nt.negate())}is0(){return this.equals(Ct.ZERO)}wNAF(Nt){return an.wNAFCached(this,ot,Nt,Ut=>{const dn=b.invertBatch(Ut.map(mn=>mn.pz));return Ut.map((mn,Un)=>mn.toAffine(dn[Un])).map(Ct.fromAffine)})}multiplyUnsafe(Nt){const Ut=Ct.ZERO;if(Nt===ri)return Ut;if(De(Nt),Nt===li)return this;const{endo:dn}=g;if(!dn)return an.unsafeLadder(this,Nt);let{k1neg:mn,k1:Un,k2neg:Kn,k2:xi}=dn.splitScalar(Nt),oi=Ut,_i=Ut,bi=this;for(;Un>ri||xi>ri;)Un&li&&(oi=oi.add(bi)),xi&li&&(_i=_i.add(bi)),bi=bi.double(),Un>>=li,xi>>=li;return mn&&(oi=oi.negate()),Kn&&(_i=_i.negate()),_i=new Ct(b.mul(_i.px,dn.beta),_i.py,_i.pz),oi.add(_i)}multiply(Nt){De(Nt);let dn,mn,Ut=Nt;const{endo:Un}=g;if(Un){const{k1neg:Kn,k1:xi,k2neg:oi,k2:_i}=Un.splitScalar(Ut);let{p:bi,f:Yi}=this.wNAF(xi),{p:Hi,f:Ui}=this.wNAF(_i);bi=an.constTimeNegate(Kn,bi),Hi=an.constTimeNegate(oi,Hi),Hi=new Ct(b.mul(Hi.px,Un.beta),Hi.py,Hi.pz),dn=bi.add(Hi),mn=Yi.add(Ui)}else{const{p:Kn,f:xi}=this.wNAF(Ut);dn=Kn,mn=xi}return Ct.normalizeZ([dn,mn])[0]}multiplyAndAddUnsafe(Nt,Ut,dn){const mn=Ct.BASE,Un=(xi,oi)=>oi!==ri&&oi!==li&&xi.equals(mn)?xi.multiply(oi):xi.multiplyUnsafe(oi),Kn=Un(this,Ut).add(Un(Nt,dn));return Kn.is0()?void 0:Kn}toAffine(Nt){const{px:Ut,py:dn,pz:mn}=this,Un=this.is0();null==Nt&&(Nt=Un?b.ONE:b.inv(mn));const Kn=b.mul(Ut,Nt),xi=b.mul(dn,Nt),oi=b.mul(mn,Nt);if(Un)return{x:b.ZERO,y:b.ZERO};if(!b.eql(oi,b.ONE))throw new Error("invZ was invalid");return{x:Kn,y:xi}}isTorsionFree(){const{h:Nt,isTorsionFree:Ut}=g;if(Nt===li)return!0;if(Ut)return Ut(Ct,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Nt,clearCofactor:Ut}=g;return Nt===li?this:Ut?Ut(Ct,this):this.multiplyUnsafe(g.h)}toRawBytes(Nt=!0){return this.assertValidity(),M(Ct,this,Nt)}toHex(Nt=!0){return dt(this.toRawBytes(Nt))}}Ct.BASE=new Ct(g.Gx,g.Gy,b.ONE),Ct.ZERO=new Ct(b.ZERO,b.ONE,b.ZERO);const en=g.nBitLength,an=function St(p,g){const b=(U,q)=>{const fe=q.negate();return U?fe:q},M=U=>({windows:Math.ceil(g/U)+1,windowSize:2**(U-1)});return{constTimeNegate:b,unsafeLadder(U,q){let fe=p.ZERO,De=U;for(;q>Or;)q&ft&&(fe=fe.add(De)),De=De.double(),q>>=ft;return fe},precomputeWindow(U,q){const{windows:fe,windowSize:De}=M(q),Ue=[];let ot=U,Mt=ot;for(let Ct=0;Ct>=an,Ut>Ue&&(Ut-=en,fe+=ft);const dn=Nt,mn=Nt+Math.abs(Ut)-1,Kn=Ut<0;0===Ut?Mt=Mt.add(b(Xt%2!=0,q[dn])):ot=ot.add(b(Kn,q[mn]))}return{p:ot,f:Mt}},wNAFCached(U,q,fe,De){const Ue=U._WINDOW_SIZE||1;let ot=q.get(U);return ot||(ot=this.precomputeWindow(U,Ue),1!==Ue&&q.set(U,De(ot))),this.wNAF(Ue,ot,fe)}}}(Ct,g.endo?Math.ceil(en/2):en);return{CURVE:g,ProjectivePoint:Ct,normPrivateKeyToScalar:Ue,weierstrassEquation:q,isWithinCurveOrder:fe}}({...g,toBytes(Wn,ni,Ni){const Oi=ni.toAffine(),qn=b.toBytes(Oi.x),cr=tt;return Ni?cr(Uint8Array.from([ni.hasEvenY()?2:3]),qn):cr(Uint8Array.from([4]),qn,b.toBytes(Oi.y))},fromBytes(Wn){const ni=Wn.length,Ni=Wn[0],Oi=Wn.subarray(1);if(ni!==U||2!==Ni&&3!==Ni){if(ni===q&&4===Ni)return{x:b.fromBytes(Oi.subarray(0,b.BYTES)),y:b.fromBytes(Oi.subarray(b.BYTES,2*b.BYTES))};throw new Error(`Point of length ${ni} was invalid. Expected ${U} compressed bytes or ${q} uncompressed bytes`)}{const qn=Ft(Oi);if(!function fe(Wn){return ridt(kn(Wn,g.nByteLength));function Xt(Wn){return Wn>M>>li}const Ut=(Wn,ni,Ni)=>Ft(Wn.slice(ni,Ni));class dn{constructor(ni,Ni,Oi){this.r=ni,this.s=Ni,this.recovery=Oi,this.assertValidity()}static fromCompact(ni){const Ni=g.nByteLength;return ni=we("compactSignature",ni,2*Ni),new dn(Ut(ni,0,Ni),Ut(ni,Ni,2*Ni))}static fromDER(ni){const{r:Ni,s:Oi}=zn.toSig(we("DER",ni));return new dn(Ni,Oi)}assertValidity(){if(!en(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!en(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(ni){return new dn(this.r,this.s,ni)}recoverPublicKey(ni){const{r:Ni,s:Oi,recovery:qn}=this,cr=_i(we("msgHash",ni));if(null==qn||![0,1,2,3].includes(qn))throw new Error("recovery id invalid");const dr=2===qn||3===qn?Ni+g.n:Ni;if(dr>=b.ORDER)throw new Error("recovery id 2 or 3 invalid");const ts=ot.fromHex((1&qn?"03":"02")+an(dr)),Vr=Ue(dr),Fo=De(-cr*Vr),ea=De(Oi*Vr),ks=ot.BASE.multiplyAndAddUnsafe(ts,Fo,ea);if(!ks)throw new Error("point at infinify");return ks.assertValidity(),ks}hasHighS(){return Xt(this.s)}normalizeS(){return this.hasHighS()?new dn(this.r,De(-this.s),this.recovery):this}toDERRawBytes(){return It(this.toDERHex())}toDERHex(){return zn.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return It(this.toCompactHex())}toCompactHex(){return an(this.r)+an(this.s)}}const mn={isValidPrivateKey(Wn){try{return Mt(Wn),!0}catch{return!1}},normPrivateKeyToScalar:Mt,randomPrivateKey:()=>{const Wn=Ri(g.n);return function Pr(p,g,b=!1){const M=p.length,U=xr(g),q=Ri(g);if(M<16||M1024)throw new Error(`expected ${q}-1024 bytes of input, got ${M}`);const De=ye(b?Ft(p):Rt(p),g-Vt)+Vt;return b?hi(De,U):kn(De,U)}(g.randomBytes(Wn),g.n)},precompute:(Wn=8,ni=ot.BASE)=>(ni._setWindowSize(Wn),ni.multiply(BigInt(3)),ni)};function Kn(Wn){const ni=Wn instanceof Uint8Array,Ni="string"==typeof Wn,Oi=(ni||Ni)&&Wn.length;return ni?Oi===U||Oi===q:Ni?Oi===2*U||Oi===2*q:Wn instanceof ot}const oi=g.bits2int||function(Wn){const ni=Ft(Wn),Ni=8*Wn.length-g.nBitLength;return Ni>0?ni>>BigInt(Ni):ni},_i=g.bits2int_modN||function(Wn){return De(oi(Wn))},bi=N(g.nBitLength);function Yi(Wn){if("bigint"!=typeof Wn)throw new Error("bigint expected");if(!(ri<=Wn&&WnNs in Ni))throw new Error("sign() legacy options not supported");const{hash:Oi,randomBytes:qn}=g;let{lowS:cr,prehash:dr,extraEntropy:wr}=Ni;null==cr&&(cr=!0),Wn=we("msgHash",Wn),dr&&(Wn=we("prehashed msgHash",Oi(Wn)));const ts=_i(Wn),Vr=Mt(ni),Fo=[Yi(Vr),Yi(ts)];if(null!=wr){const Ns=!0===wr?qn(b.BYTES):wr;Fo.push(we("extraEntropy",Ns))}const ea=tt(...Fo),ks=ts;return{seed:ea,k2sig:function Ea(Ns){const Ec=oi(Ns);if(!en(Ec))return;const Kd=Ue(Ec),ja=ot.BASE.multiply(Ec).toAffine(),Ca=De(ja.x);if(Ca===ri)return;const Ml=De(Kd*De(ks+Ca*Vr));if(Ml===ri)return;let sf=(ja.x===Ca?0:2)|Number(ja.y&li),Xd=Ml;return cr&&Xt(Ml)&&(Xd=function Nt(Wn){return Xt(Wn)?De(-Wn):Wn}(Ml),sf^=1),new dn(Ca,Xd,sf)}}}(Wn,ni,Ni);return he(g.hash.outputLen,g.nByteLength,g.hmac)(Oi,qn)},verify:function Dr(Wn,ni,Ni,Oi=vr){const qn=Wn;if(ni=we("msgHash",ni),Ni=we("publicKey",Ni),"strict"in Oi)throw new Error("options.strict was renamed to lowS");const{lowS:cr,prehash:dr}=Oi;let wr,ts;try{if("string"==typeof qn||qn instanceof Uint8Array)try{wr=dn.fromDER(qn)}catch(ja){if(!(ja instanceof zn.Err))throw ja;wr=dn.fromCompact(qn)}else{if("object"!=typeof qn||"bigint"!=typeof qn.r||"bigint"!=typeof qn.s)throw new Error("PARSE");{const{r:ja,s:Ca}=qn;wr=new dn(ja,Ca)}}ts=ot.fromHex(Ni)}catch(ja){if("PARSE"===ja.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(cr&&wr.hasHighS())return!1;dr&&(ni=g.hash(ni));const{r:Vr,s:Fo}=wr,ea=_i(ni),ks=Ue(Fo),Ea=De(ea*ks),Ns=De(Vr*ks),Ec=ot.BASE.multiplyAndAddUnsafe(ts,Ea,Ns)?.toAffine();return!!Ec&&De(Ec.x)===Vr},ProjectivePoint:ot,Signature:dn,utils:mn}}function pt(p){return{hash:p,hmac:(g,...b)=>Yr(p,g,function Le(...p){const g=new Uint8Array(p.reduce((M,U)=>M+U.length,0));let b=0;return p.forEach(M=>{if(!ue(M))throw new Error("Uint8Array expected");g.set(M,b),b+=M.length}),g}(...b)),randomBytes:Vn}}BigInt(4);const jt=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),hn=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),fn=BigInt(1),wn=BigInt(2),Dn=(p,g)=>(p+g/wn)/g;function jn(p){const g=jt,b=BigInt(3),M=BigInt(6),U=BigInt(11),q=BigInt(22),fe=BigInt(23),De=BigInt(44),Ue=BigInt(88),ot=p*p*p%g,Mt=ot*ot*p%g,Ct=zt(Mt,b,g)*Mt%g,en=zt(Ct,b,g)*Mt%g,an=zt(en,wn,g)*ot%g,Xt=zt(an,U,g)*an%g,Nt=zt(Xt,q,g)*Xt%g,Ut=zt(Nt,De,g)*Nt%g,dn=zt(Ut,Ue,g)*Ut%g,mn=zt(dn,De,g)*Nt%g,Un=zt(mn,b,g)*Mt%g,Kn=zt(Un,fe,g)*Xt%g,xi=zt(Kn,M,g)*ot%g,oi=zt(xi,wn,g);if(!$n.eql($n.sqr(oi),p))throw new Error("Cannot find square root");return oi}const $n=function Wt(p,g,b=!1,M={}){if(p<=Bt)throw new Error(`Expected Field ORDER > 0, got ${p}`);const{nBitLength:U,nByteLength:q}=ct(p,g);if(q>2048)throw new Error("Field lengths over 2048 bytes are not supported");const fe=function Ti(p){if(p%Ei===Ln){const g=(p+Vt)/Ei;return function(M,U){const q=M.pow(U,g);if(!M.eql(M.sqr(q),U))throw new Error("Cannot find square root");return q}}if(p%En===Jt){const g=(p-Jt)/En;return function(M,U){const q=M.mul(U,Mn),fe=M.pow(q,g),De=M.mul(U,fe),Ue=M.mul(M.mul(De,Mn),fe),ot=M.mul(De,M.sub(Ue,M.ONE));if(!M.eql(M.sqr(ot),U))throw new Error("Cannot find square root");return ot}}return function vi(p){const g=(p-Vt)/Mn;let b,M,U;for(b=p-Vt,M=0;b%Mn===Bt;b/=Mn,M++);for(U=Mn;Uye(Ue,p),isValid:Ue=>{if("bigint"!=typeof Ue)throw new Error("Invalid field element: expected bigint, got "+typeof Ue);return Bt<=Ue&&UeUe===Bt,isOdd:Ue=>(Ue&Vt)===Vt,neg:Ue=>ye(-Ue,p),eql:(Ue,ot)=>Ue===ot,sqr:Ue=>ye(Ue*Ue,p),add:(Ue,ot)=>ye(Ue+ot,p),sub:(Ue,ot)=>ye(Ue-ot,p),mul:(Ue,ot)=>ye(Ue*ot,p),pow:(Ue,ot)=>function Lt(p,g,b){if(b 0");if(b===Bt)return p.ONE;if(b===Vt)return g;let M=p.ONE,U=g;for(;b>Bt;)b&Vt&&(M=p.mul(M,U)),U=p.sqr(U),b>>=Vt;return M}(De,Ue,ot),div:(Ue,ot)=>ye(Ue*Pn(ot,p),p),sqrN:Ue=>Ue*Ue,addN:(Ue,ot)=>Ue+ot,subN:(Ue,ot)=>Ue-ot,mulN:(Ue,ot)=>Ue*ot,inv:Ue=>Pn(Ue,p),sqrt:M.sqrt||(Ue=>fe(De,Ue)),invertBatch:Ue=>function st(p,g){const b=new Array(g.length),M=g.reduce((q,fe,De)=>p.is0(fe)?q:(b[De]=q,p.mul(q,fe)),p.ONE),U=p.inv(M);return g.reduceRight((q,fe,De)=>p.is0(fe)?q:(b[De]=p.mul(q,b[De]),p.mul(q,fe)),U),b}(De,Ue),cmov:(Ue,ot,Mt)=>Mt?ot:Ue,toBytes:Ue=>b?hi(Ue,q):kn(Ue,q),fromBytes:Ue=>{if(Ue.length!==q)throw new Error(`Fp.fromBytes: expected ${q}, got ${Ue.length}`);return b?Rt(Ue):Ft(Ue)}});return Object.freeze(De)}(jt,void 0,void 0,{sqrt:jn}),ci=function lt(p,g){const b=M=>Te({...p,...pt(M)});return Object.freeze({...b(g),create:b})}({a:BigInt(0),b:BigInt(7),Fp:$n,n:hn,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:p=>{const g=hn,b=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),M=-fn*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),U=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),q=b,fe=BigInt("0x100000000000000000000000000000000"),De=Dn(q*p,g),Ue=Dn(-M*p,g);let ot=ye(p-De*b-Ue*U,g),Mt=ye(-De*M-Ue*q,g);const Ct=ot>fe,en=Mt>fe;if(Ct&&(ot=g-ot),en&&(Mt=g-Mt),ot>fe||Mt>fe)throw new Error("splitScalar: Endomorphism failed, k="+p);return{k1neg:Ct,k1:ot,k2neg:en,k2:Mt}}}},Xe),ki=BigInt(0),ei=p=>"bigint"==typeof p&&kiU.charCodeAt(0)));b=tt(M,M),Rr[p]=b}return Xe(tt(b,...g))}const Fr=p=>p.toRawBytes(!0).slice(1),Ci=p=>kn(p,32),Lr=p=>ye(p,jt),$o=p=>ye(p,hn),zi=ci.ProjectivePoint;function ns(p){let g=ci.utils.normPrivateKeyToScalar(p),b=zi.fromPrivateKey(g);return{scalar:b.hasEvenY()?g:$o(-g),bytes:Fr(b)}}function oo(p){if(!ei(p))throw new Error("bad x: need 0 < x < p");const g=Lr(p*p);let M=jn(Lr(g*p+BigInt(7)));M%wn!==ki&&(M=Lr(-M));const U=new zi(p,M,fn);return U.assertValidity(),U}function ma(...p){return $o(Ft(uo("BIP0340/challenge",...p)))}function vo(p,g,b){const M=we("signature",p,64),U=we("message",g),q=we("publicKey",b,32);try{const fe=oo(Ft(q)),De=Ft(M.subarray(0,32));if(!ei(De))return!1;const Ue=Ft(M.subarray(32,64));if(!(p=>"bigint"==typeof p&&kizi.BASE.multiplyAndAddUnsafe(p,g,b))(fe,Ue,$o(-ot));return!(!Mt||!Mt.hasEvenY()||Mt.toAffine().x!==De)}catch{return!1}}const Lo={getPublicKey:function ga(p){return ns(p).bytes},sign:function Ul(p,g,b=Vn(32)){const M=we("message",p),{bytes:U,scalar:q}=ns(g),fe=we("auxRand",b,32),De=Ci(q^Ft(uo("BIP0340/aux",fe))),Ue=uo("BIP0340/nonce",De,U,M),ot=$o(Ft(Ue));if(ot===ki)throw new Error("sign failed: k is zero");const{bytes:Mt,scalar:Ct}=ns(ot),en=ma(Mt,U,M),an=new Uint8Array(64);if(an.set(Mt,0),an.set(Ci($o(Ct+en*q)),32),!vo(an,M,U))throw new Error("sign: Invalid signature produced");return an},verify:vo,utils:{randomPrivateKey:ci.utils.randomPrivateKey,lift_x:oo,pointToBytes:Fr,numberToBytesBE:kn,bytesToNumberBE:Ft,taggedHash:uo,mod:ye}};var Ii=v(6391);function rs(p){if(!Number.isSafeInteger(p)||p<0)throw new Error(`Wrong positive integer: ${p}`)}function Tr(p,...g){if(!(p instanceof Uint8Array))throw new Error("Expected Uint8Array");if(g.length>0&&!g.includes(p.length))throw new Error(`Expected Uint8Array of length ${g}, not of length=${p.length}`)}const Hr={number:rs,bool:function Ar(p){if("boolean"!=typeof p)throw new Error(`Expected boolean, not ${p}`)},bytes:Tr,hash:function Ir(p){if("function"!=typeof p||"function"!=typeof p.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");rs(p.outputLen),rs(p.blockLen)},exists:function Vs(p,g=!0){if(p.destroyed)throw new Error("Hash instance has been destroyed");if(g&&p.finished)throw new Error("Hash#digest() has already been called")},output:function Di(p,g){Tr(p);const b=g.outputLen;if(p.lengthU-fe&&(this.process(M,0),fe=0);for(let Ct=fe;Ct>U&q),De=Number(b&q),ot=M?0:4;p.setUint32(g+(M?4:0),fe,M),p.setUint32(g+ot,De,M)})(M,U-8,BigInt(8*this.length),q),this.process(M,0);const De=(0,Ii.O8)(g),Ue=this.outputLen;if(Ue%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const ot=Ue/4,Mt=this.get();if(ot>Mt.length)throw new Error("_sha2: outputLen bigger than state");for(let Ct=0;Ctp&g^~p&b,gs=(p,g,b)=>p&g^p&b^g&b,Hs=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Qr=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Li=new Uint32Array(64);class gr extends Uo{constructor(){super(64,32,8,!1),this.A=0|Qr[0],this.B=0|Qr[1],this.C=0|Qr[2],this.D=0|Qr[3],this.E=0|Qr[4],this.F=0|Qr[5],this.G=0|Qr[6],this.H=0|Qr[7]}get(){const{A:g,B:b,C:M,D:U,E:q,F:fe,G:De,H:Ue}=this;return[g,b,M,U,q,fe,De,Ue]}set(g,b,M,U,q,fe,De,Ue){this.A=0|g,this.B=0|b,this.C=0|M,this.D=0|U,this.E=0|q,this.F=0|fe,this.G=0|De,this.H=0|Ue}process(g,b){for(let Ct=0;Ct<16;Ct++,b+=4)Li[Ct]=g.getUint32(b,!1);for(let Ct=16;Ct<64;Ct++){const en=Li[Ct-15],an=Li[Ct-2],Xt=(0,Ii.Ow)(en,7)^(0,Ii.Ow)(en,18)^en>>>3,Nt=(0,Ii.Ow)(an,17)^(0,Ii.Ow)(an,19)^an>>>10;Li[Ct]=Nt+Li[Ct-7]+Xt+Li[Ct-16]|0}let{A:M,B:U,C:q,D:fe,E:De,F:Ue,G:ot,H:Mt}=this;for(let Ct=0;Ct<64;Ct++){const an=Mt+((0,Ii.Ow)(De,6)^(0,Ii.Ow)(De,11)^(0,Ii.Ow)(De,25))+va(De,Ue,ot)+Hs[Ct]+Li[Ct]|0,Nt=((0,Ii.Ow)(M,2)^(0,Ii.Ow)(M,13)^(0,Ii.Ow)(M,22))+gs(M,U,q)|0;Mt=ot,ot=Ue,Ue=De,De=fe+an|0,fe=q,q=U,U=M,M=an+Nt|0}M=M+this.A|0,U=U+this.B|0,q=q+this.C|0,fe=fe+this.D|0,De=De+this.E|0,Ue=Ue+this.F|0,ot=ot+this.G|0,Mt=Mt+this.H|0,this.set(M,U,q,fe,De,Ue,ot,Mt)}roundClean(){Li.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class zo extends gr{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const so=(0,Ii.ld)(()=>new gr);(0,Ii.ld)(()=>new zo);var lr=v(3813);function Io(p){if(!Number.isSafeInteger(p)||p<0)throw new Error(`positive integer expected, not ${p}`)}function Eo(p){if("boolean"!=typeof p)throw new Error(`boolean expected, not ${p}`)}function $s(p){return p instanceof Uint8Array||null!=p&&"object"==typeof p&&"Uint8Array"===p.constructor.name}function Mi(p,...g){if(!$s(p))throw new Error("Uint8Array expected");if(g.length>0&&!g.includes(p.length))throw new Error(`Uint8Array expected of length ${g}, not of length=${p.length}`)}function Zr(p,g=!0){if(p.destroyed)throw new Error("Hash instance has been destroyed");if(g&&p.finished)throw new Error("Hash#digest() has already been called")}function Wo(p,g){Mi(p);const b=g.outputLen;if(p.lengthnew Uint32Array(p.buffer,p.byteOffset,Math.floor(p.byteLength/4)),Cs=p=>new DataView(p.buffer,p.byteOffset,p.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function vs(p){if("string"==typeof p)p=function Ia(p){if("string"!=typeof p)throw new Error("string expected, got "+typeof p);return new Uint8Array((new TextEncoder).encode(p))}(p);else{if(!$s(p))throw new Error("Uint8Array expected, got "+typeof p);p=p.slice()}return p}function fr(p,g){if(p.length!==g.length)return!1;let b=0;for(let M=0;M(Object.assign(g,p),g);function X(p,g,b,M){if("function"==typeof p.setBigUint64)return p.setBigUint64(g,b,M);const U=BigInt(32),q=BigInt(4294967295),fe=Number(b>>U&q),De=Number(b&q),ot=M?0:4;p.setUint32(g+(M?4:0),fe,M),p.setUint32(g+ot,De,M)}const yt=new Uint8Array(16),ii=Ji(yt),ko=(p,g,b,M)=>({s3:b<<31|M>>>1,s2:g<<31|b>>>1,s1:p<<31|g>>>1,s0:p>>>1^225<<24&-(1&M)}),_o=p=>(p>>>0&255)<<24|(p>>>8&255)<<16|(p>>>16&255)<<8|p>>>24&255;class Ma{constructor(g,b){this.blockLen=16,this.outputLen=16,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,Mi(g=vs(g),16);const M=Cs(g);let U=M.getUint32(0,!1),q=M.getUint32(4,!1),fe=M.getUint32(8,!1),De=M.getUint32(12,!1);const Ue=[];for(let Xt=0;Xt<128;Xt++)Ue.push({s0:_o(U),s1:_o(q),s2:_o(fe),s3:_o(De)}),({s0:U,s1:q,s2:fe,s3:De}=ko(U,q,fe,De));const ot=(p=b||1024)>65536?8:p>1024?4:2;var p;if(![1,2,4,8].includes(ot))throw new Error(`ghash: wrong window size=${ot}, should be 2, 4 or 8`);this.W=ot;const Ct=128/ot,en=this.windowSize=2**ot,an=[];for(let Xt=0;Xt>>ot-Kn-1&1))continue;const{s0:oi,s1:_i,s2:bi,s3:Yi}=Ue[ot*Xt+Kn];Ut^=oi,dn^=_i,mn^=bi,Un^=Yi}an.push({s0:Ut,s1:dn,s2:mn,s3:Un})}this.t=an}_updateBlock(g,b,M,U){g^=this.s0,b^=this.s1,M^=this.s2,U^=this.s3;const{W:q,t:fe,windowSize:De}=this;let Ue=0,ot=0,Mt=0,Ct=0;const en=(1<>>8*Nt&255;for(let dn=8/q-1;dn>=0;dn--){const mn=Ut>>>q*dn&en,{s0:Un,s1:Kn,s2:xi,s3:oi}=fe[an*De+mn];Ue^=Un,ot^=Kn,Mt^=xi,Ct^=oi,an+=1}}this.s0=Ue,this.s1=ot,this.s2=Mt,this.s3=Ct}update(g){g=vs(g),Zr(this);const b=Ji(g),M=Math.floor(g.length/16),U=g.length%16;for(let q=0;q>>1|b,b=(1&U)<<7}return p[0]^=225&-g,p}((g=vs(g)).slice());super(M,b),M.fill(0)}update(g){g=vs(g),Zr(this);const b=Ji(g),M=g.length%16,U=Math.floor(g.length/16);for(let q=0;qp(U,M.length).update(vs(M)).digest(),b=p(new Uint8Array(16),0);return g.outputLen=b.outputLen,g.blockLen=b.blockLen,g.create=(M,U)=>p(M,U),g}Oa((p,g)=>new Ma(p,g)),Oa((p,g)=>new Ss(p,g)),new Uint8Array(16);const Wi=283;function Jr(p){return p<<1^Wi&-(p>>7)}function qr(p,g){let b=0;for(;g>0;g>>=1)b^=p&-(1&g),p=Jr(p);return b}const Yo=(()=>{let p=new Uint8Array(256);for(let b=0,M=1;b<256;b++,M^=Jr(M))p[b]=M;const g=new Uint8Array(256);g[0]=99;for(let b=0;b<255;b++){let M=p[255-b];M|=M<<8,g[p[b]]=255&(M^M>>4^M>>5^M>>6^M>>7^99)}return g})(),fo=Yo.map((p,g)=>Yo.indexOf(g)),Na=p=>p<<24|p>>>8,As=p=>p<<8|p>>>24;function la(p,g){if(256!==p.length)throw new Error("Wrong sbox length");const b=new Uint32Array(256).map((ot,Mt)=>g(p[Mt])),M=b.map(As),U=M.map(As),q=U.map(As),fe=new Uint32Array(65536),De=new Uint32Array(65536),Ue=new Uint16Array(65536);for(let ot=0;ot<256;ot++)for(let Mt=0;Mt<256;Mt++){const Ct=256*ot+Mt;fe[Ct]=b[ot]^M[Mt],De[Ct]=U[ot]^q[Mt],Ue[Ct]=p[ot]<<8|p[Mt]}return{sbox:p,sbox2:Ue,T0:b,T1:M,T2:U,T3:q,T01:fe,T23:De}}const Wa=la(Yo,p=>qr(p,3)<<24|p<<16|p<<8|qr(p,2)),Gs=la(fo,p=>qr(p,11)<<24|qr(p,13)<<16|qr(p,9)<<8|qr(p,14)),ao=(()=>{const p=new Uint8Array(16);for(let g=0,b=1;g<16;g++,b=Jr(b))p[g]=b;return p})();function Qo(p){Mi(p);const g=p.length;if(![16,24,32].includes(g))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${g}`);const{sbox2:b}=Wa,M=Ji(p),U=M.length,q=De=>Ho(b,De,De,De,De),fe=new Uint32Array(g+28);fe.set(M);for(let De=U;De6&&De%U==4&&(Ue=q(Ue)),fe[De]=fe[De-U]^Ue}return fe}function Ks(p,g,b,M,U,q){return p[b<<8&65280|M>>>8&255]^g[U>>>8&65280|q>>>24&255]}function Ho(p,g,b,M,U){return p[255&g|65280&b]|p[M>>>16&255|U>>>16&65280]<<16}function No(p,g,b,M,U){const{sbox2:q,T01:fe,T23:De}=Wa;let Ue=0;g^=p[Ue++],b^=p[Ue++],M^=p[Ue++],U^=p[Ue++];const ot=p.length/4-2;for(let Xt=0;Xt{const De=Qo(g),{b:Ue,o:ot,out:Mt}=function hl(p,g,b){let M=p.length;const U=M%16;if(!g&&0!==U)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");const q=Ji(p);if(g){let Ue=16-U;Ue||(Ue=16),M+=Ue}const fe=Xs(M,b);return{b:q,o:Ji(fe),out:fe}}(q,U,fe),Ct=Ji(b);let en=Ct[0],an=Ct[1],Xt=Ct[2],Nt=Ct[3],Ut=0;for(;Ut+4<=Ue.length;)en^=Ue[Ut+0],an^=Ue[Ut+1],Xt^=Ue[Ut+2],Nt^=Ue[Ut+3],({s0:en,s1:an,s2:Xt,s3:Nt}=No(De,en,an,Xt,Nt)),ot[Ut++]=en,ot[Ut++]=an,ot[Ut++]=Xt,ot[Ut++]=Nt;if(U){const dn=function _s(p){const g=new Uint8Array(16),b=Ji(g);g.set(p);const M=16-p.length;for(let U=16-M;U<16;U++)g[U]=M;return b}(q.subarray(4*Ut));en^=dn[0],an^=dn[1],Xt^=dn[2],Nt^=dn[3],({s0:en,s1:an,s2:Xt,s3:Nt}=No(De,en,an,Xt,Nt)),ot[Ut++]=en,ot[Ut++]=an,ot[Ut++]=Xt,ot[Ut++]=Nt}return De.fill(0),Mt},decrypt:(q,fe)=>{!function Ts(p){if(Mi(p),p.length%16!=0)throw new Error("aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16")}(q);const De=function Pa(p){const g=Qo(p),b=g.slice(),M=g.length,{sbox2:U}=Wa,{T0:q,T1:fe,T2:De,T3:Ue}=Gs;for(let ot=0;ot>>8&255]^De[Ct>>>16&255]^Ue[Ct>>>24]}return b}(g),Ue=Ji(b),ot=Xs(q.length,fe),Mt=Ji(q),Ct=Ji(ot);let en=Ue[0],an=Ue[1],Xt=Ue[2],Nt=Ue[3];for(let Ut=0;Ut+4<=Mt.length;){const dn=en,mn=an,Un=Xt,Kn=Nt;en=Mt[Ut+0],an=Mt[Ut+1],Xt=Mt[Ut+2],Nt=Mt[Ut+3];const{s0:xi,s1:oi,s2:_i,s3:bi}=_a(De,en,an,Xt,Nt);Ct[Ut++]=xi^dn,Ct[Ut++]=oi^mn,Ct[Ut++]=_i^Un,Ct[Ut++]=bi^Kn}return De.fill(0),function So(p,g){if(!g)return p;const b=p.length;if(!b)throw new Error("aes/pcks5: empty ciphertext not allowed");const M=p[b-1];if(M<=0||M>16)throw new Error(`aes/pcks5: wrong padding byte: ${M}`);const U=p.subarray(0,-M);for(let q=0;q255&p[g++]|(255&p[g++])<<8;class fl{constructor(g){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,Mi(g=vs(g),32);const b=Gr(g,0),M=Gr(g,2),U=Gr(g,4),q=Gr(g,6),fe=Gr(g,8),De=Gr(g,10),Ue=Gr(g,12),ot=Gr(g,14);this.r[0]=8191&b,this.r[1]=8191&(b>>>13|M<<3),this.r[2]=7939&(M>>>10|U<<6),this.r[3]=8191&(U>>>7|q<<9),this.r[4]=255&(q>>>4|fe<<12),this.r[5]=fe>>>1&8190,this.r[6]=8191&(fe>>>14|De<<2),this.r[7]=8065&(De>>>11|Ue<<5),this.r[8]=8191&(Ue>>>8|ot<<8),this.r[9]=ot>>>5&127;for(let Mt=0;Mt<8;Mt++)this.pad[Mt]=Gr(g,16+2*Mt)}process(g,b,M=!1){const U=M?0:2048,{h:q,r:fe}=this,De=fe[0],Ue=fe[1],ot=fe[2],Mt=fe[3],Ct=fe[4],en=fe[5],an=fe[6],Xt=fe[7],Nt=fe[8],Ut=fe[9],dn=Gr(g,b+0),mn=Gr(g,b+2),Un=Gr(g,b+4),Kn=Gr(g,b+6),xi=Gr(g,b+8),oi=Gr(g,b+10),_i=Gr(g,b+12),bi=Gr(g,b+14);let Yi=q[0]+(8191&dn),Hi=q[1]+(8191&(dn>>>13|mn<<3)),Ui=q[2]+(8191&(mn>>>10|Un<<6)),vr=q[3]+(8191&(Un>>>7|Kn<<9)),mr=q[4]+(8191&(Kn>>>4|xi<<12)),Dr=q[5]+(xi>>>1&8191),Wn=q[6]+(8191&(xi>>>14|oi<<2)),ni=q[7]+(8191&(oi>>>11|_i<<5)),Ni=q[8]+(8191&(_i>>>8|bi<<8)),Oi=q[9]+(bi>>>5|U),qn=0,cr=qn+Yi*De+Hi*(5*Ut)+Ui*(5*Nt)+vr*(5*Xt)+mr*(5*an);qn=cr>>>13,cr&=8191,cr+=Dr*(5*en)+Wn*(5*Ct)+ni*(5*Mt)+Ni*(5*ot)+Oi*(5*Ue),qn+=cr>>>13,cr&=8191;let dr=qn+Yi*Ue+Hi*De+Ui*(5*Ut)+vr*(5*Nt)+mr*(5*Xt);qn=dr>>>13,dr&=8191,dr+=Dr*(5*an)+Wn*(5*en)+ni*(5*Ct)+Ni*(5*Mt)+Oi*(5*ot),qn+=dr>>>13,dr&=8191;let wr=qn+Yi*ot+Hi*Ue+Ui*De+vr*(5*Ut)+mr*(5*Nt);qn=wr>>>13,wr&=8191,wr+=Dr*(5*Xt)+Wn*(5*an)+ni*(5*en)+Ni*(5*Ct)+Oi*(5*Mt),qn+=wr>>>13,wr&=8191;let ts=qn+Yi*Mt+Hi*ot+Ui*Ue+vr*De+mr*(5*Ut);qn=ts>>>13,ts&=8191,ts+=Dr*(5*Nt)+Wn*(5*Xt)+ni*(5*an)+Ni*(5*en)+Oi*(5*Ct),qn+=ts>>>13,ts&=8191;let Vr=qn+Yi*Ct+Hi*Mt+Ui*ot+vr*Ue+mr*De;qn=Vr>>>13,Vr&=8191,Vr+=Dr*(5*Ut)+Wn*(5*Nt)+ni*(5*Xt)+Ni*(5*an)+Oi*(5*en),qn+=Vr>>>13,Vr&=8191;let Fo=qn+Yi*en+Hi*Ct+Ui*Mt+vr*ot+mr*Ue;qn=Fo>>>13,Fo&=8191,Fo+=Dr*De+Wn*(5*Ut)+ni*(5*Nt)+Ni*(5*Xt)+Oi*(5*an),qn+=Fo>>>13,Fo&=8191;let ea=qn+Yi*an+Hi*en+Ui*Ct+vr*Mt+mr*ot;qn=ea>>>13,ea&=8191,ea+=Dr*Ue+Wn*De+ni*(5*Ut)+Ni*(5*Nt)+Oi*(5*Xt),qn+=ea>>>13,ea&=8191;let ks=qn+Yi*Xt+Hi*an+Ui*en+vr*Ct+mr*Mt;qn=ks>>>13,ks&=8191,ks+=Dr*ot+Wn*Ue+ni*De+Ni*(5*Ut)+Oi*(5*Nt),qn+=ks>>>13,ks&=8191;let Ea=qn+Yi*Nt+Hi*Xt+Ui*an+vr*en+mr*Ct;qn=Ea>>>13,Ea&=8191,Ea+=Dr*Mt+Wn*ot+ni*Ue+Ni*De+Oi*(5*Ut),qn+=Ea>>>13,Ea&=8191;let Ns=qn+Yi*Ut+Hi*Nt+Ui*Xt+vr*an+mr*en;qn=Ns>>>13,Ns&=8191,Ns+=Dr*Ct+Wn*Mt+ni*ot+Ni*Ue+Oi*De,qn+=Ns>>>13,Ns&=8191,qn=(qn<<2)+qn|0,qn=qn+cr|0,cr=8191&qn,qn>>>=13,dr+=qn,q[0]=cr,q[1]=dr,q[2]=wr,q[3]=ts,q[4]=Vr,q[5]=Fo,q[6]=ea,q[7]=ks,q[8]=Ea,q[9]=Ns}finalize(){const{h:g,pad:b}=this,M=new Uint16Array(10);let U=g[1]>>>13;g[1]&=8191;for(let De=2;De<10;De++)g[De]+=U,U=g[De]>>>13,g[De]&=8191;g[0]+=5*U,U=g[0]>>>13,g[0]&=8191,g[1]+=U,U=g[1]>>>13,g[1]&=8191,g[2]+=U,M[0]=g[0]+5,U=M[0]>>>13,M[0]&=8191;for(let De=1;De<10;De++)M[De]=g[De]+U,U=M[De]>>>13,M[De]&=8191;M[9]-=8192;let q=(1^U)-1;for(let De=0;De<10;De++)M[De]&=q;q=~q;for(let De=0;De<10;De++)g[De]=g[De]&q|M[De];g[0]=65535&(g[0]|g[1]<<13),g[1]=65535&(g[1]>>>3|g[2]<<10),g[2]=65535&(g[2]>>>6|g[3]<<7),g[3]=65535&(g[3]>>>9|g[4]<<4),g[4]=65535&(g[4]>>>12|g[5]<<1|g[6]<<14),g[5]=65535&(g[6]>>>2|g[7]<<11),g[6]=65535&(g[7]>>>5|g[8]<<8),g[7]=65535&(g[8]>>>8|g[9]<<5);let fe=g[0]+b[0];g[0]=65535&fe;for(let De=1;De<8;De++)fe=(g[De]+b[De]|0)+(fe>>>16)|0,g[De]=65535&fe}update(g){Zr(this);const{buffer:b,blockLen:M}=this,U=(g=vs(g)).length;for(let q=0;q>>0,g[q++]=M[fe]>>>8;return g}digest(){const{buffer:g,outputLen:b}=this;this.digestInto(g);const M=g.slice(0,b);return this.destroy(),M}}const sc=function ua(p){const g=(M,U)=>p(U).update(vs(M)).digest(),b=p(new Uint8Array(32));return g.outputLen=b.outputLen,g.blockLen=b.blockLen,g.create=M=>p(M),g}(p=>new fl(p)),da=p=>Uint8Array.from(p.split("").map(g=>g.charCodeAt(0))),ir=da("expand 16-byte k"),Ya=da("expand 32-byte k"),jl=Ji(ir),S=Ji(Ya);function f(p,g){return p<>>32-g}function _(p){return p.byteOffset%4==0}S.slice();const de=2**32-1,ze=new Uint32Array;function wt(p,g){const{allowShortKeys:b,extendNonceFn:M,counterLength:U,counterRight:q,rounds:fe}=function Xo(p,g){if(null==g||"object"!=typeof g)throw new Error("options must be defined");return Object.assign(p,g)}({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},g);if("function"!=typeof p)throw new Error("core must be a function");return Io(U),Io(fe),Eo(q),Eo(b),(De,Ue,ot,Mt,Ct=0)=>{Mi(De),Mi(Ue),Mi(ot);const en=ot.length;if(Mt||(Mt=new Uint8Array(en)),Mi(Mt),Io(Ct),Ct<0||Ct>=de)throw new Error("arx: counter overflow");if(Mt.length=de)throw new Error("arx: counter overflow");const Nt=Math.min(64,Ue-Xt);if(Ct&&64===Nt){const Ut=Xt/4;if(Xt%4!=0)throw new Error("arx: invalid block position");for(let mn,dn=0;dn<16;dn++)mn=Ut+dn,an[mn]=en[mn]^Mt[dn];Xt+=64}else{for(let dn,Ut=0;Ut0;)an.pop().fill(0);return Mt}}function kt(p,g,b,M,U,q=20){let fe=p[0],De=p[1],Ue=p[2],ot=p[3],Mt=g[0],Ct=g[1],en=g[2],an=g[3],Xt=g[4],Nt=g[5],Ut=g[6],dn=g[7],mn=U,Un=b[0],Kn=b[1],xi=b[2],oi=fe,_i=De,bi=Ue,Yi=ot,Hi=Mt,Ui=Ct,vr=en,mr=an,Dr=Xt,Wn=Nt,ni=Ut,Ni=dn,Oi=mn,qn=Un,cr=Kn,dr=xi;for(let ts=0;ts{p.update(g);const b=g.length%16;b&&p.update(pn.subarray(b))},Nn=new Uint8Array(32);function Yn(p,g,b,M,U){const q=p(g,b,Nn),fe=sc.create(q);U&&Tn(fe,U),Tn(fe,M);const De=new Uint8Array(16),Ue=Cs(De);X(Ue,0,BigInt(U?U.length:0),!0),X(Ue,8,BigInt(M.length),!0),fe.update(De);const ot=fe.digest();return q.fill(0),ot}const Sn=p=>(g,b,M)=>(Mi(g,32),Mi(b),{encrypt:(q,fe)=>{const De=q.length,Ue=De+16;fe?Mi(fe,Ue):fe=new Uint8Array(Ue),p(g,b,q,fe,1);const ot=Yn(p,g,b,fe.subarray(0,-16),M);return fe.set(ot,De),fe},decrypt:(q,fe)=>{const De=q.length,Ue=De-16;if(De<16)throw new Error("encrypted data must be at least 16 bytes");fe?Mi(fe,Ue):fe=new Uint8Array(Ue);const ot=q.subarray(0,-16);if(!fr(q.subarray(-16),Yn(p,g,b,ot,M)))throw new Error("invalid tag");return p(g,b,ot,fe,1),fe}});Sn(xt),Sn(Ht);class On extends Ii.Vw{constructor(g,b){super(),this.finished=!1,this.destroyed=!1,Hr.hash(g);const M=(0,Ii.ZJ)(b);if(this.iHash=g.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 U=this.blockLen,q=new Uint8Array(U);q.set(M.length>U?g.create().update(M).digest():M);for(let fe=0;fenew On(p,g).update(b).digest();Si.create=(p,g)=>new On(p,g);const qi=new Uint8Array([0]),Pi=new Uint8Array;var Er=Object.defineProperty,sr=(p,g)=>{for(var b in g)Er(p,b,{get:g[b],enumerable:!0})},Zn=Symbol("verified"),gi=p=>p instanceof Object;function tr(p){if(!gi(p)||"number"!=typeof p.kind||"string"!=typeof p.content||"number"!=typeof p.created_at||"string"!=typeof p.pubkey||!p.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(p.tags))return!1;for(let g=0;gUr,QueueNode:()=>Qs,binarySearch:()=>kr,insertEventIntoAscendingList:()=>cs,insertEventIntoDescendingList:()=>Ys,normalizeURL:()=>$r,utf8Decoder:()=>Cr,utf8Encoder:()=>Br});var Cr=new TextDecoder("utf-8"),Br=new TextEncoder;function $r(p){-1===p.indexOf("://")&&(p="wss://"+p);let g=new URL(p);return g.pathname=g.pathname.replace(/\/+/g,"/"),g.pathname.endsWith("/")&&(g.pathname=g.pathname.slice(0,-1)),("80"===g.port&&"ws:"===g.protocol||"443"===g.port&&"wss:"===g.protocol)&&(g.port=""),g.searchParams.sort(),g.hash="",g.toString()}function Ys(p,g){const[b,M]=kr(p,U=>g.id===U.id?0:g.created_at===U.created_at?-1:U.created_at-g.created_at);return M||p.splice(b,0,g),p}function cs(p,g){const[b,M]=kr(p,U=>g.id===U.id?0:g.created_at===U.created_at?-1:g.created_at-U.created_at);return M||p.splice(b,0,g),p}function kr(p,g){let b=0,M=p.length-1;for(;b<=M;){const U=Math.floor((b+M)/2),q=g(p[U]);if(0===q)return[U,!0];q<0?M=U-1:b=U+1}return[b,!1]}var Qs=class{value;next=null;prev=null;constructor(p){this.value=p}},Ur=class{first;last;constructor(){this.first=null,this.last=null}enqueue(p){const g=new Qs(p);return this.last?this.last===this.first?(this.last=g,this.last.prev=this.first,this.first.next=g):(g.prev=this.last,this.last.next=g,this.last=g):(this.first=g,this.last=g),!0}dequeue(){if(!this.first)return null;if(this.first===this.last){const g=this.first;return this.first=null,this.last=null,g.value}const p=this.first;return this.first=p.next,p.value}};function Do(p){let g=so(Br.encode(function ws(p){if(!tr(p))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,p.pubkey,p.created_at,p.kind,p.tags,p.content])}(p)));return(0,Ii.My)(g)}var yi=new class{generateSecretKey(){return Lo.utils.randomPrivateKey()}getPublicKey(p){return(0,Ii.My)(Lo.getPublicKey(p))}finalizeEvent(p,g){const b=p;return b.pubkey=(0,Ii.My)(Lo.getPublicKey(g)),b.id=Do(b),b.sig=(0,Ii.My)(Lo.sign(Do(b),g)),b[Zn]=!0,b}verifyEvent(p){if("boolean"==typeof p[Zn])return p[Zn];const g=Do(p);if(g!==p.id)return p[Zn]=!1,!1;try{const b=Lo.verify(p.sig,g,p.pubkey);return p[Zn]=b,b}catch{return p[Zn]=!1,!1}}},eo=yi.generateSecretKey,ha=yi.getPublicKey,Jo=yi.finalizeEvent,Qa=yi.verifyEvent;function ac(p){return 1e3<=p&&p<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(p)}function pu(p){return[0,3].includes(p)||1e4<=p&&p<2e4}function mu(p){return 2e4<=p&&p<3e4}function kh(p){return 3e4<=p&&p<4e4}function wg(p){return ac(p)?"regular":pu(p)?"replaceable":mu(p)?"ephemeral":kh(p)?"parameterized":"unknown"}sr({},{Application:()=>yu,BadgeAward:()=>ut,BadgeDefinition:()=>xd,BlockedRelaysList:()=>_p,BookmarkList:()=>Nc,Bookmarksets:()=>yp,Calendar:()=>xl,CalendarEventRSVP:()=>Ba,ChannelCreation:()=>ji,ChannelHideMessage:()=>ya,ChannelMessage:()=>io,ChannelMetadata:()=>Qi,ChannelMuteUser:()=>qo,ClassifiedListing:()=>Ad,ClientAuth:()=>Hl,CommunitiesList:()=>cc,CommunityDefinition:()=>Ua,CommunityPostApproval:()=>mp,Contacts:()=>O,CreateOrUpdateProduct:()=>bp,CreateOrUpdateStall:()=>$l,Curationsets:()=>Cg,Date:()=>_r,DirectMessageRelaysList:()=>gu,DraftClassifiedListing:()=>bu,DraftLong:()=>wp,Emojisets:()=>Sd,EncryptedDirectMessage:()=>D,EventDeletion:()=>R,FileMetadata:()=>Ms,FileServerPreference:()=>Js,Followsets:()=>wd,GenericRepost:()=>ti,Genericlists:()=>Ed,GiftWrap:()=>vu,HTTPAuth:()=>Gi,Handlerinformation:()=>Eu,Handlerrecommendation:()=>Td,Highlights:()=>yd,InterestsList:()=>Bh,Interestsets:()=>_u,JobFeedback:()=>Za,JobRequest:()=>_d,JobResult:()=>gp,Label:()=>Ph,LightningPubRPC:()=>bd,LiveChatMessage:()=>Dl,LiveEvent:()=>gn,LongFormArticle:()=>Uh,Metadata:()=>mi,Mutelist:()=>kc,NWCWalletInfo:()=>Pc,NWCWalletRequest:()=>Fc,NWCWalletResponse:()=>ml,NostrConnect:()=>qa,OpenTimestamps:()=>La,Pinlist:()=>Os,PrivateDirectMessage:()=>Kt,ProblemTracker:()=>vd,ProfileBadges:()=>Dd,PublicChatsList:()=>fa,Reaction:()=>Se,RecommendRelay:()=>E,RelayList:()=>vp,Relaysets:()=>Cd,Report:()=>lc,Reporting:()=>Nh,Repost:()=>Y,Seal:()=>sn,SearchRelaysList:()=>Ja,ShortTextNote:()=>Eg,Time:()=>wu,UserEmojiList:()=>Zs,UserStatuses:()=>ar,Zap:()=>Mr,ZapGoal:()=>Fh,ZapRequest:()=>Lh,classifyKind:()=>wg,isEphemeralKind:()=>mu,isParameterizedReplaceableKind:()=>kh,isRegularKind:()=>ac,isReplaceableKind:()=>pu});var mi=0,Eg=1,E=2,O=3,D=4,R=5,Y=6,Se=7,ut=8,sn=13,Kt=14,ti=16,ji=40,Qi=41,io=42,ya=43,qo=44,La=1040,Ms=1063,Dl=1311,vd=1971,lc=1984,Nh=1984,Ph=1985,mp=4550,_d=5999,gp=6999,Za=7e3,Fh=9041,Lh=9734,Mr=9735,yd=9802,kc=1e4,Os=10001,vp=10002,Nc=10003,cc=10004,fa=10005,_p=10006,Ja=10007,Bh=10015,Zs=10030,gu=10050,vu=10059,Js=10096,Pc=13194,bd=21e3,Hl=22242,Fc=23194,ml=23195,qa=24133,Gi=27235,wd=3e4,Ed=30001,Cd=30002,yp=30003,Cg=30004,Dd=30008,xd=30009,_u=30015,$l=30017,bp=30018,Uh=30023,wp=30024,Sd=30030,yu=30078,gn=30311,ar=30315,Ad=30402,bu=30403,_r=31922,wu=31923,xl=31924,Ba=31925,Td=31989,Eu=31990,Ua=34550;function uc(p,g){if(p.ids&&-1===p.ids.indexOf(g.id)||p.kinds&&-1===p.kinds.indexOf(g.kind)||p.authors&&-1===p.authors.indexOf(g.pubkey))return!1;for(let b in p)if("#"===b[0]){let U=p[`#${b.slice(1)}`];if(U&&!g.tags.find(([q,fe])=>q===b.slice(1)&&-1!==U.indexOf(fe)))return!1}return!(p.since&&g.created_atp.until)}function Ao(p,g){let b=g.length+3,M=p.indexOf(`"${g}":`)+b,U=p.slice(M).indexOf('"')+M+1;return p.slice(U,U+64)}function el(p,g){let b=g.length,M=p.indexOf(`"${g}":`)+b+3,U=p.slice(M),q=Math.min(U.indexOf(","),U.indexOf("}"));return parseInt(U.slice(0,q),10)}function Lc(p){let g=p.slice(0,22).indexOf('"EVENT"');if(-1===g)return null;let b=p.slice(g+7+1).indexOf('"');if(-1===b)return null;let M=g+7+1+b,U=p.slice(M+1,80).indexOf('"');return-1===U?null:p.slice(M+1,M+1+U)}function tl(p,g){return g===Ao(p,"id")}function gl(p,g){return g===Ao(p,"pubkey")}function Cp(p,g){return g===el(p,"kind")}function Du(p,g){return{kind:Hl,created_at:Math.floor(Date.now()/1e3),tags:[["relay",p],["challenge",g]],content:""}}function Dp(){return dc.apply(this,arguments)}function dc(){return(dc=(0,y.A)(function*(){return new Promise(p=>{const g=new MessageChannel,b=()=>{g.port1.removeEventListener("message",b),p()};g.port1.addEventListener("message",b),g.port2.postMessage(0),g.port1.start()})})).apply(this,arguments)}sr({},{getHex64:()=>Ao,getInt:()=>el,getSubscriptionId:()=>Lc,matchEventId:()=>tl,matchEventKind:()=>Cp,matchEventPubkey:()=>gl}),sr({},{makeAuthEvent:()=>Du});var Vh=p=>(p[Zn]=!0,!0),xu=class{url;_connected=!1;onclose=null;onnotice=p=>console.debug(`NOTICE from ${this.url}: ${p}`);_onauth=null;baseEoseTimeout=4400;connectionTimeout=4400;openSubs=new Map;connectionTimeoutHandle;connectionPromise;openCountRequests=new Map;openEventPublishes=new Map;ws;incomingMessageQueue=new Ur;queueRunning=!1;challenge;serial=0;verifyEvent;_WebSocket;constructor(p,g){this.url=$r(p),this.verifyEvent=g.verifyEvent,this._WebSocket=g.websocketImplementation||WebSocket}static connect(p,g){return(0,y.A)(function*(){const b=new xu(p,g);return yield b.connect(),b})()}closeAllSubscriptions(p){for(let[g,b]of this.openSubs)b.close(p);this.openSubs.clear();for(let[g,b]of this.openEventPublishes)b.reject(new Error(p));this.openEventPublishes.clear();for(let[g,b]of this.openCountRequests)b.reject(new Error(p));this.openCountRequests.clear()}get connected(){return this._connected}connect(){var p=this;return(0,y.A)(function*(){return p.connectionPromise||(p.challenge=void 0,p.connectionPromise=new Promise((g,b)=>{p.connectionTimeoutHandle=setTimeout(()=>{b("connection timed out"),p.connectionPromise=void 0,p.onclose?.(),p.closeAllSubscriptions("relay connection timed out")},p.connectionTimeout);try{p.ws=new p._WebSocket(p.url)}catch(M){return void b(M)}p.ws.onopen=()=>{clearTimeout(p.connectionTimeoutHandle),p._connected=!0,g()},p.ws.onerror=M=>{b(M.message||"websocket error"),p._connected&&(p._connected=!1,p.connectionPromise=void 0,p.onclose?.(),p.closeAllSubscriptions("relay connection errored"))},p.ws.onclose=(0,y.A)(function*(){p._connected&&(p._connected=!1,p.connectionPromise=void 0,p.onclose?.(),p.closeAllSubscriptions("relay connection closed"))}),p.ws.onmessage=p._onmessage.bind(p)})),p.connectionPromise})()}runQueue(){var p=this;return(0,y.A)(function*(){for(p.queueRunning=!0;!1!==p.handleNext();)yield Dp();p.queueRunning=!1})()}handleNext(){const p=this.incomingMessageQueue.dequeue();if(!p)return!1;const g=Lc(p);if(g){const b=this.openSubs.get(g);if(!b)return;const M=Ao(p,"id"),U=b.alreadyHaveEvent?.(M);if(b.receivedEvent?.(this,M),U)return}try{let b=JSON.parse(p);switch(b[0]){case"EVENT":{const M=this.openSubs.get(b[1]),U=b[2];return void(this.verifyEvent(U)&&function Cu(p,g){for(let b=0;b{g.ws?.send(p)})})()}auth(p){var g=this;return(0,y.A)(function*(){if(!g.challenge)throw new Error("can't perform auth, no challenge was received");const b=yield p(Du(g.url,g.challenge)),M=new Promise((U,q)=>{g.openEventPublishes.set(b.id,{resolve:U,reject:q})});return g.send('["AUTH",'+JSON.stringify(b)+"]"),M})()}publish(p){var g=this;return(0,y.A)(function*(){const b=new Promise((M,U)=>{g.openEventPublishes.set(p.id,{resolve:M,reject:U})});return g.send('["EVENT",'+JSON.stringify(p)+"]"),b})()}count(p,g){var b=this;return(0,y.A)(function*(){b.serial++;const M=g?.id||"count:"+b.serial,U=new Promise((q,fe)=>{b.openCountRequests.set(M,{resolve:q,reject:fe})});return b.send('["COUNT","'+M+'",'+JSON.stringify(p).substring(1)),U})()}subscribe(p,g){const b=this.prepareSubscription(p,g);return b.fire(),b}prepareSubscription(p,g){this.serial++;const b=g.id||"sub:"+this.serial,M=new Od(this,b,p,g);return this.openSubs.set(b,M),M}close(){this.closeAllSubscriptions("relay connection closed by us"),this._connected=!1,this.ws?.close()}_onmessage(p){this.incomingMessageQueue.enqueue(p.data),this.queueRunning||this.runQueue()}},Od=class{relay;id;closed=!1;eosed=!1;filters;alreadyHaveEvent;receivedEvent;onevent;oneose;onclose;eoseTimeout;eoseTimeoutHandle;constructor(p,g,b,M){this.relay=p,this.filters=b,this.id=g,this.alreadyHaveEvent=M.alreadyHaveEvent,this.receivedEvent=M.receivedEvent,this.eoseTimeout=M.eoseTimeout||p.baseEoseTimeout,this.oneose=M.oneose,this.onclose=M.onclose,this.onevent=M.onevent||(U=>{console.warn(`onevent() callback not defined for subscription '${this.id}' in relay ${this.relay.url}. event received:`,U)})}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(p="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?.(p)}};try{WebSocket}catch{}var hc,jh=class{relays=new Map;seenOn=new Map;trackRelays=!1;verifyEvent;trustedRelayURLs=new Set;_WebSocket;constructor(p){this.verifyEvent=p.verifyEvent,this._WebSocket=p.websocketImplementation}ensureRelay(p,g){var b=this;return(0,y.A)(function*(){p=$r(p);let M=b.relays.get(p);return M||(M=new xu(p,{verifyEvent:b.trustedRelayURLs.has(p)?Vh:b.verifyEvent,websocketImplementation:b._WebSocket}),g?.connectionTimeout&&(M.connectionTimeout=g.connectionTimeout),b.relays.set(p,M)),yield M.connect(),M})()}close(p){p.map($r).forEach(g=>{this.relays.get(g)?.close()})}subscribeMany(p,g,b){return this.subscribeManyMap(Object.fromEntries(p.map(M=>[M,g])),b)}subscribeManyMap(p,g){var b=this;this.trackRelays&&(g.receivedEvent=(en,an)=>{let Xt=this.seenOn.get(an);Xt||(Xt=new Set,this.seenOn.set(an,Xt)),Xt.add(en)});const M=new Set,U=[],q=Object.keys(p).length,fe=[];let De=en=>{fe[en]=!0,fe.filter(an=>an).length===q&&(g.oneose?.(),De=()=>{})};const Ue=[];let ot=(en,an)=>{De(en),Ue[en]=an,Ue.filter(Xt=>Xt).length===q&&(g.onclose?.(Ue),ot=()=>{})};const Mt=en=>{if(g.alreadyHaveEvent?.(en))return!0;const an=M.has(en);return M.add(en),an},Ct=Promise.all(Object.entries(p).map(function(){var en=(0,y.A)(function*(an,Xt,Nt){if(Nt.indexOf(an)!==Xt)return void ot(Xt,"duplicate url");let mn,[Ut,dn]=an;Ut=$r(Ut);try{mn=yield b.ensureRelay(Ut,{connectionTimeout:g.maxWait?Math.max(.8*g.maxWait,g.maxWait-1e3):void 0})}catch(Kn){return void ot(Xt,Kn?.message||String(Kn))}let Un=mn.subscribe(dn,{...g,oneose:()=>De(Xt),onclose:Kn=>ot(Xt,Kn),alreadyHaveEvent:Mt,eoseTimeout:g.maxWait});U.push(Un)});return function(an,Xt,Nt){return en.apply(this,arguments)}}()));return{close:()=>(0,y.A)(function*(){yield Ct,U.forEach(en=>{en.close()})})()}}subscribeManyEose(p,g,b){const M=this.subscribeMany(p,g,{...b,oneose(){M.close()}});return M}querySync(p,g,b){var M=this;return(0,y.A)(function*(){return new Promise(function(){var U=(0,y.A)(function*(q){const fe=[];M.subscribeManyEose(p,[g],{...b,onevent(De){fe.push(De)},onclose(De){q(fe)}})});return function(q){return U.apply(this,arguments)}}())})()}get(p,g,b){var M=this;return(0,y.A)(function*(){g.limit=1;const U=yield M.querySync(p,g,b);return U.sort((q,fe)=>fe.created_at-q.created_at),U[0]||null})()}publish(p,g){var b=this;return p.map($r).map(function(){var M=(0,y.A)(function*(U,q,fe){if(fe.indexOf(U)!==q)return Promise.reject("duplicate url");let De=yield b.ensureRelay(U);return De.publish(g).then(Ue=>{if(b.trackRelays){let ot=b.seenOn.get(g.id);ot||(ot=new Set,b.seenOn.set(g.id,ot)),ot.add(De)}return Ue})});return function(U,q,fe){return M.apply(this,arguments)}}())}listConnectionStatus(){const p=new Map;return this.relays.forEach((g,b)=>p.set(b,g.connected)),p}destroy(){this.relays.forEach(p=>p.close()),this.relays=new Map}};try{hc=WebSocket}catch{}var Hh=class extends jh{constructor(){super({verifyEvent:Qa,websocketImplementation:hc})}},Rd={};sr(Rd,{BECH32_REGEX:()=>Bc,Bech32MaxSize:()=>Sl,NostrTypeGuard:()=>$h,decode:()=>ba,encodeBytes:()=>Uc,naddrEncode:()=>nl,neventEncode:()=>Vc,noteEncode:()=>Wh,nprofileEncode:()=>Gh,npubEncode:()=>zh,nsecEncode:()=>Su});var $h={isNProfile:p=>/^nprofile1[a-z\d]+$/.test(p||""),isNRelay:p=>/^nrelay1[a-z\d]+$/.test(p||""),isNEvent:p=>/^nevent1[a-z\d]+$/.test(p||""),isNAddr:p=>/^naddr1[a-z\d]+$/.test(p||""),isNSec:p=>/^nsec1[a-z\d]{58}$/.test(p||""),isNPub:p=>/^npub1[a-z\d]{58}$/.test(p||""),isNote:p=>/^note1[a-z\d]+$/.test(p||""),isNcryptsec:p=>/^ncryptsec1[a-z\d]+$/.test(p||"")},Sl=5e3,Bc=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function ba(p){let{prefix:g,words:b}=lr.I.decode(p,Sl),M=new Uint8Array(lr.I.fromWords(b));switch(g){case"nprofile":{let U=to(M);if(!U[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==U[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:(0,Ii.My)(U[0][0]),relays:U[1]?U[1].map(q=>Cr.decode(q)):[]}}}case"nevent":{let U=to(M);if(!U[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==U[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(U[2]&&32!==U[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(U[3]&&4!==U[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:(0,Ii.My)(U[0][0]),relays:U[1]?U[1].map(q=>Cr.decode(q)):[],author:U[2]?.[0]?(0,Ii.My)(U[2][0]):void 0,kind:U[3]?.[0]?parseInt((0,Ii.My)(U[3][0]),16):void 0}}}case"naddr":{let U=to(M);if(!U[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!U[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==U[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!U[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==U[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Cr.decode(U[0][0]),pubkey:(0,Ii.My)(U[2][0]),kind:parseInt((0,Ii.My)(U[3][0]),16),relays:U[1]?U[1].map(q=>Cr.decode(q)):[]}}}case"nsec":return{type:g,data:M};case"npub":case"note":return{type:g,data:(0,Ii.My)(M)};default:throw new Error(`unknown prefix ${g}`)}}function to(p){let g={},b=p;for(;b.length>0;){let M=b[0],U=b[1],q=b.slice(2,2+U);if(b=b.slice(2+U),q.lengthBr.encode(b))}))}function Vc(p){let g;return void 0!==p.kind&&(g=function es(p){const g=new Uint8Array(4);return g[0]=p>>24&255,g[1]=p>>16&255,g[2]=p>>8&255,g[3]=255&p,g}(p.kind)),Au("nevent",vl({0:[(0,Ii.aT)(p.id)],1:(p.relays||[]).map(M=>Br.encode(M)),2:p.author?[(0,Ii.aT)(p.author)]:[],3:g?[new Uint8Array(g)]:[]}))}function nl(p){let g=new ArrayBuffer(4);return new DataView(g).setUint32(0,p.kind,!1),Au("naddr",vl({0:[Br.encode(p.identifier)],1:(p.relays||[]).map(M=>Br.encode(M)),2:[(0,Ii.aT)(p.pubkey)],3:[new Uint8Array(g)]}))}function vl(p){let g=[];return Object.entries(p).reverse().forEach(([b,M])=>{M.forEach(U=>{let q=new Uint8Array(U.length+2);q.set([parseInt(b)],0),q.set([U.length],1),q.set(U,2),g.push(q)})}),(0,Ii.Id)(...g)}var Al={};function Tu(p,g,b){return Iu.apply(this,arguments)}function Iu(){return(Iu=(0,y.A)(function*(p,g,b){const M=p instanceof Uint8Array?(0,Ii.My)(p):p,q=zl(ci.getSharedSecret(M,"02"+g));let fe=Uint8Array.from((0,Ii.po)(16)),De=Br.encode(b),Ue=Is(q,fe).encrypt(De);return`${lr.K3.encode(new Uint8Array(Ue))}?iv=${lr.K3.encode(new Uint8Array(fe.buffer))}`})).apply(this,arguments)}function Kh(p,g,b){return kd.apply(this,arguments)}function kd(){return(kd=(0,y.A)(function*(p,g,b){const M=p instanceof Uint8Array?(0,Ii.My)(p):p;let[U,q]=b.split("?iv="),De=zl(ci.getSharedSecret(M,"02"+g)),Ue=lr.K3.decode(q),ot=lr.K3.decode(U),Mt=Is(De,Ue).decrypt(ot);return Cr.decode(Mt)})).apply(this,arguments)}function zl(p){return p.slice(1,33)}sr(Al,{decrypt:()=>Kh,encrypt:()=>Tu}),sr({},{NIP05_REGEX:()=>Nd,isNip05:()=>pc,isValid:()=>Hc,queryProfile:()=>Tp,searchDomain:()=>Ap,useFetchImplementation:()=>Mu});var Gl,Nd=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,pc=p=>Nd.test(p||"");try{Gl=fetch}catch{}function Mu(p){Gl=p}function Ap(p){return Ou.apply(this,arguments)}function Ou(){return(Ou=(0,y.A)(function*(p,g=""){try{const b=`https://${p}/.well-known/nostr.json?name=${g}`;return(yield(yield Gl(b,{redirect:"error"})).json()).names}catch{return{}}})).apply(this,arguments)}function Tp(p){return Pd.apply(this,arguments)}function Pd(){return(Pd=(0,y.A)(function*(p){const g=p.match(Nd);if(!g)return null;const[b,M="_",U]=g;try{const q=`https://${U}/.well-known/nostr.json?name=${M}`,fe=yield(yield Gl(q,{redirect:"error"})).json();let De=fe.names[M];return De?{pubkey:De,relays:fe.relays?.[De]}:null}catch{return null}})).apply(this,arguments)}function Hc(p,g){return il.apply(this,arguments)}function il(){return(il=(0,y.A)(function*(p,g){let b=yield Tp(g);return!!b&&b.pubkey===p})).apply(this,arguments)}function $c(p){const g={reply:void 0,root:void 0,mentions:[],profiles:[]},b=[];for(const M of p.tags)"e"===M[0]&&M[1]&&b.push(M),"p"===M[0]&&M[1]&&g.profiles.push({pubkey:M[1],relays:M[2]?[M[2]]:[]});for(let M=0;M$c}),sr({},{fetchRelayInformation:()=>Fd,useFetchImplementation:()=>Ip});try{fetch}catch{}function Ip(p){}function Fd(p){return gc.apply(this,arguments)}function gc(){return(gc=(0,y.A)(function*(p){return yield(yield fetch(p.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()})).apply(this,arguments)}function Ld(p){let g=0;for(let b=0;b=g)break}return M}function rl(p,g,b,M){return Jo({kind:Y,tags:[...p.tags??[],["e",g.id,b],["p",g.pubkey]],content:""===p.content?"":JSON.stringify(g),created_at:p.created_at},M)}function Ru(p){if(p.kind!==Y)return;let g,b;for(let M=p.tags.length-1;M>=0&&(void 0===g||void 0===b);M--){const U=p.tags[M];U.length>=2&&("e"===U[0]&&void 0===g?g=U:"p"===U[0]&&void 0===b&&(b=U))}return void 0!==g?{id:g[1],relays:[g[2],b?.[2]].filter(M=>"string"==typeof M),author:b?.[1]}:void 0}function ku(p,{skipVerification:g}={}){const b=Ru(p);if(void 0===b||""===p.content)return;let M;try{M=JSON.parse(p.content)}catch{return}return M.id===b.id&&(g||Qa(M))?M:void 0}sr({},{getPow:()=>Ld,minePow:()=>Qh}),sr({},{finishRepostEvent:()=>rl,getRepostedEvent:()=>ku,getRepostedEventPointer:()=>Ru}),sr({},{NOSTR_URI_REGEX:()=>zc,parse:()=>Pu,test:()=>Nu});var zc=new RegExp(`nostr:(${Bc.source})`);function Nu(p){return"string"==typeof p&&new RegExp(`^${zc.source}$`).test(p)}function Pu(p){const g=p.match(new RegExp(`^${zc.source}$`));if(!g)throw new Error(`Invalid Nostr URI: ${p}`);return{uri:g[0],value:g[1],decoded:ba(g[1])}}function wa(p,g,b){const M=g.tags.filter(U=>U.length>=2&&("e"===U[0]||"p"===U[0]));return Jo({...p,kind:Se,tags:[...p.tags??[],...M,["e",g.id],["p",g.pubkey]],content:p.content??"+"},b)}function Fu(p){if(p.kind!==Se)return;let g,b;for(let M=p.tags.length-1;M>=0&&(void 0===g||void 0===b);M--){const U=p.tags[M];U.length>=2&&("e"===U[0]&&void 0===g?g=U:"p"===U[0]&&void 0===b&&(b=U))}return void 0!==g&&void 0!==b?{id:g[1],relays:[g[2],b[2]].filter(M=>void 0!==M),author:b[1]}:void 0}sr({},{finishReactionEvent:()=>wa,getReactedEventPointer:()=>Fu}),sr({},{matchAll:()=>Rp,regex:()=>_c,replaceAll:()=>Lu});var _c=()=>new RegExp(`\\b${zc.source}\\b`,"g");function*Rp(p){const g=p.matchAll(_c());for(const b of g)try{const[M,U]=b;yield{uri:M,value:U,decoded:ba(U),start:b.index,end:b.index+M.length}}catch{}}function Lu(p,g){return p.replaceAll(_c(),(b,M)=>g({uri:b,value:M,decoded:ba(M)}))}sr({},{channelCreateEvent:()=>kp,channelHideMessageEvent:()=>yc,channelMessageEvent:()=>Wc,channelMetadataEvent:()=>Jh,channelMuteUserEvent:()=>Kl});var kp=(p,g)=>{let b;if("object"==typeof p.content)b=JSON.stringify(p.content);else{if("string"!=typeof p.content)return;b=p.content}return Jo({kind:ji,tags:[...p.tags??[]],content:b,created_at:p.created_at},g)},Jh=(p,g)=>{let b;if("object"==typeof p.content)b=JSON.stringify(p.content);else{if("string"!=typeof p.content)return;b=p.content}return Jo({kind:Qi,tags:[["e",p.channel_create_event_id],...p.tags??[]],content:b,created_at:p.created_at},g)},Wc=(p,g)=>{const b=[["e",p.channel_create_event_id,p.relay_url,"root"]];return p.reply_to_channel_message_event_id&&b.push(["e",p.reply_to_channel_message_event_id,p.relay_url,"reply"]),Jo({kind:io,tags:[...b,...p.tags??[]],content:p.content,created_at:p.created_at},g)},yc=(p,g)=>{let b;if("object"==typeof p.content)b=JSON.stringify(p.content);else{if("string"!=typeof p.content)return;b=p.content}return Jo({kind:ya,tags:[["e",p.channel_message_event_id],...p.tags??[]],content:b,created_at:p.created_at},g)},Kl=(p,g)=>{let b;if("object"==typeof p.content)b=JSON.stringify(p.content);else{if("string"!=typeof p.content)return;b=p.content}return Jo({kind:qo,tags:[["p",p.pubkey_to_mute],...p.tags??[]],content:b,created_at:p.created_at},g)};sr({},{EMOJI_SHORTCODE_REGEX:()=>Ud,matchAll:()=>Tl,regex:()=>Rs,replaceAll:()=>Np});var Xl,Ud=/:(\w+):/,Rs=()=>new RegExp(`\\B${Ud.source}\\B`,"g");function*Tl(p){const g=p.matchAll(Rs());for(const b of g)try{const[M,U]=b;yield{shortcode:M,name:U,start:b.index,end:b.index+M.length}}catch{}}function Np(p,g){return p.replaceAll(Rs(),(b,M)=>g({shortcode:b,name:M}))}sr({},{useFetchImplementation:()=>Pp,validateGithub:()=>Vd});try{Xl=fetch}catch{}function Pp(p){Xl=p}function Vd(p,g,b){return yl.apply(this,arguments)}function yl(){return(yl=(0,y.A)(function*(p,g,b){try{return(yield(yield Xl(`https://gist.github.com/${g}/${b}/raw`)).text())===`Verifying that I control the following Nostr public key: ${p}`}catch{return!1}})).apply(this,arguments)}sr({},{decrypt:()=>zd,encrypt:()=>$d,getConversationKey:()=>ef,v2:()=>Es});var Yl=1,Uu=65535;function ef(p,g){const b=ci.getSharedSecret(p,"02"+g).subarray(1,33);return function Ai(p,g,b){return Hr.hash(p),void 0===b&&(b=new Uint8Array(p.outputLen)),Si(p,(0,Ii.ZJ)(b),(0,Ii.ZJ)(g))}(so,b,"nip44-v2")}function jd(p,g){const b=function er(p,g,b,M=32){if(Hr.hash(p),Hr.number(M),M>255*p.outputLen)throw new Error("Length should be <= 255*HashLen");const U=Math.ceil(M/p.outputLen);void 0===b&&(b=Pi);const q=new Uint8Array(U*p.outputLen),fe=Si.create(p,g),De=fe._cloneInto(),Ue=new Uint8Array(fe.outputLen);for(let ot=0;otUu)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const g=new Uint8Array(2);return new DataView(g.buffer).setUint16(0,p,!1),g}(b),U=new Uint8Array(Gc(b)-b);return(0,Ii.Id)(M,g,U)}(p),De=xt(M,U,fe),Ue=Hd(q,De,b);return lr.K3.encode((0,Ii.Id)(new Uint8Array([2]),b,De,Ue))}function zd(p,g){const{nonce:b,ciphertext:M,mac:U}=function Lp(p){if("string"!=typeof p)throw new Error("payload must be a valid string");const g=p.length;if(g<132||g>87472)throw new Error("invalid payload length: "+g);if("#"===p[0])throw new Error("unknown encryption version");let b;try{b=lr.K3.decode(p)}catch(q){throw new Error("invalid base64: "+q.message)}const M=b.length;if(M<99||M>65603)throw new Error("invalid data length: "+M);const U=b[0];if(2!==U)throw new Error("unknown encryption version "+U);return{nonce:b.subarray(1,33),ciphertext:b.subarray(33,-32),mac:b.subarray(-32)}}(p),{chacha_key:q,chacha_nonce:fe,hmac_key:De}=jd(g,b);if(!fr(Hd(De,M,b),U))throw new Error("invalid MAC");return function Vu(p){const g=new DataView(p.buffer).getUint16(0),b=p.subarray(2,2+g);if(gUu||b.length!==g||p.length!==2+Gc(g))throw new Error("invalid padding");return Cr.decode(b)}(xt(q,fe,M))}var Kc,Es={utils:{getConversationKey:ef,calcPaddedLen:Gc},encrypt:$d,decrypt:zd};function Bp(p){const{pathname:g,searchParams:b}=new URL(p),M=g,U=b.get("relay"),q=b.get("secret");if(!M||!U||!q)throw new Error("invalid connection string");return{pubkey:M,relay:U,secret:q}}function Sg(p,g,b){return ju.apply(this,arguments)}function ju(){return(ju=(0,y.A)(function*(p,g,b){const U=yield Tu(g,p,JSON.stringify({method:"pay_invoice",params:{invoice:b}})),q={kind:Fc,created_at:Math.round(Date.now()/1e3),content:U,tags:[["p",p]]};return Jo(q,g)})).apply(this,arguments)}sr({},{makeNwcRequestEvent:()=>Sg,parseConnectionString:()=>Bp}),sr({},{getZapEndpoint:()=>Hu,makeZapReceipt:()=>nf,makeZapRequest:()=>Ag,useFetchImplementation:()=>tf,validateZapRequest:()=>bc});try{Kc=fetch}catch{}function tf(p){Kc=p}function Hu(p){return Wd.apply(this,arguments)}function Wd(){return(Wd=(0,y.A)(function*(p){try{let g="",{lud06:b,lud16:M}=JSON.parse(p.content);if(b){let{words:fe}=lr.I.decode(b,1e3),De=lr.I.fromWords(fe);g=Cr.decode(De)}else{if(!M)return null;{let[fe,De]=M.split("@");g=new URL(`/.well-known/lnurlp/${fe}`,`https://${De}`).toString()}}let q=yield(yield Kc(g)).json();if(q.allowsNostr&&q.nostrPubkey)return q.callback}catch{}return null})).apply(this,arguments)}function Ag({profile:p,event:g,amount:b,relays:M,comment:U=""}){if(!b)throw new Error("amount not given");if(!p)throw new Error("profile not given");let q={kind:9734,created_at:Math.round(Date.now()/1e3),content:U,tags:[["p",p],["amount",b.toString()],["relays",...M]]};return g&&q.tags.push(["e",g]),q}function bc(p){let g;try{g=JSON.parse(p)}catch{return"Invalid zap request JSON."}if(!tr(g))return"Zap request is not a valid Nostr event.";if(!Qa(g))return"Invalid signature on zap request.";let b=g.tags.find(([q,fe])=>"p"===q&&fe);if(!b)return"Zap request doesn't have a 'p' tag.";if(!b[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let M=g.tags.find(([q,fe])=>"e"===q&&fe);return M&&!M[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":g.tags.find(([q,fe])=>"relays"===q&&fe)?null:"Zap request doesn't have a 'relays' tag."}function nf({zapRequest:p,preimage:g,bolt11:b,paidAt:M}){let U=JSON.parse(p),q=U.tags.filter(([De])=>"e"===De||"p"===De||"a"===De),fe={kind:9735,created_at:Math.round(M.getTime()/1e3),content:"",tags:[...q,["P",U.pubkey],["bolt11",b],["description",p]]};return g&&fe.tags.push(["preimage",g]),fe}sr({},{getToken:()=>zr,hashPayload:()=>zu,unpackEventFromToken:()=>ol,validateEvent:()=>Wu,validateEventKind:()=>mo,validateEventMethodTag:()=>Xc,validateEventPayloadTag:()=>rf,validateEventTimestamp:()=>us,validateEventUrlTag:()=>Gd,validateToken:()=>Ql});var Va="Nostr ";function zr(p,g,b){return $u.apply(this,arguments)}function $u(){return($u=(0,y.A)(function*(p,g,b,M=!1,U){const q={kind:Gi,tags:[["u",p],["method",g]],created_at:Math.round((new Date).getTime()/1e3),content:""};U&&q.tags.push(["payload",zu(U)]);const fe=yield b(q);return(M?Va:"")+lr.K3.encode(Br.encode(JSON.stringify(fe)))})).apply(this,arguments)}function Ql(p,g,b){return Vp.apply(this,arguments)}function Vp(){return(Vp=(0,y.A)(function*(p,g,b){const M=yield ol(p).catch(q=>{throw q});return yield Wu(M,g,b).catch(q=>{throw q})})).apply(this,arguments)}function ol(p){return Il.apply(this,arguments)}function Il(){return(Il=(0,y.A)(function*(p){if(!p)throw new Error("Missing token");p=p.replace(Va,"");const g=Cr.decode(lr.K3.decode(p));if(!g||0===g.length||!g.startsWith("{"))throw new Error("Invalid token");return JSON.parse(g)})).apply(this,arguments)}function us(p){return!!p.created_at&&Math.round((new Date).getTime()/1e3)-p.created_at<60}function mo(p){return p.kind===Gi}function Gd(p,g){const b=p.tags.find(M=>"u"===M[0]);return!!b&&b.length>0&&b[1]===g}function Xc(p,g){const b=p.tags.find(M=>"method"===M[0]);return!!b&&b.length>0&&b[1].toLowerCase()===g.toLowerCase()}function zu(p){const g=so(Br.encode(JSON.stringify(p)));return(0,Ii.My)(g)}function rf(p,g){const b=p.tags.find(U=>"payload"===U[0]);if(!b)return!1;const M=zu(g);return b.length>0&&b[1]===M}function Wu(p,g,b,M){return Yc.apply(this,arguments)}function Yc(){return(Yc=(0,y.A)(function*(p,g,b,M){if(!Qa(p))throw new Error("Invalid nostr event, signature invalid");if(!mo(p))throw new Error("Invalid nostr event, kind invalid");if(!us(p))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!Gd(p,g))throw new Error("Invalid nostr event, url tag invalid");if(!Xc(p,b))throw new Error("Invalid nostr event, method tag invalid");if(M&&"object"==typeof M&&Object.keys(M).length>0&&!rf(p,M))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})).apply(this,arguments)}},8418:(tn,Ne,v)=>{"use strict";v.d(Ne,{In:()=>P,rV:()=>B});var P=3,B=4},6391:(tn,Ne,v)=>{"use strict";v.d(Ne,{Vw:()=>te,My:()=>P,Id:()=>ke,O8:()=>G,aT:()=>B,po:()=>We,Ow:()=>ee,ZJ:()=>Re,ld:()=>gt});const u="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,y=ae=>ae instanceof Uint8Array,G=ae=>new DataView(ae.buffer,ae.byteOffset,ae.byteLength),ee=(ae,me)=>ae<<32-me|ae>>>me;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const V=Array.from({length:256},(ae,me)=>me.toString(16).padStart(2,"0"));function P(ae){if(!y(ae))throw new Error("Uint8Array expected");let me="";for(let Le=0;Lent+At.length,0));let Le=0;return ae.forEach(nt=>{if(!y(nt))throw new Error("Uint8Array expected");me.set(nt,Le),Le+=nt.length}),me}class te{clone(){return this._cloneInto()}}function gt(ae){const me=nt=>ae().update(Re(nt)).digest(),Le=ae();return me.outputLen=Le.outputLen,me.blockLen=Le.blockLen,me.create=()=>ae(),me}function We(ae=32){if(u&&"function"==typeof u.getRandomValues)return u.getRandomValues(new Uint8Array(ae));throw new Error("crypto.getRandomValues must be defined")}},467:(tn,Ne,v)=>{"use strict";function u(o,L,G,ee,oe,V,P){try{var B=o[V](P),F=B.value}catch(ue){return void G(ue)}B.done?L(F):Promise.resolve(F).then(ee,oe)}function y(o){return function(){var L=this,G=arguments;return new Promise(function(ee,oe){var V=o.apply(L,G);function P(F){u(V,ee,oe,P,B,"next",F)}function B(F){u(V,ee,oe,P,B,"throw",F)}P(void 0)})}}v.d(Ne,{A:()=>y})},1635:(tn,Ne,v)=>{"use strict";function ue(_e,Ae,J,Ie){return new(J||(J=Promise))(function(Pe,ht){function Xe(ie){try{Me(Ie.next(ie))}catch(ve){ht(ve)}}function Je(ie){try{Me(Ie.throw(ie))}catch(ve){ht(ve)}}function Me(ie){ie.done?Pe(ie.value):function Ot(Pe){return Pe instanceof J?Pe:new J(function(ht){ht(Pe)})}(ie.value).then(Xe,Je)}Me((Ie=Ie.apply(_e,Ae||[])).next())})}function je(_e){return this instanceof je?(this.v=_e,this):new je(_e)}function qe(_e,Ae,J){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ot,Ie=J.apply(_e,Ae||[]),Pe=[];return Ot=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),Xe("next"),Xe("throw"),Xe("return",function ht(Ce){return function(dt){return Promise.resolve(dt).then(Ce,ve)}}),Ot[Symbol.asyncIterator]=function(){return this},Ot;function Xe(Ce,dt){Ie[Ce]&&(Ot[Ce]=function(un){return new Promise(function(it,It){Pe.push([Ce,un,it,It])>1||Je(Ce,un)})},dt&&(Ot[Ce]=dt(Ot[Ce])))}function Je(Ce,dt){try{!function Me(Ce){Ce.value instanceof je?Promise.resolve(Ce.value.v).then(ie,ve):le(Pe[0][2],Ce)}(Ie[Ce](dt))}catch(un){le(Pe[0][3],un)}}function ie(Ce){Je("next",Ce)}function ve(Ce){Je("throw",Ce)}function le(Ce,dt){Ce(dt),Pe.shift(),Pe.length&&Je(Pe[0][0],Pe[0][1])}}function ae(_e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var J,Ae=_e[Symbol.asyncIterator];return Ae?Ae.call(_e):(_e=function ke(_e){var Ae="function"==typeof Symbol&&Symbol.iterator,J=Ae&&_e[Ae],Ie=0;if(J)return J.call(_e);if(_e&&"number"==typeof _e.length)return{next:function(){return _e&&Ie>=_e.length&&(_e=void 0),{value:_e&&_e[Ie++],done:!_e}}};throw new TypeError(Ae?"Object is not iterable.":"Symbol.iterator is not defined.")}(_e),J={},Ie("next"),Ie("throw"),Ie("return"),J[Symbol.asyncIterator]=function(){return this},J);function Ie(Pe){J[Pe]=_e[Pe]&&function(ht){return new Promise(function(Xe,Je){!function Ot(Pe,ht,Xe,Je){Promise.resolve(Je).then(function(Me){Pe({value:Me,done:Xe})},ht)}(Xe,Je,(ht=_e[Pe](ht)).done,ht.value)})}}}v.d(Ne,{AQ:()=>qe,N3:()=>je,sH:()=>ue,xN:()=>ae}),"function"==typeof SuppressedError&&SuppressedError}},tn=>{tn(tn.s=368)}]); \ No newline at end of file diff --git a/main.df0e01dc839837f9.js b/main.df0e01dc839837f9.js deleted file mode 100644 index 1d2b480..0000000 --- a/main.df0e01dc839837f9.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkangor=self.webpackChunkangor||[]).push([[792],{1648:(tn,Ne,v)=>{"use strict";v.d(Ne,{F:()=>u.F});var u=v(5888)},5888:(tn,Ne,v)=>{"use strict";v.d(Ne,{F:()=>nt});let u=(()=>{class At{static#e=this.standard="cubic-bezier(0.4, 0.0, 0.2, 1)";static#t=this.deceleration="cubic-bezier(0.0, 0.0, 0.2, 1)";static#n=this.acceleration="cubic-bezier(0.4, 0.0, 1, 1)";static#i=this.sharp="cubic-bezier(0.4, 0.0, 0.6, 1)"}return At})(),y=(()=>{class At{static#e=this.complex="375ms";static#t=this.entering="225ms";static#n=this.exiting="195ms"}return At})();var o=v(9969);const ae=(At,vt,Dt,Zt,Fn=`${y.entering} ${u.deceleration}`,Vn=`${y.exiting} ${u.acceleration}`)=>(0,o.hZ)(At,[(0,o.wk)("void",(0,o.iF)(vt)),(0,o.wk)("*",(0,o.iF)(Dt)),(0,o.kY)("void => false, * => false",[]),(0,o.kY)("void => *",(0,o.i0)(Zt||Fn),{params:{timings:Fn}}),(0,o.kY)("* => void",(0,o.i0)(Zt||Vn),{params:{timings:Vn}})]),nt=[(0,o.hZ)("expandCollapse",[(0,o.wk)("void, collapsed",(0,o.iF)({height:"0"})),(0,o.wk)("*, expanded",(0,o.iF)("*")),(0,o.kY)("void <=> false, collapsed <=> false, expanded <=> false",[]),(0,o.kY)("void <=> *, collapsed <=> expanded",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeIn",[(0,o.wk)("void",(0,o.iF)({opacity:0})),(0,o.wk)("*",(0,o.iF)({opacity:1})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInTop",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInBottom",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInLeft",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInRight",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeOut",[(0,o.wk)("*",(0,o.iF)({opacity:1})),(0,o.wk)("void",(0,o.iF)({opacity:0})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutTop",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutBottom",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutLeft",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutRight",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("shake",[(0,o.kY)("void => false",[]),(0,o.kY)("void => *, * => true",[(0,o.i0)("{{timings}}",(0,o.i7)([(0,o.iF)({transform:"translate3d(0, 0, 0)",offset:0}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.1}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.2}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.3}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.4}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.5}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.6}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.7}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.8}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.9}),(0,o.iF)({transform:"translate3d(0, 0, 0)",offset:1})]))],{params:{timings:"0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955)"}})]),(0,o.hZ)("slideInTop",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, -100%, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideInBottom",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, 100%, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideInLeft",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideInRight",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideOutTop",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, -100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("slideOutBottom",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, 100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("slideOutLeft",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("slideOutRight",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),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)"},"")]},9097:(tn,Ne,v)=>{"use strict";v.d(Ne,{t:()=>y});const y=new(v(4438).nKC)("ANGOR_APP_CONFIG")},881:(tn,Ne,v)=>{"use strict";v.d(Ne,{P:()=>G});var u=v(9097),y=v(4438),o=v(2401),L=v(4412);let G=(()=>{class ee{constructor(){this._defaultConfig=(0,y.WQX)(u.t),this._configSubject=new L.t(this._defaultConfig)}get config$(){return this._configSubject.asObservable()}set config(V){const P=(0,o.A)({},this._configSubject.getValue(),V);this._configSubject.next(P)}reset(){this._configSubject.next(this._defaultConfig)}static#e=this.\u0275fac=function(P){return new(P||ee)};static#t=this.\u0275prov=y.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},9979:(tn,Ne,v)=>{"use strict";v.d(Ne,{m:()=>te});var u=v(177),y=v(4438),o=v(8834),L=v(5351),G=v(9213);const ee=(be,Ze,gt,je,qe,We,ae,me)=>({"bg-primary-100 text-primary-600 dark:bg-primary-600 dark:text-primary-50":be,"bg-accent-100 text-accent-600 dark:bg-accent-600 dark:text-accent-50":Ze,"bg-warn-100 text-warn-600 dark:bg-warn-600 dark:text-warn-50":gt,"bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-50":je,"bg-blue-100 text-blue-600 dark:bg-blue-600 dark:text-blue-50":qe,"bg-green-100 text-green-500 dark:bg-green-500 dark:text-green-50":We,"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":me});function oe(be,Ze){1&be&&(y.j41(0,"div",1)(1,"button",6),y.nrm(2,"mat-icon",7),y.k0s()()),2&be&&(y.R7$(),y.Y8G("matDialogClose",void 0),y.R7$(),y.Y8G("svgIcon","heroicons_outline:x-mark"))}function V(be,Ze){if(1&be&&(y.j41(0,"div",3),y.nrm(1,"mat-icon",8),y.k0s()),2&be){const gt=y.XpG();y.Y8G("ngClass",y.lV(2,ee,"primary"===gt.data.icon.color,"accent"===gt.data.icon.color,"warn"===gt.data.icon.color,"basic"===gt.data.icon.color,"info"===gt.data.icon.color,"success"===gt.data.icon.color,"warning"===gt.data.icon.color,"error"===gt.data.icon.color)),y.R7$(),y.Y8G("svgIcon",gt.data.icon.name)}}function P(be,Ze){if(1&be&&y.nrm(0,"div",9),2&be){const gt=y.XpG(2);y.Y8G("innerHTML",gt.data.title,y.npT)}}function B(be,Ze){if(1&be&&y.nrm(0,"div",10),2&be){const gt=y.XpG(2);y.Y8G("innerHTML",gt.data.message,y.npT)}}function F(be,Ze){if(1&be&&(y.j41(0,"div",4),y.DNE(1,P,1,1,"div",9)(2,B,1,1,"div",10),y.k0s()),2&be){const gt=y.XpG();y.R7$(),y.vxM(gt.data.title?1:-1),y.R7$(),y.vxM(gt.data.message?2:-1)}}function ue(be,Ze){if(1&be&&(y.j41(0,"button",11),y.EFF(1),y.k0s()),2&be){const gt=y.XpG(2);y.Y8G("matDialogClose","cancelled"),y.R7$(),y.SpI(" ",gt.data.actions.cancel.label," ")}}function ge(be,Ze){if(1&be&&(y.j41(0,"button",12),y.EFF(1),y.k0s()),2&be){const gt=y.XpG(2);y.Y8G("color",gt.data.actions.confirm.color)("matDialogClose","confirmed"),y.R7$(),y.SpI(" ",gt.data.actions.confirm.label," ")}}function Ee(be,Ze){if(1&be&&(y.j41(0,"div",5),y.DNE(1,ue,2,2,"button",11)(2,ge,2,3,"button",12),y.k0s()),2&be){const gt=y.XpG();y.R7$(),y.vxM(gt.data.actions.cancel.show?1:-1),y.R7$(),y.vxM(gt.data.actions.confirm.show?2:-1)}}let Re=(()=>{class be{constructor(){this.data=(0,y.WQX)(L.Vh)}static#e=this.\u0275fac=function(je){return new(je||be)};static#t=this.\u0275cmp=y.VBU({type:be,selectors:[["angor-confirmation-dialog"]],standalone:!0,features:[y.aNF],decls:6,vars:4,consts:[[1,"relative","flex","h-full","w-full","flex-col"],[1,"absolute","right-0","top-0","pr-4","pt-4"],[1,"flex","flex-auto","flex-col","items-center","p-8","pb-6","sm:flex-row","sm:items-start","sm:pb-8"],[1,"flex","h-10","w-10","flex-0","items-center","justify-center","rounded-full","sm:mr-4",3,"ngClass"],[1,"mt-4","flex","flex-col","items-center","space-y-1","text-center","sm:mt-0","sm:items-start","sm:pr-8","sm:text-left"],[1,"flex","items-center","justify-center","space-x-3","bg-gray-50","px-6","py-4","dark:bg-black","dark:bg-opacity-10","sm:justify-end"],["mat-icon-button","",3,"matDialogClose"],[1,"text-secondary",3,"svgIcon"],[1,"text-current",3,"svgIcon"],[1,"text-xl","font-medium","leading-6",3,"innerHTML"],[1,"text-secondary",3,"innerHTML"],["mat-stroked-button","",3,"matDialogClose"],["mat-flat-button","",3,"color","matDialogClose"]],template:function(je,qe){1&je&&(y.j41(0,"div",0),y.DNE(1,oe,3,2,"div",1),y.j41(2,"div",2),y.DNE(3,V,2,11,"div",3)(4,F,3,2,"div",4),y.k0s(),y.DNE(5,Ee,3,2,"div",5),y.k0s()),2&je&&(y.R7$(),y.vxM(qe.data.dismissible?1:-1),y.R7$(2),y.vxM(qe.data.icon.show?3:-1),y.R7$(),y.vxM(qe.data.title||qe.data.message?4:-1),y.R7$(),y.vxM(qe.data.actions.confirm.show||qe.data.actions.cancel.show?5:-1))},dependencies:[o.Hl,o.$z,o.iY,L.hM,L.tx,G.m_,G.An,u.YU],styles:["@media (min-width: 960px){.angor-confirmation-dialog-panel{width:32rem}}.angor-confirmation-dialog-panel .mat-mdc-dialog-container .mat-mdc-dialog-surface{padding:0!important}\n"],encapsulation:2})}return be})();var ke=v(2401);let te=(()=>{class be{constructor(){this._matDialog=(0,y.WQX)(L.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(gt={}){const je=(0,ke.A)({},this._defaultConfig,gt);return this._matDialog.open(Re,{autoFocus:!1,disableClose:!je.dismissible,data:je,panelClass:"angor-confirmation-dialog-panel"})}static#e=this.\u0275fac=function(je){return new(je||be)};static#t=this.\u0275prov=y.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})()},4977:(tn,Ne,v)=>{"use strict";v.d(Ne,{l:()=>V});var u=v(881),y=v(9327),o=v(4438),L=v(7680),G=v(2771),ee=v(6354),oe=v(5558);let V=(()=>{class P{constructor(){this._breakpointObserver=(0,o.WQX)(y.QP),this._angorConfigService=(0,o.WQX)(u.P),this._onMediaChange=new G.m(1),this._angorConfigService.config$.pipe((0,ee.T)(F=>(0,L.A)(Object.entries(F.screens).map(([ue,ge])=>[ue,`(min-width: ${ge})`]))),(0,oe.n)(F=>this._breakpointObserver.observe(Object.values(F)).pipe((0,ee.T)(ue=>{const ge=[],Ee={},Re=Object.entries(ue.breakpoints).filter(([ke,te])=>te)??[];for(const[ke]of Re){const te=Object.entries(F).find(([be,Ze])=>Ze===ke)[0];te&&(ge.push(te),Ee[te]=ke)}this._onMediaChange.next({matchingAliases:ge,matchingQueries:Ee})})))).subscribe()}get onMediaChange$(){return this._onMediaChange.asObservable()}onMediaQueryChange$(F){return this._breakpointObserver.observe(F)}static#e=this.\u0275fac=function(ue){return new(ue||P)};static#t=this.\u0275prov=o.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})()},7209:(tn,Ne,v)=>{"use strict";v.d(Ne,{Q:()=>y});var u=v(4438);let y=(()=>{class o{get exactMatchOptions(){return{paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"}}get subsetMatchOptions(){return{paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"}}randomId(G=10){let oe="";for(let V=0;V<10;V++)oe+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return oe}static#e=this.\u0275fac=function(ee){return new(ee||o)};static#t=this.\u0275prov=u.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},6231:(tn,Ne,v)=>{"use strict";v.d(Ne,{b:()=>G});var u=v(467),y=v(7442),o=v(4412),L=v(4438);let G=(()=>{class ee{constructor(){this.pool=new y.lo,this.relays=[],this.maxRetries=10,this.retryDelay=15e3,this.eventSubject=new o.t(null),this.relaysSubject=new o.t([]),this.relays=this.loadRelaysFromLocalStorage(),this.connectToRelays(),this.setupVisibilityHandling(),this.relaysSubject.next(this.relays)}loadRelaysFromLocalStorage(){const V=JSON.parse(localStorage.getItem("nostrRelays")||"[]");return V.length>0?V.map(B=>({...B,connected:!1,retries:0,retryTimeout:null,ws:void 0})):[{url:"wss://relay.primal.net",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay.damus.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay2.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"}]}saveRelaysToLocalStorage(){const V=this.relays.map(({url:P,accessType:B,connected:F,retries:ue,retryTimeout:ge})=>({url:P,accessType:B,connected:F,retries:ue,retryTimeout:ge}));localStorage.setItem("nostrRelays",JSON.stringify(V)),this.relaysSubject.next(this.relays)}connectToRelay(V){V.connected||(V.ws=new WebSocket(V.url),V.ws.onopen=()=>{V.connected=!0,V.retries=0,clearTimeout(V.retryTimeout),this.saveRelaysToLocalStorage()},V.ws.onerror=()=>this.handleRelayError(V),V.ws.onclose=()=>{V.connected=!1,this.handleRelayError(V)},V.ws.onmessage=({data:P})=>{try{const B=JSON.parse("string"==typeof P?P:P.toString("utf-8"));this.eventSubject.next(B)}catch(B){console.error("Error parsing WebSocket message:",B)}})}handleRelayError(V){V.retries>=this.maxRetries?console.error(`Max retries reached for relay: ${V.url}. No further attempts will be made.`):(V.retries++,V.retryTimeout=setTimeout(()=>this.connectToRelay(V),this.retryDelay*V.retries))}connectToRelays(){this.relays.forEach(V=>!V.connected&&this.connectToRelay(V))}ensureConnectedRelays(){var V=this;return(0,u.A)(function*(){return V.connectToRelays(),new Promise(P=>{const B=()=>{V.getConnectedRelays().length>0?P():setTimeout(B,1e3)};B()})})()}setupVisibilityHandling(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.connectToRelays()}),window.addEventListener("beforeunload",()=>{this.relays.forEach(V=>V.ws?.close())})}getConnectedRelays(){return this.relays.filter(V=>V.connected).map(V=>V.url)}getRelays(){return this.relaysSubject.asObservable()}publishEventToWriteRelays(V){var P=this;return(0,u.A)(function*(){const B=P.relays.filter(F=>["write","read-write"].includes(F.accessType)&&F.connected);if(!B.length)throw new Error("No connected write relays available");try{return yield Promise.any(B.map(F=>P.pool.publish([F.url],V))),P.eventSubject.next(V),V}catch(F){throw console.error("Failed to publish event to relays:",F),F}})()}addRelay(V,P="read-write"){if(!this.relays.some(B=>B.url===V)){const B={url:V,connected:!1,retries:0,retryTimeout:null,accessType:P};this.relays.push(B),this.connectToRelay(B),this.saveRelaysToLocalStorage()}}removeRelay(V){this.relays=this.relays.filter(P=>P.url!==V),this.saveRelaysToLocalStorage()}removeAllCustomRelays(){const V=["wss://relay.angor.io","wss://relay2.angor.io"];this.relays=this.relays.filter(P=>V.includes(P.url)),this.saveRelaysToLocalStorage()}updateRelayAccessType(V,P){const B=this.relays.find(F=>F.url===V);B&&(B.accessType=P,this.saveRelaysToLocalStorage())}getPool(){return this.pool}getEventStream(){return this.eventSubject.asObservable()}static#e=this.\u0275fac=function(P){return new(P||ee)};static#t=this.\u0275prov=L.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},4930:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>je});var u=v(467),y=v(5766),o=v(7292),L=v(3838),G=v(7442),ee=v(6391),V=(v(5693),v(9673)),P=v(9608),te=v(4438),be=v(3813);let Ze=(()=>{class qe{constructor(){this.encoder=new TextEncoder,this.decoder=new TextDecoder}getPasswordKey(ae){var me=this;return(0,u.A)(function*(){return window.crypto.subtle.importKey("raw",me.encoder.encode(ae),"PBKDF2",!1,["deriveKey"])})()}deriveKey(ae,me,Le){return(0,u.A)(function*(){return window.crypto.subtle.deriveKey({name:"PBKDF2",salt:me,iterations:25e4,hash:"SHA-256"},ae,{name:"AES-GCM",length:256},!1,Le)})()}encryptData(ae,me){var Le=this;return(0,u.A)(function*(){try{const nt=window.crypto.getRandomValues(new Uint8Array(16)),At=window.crypto.getRandomValues(new Uint8Array(12)),vt=yield Le.getPasswordKey(me),Dt=yield Le.deriveKey(vt,nt,["encrypt"]),Zt=new Uint8Array(yield window.crypto.subtle.encrypt({name:"AES-GCM",iv:At},Dt,Le.encoder.encode(ae))),Fn=new Uint8Array(nt.length+At.length+Zt.length);return Fn.set(nt,0),Fn.set(At,nt.length),Fn.set(Zt,nt.length+At.length),be.K3.encode(Fn)}catch(nt){throw console.error("Encryption failed:",nt),new Error("Failed to encrypt data.")}})()}decryptData(ae,me){var Le=this;return(0,u.A)(function*(){try{const nt=be.K3.decode(ae),At=nt.slice(0,16),vt=nt.slice(16,28),Dt=nt.slice(28),Zt=yield Le.getPasswordKey(me),Fn=yield Le.deriveKey(Zt,At,["decrypt"]),Vn=yield window.crypto.subtle.decrypt({name:"AES-GCM",iv:vt},Fn,Dt);return Le.decoder.decode(Vn)}catch(nt){throw console.error("Decryption failed:",nt),new Error("Failed to decrypt data.")}})()}static#e=this.\u0275fac=function(me){return new(me||qe)};static#t=this.\u0275prov=te.jDH({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();var gt=v(5351);let je=(()=>{class qe{constructor(ae,me){this.securityService=ae,this.dialog=me,this.localStorageSecretKeyName="secretKey",this.localStoragePublicKeyName="publicKey",this.localStorageNpubName="npub",this.localStorageNsecName="nsec",this.storageKey="userPassword"}savePassword(ae,me){const Le=Date.now()+60*me*1e3;sessionStorage.setItem(this.storageKey,JSON.stringify({password:ae,expirationTime:Le}))}getPassword(){const ae=sessionStorage.getItem(this.storageKey);if(!ae)return null;const{password:me,expirationTime:Le}=JSON.parse(ae);return Date.now()>Le?(this.clearPassword(),null):me}clearPassword(){sessionStorage.removeItem(this.storageKey)}changePassword(ae,me,Le){var nt=this;return(0,u.A)(function*(){try{const At=yield nt.getSecretKey(ae);if(!At)throw new Error("Incorrect current password.");yield nt.setSecretKey(At,me);const vt=yield nt.getNsec(ae);return vt&&(yield nt.setNsec(vt,me)),nt.clearPassword(),Le&&nt.savePassword(me,60),!0}catch(At){return console.error("Failed to change password: ",At),!1}})()}getUsername(ae){return ae.startsWith("npub")&&(ae=G.Qe.decode(ae).data.toString()),`@${localStorage.getItem(`${ae}`)||G.Qe.npubEncode(ae)}`}npub(){let ae=this.getPublicKey();return G.Qe.npubEncode(ae)}requestPassword(){var ae=this;return(0,u.A)(function*(){return ae.dialog.open(o.b,{width:"300px",disableClose:!0}).afterClosed().toPromise()})()}nsec(ae){var me=this;return(0,u.A)(function*(){if(me.usingSecretKey()){let Le=yield me.getSecretKey(ae);const nt=Uint8Array.from(L.hp.from(Le,"hex"));return G.Qe.nsecEncode(nt)}return""})()}pubkey(ae){return G.Qe.decode(ae).data.toString()}setPublicKey(ae){const me=G.Qe.npubEncode(ae);window.localStorage.setItem(this.localStoragePublicKeyName,ae),window.localStorage.setItem(this.localStorageNpubName,me)}getPublicKey(){return localStorage.getItem(this.localStoragePublicKeyName)||""}setNpub(ae){localStorage.setItem(this.localStorageNpubName,ae)}getNpub(){return window.localStorage.getItem(this.localStorageNpubName)||""}setSecretKey(ae,me){var Le=this;return(0,u.A)(function*(){const nt=yield Le.securityService.encryptData(ae,me);localStorage.setItem(Le.localStorageSecretKeyName,nt)})()}getSecretKey(ae){var me=this;return(0,u.A)(function*(){const Le=localStorage.getItem(me.localStorageSecretKeyName);return Le?yield me.securityService.decryptData(Le,ae):null})()}getDecryptedSecretKey(){var ae=this;return(0,u.A)(function*(){try{const me=ae.getPassword();if(me)return yield ae.getSecretKey(me);const Le=yield ae.requestPassword();if(Le?.password){const nt=yield ae.getSecretKey(Le.password);return 0!==Le.duration&&ae.savePassword(Le.password,Le.duration),nt}return console.error("Password not provided"),null}catch(me){return console.error("Error decrypting private key:",me),null}})()}setNsec(ae,me){var Le=this;return(0,u.A)(function*(){const nt=yield Le.securityService.encryptData(ae,me);localStorage.setItem(Le.localStorageNsecName,nt)})()}getNsec(ae){var me=this;return(0,u.A)(function*(){const Le=localStorage.getItem(me.localStorageNsecName);return Le?yield me.securityService.decryptData(Le,ae):null})()}setPublicKeyFromExtension(ae){this.setPublicKey(ae)}handleLoginWithKey(ae,me){let Le,nt,At,vt;try{if(ae.startsWith(this.localStorageNsecName)){const Zt=G.Qe.decode(ae);if(Zt.type!==this.localStorageNsecName)throw new Error("Invalid nsec key.");Le=L.hp.from(Zt.data).toString("hex")}else{if(!/^[0-9a-fA-F]{64}$/.test(ae))throw new Error("Invalid key format. Must be either nsec or hex.");Le=ae}const Dt=new Uint8Array(L.hp.from(Le,"hex"));return nt=(0,G.lG)(Dt),vt=G.Qe.npubEncode(nt),At=G.Qe.nsecEncode(Dt),this.setSecretKey(Le,me),this.setNsec(vt,me),this.setPublicKey(nt),this.setNpub(vt),!0}catch(Dt){return console.error("Error during key handling: ",Dt),!1}}handleLoginWithMenemonic(ae,me="",Le){try{const At=function F(qe,We,ae=0){let Le=P.c.fromMasterSeed((0,V.kw)(qe,We)).derive(`m/44'/1237'/${ae}'/0/0`).privateKey;if(!Le)throw new Error("could not derive private key");return(0,ee.My)(Le)}(ae,me,0),vt=Uint8Array.from(L.hp.from(At,"hex")),Dt=(0,G.lG)(vt),Zt=G.Qe.npubEncode(Dt),Fn=G.Qe.nsecEncode(vt);return this.setSecretKey(At,Le),this.setNsec(Zt,Le),this.setPublicKey(Dt),this.setNpub(Zt),window.localStorage.setItem(this.localStorageNsecName,Fn),!0}catch(nt){return console.error("Error during login with mnemonic:",nt),!1}}logout(){window.localStorage.removeItem(this.localStorageSecretKeyName),window.localStorage.removeItem(this.localStoragePublicKeyName),window.localStorage.removeItem(this.localStorageNpubName),window.localStorage.removeItem(this.localStorageNsecName)}usingNostrBrowserExtension(){return!this.usingSecretKey()&&!!globalThis.nostr}usingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}generateAndStoreKeys(ae){try{const me=(0,G.Bq)(),Le=L.hp.from(me).toString("hex"),nt=(0,G.lG)(me),At=G.Qe.npubEncode(nt),vt=G.Qe.nsecEncode(me);return this.setSecretKey(Le,ae),this.setNsec(At,ae),this.setPublicKey(nt),this.setNpub(At),{secretKey:Le,pubkey:nt,npub:At,nsec:vt}}catch(me){return console.error("Error during key generation:",me),null}}handleLoginWithExtension(){var ae=this;return(0,u.A)(function*(){const me=globalThis;if(!me.nostr)return!1;try{const Le=yield me.nostr.getPublicKey();if(!Le)throw new Error("Public key not available from Nostr extension.");return ae.setPublicKeyFromExtension(Le),!0}catch(Le){return console.error("Failed to connect to Nostr extension:",Le),!1}})()}encryptMessage(ae,me,Le){return(0,u.A)(function*(){console.log(Le);try{return yield G.sh.encrypt(ae,me,Le)}catch(nt){throw console.error("Error encrypting message:",nt),nt}})()}encryptMessageWithExtension(ae,me){return(0,u.A)(function*(){return yield globalThis.nostr.nip04.encrypt(me,ae)})()}decryptMessageWithExtension(ae,me){return(0,u.A)(function*(){const Le=globalThis;if(Le.nostr&&"function"==typeof Le.nostr.nip04?.decrypt)try{return yield Le.nostr.nip04.decrypt(ae,me)}catch(nt){return console.error("Decryption failed:",nt),"*Failed to decrypt content: "+nt.message+"*"}return console.warn("Nostr extension or decrypt method is unavailable"),"Attempted Nostr Window decryption and failed."})()}decryptMessage(ae,me,Le){return(0,u.A)(function*(){try{if(!ae||!me||!Le)throw new Error("Private key, public key, or encrypted message is missing or undefined.");const nt=yield G.sh.decrypt(ae,me,Le);if(!nt)throw new Error("Decryption returned an empty message.");return nt}catch(nt){throw console.error("Decryption failed:",nt.message),nt}})()}getUnsignedEvent(ae,me,Le){return{kind:ae,pubkey:this.getPublicKey(),tags:me,content:Le,created_at:Math.floor(Date.now()/1e3)}}getSignedEvent(ae,me){const Le=(0,y.aT)(me);return(0,G.pC)(ae,Le)}getMuteList(){return(localStorage.getItem("muteList")||"").split(",")}setMuteListFromTags(ae){let me=[];ae.forEach(Le=>{me.push(Le[1])}),this.setMuteList(me)}setMuteList(ae){if(0===ae.length)localStorage.setItem("muteList","");else{let me=Array.from(new Set(ae));localStorage.setItem("muteList",me.filter(Le=>Le).join(","))}}signEventWithExtension(ae){return(0,u.A)(function*(){const me=globalThis;if(me.nostr)return yield me.nostr.signEvent(ae);throw new Error("Tried to sign event with extension but failed")})()}signDMWithExtension(ae,me){return(0,u.A)(function*(){const Le=globalThis;if(Le.nostr&&Le.nostr.nip04?.encrypt)return yield Le.nostr.nip04.encrypt(ae,me);throw new Error("Failed to Sign with extension")})()}isUsingExtension(){var ae=this;return(0,u.A)(function*(){const me=globalThis;if(me.nostr&&me.nostr.getPublicKey)try{return!localStorage.getItem(ae.localStorageSecretKeyName)}catch(Le){return console.error("Failed to check Nostr extension:",Le),!1}return!1})()}isUsingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}static#e=this.\u0275fac=function(me){return new(me||qe)(te.KVO(Ze),te.KVO(gt.bZ))};static#t=this.\u0275prov=te.jDH({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})()},2083:(tn,Ne,v)=>{"use strict";v.d(Ne,{d:()=>ee});var u=v(467),y=v(8418),o=v(4438),L=v(5645),G=v(7291);let ee=(()=>{class oe{constructor(P,B){this.subscriptionService=P,this.storageService=B,this.isProfileLoaded=!1}loadUserProfile(P){var B=this;return(0,u.A)(function*(){console.log(`Loading user profile for pubkey: ${P}`),B.isProfileLoaded?console.log("Profile already loaded, skipping."):(yield B.subscribeToUserProfile(P),yield B.subscribeToUserContacts(P),yield B.subscribeToUserChats(P),yield B.subscribeToUserPosts(P),B.isProfileLoaded=!0)})()}subscribeToUserProfile(P){var B=this;return(0,u.A)(function*(){console.log(`Subscribing to user profile for pubkey: ${P}`);const F=yield B.storageService.getLastUpdateDate("users"),ue={kinds:[0],authors:[P],limit:1};F&&(ue.since=parseInt(F,10)),B.subscriptionService.addSubscriptions([ue],ge=>{const Ee=B.parseMetadataEvent(ge);B.storageService.saveProfile(P,Ee)})})()}subscribeToUserContacts(P){var B=this;return(0,u.A)(function*(){console.log(`Subscribing to contacts for pubkey: ${P}`);const F=yield B.storageService.getLastUpdateDate("contacts"),ue=[{kinds:[y.In],authors:[P]},{kinds:[y.In],"#p":[P]}];if(F){const ge=parseInt(F,10);ue.forEach(Ee=>Ee.since=ge)}B.subscriptionService.addSubscriptions(ue,ge=>{B.storageService.saveContacts(P,[{id:ge.id,pubkey:ge.pubkey,created_at:ge.created_at,tags:ge.tags,isFollower:ge.pubkey===P}])})})()}subscribeToUserChats(P){var B=this;return(0,u.A)(function*(){console.log(`Subscribing to chats for pubkey: ${P}`);const F=yield B.storageService.getLastUpdateDate("chats"),ue=[{kinds:[y.rV],authors:[P],limit:300},{kinds:[y.rV],"#p":[P],limit:300}];if(F){const ge=parseInt(F,10);ue.forEach(Ee=>Ee.since=ge)}else B.storageService.removeAllChats();B.subscriptionService.addSubscriptions(ue,ge=>{const Ee=B.parseChatEvent(ge);console.log(Ee),B.storageService.saveChatEvent(Ee)})})()}subscribeToUserPosts(P){var B=this;return(0,u.A)(function*(){console.log(`Subscribing to posts (event type 1) for pubkey: ${P}`);const F=yield B.storageService.getLastUpdateDate("posts"),ue={kinds:[1],authors:[P],limit:100};F&&(ue.since=parseInt(F,10)),B.subscriptionService.addSubscriptions([ue],ge=>{B.storageService.savePostForPubKey(ge)})})()}parseMetadataEvent(P){try{return JSON.parse(P.content)}catch(B){return console.error("Error parsing metadata event:",B),null}}parseChatEvent(P){try{const B=P.content.split("?iv=");return{id:P.id,kind:P.kind,pubkey:P.pubkey,created_at:P.created_at,tags:P.tags,content:B[0],iv:B[1],IsRead:!1}}catch(B){return console.error("Error parsing chat event:",B),null}}static#e=this.\u0275fac=function(B){return new(B||oe)(o.KVO(L.n),o.KVO(G.n))};static#t=this.\u0275prov=o.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})()},7291:(tn,Ne,v)=>{"use strict";v.d(Ne,{n:()=>ee});var u=v(467),y=v(119),o=v.n(y),L=v(4412),G=v(4438);let ee=(()=>{class oe{constructor(){this.profileSubject=new L.t(null),this.projectsSubject=new L.t([]),this.projectStatsSubject=new L.t({}),this.chatEventsSubject=new L.t([]),this.unreadChatCountSubject=new L.t(0),this.contactsSubject=new L.t({pubKey:"",contacts:[]}),this.postsSubject=new L.t(null),this.myLikesSubject=new L.t([]),this.notificationsSubject=new L.t([]),this.contactStatsSubject=new L.t({totalContacts:0,followersCount:0,followingCount:0}),this.contactStatsMap={},this.profileStore=this.createStore("profiles"),this.updateHistoryStore=this.createStore("updateHistory"),this.contactsStore=this.createStore("contacts"),this.chatsStore=this.createStore("chats"),this.postsStore=this.createStore("posts"),this.myLikesStore=this.createStore("myLikes"),this.notificationsStore=this.createStore("notifications"),this.projectsStore=this.createStore("projects"),this.projectStatsStore=this.createStore("projectStats"),this.loadAllProjectsFromDB(),this.loadAllProjectStatsFromDB(),this.loadAllContactsFromDB(),this.loadAllChatEventsFromDB(),this.loadAllPostsFromDB(),this.loadAllMyLikesFromDB(),this.loadAllNotificationsFromDB(),this.loadContactStatsFromDB(),this.calculateAndStoreAllContactStats()}createStore(P){return o().createInstance({driver:o().INDEXEDDB,name:"angor-hub",version:1,storeName:P})}get profile$(){return this.profileSubject.asObservable()}get projects$(){return this.projectsSubject.asObservable()}get projectStats$(){return this.projectStatsSubject.asObservable()}get chatEvents$(){return this.chatEventsSubject.asObservable()}get unreadChatCount$(){return this.unreadChatCountSubject.asObservable()}get contacts$(){return this.contactsSubject.asObservable()}get posts$(){return this.postsSubject.asObservable()}get contactStats$(){return this.contactStatsSubject.asObservable()}get myLikes$(){return this.myLikesSubject.asObservable()}get notifications$(){return this.notificationsSubject.asObservable()}saveContacts(P,B){var F=this;return(0,u.A)(function*(){try{const ue=[];for(const ge of B){const Ee=`${P}:${ge.id}`;yield F.contactsStore.setItem(Ee,ge),ue.push(ge)}F.contactsSubject.next({pubKey:P,contacts:ue}),yield F.calculateAndStoreAllContactStats(),yield F.setUpdateHistory("contacts")}catch(ue){console.error("Error saving contacts:",ue)}})()}calculateAndStoreAllContactStats(){var P=this;return(0,u.A)(function*(){try{const B={};yield P.contactsStore.iterate((F,ue)=>{const[ge]=ue.split(":");B[ge]||(B[ge]={totalContacts:0,followersCount:0,followingCount:0}),B[ge].totalContacts++,F.isFollower?B[ge].followersCount++:B[ge].followingCount++});for(const F in B)P.contactStatsMap[F]||(P.contactStatsMap[F]=new L.t({pubKey:F,totalContacts:0,followersCount:0,followingCount:0})),P.contactStatsMap[F].next({pubKey:F,totalContacts:B[F].totalContacts,followersCount:B[F].followersCount,followingCount:B[F].followingCount})}catch(B){console.error("Error calculating and storing contact stats:",B)}})()}getContactStats$(P){return this.contactStatsMap[P]||(this.contactStatsMap[P]=new L.t({pubKey:P,totalContacts:0,followersCount:0,followingCount:0}),this.calculateAndStoreAllContactStats()),this.contactStatsMap[P].asObservable()}getAllContactsPaginated(P,B,F){var ue=this;return(0,u.A)(function*(){try{const ge=[];yield ue.contactsStore.iterate((te,be)=>{const[Ze]=be.split(":");Ze===P&&ge.push(te)});const Ee=ge.length,Re=(B-1)*F;return{contacts:ge.slice(Re,Re+F),totalCount:Ee}}catch(ge){return console.error("Error retrieving paginated contacts for pubKey:",ge),{contacts:[],totalCount:0}}})()}getAllContacts(P=""){var B=this;return(0,u.A)(function*(){try{const F=[];return yield B.contactsStore.iterate((ue,ge)=>{const[Ee,Re]=ge.split(":");(""===P||Ee===P)&&F.push({pubKey:Ee,contact:ue})}),F}catch(F){return console.error("Error retrieving contacts:",F),[]}})()}getContactStats(P){var B=this;return(0,u.A)(function*(){try{let F=0,ue=0,ge=0;return yield B.contactsStore.iterate((Ee,Re)=>{const[ke,te]=Re.split(":");ke===P&&(F++,Ee.isFollower?ue++:ge++)}),{totalContacts:F,followersCount:ue,followingCount:ge}}catch(F){return console.error("Error retrieving contact stats for pubKey:",F),{totalContacts:0,followersCount:0,followingCount:0}}})()}removeAllContacts(P){var B=this;return(0,u.A)(function*(){try{const F=[];yield B.contactsStore.iterate((ue,ge)=>{const[Ee]=ge.split(":");Ee===P&&F.push(ge)});for(const ue of F)yield B.contactsStore.removeItem(ue);yield B.contactsStore.clear(),B.contactStatsSubject.next({totalContacts:0,followersCount:0,followingCount:0}),B.contactsSubject.next({pubKey:P,contacts:[]}),yield B.setUpdateHistory("contacts")}catch(F){console.error("Error removing all contacts for pubKey:",F)}})()}saveProfile(P,B){var F=this;return(0,u.A)(function*(){try{if(!P||!B)return void console.error("Invalid pubKey or metadata:",P,B);B.pubKey=P,yield F.profileStore.setItem(P,B),F.profileSubject.next({pubKey:P,metadata:B}),yield F.setUpdateHistory("profiles")}catch(ue){console.error("Error saving profile",ue)}})()}getProfile(P){var B=this;return(0,u.A)(function*(){try{return(yield B.profileStore.getItem(P))||null}catch(F){return console.error("Error retrieving profile metadata:",F),null}})()}getAllProfiles(){var P=this;return(0,u.A)(function*(){try{const B=[];return yield P.profileStore.iterate(F=>{B.push(F)}),B}catch(B){return console.error("Error retrieving all Profile:",B),[]}})()}searchProfile(P){var B=this;return(0,u.A)(function*(){try{const F=[],ue=P.toLowerCase();return yield B.profileStore.iterate((ge,Ee)=>{JSON.stringify(ge).toLowerCase().includes(ue)&&F.push({pubKey:Ee,profile:ge})}),F}catch(F){return console.error("Error searching profiles by metadata:",F),[]}})()}getLastUpdateDate(P){var B=this;return(0,u.A)(function*(){try{return(yield B.updateHistoryStore.getItem(P))||null}catch(F){return console.error("Error retrieving last update date:",F),null}})()}saveProject(P){var B=this;return(0,u.A)(function*(){try{yield B.projectsStore.setItem(P.projectIdentifier,P);const F=yield B.getAllProjects();B.projectsSubject.next(F),yield B.setUpdateHistory("projects")}catch(F){console.error("Error saving project:",F)}})()}getAllProjects(){var P=this;return(0,u.A)(function*(){try{const B=[];return yield P.projectsStore.iterate(F=>{B.push(F)}),B}catch(B){return console.error("Error retrieving all projects:",B),[]}})()}getProjectStats(P){var B=this;return(0,u.A)(function*(){try{return(yield B.projectStatsStore.getItem(P))||null}catch(F){return console.error("Error retrieving project stats:",F),null}})()}saveProjectStats(P,B){var F=this;return(0,u.A)(function*(){try{yield F.projectStatsStore.setItem(P,B);const ue=yield F.getAllProjectStats();F.projectStatsSubject.next(ue),yield F.setUpdateHistory("projectStats")}catch(ue){console.error("Error saving project stats:",ue)}})()}getAllProjectStats(){var P=this;return(0,u.A)(function*(){try{const B={};return yield P.projectStatsStore.iterate((F,ue)=>{B[ue]=F}),B}catch(B){return console.error("Error retrieving all project stats:",B),{}}})()}savePostForPubKey(P){var B=this;return(0,u.A)(function*(){try{yield B.postsStore.setItem(P.id,P),yield B.setUpdateHistory("posts"),B.postsSubject.next(P)}catch(F){console.error("Error saving event type 1 and sending it to clients:",F)}})()}getPostsByPubKey(P){var B=this;return(0,u.A)(function*(){try{const F=[];return yield B.postsStore.iterate(ue=>{ue.pubkey===P&&1===ue.kind&&F.push(ue)}),F}catch(F){return console.error("Error retrieving events for pubKey:",F),[]}})()}getAllPostsForAllPubKeys(){var P=this;return(0,u.A)(function*(){try{const B=[];return yield P.postsStore.iterate(F=>{B.push(F)}),B}catch(B){return console.error("Error retrieving all events:",B),[]}})()}saveLike(P){var B=this;return(0,u.A)(function*(){try{yield B.myLikesStore.setItem(P.id,P);const F=yield B.getAllMyLikes();B.myLikesSubject.next(F),yield B.setUpdateHistory("myLikes")}catch(F){console.error("Error saving like:",F)}})()}getAllMyLikes(){var P=this;return(0,u.A)(function*(){try{const B=[];return yield P.myLikesStore.iterate(F=>{B.push(F)}),B}catch(B){return console.error("Error retrieving all likes:",B),[]}})()}saveNotification(P){var B=this;return(0,u.A)(function*(){try{yield B.notificationsStore.setItem(P.id,P);const F=yield B.getAllNotifications();B.notificationsSubject.next(F),yield B.setUpdateHistory("notifications")}catch(F){console.error("Error saving notification:",F)}})()}getAllNotifications(){var P=this;return(0,u.A)(function*(){try{const B=[];return yield P.notificationsStore.iterate(F=>{B.push(F)}),B}catch(B){return console.error("Error retrieving all notifications:",B),[]}})()}saveChatEvent(P){var B=this;return(0,u.A)(function*(){try{yield B.chatsStore.setItem(P.id,P),yield B.setUpdateHistory("chats");const F=yield B.getAllChatEvents();B.chatEventsSubject.next(F),B.updateUnreadChatCount(F)}catch(F){console.error("Error saving chat event:",F)}})()}getAllChatEvents(){var P=this;return(0,u.A)(function*(){try{const B=[];return yield P.chatsStore.iterate(F=>{B.push(F)}),B}catch(B){return console.error("Error retrieving all chat events:",B),[]}})()}getChatEventsByPubKey(P){var B=this;return(0,u.A)(function*(){try{const F=[];return yield B.chatsStore.iterate(ue=>{const ge=B.getReceiverPubKeyFromTags(ue.tags);(ue.pubkey===P||ge===P)&&F.push(ue)}),F}catch(F){return console.error("Error retrieving chat events by pubkey:",F),[]}})()}updateChatEventReadStatus(P,B){var F=this;return(0,u.A)(function*(){try{const ue=yield F.chatsStore.getItem(P);if(ue){ue.IsRead=B,yield F.chatsStore.setItem(P,ue);const ge=yield F.getAllChatEvents();F.chatEventsSubject.next(ge),F.updateUnreadChatCount(ge)}}catch(ue){console.error("Error updating chat event read status:",ue)}})()}markAllChatEventsAsRead(P){var B=this;return(0,u.A)(function*(){try{yield B.chatsStore.iterate(function(){var ue=(0,u.A)(function*(ge,Ee){const Re=B.getReceiverPubKeyFromTags(ge.tags);(ge.pubkey===P||Re===P)&&!ge.IsRead&&(ge.IsRead=!0,yield B.chatsStore.setItem(Ee,ge))});return function(ge,Ee){return ue.apply(this,arguments)}}());const F=yield B.getAllChatEvents();B.chatEventsSubject.next(F),B.updateUnreadChatCount(F)}catch(F){console.error("Error marking all chat events as read:",F)}})()}getReceiverPubKeyFromTags(P){for(const B of P)if("p"===B[0]&&B[1])return B[1];return null}updateUnreadChatCount(P){const B=P.filter(F=>!F.IsRead).length;this.unreadChatCountSubject.next(B)}removeAllChats(){var P=this;return(0,u.A)(function*(){try{yield P.chatsStore.clear(),P.chatEventsSubject.next([]),P.unreadChatCountSubject.next(0),console.log("All chat events have been removed successfully.")}catch(B){console.error("Error removing all chat events:",B)}})()}setUpdateHistory(P){var B=this;return(0,u.A)(function*(){try{const F=Math.floor(Date.now()/1e3);yield B.updateHistoryStore.setItem(P,F)}catch(F){console.error("Error updating history:",F)}})()}loadAllProjectsFromDB(){var P=this;return(0,u.A)(function*(){try{const B=yield P.getAllProjects();P.projectsSubject.next(B)}catch(B){console.error("Error loading projects from DB:",B)}})()}loadAllProjectStatsFromDB(){var P=this;return(0,u.A)(function*(){try{const B=yield P.getAllProjectStats();P.projectStatsSubject.next(B)}catch(B){console.error("Error loading project stats from DB:",B)}})()}loadAllContactsFromDB(P=""){var B=this;return(0,u.A)(function*(){try{const F=yield B.getAllContacts(P);if(F.length>0){const ue={};for(const ge of F)ue[ge.pubKey]||(ue[ge.pubKey]=[]),ue[ge.pubKey].push(ge.contact);for(const ge in ue)B.contactsSubject.next({pubKey:ge,contacts:ue[ge]})}}catch(F){console.error("Error loading contacts from DB:",F)}})()}loadAllChatEventsFromDB(){var P=this;return(0,u.A)(function*(){try{const B=yield P.getAllChatEvents();P.chatEventsSubject.next(B)}catch(B){console.error("Error loading chat events from DB:",B)}})()}loadAllPostsFromDB(){var P=this;return(0,u.A)(function*(){try{const B=yield P.getAllPostsForAllPubKeys();P.postsSubject.next(B)}catch(B){console.error("Error loading posts from DB:",B)}})()}loadAllMyLikesFromDB(){var P=this;return(0,u.A)(function*(){try{const B=yield P.getAllMyLikes();P.myLikesSubject.next(B)}catch(B){console.error("Error loading likes from DB:",B)}})()}loadAllNotificationsFromDB(){var P=this;return(0,u.A)(function*(){try{const B=yield P.getAllNotifications();P.notificationsSubject.next(B)}catch(B){console.error("Error loading notifications from DB:",B)}})()}loadContactStatsFromDB(){var P=this;return(0,u.A)(function*(){try{let B=0,F=0,ue=0;yield P.contactsStore.iterate((ge,Ee)=>{const[Re]=Ee.split(":");B++,ge.isFollower?F++:ue++}),P.contactStatsSubject.next({totalContacts:B,followersCount:F,followingCount:ue})}catch(B){console.error("Error loading contact stats from DB:",B)}})()}static#e=this.\u0275fac=function(B){return new(B||oe)};static#t=this.\u0275prov=G.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})()},5645:(tn,Ne,v)=>{"use strict";v.d(Ne,{n:()=>ke});var y,u=v(4412),o=new Uint8Array(16);function L(){if(!y&&!(y=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y(o)}const G=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var V=[],P=0;P<256;++P)V.push((P+256).toString(16).substr(1));const F=function B(te){var be=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Ze=(V[te[be+0]]+V[te[be+1]]+V[te[be+2]]+V[te[be+3]]+"-"+V[te[be+4]]+V[te[be+5]]+"-"+V[te[be+6]]+V[te[be+7]]+"-"+V[te[be+8]]+V[te[be+9]]+"-"+V[te[be+10]]+V[te[be+11]]+V[te[be+12]]+V[te[be+13]]+V[te[be+14]]+V[te[be+15]]).toLowerCase();if(!function ee(te){return"string"==typeof te&&G.test(te)}(Ze))throw TypeError("Stringified UUID is invalid");return Ze},ge=function ue(te,be,Ze){var gt=(te=te||{}).random||(te.rng||L)();if(gt[6]=15>[6]|64,gt[8]=63>[8]|128,be){Ze=Ze||0;for(var je=0;je<16;++je)be[Ze+je]=gt[je];return be}return F(gt)};var Ee=v(4438),Re=v(6231);let ke=(()=>{class te{constructor(Ze){this.relayService=Ze,this.subscriptions=new Map,this.activeRelays=[],this.pendingSubscriptions=new Map,this.subscriptionsSubject=new u.t(new Map),this.subscriptions$=this.subscriptionsSubject.asObservable(),this.subscriptionQueue=[],this.isProcessingQueue=!1,this.queueInterval=3e3,this.maxSubscriptionsPerBatch=5,this.debounceInterval=5e3,this.lastActionTimestamp=new Map,this.connectToAllRelays(),this.processSubscriptionQueue()}addSubscriptions(Ze,gt){const je=this.findExistingSubscription(Ze);if(je)return console.log("Existing subscription found:",je),je.callbacks.push(gt),je.id;const qe=ge(),We=Date.now();this.lastActionTimestamp.set(qe,We);const ae={filter:Ze,callbacks:[gt],id:qe};return this.subscriptions.set(ae.id,ae),this.subscriptionsSubject.next(this.subscriptions),this.addToQueue(ae),ae.id}findExistingSubscription(Ze){for(let gt of this.subscriptions.values())if(JSON.stringify(gt.filter)===JSON.stringify(Ze))return gt}removeSubscriptionById(Ze){const gt=Date.now(),je=this.lastActionTimestamp.get(Ze);je&>-je{this.subscriptionQueue.length>0&&this.subscriptionQueue.splice(0,this.maxSubscriptionsPerBatch).forEach(gt=>{this.subscribeToRelays(gt.filter,gt)})},this.queueInterval))}subscribeToRelays(Ze,gt){0!==this.activeRelays.length?this.relayService.ensureConnectedRelays().then(()=>{const je=this.relayService.getConnectedRelays();this.relayService.getPool().subscribeMany(je,Ze,{onevent:qe=>{gt.callbacks.forEach(We=>We(qe))},onclose:()=>{console.log("Subscription closed")}})}).catch(je=>{console.error("Error subscribing to relays:",je)}):this.pendingSubscriptions.set(gt.id,gt)}subscribeToAllRelays(){this.pendingSubscriptions.forEach(Ze=>{this.subscribeToRelays(Ze.filter,Ze)}),this.pendingSubscriptions.clear()}connectToAllRelays(){this.relayService.ensureConnectedRelays().then(()=>{this.activeRelays=this.relayService.getConnectedRelays(),this.subscribeToAllRelays()}).catch(Ze=>{console.error("Error connecting to relays:",Ze)})}clearAllSubscriptions(){this.subscriptions.clear(),this.pendingSubscriptions.clear(),this.subscriptionsSubject.next(new Map)}getSubscriptions(){return Array.from(this.subscriptions.values())}static#e=this.\u0275fac=function(gt){return new(gt||te)(Ee.KVO(Re.b))};static#t=this.\u0275prov=Ee.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})()},7292:(tn,Ne,v)=>{"use strict";v.d(Ne,{b:()=>ge});var u=v(177),y=v(9417),o=v(8834),L=v(6600),G=v(5351),ee=v(2102),oe=v(9213),V=v(9042),P=v(2798),B=v(882),F=v(4438);function ue(Ee,Re){1&Ee&&(F.j41(0,"mat-error"),F.EFF(1," Password is required "),F.k0s())}let ge=(()=>{class Ee{constructor(ke,te,be){this.fb=ke,this.dialogRef=te,this.data=be,this.passwordForm=this.fb.group({password:["",y.k0.required],duration:["0",y.k0.required]})}onCancel(){this.dialogRef.close()}onSubmit(){this.dialogRef.close(this.passwordForm.value)}static#e=this.\u0275fac=function(te){return new(te||Ee)(F.rXU(y.ok),F.rXU(G.CP),F.rXU(G.Vh))};static#t=this.\u0275cmp=F.VBU({type:Ee,selectors:[["password-dialog"]],standalone:!0,features:[F.aNF],decls:30,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"formGroup"],[1,"w-full",3,"subscriptSizing"],["matPrefix",""],["matInput","","type","password",3,"formControlName"],[4,"ngIf"],[1,"mt-5","w-full"],["formControlName","duration"],["value","0"],["value","1"],["value","5"],["value","10"],["value","60"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(te,be){1&te&&(F.j41(0,"h1",0),F.EFF(1,"Enter Password"),F.k0s(),F.j41(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),F.EFF(6,"Password"),F.k0s(),F.j41(7,"mat-icon",4),F.EFF(8,"lock"),F.k0s(),F.nrm(9,"input",5),F.DNE(10,ue,2,0,"mat-error",6),F.k0s(),F.j41(11,"mat-form-field",7)(12,"mat-label"),F.EFF(13,"Duration"),F.k0s(),F.j41(14,"mat-select",8)(15,"mat-option",9),F.EFF(16,"0 Minute"),F.k0s(),F.j41(17,"mat-option",10),F.EFF(18,"1 Minute"),F.k0s(),F.j41(19,"mat-option",11),F.EFF(20,"5 Minutes"),F.k0s(),F.j41(21,"mat-option",12),F.EFF(22,"10 Minutes"),F.k0s(),F.j41(23,"mat-option",13),F.EFF(24,"1 Hour"),F.k0s()()()()(),F.j41(25,"div",14)(26,"button",15),F.bIt("click",function(){return be.onCancel()}),F.EFF(27,"Cancel"),F.k0s(),F.j41(28,"button",16),F.bIt("click",function(){return be.onSubmit()}),F.EFF(29," Submit "),F.k0s()()),2&te&&(F.R7$(3),F.Y8G("formGroup",be.passwordForm),F.R7$(),F.Y8G("subscriptSizing","dynamic"),F.R7$(5),F.Y8G("formControlName","password"),F.R7$(),F.Y8G("ngIf",be.passwordForm.get("password").hasError("required")),F.R7$(18),F.Y8G("disabled",be.passwordForm.invalid))},dependencies:[B.vg,o.Hl,o.$z,oe.m_,oe.An,y.YN,y.qT,y.me,y.BC,y.cb,L.wT,ee.nJ,ee.rl,y.X1,y.j4,y.JD,u.MD,u.bT,P.Ve,ee.TL,ee.JW,P.VO,ee.RG,V.fS,V.fg],styles:[".full-width[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}return Ee})()},368:(tn,Ne,v)=>{"use strict";var u=v(345),y=v(9192),o=v(4438);let L=(()=>{class a{constructor(){}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["app-root"]],standalone:!0,features:[o.aNF],decls:1,vars:0,template:function(c,h){1&c&&o.nrm(0,"router-outlet")},dependencies:[y.n3],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto;width:100%;height:100%}"]})}return a})();var G=v(467);const ee=new o.nKC("ANGOR_MOCK_API_DEFAULT_DELAY");var oe=v(8810),V=v(1985),P=v(6697),B=v(7673);class F{constructor(s,i){this.url=s,this.delay=i,this._replyCount=0,this._replied=0}get response(){if(this._replyCount>0&&this._replyCount<=this._replied)return(0,oe.$)(()=>new Error("Execution limit has been reached!"));if(!this._reply)return(0,oe.$)(()=>new Error("Response callback function does not exist!"));if(!this.request)return(0,oe.$)(()=>new Error("Request does not exist!"));this._replied++;const s=this._reply({request:this.request,urlParams:this.urlParams});return s instanceof V.c?s.pipe((0,P.s)(1)):(0,B.of)(s).pipe((0,P.s)(1))}reply(s){this._reply=s}replyCount(s){this._replyCount=s}}var ue=v(7680);let ge=(()=>{class a{constructor(){this._handlers={get:new Map,post:new Map,patch:new Map,delete:new Map,put:new Map,head:new Map,jsonp:new Map,options:new Map}}findHandler(i,c){const h={handler:void 0,urlParams:{}},C=c.split("/"),I=this._handlers[i.toLowerCase()];for(const[H,re]of I){const Fe=H.split("/");if(C.length===Fe.length&&Fe.every((Gt,Hn)=>Gt.startsWith(":")||Gt===C[Hn])){h.handler=re,h.urlParams=(0,ue.A)(Fe.map((Gt,Hn)=>Gt.startsWith(":")?[Gt.substring(1),C[Hn]]:void 0).filter(Boolean));break}}return h}onGet(i,c){return this._registerHandler("get",i,c)}onPost(i,c){return this._registerHandler("post",i,c)}onPatch(i,c){return this._registerHandler("patch",i,c)}onDelete(i,c){return this._registerHandler("delete",i,c)}onPut(i,c){return this._registerHandler("put",i,c)}onHead(i,c){return this._registerHandler("head",i,c)}onJsonp(i,c){return this._registerHandler("jsonp",i,c)}onOptions(i,c){return this._registerHandler("options",i,c)}_registerHandler(i,c,h){const C=new F(c,h);return this._handlers[i].set(c,C),C}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var Ee=v(1626),Re=v(1986),ke=v(5558);const te=(a,s)=>{const i=(0,o.WQX)(ee),c=(0,o.WQX)(ge),{handler:h,urlParams:C}=c.findHandler(a.method.toUpperCase(),a.url);return h?(h.request=a,h.urlParams=C,h.response.pipe((0,Re.c)(h.delay??i??0),(0,ke.n)(I=>{if(!I)return(0,oe.$)(()=>new Ee.yz({error:"NOT FOUND",status:404,statusText:"NOT FOUND"}));const H={status:I[0],body:I[1]};return H.status>=200&&H.status<300?(0,B.of)(new Ee.cS({body:H.body,status:H.status,statusText:"OK"})):(0,oe.$)(()=>new Ee.yz({error:H.body?.error,status:H.status,statusText:"ERROR"}))}))):s(a)};var be=v(9097),Ze=v(9979),gt=v(4412);let je=(()=>{class a{constructor(){this._auto$=new gt.t(!0),this._mode$=new gt.t("indeterminate"),this._progress$=new gt.t(0),this._show$=new gt.t(!1),this._urlMap=new Map}get auto$(){return this._auto$.asObservable()}get mode$(){return this._mode$.asObservable()}get progress$(){return this._progress$.asObservable()}get show$(){return this._show$.asObservable()}show(){this._show$.next(!0)}hide(){this._show$.next(!1)}setAutoMode(i){this._auto$.next(i)}setMode(i){this._mode$.next(i)}setProgress(i){i<0||i>100?console.error("Progress value must be between 0 and 100!"):this._progress$.next(i)}_setLoadingStatus(i,c){c?(!0===i?(this._urlMap.set(c,i),this._show$.next(!0)):!1===i&&this._urlMap.has(c)&&this._urlMap.delete(c),0===this._urlMap.size&&this._show$.next(!1)):console.error("The request URL must be provided!")}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var qe=v(980);const We=(a,s)=>{const i=(0,o.WQX)(je);let c=!1;return i.auto$.pipe((0,P.s)(1)).subscribe(h=>{c=h}),c?(i._setLoadingStatus(!0,a.url),s(a).pipe((0,qe.j)(()=>{i._setLoadingStatus(!1,a.url)}))):s(a)};var ae=v(4977),me=v(6860);let Le=(()=>{class a{constructor(){this._platform=(0,o.WQX)(me.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#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var nt=v(177),At=v(5964);let vt=(()=>{class a{constructor(){this._document=(0,o.WQX)(nt.qQ),this._router=(0,o.WQX)(y.Ix),this._router.events.pipe((0,At.p)(i=>i instanceof y.wF),(0,P.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#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var Dt=v(7209),Zt=v(6600),Fn=v(5351),Vn=v(2102);class pi extends Error{}class _e extends pi{constructor(s){super(`Invalid DateTime: ${s.toMessage()}`)}}class Ae extends pi{constructor(s){super(`Invalid Interval: ${s.toMessage()}`)}}class J extends pi{constructor(s){super(`Invalid Duration: ${s.toMessage()}`)}}class Ie extends pi{}class Ot extends pi{constructor(s){super(`Invalid unit ${s}`)}}class Pe extends pi{}class ht extends pi{constructor(){super("Zone is an abstract class")}}const Xe="numeric",Je="short",Me="long",ie={year:Xe,month:Xe,day:Xe},ve={year:Xe,month:Je,day:Xe},le={year:Xe,month:Je,day:Xe,weekday:Je},Ce={year:Xe,month:Me,day:Xe},dt={year:Xe,month:Me,day:Xe,weekday:Me},un={hour:Xe,minute:Xe},it={hour:Xe,minute:Xe,second:Xe},It={hour:Xe,minute:Xe,second:Xe,timeZoneName:Je},Ft={hour:Xe,minute:Xe,second:Xe,timeZoneName:Me},Rt={hour:Xe,minute:Xe,hourCycle:"h23"},kn={hour:Xe,minute:Xe,second:Xe,hourCycle:"h23"},hi={hour:Xe,minute:Xe,second:Xe,hourCycle:"h23",timeZoneName:Je},qt={hour:Xe,minute:Xe,second:Xe,hourCycle:"h23",timeZoneName:Me},we={year:Xe,month:Xe,day:Xe,hour:Xe,minute:Xe},tt={year:Xe,month:Xe,day:Xe,hour:Xe,minute:Xe,second:Xe},rt={year:Xe,month:Je,day:Xe,hour:Xe,minute:Xe},bt={year:Xe,month:Je,day:Xe,hour:Xe,minute:Xe,second:Xe},on={year:Xe,month:Je,day:Xe,weekday:Je,hour:Xe,minute:Xe},Q={year:Xe,month:Me,day:Xe,hour:Xe,minute:Xe,timeZoneName:Je},T={year:Xe,month:Me,day:Xe,hour:Xe,minute:Xe,second:Xe,timeZoneName:Je},N={year:Xe,month:Me,day:Xe,weekday:Me,hour:Xe,minute:Xe,timeZoneName:Me},$={year:Xe,month:Me,day:Xe,weekday:Me,hour:Xe,minute:Xe,second:Xe,timeZoneName:Me};class ce{get type(){throw new ht}get name(){throw new ht}get ianaName(){return this.name}get isUniversal(){throw new ht}offsetName(s,i){throw new ht}formatOffset(s,i){throw new ht}offset(s){throw new ht}equals(s){throw new ht}get isValid(){throw new ht}}let he=null;class et extends ce{static get instance(){return null===he&&(he=new et),he}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(s,{format:i,locale:c}){return Bo(s,i,c)}formatOffset(s,i){return Hs(this.offset(s),i)}offset(s){return-new Date(s).getTimezoneOffset()}equals(s){return"system"===s.type}get isValid(){return!0}}let $t={};const Vt={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Ei={};class Jt extends ce{static create(s){return Ei[s]||(Ei[s]=new Jt(s)),Ei[s]}static resetCache(){Ei={},$t={}}static isValidSpecifier(s){return this.isValidZone(s)}static isValidZone(s){if(!s)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:s}).format(),!0}catch{return!1}}constructor(s){super(),this.zoneName=s,this.valid=Jt.isValidZone(s)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(s,{format:i,locale:c}){return Bo(s,i,c,this.name)}formatOffset(s,i){return Hs(this.offset(s),i)}offset(s){const i=new Date(s);if(isNaN(i))return NaN;const c=function Bt(a){return $t[a]||($t[a]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:a,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),$t[a]}(this.name);let[h,C,I,H,re,Fe,Pt]=c.formatToParts?function Ln(a,s){const i=a.formatToParts(s),c=[];for(let h=0;h=0?Cn:1e3+Cn,(Vs({year:h,month:C,day:I,hour:24===re?0:re,minute:Fe,second:Pt,millisecond:0})-bn)/6e4}equals(s){return"iana"===s.type&&s.name===this.name}get isValid(){return this.valid}}let En={},Be={};function ye(a,s={}){const i=JSON.stringify([a,s]);let c=Be[i];return c||(c=new Intl.DateTimeFormat(a,s),Be[i]=c),c}let Ke={},Pn={},Ti=null,Et={};function ct(a,s,i,c){const h=a.listingMode();return"error"===h?null:"en"===h?i(s):c(s)}class rn{constructor(s,i,c){this.padTo=c.padTo||0,this.floor=c.floor||!1;const{padTo:h,floor:C,...I}=c;if(!i||Object.keys(I).length>0){const H={useGrouping:!1,...c};c.padTo>0&&(H.minimumIntegerDigits=c.padTo),this.inf=function zt(a,s={}){const i=JSON.stringify([a,s]);let c=Ke[i];return c||(c=new Intl.NumberFormat(a,s),Ke[i]=c),c}(s,H)}}format(s){if(this.inf){const i=this.floor?Math.floor(s):s;return this.inf.format(i)}return hr(this.floor?Math.floor(s):rs(s,3),this.padTo)}}class ai{constructor(s,i,c){let h;if(this.opts=c,this.originalZone=void 0,this.opts.timeZone)this.dt=s;else if("fixed"===s.zone.type){const I=s.offset/60*-1,H=I>=0?`Etc/GMT+${I}`:`Etc/GMT${I}`;0!==s.offset&&Jt.create(H).valid?(h=H,this.dt=s):(h="UTC",this.dt=0===s.offset?s:s.setZone("UTC").plus({minutes:s.offset}),this.originalZone=s.zone)}else"system"===s.zone.type?this.dt=s:"iana"===s.zone.type?(this.dt=s,h=s.zone.name):(h="UTC",this.dt=s.setZone("UTC").plus({minutes:s.offset}),this.originalZone=s.zone);const C={...this.opts};C.timeZone=C.timeZone||h,this.dtf=ye(i,C)}format(){return this.originalZone?this.formatToParts().map(({value:s})=>s).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const s=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?s.map(i=>{if("timeZoneName"===i.type){const c=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:c}}return i}):s}resolvedOptions(){return this.dtf.resolvedOptions()}}class yr{constructor(s,i,c){this.opts={style:"long",...c},!i&&ns()&&(this.rtf=function vi(a,s={}){const{base:i,...c}=s,h=JSON.stringify([a,c]);let C=Pn[h];return C||(C=new Intl.RelativeTimeFormat(a,s),Pn[h]=C),C}(s,c))}format(s,i){return this.rtf?this.rtf.format(s,i):function Cs(a,s,i="always",c=!1){const h={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},C=-1===["hours","minutes","seconds"].indexOf(a);if("auto"===i&&C){const Gt="days"===a;switch(s){case 1:return Gt?"tomorrow":`next ${h[a][0]}`;case-1:return Gt?"yesterday":`last ${h[a][0]}`;case 0:return Gt?"today":`this ${h[a][0]}`}}const I=Object.is(s,-0)||s<0,H=Math.abs(s),re=1===H,Fe=h[a],Pt=c?re?Fe[1]:Fe[2]||Fe[1]:re?h[a][0]:a;return I?`${H} ${Pt} ago`:`in ${H} ${Pt}`}(i,s,this.opts.numeric,"long"!==this.opts.style)}formatToParts(s,i){return this.rtf?this.rtf.formatToParts(s,i):[]}}const xr={firstDay:1,minimalDays:4,weekend:[6,7]};class Ri{static fromOpts(s){return Ri.create(s.locale,s.numberingSystem,s.outputCalendar,s.weekSettings,s.defaultToEN)}static create(s,i,c,h,C=!1){const I=s||se.defaultLocale,H=I||(C?"en-US":function nn(){return Ti||(Ti=(new Intl.DateTimeFormat).resolvedOptions().locale,Ti)}()),re=i||se.defaultNumberingSystem,Fe=c||se.defaultOutputCalendar,Pt=Lo(h)||se.defaultWeekSettings;return new Ri(H,re,Fe,Pt,I)}static resetCache(){Ti=null,Be={},Ke={},Pn={}}static fromObject({locale:s,numberingSystem:i,outputCalendar:c,weekSettings:h}={}){return Ri.create(s,i,c,h)}constructor(s,i,c,h,C){const[I,H,re]=function Lt(a){const s=a.indexOf("-x-");-1!==s&&(a=a.substring(0,s));const i=a.indexOf("-u-");if(-1===i)return[a];{let c,h;try{c=ye(a).resolvedOptions(),h=a}catch{const re=a.substring(0,i);c=ye(re).resolvedOptions(),h=re}const{numberingSystem:C,calendar:I}=c;return[h,C,I]}}(s);this.locale=I,this.numberingSystem=i||H||null,this.outputCalendar=c||re||null,this.weekSettings=h,this.intl=function st(a,s,i){return(i||s)&&(a.includes("-u-")||(a+="-u"),i&&(a+=`-ca-${i}`),s&&(a+=`-nu-${s}`)),a}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=C,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function Wt(a){return(!a.numberingSystem||"latn"===a.numberingSystem)&&("latn"===a.numberingSystem||!a.locale||a.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(a.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(s){return s&&0!==Object.getOwnPropertyNames(s).length?Ri.create(s.locale||this.specifiedLocale,s.numberingSystem||this.numberingSystem,s.outputCalendar||this.outputCalendar,Lo(s.weekSettings)||this.weekSettings,s.defaultToEN||!1):this}redefaultToEN(s={}){return this.clone({...s,defaultToEN:!0})}redefaultToSystem(s={}){return this.clone({...s,defaultToEN:!1})}months(s,i=!1){return ct(this,s,oa,()=>{const c=i?{month:s,day:"numeric"}:{month:s},h=i?"format":"standalone";return this.monthsCache[h][s]||(this.monthsCache[h][s]=function Qe(a){const s=[];for(let i=1;i<=12;i++){const c=yi.utc(2009,i,1);s.push(a(c))}return s}(C=>this.extract(C,c,"month"))),this.monthsCache[h][s]})}weekdays(s,i=!1){return ct(this,s,$s,()=>{const c=i?{weekday:s,year:"numeric",month:"long",day:"numeric"}:{weekday:s},h=i?"format":"standalone";return this.weekdaysCache[h][s]||(this.weekdaysCache[h][s]=function Oe(a){const s=[];for(let i=1;i<=7;i++){const c=yi.utc(2016,11,13+i);s.push(a(c))}return s}(C=>this.extract(C,c,"weekday"))),this.weekdaysCache[h][s]})}meridiems(){return ct(this,void 0,()=>Mi,()=>{if(!this.meridiemCache){const s={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[yi.utc(2016,11,13,9),yi.utc(2016,11,13,19)].map(i=>this.extract(i,s,"dayperiod"))}return this.meridiemCache})}eras(s){return ct(this,s,ul,()=>{const i={era:s};return this.eraCache[s]||(this.eraCache[s]=[yi.utc(-40,1,1),yi.utc(2017,1,1)].map(c=>this.extract(c,i,"era"))),this.eraCache[s]})}extract(s,i,c){const I=this.dtFormatter(s,i).formatToParts().find(H=>H.type.toLowerCase()===c);return I?I.value:null}numberFormatter(s={}){return new rn(this.intl,s.forceSimple||this.fastNumbers,s)}dtFormatter(s,i={}){return new ai(s,this.intl,i)}relFormatter(s={}){return new yr(this.intl,this.isEnglish(),s)}listFormatter(s={}){return function He(a,s={}){const i=JSON.stringify([a,s]);let c=En[i];return c||(c=new Intl.ListFormat(a,s),En[i]=c),c}(this.intl,s)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:oo()?function at(a){let s=Et[a];if(!s){const i=new Intl.Locale(a);s="getWeekInfo"in i?i.getWeekInfo():i.weekInfo,Et[a]=s}return s}(this.locale):xr}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(s){return this.locale===s.locale&&this.numberingSystem===s.numberingSystem&&this.outputCalendar===s.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Pr=null;class wi extends ce{static get utcInstance(){return null===Pr&&(Pr=new wi(0)),Pr}static instance(s){return 0===s?wi.utcInstance:new wi(s)}static parseSpecifier(s){if(s){const i=s.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new wi(Uo(i[1],i[2]))}return null}constructor(s){super(),this.fixed=s}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Hs(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Hs(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(s,i){return Hs(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(s){return"fixed"===s.type&&s.fixed===this.fixed}get isValid(){return!0}}class Yr extends ce{constructor(s){super(),this.zoneName=s}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Or(a,s){if(Ci(a)||null===a)return s;if(a instanceof ce)return a;if(function zi(a){return"string"==typeof a}(a)){const c=a.toLowerCase();return"default"===c?s:"local"===c||"system"===c?et.instance:"utc"===c||"gmt"===c?wi.utcInstance:wi.parseSpecifier(c)||Jt.create(a)}return Lr(a)?wi.instance(a):"object"==typeof a&&"offset"in a&&"function"==typeof a.offset?a:new Yr(a)}const ft={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},St={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]},ln=ft.hanidec.replace(/[\[|\]]/g,"").split("");let An={};function zn({numberingSystem:a},s=""){const i=a||"latn";return An[i]||(An[i]={}),An[i][s]||(An[i][s]=new RegExp(`${ft[i]}${s}`)),An[i][s]}let W,ri=()=>Date.now(),li="system",Bn=null,xe=null,Ye=null,Ge=60,Te=null;class se{static get now(){return ri}static set now(s){ri=s}static set defaultZone(s){li=s}static get defaultZone(){return Or(li,et.instance)}static get defaultLocale(){return Bn}static set defaultLocale(s){Bn=s}static get defaultNumberingSystem(){return xe}static set defaultNumberingSystem(s){xe=s}static get defaultOutputCalendar(){return Ye}static set defaultOutputCalendar(s){Ye=s}static get defaultWeekSettings(){return Te}static set defaultWeekSettings(s){Te=Lo(s)}static get twoDigitCutoffYear(){return Ge}static set twoDigitCutoffYear(s){Ge=s%100}static get throwOnInvalid(){return W}static set throwOnInvalid(s){W=s}static resetCaches(){Ri.resetCache(),Jt.resetCache(),yi.resetCache(),function Xn(){An={}}()}}class $e{constructor(s,i){this.reason=s,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const pt=[0,31,59,90,120,151,181,212,243,273,304,334],lt=[0,31,60,91,121,152,182,213,244,274,305,335];function jt(a,s){return new $e("unit out of range",`you specified ${s} (of type ${typeof s}) as a ${a}, which is invalid`)}function hn(a,s,i){const c=new Date(Date.UTC(a,s-1,i));a<100&&a>=0&&c.setUTCFullYear(c.getUTCFullYear()-1900);const h=c.getUTCDay();return 0===h?7:h}function fn(a,s,i){return i+(Ar(a)?lt:pt)[s-1]}function wn(a,s){const i=Ar(a)?lt:pt,c=i.findIndex(C=>Cjs(c,s,i)?(Fe=c+1,re=1):Fe=c,{weekYear:Fe,weekNumber:re,weekday:H,...Qr(a)}}function $n(a,s=4,i=1){const{weekYear:c,weekNumber:h,weekday:C}=a,I=Dn(hn(c,1,s),i),H=Tr(c);let Fe,re=7*h+C-I-7+s;re<1?(Fe=c-1,re+=Tr(Fe)):re>H?(Fe=c+1,re-=Tr(c)):Fe=c;const{month:Pt,day:Gt}=wn(Fe,re);return{year:Fe,month:Pt,day:Gt,...Qr(a)}}function ci(a){const{year:s,month:i,day:c}=a;return{year:s,ordinal:fn(s,i,c),...Qr(a)}}function ki(a){const{year:s,ordinal:i}=a,{month:c,day:h}=wn(s,i);return{year:s,month:c,day:h,...Qr(a)}}function ei(a,s){if(Ci(a.localWeekday)&&Ci(a.localWeekNumber)&&Ci(a.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!Ci(a.weekday)||!Ci(a.weekNumber)||!Ci(a.weekYear))throw new Ie("Cannot mix locale-based week fields with ISO-based week fields");return Ci(a.localWeekday)||(a.weekday=a.localWeekday),Ci(a.localWeekNumber)||(a.weekNumber=a.localWeekNumber),Ci(a.localWeekYear)||(a.weekYear=a.localWeekYear),delete a.localWeekday,delete a.localWeekNumber,delete a.localWeekYear,{minDaysInFirstWeek:s.getMinDaysInFirstWeek(),startOfWeek:s.getStartOfWeek()}}function uo(a){const s=$o(a.year),i=Sr(a.month,1,12),c=Sr(a.day,1,Ir(a.year,a.month));return s?i?!c&&jt("day",a.day):jt("month",a.month):jt("year",a.year)}function Fr(a){const{hour:s,minute:i,second:c,millisecond:h}=a,C=Sr(s,0,23)||24===s&&0===i&&0===c&&0===h,I=Sr(i,0,59),H=Sr(c,0,59),re=Sr(h,0,999);return C?I?H?!re&&jt("millisecond",h):jt("second",c):jt("minute",i):jt("hour",s)}function Ci(a){return typeof a>"u"}function Lr(a){return"number"==typeof a}function $o(a){return"number"==typeof a&&a%1==0}function ns(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function oo(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function ga(a,s,i){if(0!==a.length)return a.reduce((c,h)=>{const C=[s(h),h];return c&&i(c[0],C[0])===c[0]?c:C},null)[1]}function vo(a,s){return Object.prototype.hasOwnProperty.call(a,s)}function Lo(a){if(null==a)return null;if("object"!=typeof a)throw new Pe("Week settings must be an object");if(!Sr(a.firstDay,1,7)||!Sr(a.minimalDays,1,7)||!Array.isArray(a.weekend)||a.weekend.some(s=>!Sr(s,1,7)))throw new Pe("Invalid week settings");return{firstDay:a.firstDay,minimalDays:a.minimalDays,weekend:Array.from(a.weekend)}}function Sr(a,s,i){return $o(a)&&a>=s&&a<=i}function hr(a,s=2){let c;return c=a<0?"-"+(""+-a).padStart(s,"0"):(""+a).padStart(s,"0"),c}function is(a){if(!Ci(a)&&null!==a&&""!==a)return parseInt(a,10)}function no(a){if(!Ci(a)&&null!==a&&""!==a)return parseFloat(a)}function Ii(a){if(!Ci(a)&&null!==a&&""!==a){const s=1e3*parseFloat("0."+a);return Math.floor(s)}}function rs(a,s,i=!1){const c=10**s;return(i?Math.trunc:Math.round)(a*c)/c}function Ar(a){return a%4==0&&(a%100!=0||a%400==0)}function Tr(a){return Ar(a)?366:365}function Ir(a,s){const i=function Us(a,s){return a-s*Math.floor(a/s)}(s-1,12)+1;return 2===i?Ar(a+(s-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Vs(a){let s=Date.UTC(a.year,a.month-1,a.day,a.hour,a.minute,a.second,a.millisecond);return a.year<100&&a.year>=0&&(s=new Date(s),s.setUTCFullYear(a.year,a.month-1,a.day)),+s}function Di(a,s,i){return-Dn(hn(a,1,s),i)+s-1}function js(a,s=4,i=1){const c=Di(a,s,i),h=Di(a+1,s,i);return(Tr(a)-c+h)/7}function Hr(a){return a>99?a:a>se.twoDigitCutoffYear?1900+a:2e3+a}function Bo(a,s,i,c=null){const h=new Date(a),C={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};c&&(C.timeZone=c);const I={timeZoneName:s,...C},H=new Intl.DateTimeFormat(i,I).formatToParts(h).find(re=>"timezonename"===re.type.toLowerCase());return H?H.value:null}function Uo(a,s){let i=parseInt(a,10);Number.isNaN(i)&&(i=0);const c=parseInt(s,10)||0;return 60*i+(i<0||Object.is(i,-0)?-c:c)}function va(a){const s=Number(a);if("boolean"==typeof a||""===a||Number.isNaN(s))throw new Pe(`Invalid unit value ${a}`);return s}function gs(a,s){const i={};for(const c in a)if(vo(a,c)){const h=a[c];if(null==h)continue;i[s(c)]=va(h)}return i}function Hs(a,s){const i=Math.trunc(Math.abs(a/60)),c=Math.trunc(Math.abs(a%60)),h=a>=0?"+":"-";switch(s){case"short":return`${h}${hr(i,2)}:${hr(c,2)}`;case"narrow":return`${h}${i}${c>0?`:${c}`:""}`;case"techie":return`${h}${hr(i,2)}${hr(c,2)}`;default:throw new RangeError(`Value format ${s} is out of range for property format`)}}function Qr(a){return function Ul(a,s){return s.reduce((i,c)=>(i[c]=a[c],i),{})}(a,["hour","minute","second","millisecond"])}const gr=["January","February","March","April","May","June","July","August","September","October","November","December"],zo=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],so=["J","F","M","A","M","J","J","A","S","O","N","D"];function oa(a){switch(a){case"narrow":return[...so];case"short":return[...zo];case"long":return[...gr];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const lr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Io=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Eo=["M","T","W","T","F","S","S"];function $s(a){switch(a){case"narrow":return[...Eo];case"short":return[...Io];case"long":return[...lr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Mi=["AM","PM"],os=["Before Christ","Anno Domini"],Zr=["BC","AD"],Wo=["B","A"];function ul(a){switch(a){case"narrow":return[...Wo];case"short":return[...Zr];case"long":return[...os];default:return null}}function or(a,s){let i="";for(const c of a)i+=c.literal?c.val:s(c.val);return i}const ss={D:ie,DD:ve,DDD:Ce,DDDD:dt,t:un,tt:it,ttt:It,tttt:Ft,T:Rt,TT:kn,TTT:hi,TTTT:qt,f:we,ff:rt,fff:Q,ffff:N,F:tt,FF:bt,FFF:T,FFFF:$};class br{static create(s,i={}){return new br(s,i)}static parseFormat(s){let i=null,c="",h=!1;const C=[];for(let I=0;I0&&C.push({literal:h||/^\s+$/.test(c),val:c}),i=null,c="",h=!h):h||H===i?c+=H:(c.length>0&&C.push({literal:/^\s+$/.test(c),val:c}),c=H,i=H)}return c.length>0&&C.push({literal:h||/^\s+$/.test(c),val:c}),C}static macroTokenToFormatOpts(s){return ss[s]}constructor(s,i){this.opts=i,this.loc=s,this.systemLoc=null}formatWithSystemDefault(s,i){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(s,{...this.opts,...i}).format()}dtFormatter(s,i={}){return this.loc.dtFormatter(s,{...this.opts,...i})}formatDateTime(s,i){return this.dtFormatter(s,i).format()}formatDateTimeParts(s,i){return this.dtFormatter(s,i).formatToParts()}formatInterval(s,i){return this.dtFormatter(s.start,i).dtf.formatRange(s.start.toJSDate(),s.end.toJSDate())}resolvedOptions(s,i){return this.dtFormatter(s,i).resolvedOptions()}num(s,i=0){if(this.opts.forceSimple)return hr(s,i);const c={...this.opts};return i>0&&(c.padTo=i),this.loc.numberFormatter(c).format(s)}formatDateTimeFromString(s,i){const c="en"===this.loc.listingMode(),h=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,C=(bn,Cn)=>this.loc.extract(s,bn,Cn),I=bn=>s.isOffsetFixed&&0===s.offset&&bn.allowZ?"Z":s.isValid?s.zone.formatOffset(s.ts,bn.format):"",re=(bn,Cn)=>c?function Ta(a,s){return oa(s)[a.month-1]}(s,bn):C(Cn?{month:bn}:{month:bn,day:"numeric"},"month"),Fe=(bn,Cn)=>c?function zs(a,s){return $s(s)[a.weekday-1]}(s,bn):C(Cn?{weekday:bn}:{weekday:bn,month:"long",day:"numeric"},"weekday"),Pt=bn=>{const Cn=br.macroTokenToFormatOpts(bn);return Cn?this.formatWithSystemDefault(s,Cn):bn},Gt=bn=>c?function Ji(a,s){return ul(s)[a.year<0?0:1]}(s,bn):C({era:bn},"era");return or(br.parseFormat(i),bn=>{switch(bn){case"S":return this.num(s.millisecond);case"u":case"SSS":return this.num(s.millisecond,3);case"s":return this.num(s.second);case"ss":return this.num(s.second,2);case"uu":return this.num(Math.floor(s.millisecond/10),2);case"uuu":return this.num(Math.floor(s.millisecond/100));case"m":return this.num(s.minute);case"mm":return this.num(s.minute,2);case"h":return this.num(s.hour%12==0?12:s.hour%12);case"hh":return this.num(s.hour%12==0?12:s.hour%12,2);case"H":return this.num(s.hour);case"HH":return this.num(s.hour,2);case"Z":return I({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return I({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return I({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return s.zone.offsetName(s.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return s.zone.offsetName(s.ts,{format:"long",locale:this.loc.locale});case"z":return s.zoneName;case"a":return c?function Co(a){return Mi[a.hour<12?0:1]}(s):C({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return h?C({day:"numeric"},"day"):this.num(s.day);case"dd":return h?C({day:"2-digit"},"day"):this.num(s.day,2);case"c":case"E":return this.num(s.weekday);case"ccc":return Fe("short",!0);case"cccc":return Fe("long",!0);case"ccccc":return Fe("narrow",!0);case"EEE":return Fe("short",!1);case"EEEE":return Fe("long",!1);case"EEEEE":return Fe("narrow",!1);case"L":return h?C({month:"numeric",day:"numeric"},"month"):this.num(s.month);case"LL":return h?C({month:"2-digit",day:"numeric"},"month"):this.num(s.month,2);case"LLL":return re("short",!0);case"LLLL":return re("long",!0);case"LLLLL":return re("narrow",!0);case"M":return h?C({month:"numeric"},"month"):this.num(s.month);case"MM":return h?C({month:"2-digit"},"month"):this.num(s.month,2);case"MMM":return re("short",!1);case"MMMM":return re("long",!1);case"MMMMM":return re("narrow",!1);case"y":return h?C({year:"numeric"},"year"):this.num(s.year);case"yy":return h?C({year:"2-digit"},"year"):this.num(s.year.toString().slice(-2),2);case"yyyy":return h?C({year:"numeric"},"year"):this.num(s.year,4);case"yyyyyy":return h?C({year:"numeric"},"year"):this.num(s.year,6);case"G":return Gt("short");case"GG":return Gt("long");case"GGGGG":return Gt("narrow");case"kk":return this.num(s.weekYear.toString().slice(-2),2);case"kkkk":return this.num(s.weekYear,4);case"W":return this.num(s.weekNumber);case"WW":return this.num(s.weekNumber,2);case"n":return this.num(s.localWeekNumber);case"nn":return this.num(s.localWeekNumber,2);case"ii":return this.num(s.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(s.localWeekYear,4);case"o":return this.num(s.ordinal);case"ooo":return this.num(s.ordinal,3);case"q":return this.num(s.quarter);case"qq":return this.num(s.quarter,2);case"X":return this.num(Math.floor(s.ts/1e3));case"x":return this.num(s.ts);default:return Pt(bn)}})}formatDurationFromString(s,i){const c=re=>{switch(re[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},C=br.parseFormat(i),I=C.reduce((re,{literal:Fe,val:Pt})=>Fe?re:re.concat(Pt),[]);return or(C,(re=>Fe=>{const Pt=c(Fe);return Pt?this.num(re.get(Pt),Fe.length):Fe})(s.shiftTo(...I.map(c).filter(re=>re))))}}const Vo=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function jo(...a){const s=a.reduce((i,c)=>i+c.source,"");return RegExp(`^${s}$`)}function Ws(...a){return s=>a.reduce(([i,c,h],C)=>{const[I,H,re]=C(s,h);return[{...i,...I},H||c,re]},[{},null,1]).slice(0,2)}function Ko(a,...s){if(null==a)return[null,null];for(const[i,c]of s){const h=i.exec(a);if(h)return c(h)}return[null,null]}function Mo(...a){return(s,i)=>{const c={};let h;for(h=0;hvoid 0!==bn&&(Cn||bn&&Pt)?-bn:bn;return[{years:Hn(no(i)),months:Hn(no(c)),weeks:Hn(no(h)),days:Hn(no(C)),hours:Hn(no(I)),minutes:Hn(no(H)),seconds:Hn(no(re),"-0"===re),milliseconds:Hn(Ii(Fe),Gt)}]}const Ma={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ss(a,s,i,c,h,C,I){const H={year:2===s.length?Hr(is(s)):is(s),month:zo.indexOf(i)+1,day:is(c),hour:is(h),minute:is(C)};return I&&(H.second=is(I)),a&&(H.weekday=a.length>3?lr.indexOf(a)+1:Io.indexOf(a)+1),H}const Oa=/^(?:(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 aa(a){const[,s,i,c,h,C,I,H,re,Fe,Pt,Gt]=a,Hn=Ss(s,h,c,i,C,I,H);let bn;return bn=re?Ma[re]:Fe?0:Uo(Pt,Gt),[Hn,new wi(bn)]}const ho=/^(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$/,Cl=/^(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$/,ka=/^(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 Wi(a){const[,s,i,c,h,C,I,H]=a;return[Ss(s,h,c,i,C,I,H),wi.utcInstance]}function Jr(a){const[,s,i,c,h,C,I,H]=a;return[Ss(s,H,i,c,h,C,I),wi.utcInstance]}const qr=jo(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ds),Yo=jo(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ds),fo=jo(/(\d{4})-?(\d{3})/,Ds),Na=jo(Ia),As=Ws(function yt(a,s){return[{year:pe(a,s),month:pe(a,s+1,1),day:pe(a,s+2,1)},null,s+3]},ii,Xi,ko),la=Ws(fr,ii,Xi,ko),Wa=Ws(Ro,ii,Xi,ko),Gs=Ws(ii,Xi,ko),Ho=Ws(ii),_a=jo(/(\d{4})-(\d\d)-(\d\d)/,k),Xs=jo(X),Ga=Ws(ii,Xi,ko),Fa="Invalid Duration",Ts={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}},hl={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},...Ts},So=365.2425,_s=30.436875,Oc={years:{quarters:4,months:12,weeks:So/7,days:So,hours:24*So,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:So/28,days:So/4,hours:24*So/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:_s/7,days:_s,hours:24*_s,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Ts},Is=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ka=Is.slice(0).reverse();function po(a,s,i=!1){const c={values:i?s.values:{...a.values,...s.values||{}},loc:a.loc.clone(s.loc),conversionAccuracy:s.conversionAccuracy||a.conversionAccuracy,matrix:s.matrix||a.matrix};return new ur(c)}function Xa(a,s){let i=s.milliseconds??0;for(const c of Ka.slice(1))s[c]&&(i+=s[c]*a[c].milliseconds);return i}function ys(a,s){const i=Xa(a,s)<0?-1:1;Is.reduceRight((c,h)=>{if(Ci(s[h]))return c;if(c){const I=a[h][c],H=Math.floor(s[c]*i/I);s[h]+=H*i,s[c]-=H*I*i}return h},null),Is.reduce((c,h)=>{if(Ci(s[h]))return c;if(c){const C=s[c]%1;s[c]-=C,s[h]+=C*a[c][h]}return h},null)}class ur{constructor(s){const i="longterm"===s.conversionAccuracy||!1;let c=i?Oc:hl;s.matrix&&(c=s.matrix),this.values=s.values,this.loc=s.loc||Ri.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=s.invalid||null,this.matrix=c,this.isLuxonDuration=!0}static fromMillis(s,i){return ur.fromObject({milliseconds:s},i)}static fromObject(s,i={}){if(null==s||"object"!=typeof s)throw new Pe("Duration.fromObject: argument expected to be an object, got "+(null===s?"null":typeof s));return new ur({values:gs(s,ur.normalizeUnit),loc:Ri.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(s){if(Lr(s))return ur.fromMillis(s);if(ur.isDuration(s))return s;if("object"==typeof s)return ur.fromObject(s);throw new Pe(`Unknown duration argument ${s} of type ${typeof s}`)}static fromISO(s,i){const[c]=function Ks(a){return Ko(a,[ls,Vl])}(s);return c?ur.fromObject(c,i):ur.invalid("unparsable",`the input "${s}" can't be parsed as ISO 8601`)}static fromISOTime(s,i){const[c]=function No(a){return Ko(a,[_o,Ho])}(s);return c?ur.fromObject(c,i):ur.invalid("unparsable",`the input "${s}" can't be parsed as ISO 8601`)}static invalid(s,i=null){if(!s)throw new Pe("need to specify a reason the Duration is invalid");const c=s instanceof $e?s:new $e(s,i);if(se.throwOnInvalid)throw new J(c);return new ur({invalid:c})}static normalizeUnit(s){const i={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[s&&s.toLowerCase()];if(!i)throw new Ot(s);return i}static isDuration(s){return s&&s.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(s,i={}){const c={...i,floor:!1!==i.round&&!1!==i.floor};return this.isValid?br.create(this.loc,c).formatDurationFromString(this,s):Fa}toHuman(s={}){if(!this.isValid)return Fa;const i=Is.map(c=>{const h=this.values[c];return Ci(h)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...s,unit:c.slice(0,-1)}).format(h)}).filter(c=>c);return this.loc.listFormatter({type:"conjunction",style:s.listStyle||"narrow",...s}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let s="P";return 0!==this.years&&(s+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(s+=this.months+3*this.quarters+"M"),0!==this.weeks&&(s+=this.weeks+"W"),0!==this.days&&(s+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(s+="T"),0!==this.hours&&(s+=this.hours+"H"),0!==this.minutes&&(s+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(s+=rs(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===s&&(s+="T0S"),s}toISOTime(s={}){if(!this.isValid)return null;const i=this.toMillis();return i<0||i>=864e5?null:(s={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...s,includeOffset:!1},yi.fromMillis(i,{zone:"UTC"}).toISOTime(s))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Xa(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(s){if(!this.isValid)return this;const i=ur.fromDurationLike(s),c={};for(const h of Is)(vo(i.values,h)||vo(this.values,h))&&(c[h]=i.get(h)+this.get(h));return po(this,{values:c},!0)}minus(s){if(!this.isValid)return this;const i=ur.fromDurationLike(s);return this.plus(i.negate())}mapUnits(s){if(!this.isValid)return this;const i={};for(const c of Object.keys(this.values))i[c]=va(s(this.values[c],c));return po(this,{values:i},!0)}get(s){return this[ur.normalizeUnit(s)]}set(s){return this.isValid?po(this,{values:{...this.values,...gs(s,ur.normalizeUnit)}}):this}reconfigure({locale:s,numberingSystem:i,conversionAccuracy:c,matrix:h}={}){return po(this,{loc:this.loc.clone({locale:s,numberingSystem:i}),matrix:h,conversionAccuracy:c})}as(s){return this.isValid?this.shiftTo(s).get(s):NaN}normalize(){if(!this.isValid)return this;const s=this.toObject();return ys(this.matrix,s),po(this,{values:s},!0)}rescale(){return this.isValid?po(this,{values:function Rc(a){const s={};for(const[i,c]of Object.entries(a))0!==c&&(s[i]=c);return s}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...s){if(!this.isValid)return this;if(0===s.length)return this;s=s.map(I=>ur.normalizeUnit(I));const i={},c={},h=this.toObject();let C;for(const I of Is)if(s.indexOf(I)>=0){C=I;let H=0;for(const Fe in c)H+=this.matrix[Fe][I]*c[Fe],c[Fe]=0;Lr(h[I])&&(H+=h[I]);const re=Math.trunc(H);i[I]=re,c[I]=(1e3*H-1e3*re)/1e3}else Lr(h[I])&&(c[I]=h[I]);for(const I in c)0!==c[I]&&(i[C]+=I===C?c[I]:c[I]/this.matrix[C][I]);return ys(this.matrix,i),po(this,{values:i},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const s={};for(const i of Object.keys(this.values))s[i]=0===this.values[i]?0:-this.values[i];return po(this,{values:s},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(s){if(!this.isValid||!s.isValid||!this.loc.equals(s.loc))return!1;function i(c,h){return void 0===c||0===c?void 0===h||0===h:c===h}for(const c of Is)if(!i(this.values[c],s.values[c]))return!1;return!0}}const bs="Invalid Interval";class Wr{constructor(s){this.s=s.start,this.e=s.end,this.invalid=s.invalid||null,this.isLuxonInterval=!0}static invalid(s,i=null){if(!s)throw new Pe("need to specify a reason the Interval is invalid");const c=s instanceof $e?s:new $e(s,i);if(se.throwOnInvalid)throw new Ae(c);return new Wr({invalid:c})}static fromDateTimes(s,i){const c=eo(s),h=eo(i),C=function ca(a,s){return a&&a.isValid?s&&s.isValid?ss}isBefore(s){return!!this.isValid&&this.e<=s}contains(s){return!!this.isValid&&this.s<=s&&this.e>s}set({start:s,end:i}={}){return this.isValid?Wr.fromDateTimes(s||this.s,i||this.e):this}splitAt(...s){if(!this.isValid)return[];const i=s.map(eo).filter(I=>this.contains(I)).sort((I,H)=>I.toMillis()-H.toMillis()),c=[];let{s:h}=this,C=0;for(;h+this.e?this.e:I;c.push(Wr.fromDateTimes(h,H)),h=H,C+=1}return c}splitBy(s){const i=ur.fromDurationLike(s);if(!this.isValid||!i.isValid||0===i.as("milliseconds"))return[];let C,{s:c}=this,h=1;const I=[];for(;cre*h));C=+H>+this.e?this.e:H,I.push(Wr.fromDateTimes(c,C)),c=C,h+=1}return I}divideEqually(s){return this.isValid?this.splitBy(this.length()/s).slice(0,s):[]}overlaps(s){return this.e>s.s&&this.s=s.e}equals(s){return!(!this.isValid||!s.isValid)&&this.s.equals(s.s)&&this.e.equals(s.e)}intersection(s){if(!this.isValid)return this;const i=this.s>s.s?this.s:s.s,c=this.e=c?null:Wr.fromDateTimes(i,c)}union(s){return this.isValid?Wr.fromDateTimes(this.ss.e?this.e:s.e):this}static merge(s){const[i,c]=s.sort((h,C)=>h.s-C.s).reduce(([h,C],I)=>C?C.overlaps(I)||C.abutsStart(I)?[h,C.union(I)]:[h.concat([C]),I]:[h,I],[[],null]);return c&&i.push(c),i}static xor(s){let i=null,c=0;const h=[],C=s.map(re=>[{time:re.s,type:"s"},{time:re.e,type:"e"}]),H=Array.prototype.concat(...C).sort((re,Fe)=>re.time-Fe.time);for(const re of H)c+="s"===re.type?1:-1,1===c?i=re.time:(i&&+i!=+re.time&&h.push(Wr.fromDateTimes(i,re.time)),i=null);return Wr.merge(h)}difference(...s){return Wr.xor([this].concat(s)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:bs}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(s=ie,i={}){return this.isValid?br.create(this.s.loc.clone(i),s).formatInterval(this):bs}toISO(s){return this.isValid?`${this.s.toISO(s)}/${this.e.toISO(s)}`:bs}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:bs}toISOTime(s){return this.isValid?`${this.s.toISOTime(s)}/${this.e.toISOTime(s)}`:bs}toFormat(s,{separator:i=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(s)}${i}${this.e.toFormat(s)}`:bs}toDuration(s,i){return this.isValid?this.e.diff(this.s,s,i):ur.invalid(this.invalidReason)}mapEndpoints(s){return Wr.fromDateTimes(s(this.s),s(this.e))}}class Gr{static hasDST(s=se.defaultZone){const i=yi.now().setZone(s).set({month:12});return!s.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(s){return Jt.isValidZone(s)}static normalizeZone(s){return Or(s,se.defaultZone)}static getStartOfWeek({locale:s=null,locObj:i=null}={}){return(i||Ri.create(s)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:s=null,locObj:i=null}={}){return(i||Ri.create(s)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:s=null,locObj:i=null}={}){return(i||Ri.create(s)).getWeekendDays().slice()}static months(s="long",{locale:i=null,numberingSystem:c=null,locObj:h=null,outputCalendar:C="gregory"}={}){return(h||Ri.create(i,c,C)).months(s)}static monthsFormat(s="long",{locale:i=null,numberingSystem:c=null,locObj:h=null,outputCalendar:C="gregory"}={}){return(h||Ri.create(i,c,C)).months(s,!0)}static weekdays(s="long",{locale:i=null,numberingSystem:c=null,locObj:h=null}={}){return(h||Ri.create(i,c,null)).weekdays(s)}static weekdaysFormat(s="long",{locale:i=null,numberingSystem:c=null,locObj:h=null}={}){return(h||Ri.create(i,c,null)).weekdays(s,!0)}static meridiems({locale:s=null}={}){return Ri.create(s).meridiems()}static eras(s="short",{locale:i=null}={}){return Ri.create(i,null,"gregory").eras(s)}static features(){return{relative:ns(),localeWeek:oo()}}}function fl(a,s){const i=h=>h.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),c=i(s)-i(a);return Math.floor(ur.fromMillis(c).as("days"))}function ir(a,s=i=>i){return{regex:a,deser:([i])=>s(function yn(a){let s=parseInt(a,10);if(isNaN(s)){s="";for(let i=0;i=C&&c<=I&&(s+=c-C)}}return parseInt(s,10)}return s}(i))}}const jl="[ \xa0]",S=new RegExp(jl,"g");function ne(a){return a.replace(/\./g,"\\.?").replace(S,jl)}function f(a){return a.replace(/\./g,"").replace(S," ").toLowerCase()}function _(a,s){return null===a?null:{regex:RegExp(a.map(ne).join("|")),deser:([i])=>a.findIndex(c=>f(i)===f(c))+s}}function x(a,s){return{regex:a,deser:([,i,c])=>Uo(i,c),groups:s}}function K(a){return{regex:a,deser:([s])=>s}}function de(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const _t={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 xt=null;function Rn(a,s){return Array.prototype.concat(...a.map(i=>function cn(a,s){if(a.literal)return a;const c=Yn(br.macroTokenToFormatOpts(a.val),s);return null==c||c.includes(void 0)?a:c}(i,s)))}class pn{constructor(s,i){if(this.locale=s,this.format=i,this.tokens=Rn(br.parseFormat(i),s),this.units=this.tokens.map(c=>function ze(a,s){const i=zn(s),c=zn(s,"{2}"),h=zn(s,"{3}"),C=zn(s,"{4}"),I=zn(s,"{6}"),H=zn(s,"{1,2}"),re=zn(s,"{1,3}"),Fe=zn(s,"{1,6}"),Pt=zn(s,"{1,9}"),Gt=zn(s,"{2,4}"),Hn=zn(s,"{4,6}"),bn=Fi=>({regex:RegExp(de(Fi.val)),deser:([Vi])=>Vi,literal:!0}),fi=(Fi=>{if(a.literal)return bn(Fi);switch(Fi.val){case"G":return _(s.eras("short"),0);case"GG":return _(s.eras("long"),0);case"y":return ir(Fe);case"yy":case"kk":return ir(Gt,Hr);case"yyyy":case"kkkk":return ir(C);case"yyyyy":return ir(Hn);case"yyyyyy":return ir(I);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return ir(H);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return ir(c);case"MMM":return _(s.months("short",!0),1);case"MMMM":return _(s.months("long",!0),1);case"LLL":return _(s.months("short",!1),1);case"LLLL":return _(s.months("long",!1),1);case"o":case"S":return ir(re);case"ooo":case"SSS":return ir(h);case"u":return K(Pt);case"uu":return K(H);case"uuu":case"E":case"c":return ir(i);case"a":return _(s.meridiems(),0);case"EEE":return _(s.weekdays("short",!1),1);case"EEEE":return _(s.weekdays("long",!1),1);case"ccc":return _(s.weekdays("short",!0),1);case"cccc":return _(s.weekdays("long",!0),1);case"Z":case"ZZ":return x(new RegExp(`([+-]${H.source})(?::(${c.source}))?`),2);case"ZZZ":return x(new RegExp(`([+-]${H.source})(${c.source})?`),2);case"z":return K(/[a-z_+-/]{1,256}?/i);case" ":return K(/[^\S\n\r]/);default:return bn(Fi)}})(a)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return fi.token=a,fi}(c,s)),this.disqualifyingUnit=this.units.find(c=>c.invalidReason),!this.disqualifyingUnit){const[c,h]=function kt(a){return[`^${a.map(i=>i.regex).reduce((i,c)=>`${i}(${c.source})`,"")}$`,a]}(this.units);this.regex=RegExp(c,"i"),this.handlers=h}}explainFromTokens(s){if(this.isValid){const[i,c]=function Yt(a,s,i){const c=a.match(s);if(c){const h={};let C=1;for(const I in i)if(vo(i,I)){const H=i[I],re=H.groups?H.groups+1:1;!H.literal&&H.token&&(h[H.token.val[0]]=H.deser(c.slice(C,C+re))),C+=re}return[c,h]}return[c,{}]}(s,this.regex,this.handlers),[h,C,I]=c?function vn(a){let c,i=null;return Ci(a.z)||(i=Jt.create(a.z)),Ci(a.Z)||(i||(i=new wi(a.Z)),c=a.Z),Ci(a.q)||(a.M=3*(a.q-1)+1),Ci(a.h)||(a.h<12&&1===a.a?a.h+=12:12===a.h&&0===a.a&&(a.h=0)),0===a.G&&a.y&&(a.y=-a.y),Ci(a.u)||(a.S=Ii(a.u)),[Object.keys(a).reduce((C,I)=>{const H=(C=>{switch(C){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(I);return H&&(C[H]=a[I]),C},{}),i,c]}(c):[null,null,void 0];if(vo(c,"a")&&vo(c,"H"))throw new Ie("Can't include meridiem when specifying 24-hour format");return{input:s,tokens:this.tokens,regex:this.regex,rawMatches:i,matches:c,result:h,zone:C,specificOffset:I}}return{input:s,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Tn(a,s,i){return new pn(a,i).explainFromTokens(s)}function Yn(a,s){if(!a)return null;const c=br.create(s,a).dtFormatter(function Ht(){return xt||(xt=yi.fromMillis(1555555555555)),xt}()),h=c.formatToParts(),C=c.resolvedOptions();return h.map(I=>function wt(a,s,i){const{type:c,value:h}=a;if("literal"===c){const re=/^\s+$/.test(h);return{literal:!re,val:re?" ":h}}let I=c;"hour"===c&&(I=null!=s.hour12?s.hour12?"hour12":"hour24":null!=s.hourCycle?"h11"===s.hourCycle||"h12"===s.hourCycle?"hour12":"hour24":i.hour12?"hour12":"hour24");let H=_t[I];if("object"==typeof H&&(H=H[s[c]]),H)return{literal:!1,val:H}}(I,a,C))}const Sn="Invalid DateTime",ui=864e13;function di(a){return new $e("unsupported zone",`the zone "${a.name}" is not supported`)}function On(a){return null===a.weekData&&(a.weekData=jn(a.c)),a.weekData}function Si(a){return null===a.localWeekData&&(a.localWeekData=jn(a.c,a.loc.getMinDaysInFirstWeek(),a.loc.getStartOfWeek())),a.localWeekData}function Ai(a,s){const i={ts:a.ts,zone:a.zone,c:a.c,o:a.o,loc:a.loc,invalid:a.invalid};return new yi({...i,...s,old:i})}function qi(a,s,i){let c=a-60*s*1e3;const h=i.offset(c);if(s===h)return[c,s];c-=60*(h-s)*1e3;const C=i.offset(c);return h===C?[c,h]:[a-60*Math.min(h,C)*1e3,Math.max(h,C)]}function Pi(a,s){const i=new Date(a+=60*s*1e3);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function er(a,s,i){return qi(Vs(a),s,i)}function lo(a,s){const i=a.o,c=a.c.year+Math.trunc(s.years),h=a.c.month+Math.trunc(s.months)+3*Math.trunc(s.quarters),C={...a.c,year:c,month:h,day:Math.min(a.c.day,Ir(c,h))+Math.trunc(s.days)+7*Math.trunc(s.weeks)},I=ur.fromObject({years:s.years-Math.trunc(s.years),quarters:s.quarters-Math.trunc(s.quarters),months:s.months-Math.trunc(s.months),weeks:s.weeks-Math.trunc(s.weeks),days:s.days-Math.trunc(s.days),hours:s.hours,minutes:s.minutes,seconds:s.seconds,milliseconds:s.milliseconds}).as("milliseconds"),H=Vs(C);let[re,Fe]=qi(H,i,a.zone);return 0!==I&&(re+=I,Fe=a.zone.offset(re)),{ts:re,o:Fe}}function Er(a,s,i,c,h,C){const{setZone:I,zone:H}=i;if(a&&0!==Object.keys(a).length||s){const re=s||H,Fe=yi.fromObject(a,{...i,zone:re,specificOffset:C});return I?Fe:Fe.setZone(H)}return yi.invalid(new $e("unparsable",`the input "${h}" can't be parsed as ${c}`))}function sr(a,s,i=!0){return a.isValid?br.create(Ri.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(a,s):null}function Zn(a,s){const i=a.c.year>9999||a.c.year<0;let c="";return i&&a.c.year>=0&&(c+="+"),c+=hr(a.c.year,i?6:4),s?(c+="-",c+=hr(a.c.month),c+="-",c+=hr(a.c.day)):(c+=hr(a.c.month),c+=hr(a.c.day)),c}function gi(a,s,i,c,h,C){let I=hr(a.c.hour);return s?(I+=":",I+=hr(a.c.minute),(0!==a.c.millisecond||0!==a.c.second||!i)&&(I+=":")):I+=hr(a.c.minute),(0!==a.c.millisecond||0!==a.c.second||!i)&&(I+=hr(a.c.second),(0!==a.c.millisecond||!c)&&(I+=".",I+=hr(a.c.millisecond,3))),h&&(a.isOffsetFixed&&0===a.offset&&!C?I+="Z":a.o<0?(I+="-",I+=hr(Math.trunc(-a.o/60)),I+=":",I+=hr(Math.trunc(-a.o%60))):(I+="+",I+=hr(Math.trunc(a.o/60)),I+=":",I+=hr(Math.trunc(a.o%60)))),C&&(I+="["+a.zone.ianaName+"]"),I}const tr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},pr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Jn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Cr=["year","month","day","hour","minute","second","millisecond"],Br=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],$r=["year","ordinal","hour","minute","second","millisecond"];function cs(a){switch(a.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function Ys(a){const s={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[a.toLowerCase()];if(!s)throw new Ot(a);return s}(a)}}function Qs(a,s){const i=Or(s.zone,se.defaultZone);if(!i.isValid)return yi.invalid(di(i));const c=Ri.fromObject(s);let h,C;if(Ci(a.year))h=se.now();else{for(const re of Cr)Ci(a[re])&&(a[re]=tr[re]);const I=uo(a)||Fr(a);if(I)return yi.invalid(I);const H=function kr(a){return Do[a]||(void 0===ws&&(ws=se.now()),Do[a]=a.offset(ws)),Do[a]}(i);[h,C]=er(a,H,i)}return new yi({ts:h,zone:i,loc:c,o:C})}function Ur(a,s,i){const c=!!Ci(i.round)||i.round,h=(I,H)=>(I=rs(I,c||i.calendary?0:2,!0),s.loc.clone(i).relFormatter(i).format(I,H)),C=I=>i.calendary?s.hasSame(a,I)?0:s.startOf(I).diff(a.startOf(I),I).get(I):s.diff(a,I).get(I);if(i.unit)return h(C(i.unit),i.unit);for(const I of i.units){const H=C(I);if(Math.abs(H)>=1)return h(H,I)}return h(a>s?-0:0,i.units[i.units.length-1])}function yo(a){let i,s={};return a.length>0&&"object"==typeof a[a.length-1]?(s=a[a.length-1],i=Array.from(a).slice(0,a.length-1)):i=Array.from(a),[s,i]}let ws,Do={};class yi{constructor(s){const i=s.zone||se.defaultZone;let c=s.invalid||(Number.isNaN(s.ts)?new $e("invalid input"):null)||(i.isValid?null:di(i));this.ts=Ci(s.ts)?se.now():s.ts;let h=null,C=null;if(!c)if(s.old&&s.old.ts===this.ts&&s.old.zone.equals(i))[h,C]=[s.old.c,s.old.o];else{const H=Lr(s.o)&&!s.old?s.o:i.offset(this.ts);h=Pi(this.ts,H),c=Number.isNaN(h.year)?new $e("invalid input"):null,h=c?null:h,C=c?null:H}this._zone=i,this.loc=s.loc||Ri.create(),this.invalid=c,this.weekData=null,this.localWeekData=null,this.c=h,this.o=C,this.isLuxonDateTime=!0}static now(){return new yi({})}static local(){const[s,i]=yo(arguments),[c,h,C,I,H,re,Fe]=i;return Qs({year:c,month:h,day:C,hour:I,minute:H,second:re,millisecond:Fe},s)}static utc(){const[s,i]=yo(arguments),[c,h,C,I,H,re,Fe]=i;return s.zone=wi.utcInstance,Qs({year:c,month:h,day:C,hour:I,minute:H,second:re,millisecond:Fe},s)}static fromJSDate(s,i={}){const c=function Bs(a){return"[object Date]"===Object.prototype.toString.call(a)}(s)?s.valueOf():NaN;if(Number.isNaN(c))return yi.invalid("invalid input");const h=Or(i.zone,se.defaultZone);return h.isValid?new yi({ts:c,zone:h,loc:Ri.fromObject(i)}):yi.invalid(di(h))}static fromMillis(s,i={}){if(Lr(s))return s<-ui||s>ui?yi.invalid("Timestamp out of range"):new yi({ts:s,zone:Or(i.zone,se.defaultZone),loc:Ri.fromObject(i)});throw new Pe(`fromMillis requires a numerical input, but received a ${typeof s} with value ${s}`)}static fromSeconds(s,i={}){if(Lr(s))return new yi({ts:1e3*s,zone:Or(i.zone,se.defaultZone),loc:Ri.fromObject(i)});throw new Pe("fromSeconds requires a numerical input")}static fromObject(s,i={}){s=s||{};const c=Or(i.zone,se.defaultZone);if(!c.isValid)return yi.invalid(di(c));const h=Ri.fromObject(i),C=gs(s,cs),{minDaysInFirstWeek:I,startOfWeek:H}=ei(C,h),re=se.now(),Fe=Ci(i.specificOffset)?c.offset(re):i.specificOffset,Pt=!Ci(C.ordinal),Gt=!Ci(C.year),Hn=!Ci(C.month)||!Ci(C.day),bn=Gt||Hn,Cn=C.weekYear||C.weekNumber;if((bn||Pt)&&Cn)throw new Ie("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Hn&&Pt)throw new Ie("Can't mix ordinal dates with month/day");const fi=Cn||C.weekday&&!bn;let Fi,Vi,$i=Pi(re,Fe);fi?(Fi=Br,Vi=pr,$i=jn($i,I,H)):Pt?(Fi=$r,Vi=Jn,$i=ci($i)):(Fi=Cr,Vi=tr);let ro=!1;for(const wl of Fi)Ci(C[wl])?C[wl]=ro?Vi[wl]:$i[wl]:ro=!0;const go=fi?function Gn(a,s=4,i=1){const c=$o(a.weekYear),h=Sr(a.weekNumber,1,js(a.weekYear,s,i)),C=Sr(a.weekday,1,7);return c?h?!C&&jt("weekday",a.weekday):jt("week",a.weekNumber):jt("weekYear",a.weekYear)}(C,I,H):Pt?function Rr(a){const s=$o(a.year),i=Sr(a.ordinal,1,Tr(a.year));return s?!i&&jt("ordinal",a.ordinal):jt("year",a.year)}(C):uo(C),nc=go||Fr(C);if(nc)return yi.invalid(nc);const sl=fi?$n(C,I,H):Pt?ki(C):C,[ia,Ps]=er(sl,Fe,c),Sa=new yi({ts:ia,zone:c,o:Ps,loc:h});return C.weekday&&bn&&s.weekday!==Sa.weekday?yi.invalid("mismatched weekday",`you can't specify both a weekday of ${C.weekday} and a date of ${Sa.toISO()}`):Sa.isValid?Sa:yi.invalid(Sa.invalid)}static fromISO(s,i={}){const[c,h]=function ao(a){return Ko(a,[qr,As],[Yo,la],[fo,Wa],[Na,Gs])}(s);return Er(c,h,i,"ISO 8601",s)}static fromRFC2822(s,i={}){const[c,h]=function Qo(a){return Ko(function Ra(a){return a.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(a),[Oa,aa])}(s);return Er(c,h,i,"RFC 2822",s)}static fromHTTP(s,i={}){const[c,h]=function Pa(a){return Ko(a,[ho,Wi],[Cl,Wi],[ka,Jr])}(s);return Er(c,h,i,"HTTP",i)}static fromFormat(s,i,c={}){if(Ci(s)||Ci(i))throw new Pe("fromFormat requires an input string and a format");const{locale:h=null,numberingSystem:C=null}=c,I=Ri.fromOpts({locale:h,numberingSystem:C,defaultToEN:!0}),[H,re,Fe,Pt]=function Nn(a,s,i){const{result:c,zone:h,specificOffset:C,invalidReason:I}=Tn(a,s,i);return[c,h,C,I]}(I,s,i);return Pt?yi.invalid(Pt):Er(H,re,c,`format ${i}`,s,Fe)}static fromString(s,i,c={}){return yi.fromFormat(s,i,c)}static fromSQL(s,i={}){const[c,h]=function Zo(a){return Ko(a,[_a,As],[Xs,Ga])}(s);return Er(c,h,i,"SQL",s)}static invalid(s,i=null){if(!s)throw new Pe("need to specify a reason the DateTime is invalid");const c=s instanceof $e?s:new $e(s,i);if(se.throwOnInvalid)throw new _e(c);return new yi({invalid:c})}static isDateTime(s){return s&&s.isLuxonDateTime||!1}static parseFormatForOpts(s,i={}){const c=Yn(s,Ri.fromObject(i));return c?c.map(h=>h?h.val:null).join(""):null}static expandFormat(s,i={}){return Rn(br.parseFormat(s),Ri.fromObject(i)).map(h=>h.val).join("")}static resetCache(){ws=void 0,Do={}}get(s){return this[s]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?On(this).weekYear:NaN}get weekNumber(){return this.isValid?On(this).weekNumber:NaN}get weekday(){return this.isValid?On(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Si(this).weekday:NaN}get localWeekNumber(){return this.isValid?Si(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Si(this).weekYear:NaN}get ordinal(){return this.isValid?ci(this.c).ordinal:NaN}get monthShort(){return this.isValid?Gr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Gr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Gr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Gr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const s=864e5,i=6e4,c=Vs(this.c),h=this.zone.offset(c-s),C=this.zone.offset(c+s),I=this.zone.offset(c-h*i),H=this.zone.offset(c-C*i);if(I===H)return[this];const re=c-I*i,Fe=c-H*i,Pt=Pi(re,I),Gt=Pi(Fe,H);return Pt.hour===Gt.hour&&Pt.minute===Gt.minute&&Pt.second===Gt.second&&Pt.millisecond===Gt.millisecond?[Ai(this,{ts:re}),Ai(this,{ts:Fe})]:[this]}get isInLeapYear(){return Ar(this.year)}get daysInMonth(){return Ir(this.year,this.month)}get daysInYear(){return this.isValid?Tr(this.year):NaN}get weeksInWeekYear(){return this.isValid?js(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?js(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(s={}){const{locale:i,numberingSystem:c,calendar:h}=br.create(this.loc.clone(s),s).resolvedOptions(this);return{locale:i,numberingSystem:c,outputCalendar:h}}toUTC(s=0,i={}){return this.setZone(wi.instance(s),i)}toLocal(){return this.setZone(se.defaultZone)}setZone(s,{keepLocalTime:i=!1,keepCalendarTime:c=!1}={}){if((s=Or(s,se.defaultZone)).equals(this.zone))return this;if(s.isValid){let h=this.ts;if(i||c){const C=s.offset(this.ts),I=this.toObject();[h]=er(I,C,s)}return Ai(this,{ts:h,zone:s})}return yi.invalid(di(s))}reconfigure({locale:s,numberingSystem:i,outputCalendar:c}={}){return Ai(this,{loc:this.loc.clone({locale:s,numberingSystem:i,outputCalendar:c})})}setLocale(s){return this.reconfigure({locale:s})}set(s){if(!this.isValid)return this;const i=gs(s,cs),{minDaysInFirstWeek:c,startOfWeek:h}=ei(i,this.loc),C=!Ci(i.weekYear)||!Ci(i.weekNumber)||!Ci(i.weekday),I=!Ci(i.ordinal),H=!Ci(i.year),re=!Ci(i.month)||!Ci(i.day);if((H||re||I)&&(i.weekYear||i.weekNumber))throw new Ie("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(re&&I)throw new Ie("Can't mix ordinal dates with month/day");let Gt;C?Gt=$n({...jn(this.c,c,h),...i},c,h):Ci(i.ordinal)?(Gt={...this.toObject(),...i},Ci(i.day)&&(Gt.day=Math.min(Ir(Gt.year,Gt.month),Gt.day))):Gt=ki({...ci(this.c),...i});const[Hn,bn]=er(Gt,this.o,this.zone);return Ai(this,{ts:Hn,o:bn})}plus(s){return this.isValid?Ai(this,lo(this,ur.fromDurationLike(s))):this}minus(s){return this.isValid?Ai(this,lo(this,ur.fromDurationLike(s).negate())):this}startOf(s,{useLocaleWeeks:i=!1}={}){if(!this.isValid)return this;const c={},h=ur.normalizeUnit(s);switch(h){case"years":c.month=1;case"quarters":case"months":c.day=1;case"weeks":case"days":c.hour=0;case"hours":c.minute=0;case"minutes":c.second=0;case"seconds":c.millisecond=0}if("weeks"===h)if(i){const C=this.loc.getStartOfWeek(),{weekday:I}=this;Ithis.valueOf(),Fe=function sc(a,s,i,c){let[h,C,I,H]=function ua(a,s,i){const c=[["years",(re,Fe)=>Fe.year-re.year],["quarters",(re,Fe)=>Fe.quarter-re.quarter+4*(Fe.year-re.year)],["months",(re,Fe)=>Fe.month-re.month+12*(Fe.year-re.year)],["weeks",(re,Fe)=>{const Pt=fl(re,Fe);return(Pt-Pt%7)/7}],["days",fl]],h={},C=a;let I,H;for(const[re,Fe]of c)i.indexOf(re)>=0&&(I=re,h[re]=Fe(a,s),H=C.plus(h),H>s?(h[re]--,(a=C.plus(h))>s&&(H=a,h[re]--,a=C.plus(h))):a=H);return[a,h,H,I]}(a,s,i);const re=s-h,Fe=i.filter(Gt=>["hours","minutes","seconds","milliseconds"].indexOf(Gt)>=0);0===Fe.length&&(I0?ur.fromMillis(re,c).shiftTo(...Fe).plus(Pt):Pt}(I?this:s,I?s:this,C,h);return I?Fe.negate():Fe}diffNow(s="milliseconds",i={}){return this.diff(yi.now(),s,i)}until(s){return this.isValid?Wr.fromDateTimes(this,s):this}hasSame(s,i,c){if(!this.isValid)return!1;const h=s.valueOf(),C=this.setZone(s.zone,{keepLocalTime:!0});return C.startOf(i,c)<=h&&h<=C.endOf(i,c)}equals(s){return this.isValid&&s.isValid&&this.valueOf()===s.valueOf()&&this.zone.equals(s.zone)&&this.loc.equals(s.loc)}toRelative(s={}){if(!this.isValid)return null;const i=s.base||yi.fromObject({},{zone:this.zone}),c=s.padding?thisi.valueOf(),Math.min)}static max(...s){if(!s.every(yi.isDateTime))throw new Pe("max requires all arguments be DateTimes");return ga(s,i=>i.valueOf(),Math.max)}static fromFormatExplain(s,i,c={}){const{locale:h=null,numberingSystem:C=null}=c;return Tn(Ri.fromOpts({locale:h,numberingSystem:C,defaultToEN:!0}),s,i)}static fromStringExplain(s,i,c={}){return yi.fromFormatExplain(s,i,c)}static buildFormatParser(s,i={}){const{locale:c=null,numberingSystem:h=null}=i,C=Ri.fromOpts({locale:c,numberingSystem:h,defaultToEN:!0});return new pn(C,s)}static fromFormatParser(s,i,c={}){if(Ci(s)||Ci(i))throw new Pe("fromFormatParser requires an input string and a format parser");const{locale:h=null,numberingSystem:C=null}=c,I=Ri.fromOpts({locale:h,numberingSystem:C,defaultToEN:!0});if(!I.equals(i.locale))throw new Pe(`fromFormatParser called with a locale of ${I}, but the format parser was created for ${i.locale}`);const{result:H,zone:re,specificOffset:Fe,invalidReason:Pt}=i.explainFromTokens(s);return Pt?yi.invalid(Pt):Er(H,re,c,`format ${i.format}`,s,Fe)}static get DATE_SHORT(){return ie}static get DATE_MED(){return ve}static get DATE_MED_WITH_WEEKDAY(){return le}static get DATE_FULL(){return Ce}static get DATE_HUGE(){return dt}static get TIME_SIMPLE(){return un}static get TIME_WITH_SECONDS(){return it}static get TIME_WITH_SHORT_OFFSET(){return It}static get TIME_WITH_LONG_OFFSET(){return Ft}static get TIME_24_SIMPLE(){return Rt}static get TIME_24_WITH_SECONDS(){return kn}static get TIME_24_WITH_SHORT_OFFSET(){return hi}static get TIME_24_WITH_LONG_OFFSET(){return qt}static get DATETIME_SHORT(){return we}static get DATETIME_SHORT_WITH_SECONDS(){return tt}static get DATETIME_MED(){return rt}static get DATETIME_MED_WITH_SECONDS(){return bt}static get DATETIME_MED_WITH_WEEKDAY(){return on}static get DATETIME_FULL(){return Q}static get DATETIME_FULL_WITH_SECONDS(){return T}static get DATETIME_HUGE(){return N}static get DATETIME_HUGE_WITH_SECONDS(){return $}}function eo(a){if(yi.isDateTime(a))return a;if(a&&a.valueOf&&Lr(a.valueOf()))return yi.fromJSDate(a);if(a&&"object"==typeof a)return yi.fromObject(a);throw new Pe(`Unknown datetime argument: ${a}, of type ${typeof a}`)}const Jo=new o.nKC("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function Qa(){return{useUtc:!1,firstDayOfWeek:0,defaultOutputCalendar:"gregory"}}});let ac=(()=>{class a extends Zt.MJ{constructor(i,c){super(),this._useUTC=!!c?.useUtc,this._firstDayOfWeek=c?.firstDayOfWeek||0,this._defaultOutputCalendar=c?.defaultOutputCalendar||"gregory",this.setLocale(i||yi.local().locale)}getYear(i){return i.year}getMonth(i){return i.month-1}getDate(i){return i.day}getDayOfWeek(i){return i.weekday}getMonthNames(i){return Gr.months(i,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){const i=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return function pl(a,s){const i=Array(a);for(let c=0;ci.format(yi.utc(2017,1,c+1).toJSDate()))}getDayOfWeekNames(i){const c=Gr.weekdays(i,{locale:this.locale});return c.unshift(c.pop()),c}getYearName(i){return i.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(i){return i.daysInMonth}clone(i){return yi.fromObject(i.toObject(),this._getOptions())}createDate(i,c,h){const C=this._getOptions();if(c<0||c>11)throw Error(`Invalid month index "${c}". Month index has to be between 0 and 11.`);if(h<1)throw Error(`Invalid date "${h}". Date has to be greater than 0.`);const I=this._useUTC?yi.utc(i,c+1,h,C):yi.local(i,c+1,h,C);if(!this.isValid(I))throw Error(`Invalid date "${h}". Reason: "${I.invalidReason}".`);return I}today(){const i=this._getOptions();return this._useUTC?yi.utc(i):yi.local(i)}parse(i,c){const h=this._getOptions();if("string"==typeof i&&i.length>0){const C=yi.fromISO(i,h);if(this.isValid(C))return C;const I=Array.isArray(c)?c:[c];if(!c.length)throw Error("Formats array must not be empty.");for(const H of I){const re=yi.fromFormat(i,H,h);if(this.isValid(re))return re}return this.invalid()}return"number"==typeof i?yi.fromMillis(i,h):i instanceof Date?yi.fromJSDate(i,h):i instanceof yi?yi.fromMillis(i.toMillis(),h):null}format(i,c){if(!this.isValid(i))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?i.setLocale(this.locale).setZone("utc").toFormat(c):i.setLocale(this.locale).toFormat(c)}addCalendarYears(i,c){return i.reconfigure(this._getOptions()).plus({years:c})}addCalendarMonths(i,c){return i.reconfigure(this._getOptions()).plus({months:c})}addCalendarDays(i,c){return i.reconfigure(this._getOptions()).plus({days:c})}toIso8601(i){return i.toISO()}deserialize(i){const c=this._getOptions();let h;if(i instanceof Date&&(h=yi.fromJSDate(i,c)),"string"==typeof i){if(!i)return null;h=yi.fromISO(i,c)}return h&&this.isValid(h)?h:super.deserialize(i)}isDateInstance(i){return i instanceof yi}isValid(i){return i.isValid}invalid(){return yi.invalid("Invalid Luxon DateTime object.")}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(Zt.Ju,8),o.KVO(Jo,8))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();var mi=v(9969);function E(a){return new o.wOt(3e3,!1)}function Ja(a){switch(a.length){case 0:return new mi.sf;case 1:return a[0];default:return new mi.ui(a)}}function Bh(a,s,i=new Map,c=new Map){const h=[],C=[];let I=-1,H=null;if(s.forEach(re=>{const Fe=re.get("offset"),Pt=Fe==I,Gt=Pt&&H||new Map;re.forEach((Hn,bn)=>{let Cn=bn,fi=Hn;if("offset"!==bn)switch(Cn=a.normalizePropertyName(Cn,h),fi){case mi.FX:fi=i.get(bn);break;case mi.kp:fi=c.get(bn);break;default:fi=a.normalizeStyleValue(bn,Cn,fi,h)}Gt.set(Cn,fi)}),Pt||C.push(Gt),H=Gt,I=Fe}),h.length)throw function gp(){return new o.wOt(3502,!1)}();return C}function Zs(a,s,i,c){switch(s){case"start":a.onStart(()=>c(i&&gu(i,"start",a)));break;case"done":a.onDone(()=>c(i&&gu(i,"done",a)));break;case"destroy":a.onDestroy(()=>c(i&&gu(i,"destroy",a)))}}function gu(a,s,i){const C=vu(a.element,a.triggerName,a.fromState,a.toState,s||a.phaseName,i.totalTime??a.totalTime,!!i.disabled),I=a._data;return null!=I&&(C._data=I),C}function vu(a,s,i,c,h="",C=0,I){return{element:a,triggerName:s,fromState:i,toState:c,phaseName:h,totalTime:C,disabled:!!I}}function Js(a,s,i){let c=a.get(s);return c||a.set(s,c=i),c}function Pc(a){const s=a.indexOf(":");return[a.substring(1,s),a.slice(s+1)]}const bd=typeof document>"u"?null:document.documentElement;function Hl(a){const s=a.parentNode||a.host||null;return s===bd?null:s}let ml=null,qa=!1;function Cd(a,s){for(;s;){if(s===a)return!0;s=Hl(s)}return!1}function yp(a,s,i){if(i)return Array.from(a.querySelectorAll(s));const c=a.querySelector(s);return c?[c]:[]}let Dd=(()=>{class a{validateStyleProperty(i){return function Gi(a){ml||(ml=function Ed(){return typeof document<"u"?document.body:null}()||{},qa=!!ml.style&&"WebkitAppearance"in ml.style);let s=!0;return ml.style&&!function Fc(a){return"ebkit"==a.substring(1,6)}(a)&&(s=a in ml.style,!s&&qa&&(s="Webkit"+a.charAt(0).toUpperCase()+a.slice(1)in ml.style)),s}(i)}containsElement(i,c){return Cd(i,c)}getParentElement(i){return Hl(i)}query(i,c,h){return yp(i,c,h)}computeStyle(i,c,h){return h||""}animate(i,c,h,C,I,H=[],re){return new mi.sf(h,C)}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();class xd{static#e=this.NOOP=new Dd}class _u{}const bp=1e3,Sd="ng-enter",yu="ng-leave",gn="ng-trigger",ar=".ng-trigger",Ad="ng-animating",bu=".ng-animating";function _r(a){if("number"==typeof a)return a;const s=a.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:wu(parseFloat(s[1]),s[2])}function wu(a,s){return"s"===s?a*bp:a}function xl(a,s,i){return a.hasOwnProperty("duration")?a:function Ba(a,s,i){let h,C=0,I="";if("string"==typeof a){const H=a.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===H)return s.push(E()),{duration:0,delay:0,easing:""};h=wu(parseFloat(H[1]),H[2]);const re=H[3];null!=re&&(C=wu(parseFloat(re),H[4]));const Fe=H[5];Fe&&(I=Fe)}else h=a;if(!i){let H=!1,re=s.length;h<0&&(s.push(function O(){return new o.wOt(3100,!1)}()),H=!0),C<0&&(s.push(function D(){return new o.wOt(3101,!1)}()),H=!0),H&&s.splice(re,0,E())}return{duration:h,delay:C,easing:I}}(a,s,i)}function Ua(a,s,i){s.forEach((c,h)=>{const C=Lc(h);i&&!i.has(h)&&i.set(h,a.style[C]),a.style[C]=c})}function uc(a,s){s.forEach((i,c)=>{const h=Lc(c);a.style[h]=""})}function Cu(a){return Array.isArray(a)?1==a.length?a[0]:(0,mi.K2)(a):a}const Id=new RegExp("{{\\s*(.+?)\\s*}}","g");function Md(a){let s=[];if("string"==typeof a){let i;for(;i=Id.exec(a);)s.push(i[1]);Id.lastIndex=0}return s}function Ao(a,s,i){const c=`${a}`,h=c.replace(Id,(C,I)=>{let H=s[I];return null==H&&(i.push(function Y(){return new o.wOt(3003,!1)}()),H=""),H.toString()});return h==c?a:h}const el=/-+([a-z0-9])/g;function Lc(a){return a.replace(el,(...s)=>s[1].toUpperCase())}function qs(a,s,i){switch(s.type){case mi.If.Trigger:return a.visitTrigger(s,i);case mi.If.State:return a.visitState(s,i);case mi.If.Transition:return a.visitTransition(s,i);case mi.If.Sequence:return a.visitSequence(s,i);case mi.If.Group:return a.visitGroup(s,i);case mi.If.Animate:return a.visitAnimate(s,i);case mi.If.Keyframes:return a.visitKeyframes(s,i);case mi.If.Style:return a.visitStyle(s,i);case mi.If.Reference:return a.visitReference(s,i);case mi.If.AnimateChild:return a.visitAnimateChild(s,i);case mi.If.AnimateRef:return a.visitAnimateRef(s,i);case mi.If.Query:return a.visitQuery(s,i);case mi.If.Stagger:return a.visitStagger(s,i);default:throw function Se(){return new o.wOt(3004,!1)}()}}function Du(a,s){return window.getComputedStyle(a)[s]}const Dp=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 dc extends _u{normalizePropertyName(s,i){return Lc(s)}normalizeStyleValue(s,i,c,h){let C="";const I=c.toString().trim();if(Dp.has(i)&&0!==c&&"0"!==c)if("number"==typeof c)C="px";else{const H=c.match(/^[+-]?[\d\.]+([a-z]*)$/);H&&0==H[1].length&&h.push(function ut(){return new o.wOt(3005,!1)}())}return I+C}}const hc="*";const Sl=new Set(["true","1"]),Bc=new Set(["false","0"]);function es(a,s){const i=Sl.has(a)||Bc.has(a),c=Sl.has(s)||Bc.has(s);return(h,C)=>{let I=a==hc||a==h,H=s==hc||s==C;return!I&&i&&"boolean"==typeof h&&(I=h?Sl.has(a):Bc.has(a)),!H&&c&&"boolean"==typeof C&&(H=C?Sl.has(s):Bc.has(s)),I&&H}}const to=new RegExp("s*:selfs*,?","g");function Su(a,s,i,c){return new Wh(a).build(s,i,c)}class Wh{constructor(s){this._driver=s}build(s,i,c){const h=new Gh(i);return this._resetContextStyleTimingState(h),qs(this,Cu(s),h)}_resetContextStyleTimingState(s){s.currentQuerySelector="",s.collectedStyles=new Map,s.collectedStyles.set("",new Map),s.currentTime=0}visitTrigger(s,i){let c=i.queryCount=0,h=i.depCount=0;const C=[],I=[];return"@"==s.name.charAt(0)&&i.errors.push(function sn(){return new o.wOt(3006,!1)}()),s.definitions.forEach(H=>{if(this._resetContextStyleTimingState(i),H.type==mi.If.State){const re=H,Fe=re.name;Fe.toString().split(/\s*,\s*/).forEach(Pt=>{re.name=Pt,C.push(this.visitState(re,i))}),re.name=Fe}else if(H.type==mi.If.Transition){const re=this.visitTransition(H,i);c+=re.queryCount,h+=re.depCount,I.push(re)}else i.errors.push(function Kt(){return new o.wOt(3007,!1)}())}),{type:mi.If.Trigger,name:s.name,states:C,transitions:I,queryCount:c,depCount:h,options:null}}visitState(s,i){const c=this.visitStyle(s.styles,i),h=s.options&&s.options.params||null;if(c.containsDynamicStyles){const C=new Set,I=h||{};c.styles.forEach(H=>{H instanceof Map&&H.forEach(re=>{Md(re).forEach(Fe=>{I.hasOwnProperty(Fe)||C.add(Fe)})})}),C.size&&i.errors.push(function ti(){return new o.wOt(3008,!1)}(0,C.values()))}return{type:mi.If.State,name:s.name,style:c,options:h?{params:h}:null}}visitTransition(s,i){i.queryCount=0,i.depCount=0;const c=qs(this,Cu(s.animation),i),h=function Hh(a,s){const i=[];return"string"==typeof a?a.split(/\s*,\s*/).forEach(c=>function Rd(a,s,i){if(":"==a[0]){const re=function $h(a,s){switch(a){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,c)=>parseFloat(c)>parseFloat(i);case":decrement":return(i,c)=>parseFloat(c) *"}}(a,i);if("function"==typeof re)return void s.push(re);a=re}const c=a.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==c||c.length<4)return i.push(function lc(){return new o.wOt(3015,!1)}()),s;const h=c[1],C=c[2],I=c[3];s.push(es(h,I)),"<"==C[0]&&(h!=hc||I!=hc)&&s.push(es(I,h))}(c,i,s)):i.push(a),i}(s.expr,i.errors);return{type:mi.If.Transition,matchers:h,animation:c,queryCount:i.queryCount,depCount:i.depCount,options:vl(s.options)}}visitSequence(s,i){return{type:mi.If.Sequence,steps:s.steps.map(c=>qs(this,c,i)),options:vl(s.options)}}visitGroup(s,i){const c=i.currentTime;let h=0;const C=s.steps.map(I=>{i.currentTime=c;const H=qs(this,I,i);return h=Math.max(h,i.currentTime),H});return i.currentTime=h,{type:mi.If.Group,steps:C,options:vl(s.options)}}visitAnimate(s,i){const c=function nl(a,s){if(a.hasOwnProperty("duration"))return a;if("number"==typeof a)return fc(xl(a,s).duration,0,"");const i=a;if(i.split(/\s+/).some(C=>"{"==C.charAt(0)&&"{"==C.charAt(1))){const C=fc(0,0,"");return C.dynamic=!0,C.strValue=i,C}const h=xl(i,s);return fc(h.duration,h.delay,h.easing)}(s.timings,i.errors);i.currentAnimateTimings=c;let h,C=s.styles?s.styles:(0,mi.iF)({});if(C.type==mi.If.Keyframes)h=this.visitKeyframes(C,i);else{let I=s.styles,H=!1;if(!I){H=!0;const Fe={};c.easing&&(Fe.easing=c.easing),I=(0,mi.iF)(Fe)}i.currentTime+=c.duration+c.delay;const re=this.visitStyle(I,i);re.isEmptyStep=H,h=re}return i.currentAnimateTimings=null,{type:mi.If.Animate,timings:c,style:h,options:null}}visitStyle(s,i){const c=this._makeStyleAst(s,i);return this._validateStyleAst(c,i),c}_makeStyleAst(s,i){const c=[],h=Array.isArray(s.styles)?s.styles:[s.styles];for(let H of h)"string"==typeof H?H===mi.kp?c.push(H):i.errors.push(new o.wOt(3002,!1)):c.push(new Map(Object.entries(H)));let C=!1,I=null;return c.forEach(H=>{if(H instanceof Map&&(H.has("easing")&&(I=H.get("easing"),H.delete("easing")),!C))for(let re of H.values())if(re.toString().indexOf("{{")>=0){C=!0;break}}),{type:mi.If.Style,styles:c,easing:I,offset:s.offset,containsDynamicStyles:C,options:null}}_validateStyleAst(s,i){const c=i.currentAnimateTimings;let h=i.currentTime,C=i.currentTime;c&&C>0&&(C-=c.duration+c.delay),s.styles.forEach(I=>{"string"!=typeof I&&I.forEach((H,re)=>{const Fe=i.collectedStyles.get(i.currentQuerySelector),Pt=Fe.get(re);let Gt=!0;Pt&&(C!=h&&C>=Pt.startTime&&h<=Pt.endTime&&(i.errors.push(function io(){return new o.wOt(3010,!1)}()),Gt=!1),C=Pt.startTime),Gt&&Fe.set(re,{startTime:C,endTime:h}),i.options&&function Ep(a,s,i){const c=s.params||{},h=Md(a);h.length&&h.forEach(C=>{c.hasOwnProperty(C)||i.push(function R(){return new o.wOt(3001,!1)}())})}(H,i.options,i.errors)})})}visitKeyframes(s,i){const c={type:mi.If.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(function ya(){return new o.wOt(3011,!1)}()),c;let C=0;const I=[];let H=!1,re=!1,Fe=0;const Pt=s.steps.map(Vi=>{const $i=this._makeStyleAst(Vi,i);let ro=null!=$i.offset?$i.offset:function Vc(a){if("string"==typeof a)return null;let s=null;if(Array.isArray(a))a.forEach(i=>{if(i instanceof Map&&i.has("offset")){const c=i;s=parseFloat(c.get("offset")),c.delete("offset")}});else if(a instanceof Map&&a.has("offset")){const i=a;s=parseFloat(i.get("offset")),i.delete("offset")}return s}($i.styles),go=0;return null!=ro&&(C++,go=$i.offset=ro),re=re||go<0||go>1,H=H||go0&&C{const ro=Hn>0?$i==bn?1:Hn*$i:I[$i],go=ro*Fi;i.currentTime=Cn+fi.delay+go,fi.duration=go,this._validateStyleAst(Vi,i),Vi.offset=ro,c.styles.push(Vi)}),c}visitReference(s,i){return{type:mi.If.Reference,animation:qs(this,Cu(s.animation),i),options:vl(s.options)}}visitAnimateChild(s,i){return i.depCount++,{type:mi.If.AnimateChild,options:vl(s.options)}}visitAnimateRef(s,i){return{type:mi.If.AnimateRef,animation:this.visitReference(s.animation,i),options:vl(s.options)}}visitQuery(s,i){const c=i.currentQuerySelector,h=s.options||{};i.queryCount++,i.currentQuery=s;const[C,I]=function Au(a){const s=!!a.split(/\s*,\s*/).find(i=>":self"==i);return s&&(a=a.replace(to,"")),a=a.replace(/@\*/g,ar).replace(/@\w+/g,i=>ar+"-"+i.slice(1)).replace(/:animating/g,bu),[a,s]}(s.selector);i.currentQuerySelector=c.length?c+" "+C:C,Js(i.collectedStyles,i.currentQuerySelector,new Map);const H=qs(this,Cu(s.animation),i);return i.currentQuery=null,i.currentQuerySelector=c,{type:mi.If.Query,selector:C,limit:h.limit||0,optional:!!h.optional,includeSelf:I,animation:H,originalSelector:s.selector,options:vl(s.options)}}visitStagger(s,i){i.currentQuery||i.errors.push(function Dl(){return new o.wOt(3013,!1)}());const c="full"===s.timings?{duration:0,delay:0,easing:"full"}:xl(s.timings,i.errors,!0);return{type:mi.If.Stagger,animation:qs(this,Cu(s.animation),i),timings:c,options:null}}}class Gh{constructor(s){this.errors=s,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function vl(a){return a?(a={...a}).params&&(a.params=function Uc(a){return a?{...a}:null}(a.params)):a={},a}function fc(a,s,i){return{duration:a,delay:s,easing:i}}function jc(a,s,i,c,h,C,I=null,H=!1){return{type:1,element:a,keyframes:s,preStyleProps:i,postStyleProps:c,duration:h,delay:C,totalTime:h+C,easing:I,subTimeline:H}}class Al{constructor(){this._map=new Map}get(s){return this._map.get(s)||[]}append(s,i){let c=this._map.get(s);c||this._map.set(s,c=[]),c.push(...i)}has(s){return this._map.has(s)}clear(){this._map.clear()}}const Kh=new RegExp(":enter","g"),zl=new RegExp(":leave","g");function Wl(a,s,i,c,h,C=new Map,I=new Map,H,re,Fe=[]){return(new Nd).buildKeyframes(a,s,i,c,h,C,I,H,re,Fe)}class Nd{buildKeyframes(s,i,c,h,C,I,H,re,Fe,Pt=[]){Fe=Fe||new Al;const Gt=new Gl(s,i,Fe,h,C,Pt,[]);Gt.options=re;const Hn=re.delay?_r(re.delay):0;Gt.currentTimeline.delayNextStep(Hn),Gt.currentTimeline.setStyles([I],null,Gt.errors,re),qs(this,c,Gt);const bn=Gt.timelines.filter(Cn=>Cn.containsAnimation());if(bn.length&&H.size){let Cn;for(let fi=bn.length-1;fi>=0;fi--){const Fi=bn[fi];if(Fi.element===i){Cn=Fi;break}}Cn&&!Cn.allowOnlyTimelineStyles()&&Cn.setStyles([H],null,Gt.errors,re)}return bn.length?bn.map(Cn=>Cn.buildKeyframes()):[jc(i,[],[],[],0,Hn,"",!1)]}visitTrigger(s,i){}visitState(s,i){}visitTransition(s,i){}visitAnimateChild(s,i){const c=i.subInstructions.get(i.element);if(c){const h=i.createSubContext(s.options),C=i.currentTimeline.currentTime,I=this._visitSubInstructions(c,h,h.options);C!=I&&i.transformIntoNewTimeline(I)}i.previousNode=s}visitAnimateRef(s,i){const c=i.createSubContext(s.options);c.transformIntoNewTimeline(),this._applyAnimationRefDelays([s.options,s.animation.options],i,c),this.visitReference(s.animation,c),i.transformIntoNewTimeline(c.currentTimeline.currentTime),i.previousNode=s}_applyAnimationRefDelays(s,i,c){for(const h of s){const C=h?.delay;if(C){const I="number"==typeof C?C:_r(Ao(C,h?.params??{},i.errors));c.delayNextStep(I)}}}_visitSubInstructions(s,i,c){let C=i.currentTimeline.currentTime;const I=null!=c.duration?_r(c.duration):null,H=null!=c.delay?_r(c.delay):null;return 0!==I&&s.forEach(re=>{const Fe=i.appendInstructionToTimeline(re,I,H);C=Math.max(C,Fe.duration+Fe.delay)}),C}visitReference(s,i){i.updateOptions(s.options,!0),qs(this,s.animation,i),i.previousNode=s}visitSequence(s,i){const c=i.subContextCount;let h=i;const C=s.options;if(C&&(C.params||C.delay)&&(h=i.createSubContext(C),h.transformIntoNewTimeline(),null!=C.delay)){h.previousNode.type==mi.If.Style&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=pc);const I=_r(C.delay);h.delayNextStep(I)}s.steps.length&&(s.steps.forEach(I=>qs(this,I,h)),h.currentTimeline.applyStylesToKeyframe(),h.subContextCount>c&&h.transformIntoNewTimeline()),i.previousNode=s}visitGroup(s,i){const c=[];let h=i.currentTimeline.currentTime;const C=s.options&&s.options.delay?_r(s.options.delay):0;s.steps.forEach(I=>{const H=i.createSubContext(s.options);C&&H.delayNextStep(C),qs(this,I,H),h=Math.max(h,H.currentTimeline.currentTime),c.push(H.currentTimeline)}),c.forEach(I=>i.currentTimeline.mergeTimelineCollectedStyles(I)),i.transformIntoNewTimeline(h),i.previousNode=s}_visitTiming(s,i){if(s.dynamic){const c=s.strValue;return xl(i.params?Ao(c,i.params,i.errors):c,i.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}}visitAnimate(s,i){const c=i.currentAnimateTimings=this._visitTiming(s.timings,i),h=i.currentTimeline;c.delay&&(i.incrementTime(c.delay),h.snapshotCurrentStyles());const C=s.style;C.type==mi.If.Keyframes?this.visitKeyframes(C,i):(i.incrementTime(c.duration),this.visitStyle(C,i),h.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=s}visitStyle(s,i){const c=i.currentTimeline,h=i.currentAnimateTimings;!h&&c.hasCurrentStyleProperties()&&c.forwardFrame();const C=h&&h.easing||s.easing;s.isEmptyStep?c.applyEmptyStep(C):c.setStyles(s.styles,C,i.errors,i.options),i.previousNode=s}visitKeyframes(s,i){const c=i.currentAnimateTimings,h=i.currentTimeline.duration,C=c.duration,H=i.createSubContext().currentTimeline;H.easing=c.easing,s.styles.forEach(re=>{H.forwardTime((re.offset||0)*C),H.setStyles(re.styles,re.easing,i.errors,i.options),H.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(H),i.transformIntoNewTimeline(h+C),i.previousNode=s}visitQuery(s,i){const c=i.currentTimeline.currentTime,h=s.options||{},C=h.delay?_r(h.delay):0;C&&(i.previousNode.type===mi.If.Style||0==c&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=pc);let I=c;const H=i.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!h.optional,i.errors);i.currentQueryTotal=H.length;let re=null;H.forEach((Fe,Pt)=>{i.currentQueryIndex=Pt;const Gt=i.createSubContext(s.options,Fe);C&&Gt.delayNextStep(C),Fe===i.element&&(re=Gt.currentTimeline),qs(this,s.animation,Gt),Gt.currentTimeline.applyStylesToKeyframe(),I=Math.max(I,Gt.currentTimeline.currentTime)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(I),re&&(i.currentTimeline.mergeTimelineCollectedStyles(re),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=s}visitStagger(s,i){const c=i.parentContext,h=i.currentTimeline,C=s.timings,I=Math.abs(C.duration),H=I*(i.currentQueryTotal-1);let re=I*i.currentQueryIndex;switch(C.duration<0?"reverse":C.easing){case"reverse":re=H-re;break;case"full":re=c.currentStaggerTime}const Pt=i.currentTimeline;re&&Pt.delayNextStep(re);const Gt=Pt.currentTime;qs(this,s.animation,i),i.previousNode=s,c.currentStaggerTime=h.currentTime-Gt+(h.startTime-c.currentTimeline.startTime)}}const pc={};class Gl{constructor(s,i,c,h,C,I,H,re){this._driver=s,this.element=i,this.subInstructions=c,this._enterClassName=h,this._leaveClassName=C,this.errors=I,this.timelines=H,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=re||new Mu(this._driver,i,0),H.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(s,i){if(!s)return;const c=s;let h=this.options;null!=c.duration&&(h.duration=_r(c.duration)),null!=c.delay&&(h.delay=_r(c.delay));const C=c.params;if(C){let I=h.params;I||(I=this.options.params={}),Object.keys(C).forEach(H=>{(!i||!I.hasOwnProperty(H))&&(I[H]=Ao(C[H],I,this.errors))})}}_copyOptions(){const s={};if(this.options){const i=this.options.params;if(i){const c=s.params={};Object.keys(i).forEach(h=>{c[h]=i[h]})}}return s}createSubContext(s=null,i,c){const h=i||this.element,C=new Gl(this._driver,h,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(h,c||0));return C.previousNode=this.previousNode,C.currentAnimateTimings=this.currentAnimateTimings,C.options=this._copyOptions(),C.updateOptions(s),C.currentQueryIndex=this.currentQueryIndex,C.currentQueryTotal=this.currentQueryTotal,C.parentContext=this,this.subContextCount++,C}transformIntoNewTimeline(s){return this.previousNode=pc,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(s,i,c){const h={duration:i??s.duration,delay:this.currentTimeline.currentTime+(c??0)+s.delay,easing:""},C=new Ap(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,h,s.stretchStartingKeyframe);return this.timelines.push(C),h}incrementTime(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)}delayNextStep(s){s>0&&this.currentTimeline.delayNextStep(s)}invokeQuery(s,i,c,h,C,I){let H=[];if(h&&H.push(this.element),s.length>0){s=(s=s.replace(Kh,"."+this._enterClassName)).replace(zl,"."+this._leaveClassName);let Fe=this._driver.query(this.element,s,1!=c);0!==c&&(Fe=c<0?Fe.slice(Fe.length+c,Fe.length):Fe.slice(0,c)),H.push(...Fe)}return!C&&0==H.length&&I.push(function vd(){return new o.wOt(3014,!1)}()),H}}class Mu{constructor(s,i,c,h){this._driver=s,this.element=i,this.startTime=c,this._elementTimelineStylesLookup=h,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(s){const i=1===this._keyframes.size&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+s),i&&this.snapshotCurrentStyles()):this.startTime+=s}fork(s,i){return this.applyStylesToKeyframe(),new Mu(this._driver,s,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()}_updateStyle(s,i){this._localTimelineStyles.set(s,i),this._globalTimelineStyles.set(s,i),this._styleSummary.set(s,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(s){s&&this._previousKeyframe.set("easing",s);for(let[i,c]of this._globalTimelineStyles)this._backFill.set(i,c||mi.kp),this._currentKeyframe.set(i,mi.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(s,i,c,h){i&&this._previousKeyframe.set("easing",i);const C=h&&h.params||{},I=function Tp(a,s){const i=new Map;let c;return a.forEach(h=>{if("*"===h){c??=s.keys();for(let C of c)i.set(C,mi.kp)}else for(let[C,I]of h)i.set(C,I)}),i}(s,this._globalTimelineStyles);for(let[H,re]of I){const Fe=Ao(re,C,c);this._pendingStyles.set(H,Fe),this._localTimelineStyles.has(H)||this._backFill.set(H,this._globalTimelineStyles.get(H)??mi.kp),this._updateStyle(H,Fe)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((s,i)=>{this._currentKeyframe.set(i,s)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((s,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,s)}))}snapshotCurrentStyles(){for(let[s,i]of this._localTimelineStyles)this._pendingStyles.set(s,i),this._updateStyle(s,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const s=[];for(let i in this._currentKeyframe)s.push(i);return s}mergeTimelineCollectedStyles(s){s._styleSummary.forEach((i,c)=>{const h=this._styleSummary.get(c);(!h||i.time>h.time)&&this._updateStyle(c,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const s=new Set,i=new Set,c=1===this._keyframes.size&&0===this.duration;let h=[];this._keyframes.forEach((H,re)=>{const Fe=new Map([...this._backFill,...H]);Fe.forEach((Pt,Gt)=>{Pt===mi.FX?s.add(Gt):Pt===mi.kp&&i.add(Gt)}),c||Fe.set("offset",re/this.duration),h.push(Fe)});const C=[...s.values()],I=[...i.values()];if(c){const H=h[0],re=new Map(H);H.set("offset",0),re.set("offset",1),h=[H,re]}return jc(this.element,h,C,I,this.duration,this.startTime,this.easing,!1)}}class Ap extends Mu{constructor(s,i,c,h,C,I,H=!1){super(s,i,I.delay),this.keyframes=c,this.preStyleProps=h,this.postStyleProps=C,this._stretchStartingKeyframe=H,this.timings={duration:I.duration,delay:I.delay,easing:I.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let s=this.keyframes,{delay:i,duration:c,easing:h}=this.timings;if(this._stretchStartingKeyframe&&i){const C=[],I=c+i,H=i/I,re=new Map(s[0]);re.set("offset",0),C.push(re);const Fe=new Map(s[0]);Fe.set("offset",Ou(H)),C.push(Fe);const Pt=s.length-1;for(let Gt=1;Gt<=Pt;Gt++){let Hn=new Map(s[Gt]);const bn=Hn.get("offset");Hn.set("offset",Ou((i+bn*c)/I)),C.push(Hn)}c=I,i=0,h="",s=C}return jc(this.element,s,this.preStyleProps,this.postStyleProps,c,i,h,!0)}}function Ou(a,s=3){const i=Math.pow(10,s-1);return Math.round(a*i)/i}function Pd(a,s,i,c,h,C,I,H,re,Fe,Pt,Gt,Hn){return{type:0,element:a,triggerName:s,isRemovalTransition:h,fromState:i,fromStyles:C,toState:c,toStyles:I,timelines:H,queriedElements:re,preStyleProps:Fe,postStyleProps:Pt,totalTime:Gt,errors:Hn}}const Hc={};class il{constructor(s,i,c){this._triggerName=s,this.ast=i,this._stateStyles=c}match(s,i,c,h){return function $c(a,s,i,c,h){return a.some(C=>C(s,i,c,h))}(this.ast.matchers,s,i,c,h)}buildStyles(s,i,c){let h=this._stateStyles.get("*");return void 0!==s&&(h=this._stateStyles.get(s?.toString())||h),h?h.buildStyles(i,c):new Map}build(s,i,c,h,C,I,H,re,Fe,Pt){const Gt=[],Hn=this.ast.options&&this.ast.options.params||Hc,Cn=this.buildStyles(c,H&&H.params||Hc,Gt),fi=re&&re.params||Hc,Fi=this.buildStyles(h,fi,Gt),Vi=new Set,$i=new Map,ro=new Map,go="void"===h,nc={params:Yh(fi,Hn),delay:this.ast.options?.delay},sl=Pt?[]:Wl(s,i,this.ast.animation,C,I,Cn,Fi,nc,Fe,Gt);let ia=0;return sl.forEach(Ps=>{ia=Math.max(Ps.duration+Ps.delay,ia)}),Gt.length?Pd(i,this._triggerName,c,h,go,Cn,Fi,[],[],$i,ro,ia,Gt):(sl.forEach(Ps=>{const Sa=Ps.element,wl=Js($i,Sa,new Set);Ps.preStyleProps.forEach(fd=>wl.add(fd));const eg=Js(ro,Sa,new Set);Ps.postStyleProps.forEach(fd=>eg.add(fd)),Sa!==i&&Vi.add(Sa)}),Pd(i,this._triggerName,c,h,go,Cn,Fi,sl,[...Vi.values()],$i,ro,ia))}}function Yh(a,s){const i={...s};return Object.entries(a).forEach(([c,h])=>{null!=h&&(i[c]=h)}),i}class mc{constructor(s,i,c){this.styles=s,this.defaultParams=i,this.normalizer=c}buildStyles(s,i){const c=new Map,h=Yh(s,this.defaultParams);return this.styles.styles.forEach(C=>{"string"!=typeof C&&C.forEach((I,H)=>{I&&(I=Ao(I,h,i));const re=this.normalizer.normalizePropertyName(H,i);I=this.normalizer.normalizeStyleValue(H,re,I,i),c.set(H,I)})}),c}}class Fd{constructor(s,i,c){this.name=s,this.ast=i,this._normalizer=c,this.transitionFactories=[],this.states=new Map,i.states.forEach(h=>{this.states.set(h.name,new mc(h.style,h.options&&h.options.params||{},c))}),Mp(this.states,"true","1"),Mp(this.states,"false","0"),i.transitions.forEach(h=>{this.transitionFactories.push(new il(s,h,this.states))}),this.fallbackTransition=function gc(a,s){return new il(a,{type:mi.If.Transition,animation:{type:mi.If.Sequence,steps:[],options:null},matchers:[(I,H)=>!0],options:null,queryCount:0,depCount:0},s)}(s,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(s,i,c,h){return this.transitionFactories.find(I=>I.match(s,i,c,h))||null}matchStyles(s,i,c){return this.fallbackTransition.buildStyles(s,i,c)}}function Mp(a,s,i){a.has(s)?a.has(i)||a.set(i,a.get(s)):a.has(i)&&a.set(s,a.get(i))}const Ld=new Al;class Qh{constructor(s,i,c){this.bodyNode=s,this._driver=i,this._normalizer=c,this._animations=new Map,this._playersById=new Map,this.players=[]}register(s,i){const c=[],C=Su(this._driver,i,c,[]);if(c.length)throw function Za(){return new o.wOt(3503,!1)}();this._animations.set(s,C)}_buildPlayer(s,i,c){const h=s.element,C=Bh(this._normalizer,s.keyframes,i,c);return this._driver.animate(h,C,s.duration,s.delay,s.easing,[],!0)}create(s,i,c={}){const h=[],C=this._animations.get(s);let I;const H=new Map;if(C?(I=Wl(this._driver,i,C,Sd,yu,new Map,new Map,c,Ld,h),I.forEach(Pt=>{const Gt=Js(H,Pt.element,new Map);Pt.postStyleProps.forEach(Hn=>Gt.set(Hn,null))})):(h.push(function Fh(){return new o.wOt(3300,!1)}()),I=[]),h.length)throw function Lh(){return new o.wOt(3504,!1)}();H.forEach((Pt,Gt)=>{Pt.forEach((Hn,bn)=>{Pt.set(bn,this._driver.computeStyle(Gt,bn,mi.kp))})});const Fe=Ja(I.map(Pt=>{const Gt=H.get(Pt.element);return this._buildPlayer(Pt,new Map,Gt)}));return this._playersById.set(s,Fe),Fe.onDestroy(()=>this.destroy(s)),this.players.push(Fe),Fe}destroy(s){const i=this._getPlayer(s);i.destroy(),this._playersById.delete(s);const c=this.players.indexOf(i);c>=0&&this.players.splice(c,1)}_getPlayer(s){const i=this._playersById.get(s);if(!i)throw function Mr(){return new o.wOt(3301,!1)}();return i}listen(s,i,c,h){const C=vu(i,"","","");return Zs(this._getPlayer(s),c,C,h),()=>{}}command(s,i,c,h){if("register"==c)return void this.register(s,h[0]);if("create"==c)return void this.create(s,i,h[0]||{});const C=this._getPlayer(s);switch(c){case"play":C.play();break;case"pause":C.pause();break;case"reset":C.reset();break;case"restart":C.restart();break;case"finish":C.finish();break;case"init":C.init();break;case"setPosition":C.setPosition(parseFloat(h[0]));break;case"destroy":this.destroy(s)}}}const Zh="ng-animate-queued",Ru="ng-animate-disabled",Nu=[],Pu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Op={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},wa="__ng_removed";class Fu{get params(){return this.options.params}constructor(s,i=""){this.namespaceId=i;const c=s&&s.hasOwnProperty("value");if(this.value=function Jh(a){return a??null}(c?s.value:s),c){const{value:C,...I}=s;this.options=I}else this.options={};this.options.params||(this.options.params={})}absorbOptions(s){const i=s.params;if(i){const c=this.options.params;Object.keys(i).forEach(h=>{null==c[h]&&(c[h]=i[h])})}}}const vc="void",_c=new Fu(vc);class Rp{constructor(s,i,c){this.id=s,this.hostElement=i,this._engine=c,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,Rs(i,this._hostClassName)}listen(s,i,c,h){if(!this._triggers.has(i))throw function yd(){return new o.wOt(3302,!1)}();if(null==c||0==c.length)throw function kc(){return new o.wOt(3303,!1)}();if(!function yc(a){return"start"==a||"done"==a}(c))throw function Os(){return new o.wOt(3400,!1)}();const C=Js(this._elementListeners,s,[]),I={name:i,phase:c,callback:h};C.push(I);const H=Js(this._engine.statesByElement,s,new Map);return H.has(i)||(Rs(s,gn),Rs(s,gn+"-"+i),H.set(i,_c)),()=>{this._engine.afterFlush(()=>{const re=C.indexOf(I);re>=0&&C.splice(re,1),this._triggers.has(i)||H.delete(i)})}}register(s,i){return!this._triggers.has(s)&&(this._triggers.set(s,i),!0)}_getTrigger(s){const i=this._triggers.get(s);if(!i)throw function vp(){return new o.wOt(3401,!1)}();return i}trigger(s,i,c,h=!0){const C=this._getTrigger(i),I=new _l(this.id,i,s);let H=this._engine.statesByElement.get(s);H||(Rs(s,gn),Rs(s,gn+"-"+i),this._engine.statesByElement.set(s,H=new Map));let re=H.get(i);const Fe=new Fu(c,this.id);if(!(c&&c.hasOwnProperty("value"))&&re&&Fe.absorbOptions(re.options),H.set(i,Fe),re||(re=_c),Fe.value!==vc&&re.value===Fe.value){if(!function Pp(a,s){const i=Object.keys(a),c=Object.keys(s);if(i.length!=c.length)return!1;for(let h=0;h{uc(s,Fi),Ua(s,Vi)})}return}const Hn=Js(this._engine.playersByElement,s,[]);Hn.forEach(fi=>{fi.namespaceId==this.id&&fi.triggerName==i&&fi.queued&&fi.destroy()});let bn=C.matchTransition(re.value,Fe.value,s,Fe.params),Cn=!1;if(!bn){if(!h)return;bn=C.fallbackTransition,Cn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:i,transition:bn,fromState:re,toState:Fe,player:I,isFallbackTransition:Cn}),Cn||(Rs(s,Zh),I.onStart(()=>{Tl(s,Zh)})),I.onDone(()=>{let fi=this.players.indexOf(I);fi>=0&&this.players.splice(fi,1);const Fi=this._engine.playersByElement.get(s);if(Fi){let Vi=Fi.indexOf(I);Vi>=0&&Fi.splice(Vi,1)}}),this.players.push(I),Hn.push(I),I}deregister(s){this._triggers.delete(s),this._engine.statesByElement.forEach(i=>i.delete(s)),this._elementListeners.forEach((i,c)=>{this._elementListeners.set(c,i.filter(h=>h.name!=s))})}clearElementCache(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);const i=this._engine.playersByElement.get(s);i&&(i.forEach(c=>c.destroy()),this._engine.playersByElement.delete(s))}_signalRemovalForInnerTriggers(s,i){const c=this._engine.driver.query(s,ar,!0);c.forEach(h=>{if(h[wa])return;const C=this._engine.fetchNamespacesByElement(h);C.size?C.forEach(I=>I.triggerLeaveAnimation(h,i,!1,!0)):this.clearElementCache(h)}),this._engine.afterFlushAnimationsDone(()=>c.forEach(h=>this.clearElementCache(h)))}triggerLeaveAnimation(s,i,c,h){const C=this._engine.statesByElement.get(s),I=new Map;if(C){const H=[];if(C.forEach((re,Fe)=>{if(I.set(Fe,re.value),this._triggers.has(Fe)){const Pt=this.trigger(s,Fe,vc,h);Pt&&H.push(Pt)}}),H.length)return this._engine.markElementAsRemoved(this.id,s,!0,i,I),c&&Ja(H).onDone(()=>this._engine.processLeaveNode(s)),!0}return!1}prepareLeaveAnimationListeners(s){const i=this._elementListeners.get(s),c=this._engine.statesByElement.get(s);if(i&&c){const h=new Set;i.forEach(C=>{const I=C.name;if(h.has(I))return;h.add(I);const re=this._triggers.get(I).fallbackTransition,Fe=c.get(I)||_c,Pt=new Fu(vc),Gt=new _l(this.id,I,s);this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:I,transition:re,fromState:Fe,toState:Pt,player:Gt,isFallbackTransition:!0})})}}removeNode(s,i){const c=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,i),this.triggerLeaveAnimation(s,i,!0))return;let h=!1;if(c.totalAnimations){const C=c.players.length?c.playersByQueriedElement.get(s):[];if(C&&C.length)h=!0;else{let I=s;for(;I=I.parentNode;)if(c.statesByElement.get(I)){h=!0;break}}}if(this.prepareLeaveAnimationListeners(s),h)c.markElementAsRemoved(this.id,s,!1,i);else{const C=s[wa];(!C||C===Pu)&&(c.afterFlush(()=>this.clearElementCache(s)),c.destroyInnerAnimations(s),c._onRemovalComplete(s,i))}}insertNode(s,i){Rs(s,this._hostClassName)}drainQueuedTransitions(s){const i=[];return this._queue.forEach(c=>{const h=c.player;if(h.destroyed)return;const C=c.element,I=this._elementListeners.get(C);I&&I.forEach(H=>{if(H.name==c.triggerName){const re=vu(C,c.triggerName,c.fromState.value,c.toState.value);re._data=s,Zs(c.player,H.phase,re,H.callback)}}),h.markedForDestroy?this._engine.afterFlush(()=>{h.destroy()}):i.push(c)}),this._queue=[],i.sort((c,h)=>{const C=c.transition.ast.depCount,I=h.transition.ast.depCount;return 0==C||0==I?C-I:this._engine.driver.containsElement(c.element,h.element)?1:-1})}destroy(s){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,s)}}class Lu{_onRemovalComplete(s,i){this.onRemovalComplete(s,i)}constructor(s,i,c){this.bodyNode=s,this.driver=i,this._normalizer=c,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(h,C)=>{}}get queuedPlayers(){const s=[];return this._namespaceList.forEach(i=>{i.players.forEach(c=>{c.queued&&s.push(c)})}),s}createNamespace(s,i){const c=new Rp(s,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(c,i):(this.newHostElements.set(i,c),this.collectEnterElement(i)),this._namespaceLookup[s]=c}_balanceNamespaceList(s,i){const c=this._namespaceList,h=this.namespacesByHostElement;if(c.length-1>=0){let I=!1,H=this.driver.getParentElement(i);for(;H;){const re=h.get(H);if(re){const Fe=c.indexOf(re);c.splice(Fe+1,0,s),I=!0;break}H=this.driver.getParentElement(H)}I||c.unshift(s)}else c.push(s);return h.set(i,s),s}register(s,i){let c=this._namespaceLookup[s];return c||(c=this.createNamespace(s,i)),c}registerTrigger(s,i,c){let h=this._namespaceLookup[s];h&&h.register(i,c)&&this.totalAnimations++}destroy(s,i){s&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const c=this._fetchNamespace(s);this.namespacesByHostElement.delete(c.hostElement);const h=this._namespaceList.indexOf(c);h>=0&&this._namespaceList.splice(h,1),c.destroy(i),delete this._namespaceLookup[s]}))}_fetchNamespace(s){return this._namespaceLookup[s]}fetchNamespacesByElement(s){const i=new Set,c=this.statesByElement.get(s);if(c)for(let h of c.values())if(h.namespaceId){const C=this._fetchNamespace(h.namespaceId);C&&i.add(C)}return i}trigger(s,i,c,h){if(Wc(i)){const C=this._fetchNamespace(s);if(C)return C.trigger(i,c,h),!0}return!1}insertNode(s,i,c,h){if(!Wc(i))return;const C=i[wa];if(C&&C.setForRemoval){C.setForRemoval=!1,C.setForMove=!0;const I=this.collectedLeaveElements.indexOf(i);I>=0&&this.collectedLeaveElements.splice(I,1)}if(s){const I=this._fetchNamespace(s);I&&I.insertNode(i,c)}h&&this.collectEnterElement(i)}collectEnterElement(s){this.collectedEnterElements.push(s)}markElementAsDisabled(s,i){i?this.disabledNodes.has(s)||(this.disabledNodes.add(s),Rs(s,Ru)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),Tl(s,Ru))}removeNode(s,i,c){if(Wc(i)){const h=s?this._fetchNamespace(s):null;h?h.removeNode(i,c):this.markElementAsRemoved(s,i,!1,c);const C=this.namespacesByHostElement.get(i);C&&C.id!==s&&C.removeNode(i,c)}else this._onRemovalComplete(i,c)}markElementAsRemoved(s,i,c,h,C){this.collectedLeaveElements.push(i),i[wa]={namespaceId:s,setForRemoval:h,hasAnimation:c,removedBeforeQueried:!1,previousTriggersValues:C}}listen(s,i,c,h,C){return Wc(i)?this._fetchNamespace(s).listen(i,c,h,C):()=>{}}_buildInstruction(s,i,c,h,C){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,c,h,s.fromState.options,s.toState.options,i,C)}destroyInnerAnimations(s){let i=this.driver.query(s,ar,!0);i.forEach(c=>this.destroyActiveAnimationsForElement(c)),0!=this.playersByQueriedElement.size&&(i=this.driver.query(s,bu,!0),i.forEach(c=>this.finishActiveQueriedAnimationOnElement(c)))}destroyActiveAnimationsForElement(s){const i=this.playersByElement.get(s);i&&i.forEach(c=>{c.queued?c.markedForDestroy=!0:c.destroy()})}finishActiveQueriedAnimationOnElement(s){const i=this.playersByQueriedElement.get(s);i&&i.forEach(c=>c.finish())}whenRenderingDone(){return new Promise(s=>{if(this.players.length)return Ja(this.players).onDone(()=>s());s()})}processLeaveNode(s){const i=s[wa];if(i&&i.setForRemoval){if(s[wa]=Pu,i.namespaceId){this.destroyInnerAnimations(s);const c=this._fetchNamespace(i.namespaceId);c&&c.clearElementCache(s)}this._onRemovalComplete(s,i.setForRemoval)}s.classList?.contains(Ru)&&this.markElementAsDisabled(s,!1),this.driver.query(s,".ng-animate-disabled",!0).forEach(c=>{this.markElementAsDisabled(c,!1)})}flush(s=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((c,h)=>this._balanceNamespaceList(c,h)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let c=0;cc()),this._flushFns=[],this._whenQuietFns.length){const c=this._whenQuietFns;this._whenQuietFns=[],i.length?Ja(i).onDone(()=>{c.forEach(h=>h())}):c.forEach(h=>h())}}reportError(s){throw function Nc(){return new o.wOt(3402,!1)}()}_flushAnimations(s,i){const c=new Al,h=[],C=new Map,I=[],H=new Map,re=new Map,Fe=new Map,Pt=new Set;this.disabledNodes.forEach(Bi=>{Pt.add(Bi);const Ki=this.driver.query(Bi,".ng-animate-queued",!0);for(let nr=0;nr{const nr=Sd+fi++;Cn.set(Ki,nr),Bi.forEach(jr=>Rs(jr,nr))});const Fi=[],Vi=new Set,$i=new Set;for(let Bi=0;BiVi.add(jr)):$i.add(Ki))}const ro=new Map,go=Ud(Hn,Array.from(Vi));go.forEach((Bi,Ki)=>{const nr=yu+fi++;ro.set(Ki,nr),Bi.forEach(jr=>Rs(jr,nr))}),s.push(()=>{bn.forEach((Bi,Ki)=>{const nr=Cn.get(Ki);Bi.forEach(jr=>Tl(jr,nr))}),go.forEach((Bi,Ki)=>{const nr=ro.get(Ki);Bi.forEach(jr=>Tl(jr,nr))}),Fi.forEach(Bi=>{this.processLeaveNode(Bi)})});const nc=[],sl=[];for(let Bi=this._namespaceList.length-1;Bi>=0;Bi--)this._namespaceList[Bi].drainQueuedTransitions(i).forEach(nr=>{const jr=nr.player,Oo=nr.element;if(nc.push(jr),this.collectedEnterElements.length){const ra=Oo[wa];if(ra&&ra.setForMove){if(ra.previousTriggersValues&&ra.previousTriggersValues.has(nr.triggerName)){const hu=ra.previousTriggersValues.get(nr.triggerName),al=this.statesByElement.get(nr.element);if(al&&al.has(nr.triggerName)){const fu=al.get(nr.triggerName);fu.value=hu,al.set(nr.triggerName,fu)}}return void jr.destroy()}}const Aa=!Gt||!this.driver.containsElement(Gt,Oo),$a=ro.get(Oo),du=Cn.get(Oo),To=this._buildInstruction(nr,c,du,$a,Aa);if(To.errors&&To.errors.length)return void sl.push(To);if(Aa)return jr.onStart(()=>uc(Oo,To.fromStyles)),jr.onDestroy(()=>Ua(Oo,To.toStyles)),void h.push(jr);if(nr.isFallbackTransition)return jr.onStart(()=>uc(Oo,To.fromStyles)),jr.onDestroy(()=>Ua(Oo,To.toStyles)),void h.push(jr);const q_=[];To.timelines.forEach(ra=>{ra.stretchStartingKeyframe=!0,this.disabledNodes.has(ra.element)||q_.push(ra)}),To.timelines=q_,c.append(Oo,To.timelines),I.push({instruction:To,player:jr,element:Oo}),To.queriedElements.forEach(ra=>Js(H,ra,[]).push(jr)),To.preStyleProps.forEach((ra,hu)=>{if(ra.size){let al=re.get(hu);al||re.set(hu,al=new Set),ra.forEach((fu,Gf)=>al.add(Gf))}}),To.postStyleProps.forEach((ra,hu)=>{let al=Fe.get(hu);al||Fe.set(hu,al=new Set),ra.forEach((fu,Gf)=>al.add(Gf))})});if(sl.length){const Bi=[];sl.forEach(Ki=>{Bi.push(function fa(){return new o.wOt(3505,!1)}())}),nc.forEach(Ki=>Ki.destroy()),this.reportError(Bi)}const ia=new Map,Ps=new Map;I.forEach(Bi=>{const Ki=Bi.element;c.has(Ki)&&(Ps.set(Ki,Ki),this._beforeAnimationBuild(Bi.player.namespaceId,Bi.instruction,ia))}),h.forEach(Bi=>{const Ki=Bi.element;this._getPreviousPlayers(Ki,!1,Bi.namespaceId,Bi.triggerName,null).forEach(jr=>{Js(ia,Ki,[]).push(jr),jr.destroy()})});const Sa=Fi.filter(Bi=>Vd(Bi,re,Fe)),wl=new Map;Po(wl,this.driver,$i,Fe,mi.kp).forEach(Bi=>{Vd(Bi,re,Fe)&&Sa.push(Bi)});const fd=new Map;bn.forEach((Bi,Ki)=>{Po(fd,this.driver,new Set(Bi),re,mi.FX)}),Sa.forEach(Bi=>{const Ki=wl.get(Bi),nr=fd.get(Bi);wl.set(Bi,new Map([...Ki?.entries()??[],...nr?.entries()??[]]))});const J_=[],Ew=[],Cw={};I.forEach(Bi=>{const{element:Ki,player:nr,instruction:jr}=Bi;if(c.has(Ki)){if(Pt.has(Ki))return nr.onDestroy(()=>Ua(Ki,jr.toStyles)),nr.disabled=!0,nr.overrideTotalTime(jr.totalTime),void h.push(nr);let Oo=Cw;if(Ps.size>1){let $a=Ki;const du=[];for(;$a=$a.parentNode;){const To=Ps.get($a);if(To){Oo=To;break}du.push($a)}du.forEach(To=>Ps.set(To,Oo))}const Aa=this._buildAnimation(nr.namespaceId,jr,ia,C,fd,wl);if(nr.setRealPlayer(Aa),Oo===Cw)J_.push(nr);else{const $a=this.playersByElement.get(Oo);$a&&$a.length&&(nr.parentPlayer=Ja($a)),h.push(nr)}}else uc(Ki,jr.fromStyles),nr.onDestroy(()=>Ua(Ki,jr.toStyles)),Ew.push(nr),Pt.has(Ki)&&h.push(nr)}),Ew.forEach(Bi=>{const Ki=C.get(Bi.element);if(Ki&&Ki.length){const nr=Ja(Ki);Bi.setRealPlayer(nr)}}),h.forEach(Bi=>{Bi.parentPlayer?Bi.syncPlayerEvents(Bi.parentPlayer):Bi.destroy()});for(let Bi=0;Bi!Aa.destroyed);Oo.length?Np(this,Ki,Oo):this.processLeaveNode(Ki)}return Fi.length=0,J_.forEach(Bi=>{this.players.push(Bi),Bi.onDone(()=>{Bi.destroy();const Ki=this.players.indexOf(Bi);this.players.splice(Ki,1)}),Bi.play()}),J_}afterFlush(s){this._flushFns.push(s)}afterFlushAnimationsDone(s){this._whenQuietFns.push(s)}_getPreviousPlayers(s,i,c,h,C){let I=[];if(i){const H=this.playersByQueriedElement.get(s);H&&(I=H)}else{const H=this.playersByElement.get(s);if(H){const re=!C||C==vc;H.forEach(Fe=>{Fe.queued||!re&&Fe.triggerName!=h||I.push(Fe)})}}return(c||h)&&(I=I.filter(H=>!(c&&c!=H.namespaceId||h&&h!=H.triggerName))),I}_beforeAnimationBuild(s,i,c){const C=i.element,I=i.isRemovalTransition?void 0:s,H=i.isRemovalTransition?void 0:i.triggerName;for(const re of i.timelines){const Fe=re.element,Pt=Fe!==C,Gt=Js(c,Fe,[]);this._getPreviousPlayers(Fe,Pt,I,H,i.toState).forEach(bn=>{const Cn=bn.getRealPlayer();Cn.beforeDestroy&&Cn.beforeDestroy(),bn.destroy(),Gt.push(bn)})}uc(C,i.fromStyles)}_buildAnimation(s,i,c,h,C,I){const H=i.triggerName,re=i.element,Fe=[],Pt=new Set,Gt=new Set,Hn=i.timelines.map(Cn=>{const fi=Cn.element;Pt.add(fi);const Fi=fi[wa];if(Fi&&Fi.removedBeforeQueried)return new mi.sf(Cn.duration,Cn.delay);const Vi=fi!==re,$i=function qh(a){const s=[];return Xl(a,s),s}((c.get(fi)||Nu).map(ia=>ia.getRealPlayer())).filter(ia=>!!ia.element&&ia.element===fi),ro=C.get(fi),go=I.get(fi),nc=Bh(this._normalizer,Cn.keyframes,ro,go),sl=this._buildPlayer(Cn,nc,$i);if(Cn.subTimeline&&h&&Gt.add(fi),Vi){const ia=new _l(s,H,fi);ia.setRealPlayer(sl),Fe.push(ia)}return sl});Fe.forEach(Cn=>{Js(this.playersByQueriedElement,Cn.element,[]).push(Cn),Cn.onDone(()=>function kp(a,s,i){let c=a.get(s);if(c){if(c.length){const h=c.indexOf(i);c.splice(h,1)}0==c.length&&a.delete(s)}return c}(this.playersByQueriedElement,Cn.element,Cn))}),Pt.forEach(Cn=>Rs(Cn,Ad));const bn=Ja(Hn);return bn.onDestroy(()=>{Pt.forEach(Cn=>Tl(Cn,Ad)),Ua(re,i.toStyles)}),Gt.forEach(Cn=>{Js(h,Cn,[]).push(bn)}),bn}_buildPlayer(s,i,c){return i.length>0?this.driver.animate(s.element,i,s.duration,s.delay,s.easing,c):new mi.sf(s.duration,s.delay)}}class _l{constructor(s,i,c){this.namespaceId=s,this.triggerName=i,this.element=c,this._player=new mi.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(s){this._containsRealPlayer||(this._player=s,this._queuedCallbacks.forEach((i,c)=>{i.forEach(h=>Zs(s,c,void 0,h))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(s){this.totalTime=s}syncPlayerEvents(s){const i=this._player;i.triggerCallback&&s.onStart(()=>i.triggerCallback("start")),s.onDone(()=>this.finish()),s.onDestroy(()=>this.destroy())}_queueEvent(s,i){Js(this._queuedCallbacks,s,[]).push(i)}onDone(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)}onStart(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)}onDestroy(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(s){this.queued||this._player.setPosition(s)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(s){const i=this._player;i.triggerCallback&&i.triggerCallback(s)}}function Wc(a){return a&&1===a.nodeType}function Kl(a,s){const i=a.style.display;return a.style.display=s??"none",i}function Po(a,s,i,c,h){const C=[];i.forEach(re=>C.push(Kl(re)));const I=[];c.forEach((re,Fe)=>{const Pt=new Map;re.forEach(Gt=>{const Hn=s.computeStyle(Fe,Gt,h);Pt.set(Gt,Hn),(!Hn||0==Hn.length)&&(Fe[wa]=Op,I.push(Fe))}),a.set(Fe,Pt)});let H=0;return i.forEach(re=>Kl(re,C[H++])),I}function Ud(a,s){const i=new Map;if(a.forEach(H=>i.set(H,[])),0==s.length)return i;const h=new Set(s),C=new Map;function I(H){if(!H)return 1;let re=C.get(H);if(re)return re;const Fe=H.parentNode;return re=i.has(Fe)?Fe:h.has(Fe)?1:I(Fe),C.set(H,re),re}return s.forEach(H=>{const re=I(H);1!==re&&i.get(re).push(H)}),i}function Rs(a,s){a.classList?.add(s)}function Tl(a,s){a.classList?.remove(s)}function Np(a,s,i){Ja(i).onDone(()=>a.processLeaveNode(s))}function Xl(a,s){for(let i=0;ih.add(C)):s.set(a,c),i.delete(a),!0}class yl{constructor(s,i,c){this._driver=i,this._normalizer=c,this._triggerCache={},this.onRemovalComplete=(h,C)=>{},this._transitionEngine=new Lu(s.body,i,c),this._timelineEngine=new Qh(s.body,i,c),this._transitionEngine.onRemovalComplete=(h,C)=>this.onRemovalComplete(h,C)}registerTrigger(s,i,c,h,C){const I=s+"-"+h;let H=this._triggerCache[I];if(!H){const re=[],Pt=Su(this._driver,C,re,[]);if(re.length)throw function _d(){return new o.wOt(3404,!1)}();H=function Ip(a,s,i){return new Fd(a,s,i)}(h,Pt,this._normalizer),this._triggerCache[I]=H}this._transitionEngine.registerTrigger(i,h,H)}register(s,i){this._transitionEngine.register(s,i)}destroy(s,i){this._transitionEngine.destroy(s,i)}onInsert(s,i,c,h){this._transitionEngine.insertNode(s,i,c,h)}onRemove(s,i,c){this._transitionEngine.removeNode(s,i,c)}disableAnimations(s,i){this._transitionEngine.markElementAsDisabled(s,i)}process(s,i,c,h){if("@"==c.charAt(0)){const[C,I]=Pc(c);this._timelineEngine.command(C,i,I,h)}else this._transitionEngine.trigger(s,i,c,h)}listen(s,i,c,h,C){if("@"==c.charAt(0)){const[I,H]=Pc(c);return this._timelineEngine.listen(I,i,H,C)}return this._transitionEngine.listen(s,i,c,h,C)}flush(s=-1){this._transitionEngine.flush(s)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(s){this._transitionEngine.afterFlushAnimationsDone(s)}}class Yl{static#e=this.initialStylesByElement=new WeakMap;constructor(s,i,c){this._element=s,this._startStyles=i,this._endStyles=c,this._state=0;let h=Yl.initialStylesByElement.get(s);h||Yl.initialStylesByElement.set(s,h=new Map),this._initialStyles=h}start(){this._state<1&&(this._startStyles&&Ua(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ua(this._element,this._initialStyles),this._endStyles&&(Ua(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Yl.initialStylesByElement.delete(this._element),this._startStyles&&(uc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(uc(this._element,this._endStyles),this._endStyles=null),Ua(this._element,this._initialStyles),this._state=3)}}function Uu(a){let s=null;return a.forEach((i,c)=>{(function ef(a){return"display"===a||"position"===a})(c)&&(s=s||new Map,s.set(c,i))}),s}class jd{constructor(s,i,c,h){this.element=s,this.keyframes=i,this.options=c,this._specialStyles=h,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=c.duration,this._delay=c.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const s=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,s,this.options),this._finalKeyframe=s.length?s[s.length-1]:new Map;const i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(s){const i=[];return s.forEach(c=>{i.push(Object.fromEntries(c))}),i}_triggerWebAnimation(s,i,c){return s.animate(this._convertKeyframesToObject(i),c)}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(s=>s()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}setPosition(s){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=s*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const s=new Map;this.hasStarted()&&this._finalKeyframe.forEach((c,h)=>{"offset"!==h&&s.set(h,this._finished?c:Du(this.element,h))}),this.currentSnapshot=s}triggerCallback(s){const i="start"===s?this._onStartFns:this._onDoneFns;i.forEach(c=>c()),i.length=0}}class Gc{validateStyleProperty(s){return!0}validateAnimatableStyleProperty(s){return!0}containsElement(s,i){return Cd(s,i)}getParentElement(s){return Hl(s)}query(s,i,c){return yp(s,i,c)}computeStyle(s,i,c){return Du(s,i)}animate(s,i,c,h,C,I=[]){const re={duration:c,delay:h,fill:0==h?"both":"forwards"};C&&(re.easing=C);const Fe=new Map,Pt=I.filter(bn=>bn instanceof jd);(function gl(a,s){return 0===a||0===s})(c,h)&&Pt.forEach(bn=>{bn.currentSnapshot.forEach((Cn,fi)=>Fe.set(fi,Cn))});let Gt=function Td(a){return a.length?a[0]instanceof Map?a:a.map(s=>new Map(Object.entries(s))):[]}(i).map(bn=>new Map(bn));Gt=function Cp(a,s,i){if(i.size&&s.length){let c=s[0],h=[];if(i.forEach((C,I)=>{c.has(I)||h.push(I),c.set(I,C)}),h.length)for(let C=1;CI.set(H,Du(a,H)))}}return s}(s,Gt,Fe);const Hn=function Bu(a,s){let i=null,c=null;return Array.isArray(s)&&s.length?(i=Uu(s[0]),s.length>1&&(c=Uu(s[s.length-1]))):s instanceof Map&&(i=Uu(s)),i||c?new Yl(a,i,c):null}(s,Gt);return new jd(s,Gt,re,Hn)}}const Hd="@.disabled";class Lp{constructor(s,i,c,h){this.namespaceId=s,this.delegate=i,this.engine=c,this._onDestroy=h,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(s){this.delegate.destroyNode?.(s)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(s,i){return this.delegate.createElement(s,i)}createComment(s){return this.delegate.createComment(s)}createText(s){return this.delegate.createText(s)}appendChild(s,i){this.delegate.appendChild(s,i),this.engine.onInsert(this.namespaceId,i,s,!1)}insertBefore(s,i,c,h=!0){this.delegate.insertBefore(s,i,c),this.engine.onInsert(this.namespaceId,i,s,h)}removeChild(s,i,c){this.parentNode(i)&&this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(s,i){return this.delegate.selectRootElement(s,i)}parentNode(s){return this.delegate.parentNode(s)}nextSibling(s){return this.delegate.nextSibling(s)}setAttribute(s,i,c,h){this.delegate.setAttribute(s,i,c,h)}removeAttribute(s,i,c){this.delegate.removeAttribute(s,i,c)}addClass(s,i){this.delegate.addClass(s,i)}removeClass(s,i){this.delegate.removeClass(s,i)}setStyle(s,i,c,h){this.delegate.setStyle(s,i,c,h)}removeStyle(s,i,c){this.delegate.removeStyle(s,i,c)}setProperty(s,i,c){"@"==i.charAt(0)&&i==Hd?this.disableAnimations(s,!!c):this.delegate.setProperty(s,i,c)}setValue(s,i){this.delegate.setValue(s,i)}listen(s,i,c){return this.delegate.listen(s,i,c)}disableAnimations(s,i){this.engine.disableAnimations(s,i)}}class $d extends Lp{constructor(s,i,c,h,C){super(i,c,h,C),this.factory=s,this.namespaceId=i}setProperty(s,i,c){"@"==i.charAt(0)?"."==i.charAt(1)&&i==Hd?this.disableAnimations(s,c=void 0===c||!!c):this.engine.process(this.namespaceId,s,i.slice(1),c):this.delegate.setProperty(s,i,c)}listen(s,i,c){if("@"==i.charAt(0)){const h=function zd(a){switch(a){case"body":return document.body;case"document":return document;case"window":return window;default:return a}}(s);let C=i.slice(1),I="";return"@"!=C.charAt(0)&&([C,I]=function Es(a){const s=a.indexOf(".");return[a.substring(0,s),a.slice(s+1)]}(C)),this.engine.listen(this.namespaceId,h,C,I,H=>{this.factory.scheduleListenerCallback(H._data||-1,c,H)})}return this.delegate.listen(s,i,c)}}class xg{constructor(s,i,c){this.delegate=s,this.engine=i,this._zone=c,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(h,C)=>{C?.removeChild(null,h)}}createRenderer(s,i){const h=this.delegate.createRenderer(s,i);if(!s||!i?.data?.animation){const Fe=this._rendererCache;let Pt=Fe.get(h);return Pt||(Pt=new Lp("",h,this.engine,()=>Fe.delete(h)),Fe.set(h,Pt)),Pt}const C=i.id,I=i.id+"-"+this._currentId;this._currentId++,this.engine.register(I,s);const H=Fe=>{Array.isArray(Fe)?Fe.forEach(H):this.engine.registerTrigger(C,I,s,Fe.name,Fe)};return i.data.animation.forEach(H),new $d(this,I,h,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(s,i,c){if(s>=0&&si(c));const h=this._animationCallbacksBuffer;0==h.length&&queueMicrotask(()=>{this._zone.run(()=>{h.forEach(C=>{const[I,H]=C;I(H)}),this._animationCallbacksBuffer=[]})}),h.push([i,c])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const Up=[{provide:_u,useFactory:function Sg(){return new dc}},{provide:yl,useClass:(()=>{class a extends yl{constructor(i,c,h){super(i,c,h)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(nt.qQ),o.KVO(xd),o.KVO(_u))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})()},{provide:o._9s,useFactory:function ju(a,s,i){return new xg(a,s,i)},deps:[u.B7,yl,o.SKi]}],Kc=[{provide:xd,useFactory:()=>new Gc},{provide:o.bc$,useValue:"BrowserAnimations"},...Up];var nf=v(9030),wc=v(3726),Va=v(8793),zr=v(1413),$u=v(5343);const Ql=new V.c($u.l);var ol=v(7786),Il=v(6648),us=v(6354),mo=v(17),Gd=v(8071),Xc=v(8750),zu=v(9974);const Wu={connector:()=>new zr.B};function Yc(a,s=Wu){const{connector:i}=s;return(0,zu.N)((c,h)=>{const C=i();(0,Xc.Tg)(a(function rf(a){return new V.c(s=>a.subscribe(s))}(C))).subscribe(h),h.add(c.subscribe(C))})}var b=v(8141);const M="Service workers are disabled or not supported by this browser";class q{constructor(s){if(this.serviceWorker=s,s){const c=(0,wc.R)(s,"controllerchange").pipe((0,us.T)(()=>s.controller)),h=(0,nf.v)(()=>(0,B.of)(s.controller)),C=(0,Va.x)(h,c);this.worker=C.pipe((0,At.p)(Pt=>!!Pt)),this.registration=this.worker.pipe((0,ke.n)(()=>s.getRegistration()));const Fe=(0,wc.R)(s,"message").pipe((0,us.T)(Pt=>Pt.data)).pipe((0,At.p)(Pt=>Pt&&Pt.type)).pipe(function g(a){return a?s=>Yc(a)(s):s=>function p(a,s){const i=(0,Gd.T)(a)?a:()=>a;return(0,Gd.T)(s)?Yc(s,{connector:i}):c=>new mo.G(c,i)}(new zr.B)(s)}());Fe.connect(),this.events=Fe}else this.worker=this.events=this.registration=function U(a){return(0,nf.v)(()=>(0,oe.$)(new Error(a)))}(M)}postMessage(s,i){return this.worker.pipe((0,P.s)(1),(0,b.M)(c=>{c.postMessage({action:s,...i})})).toPromise().then(()=>{})}postMessageWithOperation(s,i,c){const h=this.waitForOperationCompleted(c),C=this.postMessage(s,i);return Promise.all([C,h]).then(([,I])=>I)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(s){let i;return i="string"==typeof s?c=>c.type===s:c=>s.includes(c.type),this.events.pipe((0,At.p)(i))}nextEventOfType(s){return this.eventsOfType(s).pipe((0,P.s)(1))}waitForOperationCompleted(s){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,At.p)(i=>i.nonce===s),(0,P.s)(1),(0,us.T)(i=>{if(void 0!==i.result)return i.result;throw new Error(i.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let fe=(()=>{class a{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,this.pushManager=null,this.subscriptionChanges=new zr.B,!i.isEnabled)return this.messages=Ql,this.notificationClicks=Ql,void(this.subscription=Ql);this.messages=this.sw.eventsOfType("PUSH").pipe((0,us.T)(h=>h.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,us.T)(h=>h.data)),this.pushManager=this.sw.registration.pipe((0,us.T)(h=>h.pushManager));const c=this.pushManager.pipe((0,ke.n)(h=>h.getSubscription()));this.subscription=(0,ol.h)(c,this.subscriptionChanges)}requestSubscription(i){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(M));const c={userVisibleOnly:!0};let h=this.decodeBase64(i.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),C=new Uint8Array(new ArrayBuffer(h.length));for(let I=0;II.subscribe(c)),(0,P.s)(1)).toPromise().then(I=>(this.subscriptionChanges.next(I),I))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,P.s)(1),(0,ke.n)(c=>{if(null===c)throw new Error("Not subscribed to push notifications.");return c.unsubscribe().then(h=>{if(!h)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(M))}decodeBase64(i){return atob(i)}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(q))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})(),De=(()=>{class a{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,!i.isEnabled)return this.versionUpdates=Ql,void(this.unrecoverable=Ql);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(M));const i=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:i},i)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(M));const i=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:i},i)}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(q))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();const Ue=new o.nKC("");function ot(a,s,i,c){return()=>{if(!(0,nt.UE)(c)||!("serviceWorker"in navigator)||!1===i.enabled)return;const h=a.get(o.SKi),C=a.get(o.o8S);let I;if(h.runOutsideAngular(()=>{const H=navigator.serviceWorker,re=()=>H.controller?.postMessage({action:"INITIALIZE"});H.addEventListener("controllerchange",re),C.onDestroy(()=>{H.removeEventListener("controllerchange",re)})}),"function"==typeof i.registrationStrategy)I=i.registrationStrategy();else{const[H,...re]=(i.registrationStrategy||"registerWhenStable:30000").split(":");switch(H){case"registerImmediately":I=(0,B.of)(null);break;case"registerWithDelay":I=Mt(+re[0]||0);break;case"registerWhenStable":const Fe=(0,Il.H)(a.get(o.o8S).whenStable());I=re[0]?(0,ol.h)(Fe,Mt(+re[0])):Fe;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${i.registrationStrategy}`)}}h.runOutsideAngular(()=>I.pipe((0,P.s)(1)).subscribe(()=>navigator.serviceWorker.register(s,{scope:i.scope}).catch(H=>console.error("Service worker registration failed with:",H))))}}function Mt(a){return(0,B.of)(null).pipe((0,Re.c)(a))}function Ct(a,s){return new q((0,nt.UE)(s)&&!1!==a.enabled?navigator.serviceWorker:void 0)}class en{}var Nt=v(7468),Ut=v(4360),dn=v(3669),mn=v(1584),Kn=v(9437),xi=v(4668),oi=v(4572),_i=v(983);function bi(a){return a&&a.constructor&&"function"==typeof a.constructor.isBuffer&&a.constructor.isBuffer(a)}function Yi(a){return a}function Hi(a,s){const i=(s=s||{}).delimiter||".",c=s.maxDepth,h=s.transformKey||Yi,C={};return function I(H,re,Fe){Fe=Fe||1,Object.keys(H).forEach(function(Pt){const Gt=H[Pt],Hn=s.safe&&Array.isArray(Gt),bn=Object.prototype.toString.call(Gt),Cn=bi(Gt),fi="[object Object]"===bn||"[object Array]"===bn,Fi=re?re+i+h(Pt):h(Pt);if(!Hn&&!Cn&&fi&&Object.keys(Gt).length&&(!s.maxDepth||Fe0&&(Hn=H(Gt.shift()),bn=H(Gt[0]))}Cn[Hn]=Ui(a[Pt],s)}),C}class vr{translations;constructor(s){this.translations=s}getTranslation(s){return(0,B.of)(this.translations.get(s)||{})}}const mr=new o.nKC("TRANSLOCO_LOADER");function Dr(a,s){return a&&(Object.prototype.hasOwnProperty.call(a,s)?a[s]:s.split(".").reduce((i,c)=>i?.[c],a))}function ni(a){return a?Array.isArray(a)?a.length:dr(a)?Object.keys(a).length:a?a.length:0:0}function qn(a){return"string"==typeof a}function dr(a){return!!a&&"object"==typeof a&&!Array.isArray(a)}function Fo(a){return null==a}function ea(a){return!1===Fo(a)}function Ea(a){return a&&"string"==typeof a.scope}function ja(a){return Hi(a,{safe:!0})}const Ca=new o.nKC("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>Ml}),Ml={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};function sf(a={}){return{...Ml,...a,missingHandler:{...Ml.missingHandler,...a.missingHandler},flatten:{...Ml.flatten,...a.flatten}}}const Xd=new o.nKC("TRANSLOCO_TRANSPILER");let Uy=(()=>{class a{interpolationMatcher;constructor(i){this.interpolationMatcher=function Tg(a){const[s,i]=a.interpolation;return new RegExp(`${s}(.*?)${i}`,"g")}(i??Ml)}transpile(i,c={},h,C){return qn(i)?i.replace(this.interpolationMatcher,(I,H)=>(H=H.trim(),ea(c[H])?c[H]:ea(h[H])?this.transpile(h[H],c,h,C):"")):(c&&(dr(i)?i=this.handleObject(i,c,h,C):Array.isArray(i)&&(i=this.handleArray(i,c,h,C))),i)}handleObject(i,c={},h,C){let I=i;return Object.keys(c).forEach(H=>{const re=Dr(I,H),Fe=Dr(c,H),Pt=this.transpile(re,Fe,h,C);I=function Wn(a,s,i){a={...a};const c=s.split("."),h=c.length-1;return c.reduce((C,I,H)=>(C[I]=H===h?i:Array.isArray(C[I])?C[I].slice():{...C[I]},C&&C[I]),a),a}(I,H,Pt)}),I}handleArray(i,c={},h,C){return i.map(I=>this.transpile(I,c,h,C))}static \u0275fac=function(c){return new(c||a)(o.KVO(Ca,8))};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();const Yd=new o.nKC("TRANSLOCO_MISSING_HANDLER");let Ig=(()=>{class a{handle(i,c){return c.missingHandler.logMissingKey&&!c.prodMode&&console.warn(`%c Missing translation for '${i}'`,"font-size: 12px; color: red"),i}static \u0275fac=function(c){return new(c||a)};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();const jp=new o.nKC("TRANSLOCO_INTERCEPTOR");let Mg=(()=>{class a{preSaveTranslation(i){return i}preSaveTranslationKey(i,c){return c}static \u0275fac=function(c){return new(c||a)};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();const Hp=new o.nKC("TRANSLOCO_FALLBACK_STRATEGY");let af,Hy=(()=>{class a{userConfig;constructor(i){this.userConfig=i}getNextLangs(){const i=this.userConfig.fallbackLang;if(!i)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(i)?i:[i]}static \u0275fac=function(c){return new(c||a)(o.KVO(Ca))};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();function Qd(a){if(!a)return"";const s=a.split("/");return s.pop(),s.join("/")}function Cc(a){return a?a.split("/").pop():""}function Gp(a){return{scope:Qd(a)||null,langName:Cc(a)}}function zy(a){const{path:s,inlineLoader:i,mainLoader:c,data:h}=a;if(i){if(!1===function Oi(a){return"function"==typeof a}(i[s]))throw`You're using an inline loader but didn't provide a loader for ${s}`;return i[s]().then(I=>I.default?I.default:I)}return c.getTranslation(s,h)}let Ol=(()=>{class a{loader;parser;missingHandler;interceptor;fallbackStrategy;langChanges$;subscription=null;translations=new Map;cache=new Map;firstFallbackLang;defaultLang="";availableLangs=[];isResolvedMissingOnce=!1;lang;failedLangs=new Set;events=new zr.B;events$=this.events.asObservable();config;constructor(i,c,h,C,I,H){this.loader=i,this.parser=c,this.missingHandler=h,this.interceptor=C,this.fallbackStrategy=H,this.loader||(this.loader=new vr(this.translations)),af=this,this.config=JSON.parse(JSON.stringify(I)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new gt.t(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.subscription=this.events$.subscribe(re=>{"translationLoadSuccess"===re.type&&re.wasFailure&&this.setActiveLang(re.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(i){this.defaultLang=i}getActiveLang(){return this.lang.getValue()}setActiveLang(i){return this.parser.onLangChanged?.(i),this.lang.next(i),this.events.next({type:"langChanged",payload:Gp(i)}),this}setAvailableLangs(i){this.availableLangs=i}getAvailableLangs(){return this.availableLangs}load(i,c={}){const h=this.cache.get(i);if(h)return h;let C;const I=this._isLangScoped(i);let H;I&&(H=Qd(i));const re={path:i,mainLoader:this.loader,inlineLoader:c.inlineLoader,data:I?{scope:H}:void 0};if(this.useFallbackTranslation(i)){const Pt=I?`${H}/${this.firstFallbackLang}`:this.firstFallbackLang,Gt=function Wy({mainLoader:a,path:s,data:i,fallbackPath:c,inlineLoader:h}){return(c?[s,c]:[s]).map(I=>{const H=zy({path:I,mainLoader:a,inlineLoader:h,data:i});return(0,Il.H)(H).pipe((0,us.T)(re=>({translation:re,lang:I})))})}({...re,fallbackPath:Pt});C=(0,Nt.p)(Gt)}else{const Pt=zy(re);C=(0,Il.H)(Pt)}const Fe=C.pipe(function Un(a=1/0){let s;s=a&&"object"==typeof a?a:{count:a};const{count:i=1/0,delay:c,resetOnSuccess:h=!1}=s;return i<=0?dn.D:(0,zu.N)((C,I)=>{let re,H=0;const Fe=()=>{let Pt=!1;re=C.subscribe((0,Ut._)(I,Gt=>{h&&(H=0),I.next(Gt)},void 0,Gt=>{if(H++{re?(re.unsubscribe(),re=null,Fe()):Pt=!0};if(null!=c){const bn="number"==typeof c?(0,mn.O)(c):(0,Xc.Tg)(c(Gt,H)),Cn=(0,Ut._)(I,()=>{Cn.unsubscribe(),Hn()},()=>{I.complete()});bn.subscribe(Cn)}else Hn()}else I.error(Gt)})),Pt&&(re.unsubscribe(),re=null,Fe())};Fe()})}(this.config.failedRetries),(0,b.M)(Pt=>{Array.isArray(Pt)?Pt.forEach(Gt=>{this.handleSuccess(Gt.lang,Gt.translation),Gt.lang!==i&&this.cache.set(Gt.lang,(0,B.of)({}))}):this.handleSuccess(i,Pt)}),(0,Kn.W)(Pt=>(this.config.prodMode||console.error(`Error while trying to load "${i}"`,Pt),this.handleFailure(i,c))),(0,xi.t)(1));return this.cache.set(i,Fe),Fe}translate(i,c={},h=this.getActiveLang()){if(!i)return i;const{scope:C,resolveLang:I}=this.resolveLangAndScope(h);if(Array.isArray(i))return i.map(Fe=>this.translate(C?`${C}.${Fe}`:Fe,c,I));i=C?`${C}.${i}`:i;const H=this.getTranslation(I),re=H[i];return re?this.parser.transpile(re,c,H,i):this._handleMissingKey(i,re,c)}selectTranslate(i,c,h,C=!1){let I;const H=(Fe,Pt)=>this.load(Fe,Pt).pipe((0,us.T)(()=>C?this.translateObject(i,c,Fe):this.translate(i,c,Fe)));if(Fo(h))return this.langChanges$.pipe((0,ke.n)(Fe=>H(Fe)));if(function Ns(a){return Array.isArray(a)&&a.every(Ea)}(h)||Ea(h)){const Fe=Array.isArray(h)?h[0]:h;h=Fe.scope,I=function Wp(a,s){return function Ec(a){return a&&dr(a.loader)}(a)?function Og(a,s){return Object.keys(a).reduce((i,c)=>(i[`${s}/${c}`]=a[c],i),{})}(a.loader,s):void 0}(Fe,Fe.scope)}if(this.isLang(h)||this.isScopeWithLang(h))return H(h);const re=h;return this.langChanges$.pipe((0,ke.n)(Fe=>H(`${re}/${Fe}`,{inlineLoader:I})))}isScopeWithLang(i){return this.isLang(Cc(i))}translateObject(i,c={},h=this.getActiveLang()){if(qn(i)||Array.isArray(i)){const{resolveLang:I,scope:H}=this.resolveLangAndScope(h);if(Array.isArray(i))return i.map(Pt=>this.translateObject(H?`${H}.${Pt}`:Pt,c,I));const re=this.getTranslation(I),Fe=function Kd(a){return Ui(a)}(this.getObjectByKey(re,i=H?`${H}.${i}`:i));return function Ni(a){return 0===ni(a)}(Fe)?this.translate(i,c,h):this.parser.transpile(Fe,c,re,i)}const C=[];for(const[I,H]of this.getEntries(i))C.push(this.translateObject(I,H,h));return C}selectTranslateObject(i,c,h){if(qn(i)||Array.isArray(i))return this.selectTranslate(i,c,h,!0);const[[C,I],...H]=this.getEntries(i);return this.selectTranslateObject(C,I,h).pipe((0,us.T)(re=>{const Fe=[re];for(const[Pt,Gt]of H)Fe.push(this.translateObject(Pt,Gt,h));return Fe}))}getTranslation(i){if(i){if(this.isLang(i))return this.translations.get(i)||{};{const{scope:c,resolveLang:h}=this.resolveLangAndScope(i),C=this.translations.get(h)||{};return this.getObjectByKey(C,c)}}return this.translations}selectTranslation(i){let c=this.langChanges$;if(i){const h=Cc(i)!==i;c=this.isLang(i)||h?(0,B.of)(i):this.langChanges$.pipe((0,us.T)(C=>`${i}/${C}`))}return c.pipe((0,ke.n)(h=>this.load(h).pipe((0,us.T)(()=>this.getTranslation(h)))))}setTranslation(i,c=this.getActiveLang(),h={}){const I={merge:!0,emitChange:!0,...h},H=Qd(c);let re=i;if(H){const bn=this.getMappedScope(H);re=ja({[bn]:i})}const Fe=H?Cc(c):c,Pt={...I.merge&&this.getTranslation(Fe),...re},Gt=this.config.flatten.aot?Pt:ja(Pt),Hn=this.interceptor.preSaveTranslation(Gt,Fe);this.translations.set(Fe,Hn),I.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(i,c,h=this.getActiveLang(),C={}){const I=this.interceptor.preSaveTranslationKey(i,c,h);this.setTranslation({[i]:I},h,{...C,merge:!0})}setFallbackLangForMissingTranslation({fallbackLang:i}){const c=Array.isArray(i)?i[0]:i;i&&this.useFallbackTranslation(c)&&(this.firstFallbackLang=c)}_handleMissingKey(i,c,h){if(this.config.missingHandler.allowEmpty&&""===c)return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;const C=this.translate(i,h,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,C}return this.missingHandler.handle(i,this.getMissingHandlerData(),h)}_isLangScoped(i){return-1===this.getAvailableLangsIds().indexOf(i)}isLang(i){return-1!==this.getAvailableLangsIds().indexOf(i)}_loadDependencies(i,c){const h=Cc(i);return this._isLangScoped(i)&&!this.isLoadedTranslation(h)?(0,oi.z)([this.load(h),this.load(i,{inlineLoader:c})]):this.load(i,{inlineLoader:c})}_completeScopeWithLang(i){return this._isLangScoped(i)&&!this.isLang(Cc(i))?`${i}/${this.getActiveLang()}`:i}_setScopeAlias(i,c){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[i]=c}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.cache.clear()}isLoadedTranslation(i){return ni(this.getTranslation(i))}getAvailableLangsIds(){return qn(this.getAvailableLangs()[0])?this.getAvailableLangs():this.getAvailableLangs().map(c=>c.id)}getMissingHandlerData(){return{...this.config,activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang}}useFallbackTranslation(i){return this.config.missingHandler.useFallbackTranslation&&i!==this.firstFallbackLang}handleSuccess(i,c){this.setTranslation(c,i,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:Gp(i)}),this.failedLangs.forEach(h=>this.cache.delete(h)),this.failedLangs.clear()}handleFailure(i,c){Fo(c.failedCounter)&&(c.failedCounter=0,c.fallbackLangs||(c.fallbackLangs=this.fallbackStrategy.getNextLangs(i)));const h=i.split("/"),I=c.fallbackLangs[c.failedCounter];if(this.failedLangs.add(i),this.cache.has(I))return this.handleSuccess(I,this.getTranslation(I)),_i.w;if(!I||I===h[h.length-1]){let Fe="Unable to load translation and all the fallback languages";throw h.length>1&&(Fe+=", did you misspelled the scope name?"),new Error(Fe)}let re=I;return h.length>1&&(h[h.length-1]=I,re=h.join("/")),c.failedCounter++,this.events.next({type:"translationLoadFailure",payload:Gp(i)}),this.load(re,c)}getMappedScope(i){const{scopeMapping:c={}}=this.config;return c[i]||function ts(a){return a.replace(/(?:^\w|[A-Z]|\b\w)/g,(s,i)=>0==i?s.toLowerCase():s.toUpperCase()).replace(/\s+|_|-|\//g,"")}(i)}resolveLangAndScope(i){let h,c=i;if(this._isLangScoped(i)){const C=Cc(i),I=this.isLang(C);c=I?C:this.getActiveLang(),h=this.getMappedScope(I?Qd(i):i)}return{scope:h,resolveLang:c}}getObjectByKey(i,c){const h={},C=`${c}.`;for(const I in i)I.startsWith(C)&&(h[I.replace(C,"")]=i[I]);return h}getEntries(i){return i instanceof Map?i.entries():Object.entries(i)}static \u0275fac=function(c){return new(c||a)(o.KVO(mr,8),o.KVO(Xd),o.KVO(Yd),o.KVO(jp),o.KVO(Ca),o.KVO(Hp))};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function df(a){return(0,o.EmA)([{provide:Xd,useClass:a,deps:[Ca]}])}function Xp(a){return(0,o.EmA)([{provide:Hp,useClass:a,deps:[Ca]}])}function qd(a){return(0,o.EmA)([{provide:Yd,useClass:a}])}function hf(a){return(0,o.EmA)([{provide:jp,useClass:a}])}new o.nKC("TRANSLOCO_LANG"),new o.nKC("TRANSLOCO_LOADING_TEMPLATE"),new o.nKC("TRANSLOCO_SCOPE"),new o.nKC("TRANSLOCO_TEST_LANGS - Available testing languages"),new o.nKC("TRANSLOCO_TEST_OPTIONS - Testing options");var nh=v(2771);let pf=(()=>{class a{constructor(){this._httpClient=(0,o.WQX)(Ee.Qq),this._navigation=new nh.m(1)}get navigation$(){return this._navigation.asObservable()}get(){return this._httpClient.get("api/navigation").pipe((0,b.M)(i=>{this._navigation.next(i)}))}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})(),Xy=(()=>{class a{constructor(i){this._httpClient=i,this._chat=new gt.t(null),this._chats=new gt.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,b.M)(i=>{this._chats.next(i)}))}getChatById(i){return this._httpClient.get("api/apps/chat/chat",{params:{id:i}}).pipe((0,us.T)(c=>(this._chat.next(c),c)),(0,ke.n)(c=>c?(0,B.of)(c):(0,oe.$)("Could not found chat with id of "+i+"!")))}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(Ee.Qq))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();const mf=new class Qp{constructor(s){this.version=s,this.full=s,this.major=s.split(".")[0],this.minor=s.split(".")[1],this.patch=s.split(".").slice(2).join(".")}}("0.0.8").full;var Kr=v(6977),ih=v(4085),Gu=v(7575);function Vg(a,s){if(1&a&&o.nrm(0,"mat-progress-bar",0),2&a){const i=o.XpG();o.Y8G("mode",i.mode)("value",i.progress)}}let rh=(()=>{class a{constructor(){this._angorLoadingService=(0,o.WQX)(je),this.autoMode=!0,this.progress=0,this.show=!1,this._unsubscribeAll=new zr.B}ngOnChanges(i){"autoMode"in i&&this._angorLoadingService.setAutoMode((0,ih.he)(i.autoMode.currentValue))}ngOnInit(){this._angorLoadingService.mode$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this.mode=i}),this._angorLoadingService.progress$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this.progress=i}),this._angorLoadingService.show$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this.show=i})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-loading-bar"]],inputs:{autoMode:"autoMode"},exportAs:["angorLoadingBar"],standalone:!0,features:[o.OA$,o.aNF],decls:1,vars:1,consts:[[3,"mode","value"]],template:function(c,h){1&c&&o.DNE(0,Vg,1,2,"mat-progress-bar",0),2&c&&o.vxM(h.show?0:-1)},dependencies:[Gu.PO,Gu.HM],styles:["angor-loading-bar{position:fixed;top:0;z-index:999;width:100%;height:6px}\n"],encapsulation:2})}return a})();function Qy(a,s){1&a&&o.nrm(0,"router-outlet")}let jE=(()=>{class a{constructor(){this._unsubscribeAll=new zr.B}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["empty-layout"]],standalone:!0,features:[o.aNF],decls:4,vars:1,consts:[[1,"flex","w-full","flex-auto","flex-col"],[1,"flex","flex-auto","flex-col"]],template:function(c,h){1&c&&(o.nrm(0,"angor-loading-bar"),o.j41(1,"div",0)(2,"div",1),o.DNE(3,Qy,1,0,"router-outlet"),o.k0s()()),2&c&&(o.R7$(3),o.vxM(3))},dependencies:[rh,y.n3],encapsulation:2})}return a})();var Ha=v(8834),Xr=v(9213),ta=v(4823);function gf(a,s){1&a&&o.nrm(0,"mat-icon",3)}let vf=(()=>{class a{constructor(){this._document=(0,o.WQX)(nt.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#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-fullscreen"]],inputs:{iconTpl:"iconTpl",tooltip:"tooltip"},exportAs:["angorFullscreen"],standalone:!0,features:[o.aNF],decls:4,vars:2,consts:[["defaultIconTpl",""],["mat-icon-button","",3,"click","matTooltip"],[3,"ngTemplateOutlet"],["svgIcon","heroicons_outline:arrows-pointing-out"]],template:function(c,h){if(1&c){const C=o.RV6();o.j41(0,"button",1),o.bIt("click",function(){return o.eBV(C),o.Njj(h.toggleFullscreen())}),o.eu8(1,2),o.k0s(),o.DNE(2,gf,1,0,"ng-template",null,0,o.C5r)}if(2&c){const C=o.sdS(3);o.Y8G("matTooltip",h.tooltip||"Toggle Fullscreen"),o.R7$(),o.Y8G("ngTemplateOutlet",h.iconTpl||C)}},dependencies:[Ha.Hl,Ha.iY,ta.uc,ta.oV,nt.T3,Xr.m_,Xr.An],encapsulation:2,changeDetection:0})}return a})();var _f=v(1648);let Da=(()=>{class a{constructor(){this._componentRegistry=new Map,this._navigationStore=new Map}registerComponent(i,c){this._componentRegistry.set(i,c)}deregisterComponent(i){this._componentRegistry.delete(i)}getComponent(i){return this._componentRegistry.get(i)}storeNavigation(i,c){this._navigationStore.set(i,c)}getNavigation(i){return this._navigationStore.get(i)??[]}deleteNavigation(i){this._navigationStore.has(i)||console.warn(`Navigation with the key '${i}' does not exist.`),this._navigationStore.delete(i)}getFlatNavigation(i,c=[]){for(const h of i)"basic"===h.type?c.push(h):h.children&&this.getFlatNavigation(h.children,c);return c}getItem(i,c){for(const h of c){if(h.id===i)return h;if(h.children){const C=this.getItem(i,h.children);if(C)return C}}return null}getItemParent(i,c,h){for(const C of c){if(C.id===i)return h;if(C.children){const I=this.getItemParent(i,C.children,C);if(I)return I}}return null}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var bl=v(9115);const Ku=a=>({"angor-horizontal-navigation-item-active-forced":a}),Zp=a=>[a];function Qc(a,s){1&a&&o.eu8(0)}function jg(a,s){if(1&a&&(o.j41(0,"div",2),o.DNE(1,Qc,1,0,"ng-container",7),o.k0s()),2&a){let i,c,h,C;const I=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,Ku,I.item.active))("routerLink",o.eq3(12,Zp,I.item.link))("fragment",null!==(i=I.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=I.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(h=I.item.queryParams)&&void 0!==h?h:null)("queryParamsHandling",null!==(C=I.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",I.isActiveMatchOptions)("matTooltip",I.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function yf(a,s){1&a&&o.eu8(0)}function Hg(a,s){if(1&a&&(o.j41(0,"a",3),o.DNE(1,yf,1,0,"ng-container",7),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function $g(a,s){1&a&&o.eu8(0)}function zg(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",8),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.item.function(h.item))}),o.DNE(1,$g,1,0,"ng-container",7),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,Ku,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function Jp(a,s){1&a&&o.eu8(0)}function Wg(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",9),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.item.function(h.item))}),o.DNE(1,Jp,1,0,"ng-container",7),o.k0s()}if(2&a){let i,c,h,C;const I=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,Ku,I.item.active))("routerLink",o.eq3(12,Zp,I.item.link))("fragment",null!==(i=I.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=I.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(h=I.item.queryParams)&&void 0!==h?h:null)("queryParamsHandling",null!==(C=I.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",I.isActiveMatchOptions)("matTooltip",I.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function bf(a,s){1&a&&o.eu8(0)}function qp(a,s){if(1&a){const i=o.RV6();o.j41(0,"a",10),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.item.function(h.item))}),o.DNE(1,bf,1,0,"ng-container",7),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function Xu(a,s){1&a&&o.eu8(0)}function Zy(a,s){if(1&a&&(o.j41(0,"div",4),o.DNE(1,Xu,1,0,"ng-container",7),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,Ku,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function Jy(a,s){1&a&&o.eu8(0)}function HE(a,s){if(1&a&&(o.j41(0,"div",6),o.DNE(1,Jy,1,0,"ng-container",7),o.k0s()),2&a){o.XpG();const i=o.sdS(9);o.R7$(),o.Y8G("ngTemplateOutlet",i)}}function wf(a,s){if(1&a&&o.nrm(0,"mat-icon",11),2&a){const i=o.XpG(2);o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function em(a,s){if(1&a&&(o.j41(0,"div",15)(1,"span",14),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function Gg(a,s){if(1&a&&(o.j41(0,"div",16)(1,"div",17),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function Kg(a,s){if(1&a&&(o.DNE(0,wf,1,2,"mat-icon",11),o.j41(1,"div",12)(2,"div",13)(3,"span",14),o.EFF(4),o.k0s()(),o.DNE(5,em,3,2,"div",15),o.k0s(),o.DNE(6,Gg,3,2,"div",16)),2&a){const i=o.XpG();o.vxM(i.item.icon?0:-1),o.R7$(3),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.title),o.R7$(),o.SpI(" ",i.item.title," "),o.R7$(),o.vxM(i.item.subtitle?5:-1),o.R7$(),o.vxM(i.item.badge?6:-1)}}let tm=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._angorUtilsService=(0,o.WQX)(Dt.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new zr.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,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-basic-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:10,vars:10,consts:[["itemTemplate",""],[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"],[1,"angor-horizontal-navigation-item",3,"ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-horizontal-navigation-item",3,"href","target","matTooltip"],[1,"angor-horizontal-navigation-item",3,"ngClass","matTooltip"],["mat-menu-item","",1,"angor-horizontal-navigation-item",3,"href","target","matTooltip"],[1,"angor-horizontal-navigation-item","angor-horizontal-navigation-item-disabled"],[4,"ngTemplateOutlet"],[1,"angor-horizontal-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-horizontal-navigation-item",3,"click","ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],["mat-menu-item","",1,"angor-horizontal-navigation-item",3,"click","href","target","matTooltip"],[1,"angor-horizontal-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-horizontal-navigation-item-title-wrapper"],[1,"angor-horizontal-navigation-item-title"],[3,"ngClass"],[1,"angor-horizontal-navigation-item-subtitle","text-hint"],[1,"angor-horizontal-navigation-item-badge"],[1,"angor-horizontal-navigation-item-badge-content",3,"ngClass"]],template:function(c,h){1&c&&(o.j41(0,"div",1),o.DNE(1,jg,2,14,"div",2)(2,Hg,2,4,"a",3)(3,zg,2,5,"div",4)(4,Wg,2,14,"div",2)(5,qp,2,4,"a",5)(6,Zy,2,5,"div",4)(7,HE,2,1,"div",6),o.k0s(),o.DNE(8,Kg,7,5,"ng-template",null,0,o.C5r)),2&c&&(o.AVh("angor-horizontal-navigation-item-has-subtitle",!!h.item.subtitle),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper),o.R7$(),o.vxM(!h.item.link||h.item.externalLink||h.item.function||h.item.disabled?-1:1),o.R7$(),o.vxM(h.item.link&&h.item.externalLink&&!h.item.function&&!h.item.disabled?2:-1),o.R7$(),o.vxM(h.item.link||!h.item.function||h.item.disabled?-1:3),o.R7$(),o.vxM(h.item.link&&!h.item.externalLink&&h.item.function&&!h.item.disabled?4:-1),o.R7$(),o.vxM(h.item.link&&h.item.externalLink&&h.item.function&&!h.item.disabled?5:-1),o.R7$(),o.vxM(h.item.link||h.item.function||h.item.disabled?-1:6),o.R7$(),o.vxM(h.item.disabled?7:-1))},dependencies:[nt.YU,y.Wk,y.wQ,ta.uc,ta.oV,nt.T3,bl.Cn,bl.fb,Xr.m_,Xr.An],encapsulation:2,changeDetection:0})}return a})(),Zc=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._unsubscribeAll=new zr.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-divider-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper","divider",3,"ngClass"]],template:function(c,h){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper)},dependencies:[nt.YU],encapsulation:2,changeDetection:0})}return a})();const qy=["matMenu"],eb=(a,s)=>({"angor-horizontal-navigation-menu-active":a,"angor-horizontal-navigation-menu-active-forced":s}),Xg=a=>({$implicit:a}),tb=(a,s)=>({"angor-horizontal-navigation-item-disabled":a,"angor-horizontal-navigation-item-active-forced":s});function nb(a,s){1&a&&o.eu8(0)}function Zl(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",6,2),o.bIt("onMenuOpen",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.triggerChangeDetection())})("onMenuClose",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.triggerChangeDetection())}),o.DNE(2,nb,1,0,"ng-container",7),o.k0s()}if(2&a){const i=o.sdS(1),c=o.XpG(),h=o.sdS(2),C=o.sdS(6);o.Y8G("ngClass",o.l_i(4,eb,i.menuOpen,c.item.active))("matMenuTriggerFor",h),o.R7$(2),o.Y8G("ngTemplateOutlet",C)("ngTemplateOutletContext",o.eq3(7,Xg,c.item))}}function Yu(a,s){if(1&a&&(o.j41(0,"div",8),o.nrm(1,"angor-horizontal-navigation-basic-item",11),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("disabled",i.disabled),o.R7$(),o.Y8G("item",i)("name",c.name)}}function ib(a,s){1&a&&o.eu8(0)}function rb(a,s){if(1&a&&(o.j41(0,"div",9),o.DNE(1,ib,1,0,"ng-container",7),o.nrm(2,"angor-horizontal-navigation-branch-item",12,3),o.k0s()),2&a){const i=o.sdS(3),c=o.XpG(2).$implicit,h=o.XpG(),C=o.sdS(6);o.Y8G("disabled",c.disabled)("matMenuTriggerFor",i.matMenu),o.R7$(),o.Y8G("ngTemplateOutlet",C)("ngTemplateOutletContext",o.eq3(7,Xg,c)),o.R7$(),o.Y8G("child",!0)("item",c)("name",h.name)}}function ob(a,s){if(1&a&&(o.j41(0,"div",10),o.nrm(1,"angor-horizontal-navigation-divider-item",11),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.R7$(),o.Y8G("item",i)("name",c.name)}}function sb(a,s){if(1&a&&o.DNE(0,Yu,2,3,"div",8)(1,rb,4,9,"div",9)(2,ob,2,2,"div",10),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("aside"===i.type||"collapsable"===i.type||"group"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1)}}function ab(a,s){if(1&a&&o.DNE(0,sb,3,3),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function lb(a,s){if(1&a&&o.nrm(0,"mat-icon",15),2&a){const i=o.XpG().$implicit;o.Y8G("ngClass",null==i.classes?null:i.classes.icon)("svgIcon",i.icon)}}function Yg(a,s){if(1&a&&(o.j41(0,"div",19)(1,"span",18),o.EFF(2),o.k0s()()),2&a){const i=o.XpG().$implicit;o.R7$(),o.Y8G("ngClass",null==i.classes?null:i.classes.subtitle),o.R7$(),o.SpI(" ",i.subtitle," ")}}function cb(a,s){if(1&a&&(o.j41(0,"div",20)(1,"div",21),o.EFF(2),o.k0s()()),2&a){const i=o.XpG().$implicit;o.R7$(),o.Y8G("ngClass",i.badge.classes),o.R7$(),o.SpI(" ",i.badge.title," ")}}function ub(a,s){if(1&a&&(o.j41(0,"div",13)(1,"div",14),o.DNE(2,lb,1,2,"mat-icon",15),o.j41(3,"div",16)(4,"div",17)(5,"span",18),o.EFF(6),o.k0s()(),o.DNE(7,Yg,3,2,"div",19),o.k0s(),o.DNE(8,cb,3,2,"div",20),o.k0s()()),2&a){const i=s.$implicit;o.AVh("angor-horizontal-navigation-item-has-subtitle",!!i.subtitle),o.Y8G("ngClass",null==i.classes?null:i.classes.wrapper),o.R7$(),o.Y8G("ngClass",o.l_i(10,tb,i.disabled,i.active))("matTooltip",i.tooltip||""),o.R7$(),o.vxM(i.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==i.classes?null:i.classes.title),o.R7$(),o.SpI(" ",i.title," "),o.R7$(),o.vxM(i.subtitle?7:-1),o.R7$(),o.vxM(i.badge?8:-1)}}let db=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this.child=!1,this._unsubscribeAll=new zr.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}triggerChangeDetection(){this._changeDetectorRef.markForCheck()}trackByFn(i,c){return c.id||i}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-branch-item"]],viewQuery:function(c,h){if(1&c&&o.GBs(qy,7),2&c){let C;o.mGM(C=o.lsd())&&(h.matMenu=C.first)}},inputs:{child:"child",item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:7,vars:2,consts:[["matMenu","matMenu"],["itemTemplate",""],["trigger","matMenuTrigger"],["branch",""],[3,"ngClass","matMenuTriggerFor"],[1,"angor-horizontal-navigation-menu-panel",3,"overlapTrigger"],[3,"onMenuOpen","onMenuClose","ngClass","matMenuTriggerFor"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item",3,"disabled"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item"],[3,"item","name"],[3,"child","item","name"],[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"],[1,"angor-horizontal-navigation-item",3,"ngClass","matTooltip"],[1,"angor-horizontal-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-horizontal-navigation-item-title-wrapper"],[1,"angor-horizontal-navigation-item-title"],[3,"ngClass"],[1,"angor-horizontal-navigation-item-subtitle","text-hint"],[1,"angor-horizontal-navigation-item-badge"],[1,"angor-horizontal-navigation-item-badge-content",3,"ngClass"]],template:function(c,h){1&c&&(o.DNE(0,Zl,3,9,"div",4),o.j41(1,"mat-menu",5,0),o.Z7z(3,ab,1,1,null,null,h.trackByFn,!0),o.k0s(),o.DNE(5,ub,9,13,"ng-template",null,1,o.C5r)),2&c&&(o.vxM(h.child?-1:0),o.R7$(),o.Y8G("overlapTrigger",!1),o.R7$(2),o.Dyx(h.item.children))},dependencies:()=>[a,nt.YU,bl.Cn,bl.kk,bl.fb,bl.Cp,nt.T3,tm,Zc,ta.uc,ta.oV,Xr.m_,Xr.An],encapsulation:2,changeDetection:0})}return a})(),hb=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._unsubscribeAll=new zr.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-spacer-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"]],template:function(c,h){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper)},dependencies:[nt.YU],encapsulation:2,changeDetection:0})}return a})();function Ef(a,s){if(1&a&&o.nrm(0,"angor-horizontal-navigation-basic-item",1),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Jl(a,s){if(1&a&&o.nrm(0,"angor-horizontal-navigation-branch-item",1),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function oh(a,s){if(1&a&&o.nrm(0,"angor-horizontal-navigation-spacer-item",1),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Qg(a,s){if(1&a&&o.DNE(0,Ef,1,2,"angor-horizontal-navigation-basic-item",1)(1,Jl,1,2,"angor-horizontal-navigation-branch-item",1)(2,oh,1,2,"angor-horizontal-navigation-spacer-item",1),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("aside"===i.type||"collapsable"===i.type||"group"===i.type?1:-1),o.R7$(),o.vxM("spacer"===i.type?2:-1)}}function Zg(a,s){if(1&a&&o.DNE(0,Qg,3,3),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}let Jg=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._angorUtilsService=(0,o.WQX)(Dt.Q),this.name=this._angorUtilsService.randomId(),this.onRefreshed=new nh.m(1),this._unsubscribeAll=new zr.B}ngOnChanges(i){"navigation"in i&&this._changeDetectorRef.markForCheck()}ngOnInit(){""===this.name&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this)}ngOnDestroy(){this._angorNavigationService.deregisterComponent(this.name),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}refresh(){this._changeDetectorRef.markForCheck(),this.onRefreshed.next(!0)}trackByFn(i,c){return c.id||i}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation"]],inputs:{name:"name",navigation:"navigation"},exportAs:["angorHorizontalNavigation"],standalone:!0,features:[o.OA$,o.aNF],decls:3,vars:0,consts:[[1,"angor-horizontal-navigation-wrapper"],[1,"angor-horizontal-navigation-menu-item",3,"item","name"]],template:function(c,h){1&c&&(o.j41(0,"div",0),o.Z7z(1,Zg,1,1,null,null,h.trackByFn,!0),o.k0s()),2&c&&(o.R7$(),o.Dyx(h.navigation))},dependencies:[tm,db,hb],styles:["angor-horizontal-navigation .angor-horizontal-navigation-wrapper{display:flex;align-items:center}@media (min-width: 600px){angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item:hover .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item:hover .angor-horizontal-navigation-item-wrapper{background-color:var(--angor-bg-hover)}}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper{border-radius:4px;overflow:hidden}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item{padding:0 16px;cursor:pointer;-webkit-user-select:none;user-select:none}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-icon,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-icon{margin-right:12px}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-title,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-title{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity))!important}.dark angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.dark angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-icon,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-menu-active .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-menu-active-forced .angor-horizontal-navigation-item-wrapper{background-color:var(--angor-bg-hover)}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-spacer-item{margin:12px 0}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item{height:auto;min-height:0;line-height:normal;white-space:normal}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item,.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-branch-item,.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item{display:flex;flex:1 1 auto}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item{margin:8px -16px}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item .angor-horizontal-navigation-item-wrapper{height:1px;box-shadow:0 1px}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-title,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-title{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity))!important}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity))!important}.dark .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.dark .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity))!important}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-icon,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity))!important}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper{width:100%}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper.angor-horizontal-navigation-item-has-subtitle .angor-horizontal-navigation-item{min-height:56px}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item{position:relative;display:flex;align-items:center;justify-content:flex-start;min-height:48px;width:100%;font-size:13px;font-weight:500;text-decoration:none}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-title-wrapper .angor-horizontal-navigation-item-subtitle{font-size:12px}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-badge{margin-left:auto}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-badge .angor-horizontal-navigation-item-badge-content{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;white-space:nowrap;height:20px}\n"],encapsulation:2,data:{animation:_f.F},changeDetection:0})}return a})();const nm=a=>({"angor-vertical-navigation-item-active-forced":a}),fb=a=>[a];function $E(a,s){1&a&&o.eu8(0)}function im(a,s){if(1&a&&(o.j41(0,"a",2),o.DNE(1,$E,1,0,"ng-container",6),o.k0s()),2&a){let i,c,h,C;const I=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,nm,I.item.active))("routerLink",o.eq3(12,fb,I.item.link))("fragment",null!==(i=I.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=I.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(h=I.item.queryParams)&&void 0!==h?h:null)("queryParamsHandling",null!==(C=I.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",I.isActiveMatchOptions)("matTooltip",I.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function rm(a,s){1&a&&o.eu8(0)}function zE(a,s){if(1&a&&(o.j41(0,"a",3),o.DNE(1,rm,1,0,"ng-container",6),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function WE(a,s){1&a&&o.eu8(0)}function qg(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",7),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.item.function(h.item))}),o.DNE(1,WE,1,0,"ng-container",6),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,nm,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function pb(a,s){1&a&&o.eu8(0)}function mb(a,s){if(1&a){const i=o.RV6();o.j41(0,"a",8),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.item.function(h.item))}),o.DNE(1,pb,1,0,"ng-container",6),o.k0s()}if(2&a){let i,c,h,C;const I=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,nm,I.item.active))("routerLink",o.eq3(12,fb,I.item.link))("fragment",null!==(i=I.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=I.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(h=I.item.queryParams)&&void 0!==h?h:null)("queryParamsHandling",null!==(C=I.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",I.isActiveMatchOptions)("matTooltip",I.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function gb(a,s){1&a&&o.eu8(0)}function vb(a,s){if(1&a){const i=o.RV6();o.j41(0,"a",9),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.item.function(h.item))}),o.DNE(1,gb,1,0,"ng-container",6),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function _b(a,s){1&a&&o.eu8(0)}function ev(a,s){if(1&a&&(o.j41(0,"div",4),o.DNE(1,_b,1,0,"ng-container",6),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,nm,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function tv(a,s){1&a&&o.eu8(0)}function yb(a,s){if(1&a&&(o.j41(0,"div",5),o.DNE(1,tv,1,0,"ng-container",6),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function bb(a,s){if(1&a&&o.nrm(0,"mat-icon",10),2&a){const i=o.XpG(2);o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function nv(a,s){if(1&a&&(o.j41(0,"div",14)(1,"span",13),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function Cf(a,s){if(1&a&&(o.j41(0,"div",15)(1,"div",16),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function iv(a,s){if(1&a&&(o.DNE(0,bb,1,2,"mat-icon",10),o.j41(1,"div",11)(2,"div",12)(3,"span",13),o.EFF(4),o.k0s()(),o.DNE(5,nv,3,2,"div",14),o.k0s(),o.DNE(6,Cf,3,2,"div",15)),2&a){const i=o.XpG();o.vxM(i.item.icon?0:-1),o.R7$(3),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.title),o.R7$(),o.SpI(" ",i.item.title," "),o.R7$(),o.vxM(i.item.subtitle?5:-1),o.R7$(),o.vxM(i.item.badge?6:-1)}}let Qu=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._angorUtilsService=(0,o.WQX)(Dt.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new zr.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,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-basic-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:10,vars:10,consts:[["itemTemplate",""],[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-vertical-navigation-item",3,"href","target","matTooltip"],[1,"angor-vertical-navigation-item",3,"ngClass","matTooltip"],[1,"angor-vertical-navigation-item","angor-vertical-navigation-item-disabled",3,"matTooltip"],[4,"ngTemplateOutlet"],[1,"angor-vertical-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-vertical-navigation-item",3,"click","ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-vertical-navigation-item",3,"click","href","target","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"]],template:function(c,h){1&c&&(o.j41(0,"div",1),o.DNE(1,im,2,14,"a",2)(2,zE,2,4,"a",3)(3,qg,2,5,"div",4)(4,mb,2,14,"a",2)(5,vb,2,4,"a",3)(6,ev,2,5,"div",4)(7,yb,2,2,"div",5),o.k0s(),o.DNE(8,iv,7,5,"ng-template",null,0,o.C5r)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!h.item.subtitle),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper),o.R7$(),o.vxM(!h.item.link||h.item.externalLink||h.item.function||h.item.disabled?-1:1),o.R7$(),o.vxM(h.item.link&&h.item.externalLink&&!h.item.function&&!h.item.disabled?2:-1),o.R7$(),o.vxM(h.item.link||!h.item.function||h.item.disabled?-1:3),o.R7$(),o.vxM(h.item.link&&!h.item.externalLink&&h.item.function&&!h.item.disabled?4:-1),o.R7$(),o.vxM(h.item.link&&h.item.externalLink&&h.item.function&&!h.item.disabled?5:-1),o.R7$(),o.vxM(h.item.link||h.item.function||h.item.disabled?-1:6),o.R7$(),o.vxM(h.item.disabled?7:-1))},dependencies:[nt.YU,y.Wk,y.wQ,ta.uc,ta.oV,nt.T3,Xr.m_,Xr.An],encapsulation:2,changeDetection:0})}return a})(),Df=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._unsubscribeAll=new zr.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-divider-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper","divider",3,"ngClass"]],template:function(c,h){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper)},dependencies:[nt.YU],encapsulation:2,changeDetection:0})}return a})(),Rl=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._unsubscribeAll=new zr.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-spacer-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"]],template:function(c,h){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper)},dependencies:[nt.YU],encapsulation:2,changeDetection:0})}return a})();function rv(a,s){if(1&a&&o.nrm(0,"mat-icon",2),2&a){const i=o.XpG();o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function wb(a,s){if(1&a&&(o.j41(0,"div",6)(1,"span",5),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function om(a,s){if(1&a&&(o.j41(0,"div",7)(1,"div",8),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function sm(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Eb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function Cb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Db(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function xb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function ov(a,s){if(1&a&&o.DNE(0,sm,1,2,"angor-vertical-navigation-basic-item",9)(1,Eb,1,3,"angor-vertical-navigation-collapsable-item",10)(2,Cb,1,2,"angor-vertical-navigation-divider-item",9)(3,Db,1,2,"angor-vertical-navigation-group-item",9)(4,xb,1,2,"angor-vertical-navigation-spacer-item",9),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("collapsable"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1),o.R7$(),o.vxM("group"===i.type?3:-1),o.R7$(),o.vxM("spacer"===i.type?4:-1)}}function GE(a,s){if(1&a&&o.DNE(0,ov,5,5),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}let sv=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Da),this._unsubscribeAll=new zr.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(i,c){return c.id||i}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-group-item"]],inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:11,vars:8,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(c,h){1&c&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,rv,1,2,"mat-icon",2),o.j41(3,"div",3)(4,"div",4)(5,"span",5),o.EFF(6),o.k0s()(),o.DNE(7,wb,3,2,"div",6),o.k0s(),o.DNE(8,om,3,2,"div",7),o.k0s()(),o.Z7z(9,GE,1,1,null,null,h.trackByFn,!0)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!h.item.subtitle),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper),o.R7$(2),o.vxM(h.item.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.title),o.R7$(),o.SpI(" ",h.item.title," "),o.R7$(),o.vxM(h.item.subtitle?7:-1),o.R7$(),o.vxM(h.item.badge?8:-1),o.R7$(),o.Dyx(h.item.children))},dependencies:()=>[a,nt.YU,Xr.m_,Xr.An,Qu,lv,Df,Rl],encapsulation:2,changeDetection:0})}return a})();const sh=a=>({"angor-vertical-navigation-item-disabled":a});function Sb(a,s){if(1&a&&o.nrm(0,"mat-icon",2),2&a){const i=o.XpG();o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function Ab(a,s){if(1&a&&(o.j41(0,"div",6)(1,"span",5),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function Tb(a,s){if(1&a&&(o.j41(0,"div",7)(1,"div",10),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function av(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Ib(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",12),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function Mb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Ob(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Rb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function kb(a,s){if(1&a&&o.DNE(0,av,1,2,"angor-vertical-navigation-basic-item",11)(1,Ib,1,3,"angor-vertical-navigation-collapsable-item",12)(2,Mb,1,2,"angor-vertical-navigation-divider-item",11)(3,Ob,1,2,"angor-vertical-navigation-group-item",11)(4,Rb,1,2,"angor-vertical-navigation-spacer-item",11),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("collapsable"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1),o.R7$(),o.vxM("group"===i.type?3:-1),o.R7$(),o.vxM("spacer"===i.type?4:-1)}}function Nb(a,s){if(1&a&&o.DNE(0,kb,5,5),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function am(a,s){if(1&a&&(o.j41(0,"div",9),o.Z7z(1,Nb,1,1,null,null,o.BUC().trackByFn,!0),o.k0s()),2&a){const i=o.XpG();o.Y8G("@expandCollapse",void 0),o.R7$(),o.Dyx(i.item.children)}}let lv=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._router=(0,o.WQX)(y.Ix),this._angorNavigationService=(0,o.WQX)(Da),this.isCollapsed=!0,this.isExpanded=!1,this._unsubscribeAll=new zr.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,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{null!==i&&this._isChildrenOf(i,this.item)&&this.collapse()}),this.autoCollapse&&this._angorVerticalNavigationComponent.onCollapsableItemExpanded.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{null!==i&&(this._isChildrenOf(this.item,i)||this._hasActiveChild(this.item,this._router.url)||this.item!==i&&this.collapse())}),this._router.events.pipe((0,At.p)(i=>i instanceof y.wF),(0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this._hasActiveChild(this.item,i.urlAfterRedirects)?this.expand():this.autoCollapse&&this.collapse()}),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}collapse(){this.item.disabled||this.isCollapsed||(this.isCollapsed=!0,this.isExpanded=!this.isCollapsed,this._changeDetectorRef.markForCheck(),this._angorVerticalNavigationComponent.onCollapsableItemCollapsed.next(this.item))}expand(){this.item.disabled||this.isCollapsed&&(this.isCollapsed=!1,this.isExpanded=!this.isCollapsed,this._changeDetectorRef.markForCheck(),this._angorVerticalNavigationComponent.onCollapsableItemExpanded.next(this.item))}toggleCollapsable(){this.isCollapsed?this.expand():this.collapse()}trackByFn(i,c){return c.id||i}_hasActiveChild(i,c){const h=i.children;if(!h)return!1;for(const C of h)if(C.children&&this._hasActiveChild(C,c)||C.link&&this._router.isActive(C.link,C.exactMatch||!1))return!0;return!1}_isChildrenOf(i,c){const h=i.children;if(!h)return!1;if(h.indexOf(c)>-1)return!0;for(const C of h)if(C.children&&this._isChildrenOf(C,c))return!0;return!1}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-collapsable-item"]],hostVars:2,hostBindings:function(c,h){2&c&&o.HbH(h.classList)},inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:11,vars:14,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-arrow","icon-size-4",3,"svgIcon"],[1,"angor-vertical-navigation-item-children"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(c,h){1&c&&(o.j41(0,"div",0)(1,"div",1),o.bIt("click",function(){return h.toggleCollapsable()}),o.DNE(2,Sb,1,2,"mat-icon",2),o.j41(3,"div",3)(4,"div",4)(5,"span",5),o.EFF(6),o.k0s()(),o.DNE(7,Ab,3,2,"div",6),o.k0s(),o.DNE(8,Tb,3,2,"div",7),o.nrm(9,"mat-icon",8),o.k0s()(),o.DNE(10,am,3,1,"div",9)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!h.item.subtitle),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper),o.R7$(),o.Y8G("ngClass",o.eq3(12,sh,h.item.disabled))("matTooltip",h.item.tooltip||""),o.R7$(),o.vxM(h.item.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.title),o.R7$(),o.SpI(" ",h.item.title," "),o.R7$(),o.vxM(h.item.subtitle?7:-1),o.R7$(),o.vxM(h.item.badge?8:-1),o.R7$(),o.Y8G("svgIcon","heroicons_solid:chevron-right"),o.R7$(),o.vxM(h.isCollapsed?-1:10))},dependencies:()=>[a,nt.YU,ta.uc,ta.oV,Xr.m_,Xr.An,Qu,Df,sv,Rl],encapsulation:2,data:{animation:_f.F},changeDetection:0})}return a})();const KE=(a,s,i)=>({"angor-vertical-navigation-item-active":a,"angor-vertical-navigation-item-disabled":s,"angor-vertical-navigation-item-active-forced":i});function lm(a,s){if(1&a&&o.nrm(0,"mat-icon",2),2&a){const i=o.XpG();o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function XE(a,s){if(1&a&&(o.j41(0,"div",6)(1,"span",5),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function YE(a,s){if(1&a&&(o.j41(0,"div",7)(1,"div",9),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function QE(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function ZE(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function JE(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Pb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function xf(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Sf(a,s){if(1&a&&o.DNE(0,QE,1,2,"angor-vertical-navigation-basic-item",10)(1,ZE,1,3,"angor-vertical-navigation-collapsable-item",11)(2,JE,1,2,"angor-vertical-navigation-divider-item",10)(3,Pb,1,2,"angor-vertical-navigation-group-item",10)(4,xf,1,2,"angor-vertical-navigation-spacer-item",10),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("collapsable"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1),o.R7$(),o.vxM("group"===i.type?3:-1),o.R7$(),o.vxM("spacer"===i.type?4:-1)}}function cv(a,s){if(1&a&&o.DNE(0,Sf,5,5),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function uv(a,s){if(1&a&&(o.j41(0,"div",8),o.Z7z(1,cv,1,1,null,null,o.BUC().trackByFn,!0),o.k0s()),2&a){const i=o.XpG();o.R7$(),o.Dyx(i.item.children)}}let dv=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._router=(0,o.WQX)(y.Ix),this._angorNavigationService=(0,o.WQX)(Da),this.active=!1,this._unsubscribeAll=new zr.B}ngOnChanges(i){"activeItemId"in i&&this._markIfActive(this._router.url)}ngOnInit(){this._markIfActive(this._router.url),this._router.events.pipe((0,At.p)(i=>i instanceof y.wF),(0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this._markIfActive(i.urlAfterRedirects)}),this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(i,c){return c.id||i}_hasActiveChild(i,c){const h=i.children;if(!h)return!1;for(const C of h){if(C.children&&this._hasActiveChild(C,c))return!0;if("basic"===C.type&&C.link&&this._router.isActive(C.link,C.exactMatch||!1))return!0}return!1}_markIfActive(i){this.active=this.activeItemId===this.item.id,this._hasActiveChild(this.item,i)&&(this.active=!0),this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-aside-item"]],inputs:{activeItemId:"activeItemId",autoCollapse:"autoCollapse",item:"item",name:"name",skipChildren:"skipChildren"},standalone:!0,features:[o.OA$,o.aNF],decls:10,vars:15,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"ngClass","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-children"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(c,h){1&c&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,lm,1,2,"mat-icon",2),o.j41(3,"div",3)(4,"div",4)(5,"span",5),o.EFF(6),o.k0s()(),o.DNE(7,XE,3,2,"div",6),o.k0s(),o.DNE(8,YE,3,2,"div",7),o.k0s()(),o.DNE(9,uv,3,0,"div",8)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!h.item.subtitle),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.wrapper),o.R7$(),o.Y8G("ngClass",o.sMw(11,KE,h.active,h.item.disabled,h.item.active))("matTooltip",h.item.tooltip||""),o.R7$(),o.vxM(h.item.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==h.item.classes?null:h.item.classes.title),o.R7$(),o.SpI(" ",h.item.title," "),o.R7$(),o.vxM(h.item.subtitle?7:-1),o.R7$(),o.vxM(h.item.badge?8:-1),o.R7$(),o.vxM(h.skipChildren?-1:9))},dependencies:[nt.YU,ta.uc,ta.oV,Xr.m_,Xr.An,Qu,lv,Df,sv,Rl],encapsulation:2,changeDetection:0})}return a})();class Fb{constructor(s,i,c,h){this.x=s,this.y=i,this.w=c,this.h=h}}class hv{constructor(s,i){this.x=s,this.y=i}}var fv=v(2401);function pa(a){return getComputedStyle(a)}function bo(a,s){for(var i in s){var c=s[i];"number"==typeof c&&(c+="px"),a.style[i]=c}return a}function na(a){var s=document.createElement("div");return s.className=a,s}var cm=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Jc(a,s){if(!cm)throw new Error("No element matching method supported");return cm.call(a,s)}function Zu(a){a.remove?a.remove():a.parentNode&&a.parentNode.removeChild(a)}function Lb(a,s){return Array.prototype.filter.call(a.children,function(i){return Jc(i,s)})}var ds={main:"ps",rtl:"ps__rtl",element:{thumb:function(a){return"ps__thumb-"+a},rail:function(a){return"ps__rail-"+a},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(a){return"ps--active-"+a},scrolling:function(a){return"ps--scrolling-"+a}}},um={x:null,y:null};function dm(a,s){var i=a.element.classList,c=ds.state.scrolling(s);i.contains(c)?clearTimeout(um[s]):i.add(c)}function Bb(a,s){um[s]=setTimeout(function(){return a.isAlive&&a.element.classList.remove(ds.state.scrolling(s))},a.settings.scrollingThreshold)}var qc=function(s){this.element=s,this.handlers={}},Tf={isEmpty:{configurable:!0}};qc.prototype.bind=function(s,i){typeof this.handlers[s]>"u"&&(this.handlers[s]=[]),this.handlers[s].push(i),this.element.addEventListener(s,i,!1)},qc.prototype.unbind=function(s,i){var c=this;this.handlers[s]=this.handlers[s].filter(function(h){return!(!i||h===i)||(c.element.removeEventListener(s,h,!1),!1)})},qc.prototype.unbindAll=function(){for(var s in this.handlers)this.unbind(s)},Tf.isEmpty.get=function(){var a=this;return Object.keys(this.handlers).every(function(s){return 0===a.handlers[s].length})},Object.defineProperties(qc.prototype,Tf);var Ju=function(){this.eventElements=[]};function ql(a){if("function"==typeof window.CustomEvent)return new CustomEvent(a);var s=document.createEvent("CustomEvent");return s.initCustomEvent(a,!1,!1,void 0),s}function qu(a,s,i,c,h){var C;if(void 0===c&&(c=!0),void 0===h&&(h=!1),"top"===s)C=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==s)throw new Error("A proper axis should be provided");C=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function pv(a,s,i,c,h){var C=i[0],I=i[1],H=i[2],re=i[3],Fe=i[4],Pt=i[5];void 0===c&&(c=!0),void 0===h&&(h=!1);var Gt=a.element;a.reach[re]=null,Gt[H]<1&&(a.reach[re]="start"),Gt[H]>a[C]-a[I]-1&&(a.reach[re]="end"),s&&(Gt.dispatchEvent(ql("ps-scroll-"+re)),s<0?Gt.dispatchEvent(ql("ps-scroll-"+Fe)):s>0&&Gt.dispatchEvent(ql("ps-scroll-"+Pt)),c&&function Af(a,s){dm(a,s),Bb(a,s)}(a,re)),a.reach[re]&&(s||h)&&Gt.dispatchEvent(ql("ps-"+re+"-reach-"+a.reach[re]))}(a,i,C,c,h)}function xo(a){return parseInt(a,10)||0}Ju.prototype.eventElement=function(s){var i=this.eventElements.filter(function(c){return c.element===s})[0];return i||(i=new qc(s),this.eventElements.push(i)),i},Ju.prototype.bind=function(s,i,c){this.eventElement(s).bind(i,c)},Ju.prototype.unbind=function(s,i,c){var h=this.eventElement(s);h.unbind(i,c),h.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(h),1)},Ju.prototype.unbindAll=function(){this.eventElements.forEach(function(s){return s.unbindAll()}),this.eventElements=[]},Ju.prototype.once=function(s,i,c){var h=this.eventElement(s),C=function(I){h.unbind(i,C),c(I)};h.bind(i,C)};var ed={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 kl(a){var s=a.element,i=Math.floor(s.scrollTop),c=s.getBoundingClientRect();a.containerWidth=Math.round(c.width),a.containerHeight=Math.round(c.height),a.contentWidth=s.scrollWidth,a.contentHeight=s.scrollHeight,s.contains(a.scrollbarXRail)||(Lb(s,ds.element.rail("x")).forEach(function(h){return Zu(h)}),s.appendChild(a.scrollbarXRail)),s.contains(a.scrollbarYRail)||(Lb(s,ds.element.rail("y")).forEach(function(h){return Zu(h)}),s.appendChild(a.scrollbarYRail)),!a.settings.suppressScrollX&&a.containerWidth+a.settings.scrollXMarginOffset=a.railXWidth-a.scrollbarXWidth&&(a.scrollbarXLeft=a.railXWidth-a.scrollbarXWidth),a.scrollbarYTop>=a.railYHeight-a.scrollbarYHeight&&(a.scrollbarYTop=a.railYHeight-a.scrollbarYHeight),function Vb(a,s){var i={width:s.railXWidth},c=Math.floor(a.scrollTop);i.left=s.isRtl?s.negativeScrollAdjustment+a.scrollLeft+s.containerWidth-s.contentWidth:a.scrollLeft,s.isScrollbarXUsingBottom?i.bottom=s.scrollbarXBottom-c:i.top=s.scrollbarXTop+c,bo(s.scrollbarXRail,i);var h={top:c,height:s.railYHeight};s.isScrollbarYUsingRight?h.right=s.isRtl?s.contentWidth-(s.negativeScrollAdjustment+a.scrollLeft)-s.scrollbarYRight-s.scrollbarYOuterWidth-9:s.scrollbarYRight-a.scrollLeft:h.left=s.isRtl?s.negativeScrollAdjustment+a.scrollLeft+2*s.containerWidth-s.contentWidth-s.scrollbarYLeft-s.scrollbarYOuterWidth:s.scrollbarYLeft+a.scrollLeft,bo(s.scrollbarYRail,h),bo(s.scrollbarX,{left:s.scrollbarXLeft,width:s.scrollbarXWidth-s.railBorderXWidth}),bo(s.scrollbarY,{top:s.scrollbarYTop,height:s.scrollbarYHeight-s.railBorderYWidth})}(s,a),a.scrollbarXActive?s.classList.add(ds.state.active("x")):(s.classList.remove(ds.state.active("x")),a.scrollbarXWidth=0,a.scrollbarXLeft=0,s.scrollLeft=!0===a.isRtl?a.contentWidth:0),a.scrollbarYActive?s.classList.add(ds.state.active("y")):(s.classList.remove(ds.state.active("y")),a.scrollbarYHeight=0,a.scrollbarYTop=0,s.scrollTop=0)}function mv(a,s){return a.settings.minScrollbarLength&&(s=Math.max(s,a.settings.minScrollbarLength)),a.settings.maxScrollbarLength&&(s=Math.min(s,a.settings.maxScrollbarLength)),s}function td(a,s){var i=s[0],c=s[1],h=s[2],C=s[3],I=s[4],H=s[5],re=s[6],Fe=s[7],Pt=s[8],Gt=a.element,Hn=null,bn=null,Cn=null;function fi($i){$i.touches&&$i.touches[0]&&($i[h]=$i.touches[0].pageY),Gt[re]=Hn+Cn*($i[h]-bn),dm(a,Fe),kl(a),$i.stopPropagation(),$i.type.startsWith("touch")&&$i.changedTouches.length>1&&$i.preventDefault()}function Fi(){Bb(a,Fe),a[Pt].classList.remove(ds.state.clicking),a.event.unbind(a.ownerDocument,"mousemove",fi)}function Vi($i,ro){Hn=Gt[re],ro&&$i.touches&&($i[h]=$i.touches[0].pageY),bn=$i[h],Cn=(a[c]-a[i])/(a[C]-a[H]),ro?a.event.bind(a.ownerDocument,"touchmove",fi):(a.event.bind(a.ownerDocument,"mousemove",fi),a.event.once(a.ownerDocument,"mouseup",Fi),$i.preventDefault()),a[Pt].classList.add(ds.state.clicking),$i.stopPropagation()}a.event.bind(a[I],"mousedown",function($i){Vi($i)}),a.event.bind(a[I],"touchstart",function($i){Vi($i,!0)})}var pm={"click-rail":function gv(a){a.event.bind(a.scrollbarY,"mousedown",function(i){return i.stopPropagation()}),a.event.bind(a.scrollbarYRail,"mousedown",function(i){var c=i.pageY-window.pageYOffset-a.scrollbarYRail.getBoundingClientRect().top;a.element.scrollTop+=(c>a.scrollbarYTop?1:-1)*a.containerHeight,kl(a),i.stopPropagation()}),a.event.bind(a.scrollbarX,"mousedown",function(i){return i.stopPropagation()}),a.event.bind(a.scrollbarXRail,"mousedown",function(i){var c=i.pageX-window.pageXOffset-a.scrollbarXRail.getBoundingClientRect().left;a.element.scrollLeft+=(c>a.scrollbarXLeft?1:-1)*a.containerWidth,kl(a),i.stopPropagation()})},"drag-thumb":function hm(a){td(a,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),td(a,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function Mf(a){var s=a.element;a.event.bind(a.ownerDocument,"keydown",function(C){if(!(C.isDefaultPrevented&&C.isDefaultPrevented()||C.defaultPrevented)&&(Jc(s,":hover")||Jc(a.scrollbarX,":focus")||Jc(a.scrollbarY,":focus"))){var I=document.activeElement?document.activeElement:a.ownerDocument.activeElement;if(I){if("IFRAME"===I.tagName)I=I.contentDocument.activeElement;else for(;I.shadowRoot;)I=I.shadowRoot.activeElement;if(function If(a){return Jc(a,"input,[contenteditable]")||Jc(a,"select,[contenteditable]")||Jc(a,"textarea,[contenteditable]")||Jc(a,"button,[contenteditable]")}(I))return}var H=0,re=0;switch(C.which){case 37:H=C.metaKey?-a.contentWidth:C.altKey?-a.containerWidth:-30;break;case 38:re=C.metaKey?a.contentHeight:C.altKey?a.containerHeight:30;break;case 39:H=C.metaKey?a.contentWidth:C.altKey?a.containerWidth:30;break;case 40:re=C.metaKey?-a.contentHeight:C.altKey?-a.containerHeight:-30;break;case 32:re=C.shiftKey?a.containerHeight:-a.containerHeight;break;case 33:re=a.containerHeight;break;case 34:re=-a.containerHeight;break;case 36:re=a.contentHeight;break;case 35:re=-a.contentHeight;break;default:return}a.settings.suppressScrollX&&0!==H||a.settings.suppressScrollY&&0!==re||(s.scrollTop-=re,s.scrollLeft+=H,kl(a),function h(C,I){var H=Math.floor(s.scrollTop);if(0===C){if(!a.scrollbarYActive)return!1;if(0===H&&I>0||H>=a.contentHeight-a.containerHeight&&I<0)return!a.settings.wheelPropagation}var re=s.scrollLeft;if(0===I){if(!a.scrollbarXActive)return!1;if(0===re&&C<0||re>=a.contentWidth-a.containerWidth&&C>0)return!a.settings.wheelPropagation}return!0}(H,re)&&C.preventDefault())}})},wheel:function fm(a){var s=a.element;function C(I){var H=function c(I){var H=I.deltaX,re=-1*I.deltaY;return(typeof H>"u"||typeof re>"u")&&(H=-1*I.wheelDeltaX/6,re=I.wheelDeltaY/6),I.deltaMode&&1===I.deltaMode&&(H*=10,re*=10),H!=H&&re!=re&&(H=0,re=I.wheelDelta),I.shiftKey?[-re,-H]:[H,re]}(I),re=H[0],Fe=H[1];if(!function h(I,H,re){if(!ed.isWebKit&&s.querySelector("select:focus"))return!0;if(!s.contains(I))return!1;for(var Fe=I;Fe&&Fe!==s;){if(Fe.classList.contains(ds.element.consuming))return!0;var Pt=pa(Fe);if(re&&Pt.overflowY.match(/(scroll|auto)/)){var Gt=Fe.scrollHeight-Fe.clientHeight;if(Gt>0&&(Fe.scrollTop>0&&re<0||Fe.scrollTop0))return!0}if(H&&Pt.overflowX.match(/(scroll|auto)/)){var Hn=Fe.scrollWidth-Fe.clientWidth;if(Hn>0&&(Fe.scrollLeft>0&&H<0||Fe.scrollLeft0))return!0}Fe=Fe.parentNode}return!1}(I.target,re,Fe)){var Pt=!1;a.settings.useBothWheelAxes?a.scrollbarYActive&&!a.scrollbarXActive?(Fe?s.scrollTop-=Fe*a.settings.wheelSpeed:s.scrollTop+=re*a.settings.wheelSpeed,Pt=!0):a.scrollbarXActive&&!a.scrollbarYActive&&(re?s.scrollLeft+=re*a.settings.wheelSpeed:s.scrollLeft-=Fe*a.settings.wheelSpeed,Pt=!0):(s.scrollTop-=Fe*a.settings.wheelSpeed,s.scrollLeft+=re*a.settings.wheelSpeed),kl(a),Pt=Pt||function i(I,H){var re=Math.floor(s.scrollTop),Fe=0===s.scrollTop,Pt=re+s.offsetHeight===s.scrollHeight,Gt=0===s.scrollLeft,Hn=s.scrollLeft+s.offsetWidth===s.scrollWidth;return!(Math.abs(H)>Math.abs(I)?Fe||Pt:Gt||Hn)||!a.settings.wheelPropagation}(re,Fe),Pt&&!I.ctrlKey&&(I.stopPropagation(),I.preventDefault())}}typeof window.onwheel<"u"?a.event.bind(s,"wheel",C):typeof window.onmousewheel<"u"&&a.event.bind(s,"mousewheel",C)},touch:function jb(a){if(ed.supportsTouch||ed.supportsIePointer){var s=a.element,h={},C=0,I={},H=null;ed.supportsTouch?(a.event.bind(s,"touchstart",Pt),a.event.bind(s,"touchmove",Hn),a.event.bind(s,"touchend",bn)):ed.supportsIePointer&&(window.PointerEvent?(a.event.bind(s,"pointerdown",Pt),a.event.bind(s,"pointermove",Hn),a.event.bind(s,"pointerup",bn)):window.MSPointerEvent&&(a.event.bind(s,"MSPointerDown",Pt),a.event.bind(s,"MSPointerMove",Hn),a.event.bind(s,"MSPointerUp",bn)))}function c(Cn,fi){s.scrollTop-=fi,s.scrollLeft-=Cn,kl(a)}function re(Cn){return Cn.targetTouches?Cn.targetTouches[0]:Cn}function Fe(Cn){return!(Cn.pointerType&&"pen"===Cn.pointerType&&0===Cn.buttons||!(Cn.targetTouches&&1===Cn.targetTouches.length||Cn.pointerType&&"mouse"!==Cn.pointerType&&Cn.pointerType!==Cn.MSPOINTER_TYPE_MOUSE))}function Pt(Cn){if(Fe(Cn)){var fi=re(Cn);h.pageX=fi.pageX,h.pageY=fi.pageY,C=(new Date).getTime(),null!==H&&clearInterval(H)}}function Hn(Cn){if(Fe(Cn)){var fi=re(Cn),Fi={pageX:fi.pageX,pageY:fi.pageY},Vi=Fi.pageX-h.pageX,$i=Fi.pageY-h.pageY;if(function Gt(Cn,fi,Fi){if(!s.contains(Cn))return!1;for(var Vi=Cn;Vi&&Vi!==s;){if(Vi.classList.contains(ds.element.consuming))return!0;var $i=pa(Vi);if(Fi&&$i.overflowY.match(/(scroll|auto)/)){var ro=Vi.scrollHeight-Vi.clientHeight;if(ro>0&&(Vi.scrollTop>0&&Fi<0||Vi.scrollTop0))return!0}if(fi&&$i.overflowX.match(/(scroll|auto)/)){var go=Vi.scrollWidth-Vi.clientWidth;if(go>0&&(Vi.scrollLeft>0&&fi<0||Vi.scrollLeft0))return!0}Vi=Vi.parentNode}return!1}(Cn.target,Vi,$i))return;c(Vi,$i),h=Fi;var ro=(new Date).getTime(),go=ro-C;go>0&&(I.x=Vi/go,I.y=$i/go,C=ro),function i(Cn,fi){var Fi=Math.floor(s.scrollTop),Vi=s.scrollLeft,$i=Math.abs(Cn),ro=Math.abs(fi);if(ro>$i){if(fi<0&&Fi===a.contentHeight-a.containerHeight||fi>0&&0===Fi)return 0===window.scrollY&&fi>0&&ed.isChrome}else if($i>ro&&(Cn<0&&Vi===a.contentWidth-a.containerWidth||Cn>0&&0===Vi))return!0;return!0}(Vi,$i)&&Cn.preventDefault()}}function bn(){a.settings.swipeEasing&&(clearInterval(H),H=setInterval(function(){a.isInitialized?clearInterval(H):I.x||I.y?Math.abs(I.x)<.01&&Math.abs(I.y)<.01?clearInterval(H):a.element?(c(30*I.x,30*I.y),I.x*=.8,I.y*=.8):clearInterval(H):clearInterval(H)},10))}}},nd=function(s,i){var c=this;if(void 0===i&&(i={}),"string"==typeof s&&(s=document.querySelector(s)),!s||!s.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var h in this.element=s,s.classList.add(ds.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},i)this.settings[h]=i[h];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Pt,Fe,C=function(){return s.classList.add(ds.state.focus)},I=function(){return s.classList.remove(ds.state.focus)};this.isRtl="rtl"===pa(s).direction,!0===this.isRtl&&s.classList.add(ds.rtl),this.isNegativeScroll=(Fe=s.scrollLeft,s.scrollLeft=-1,Pt=s.scrollLeft<0,s.scrollLeft=Fe,Pt),this.negativeScrollAdjustment=this.isNegativeScroll?s.scrollWidth-s.clientWidth:0,this.event=new Ju,this.ownerDocument=s.ownerDocument||document,this.scrollbarXRail=na(ds.element.rail("x")),s.appendChild(this.scrollbarXRail),this.scrollbarX=na(ds.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",C),this.event.bind(this.scrollbarX,"blur",I),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var H=pa(this.scrollbarXRail);this.scrollbarXBottom=parseInt(H.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=xo(H.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=xo(H.borderLeftWidth)+xo(H.borderRightWidth),bo(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=xo(H.marginLeft)+xo(H.marginRight),bo(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=na(ds.element.rail("y")),s.appendChild(this.scrollbarYRail),this.scrollbarY=na(ds.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",C),this.event.bind(this.scrollbarY,"blur",I),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var re=pa(this.scrollbarYRail);this.scrollbarYRight=parseInt(re.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=xo(re.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function Ub(a){var s=pa(a);return xo(s.width)+xo(s.paddingLeft)+xo(s.paddingRight)+xo(s.borderLeftWidth)+xo(s.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=xo(re.borderTopWidth)+xo(re.borderBottomWidth),bo(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=xo(re.marginTop)+xo(re.marginBottom),bo(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:s.scrollLeft<=0?"start":s.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:s.scrollTop<=0?"start":s.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Fe){return pm[Fe](c)}),this.lastScrollTop=Math.floor(s.scrollTop),this.lastScrollLeft=s.scrollLeft,this.event.bind(this.element,"scroll",function(Fe){return c.onScroll(Fe)}),kl(this)};nd.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,bo(this.scrollbarXRail,{display:"block"}),bo(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=xo(pa(this.scrollbarXRail).marginLeft)+xo(pa(this.scrollbarXRail).marginRight),this.railYMarginHeight=xo(pa(this.scrollbarYRail).marginTop)+xo(pa(this.scrollbarYRail).marginBottom),bo(this.scrollbarXRail,{display:"none"}),bo(this.scrollbarYRail,{display:"none"}),kl(this),qu(this,"top",0,!1,!0),qu(this,"left",0,!1,!0),bo(this.scrollbarXRail,{display:""}),bo(this.scrollbarYRail,{display:""}))},nd.prototype.onScroll=function(s){this.isAlive&&(kl(this),qu(this,"top",this.element.scrollTop-this.lastScrollTop),qu(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},nd.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Zu(this.scrollbarX),Zu(this.scrollbarY),Zu(this.scrollbarXRail),Zu(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},nd.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(s){return!s.match(/^ps([-_].+|)$/)}).join(" ")};const eu=nd;var mm=v(152);let gm=(()=>{class a{constructor(){this._elementRef=(0,o.WQX)(o.aKT),this._platform=(0,o.WQX)(me.OD),this.angorScrollbar=!0,this._ps=null,this._unsubscribeAll=new zr.B}get elementRef(){return this._elementRef}get ps(){return this._ps}ngOnChanges(i){"angorScrollbar"in i&&(this.angorScrollbar=(0,ih.he)(i.angorScrollbar.currentValue),this.angorScrollbar?this._initScrollbar():this._destroyScrollbar()),"angorScrollbarOptions"in i&&(this._options=(0,fv.A)({},this._options,i.angorScrollbarOptions.currentValue),this._reinitializeScrollbar())}ngOnInit(){(0,wc.R)(window,"resize").pipe((0,Kr.Q)(this._unsubscribeAll),(0,mm.B)(150)).subscribe(()=>this.update())}ngOnDestroy(){this._destroyScrollbar(),this._unsubscribeAll.next(),this._unsubscribeAll.complete()}isEnabled(){return this.angorScrollbar}update(){this._ps?.update()}destroy(){this.ngOnDestroy()}geometry(i="scroll"){return new Fb(this._elementRef.nativeElement[`${i}Left`],this._elementRef.nativeElement[`${i}Top`],this._elementRef.nativeElement[`${i}Width`],this._elementRef.nativeElement[`${i}Height`])}position(i=!1){return!i&&this._ps?new hv(this._ps.reach.x||0,this._ps.reach.y||0):new hv(this._elementRef.nativeElement.scrollLeft,this._elementRef.nativeElement.scrollTop)}scrollTo(i,c,h){null==c&&null==h?this.animateScrolling("scrollTop",i,h):(null!=i&&this.scrollToX(i,h),null!=c&&this.scrollToY(c,h))}scrollToX(i,c){this.animateScrolling("scrollLeft",i,c)}scrollToY(i,c){this.animateScrolling("scrollTop",i,c)}scrollToTop(i=0,c){this.animateScrolling("scrollTop",i,c)}scrollToBottom(i=0,c){this.animateScrolling("scrollTop",this._elementRef.nativeElement.scrollHeight-this._elementRef.nativeElement.clientHeight-i,c)}scrollToLeft(i=0,c){this.animateScrolling("scrollLeft",i,c)}scrollToRight(i=0,c){this.animateScrolling("scrollLeft",this._elementRef.nativeElement.scrollWidth-this._elementRef.nativeElement.clientWidth-i,c)}scrollToElement(i,c=0,h=!1,C){const I=this._elementRef.nativeElement.querySelector(i);if(!I)return;const H=I.getBoundingClientRect(),re=this._elementRef.nativeElement.getBoundingClientRect();this._elementRef.nativeElement.classList.contains("ps--active-x")&&this._scrollToInAxis(H.left,re.left,"scrollLeft",c,h,C),this._elementRef.nativeElement.classList.contains("ps--active-y")&&this._scrollToInAxis(H.top,re.top,"scrollTop",c,h,C)}animateScrolling(i,c,h){this._animation&&window.cancelAnimationFrame(this._animation),!h||typeof window>"u"?this._elementRef.nativeElement[i]=c:c!==this._elementRef.nativeElement[i]&&this._smoothScroll(i,c,h)}_initScrollbar(){this._ps||this._platform.ANDROID||this._platform.IOS||!this._platform.isBrowser||(this._ps=new eu(this._elementRef.nativeElement,{...this._options}))}_destroyScrollbar(){this._ps?.destroy(),this._ps=null}_reinitializeScrollbar(){setTimeout(()=>this._destroyScrollbar()),setTimeout(()=>this._initScrollbar())}_scrollToInAxis(i,c,h,C,I,H){I&&i<=c-Math.abs(C)||this.animateScrolling(h,i-c+this._elementRef.nativeElement[h]+C,H)}_smoothScroll(i,c,h){let C=0,I=this._elementRef.nativeElement[i];const H=(I-c)/2;let re=performance.now();const Fe=Pt=>{C+=Math.PI/(h/(Pt-re));const Gt=Math.round(c+H+H*Math.cos(C));this._elementRef.nativeElement[i]===I&&(C>=Math.PI?this.animateScrolling(i,c,0):(this._elementRef.nativeElement[i]=Gt,I=this._elementRef.nativeElement[i],re=Pt,this._animation=window.requestAnimationFrame(Fe)))};window.requestAnimationFrame(Fe)}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275dir=o.FsC({type:a,selectors:[["","angorScrollbar",""]],inputs:{angorScrollbar:"angorScrollbar",angorScrollbarOptions:"angorScrollbarOptions"},exportAs:["angorScrollbar"],standalone:!0,features:[o.OA$]})}return a})();var Nl=v(7987);const $b=["navigationContent"],vv=[[["","angorVerticalNavigationHeader",""]],[["","angorVerticalNavigationContentHeader",""]],[["","angorVerticalNavigationFooter",""]]],_v=["[angorVerticalNavigationHeader]","[angorVerticalNavigationContentHeader]","[angorVerticalNavigationFooter]"],yv=a=>({wheelPropagation:a,suppressScrollX:!0}),vm=()=>({wheelPropagation:!1,suppressScrollX:!0});function bv(a,s){if(1&a){const i=o.RV6();o.j41(0,"angor-vertical-navigation-aside-item",10),o.bIt("click",function(){o.eBV(i);const h=o.XpG(2).$implicit,C=o.XpG();return o.Njj(C.toggleAside(h))}),o.k0s()}if(2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("activeItemId",c.activeAsideItemId)("autoCollapse",c.autoCollapse)("skipChildren",!0)}}function Of(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",8),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function tu(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function wv(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",8),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function _m(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function ah(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",8),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Ev(a,s){if(1&a&&o.DNE(0,bv,1,5,"angor-vertical-navigation-aside-item",7)(1,Of,1,2,"angor-vertical-navigation-basic-item",8)(2,tu,1,3,"angor-vertical-navigation-collapsable-item",9)(3,wv,1,2,"angor-vertical-navigation-divider-item",8)(4,_m,1,3,"angor-vertical-navigation-group-item",9)(5,ah,1,2,"angor-vertical-navigation-spacer-item",8),2&a){const i=o.XpG().$implicit;o.vxM("aside"===i.type?0:-1),o.R7$(),o.vxM("basic"===i.type?1:-1),o.R7$(),o.vxM("collapsable"===i.type?2:-1),o.R7$(),o.vxM("divider"===i.type?3:-1),o.R7$(),o.vxM("group"===i.type?4:-1),o.R7$(),o.vxM("spacer"===i.type?5:-1)}}function ym(a,s){if(1&a&&o.DNE(0,Ev,6,6),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function Rf(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-aside-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function zb(a,s){if(1&a&&o.DNE(0,Rf,1,3,"angor-vertical-navigation-aside-item",9),2&a){const i=o.XpG().$implicit,c=o.XpG(2);o.vxM("aside"===i.type&&i.id===c.activeAsideItemId?0:-1)}}function Cv(a,s){if(1&a&&o.DNE(0,zb,1,1),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function Wb(a,s){if(1&a&&(o.j41(0,"div",6),o.Z7z(1,Cv,1,1,null,null,o.BUC().trackByFn,!0),o.k0s()),2&a){const i=o.XpG();o.Y8G("angorScrollbarOptions",o.lJ4(5,vm))("@fadeInLeft","left"===i.position)("@fadeInRight","right"===i.position)("@fadeOutLeft","left"===i.position)("@fadeOutRight","right"===i.position),o.R7$(),o.Dyx(i.navigation)}}let Dv=(()=>{class a{constructor(){this._animationBuilder=(0,o.WQX)(mi.S6),this._changeDetectorRef=(0,o.WQX)(o.gRc),this._document=(0,o.WQX)(nt.qQ),this._elementRef=(0,o.WQX)(o.aKT),this._renderer2=(0,o.WQX)(o.sFG),this._router=(0,o.WQX)(y.Ix),this._scrollStrategyOptions=(0,o.WQX)(Nl.Tv),this._angorNavigationService=(0,o.WQX)(Da),this._angorUtilsService=(0,o.WQX)(Dt.Q),this.appearance="default",this.autoCollapse=!0,this.inner=!1,this.mode="side",this.name=this._angorUtilsService.randomId(),this.opened=!0,this.position="left",this.transparentOverlay=!1,this.appearanceChanged=new o.bkB,this.modeChanged=new o.bkB,this.openedChanged=new o.bkB,this.positionChanged=new o.bkB,this.activeAsideItemId=null,this.onCollapsableItemCollapsed=new nh.m(1),this.onCollapsableItemExpanded=new nh.m(1),this.onRefreshed=new nh.m(1),this._animationsEnabled=!1,this._hovered=!1,this._scrollStrategy=this._scrollStrategyOptions.block(),this._unsubscribeAll=new zr.B,this._handleAsideOverlayClick=()=>{this.closeAside()},this._handleOverlayClick=()=>{this.close()}}get classList(){return{"angor-vertical-navigation-animations-enabled":this._animationsEnabled,[`angor-vertical-navigation-appearance-${this.appearance}`]:!0,"angor-vertical-navigation-hover":this._hovered,"angor-vertical-navigation-inner":this.inner,"angor-vertical-navigation-mode-over":"over"===this.mode,"angor-vertical-navigation-mode-side":"side"===this.mode,"angor-vertical-navigation-opened":this.opened,"angor-vertical-navigation-position-left":"left"===this.position,"angor-vertical-navigation-position-right":"right"===this.position}}get styleList(){return{visibility:this.opened?"visible":"hidden"}}set angorScrollbarDirectives(i){this._angorScrollbarDirectives=i,0!==i.length&&(this._angorScrollbarDirectivesSubscription&&this._angorScrollbarDirectivesSubscription.unsubscribe(),this._angorScrollbarDirectivesSubscription=(0,ol.h)(this.onCollapsableItemCollapsed,this.onCollapsableItemExpanded).pipe((0,Kr.Q)(this._unsubscribeAll),(0,Re.c)(250)).subscribe(()=>{i.forEach(c=>{c.update()})}))}_onMouseenter(){this._enableAnimations(),this._hovered=!0}_onMouseleave(){this._enableAnimations(),this._hovered=!1}ngOnChanges(i){if("appearance"in i&&this.appearanceChanged.next(i.appearance.currentValue),"inner"in i&&(this.inner=(0,ih.he)(i.inner.currentValue)),"mode"in i){const c=i.mode.currentValue,h=i.mode.previousValue;this._disableAnimations(),"over"===h&&"side"===c&&this._hideOverlay(),"side"===h&&"over"===c&&(this.closeAside(),this.opened&&this._showOverlay()),this.modeChanged.next(c),setTimeout(()=>{this._enableAnimations()},500)}"navigation"in i&&this._changeDetectorRef.markForCheck(),"opened"in i&&(this.opened=(0,ih.he)(i.opened.currentValue),this._toggleOpened(this.opened)),"position"in i&&this.positionChanged.next(i.position.currentValue),"transparentOverlay"in i&&(this.transparentOverlay=(0,ih.he)(i.transparentOverlay.currentValue))}ngOnInit(){""===this.name&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this),this._router.events.pipe((0,At.p)(i=>i instanceof y.wF),(0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{"over"===this.mode&&this.opened&&this.close(),"side"===this.mode&&this.activeAsideItemId&&this.closeAside()})}ngAfterViewInit(){this._mutationObserver=new MutationObserver(i=>{i.forEach(c=>{const h=c.target;if("class"===c.attributeName)if(h.classList.contains("cdk-global-scrollblock")){const C=parseInt(h.style.top,10);this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",`${Math.abs(C)}px`)}else this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",null)})}),this._mutationObserver.observe(this._document.documentElement,{attributes:!0,attributeFilter:["class"]}),setTimeout(()=>{if(this._navigationContentEl)if(this._navigationContentEl.nativeElement.classList.contains("ps"))this._angorScrollbarDirectives.forEach(i=>{i.isEnabled()&&i.scrollToElement(".angor-vertical-navigation-item-active",-120,!0)});else{const i=this._navigationContentEl.nativeElement.querySelector(".angor-vertical-navigation-item-active");i&&i.scrollIntoView()}})}ngOnDestroy(){this._mutationObserver.disconnect(),this.close(),this.closeAside(),this._angorNavigationService.deregisterComponent(this.name),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}refresh(){this._changeDetectorRef.markForCheck(),this.onRefreshed.next(!0)}open(){this.opened||this._toggleOpened(!0)}close(){this.opened&&(this.closeAside(),this._toggleOpened(!1))}toggle(){this.opened?this.close():this.open()}openAside(i){i.disabled||!i.id||(this.activeAsideItemId=i.id,this._showAsideOverlay(),this._changeDetectorRef.markForCheck())}closeAside(){this.activeAsideItemId=null,this._hideAsideOverlay(),this._changeDetectorRef.markForCheck()}toggleAside(i){this.activeAsideItemId===i.id?this.closeAside():this.openAside(i)}trackByFn(i,c){return c.id||i}_enableAnimations(){this._animationsEnabled||(this._animationsEnabled=!0)}_disableAnimations(){this._animationsEnabled&&(this._animationsEnabled=!1)}_showOverlay(){this._asideOverlay||(this._overlay=this._renderer2.createElement("div"),this._overlay.classList.add("angor-vertical-navigation-overlay"),this.transparentOverlay&&this._overlay.classList.add("angor-vertical-navigation-overlay-transparent"),this._renderer2.appendChild(this._elementRef.nativeElement.parentElement,this._overlay),this._scrollStrategy.enable(),this._player=this._animationBuilder.build([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({opacity:1}))]).create(this._overlay),this._player.play(),this._overlay.addEventListener("click",this._handleOverlayClick))}_hideOverlay(){this._overlay&&(this._player=this._animationBuilder.build([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({opacity:0}))]).create(this._overlay),this._player.play(),this._player.onDone(()=>{this._overlay&&(this._overlay.removeEventListener("click",this._handleOverlayClick),this._overlay.parentNode.removeChild(this._overlay),this._overlay=null),this._scrollStrategy.disable()}))}_showAsideOverlay(){this._asideOverlay||(this._asideOverlay=this._renderer2.createElement("div"),this._asideOverlay.classList.add("angor-vertical-navigation-aside-overlay"),this._renderer2.appendChild(this._elementRef.nativeElement.parentElement,this._asideOverlay),this._player=this._animationBuilder.build([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({opacity:1}))]).create(this._asideOverlay),this._player.play(),this._asideOverlay.addEventListener("click",this._handleAsideOverlayClick))}_hideAsideOverlay(){this._asideOverlay&&(this._player=this._animationBuilder.build([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({opacity:0}))]).create(this._asideOverlay),this._player.play(),this._player.onDone(()=>{this._asideOverlay&&(this._asideOverlay.removeEventListener("click",this._handleAsideOverlayClick),this._asideOverlay.parentNode.removeChild(this._asideOverlay),this._asideOverlay=null)}))}_toggleOpened(i){this.opened=i,this._enableAnimations(),"over"===this.mode&&(this.opened?this._showOverlay():this._hideOverlay()),this.openedChanged.next(i)}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation"]],viewQuery:function(c,h){if(1&c&&(o.GBs($b,5),o.GBs(gm,5)),2&c){let C;o.mGM(C=o.lsd())&&(h._navigationContentEl=C.first),o.mGM(C=o.lsd())&&(h.angorScrollbarDirectives=C)}},hostVars:4,hostBindings:function(c,h){1&c&&o.bIt("mouseenter",function(){return h._onMouseenter()})("mouseleave",function(){return h._onMouseleave()}),2&c&&(o.Aen(h.styleList),o.HbH(h.classList))},inputs:{appearance:"appearance",autoCollapse:"autoCollapse",inner:"inner",mode:"mode",name:"name",navigation:"navigation",opened:"opened",position:"position",transparentOverlay:"transparentOverlay"},outputs:{appearanceChanged:"appearanceChanged",modeChanged:"modeChanged",openedChanged:"openedChanged",positionChanged:"positionChanged"},exportAs:["angorVerticalNavigation"],standalone:!0,features:[o.OA$,o.aNF],ngContentSelectors:_v,decls:12,vars:4,consts:[["navigationContent",""],[1,"angor-vertical-navigation-wrapper"],[1,"angor-vertical-navigation-header"],["angorScrollbar","",1,"angor-vertical-navigation-content",3,"angorScrollbarOptions"],[1,"angor-vertical-navigation-content-header"],[1,"angor-vertical-navigation-footer"],["angorScrollbar","",1,"angor-vertical-navigation-aside-wrapper",3,"angorScrollbarOptions"],[3,"item","name","activeItemId","autoCollapse","skipChildren"],[3,"item","name"],[3,"item","name","autoCollapse"],[3,"click","item","name","activeItemId","autoCollapse","skipChildren"]],template:function(c,h){1&c&&(o.NAR(vv),o.j41(0,"div",1)(1,"div",2),o.SdG(2),o.k0s(),o.j41(3,"div",3,0)(5,"div",4),o.SdG(6,1),o.k0s(),o.Z7z(7,ym,1,1,null,null,h.trackByFn,!0),o.k0s(),o.j41(9,"div",5),o.SdG(10,2),o.k0s()(),o.DNE(11,Wb,3,6,"div",6)),2&c&&(o.R7$(3),o.Y8G("angorScrollbarOptions",o.eq3(2,yv,h.inner)),o.R7$(4),o.Dyx(h.navigation),o.R7$(4),o.vxM(h.activeAsideItemId?11:-1))},dependencies:[gm,dv,Qu,lv,Df,sv,Rl],styles:[':root{--angor-vertical-navigation-width: 280px}angor-vertical-navigation{position:sticky;display:flex;flex-direction:column;flex:1 0 auto;top:0;width:var(--angor-vertical-navigation-width);min-width:var(--angor-vertical-navigation-width);max-width:var(--angor-vertical-navigation-width);height:100vh;min-height:100vh;max-height:100vh;z-index:200}angor-vertical-navigation.angor-vertical-navigation-animations-enabled{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:visibility,margin-left,margin-right,transform,width,max-width,min-width}angor-vertical-navigation.angor-vertical-navigation-animations-enabled .angor-vertical-navigation-wrapper{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:width,max-width,min-width}angor-vertical-navigation.angor-vertical-navigation-mode-over{position:fixed;top:0;bottom:0}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-over{left:0;transform:translate3d(-100%,0,0)}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-over.angor-vertical-navigation-opened{transform:translateZ(0)}angor-vertical-navigation.angor-vertical-navigation-position-left .angor-vertical-navigation-wrapper{left:0}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-over{right:0;transform:translate3d(100%,0,0)}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-over.angor-vertical-navigation-opened{transform:translateZ(0)}angor-vertical-navigation.angor-vertical-navigation-position-right .angor-vertical-navigation-wrapper{right:0}angor-vertical-navigation.angor-vertical-navigation-inner{position:relative;width:auto;min-width:0;max-width:none;height:auto;min-height:0;max-height:none;box-shadow:none}angor-vertical-navigation.angor-vertical-navigation-inner .angor-vertical-navigation-wrapper{position:relative;overflow:visible;height:auto}angor-vertical-navigation.angor-vertical-navigation-inner .angor-vertical-navigation-wrapper .angor-vertical-navigation-content{overflow:visible!important}angor-vertical-navigation .angor-vertical-navigation-wrapper{position:absolute;display:flex;flex:1 1 auto;flex-direction:column;top:0;bottom:0;width:100%;height:100%;overflow:hidden;z-index:10;background:inherit;box-shadow:inset -1px 0 0 var(--angor-border)}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content{flex:1 1 auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-divider-item{margin:24px 0}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-group-item{margin-top:24px}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper{position:absolute;display:flex;flex:1 1 auto;flex-direction:column;top:0;bottom:0;left:var(--angor-vertical-navigation-width);width:var(--angor-vertical-navigation-width);height:100%;z-index:5;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;transition-duration:.4s;transition-property:left,right;transition-timing-function:cubic-bezier(.25,.8,.25,1);background:inherit}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper>angor-vertical-navigation-aside-item{padding:24px 0}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper>angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper{display:none!important}angor-vertical-navigation.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-width)}angor-vertical-navigation angor-vertical-navigation-aside-item,angor-vertical-navigation angor-vertical-navigation-basic-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item,angor-vertical-navigation angor-vertical-navigation-divider-item,angor-vertical-navigation angor-vertical-navigation-group-item,angor-vertical-navigation angor-vertical-navigation-spacer-item{display:flex;flex-direction:column;flex:1 0 auto;-webkit-user-select:none;user-select:none}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{position:relative;display:flex;align-items:center;justify-content:flex-start;padding:10px 16px;font-size:13px;font-weight:500;line-height:20px;text-decoration:none;border-radius:6px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled{cursor:default;opacity:.4}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin-right:16px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{font-size:11px;line-height:1.5}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge{margin-left:auto}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;white-space:nowrap;height:20px}angor-vertical-navigation angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{margin:0 12px}angor-vertical-navigation angor-vertical-navigation-aside-item,angor-vertical-navigation angor-vertical-navigation-basic-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item{margin-bottom:4px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item{cursor:pointer}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge+.angor-vertical-navigation-item-arrow{margin-left:8px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{height:20px;line-height:20px;margin-left:auto;transition:transform .3s cubic-bezier(.25,.8,.25,1),color 375ms cubic-bezier(.25,.8,.25,1)}angor-vertical-navigation angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{transform:rotate(90deg)}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:first-child{margin-top:6px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:last-child{padding-bottom:6px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:last-child>.angor-vertical-navigation-item-children>*:last-child{padding-bottom:0}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding:10px 16px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children{overflow:hidden}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:56px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:72px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:88px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:104px}angor-vertical-navigation angor-vertical-navigation-divider-item{margin:12px 0}angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper{height:1px;box-shadow:0 1px}angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{display:none!important}angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}angor-vertical-navigation angor-vertical-navigation-spacer-item{margin:6px 0}.angor-vertical-navigation-overlay{position:absolute;inset:0;z-index:170;opacity:0;background-color:#0009}.angor-vertical-navigation-overlay+.angor-vertical-navigation-aside-overlay{background-color:transparent}.angor-vertical-navigation-aside-overlay{position:absolute;inset:0;z-index:169;opacity:0;background-color:#0000004d}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{color:currentColor}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{color:currentColor;opacity:.6}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{color:currentColor;opacity:.8}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{color:currentColor;opacity:.5}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced{background-color:rgb(3 33 40 / var(--tw-bg-opacity));--tw-bg-opacity: .05}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *){background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-bg-opacity: .12}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover{background-color:rgb(3 33 40 / var(--tw-bg-opacity));--tw-bg-opacity: .05}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *){background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-bg-opacity: .12}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{--tw-text-opacity: 1;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity));opacity:1}angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title:is(.dark *){--tw-text-opacity: 1;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity))}:root{--angor-vertical-navigation-compact-width: 112px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact{width:var(--angor-vertical-navigation-compact-width);min-width:var(--angor-vertical-navigation-compact-width);max-width:var(--angor-vertical-navigation-compact-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-compact-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-compact-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-compact-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper{margin:4px 8px 0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{flex-direction:column;justify-content:center;padding:12px;border-radius:6px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{margin-top:8px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{font-size:12px;font-weight:500;text-align:center;line-height:16px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{display:none!important}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge{position:absolute;top:12px;left:64px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item>angor-vertical-navigation-collapsable-item,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item>angor-vertical-navigation-collapsable-item{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-compact-width)}:root{--angor-vertical-navigation-width: 280px;--angor-vertical-navigation-dense-width: 80px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over){width:var(--angor-vertical-navigation-dense-width);min-width:var(--angor-vertical-navigation-dense-width);max-width:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-dense-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-dense-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-hover .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{width:calc(var(--angor-vertical-navigation-dense-width) - 24px);min-width:calc(var(--angor-vertical-navigation-dense-width) - 24px);max-width:calc(var(--angor-vertical-navigation-dense-width) - 24px)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item:first-of-type{margin-top:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{padding:10px 16px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{white-space:nowrap;opacity:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:before{content:"";position:absolute;top:20px;width:23px;border-top-width:2px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper{width:var(--angor-vertical-navigation-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{width:calc(var(--angor-vertical-navigation-width) - 24px);min-width:calc(var(--angor-vertical-navigation-width) - 24px);max-width:calc(var(--angor-vertical-navigation-width) - 24px)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{white-space:nowrap;animation:removeWhiteSpaceNoWrap 1ms linear .35s;animation-fill-mode:forwards}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-width)}@keyframes removeWhiteSpaceNoWrap{0%{white-space:nowrap}99%{white-space:nowrap}to{white-space:normal}}:root{--angor-vertical-navigation-thin-width: 80px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin{width:var(--angor-vertical-navigation-thin-width);min-width:var(--angor-vertical-navigation-thin-width);max-width:var(--angor-vertical-navigation-thin-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-thin-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-thin-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-thin-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item{flex-direction:column;justify-content:center;height:64px;min-height:64px;max-height:64px;padding:0 16px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper{display:flex;align-items:center;justify-content:center}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{justify-content:center;padding:12px;border-radius:4px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge-content,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge-content,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-collapsable-item{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-thin-width)}\n'],encapsulation:2,data:{animation:_f.F},changeDetection:0})}return a})();var xv=v(6939),Sv=v(6231);let Av=(()=>{class a{constructor(i){this.relayService=i,this.notificationSubject=new gt.t([]),this.notificationCount=new gt.t(0),this.lastNotificationTimestamp=null,this.initializeNotificationData()}initializeNotificationData(){this.notificationCount.next(this.loadCountFromLocalStorage()),this.lastNotificationTimestamp=this.loadTimestampFromLocalStorage()}loadCountFromLocalStorage(){const i=localStorage.getItem("notificationCount");return i?parseInt(i,10):0}loadTimestampFromLocalStorage(){const i=localStorage.getItem("lastNotificationTimestamp");return i?parseInt(i,10):null}saveNotificationData(i,c){localStorage.setItem("notificationCount",i.toString()),localStorage.setItem("lastNotificationTimestamp",c.toString())}getNotificationObservable(){return this.notificationSubject.asObservable()}getNotificationCount(){return this.notificationCount.asObservable()}loadFilterPreferences(){const i=localStorage.getItem("notificationSettings");return i?JSON.parse(i):[1,3,4,7,9735]}subscribeToNotifications(i){var c=this;return(0,G.A)(function*(){yield c.relayService.ensureConnectedRelays();const h=c.relayService.getPool(),C=c.relayService.getConnectedRelays();if(0===C.length)throw new Error("No connected relays");const I=c.loadTimestampFromLocalStorage(),H=c.loadFilterPreferences();0===H.length&&H.push(1,3,4,7,9735);const re={kinds:H,"#p":[i],limit:50,since:I||void 0};return new Promise(Fe=>{h.subscribeMany(C,[re],{onevent:Gt=>c.handleNotificationEvent(Gt,i),oneose(){Fe()}})})})()}handleNotificationEvent(i,c){if(this.isNotificationEvent(i,c)){const C=new Date(1e3*i.created_at);let I="",H="",re="";switch(i.kind){case 1:I="Mention",H="Mentioned you in an event.",re="heroicons_outline:at-symbol";break;case 4:I="Private Message",H="Sent a private message.",re="heroicons_outline:envelope-open";break;case 9735:I="Zap",H="Received a zap event.",re="feather:zap";break;case 3:I="New Follower",H="You have a new follower.",re="heroicons_outline:user-plus";break;case 7:I="New Like",H="You have a new Like.",re="heroicons_outline:hand-thumb-up";break;default:I="Notification",re="heroicons_outline:bell"}const Gt=[{id:i.id,icon:re,title:I,description:H,time:C,kind:i.kind,read:!1},...this.notificationSubject.value].slice(0,50);this.notificationSubject.next(Gt),this.incrementNotificationCount(i.created_at)}}incrementNotificationCount(i){const c=this.notificationCount.value+1;this.notificationCount.next(c),this.saveNotificationData(c,i)}markAllAsRead(){const i=this.notificationSubject.value.map(h=>({...h,read:!0}));this.notificationSubject.next(i),this.notificationCount.next(0);const c=Math.floor(Date.now()/1e3);this.saveNotificationData(0,c)}isNotificationEvent(i,c){return i.tags.some(h=>"p"===h[0]&&h[1]===c)}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(Sv.b))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var Zi=v(4930);const Tv=["notificationsOrigin"],Iv=["notificationsPanel"],id=a=>({unread:a}),Mv=(a,s)=>({"bg-gray-400 dark:bg-gray-500 sm:opacity-0 sm:group-hover:opacity-100":a,"bg-primary":s});function Ov(a,s){if(1&a&&(o.j41(0,"span",4)(1,"span",6),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(2),o.SpI(" ",i.unreadCount," ")}}function Gb(a,s){1&a&&o.eu8(0)}function kf(a,s){if(1&a&&(o.j41(0,"a",23),o.DNE(1,Gb,1,0,"ng-container",25),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.sdS(9);o.Y8G("href",i.link,o.B4B),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function nu(a,s){1&a&&o.eu8(0)}function bm(a,s){if(1&a&&(o.j41(0,"a",24),o.DNE(1,nu,1,0,"ng-container",25),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.sdS(9);o.Y8G("routerLink",i.link),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function lh(a,s){if(1&a&&o.DNE(0,kf,2,2,"a",23)(1,bm,2,2,"a",24),2&a){const i=o.XpG().$implicit;o.vxM(i.useRouter?-1:0),o.R7$(),o.vxM(i.useRouter?1:-1)}}function Rv(a,s){1&a&&o.eu8(0)}function wm(a,s){if(1&a&&(o.j41(0,"div",17),o.DNE(1,Rv,1,0,"ng-container",25),o.k0s()),2&a){o.XpG();const i=o.sdS(9);o.R7$(),o.Y8G("ngTemplateOutlet",i)}}function Em(a,s){if(1&a&&(o.j41(0,"div",26),o.nrm(1,"mat-icon",32),o.k0s()),2&a){const i=o.XpG(2).$implicit;o.R7$(),o.Y8G("svgIcon",i.icon)}}function Cm(a,s){if(1&a&&o.nrm(0,"img",27),2&a){const i=o.XpG(2).$implicit;o.Y8G("src",i.image,o.B4B)("alt","Notification image")}}function kv(a,s){if(1&a&&o.nrm(0,"div",29),2&a){const i=o.XpG(2).$implicit;o.Y8G("innerHTML",i.title,o.npT)}}function Dm(a,s){if(1&a&&o.nrm(0,"div",30),2&a){const i=o.XpG(2).$implicit;o.Y8G("innerHTML",i.description,o.npT)}}function Kb(a,s){if(1&a&&(o.DNE(0,Em,2,1,"div",26)(1,Cm,1,2,"img",27),o.j41(2,"div",28),o.DNE(3,kv,1,1,"div",29)(4,Dm,1,1,"div",30),o.j41(5,"div",31),o.EFF(6),o.nI1(7,"date"),o.k0s()()),2&a){const i=o.XpG().$implicit;o.vxM(i.icon&&!i.image?0:-1),o.R7$(),o.vxM(i.image?1:-1),o.R7$(2),o.vxM(i.title?3:-1),o.R7$(),o.vxM(i.description?4:-1),o.R7$(2),o.SpI(" ",o.i5U(7,5,i.time,"MMM dd, h:mm a")," ")}}function Xb(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",16),o.DNE(1,lh,2,2)(2,wm,2,1,"div",17),o.j41(3,"div",18)(4,"button",19),o.bIt("click",function(){const h=o.eBV(i).$implicit,C=o.XpG(2);return o.Njj(C.toggleRead(h))}),o.nrm(5,"span",20),o.k0s(),o.j41(6,"button",21),o.bIt("click",function(){const h=o.eBV(i).$implicit,C=o.XpG(2);return o.Njj(C.delete(h))}),o.nrm(7,"mat-icon",22),o.k0s()()(),o.DNE(8,Kb,8,8,"ng-template",null,2,o.C5r)}if(2&a){const i=s.$implicit;o.Y8G("ngClass",o.eq3(7,id,!i.read)),o.R7$(),o.vxM(i.link?1:-1),o.R7$(),o.vxM(i.link?-1:2),o.R7$(2),o.Y8G("matTooltip",i.read?"Mark as unread":"Mark as read"),o.R7$(),o.Y8G("ngClass",o.l_i(9,Mv,i.read,!i.read)),o.R7$(),o.Y8G("matTooltip","Remove"),o.R7$(),o.Y8G("svgIcon","heroicons_solid:x-mark")}}function Yb(a,s){1&a&&(o.j41(0,"div",15)(1,"div",33),o.nrm(2,"mat-icon",34),o.k0s(),o.j41(3,"div",35),o.EFF(4," No notifications "),o.k0s(),o.j41(5,"div",36),o.EFF(6," When you have notifications, they will appear here. "),o.k0s()()),2&a&&(o.R7$(2),o.Y8G("svgIcon","heroicons_outline:bell"))}function Nv(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"button",3),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.closePanel())}),o.nrm(4,"mat-icon",10),o.k0s()(),o.j41(5,"div",11),o.EFF(6,"Notifications"),o.k0s(),o.j41(7,"div",12)(8,"button",13),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.markAllAsRead())}),o.nrm(9,"mat-icon",10),o.k0s()()(),o.j41(10,"div",14),o.Z7z(11,Xb,10,12,null,null,o.BUC().trackByFn,!0),o.DNE(13,Yb,7,1,"div",15),o.k0s()()}if(2&a){const i=o.XpG();o.R7$(4),o.Y8G("svgIcon","heroicons_solid:x-mark"),o.R7$(4),o.Y8G("matTooltip","Mark all as read")("disabled",0===i.unreadCount),o.R7$(),o.Y8G("svgIcon","heroicons_solid:envelope-open"),o.R7$(2),o.Dyx(i.notifications),o.R7$(2),o.vxM(i.notifications&&i.notifications.length?-1:13)}}let Pv=(()=>{class a{constructor(i,c,h,C,I){this._notificationService=i,this._changeDetectorRef=c,this._overlay=h,this._viewContainerRef=C,this._signerService=I,this.notifications=[],this.unreadCount=0,this._unsubscribeAll=new zr.B}ngOnInit(){const i=this._signerService.getPublicKey();this._notificationService.subscribeToNotifications(i).then(()=>{this._notificationService.getNotificationObservable().pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(c=>{this.notifications=c,this._changeDetectorRef.markForCheck()}),this._notificationService.getNotificationCount().pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(c=>{this.unreadCount=c,this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openPanel(){!this._notificationsPanel||!this._notificationsOrigin||(this._overlayRef||this._createOverlay(),this._overlayRef.attach(new xv.VA(this._notificationsPanel,this._viewContainerRef)))}closePanel(){this._overlayRef&&this._overlayRef.detach()}markAllAsRead(){this._notificationService.markAllAsRead()}toggleRead(i){i.read=!i.read}trackByFn(i,c){return c.id}_createOverlay(){this._overlayRef=this._overlay.create({hasBackdrop:!0,backdropClass:"angor-backdrop-on-mobile",scrollStrategy:this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().flexibleConnectedTo(this._notificationsOrigin._elementRef.nativeElement).withLockedPosition(!0).withPush(!0).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"}])}),this._overlayRef.backdropClick().subscribe(()=>{this._overlayRef.detach()})}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(Av),o.rXU(o.gRc),o.rXU(Nl.hJ),o.rXU(o.c1b),o.rXU(Zi.A))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["notifications"]],viewQuery:function(c,h){if(1&c&&(o.GBs(Tv,5),o.GBs(Iv,5)),2&c){let C;o.mGM(C=o.lsd())&&(h._notificationsOrigin=C.first),o.mGM(C=o.lsd())&&(h._notificationsPanel=C.first)}},exportAs:["notifications"],standalone:!0,features:[o.aNF],decls:6,vars:2,consts:[["notificationsOrigin",""],["notificationsPanel",""],["notificationContent",""],["mat-icon-button","",3,"click"],[1,"absolute","left-0","right-0","top-0","flex","h-3","items-center","justify-center"],[3,"svgIcon"],[1,"ml-4","mt-2.5","flex","h-4","min-w-4","shrink-0","items-center","justify-center","rounded-full","bg-teal-600","px-1","text-xs","font-medium","text-indigo-50"],[1,"fixed","inset-0","flex","flex-col","overflow-hidden","shadow-lg","sm:static","sm:inset-auto","sm:w-90","sm:min-w-90","sm:rounded-2xl"],[1,"flex","shrink-0","items-center","bg-primary","py-4","pl-6","pr-4","text-on-primary"],[1,"-ml-1","mr-3","sm:hidden"],[1,"text-current","icon-size-5",3,"svgIcon"],[1,"text-lg","font-medium","leading-10"],[1,"ml-auto"],["mat-icon-button","",1,"dark:text-white",3,"click","matTooltip","disabled"],[1,"bg-card","relative","flex","flex-auto","flex-col","divide-y","overflow-y-auto","sm:max-h-120"],[1,"flex","flex-auto","flex-col","items-center","justify-center","px-8","py-12","sm:justify-start"],[1,"group","flex","hover:bg-gray-50","dark:hover:bg-black","dark:hover:bg-opacity-5",3,"ngClass"],[1,"flex","flex-auto","py-5","pl-6"],[1,"relative","my-5","ml-2","mr-6","flex","flex-col"],["mat-icon-button","",1,"h-6","min-h-6","w-6",3,"click","matTooltip"],[1,"h-2","w-2","rounded-full",3,"ngClass"],["mat-icon-button","",1,"h-6","min-h-6","w-6","sm:opacity-0","sm:group-hover:opacity-100",3,"click","matTooltip"],[1,"icon-size-4",3,"svgIcon"],[1,"flex","flex-auto","cursor-pointer","py-5","pl-6",3,"href"],[1,"flex","flex-auto","cursor-pointer","py-5","pl-6",3,"routerLink"],[4,"ngTemplateOutlet"],[1,"mr-4","flex","h-8","w-8","shrink-0","items-center","justify-center","rounded-full","bg-gray-100","dark:bg-gray-700"],[1,"mr-4","h-8","w-8","shrink-0","overflow-hidden","rounded-full","object-cover","object-center",3,"src","alt"],[1,"flex","flex-auto","flex-col"],[1,"line-clamp-1","font-semibold",3,"innerHTML"],[1,"line-clamp-2",3,"innerHTML"],[1,"text-secondary","mt-2","text-sm","leading-none"],[1,"icon-size-5",3,"svgIcon"],[1,"flex","h-14","w-14","flex-0","items-center","justify-center","rounded-full","bg-primary-100","dark:bg-primary-600"],[1,"text-primary-700","dark:text-primary-50",3,"svgIcon"],[1,"mt-5","text-2xl","font-semibold","tracking-tight"],[1,"text-secondary","mt-1","w-full","max-w-60","text-center","text-md"]],template:function(c,h){if(1&c){const C=o.RV6();o.j41(0,"button",3,0),o.bIt("click",function(){return o.eBV(C),o.Njj(h.openPanel())}),o.DNE(2,Ov,3,1,"span",4),o.nrm(3,"mat-icon",5),o.k0s(),o.DNE(4,Nv,14,5,"ng-template",null,1,o.C5r)}2&c&&(o.R7$(2),o.vxM(h.unreadCount>0?2:-1),o.R7$(),o.Y8G("svgIcon","heroicons_outline:bell"))},dependencies:[Ha.Hl,Ha.iY,Xr.m_,Xr.An,ta.uc,ta.oV,nt.YU,nt.T3,y.Wk,nt.vh],encapsulation:2,changeDetection:0})}return a})();var Qb=v(5888),iu=v(9417),Fv=v(5542),ru=v(9888),Nf=v(8359),Pl=v(7336),Lv=v(9327),xa=v(9172),Zb=v(8203);const Jb=["panel"],qE=["*"];function xm(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",1,0),o.bIt("@panelAnimation.done",function(h){o.eBV(i);const C=o.XpG();return o.Njj(C._animationDone.next(h))}),o.SdG(2),o.k0s()}if(2&a){const i=s.id,c=o.XpG();o.HbH(c._classList),o.AVh("mat-mdc-autocomplete-visible",c.showPanel)("mat-mdc-autocomplete-hidden",!c.showPanel)("mat-primary","primary"===c._color)("mat-accent","accent"===c._color)("mat-warn","warn"===c._color),o.Y8G("id",c.id)("@panelAnimation",c.isOpen?"visible":"hidden"),o.BMQ("aria-label",c.ariaLabel||null)("aria-labelledby",c._getPanelAriaLabelledby(i))}}const Bv=(0,mi.hZ)("panelAnimation",[(0,mi.wk)("void, hidden",(0,mi.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,mi.kY)(":enter, hidden => visible",[(0,mi.Os)([(0,mi.i0)("0.03s linear",(0,mi.iF)({opacity:1})),(0,mi.i0)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,mi.iF)({transform:"scaleY(1)"}))])]),(0,mi.kY)(":leave, visible => hidden",[(0,mi.i0)("0.075s linear",(0,mi.iF)({opacity:0}))])]);let qb=0;class e0{constructor(s,i){this.source=s,this.option=i}}const Uv=new o.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function Vv(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let t0=(()=>{class a{get isOpen(){return this._isOpen&&this.showPanel}_setColor(i){this._color=i,this._changeDetectorRef.markForCheck()}set classList(i){this._classList=i,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const i of this.options)i._changeDetectorRef.markForCheck()}constructor(i,c,h,C){this._changeDetectorRef=i,this._elementRef=c,this._defaults=h,this._activeOptionChanges=Nf.yU.EMPTY,this._animationDone=new o.bkB,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new o.bkB,this.opened=new o.bkB,this.closed=new o.bkB,this.optionActivated=new o.bkB,this.id="mat-autocomplete-"+qb++,this.inertGroups=C?.SAFARI||!1,this.autoActiveFirstOption=!!h.autoActiveFirstOption,this.autoSelectActiveOption=!!h.autoSelectActiveOption,this.requireSelection=!!h.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new ru.Au(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(i=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[i]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(i){this.panel&&(this.panel.nativeElement.scrollTop=i)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(i){const c=new e0(this,i);this.optionSelected.emit(c)}_getPanelAriaLabelledby(i){return this.ariaLabel?null:this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_skipPredicate(){return!1}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(o.gRc),o.rXU(o.aKT),o.rXU(Uv),o.rXU(me.OD))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["mat-autocomplete"]],contentQueries:function(c,h,C){if(1&c&&(o.wni(C,Zt.wT,5),o.wni(C,Zt.QC,5)),2&c){let I;o.mGM(I=o.lsd())&&(h.options=I),o.mGM(I=o.lsd())&&(h.optionGroups=I)}},viewQuery:function(c,h){if(1&c&&(o.GBs(o.C4Q,7),o.GBs(Jb,5)),2&c){let C;o.mGM(C=o.lsd())&&(h.template=C.first),o.mGM(C=o.lsd())&&(h.panel=C.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",o.L39],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",o.L39],requireSelection:[2,"requireSelection","requireSelection",o.L39],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",o.L39],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",o.L39]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[o.Jv_([{provide:Zt.is,useExisting:a}]),o.GFd,o.aNF],ngContentSelectors:qE,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(c,h){1&c&&(o.NAR(),o.DNE(0,xm,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape, var(--mat-app-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Bv]},changeDetection:0})}return a})();const Sm={provide:iu.kq,useExisting:(0,o.Rfq)(()=>jv),multi:!0},Am=new o.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const a=(0,o.WQX)(Nl.hJ);return()=>a.scrollStrategies.reposition()}}),r0={provide:Am,deps:[Nl.hJ],useFactory:function n0(a){return()=>a.scrollStrategies.reposition()}};let jv=(()=>{class a{constructor(i,c,h,C,I,H,re,Fe,Pt,Gt,Hn){this._element=i,this._overlay=c,this._viewContainerRef=h,this._zone=C,this._changeDetectorRef=I,this._dir=re,this._formField=Fe,this._document=Pt,this._viewportRuler=Gt,this._defaults=Hn,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Nf.yU.EMPTY,this._breakpointObserver=(0,o.WQX)(Lv.QP),this._handsetLandscapeSubscription=Nf.yU.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new zr.B,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._initialized=new zr.B,this._injector=(0,o.WQX)(o.zZn),this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=(0,nf.v)(()=>{const bn=this.autocomplete?this.autocomplete.options:null;return bn?bn.changes.pipe((0,xa.Z)(bn),(0,ke.n)(()=>(0,ol.h)(...bn.map(Cn=>Cn.onSelectionChange)))):this._initialized.pipe((0,ke.n)(()=>this.optionSelections))}),this._handlePanelKeydown=bn=>{(bn.keyCode===Pl._f&&!(0,Pl.rp)(bn)||bn.keyCode===Pl.i7&&(0,Pl.rp)(bn,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),bn.stopPropagation(),bn.preventDefault())},this._trackedModal=null,this._scrollStrategy=H}ngAfterViewInit(){this._initialized.next(),this._initialized.complete();const i=this._getWindow();typeof i<"u"&&this._zone.runOutsideAngular(()=>i.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(i){i.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const i=this._getWindow();typeof i<"u"&&i.removeEventListener("blur",this._windowBlurHandler),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&(0,ru.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,ol.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,At.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,At.p)(()=>this._overlayAttached)):(0,B.of)()).pipe((0,us.T)(i=>i instanceof Zt.MI?i:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,ol.h)((0,wc.R)(this._document,"click"),(0,wc.R)(this._document,"auxclick"),(0,wc.R)(this._document,"touchend")).pipe((0,At.p)(i=>{const c=(0,me.Fb)(i),h=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,C=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&c!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!h||!h.contains(c))&&(!C||!C.contains(c))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(c)}))}writeValue(i){Promise.resolve(null).then(()=>this._assignOptionValue(i))}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._element.nativeElement.disabled=i}_handleKeydown(i){const c=i.keyCode,h=(0,Pl.rp)(i);if(c===Pl._f&&!h&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&c===Pl.Fm&&this.panelOpen&&!h)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){const C=this.autocomplete._keyManager.activeItem,I=c===Pl.i7||c===Pl.n6;c===Pl.wn||I&&!h&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):I&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(I||this.autocomplete._keyManager.activeItem!==C)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(i){let c=i.target,h=c.value;if("number"===c.type&&(h=""==h?null:parseFloat(h)),this._previousValue!==h){if(this._previousValue=h,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(h),h){if(this.panelOpen&&!this.autocomplete.requireSelection){const C=this.autocomplete.options?.find(I=>I.selected);C&&h!==this._getDisplayValue(C.value)&&C.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===i.target){const C=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(C)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(i=!1){this._formField&&"auto"===this._formField.floatLabel&&(i?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const i=new V.c(h=>{(0,o.mal)(()=>{h.next()},{injector:this._injector})}),c=this.autocomplete.options.changes.pipe((0,b.M)(()=>this._positionStrategy.reapplyLastPosition()),(0,Re.c)(0));return(0,ol.h)(i,c).pipe((0,ke.n)(()=>this._zone.run(()=>{const h=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),h!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),(0,P.s)(1)).subscribe(h=>this._setValueAndClose(h))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(i){const c=this.autocomplete;return c&&c.displayWith?c.displayWith(i):i}_assignOptionValue(i){const c=this._getDisplayValue(i);null==i&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(c??"")}_updateNativeInputValue(i){this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(i){const c=this.autocomplete,h=i?i.source:this._pendingAutoselectedOption;h?(this._clearPreviousSelectedOption(h),this._assignOptionValue(h.value),this._onChange(h.value),c._emitSelectEvent(h),this._element.nativeElement.focus()):c.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),c._animationDone?c._animationDone.pipe((0,P.s)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(i,c){this.autocomplete?.options?.forEach(h=>{h!==i&&h.selected&&h.deselect(c)})}_openPanelInternal(i=this._element.nativeElement.value){this._attachOverlay(i),this._floatLabel(),this._trackedModal&&(0,ru.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(i){let c=this._overlayRef;c?(this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()})):(this._portal=new xv.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),c=this._overlay.create(this._getOverlayConfig()),this._overlayRef=c,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&c&&c.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(Lv.Rp.HandsetLandscape).subscribe(C=>{C.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),c&&!c.hasAttached()&&(c.attach(this._portal),this._valueOnAttach=i,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const h=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&h!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const i=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=i.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=i.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Nl.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const i=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(i),this._positionStrategy=i,i}_setStrategyPositions(i){const c=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],h=this._aboveClass,C=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:h},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:h}];let I;I="above"===this.position?C:"below"===this.position?c:[...c,...C],i.withPositions(I)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const i=this.autocomplete;if(i.autoActiveFirstOption){let c=-1;for(let h=0;h .cdk-overlay-container [aria-modal="true"]');if(!i)return;const c=this.autocomplete.id;this._trackedModal&&(0,ru.Ae)(this._trackedModal,"aria-owns",c),(0,ru.px)(i,"aria-owns",c),this._trackedModal=i}_clearFromModal(){this._trackedModal&&((0,ru.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(o.aKT),o.rXU(Nl.hJ),o.rXU(o.c1b),o.rXU(o.SKi),o.rXU(o.gRc),o.rXU(Am),o.rXU(Zb.dS,8),o.rXU(Vn.xb,9),o.rXU(nt.qQ,8),o.rXU(Fv.Xj),o.rXU(Uv,8))};static#t=this.\u0275dir=o.FsC({type:a,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(c,h){1&c&&o.bIt("focusin",function(){return h._handleFocus()})("blur",function(){return h._onTouched()})("input",function(I){return h._handleInput(I)})("keydown",function(I){return h._handleKeydown(I)})("click",function(){return h._handleClick()}),2&c&&o.BMQ("autocomplete",h.autocompleteAttribute)("role",h.autocompleteDisabled?null:"combobox")("aria-autocomplete",h.autocompleteDisabled?null:"list")("aria-activedescendant",h.panelOpen&&h.activeOption?h.activeOption.id:null)("aria-expanded",h.autocompleteDisabled?null:h.panelOpen.toString())("aria-controls",h.autocompleteDisabled||!h.panelOpen||null==h.autocomplete?null:h.autocomplete.id)("aria-haspopup",h.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",o.L39]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[o.Jv_([Sm]),o.GFd,o.OA$]})}return a})(),Fl=(()=>{class a{static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275mod=o.$C({type:a});static#n=this.\u0275inj=o.G2t({providers:[r0],imports:[Nl.z_,Zt.Sy,Zt.yE,nt.MD,Fv.Gj,Zt.Sy,Zt.yE]})}return a})();var Tm=v(9042),Hv=v(7291);const o0=["barSearchInput"],$v=["matAutocomplete"];function zv(a,s){if(1&a){const i=o.RV6();o.j41(0,"button",5),o.bIt("click",function(){o.eBV(i);const h=o.XpG(2);return o.Njj(h.open())}),o.nrm(1,"mat-icon",6),o.k0s()}2&a&&(o.R7$(),o.Y8G("svgIcon","heroicons_outline:magnifying-glass"))}function Pf(a,s){1&a&&(o.j41(0,"mat-option",14),o.EFF(1," No results found! "),o.k0s())}function Im(a,s){if(1&a){const i=o.RV6();o.j41(0,"img",22),o.bIt("error",function(h){o.eBV(i);const C=o.XpG(5);return o.Njj(C.handleImageError(h))}),o.k0s()}if(2&a){const i=o.XpG().$implicit;o.Mz_("alt","",i.name,"'s avatar"),o.Y8G("src",i.avatar,o.B4B)}}function nC(a,s){1&a&&(o.qex(0),o.nrm(1,"mat-icon",23),o.bVm()),2&a&&(o.R7$(),o.Y8G("svgIcon","heroicons_outline:user-circle"))}function Wv(a,s){if(1&a&&(o.j41(0,"div",24),o.EFF(1),o.k0s()),2&a){const i=o.XpG().$implicit;o.R7$(),o.SpI(" ",i.about," ")}}function Gv(a,s){if(1&a&&(o.qex(0),o.j41(1,"mat-option",15)(2,"div",16)(3,"div",17),o.DNE(4,Im,1,3,"img",18)(5,nC,2,1,"ng-container",2),o.k0s(),o.j41(6,"div",19)(7,"span",20),o.EFF(8),o.k0s(),o.DNE(9,Wv,2,1,"div",21),o.k0s()()(),o.bVm()),2&a){const i=s.$implicit;o.R7$(),o.Y8G("routerLink",i.link)("value",i.name),o.R7$(3),o.Y8G("ngIf",i.avatar),o.R7$(),o.Y8G("ngIf",!i.avatar),o.R7$(3),o.JRh(i.name),o.R7$(),o.Y8G("ngIf",i.about)}}function Kv(a,s){if(1&a&&(o.qex(0),o.DNE(1,Gv,10,6,"ng-container",12),o.bVm()),2&a){const i=s.$implicit,c=o.XpG(3);o.R7$(),o.Y8G("ngForOf",i.results)("ngForTrackBy",c.trackByFn)}}function Ff(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",7),o.nrm(1,"mat-icon",8),o.j41(2,"input",9,0),o.bIt("keydown",function(h){o.eBV(i);const C=o.XpG(2);return o.Njj(C.onKeydown(h))}),o.k0s(),o.j41(4,"mat-autocomplete",10,1),o.DNE(6,Pf,2,0,"mat-option",11)(7,Kv,2,2,"ng-container",12),o.k0s(),o.j41(8,"button",13),o.bIt("click",function(){o.eBV(i);const h=o.XpG(2);return o.Njj(h.close())}),o.nrm(9,"mat-icon",6),o.k0s()()}if(2&a){const i=o.sdS(5),c=o.XpG(2);o.Y8G("@slideInTop",void 0)("@slideOutTop",void 0),o.R7$(),o.Y8G("svgIcon","heroicons_outline:magnifying-glass"),o.R7$(),o.Y8G("formControl",c.searchControl)("matAutocomplete",i)("placeholder","Search..."),o.R7$(2),o.Y8G("autoSelectActiveOption",!0)("disableRipple",!0),o.R7$(2),o.Y8G("ngIf",c.resultSets&&!c.resultSets.length),o.R7$(),o.Y8G("ngForOf",c.resultSets)("ngForTrackBy",c.trackByFn),o.R7$(2),o.Y8G("svgIcon","heroicons_outline:x-mark")}}function Mm(a,s){if(1&a&&(o.j41(0,"div"),o.DNE(1,zv,2,1,"button",3)(2,Ff,10,12,"div",4),o.k0s()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngIf",!i.opened),o.R7$(),o.Y8G("ngIf",i.opened)}}let Ll=(()=>{class a{constructor(i,c){this._storageService=i,this._sanitizer=c,this.appearance="basic",this.debounce=300,this.minLength=2,this.search=new o.bkB,this.opened=!1,this.searchControl=new iu.hs,this._unsubscribeAll=new zr.B}set barSearchInput(i){i&&setTimeout(()=>{i.nativeElement.focus()})}set matAutocomplete(i){this._matAutocomplete=i}ngOnChanges(i){"appearance"in i&&this.close()}ngOnInit(){var i=this;this.searchControl.valueChanges.pipe((0,mm.B)(this.debounce),(0,Kr.Q)(this._unsubscribeAll),(0,us.T)(c=>((!c||c.lengthc&&c.length>=this.minLength)).subscribe(function(){var c=(0,G.A)(function*(h){const C=yield i._storageService.searchProfile(h);i.resultSets=C.map(I=>({label:"Project",results:[{name:I.profile.name||I.profile.displayName||I.pubKey,pubkey:I.pubKey,username:I.profile.username||"",website:I.profile.website||"",about:I.profile.about?I.profile.about.replace(/<\/?[^>]+(>|$)/g,""):"",avatar:I.profile.picture||null,banner:I.profile.banner||null,link:`/profile/${I.pubKey}`}]})),i.search.next(i.resultSets)});return function(h){return c.apply(this,arguments)}}())}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}onKeydown(i){"Escape"===i.code&&"bar"===this.appearance&&!this._matAutocomplete.isOpen&&this.close()}open(){this.opened||(this.opened=!0)}close(){this.opened&&(this.searchControl.setValue(""),this.opened=!1)}trackByFn(i,c){return c.id||i}handleImageError(i){const c=i.target;c.onerror=null,c.src="images/avatars/avatar-placeholder.png"}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(Hv.n),o.rXU(u.up))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["search"]],viewQuery:function(c,h){if(1&c&&(o.GBs(o0,5),o.GBs($v,5)),2&c){let C;o.mGM(C=o.lsd())&&(h.barSearchInput=C.first),o.mGM(C=o.lsd())&&(h.matAutocomplete=C.first)}},inputs:{appearance:"appearance",debounce:"debounce",minLength:"minLength"},outputs:{search:"search"},exportAs:["angorSearch"],standalone:!0,features:[o.Jv_([{provide:Am,useFactory:()=>{const i=(0,o.WQX)(Nl.hJ);return()=>i.scrollStrategies.block()}}]),o.OA$,o.aNF],decls:1,vars:1,consts:[["barSearchInput",""],["matAutocomplete","matAutocomplete"],[4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],["class","bg-card absolute inset-0 z-99 flex shrink-0 items-center",4,"ngIf"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"bg-card","absolute","inset-0","z-99","flex","shrink-0","items-center"],[1,"absolute","ml-6","sm:ml-8",3,"svgIcon"],[1,"h-full","w-full","px-16","sm:px-18",3,"keydown","formControl","matAutocomplete","placeholder"],[1,"max-h-128","rounded-b","border-t","shadow-md","sm:px-2",3,"autoSelectActiveOption","disableRipple"],["class","text-secondary pointer-events-none bg-transparent px-6 py-0 text-md",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["mat-icon-button","",1,"absolute","right-5","top-1/2","-mt-5","h-10","w-10","shrink-0","sm:right-7",3,"click"],[1,"text-secondary","pointer-events-none","bg-transparent","px-6","py-0","text-md"],[1,"group","relative","mb-1","rounded-md","px-6","py-0","text-md","dark:hover:bg-hover","hover:bg-gray-100",3,"routerLink","value"],[1,"flex","items-center"],[1,"flex","h-8","w-8","shrink-0","items-center","justify-center","overflow-hidden","rounded-full","bg-primary-100","dark:bg-primary-800"],["class","h-full w-full object-cover",3,"src","alt","error",4,"ngIf"],[1,"ml-3","truncate"],[1,"font-semibold"],["class","text-sm text-gray-500",4,"ngIf"],[1,"h-full","w-full","object-cover",3,"error","src","alt"],[1,"m-0","text-primary","icon-size-5","dark:text-primary-400",3,"svgIcon"],[1,"text-sm","text-gray-500"]],template:function(c,h){1&c&&o.DNE(0,Mm,3,2,"div",2),2&c&&o.Y8G("ngIf","bar"===h.appearance)},dependencies:[Ha.Hl,Ha.iY,Xr.m_,Xr.An,iu.YN,iu.me,iu.BC,Fl,t0,Zt.wT,jv,iu.X1,iu.l_,Zt.Sy,y.Wk,Vn.RG,Tm.fS,nt.MD,nt.Sq,nt.bT],encapsulation:2,data:{animation:Qb.F}})}return a})();var Xv=v(1997),Yv=v(881);function Om(a,s){if(1&a&&(o.qex(0),o.nrm(1,"img",14),o.bVm()),2&a){const i=o.XpG();o.R7$(),o.Y8G("src",i.getSafeUrl(null==i.user?null:i.user.picture),o.B4B)}}function s0(a,s){1&a&&o.nrm(0,"mat-icon",12),2&a&&o.Y8G("svgIcon","heroicons_outline:user-circle")}let ou=(()=>{class a{constructor(i,c,h,C,I,H,re){this._changeDetectorRef=i,this._router=c,this._angorConfigService=h,this._signerService=C,this._storageService=I,this.sanitizer=H,this._changeDetectorRefef=re,this.isLoading=!0,this.errorMessage=null,this._unsubscribeAll=new zr.B}ngOnInit(){this.userPubKey=this._signerService.getPublicKey(),this._angorConfigService.config$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{localStorage.setItem("angorConfig",JSON.stringify(i)),this.config=i,this._changeDetectorRef.detectChanges()}),this._storageService.profile$.subscribe(i=>{i&&i.pubKey===this.userPubKey&&(this.user=i.metadata,this._changeDetectorRefef.detectChanges())}),this.loadUserProfile()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadUserProfile(){var i=this;return(0,G.A)(function*(){i._storageService.getProfile(i.userPubKey).then(c=>{i.user=c,i._changeDetectorRefef.detectChanges()})})()}logout(){this._router.navigate(["/logout"])}profile(){this._router.navigate(["/profile"])}setLayout(i){this._angorConfigService.config={layout:i},this._changeDetectorRef.detectChanges()}setScheme(i){this._angorConfigService.config={scheme:i},this._changeDetectorRef.detectChanges()}setTheme(i){this._angorConfigService.config={theme:i},this._changeDetectorRef.detectChanges()}getSafeUrl(i){return this.sanitizer.bypassSecurityTrustUrl(i)}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(o.gRc),o.rXU(y.Ix),o.rXU(Yv.P),o.rXU(Zi.A),o.rXU(Hv.n),o.rXU(u.up),o.rXU(o.gRc))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["user"]],standalone:!0,features:[o.aNF],decls:48,vars:12,consts:[["defaultAvatar",""],["userActions","matMenu"],["settingsMenu","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"relative"],[4,"ngIf","ngIfElse"],[3,"xPosition"],["mat-menu-item",""],[1,"flex","flex-col","leading-none"],[1,"mt-1.5","text-md","font-medium"],[1,"my-2"],["mat-menu-item","",3,"click"],[3,"svgIcon"],["mat-menu-item","",3,"matMenuTriggerFor"],["alt","","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-7","w-7","rounded-full","object-cover",3,"src"]],template:function(c,h){if(1&c){const C=o.RV6();o.j41(0,"button",3)(1,"span",4),o.DNE(2,Om,2,1,"ng-container",5)(3,s0,1,1,"ng-template",null,0,o.C5r),o.k0s()(),o.j41(5,"mat-menu",6,1)(7,"button",7)(8,"span",8)(9,"span"),o.EFF(10,"Logged in as"),o.k0s(),o.j41(11,"span",9),o.EFF(12),o.k0s()()(),o.nrm(13,"mat-divider",10),o.j41(14,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(h.profile())}),o.nrm(15,"mat-icon",12),o.j41(16,"span"),o.EFF(17,"Profile"),o.k0s()(),o.j41(18,"button",13),o.nrm(19,"mat-icon",12),o.j41(20,"span"),o.EFF(21,"Settings"),o.k0s()(),o.nrm(22,"mat-divider",10),o.j41(23,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(h.logout())}),o.nrm(24,"mat-icon",12),o.j41(25,"span"),o.EFF(26,"logout"),o.k0s()()(),o.j41(27,"mat-menu",null,2)(29,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(h.setScheme("auto"))}),o.nrm(30,"mat-icon",12),o.j41(31,"span"),o.EFF(32,"Auto Theme"),o.k0s()(),o.j41(33,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(h.setScheme("light"))}),o.nrm(34,"mat-icon",12),o.j41(35,"span"),o.EFF(36,"Light Theme"),o.k0s()(),o.j41(37,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(h.setScheme("dark"))}),o.nrm(38,"mat-icon",12),o.j41(39,"span"),o.EFF(40,"Dark Theme"),o.k0s()(),o.nrm(41,"mat-divider"),o.j41(42,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(h.setLayout("classic"))}),o.j41(43,"span"),o.EFF(44,"Classic Layout"),o.k0s()(),o.j41(45,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(h.setLayout("modern"))}),o.j41(46,"span"),o.EFF(47,"Modern Layout"),o.k0s()()()}if(2&c){const C=o.sdS(4),I=o.sdS(6),H=o.sdS(28);o.Y8G("matMenuTriggerFor",I),o.R7$(2),o.Y8G("ngIf",null==h.user?null:h.user.picture)("ngIfElse",C),o.R7$(3),o.Y8G("xPosition","before"),o.R7$(7),o.JRh((null==h.user?null:h.user.display_name)||(null==h.user?null:h.user.name)||"Unknown User"),o.R7$(3),o.Y8G("svgIcon","heroicons_outline:user-circle"),o.R7$(3),o.Y8G("matMenuTriggerFor",H),o.R7$(),o.Y8G("svgIcon","heroicons_outline:cog-8-tooth"),o.R7$(5),o.Y8G("svgIcon","heroicons_outline:arrow-right-on-rectangle"),o.R7$(6),o.Y8G("svgIcon","heroicons_solid:bolt"),o.R7$(4),o.Y8G("svgIcon","heroicons_solid:sun"),o.R7$(4),o.Y8G("svgIcon","heroicons_solid:moon")}},dependencies:[Ha.Hl,Ha.iY,bl.Cn,bl.kk,bl.fb,bl.Cp,Xr.m_,Xr.An,Xv.w,Xv.q,nt.MD,nt.bT],encapsulation:2,changeDetection:0})}return a})();var Qv=v(3236);let rd=(()=>{class a{constructor(i,c){this.swUpdate=i,this.zone=c,this.newVersionAvailableSubject=new gt.t(!1),this.isNewVersionAvailable$=this.newVersionAvailableSubject.asObservable(),this.intervalSource=function su(a=0,s=Qv.E){return a<0&&(a=0),(0,mn.O)(a,a,s)}(9e5),this.checkForUpdateOnLoad(),this.checkForUpdateOnInterval()}applyUpdate(){this.swUpdate.activateUpdate().then(()=>document.location.reload()).catch(i=>console.error("Failed to apply updates:",i))}checkForUpdateOnInterval(){var i=this;this.unsubscribeInterval(),this.swUpdate.isEnabled&&this.zone.runOutsideAngular(()=>{this.intervalSubscription=this.intervalSource.subscribe((0,G.A)(function*(){try{(yield i.swUpdate.checkForUpdate())&&i.newVersionAvailableSubject.next(!0)}catch(c){console.error("Failed to check for updates:",c)}}))})}checkForUpdateOnLoad(){this.unsubscribeNewVersion(),this.swUpdate.isEnabled&&(this.newVersionSubscription=this.swUpdate.versionUpdates.subscribe(i=>{switch(i.type){case"VERSION_DETECTED":break;case"VERSION_READY":this.newVersionAvailableSubject.next(!0);break;case"VERSION_INSTALLATION_FAILED":console.error(`Failed to install app version '${i.version.hash}': ${i.error}`)}}))}unsubscribeInterval(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}unsubscribeNewVersion(){this.newVersionSubscription&&this.newVersionSubscription.unsubscribe()}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(De),o.KVO(o.SKi))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function Rm(a,s){if(1&a){const i=o.RV6();o.j41(0,"button",1),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.applyUpdate())}),o.nrm(1,"mat-icon",2),o.k0s()}if(2&a){const i=o.XpG();o.Y8G("matTooltip",i.tooltip||"Update App"),o.R7$(),o.Y8G("svgIcon","heroicons_outline:cloud-arrow-down")}}let od=(()=>{class a{constructor(i,c){this.updateService=i,this._changeDetectorRef=c,this.updateService.isNewVersionAvailable$.subscribe(h=>{h&&this._changeDetectorRef.detectChanges()})}applyUpdate(){this.updateService.applyUpdate()}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(rd),o.rXU(o.gRc))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["update"]],inputs:{tooltip:"tooltip"},exportAs:["update"],standalone:!0,features:[o.aNF],decls:2,vars:3,consts:[["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(c,h){1&c&&(o.DNE(0,Rm,2,2,"button",0),o.nI1(1,"async")),2&c&&o.Y8G("ngIf",o.bMT(1,1,h.updateService.isNewVersionAvailable$))},dependencies:[Ha.Hl,Ha.iY,Xr.m_,Xr.An,ta.uc,ta.oV,nt.MD,nt.bT,nt.Jj],encapsulation:2,changeDetection:0})}return a})();function Zv(a,s){if(1&a&&(o.j41(0,"angor-vertical-navigation",0),o.qex(1,10),o.j41(2,"div",11),o.nrm(3,"img",12),o.k0s(),o.bVm(),o.k0s()),2&a){const i=o.XpG();o.Y8G("mode","over")("name","mainNavigation")("navigation",i.navigation.default)("opened",!1)}}function Jv(a,s){if(1&a&&(o.j41(0,"div",13)(1,"div",14),o.nrm(2,"img",15)(3,"img",16),o.k0s(),o.nrm(4,"img",17),o.k0s(),o.nrm(5,"angor-horizontal-navigation",18)),2&a){const i=o.XpG();o.R7$(5),o.Y8G("name","mainNavigation")("navigation",i.navigation.horizontal)}}function a0(a,s){if(1&a){const i=o.RV6();o.j41(0,"button",19),o.bIt("click",function(){o.eBV(i);const h=o.XpG();return o.Njj(h.toggleNavigation("mainNavigation"))}),o.nrm(1,"mat-icon",20),o.k0s()}2&a&&(o.R7$(),o.Y8G("svgIcon","heroicons_outline:bars-3"))}function l0(a,s){1&a&&o.nrm(0,"router-outlet")}let c0=(()=>{class a{constructor(i,c,h,C,I){this._activatedRoute=i,this._router=c,this._navigationService=h,this._angorMediaWatcherService=C,this._angorNavigationService=I,this._unsubscribeAll=new zr.B,this.version=mf}get currentYear(){return(new Date).getFullYear()}ngOnInit(){this._navigationService.navigation$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this.navigation=i}),this._angorMediaWatcherService.onMediaChange$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:i})=>{this.isScreenSmall=!i.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(i){const c=this._angorNavigationService.getComponent(i);c&&c.toggle()}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(y.nX),o.rXU(y.Ix),o.rXU(pf),o.rXU(ae.l),o.rXU(Da))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["modern-layout"]],standalone:!0,features:[o.aNF],decls:17,vars:7,consts:[[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","sm:h-20","md:px-6","print:hidden"],["mat-icon-button",""],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],[1,"flex","w-full","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","border-t","px-4","dark:bg-transparent","sm:h-20","md:px-6","print:hidden"],[1,"text-secondary","font-medium"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","px-8","pt-6"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"h-10","w-24"],[1,"mx-2","flex","items-center","lg:mr-8"],[1,"hidden","lg:flex"],["src","images/logo/logo-text.svg",1,"h-10","w-24","dark:hidden"],["src","images/logo/logo-text-on-dark.svg",1,"hidden","h-10","w-24","dark:flex"],["src","images/logo/logo.svg",1,"flex","w-8","lg:hidden"],[1,"mr-2",3,"name","navigation"],["mat-icon-button","",3,"click"],[3,"svgIcon"]],template:function(c,h){1&c&&(o.nrm(0,"angor-loading-bar"),o.DNE(1,Zv,4,4,"angor-vertical-navigation",0),o.j41(2,"div",1)(3,"div",2),o.DNE(4,Jv,6,2)(5,a0,2,1,"button",3),o.j41(6,"div",4),o.nrm(7,"update")(8,"angor-fullscreen",5)(9,"search",6)(10,"notifications")(11,"user"),o.k0s()(),o.j41(12,"div",7),o.DNE(13,l0,1,0,"router-outlet"),o.k0s(),o.j41(14,"div",8)(15,"span",9),o.EFF(16),o.k0s()()()),2&c&&(o.R7$(),o.vxM(h.isScreenSmall?1:-1),o.R7$(3),o.vxM(h.isScreenSmall?-1:4),o.R7$(),o.vxM(h.isScreenSmall?5:-1),o.R7$(4),o.Y8G("appearance","bar"),o.R7$(4),o.vxM(13),o.R7$(3),o.Lme("Angor Hub \xa9 ",h.currentYear," - version ",h.version,""))},dependencies:[rh,Dv,Jg,Ha.Hl,Ha.iY,Xr.m_,Xr.An,vf,Ll,Pv,ou,y.n3,od],encapsulation:2})}return a})();function u0(a,s){1&a&&o.nrm(0,"router-outlet")}let d0=(()=>{class a{constructor(i,c,h,C,I){this._activatedRoute=i,this._router=c,this._navigationService=h,this._angorMediaWatcherService=C,this._angorNavigationService=I,this._unsubscribeAll=new zr.B,this.version=mf}get currentYear(){return(new Date).getFullYear()}ngOnInit(){this._navigationService.navigation$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this.navigation=i}),this._angorMediaWatcherService.onMediaChange$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:i})=>{this.isScreenSmall=!i.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(i){const c=this._angorNavigationService.getComponent(i);c&&c.toggle()}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(y.nX),o.rXU(y.Ix),o.rXU(pf),o.rXU(ae.l),o.rXU(Da))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["classic-layout"]],standalone:!0,features:[o.aNF],decls:21,vars:9,consts:[[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","p-6"],["src","images/logo/logo-text.svg","alt","Angor Hub",1,"w-30","dark:hidden"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"hidden","w-30","dark:flex"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","md:px-6","print:hidden"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],[1,"flex","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","justify-start","border-t","px-4","dark:bg-transparent","md:px-6","print:hidden"],[1,"text-secondary","font-medium"]],template:function(c,h){1&c&&(o.nrm(0,"angor-loading-bar"),o.j41(1,"angor-vertical-navigation",0),o.qex(2,1),o.j41(3,"div",2),o.nrm(4,"img",3)(5,"img",4),o.k0s(),o.bVm(),o.k0s(),o.j41(6,"div",5)(7,"div",6)(8,"button",7),o.bIt("click",function(){return h.toggleNavigation("mainNavigation")}),o.nrm(9,"mat-icon",8),o.k0s(),o.j41(10,"div",9),o.nrm(11,"update")(12,"angor-fullscreen",10)(13,"search",11)(14,"notifications")(15,"user"),o.k0s()(),o.j41(16,"div",12),o.DNE(17,u0,1,0,"router-outlet"),o.k0s(),o.j41(18,"div",13)(19,"span",14),o.EFF(20),o.k0s()()()),2&c&&(o.R7$(),o.Y8G("mode",h.isScreenSmall?"over":"side")("name","mainNavigation")("navigation",h.navigation.default)("opened",!h.isScreenSmall),o.R7$(8),o.Y8G("svgIcon","heroicons_outline:bars-3"),o.R7$(4),o.Y8G("appearance","bar"),o.R7$(4),o.vxM(17),o.R7$(3),o.Lme("Angor Hub \xa9 ",h.currentYear," - version ",h.version,""))},dependencies:[rh,Dv,Ha.Hl,Ha.iY,Xr.m_,Xr.An,vf,Ll,Pv,ou,y.n3,od],encapsulation:2})}return a})();function h0(a,s){1&a&&o.nrm(0,"empty-layout")}function qv(a,s){1&a&&o.nrm(0,"modern-layout")}function f0(a,s){1&a&&o.nrm(0,"classic-layout")}let sd=(()=>{class a{constructor(i,c,h,C,I,H,re){this._activatedRoute=i,this._document=c,this._renderer2=h,this._router=C,this._angorConfigService=I,this._angorMediaWatcherService=H,this._angorPlatformService=re,this._unsubscribeAll=new zr.B}ngOnInit(){(0,oi.z)([this._angorConfigService.config$,this._angorMediaWatcherService.onMediaQueryChange$(["(prefers-color-scheme: dark)","(prefers-color-scheme: light)"])]).pipe((0,Kr.Q)(this._unsubscribeAll),(0,us.T)(([i,c])=>{const h={scheme:i.scheme,theme:i.theme};return"auto"===i.scheme&&(h.scheme=c.breakpoints["(prefers-color-scheme: dark)"]?"dark":"light"),h})).subscribe(i=>{this.scheme=i.scheme,this.theme=i.theme,this._updateScheme(),this._updateTheme()}),this._angorConfigService.config$.pipe((0,Kr.Q)(this._unsubscribeAll)).subscribe(i=>{this.config=i,this._updateLayout()}),this._router.events.pipe((0,At.p)(i=>i instanceof y.wF),(0,Kr.Q)(this._unsubscribeAll)).subscribe(()=>{this._updateLayout()}),this._renderer2.setAttribute(this._document.querySelector("[ng-version]"),"angor-version",mf),this._renderer2.addClass(this._document.body,this._angorPlatformService.osName)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_updateLayout(){let i=this._activatedRoute;for(;i.firstChild;)i=i.firstChild;this.layout=this.config.layout;const c=i.snapshot.queryParamMap.get("layout");c&&(this.layout=c,this.config&&(this.config.layout=c)),i.pathFromRoot.forEach(C=>{C.routeConfig&&C.routeConfig.data&&C.routeConfig.data.layout&&(this.layout=C.routeConfig.data.layout)})}_updateScheme(){this._document.body.classList.remove("light","dark"),this._document.body.classList.add(this.scheme)}_updateTheme(){this._document.body.classList.forEach(i=>{i.startsWith("theme-")&&this._document.body.classList.remove(i,i.split("-")[1])}),this._document.body.classList.add(this.theme)}static#e=this.\u0275fac=function(c){return new(c||a)(o.rXU(y.nX),o.rXU(nt.qQ),o.rXU(o.sFG),o.rXU(y.Ix),o.rXU(Yv.P),o.rXU(ae.l),o.rXU(Le))};static#t=this.\u0275cmp=o.VBU({type:a,selectors:[["layout"]],standalone:!0,features:[o.aNF],decls:3,vars:3,template:function(c,h){1&c&&o.DNE(0,h0,1,0,"empty-layout")(1,qv,1,0,"modern-layout")(2,f0,1,0,"classic-layout"),2&c&&(o.vxM("empty"===h.layout?0:-1),o.R7$(),o.vxM("modern"===h.layout?1:-1),o.R7$(),o.vxM("classic"===h.layout?2:-1))},dependencies:[jE,c0,d0],styles:["layout{display:flex;flex:1 1 auto;width:100%;max-width:100%;min-width:0}layout>*{position:relative;display:flex;flex:1 1 auto;width:100%}layout router-outlet+*{position:relative;display:flex;flex:1 1 auto;width:100%}\n"],encapsulation:2})}return a})();const Lf=()=>{const a=(0,o.WQX)(Zi.A),s=(0,o.WQX)(y.Ix);return""!==a.getPublicKey()||s.parseUrl("/login")},e_=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"project/:pubkey",pathMatch:"full",redirectTo:"explore"},{path:"login-redirect",pathMatch:"full",redirectTo:"explore"},{path:"",component:sd,data:{layout:"empty"},children:[{path:"login",loadChildren:()=>Promise.all([v.e(588),v.e(770)]).then(v.bind(v,770))},{path:"register",loadChildren:()=>Promise.all([v.e(588),v.e(963)]).then(v.bind(v,1963))}]},{path:"",canActivate:[Lf],canActivateChild:[Lf],component:sd,data:{layout:"empty"},children:[{path:"logout",loadChildren:()=>v.e(514).then(v.bind(v,1514))}]},{path:"",canActivate:[Lf],canActivateChild:[Lf],component:sd,resolve:{initialData:()=>{const a=(0,o.WQX)(pf);return(0,o.WQX)(Xy),(0,Nt.p)([a.get()])}},children:[{path:"home",loadChildren:()=>Promise.all([v.e(416),v.e(76),v.e(541)]).then(v.bind(v,5541))},{path:"explore",loadChildren:()=>Promise.all([v.e(576),v.e(879),v.e(76),v.e(621)]).then(v.bind(v,4621))},{path:"profile",loadChildren:()=>Promise.all([v.e(576),v.e(416),v.e(865),v.e(76),v.e(209)]).then(v.bind(v,8209))},{path:"profile/:pubkey",loadChildren:()=>Promise.all([v.e(576),v.e(416),v.e(865),v.e(76),v.e(209)]).then(v.bind(v,8209))},{path:"settings",loadChildren:()=>Promise.all([v.e(576),v.e(76),v.e(19)]).then(v.bind(v,2019))},{path:"settings/:id",loadChildren:()=>Promise.all([v.e(576),v.e(76),v.e(19)]).then(v.bind(v,2019))},{path:"chat",loadChildren:()=>Promise.all([v.e(416),v.e(865),v.e(879),v.e(76),v.e(182)]).then(v.bind(v,7774))},{path:"404-not-found",pathMatch:"full",loadChildren:()=>v.e(258).then(v.bind(v,5258))},{path:"**",redirectTo:"404-not-found"}]}];let p0=(()=>{class a{constructor(){const i=(0,o.WQX)(u.up),c=(0,o.WQX)(Xr.tp);c.addSvgIconSet(i.bypassSecurityTrustResourceUrl("icons/material-twotone.svg")),c.addSvgIconSetInNamespace("mat_outline",i.bypassSecurityTrustResourceUrl("icons/material-outline.svg")),c.addSvgIconSetInNamespace("mat_solid",i.bypassSecurityTrustResourceUrl("icons/material-solid.svg")),c.addSvgIconSetInNamespace("feather",i.bypassSecurityTrustResourceUrl("icons/feather.svg")),c.addSvgIconSetInNamespace("heroicons_outline",i.bypassSecurityTrustResourceUrl("icons/heroicons-outline.svg")),c.addSvgIconSetInNamespace("heroicons_solid",i.bypassSecurityTrustResourceUrl("icons/heroicons-solid.svg")),c.addSvgIconSetInNamespace("heroicons_mini",i.bypassSecurityTrustResourceUrl("icons/heroicons-mini.svg"))}static#e=this.\u0275fac=function(c){return new(c||a)};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var m0=v(9350),g0=v(7707);let km=(()=>{class a{constructor(i){this.httpClient=i}getTranslation(i){return this.httpClient.get(`./i18n/${i}.json`)}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(Ee.Qq))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();const i_=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}],ch=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}],uh=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}],dh=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}];var v0=v(7730);var Bf=v(1984),ad=v(7517),b0=v(6726),iC=v(5776);const E0=(0,v(8992).A)(Object.keys,Object);var C0=Object.prototype.hasOwnProperty;var x0=v(1287);const hh=function S0(a){return(0,x0.A)(a)?(0,b0.A)(a):function sC(a){if(!(0,iC.A)(a))return E0(a);var s=[];for(var i in Object(a))C0.call(a,i)&&"constructor"!=i&&s.push(i);return s}(a)};var ld=v(133);var o_=v(9933),A0=v(4528);const Pm=function a_(){return[]};var T0=Object.prototype.propertyIsEnumerable,c_=Object.getOwnPropertySymbols;const au=c_?function(a){return null==a?[]:(a=Object(a),function mh(a,s){for(var i=-1,c=null==a?0:a.length,h=0,C=[];++i{class a{constructor(i){this._angorMockApiService=i,this._compactNavigation=ch,this._defaultNavigation=i_,this._futuristicNavigation=uh,this._horizontalNavigation=dh,this.registerHandlers()}registerHandlers(){this._angorMockApiService.onGet("api/navigation").reply(()=>(this._compactNavigation.forEach(i=>{this._defaultNavigation.forEach(c=>{c.id===i.id&&(i.children=tc(c.children))})}),this._futuristicNavigation.forEach(i=>{this._defaultNavigation.forEach(c=>{c.id===i.id&&(i.children=tc(c.children))})}),this._horizontalNavigation.forEach(i=>{this._defaultNavigation.forEach(c=>{c.id===i.id&&(i.children=tc(c.children))})}),[200,{compact:tc(this._compactNavigation),default:tc(this._defaultNavigation),futuristic:tc(this._futuristicNavigation),horizontal:tc(this._horizontalNavigation)}]))}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(ge))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()];let Q_=(()=>{class a{constructor(i){this.http=i,this.timestamp=null,this.ngswFilePath="/ngsw.json"}load(){var i=this;return(0,G.A)(function*(){try{const c=yield i.http.get(i.ngswFilePath).toPromise();c&&c.timestamp?(i.timestamp=c.timestamp,console.log("Timestamp successfully loaded:",i.timestamp)):console.error("Invalid data format in ngsw.json")}catch(c){console.error("Error loading ngsw.json:",c)}})()}getTimestamp(){return this.timestamp}loadHash(){return this.http.get(this.ngswFilePath).pipe((0,us.T)(i=>i.timestamp||null),(0,Kn.W)(i=>(console.error("Error fetching ngsw.json hash:",i),(0,oe.$)(()=>new Error("Failed to load hash.")))))}static#e=this.\u0275fac=function(c){return new(c||a)(o.KVO(Ee.Qq))};static#t=this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var qm=v(2083);const ww={providers:[function Wd(){return(0,o.ngT)("NgEagerAnimations"),[...Kc]}(),(0,Ee.$R)(),function an(a,s={}){return(0,o.EmA)([fe,De,{provide:Ue,useValue:a},{provide:en,useValue:s},{provide:q,useFactory:Ct,deps:[en,o.Agw]},{provide:o.hnV,useFactory:ot,deps:[o.zZn,Ue,en,o.Agw],multi:!0}])}("ngsw-worker.js",{enabled:!(0,o.naY)(),registrationStrategy:"registerWhenStable:30000"}),{provide:o.hnV,useFactory:function Z_(a){return()=>a.load()},deps:[Q_,Zi.A,qm.d],multi:!0},{provide:o.hnV,useFactory:function bw(a,s){return(0,G.A)(function*(){const i=a.getPublicKey();console.log("publicKey : "+i),i&&(yield s.loadUserProfile(i))})},deps:[Zi.A,qm.d],multi:!0},(0,y.lh)(e_,(0,y.Sn)(y.Kp),(0,y.oH)({scrollPositionRestoration:"enabled"})),{provide:Zt.MJ,useClass:ac},{provide:Zt.de,useValue:{parse:{dateInput:"D"},display:{dateInput:"DDD",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy"}}},function uf(a){const s=[df(Uy),qd(Ig),hf(Mg),Xp(Hy)];return a.config&&s.push(function Ky(a){return(0,o.EmA)([{provide:Ca,useValue:sf(a)}])}(a.config)),a.loader&&s.push(function Kp(a){return(0,o.EmA)([{provide:mr,useClass:a}])}(a.loader)),s}({config:{availableLangs:[{id:"en",label:"English"}],defaultLang:"en",fallbackLang:"en",reRenderOnLangChange:!0,prodMode:!0},loader:km}),{provide:o.hnV,useFactory:()=>{const a=(0,o.WQX)(Ol),s=a.getDefaultLang();return a.setActiveLang(s),()=>function n_(a,s){const i="object"==typeof s;return new Promise((c,h)=>{const C=new g0.Ms({next:I=>{c(I),C.unsubscribe()},error:h,complete:()=>{i?c(s.defaultValue):h(new m0.G)}});a.subscribe(C)})}(a.load(s))},multi:!0},[{provide:o.Z63,useValue:()=>(0,o.WQX)(p0),multi:!0}],(a=>{const s=[{provide:Zt.N,useValue:{doctype:!0,theme:!1,version:!0}},{provide:Vn.U$,useValue:{appearance:"fill"}},{provide:ee,useValue:a?.mockApi?.delay??0},{provide:be.t,useValue:a?.angor??{}},(0,o.oKB)(Fn.hM),{provide:o.Z63,useValue:()=>(0,o.WQX)(Ze.m),multi:!0},(0,Ee.$R)((0,Ee.b$)([We])),{provide:o.Z63,useValue:()=>(0,o.WQX)(je),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(ae.l),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(Le),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(vt),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(Dt.Q),multi:!0}];return a?.mockApi?.services&&s.push((0,Ee.$R)((0,Ee.b$)([te])),{provide:o.hnV,deps:[...a.mockApi.services],useFactory:()=>()=>null,multi:!0}),s})({mockApi:{delay:0,services:Y_},angor:JSON.parse(localStorage.getItem("angorConfig"))??{layout:"classic",scheme:"light",screens:{sm:"600px",md:"960px",lg:"1280px",xl:"1440px"},theme:"theme-brand",themes:[{id:"theme-brand",name:"Brand"},{id:"theme-default",name:"Default"},{id:"theme-teal",name:"Teal"},{id:"theme-rose",name:"Rose"},{id:"theme-purple",name:"Purple"},{id:"theme-amber",name:"Amber"}]}})]};(0,u.B8)(L,ww).catch(a=>console.error(a))},3981:(tn,Ne)=>{"use strict";Ne.byteLength=function oe(ge){var Ee=ee(ge),ke=Ee[1];return 3*(Ee[0]+ke)/4-ke},Ne.toByteArray=function P(ge){var Ee,je,Re=ee(ge),ke=Re[0],te=Re[1],be=new y(function V(ge,Ee,Re){return 3*(Ee+Re)/4-Re}(0,ke,te)),Ze=0,gt=te>0?ke-4:ke;for(je=0;je>16&255,be[Ze++]=Ee>>8&255,be[Ze++]=255&Ee;return 2===te&&(Ee=u[ge.charCodeAt(je)]<<2|u[ge.charCodeAt(je+1)]>>4,be[Ze++]=255&Ee),1===te&&(Ee=u[ge.charCodeAt(je)]<<10|u[ge.charCodeAt(je+1)]<<4|u[ge.charCodeAt(je+2)]>>2,be[Ze++]=Ee>>8&255,be[Ze++]=255&Ee),be},Ne.fromByteArray=function ue(ge){for(var Ee,Re=ge.length,ke=Re%3,te=[],Ze=0,gt=Re-ke;Zegt?gt:Ze+16383));return 1===ke?te.push(v[(Ee=ge[Re-1])>>2]+v[Ee<<4&63]+"=="):2===ke&&te.push(v[(Ee=(ge[Re-2]<<8)+ge[Re-1])>>10]+v[Ee>>4&63]+v[Ee<<2&63]+"="),te.join("")};for(var v=[],u=[],y=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=0;L<64;++L)v[L]=o[L],u[o.charCodeAt(L)]=L;function ee(ge){var Ee=ge.length;if(Ee%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Re=ge.indexOf("=");return-1===Re&&(Re=Ee),[Re,Re===Ee?0:4-Re%4]}function B(ge){return v[ge>>18&63]+v[ge>>12&63]+v[ge>>6&63]+v[63&ge]}function F(ge,Ee,Re){for(var te=[],be=Ee;be{"use strict";const y=v(3981),o=v(2020),L="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Ne.hp=V,Ne.IS=50;const G=2147483647;function oe(Q){if(Q>G)throw new RangeError('The value "'+Q+'" is invalid for option "size"');const T=new Uint8Array(Q);return Object.setPrototypeOf(T,V.prototype),T}function V(Q,T,N){if("number"==typeof Q){if("string"==typeof T)throw new TypeError('The "string" argument must be of type string. Received type number');return ue(Q)}return P(Q,T,N)}function P(Q,T,N){if("string"==typeof Q)return function ge(Q,T){if(("string"!=typeof T||""===T)&&(T="utf8"),!V.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const N=0|gt(Q,T);let $=oe(N);const ce=$.write(Q,T);return ce!==N&&($=$.slice(0,ce)),$}(Q,T);if(ArrayBuffer.isView(Q))return function Re(Q){if(we(Q,Uint8Array)){const T=new Uint8Array(Q);return ke(T.buffer,T.byteOffset,T.byteLength)}return Ee(Q)}(Q);if(null==Q)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(we(Q,ArrayBuffer)||Q&&we(Q.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(we(Q,SharedArrayBuffer)||Q&&we(Q.buffer,SharedArrayBuffer)))return ke(Q,T,N);if("number"==typeof Q)throw new TypeError('The "value" argument must not be of type number. Received type number');const $=Q.valueOf&&Q.valueOf();if(null!=$&&$!==Q)return V.from($,T,N);const ce=function te(Q){if(V.isBuffer(Q)){const T=0|be(Q.length),N=oe(T);return 0===N.length||Q.copy(N,0,0,T),N}return void 0!==Q.length?"number"!=typeof Q.length||tt(Q.length)?oe(0):Ee(Q):"Buffer"===Q.type&&Array.isArray(Q.data)?Ee(Q.data):void 0}(Q);if(ce)return ce;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Q[Symbol.toPrimitive])return V.from(Q[Symbol.toPrimitive]("string"),T,N);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function B(Q){if("number"!=typeof Q)throw new TypeError('"size" argument must be of type number');if(Q<0)throw new RangeError('The value "'+Q+'" is invalid for option "size"')}function ue(Q){return B(Q),oe(Q<0?0:0|be(Q))}function Ee(Q){const T=Q.length<0?0:0|be(Q.length),N=oe(T);for(let $=0;$=G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");return 0|Q}function gt(Q,T){if(V.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||we(Q,ArrayBuffer))return Q.byteLength;if("string"!=typeof Q)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);const N=Q.length,$=arguments.length>2&&!0===arguments[2];if(!$&&0===N)return 0;let ce=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return N;case"utf8":case"utf-8":return Ft(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*N;case"hex":return N>>>1;case"base64":return hi(Q).length;default:if(ce)return $?-1:Ft(Q).length;T=(""+T).toLowerCase(),ce=!0}}function je(Q,T,N){let $=!1;if((void 0===T||T<0)&&(T=0),T>this.length||((void 0===N||N>this.length)&&(N=this.length),N<=0)||(N>>>=0)<=(T>>>=0))return"";for(Q||(Q="utf8");;)switch(Q){case"hex":return _e(this,T,N);case"utf8":case"utf-8":return Zt(this,T,N);case"ascii":return _n(this,T,N);case"latin1":case"binary":return pi(this,T,N);case"base64":return Dt(this,T,N);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae(this,T,N);default:if($)throw new TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),$=!0}}function qe(Q,T,N){const $=Q[T];Q[T]=Q[N],Q[N]=$}function We(Q,T,N,$,ce){if(0===Q.length)return-1;if("string"==typeof N?($=N,N=0):N>2147483647?N=2147483647:N<-2147483648&&(N=-2147483648),tt(N=+N)&&(N=ce?0:Q.length-1),N<0&&(N=Q.length+N),N>=Q.length){if(ce)return-1;N=Q.length-1}else if(N<0){if(!ce)return-1;N=0}if("string"==typeof T&&(T=V.from(T,$)),V.isBuffer(T))return 0===T.length?-1:ae(Q,T,N,$,ce);if("number"==typeof T)return T&=255,"function"==typeof Uint8Array.prototype.indexOf?ce?Uint8Array.prototype.indexOf.call(Q,T,N):Uint8Array.prototype.lastIndexOf.call(Q,T,N):ae(Q,[T],N,$,ce);throw new TypeError("val must be string, number or Buffer")}function ae(Q,T,N,$,ce){let Vt,he=1,et=Q.length,$t=T.length;if(void 0!==$&&("ucs2"===($=String($).toLowerCase())||"ucs-2"===$||"utf16le"===$||"utf-16le"===$)){if(Q.length<2||T.length<2)return-1;he=2,et/=2,$t/=2,N/=2}function Bt(Mn,Ln){return 1===he?Mn[Ln]:Mn.readUInt16BE(Ln*he)}if(ce){let Mn=-1;for(Vt=N;Vtet&&(N=et-$t),Vt=N;Vt>=0;Vt--){let Mn=!0;for(let Ln=0;Ln<$t;Ln++)if(Bt(Q,Vt+Ln)!==Bt(T,Ln)){Mn=!1;break}if(Mn)return Vt}return-1}function me(Q,T,N,$){N=Number(N)||0;const ce=Q.length-N;$?($=Number($))>ce&&($=ce):$=ce;const he=T.length;let et;for($>he/2&&($=he/2),et=0;et<$;++et){const $t=parseInt(T.substr(2*et,2),16);if(tt($t))return et;Q[N+et]=$t}return et}function Le(Q,T,N,$){return qt(Ft(T,Q.length-N),Q,N,$)}function nt(Q,T,N,$){return qt(function Rt(Q){const T=[];for(let N=0;N>8,ce=N%256,he.push(ce),he.push($);return he}(T,Q.length-N),Q,N,$)}function Dt(Q,T,N){return y.fromByteArray(0===T&&N===Q.length?Q:Q.slice(T,N))}function Zt(Q,T,N){N=Math.min(Q.length,N);const $=[];let ce=T;for(;ce239?4:he>223?3:he>191?2:1;if(ce+$t<=N){let Bt,Vt,Mn,Ln;switch($t){case 1:he<128&&(et=he);break;case 2:Bt=Q[ce+1],128==(192&Bt)&&(Ln=(31&he)<<6|63&Bt,Ln>127&&(et=Ln));break;case 3:Bt=Q[ce+1],Vt=Q[ce+2],128==(192&Bt)&&128==(192&Vt)&&(Ln=(15&he)<<12|(63&Bt)<<6|63&Vt,Ln>2047&&(Ln<55296||Ln>57343)&&(et=Ln));break;case 4:Bt=Q[ce+1],Vt=Q[ce+2],Mn=Q[ce+3],128==(192&Bt)&&128==(192&Vt)&&128==(192&Mn)&&(Ln=(15&he)<<18|(63&Bt)<<12|(63&Vt)<<6|63&Mn,Ln>65535&&Ln<1114112&&(et=Ln))}}null===et?(et=65533,$t=1):et>65535&&(et-=65536,$.push(et>>>10&1023|55296),et=56320|1023&et),$.push(et),ce+=$t}return function Vn(Q){const T=Q.length;if(T<=Fn)return String.fromCharCode.apply(String,Q);let N="",$=0;for(;$ce.length?(V.isBuffer(et)||(et=V.from(et)),et.copy(ce,he)):Uint8Array.prototype.set.call(ce,et,he);else{if(!V.isBuffer(et))throw new TypeError('"list" argument must be an Array of Buffers');et.copy(ce,he)}he+=et.length}return ce},V.byteLength=gt,V.prototype._isBuffer=!0,V.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let N=0;NN&&(T+=" ... "),""},L&&(V.prototype[L]=V.prototype.inspect),V.prototype.compare=function(T,N,$,ce,he){if(we(T,Uint8Array)&&(T=V.from(T,T.offset,T.byteLength)),!V.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(void 0===N&&(N=0),void 0===$&&($=T?T.length:0),void 0===ce&&(ce=0),void 0===he&&(he=this.length),N<0||$>T.length||ce<0||he>this.length)throw new RangeError("out of range index");if(ce>=he&&N>=$)return 0;if(ce>=he)return-1;if(N>=$)return 1;if(this===T)return 0;let et=(he>>>=0)-(ce>>>=0),$t=($>>>=0)-(N>>>=0);const Bt=Math.min(et,$t),Vt=this.slice(ce,he),Mn=T.slice(N,$);for(let Ln=0;Ln>>=0,isFinite($)?($>>>=0,void 0===ce&&(ce="utf8")):(ce=$,$=void 0)}const he=this.length-N;if((void 0===$||$>he)&&($=he),T.length>0&&($<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");let et=!1;for(;;)switch(ce){case"hex":return me(this,T,N,$);case"utf8":case"utf-8":return Le(this,T,N,$);case"ascii":case"latin1":case"binary":return nt(this,T,N,$);case"base64":return At(this,T,N,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vt(this,T,N,$);default:if(et)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),et=!0}},V.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const Fn=4096;function _n(Q,T,N){let $="";N=Math.min(Q.length,N);for(let ce=T;ce$)&&(N=$);let ce="";for(let he=T;heN)throw new RangeError("Trying to access beyond buffer length")}function Ie(Q,T,N,$,ce,he){if(!V.isBuffer(Q))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>ce||TQ.length)throw new RangeError("Index out of range")}function Ot(Q,T,N,$,ce){Ce(T,$,ce,Q,N,7);let he=Number(T&BigInt(4294967295));Q[N++]=he,he>>=8,Q[N++]=he,he>>=8,Q[N++]=he,he>>=8,Q[N++]=he;let et=Number(T>>BigInt(32)&BigInt(4294967295));return Q[N++]=et,et>>=8,Q[N++]=et,et>>=8,Q[N++]=et,et>>=8,Q[N++]=et,N}function Pe(Q,T,N,$,ce){Ce(T,$,ce,Q,N,7);let he=Number(T&BigInt(4294967295));Q[N+7]=he,he>>=8,Q[N+6]=he,he>>=8,Q[N+5]=he,he>>=8,Q[N+4]=he;let et=Number(T>>BigInt(32)&BigInt(4294967295));return Q[N+3]=et,et>>=8,Q[N+2]=et,et>>=8,Q[N+1]=et,et>>=8,Q[N]=et,N+8}function ht(Q,T,N,$,ce,he){if(N+$>Q.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("Index out of range")}function Xe(Q,T,N,$,ce){return T=+T,N>>>=0,ce||ht(Q,0,N,4),o.write(Q,T,N,$,23,4),N+4}function Je(Q,T,N,$,ce){return T=+T,N>>>=0,ce||ht(Q,0,N,8),o.write(Q,T,N,$,52,8),N+8}V.prototype.slice=function(T,N){const $=this.length;(T=~~T)<0?(T+=$)<0&&(T=0):T>$&&(T=$),(N=void 0===N?$:~~N)<0?(N+=$)<0&&(N=0):N>$&&(N=$),N>>=0,N>>>=0,$||J(T,N,this.length);let ce=this[T],he=1,et=0;for(;++et>>=0,N>>>=0,$||J(T,N,this.length);let ce=this[T+--N],he=1;for(;N>0&&(he*=256);)ce+=this[T+--N]*he;return ce},V.prototype.readUint8=V.prototype.readUInt8=function(T,N){return T>>>=0,N||J(T,1,this.length),this[T]},V.prototype.readUint16LE=V.prototype.readUInt16LE=function(T,N){return T>>>=0,N||J(T,2,this.length),this[T]|this[T+1]<<8},V.prototype.readUint16BE=V.prototype.readUInt16BE=function(T,N){return T>>>=0,N||J(T,2,this.length),this[T]<<8|this[T+1]},V.prototype.readUint32LE=V.prototype.readUInt32LE=function(T,N){return T>>>=0,N||J(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+16777216*this[T+3]},V.prototype.readUint32BE=V.prototype.readUInt32BE=function(T,N){return T>>>=0,N||J(T,4,this.length),16777216*this[T]+(this[T+1]<<16|this[T+2]<<8|this[T+3])},V.prototype.readBigUInt64LE=bt(function(T){dt(T>>>=0,"offset");const N=this[T],$=this[T+7];(void 0===N||void 0===$)&&un(T,this.length-8);const ce=N+256*this[++T]+65536*this[++T]+this[++T]*2**24,he=this[++T]+256*this[++T]+65536*this[++T]+$*2**24;return BigInt(ce)+(BigInt(he)<>>=0,"offset");const N=this[T],$=this[T+7];(void 0===N||void 0===$)&&un(T,this.length-8);const ce=N*2**24+65536*this[++T]+256*this[++T]+this[++T],he=this[++T]*2**24+65536*this[++T]+256*this[++T]+$;return(BigInt(ce)<>>=0,N>>>=0,$||J(T,N,this.length);let ce=this[T],he=1,et=0;for(;++et=he&&(ce-=Math.pow(2,8*N)),ce},V.prototype.readIntBE=function(T,N,$){T>>>=0,N>>>=0,$||J(T,N,this.length);let ce=N,he=1,et=this[T+--ce];for(;ce>0&&(he*=256);)et+=this[T+--ce]*he;return he*=128,et>=he&&(et-=Math.pow(2,8*N)),et},V.prototype.readInt8=function(T,N){return T>>>=0,N||J(T,1,this.length),128&this[T]?-1*(255-this[T]+1):this[T]},V.prototype.readInt16LE=function(T,N){T>>>=0,N||J(T,2,this.length);const $=this[T]|this[T+1]<<8;return 32768&$?4294901760|$:$},V.prototype.readInt16BE=function(T,N){T>>>=0,N||J(T,2,this.length);const $=this[T+1]|this[T]<<8;return 32768&$?4294901760|$:$},V.prototype.readInt32LE=function(T,N){return T>>>=0,N||J(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},V.prototype.readInt32BE=function(T,N){return T>>>=0,N||J(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},V.prototype.readBigInt64LE=bt(function(T){dt(T>>>=0,"offset");const N=this[T],$=this[T+7];return(void 0===N||void 0===$)&&un(T,this.length-8),(BigInt(this[T+4]+256*this[T+5]+65536*this[T+6]+($<<24))<>>=0,"offset");const N=this[T],$=this[T+7];(void 0===N||void 0===$)&&un(T,this.length-8);const ce=(N<<24)+65536*this[++T]+256*this[++T]+this[++T];return(BigInt(ce)<>>=0,N||J(T,4,this.length),o.read(this,T,!0,23,4)},V.prototype.readFloatBE=function(T,N){return T>>>=0,N||J(T,4,this.length),o.read(this,T,!1,23,4)},V.prototype.readDoubleLE=function(T,N){return T>>>=0,N||J(T,8,this.length),o.read(this,T,!0,52,8)},V.prototype.readDoubleBE=function(T,N){return T>>>=0,N||J(T,8,this.length),o.read(this,T,!1,52,8)},V.prototype.writeUintLE=V.prototype.writeUIntLE=function(T,N,$,ce){T=+T,N>>>=0,$>>>=0,ce||Ie(this,T,N,$,Math.pow(2,8*$)-1,0);let he=1,et=0;for(this[N]=255&T;++et<$&&(he*=256);)this[N+et]=T/he&255;return N+$},V.prototype.writeUintBE=V.prototype.writeUIntBE=function(T,N,$,ce){T=+T,N>>>=0,$>>>=0,ce||Ie(this,T,N,$,Math.pow(2,8*$)-1,0);let he=$-1,et=1;for(this[N+he]=255&T;--he>=0&&(et*=256);)this[N+he]=T/et&255;return N+$},V.prototype.writeUint8=V.prototype.writeUInt8=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,1,255,0),this[N]=255&T,N+1},V.prototype.writeUint16LE=V.prototype.writeUInt16LE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,2,65535,0),this[N]=255&T,this[N+1]=T>>>8,N+2},V.prototype.writeUint16BE=V.prototype.writeUInt16BE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,2,65535,0),this[N]=T>>>8,this[N+1]=255&T,N+2},V.prototype.writeUint32LE=V.prototype.writeUInt32LE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,4,4294967295,0),this[N+3]=T>>>24,this[N+2]=T>>>16,this[N+1]=T>>>8,this[N]=255&T,N+4},V.prototype.writeUint32BE=V.prototype.writeUInt32BE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,4,4294967295,0),this[N]=T>>>24,this[N+1]=T>>>16,this[N+2]=T>>>8,this[N+3]=255&T,N+4},V.prototype.writeBigUInt64LE=bt(function(T,N=0){return Ot(this,T,N,BigInt(0),BigInt("0xffffffffffffffff"))}),V.prototype.writeBigUInt64BE=bt(function(T,N=0){return Pe(this,T,N,BigInt(0),BigInt("0xffffffffffffffff"))}),V.prototype.writeIntLE=function(T,N,$,ce){if(T=+T,N>>>=0,!ce){const Bt=Math.pow(2,8*$-1);Ie(this,T,N,$,Bt-1,-Bt)}let he=0,et=1,$t=0;for(this[N]=255&T;++he<$&&(et*=256);)T<0&&0===$t&&0!==this[N+he-1]&&($t=1),this[N+he]=(T/et|0)-$t&255;return N+$},V.prototype.writeIntBE=function(T,N,$,ce){if(T=+T,N>>>=0,!ce){const Bt=Math.pow(2,8*$-1);Ie(this,T,N,$,Bt-1,-Bt)}let he=$-1,et=1,$t=0;for(this[N+he]=255&T;--he>=0&&(et*=256);)T<0&&0===$t&&0!==this[N+he+1]&&($t=1),this[N+he]=(T/et|0)-$t&255;return N+$},V.prototype.writeInt8=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,1,127,-128),T<0&&(T=255+T+1),this[N]=255&T,N+1},V.prototype.writeInt16LE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,2,32767,-32768),this[N]=255&T,this[N+1]=T>>>8,N+2},V.prototype.writeInt16BE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,2,32767,-32768),this[N]=T>>>8,this[N+1]=255&T,N+2},V.prototype.writeInt32LE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,4,2147483647,-2147483648),this[N]=255&T,this[N+1]=T>>>8,this[N+2]=T>>>16,this[N+3]=T>>>24,N+4},V.prototype.writeInt32BE=function(T,N,$){return T=+T,N>>>=0,$||Ie(this,T,N,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[N]=T>>>24,this[N+1]=T>>>16,this[N+2]=T>>>8,this[N+3]=255&T,N+4},V.prototype.writeBigInt64LE=bt(function(T,N=0){return Ot(this,T,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),V.prototype.writeBigInt64BE=bt(function(T,N=0){return Pe(this,T,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),V.prototype.writeFloatLE=function(T,N,$){return Xe(this,T,N,!0,$)},V.prototype.writeFloatBE=function(T,N,$){return Xe(this,T,N,!1,$)},V.prototype.writeDoubleLE=function(T,N,$){return Je(this,T,N,!0,$)},V.prototype.writeDoubleBE=function(T,N,$){return Je(this,T,N,!1,$)},V.prototype.copy=function(T,N,$,ce){if(!V.isBuffer(T))throw new TypeError("argument should be a Buffer");if($||($=0),!ce&&0!==ce&&(ce=this.length),N>=T.length&&(N=T.length),N||(N=0),ce>0&&ce<$&&(ce=$),ce===$||0===T.length||0===this.length)return 0;if(N<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),T.length-N>>=0,$=void 0===$?this.length:$>>>0,T||(T=0),"number"==typeof T)for(he=N;he<$;++he)this[he]=T;else{const et=V.isBuffer(T)?T:V.from(T,ce),$t=et.length;if(0===$t)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(he=0;he<$-N;++he)this[he+N]=et[he%$t]}return this};const Me={};function ie(Q,T,N){Me[Q]=class extends N{constructor(){super(),Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,delete this.name}get code(){return Q}set code(ce){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ce,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function ve(Q){let T="",N=Q.length;const $="-"===Q[0]?1:0;for(;N>=$+4;N-=3)T=`_${Q.slice(N-3,N)}${T}`;return`${Q.slice(0,N)}${T}`}function Ce(Q,T,N,$,ce,he){if(Q>N||Q3?0===T||T===BigInt(0)?`>= 0${et} and < 2${et} ** ${8*(he+1)}${et}`:`>= -(2${et} ** ${8*(he+1)-1}${et}) and < 2 ** ${8*(he+1)-1}${et}`:`>= ${T}${et} and <= ${N}${et}`,new Me.ERR_OUT_OF_RANGE("value",$t,Q)}!function le(Q,T,N){dt(T,"offset"),(void 0===Q[T]||void 0===Q[T+N])&&un(T,Q.length-(N+1))}($,ce,he)}function dt(Q,T){if("number"!=typeof Q)throw new Me.ERR_INVALID_ARG_TYPE(T,"number",Q)}function un(Q,T,N){throw Math.floor(Q)!==Q?(dt(Q,N),new Me.ERR_OUT_OF_RANGE(N||"offset","an integer",Q)):T<0?new Me.ERR_BUFFER_OUT_OF_BOUNDS:new Me.ERR_OUT_OF_RANGE(N||"offset",`>= ${N?1:0} and <= ${T}`,Q)}ie("ERR_BUFFER_OUT_OF_BOUNDS",function(Q){return Q?`${Q} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ie("ERR_INVALID_ARG_TYPE",function(Q,T){return`The "${Q}" argument must be of type number. Received type ${typeof T}`},TypeError),ie("ERR_OUT_OF_RANGE",function(Q,T,N){let $=`The value of "${Q}" is out of range.`,ce=N;return Number.isInteger(N)&&Math.abs(N)>2**32?ce=ve(String(N)):"bigint"==typeof N&&(ce=String(N),(N>BigInt(2)**BigInt(32)||N<-(BigInt(2)**BigInt(32)))&&(ce=ve(ce)),ce+="n"),$+=` It must be ${T}. Received ${ce}`,$},RangeError);const it=/[^+/0-9A-Za-z-_]/g;function Ft(Q,T){let N;T=T||1/0;const $=Q.length;let ce=null;const he=[];for(let et=0;et<$;++et){if(N=Q.charCodeAt(et),N>55295&&N<57344){if(!ce){if(N>56319){(T-=3)>-1&&he.push(239,191,189);continue}if(et+1===$){(T-=3)>-1&&he.push(239,191,189);continue}ce=N;continue}if(N<56320){(T-=3)>-1&&he.push(239,191,189),ce=N;continue}N=65536+(ce-55296<<10|N-56320)}else ce&&(T-=3)>-1&&he.push(239,191,189);if(ce=null,N<128){if((T-=1)<0)break;he.push(N)}else if(N<2048){if((T-=2)<0)break;he.push(N>>6|192,63&N|128)}else if(N<65536){if((T-=3)<0)break;he.push(N>>12|224,N>>6&63|128,63&N|128)}else{if(!(N<1114112))throw new Error("Invalid code point");if((T-=4)<0)break;he.push(N>>18|240,N>>12&63|128,N>>6&63|128,63&N|128)}}return he}function hi(Q){return y.toByteArray(function It(Q){if((Q=(Q=Q.split("=")[0]).trim().replace(it,"")).length<2)return"";for(;Q.length%4!=0;)Q+="=";return Q}(Q))}function qt(Q,T,N,$){let ce;for(ce=0;ce<$&&!(ce+N>=T.length||ce>=Q.length);++ce)T[ce+N]=Q[ce];return ce}function we(Q,T){return Q instanceof T||null!=Q&&null!=Q.constructor&&null!=Q.constructor.name&&Q.constructor.name===T.name}function tt(Q){return Q!=Q}const rt=function(){const Q="0123456789abcdef",T=new Array(256);for(let N=0;N<16;++N){const $=16*N;for(let ce=0;ce<16;++ce)T[$+ce]=Q[N]+Q[ce]}return T}();function bt(Q){return typeof BigInt>"u"?on:Q}function on(){throw new Error("BigInt not supported")}},2020:(tn,Ne)=>{Ne.read=function(v,u,y,o,L){var G,ee,oe=8*L-o-1,V=(1<>1,B=-7,F=y?L-1:0,ue=y?-1:1,ge=v[u+F];for(F+=ue,G=ge&(1<<-B)-1,ge>>=-B,B+=oe;B>0;G=256*G+v[u+F],F+=ue,B-=8);for(ee=G&(1<<-B)-1,G>>=-B,B+=o;B>0;ee=256*ee+v[u+F],F+=ue,B-=8);if(0===G)G=1-P;else{if(G===V)return ee?NaN:1/0*(ge?-1:1);ee+=Math.pow(2,o),G-=P}return(ge?-1:1)*ee*Math.pow(2,G-o)},Ne.write=function(v,u,y,o,L,G){var ee,oe,V,P=8*G-L-1,B=(1<>1,ue=23===L?Math.pow(2,-24)-Math.pow(2,-77):0,ge=o?0:G-1,Ee=o?1:-1,Re=u<0||0===u&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(oe=isNaN(u)?1:0,ee=B):(ee=Math.floor(Math.log(u)/Math.LN2),u*(V=Math.pow(2,-ee))<1&&(ee--,V*=2),(u+=ee+F>=1?ue/V:ue*Math.pow(2,1-F))*V>=2&&(ee++,V/=2),ee+F>=B?(oe=0,ee=B):ee+F>=1?(oe=(u*V-1)*Math.pow(2,L),ee+=F):(oe=u*Math.pow(2,F-1)*Math.pow(2,L),ee=0));L>=8;v[y+ge]=255&oe,ge+=Ee,oe/=256,L-=8);for(ee=ee<0;v[y+ge]=255&ee,ge+=Ee,ee/=256,P-=8);v[y+ge-Ee]|=128*Re}},119:tn=>{tn.exports=function y(o,L,G){function ee(P,B){if(!L[P]){if(!o[P]){if(oe)return oe(P,!0);var ue=new Error("Cannot find module '"+P+"'");throw ue.code="MODULE_NOT_FOUND",ue}var ge=L[P]={exports:{}};o[P][0].call(ge.exports,function(Ee){return ee(o[P][1][Ee]||Ee)},ge,ge.exports,y,o,L,G)}return L[P].exports}for(var oe=void 0,V=0;V"u"&&y(3);var F=Promise;function ue(W,Te){Te&&W.then(function(se){Te(null,se)},function(se){Te(se)})}function ge(W,Te,se){"function"==typeof Te&&W.then(Te),"function"==typeof se&&W.catch(se)}function Ee(W){return"string"!=typeof W&&(console.warn(W+" used as a key, but it is not a string."),W=String(W)),W}function Re(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var ke="local-forage-detect-blob-support",te=void 0,be={},Ze=Object.prototype.toString,gt="readonly",je="readwrite";function qe(W){for(var Te=W.length,se=new ArrayBuffer(Te),$e=new Uint8Array(se),pt=0;pt=43)}}).catch(function(){return!1})}(W).then(function(Te){return te=Te})}function me(W){var Te=be[W.name],se={};se.promise=new F(function($e,pt){se.resolve=$e,se.reject=pt}),Te.deferredOperations.push(se),Te.dbReady=Te.dbReady?Te.dbReady.then(function(){return se.promise}):se.promise}function Le(W){var se=be[W.name].deferredOperations.pop();if(se)return se.resolve(),se.promise}function nt(W,Te){var $e=be[W.name].deferredOperations.pop();if($e)return $e.reject(Te),$e.promise}function At(W,Te){return new F(function(se,$e){if(be[W.name]=be[W.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},W.db){if(!Te)return se(W.db);me(W),W.db.close()}var pt=[W.name];Te&&pt.push(W.version);var lt=V.open.apply(V,pt);Te&&(lt.onupgradeneeded=function(jt){var hn=lt.result;try{hn.createObjectStore(W.storeName),jt.oldVersion<=1&&hn.createObjectStore(ke)}catch(fn){if("ConstraintError"!==fn.name)throw fn;console.warn('The database "'+W.name+'" has been upgraded from version '+jt.oldVersion+" to version "+jt.newVersion+', but the storage "'+W.storeName+'" already exists.')}}),lt.onerror=function(jt){jt.preventDefault(),$e(lt.error)},lt.onsuccess=function(){var jt=lt.result;jt.onversionchange=function(hn){hn.target.close()},se(jt),Le(W)}})}function vt(W){return At(W,!1)}function Dt(W){return At(W,!0)}function Zt(W,Te){if(!W.db)return!0;var se=!W.db.objectStoreNames.contains(W.storeName),pt=W.version>W.db.version;if(W.versionW.version&&(W.version=lt)}return!0}return!1}function Vn(W){return B([qe(atob(W.data))],{type:W.type})}function _n(W){return W&&W.__local_forage_encoded_blob}function pi(W){var Te=this,se=Te._initReady().then(function(){var $e=be[Te._dbInfo.name];if($e&&$e.dbReady)return $e.dbReady});return ge(se,W,W),se}function Ae(W,Te,se,$e){void 0===$e&&($e=1);try{var pt=W.db.transaction(W.storeName,Te);se(null,pt)}catch(lt){if($e>0&&(!W.db||"InvalidStateError"===lt.name||"NotFoundError"===lt.name))return F.resolve().then(function(){if(!W.db||"NotFoundError"===lt.name&&!W.db.objectStoreNames.contains(W.storeName)&&W.version<=W.db.version)return W.db&&(W.version=W.db.version+1),Dt(W)}).then(function(){return function _e(W){me(W);for(var Te=be[W.name],se=Te.forages,$e=0;$e>4,Dn[pt++]=(15&jt)<<4|hn>>2,Dn[pt++]=(3&hn)<<6|63&fn;return wn}function et(W){var $e,Te=new Uint8Array(W),se="";for($e=0;$e>2],se+=un[(3&Te[$e])<<4|Te[$e+1]>>4],se+=un[(15&Te[$e+1])<<2|Te[$e+2]>>6],se+=un[63&Te[$e+2]];return Te.length%3==2?se=se.substring(0,se.length-1)+"=":Te.length%3==1&&(se=se.substring(0,se.length-2)+"=="),se}var Vt={serialize:function $t(W,Te){var se="";if(W&&(se=ce.call(W)),W&&("[object ArrayBuffer]"===se||W.buffer&&"[object ArrayBuffer]"===ce.call(W.buffer))){var $e,pt=Ft;W instanceof ArrayBuffer?($e=W,pt+=kn):($e=W.buffer,"[object Int8Array]"===se?pt+="si08":"[object Uint8Array]"===se?pt+="ui08":"[object Uint8ClampedArray]"===se?pt+="uic8":"[object Int16Array]"===se?pt+="si16":"[object Uint16Array]"===se?pt+="ur16":"[object Int32Array]"===se?pt+="si32":"[object Uint32Array]"===se?pt+=Q:"[object Float32Array]"===se?pt+=T:"[object Float64Array]"===se?pt+=N:Te(new Error("Failed to get type for BinaryArray"))),Te(pt+et($e))}else if("[object Blob]"===se){var lt=new FileReader;lt.onload=function(){var jt="~~local_forage_type~"+W.type+"~"+et(this.result);Te(Ft+hi+jt)},lt.readAsArrayBuffer(W)}else try{Te(JSON.stringify(W))}catch(jt){console.error("Couldn't convert value into a JSON string: ",W),Te(null,jt)}},deserialize:function Bt(W){if(W.substring(0,9)!==Ft)return JSON.parse(W);var $e,Te=W.substring(13),se=W.substring(9,13);if(se===hi&&It.test(Te)){var pt=Te.match(It);$e=pt[1],Te=Te.substring(pt[0].length)}var lt=he(Te);switch(se){case kn:return lt;case hi:return B([lt],{type:$e});case"si08":return new Int8Array(lt);case"ui08":return new Uint8Array(lt);case"uic8":return new Uint8ClampedArray(lt);case"si16":return new Int16Array(lt);case"ur16":return new Uint16Array(lt);case"si32":return new Int32Array(lt);case Q:return new Uint32Array(lt);case T:return new Float32Array(lt);case N:return new Float64Array(lt);default:throw new Error("Unkown type: "+se)}},stringToBuffer:he,bufferToString:et};function Mn(W,Te,se,$e){W.executeSql("CREATE TABLE IF NOT EXISTS "+Te.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],se,$e)}function Ei(W,Te,se,$e,pt,lt){W.executeSql(se,$e,pt,function(jt,hn){hn.code===hn.SYNTAX_ERR?jt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Te.storeName],function(fn,wn){wn.rows.length?lt(fn,hn):Mn(fn,Te,function(){fn.executeSql(se,$e,pt,lt)},lt)},lt):lt(jt,hn)},lt)}function He(W,Te,se,$e){var pt=this;W=Ee(W);var lt=new F(function(jt,hn){pt.ready().then(function(){void 0===Te&&(Te=null);var fn=Te,wn=pt._dbInfo;wn.serializer.serialize(Te,function(Dn,jn){jn?hn(jn):wn.db.transaction(function($n){Ei($n,wn,"INSERT OR REPLACE INTO "+wn.storeName+" (key, value) VALUES (?, ?)",[W,Dn],function(){jt(fn)},function(ci,ki){hn(ki)})},function($n){if($n.code===$n.QUOTA_ERR){if($e>0)return void jt(He.apply(pt,[W,fn,se,$e-1]));hn($n)}})})}).catch(hn)});return ue(lt,se),lt}var Et={_driver:"webSQLStorage",_initStorage:function Ln(W){var Te=this,se={db:null};if(W)for(var $e in W)se[$e]="string"!=typeof W[$e]?W[$e].toString():W[$e];var pt=new F(function(lt,jt){try{se.db=openDatabase(se.name,String(se.version),se.description,se.size)}catch(hn){return jt(hn)}se.db.transaction(function(hn){Mn(hn,se,function(){Te._dbInfo=se,lt()},function(fn,wn){jt(wn)})},jt)});return se.serializer=Vt,pt},_support:function dt(){return"function"==typeof openDatabase}(),iterate:function En(W,Te){var se=this,$e=new F(function(pt,lt){se.ready().then(function(){var jt=se._dbInfo;jt.db.transaction(function(hn){Ei(hn,jt,"SELECT * FROM "+jt.storeName,[],function(fn,wn){for(var Dn=wn.rows,jn=Dn.length,$n=0;$n '__WebKitDatabaseInfoTable__'",[],function(pt,lt){for(var jt=[],hn=0;hn0}var Yr={_driver:"localStorageWrapper",_initStorage:function Oe(W){var se={};if(W)for(var $e in W)se[$e]=W[$e];return se.keyPrefix=Lt(W,this._defaultConfig),Qe()?(this._dbInfo=se,se.serializer=Vt,F.resolve()):F.reject()},_support:function at(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function rn(W,Te){var se=this,$e=se.ready().then(function(){for(var pt=se._dbInfo,lt=pt.keyPrefix,jt=lt.length,hn=localStorage.length,fn=1,wn=0;wn=0;pt--){var lt=localStorage.key(pt);0===lt.indexOf($e)&&localStorage.removeItem(lt)}});return ue(se,W),se},length:function xr(W){var se=this.keys().then(function($e){return $e.length});return ue(se,W),se},key:function ai(W,Te){var se=this,$e=se.ready().then(function(){var lt,pt=se._dbInfo;try{lt=localStorage.key(W)}catch{lt=null}return lt&&(lt=lt.substring(pt.keyPrefix.length)),lt});return ue($e,Te),$e},keys:function yr(W){var Te=this,se=Te.ready().then(function(){for(var $e=Te._dbInfo,pt=localStorage.length,lt=[],jt=0;jt=0;jt--){var hn=localStorage.key(jt);0===hn.indexOf(lt)&&localStorage.removeItem(hn)}}):F.reject("Invalid arguments"),Te),pt}},Or=function(Te,se){return Te===se||"number"==typeof Te&&"number"==typeof se&&isNaN(Te)&&isNaN(se)},ft=function(Te,se){for(var $e=Te.length,pt=0;pt<$e;){if(Or(Te[pt],se))return!0;pt++}return!1},St=Array.isArray||function(W){return"[object Array]"===Object.prototype.toString.call(W)},ln={},yn={},An={INDEXEDDB:Ce,WEBSQL:Et,LOCALSTORAGE:Yr},Xn=[An.INDEXEDDB._driver,An.WEBSQL._driver,An.LOCALSTORAGE._driver],zn=["dropInstance"],ri=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(zn),li={description:"",driver:Xn.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Bn(W,Te){W[Te]=function(){var se=arguments;return W.ready().then(function(){return W[Te].apply(W,se)})}}function xe(){for(var W=1;W"u"?"undefined":G(se))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var $e in se){if("storeName"===$e&&(se[$e]=se[$e].replace(/\W/g,"_")),"version"===$e&&"number"!=typeof se[$e])return new Error("Database version must be a number.");this._config[$e]=se[$e]}return!("driver"in se)||!se.driver||this.setDriver(this._config.driver)}return"string"==typeof se?this._config[se]:this._config},W.prototype.defineDriver=function(se,$e,pt){var lt=new F(function(jt,hn){try{var fn=se._driver,wn=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!se._driver)return void hn(wn);for(var Dn=ri.concat("_initStorage"),jn=0,$n=Dn.length;jn<$n;jn++){var ci=Dn[jn];if((!ft(zn,ci)||se[ci])&&"function"!=typeof se[ci])return void hn(wn)}!function(){for(var uo=function(zi){return function(){var Bs=new Error("Method "+zi+" is not implemented by the current driver"),ns=F.reject(Bs);return ue(ns,arguments[arguments.length-1]),ns}},Fr=0,Ci=zn.length;Fr{"use strict";v.d(Ne,{t:()=>y});var u=v(1413);class y extends u.B{constructor(L){super(),this._value=L}get value(){return this.getValue()}_subscribe(L){const G=super._subscribe(L);return!G.closed&&L.next(this._value),G}getValue(){const{hasError:L,thrownError:G,_value:ee}=this;if(L)throw G;return this._throwIfClosed(),ee}next(L){super.next(this._value=L)}}},1985:(tn,Ne,v)=>{"use strict";v.d(Ne,{c:()=>V});var u=v(7707),y=v(8359),o=v(3494),L=v(1203),G=v(1026),ee=v(8071),oe=v(9786);let V=(()=>{class ue{constructor(Ee){Ee&&(this._subscribe=Ee)}lift(Ee){const Re=new ue;return Re.source=this,Re.operator=Ee,Re}subscribe(Ee,Re,ke){const te=function F(ue){return ue&&ue instanceof u.vU||function B(ue){return ue&&(0,ee.T)(ue.next)&&(0,ee.T)(ue.error)&&(0,ee.T)(ue.complete)}(ue)&&(0,y.Uv)(ue)}(Ee)?Ee:new u.Ms(Ee,Re,ke);return(0,oe.Y)(()=>{const{operator:be,source:Ze}=this;te.add(be?be.call(te,Ze):Ze?this._subscribe(te):this._trySubscribe(te))}),te}_trySubscribe(Ee){try{return this._subscribe(Ee)}catch(Re){Ee.error(Re)}}forEach(Ee,Re){return new(Re=P(Re))((ke,te)=>{const be=new u.Ms({next:Ze=>{try{Ee(Ze)}catch(gt){te(gt),be.unsubscribe()}},error:te,complete:ke});this.subscribe(be)})}_subscribe(Ee){var Re;return null===(Re=this.source)||void 0===Re?void 0:Re.subscribe(Ee)}[o.s](){return this}pipe(...Ee){return(0,L.m)(Ee)(this)}toPromise(Ee){return new(Ee=P(Ee))((Re,ke)=>{let te;this.subscribe(be=>te=be,be=>ke(be),()=>Re(te))})}}return ue.create=ge=>new ue(ge),ue})();function P(ue){var ge;return null!==(ge=ue??G.$.Promise)&&void 0!==ge?ge:Promise}},2771:(tn,Ne,v)=>{"use strict";v.d(Ne,{m:()=>o});var u=v(1413),y=v(6129);class o extends u.B{constructor(G=1/0,ee=1/0,oe=y.U){super(),this._bufferSize=G,this._windowTime=ee,this._timestampProvider=oe,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=ee===1/0,this._bufferSize=Math.max(1,G),this._windowTime=Math.max(1,ee)}next(G){const{isStopped:ee,_buffer:oe,_infiniteTimeWindow:V,_timestampProvider:P,_windowTime:B}=this;ee||(oe.push(G),!V&&oe.push(P.now()+B)),this._trimBuffer(),super.next(G)}_subscribe(G){this._throwIfClosed(),this._trimBuffer();const ee=this._innerSubscribe(G),{_infiniteTimeWindow:oe,_buffer:V}=this,P=V.slice();for(let B=0;B{"use strict";v.d(Ne,{B:()=>oe});var u=v(1985),y=v(8359);const L=(0,v(1853).L)(P=>function(){P(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var G=v(7908),ee=v(9786);let oe=(()=>{class P extends u.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(F){const ue=new V(this,this);return ue.operator=F,ue}_throwIfClosed(){if(this.closed)throw new L}next(F){(0,ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ue of this.currentObservers)ue.next(F)}})}error(F){(0,ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=F;const{observers:ue}=this;for(;ue.length;)ue.shift().error(F)}})}complete(){(0,ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:F}=this;for(;F.length;)F.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var F;return(null===(F=this.observers)||void 0===F?void 0:F.length)>0}_trySubscribe(F){return this._throwIfClosed(),super._trySubscribe(F)}_subscribe(F){return this._throwIfClosed(),this._checkFinalizedStatuses(F),this._innerSubscribe(F)}_innerSubscribe(F){const{hasError:ue,isStopped:ge,observers:Ee}=this;return ue||ge?y.Kn:(this.currentObservers=null,Ee.push(F),new y.yU(()=>{this.currentObservers=null,(0,G.o)(Ee,F)}))}_checkFinalizedStatuses(F){const{hasError:ue,thrownError:ge,isStopped:Ee}=this;ue?F.error(ge):Ee&&F.complete()}asObservable(){const F=new u.c;return F.source=this,F}}return P.create=(B,F)=>new V(B,F),P})();class V extends oe{constructor(B,F){super(),this.destination=B,this.source=F}next(B){var F,ue;null===(ue=null===(F=this.destination)||void 0===F?void 0:F.next)||void 0===ue||ue.call(F,B)}error(B){var F,ue;null===(ue=null===(F=this.destination)||void 0===F?void 0:F.error)||void 0===ue||ue.call(F,B)}complete(){var B,F;null===(F=null===(B=this.destination)||void 0===B?void 0:B.complete)||void 0===F||F.call(B)}_subscribe(B){var F,ue;return null!==(ue=null===(F=this.source)||void 0===F?void 0:F.subscribe(B))&&void 0!==ue?ue:y.Kn}}},7707:(tn,Ne,v)=>{"use strict";v.d(Ne,{Ms:()=>ke,vU:()=>ue});var u=v(8071),y=v(8359),o=v(1026),L=v(5334),G=v(5343);const ee=P("C",void 0,void 0);function P(je,qe,We){return{kind:je,value:qe,error:We}}var B=v(9270),F=v(9786);class ue extends y.yU{constructor(qe){super(),this.isStopped=!1,qe?(this.destination=qe,(0,y.Uv)(qe)&&qe.add(this)):this.destination=gt}static create(qe,We,ae){return new ke(qe,We,ae)}next(qe){this.isStopped?Ze(function V(je){return P("N",je,void 0)}(qe),this):this._next(qe)}error(qe){this.isStopped?Ze(function oe(je){return P("E",void 0,je)}(qe),this):(this.isStopped=!0,this._error(qe))}complete(){this.isStopped?Ze(ee,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(qe){this.destination.next(qe)}_error(qe){try{this.destination.error(qe)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ge=Function.prototype.bind;function Ee(je,qe){return ge.call(je,qe)}class Re{constructor(qe){this.partialObserver=qe}next(qe){const{partialObserver:We}=this;if(We.next)try{We.next(qe)}catch(ae){te(ae)}}error(qe){const{partialObserver:We}=this;if(We.error)try{We.error(qe)}catch(ae){te(ae)}else te(qe)}complete(){const{partialObserver:qe}=this;if(qe.complete)try{qe.complete()}catch(We){te(We)}}}class ke extends ue{constructor(qe,We,ae){let me;if(super(),(0,u.T)(qe)||!qe)me={next:qe??void 0,error:We??void 0,complete:ae??void 0};else{let Le;this&&o.$.useDeprecatedNextContext?(Le=Object.create(qe),Le.unsubscribe=()=>this.unsubscribe(),me={next:qe.next&&Ee(qe.next,Le),error:qe.error&&Ee(qe.error,Le),complete:qe.complete&&Ee(qe.complete,Le)}):me=qe}this.destination=new Re(me)}}function te(je){o.$.useDeprecatedSynchronousErrorHandling?(0,F.l)(je):(0,L.m)(je)}function Ze(je,qe){const{onStoppedNotification:We}=o.$;We&&B.f.setTimeout(()=>We(je,qe))}const gt={closed:!0,next:G.l,error:function be(je){throw je},complete:G.l}},8359:(tn,Ne,v)=>{"use strict";v.d(Ne,{Kn:()=>ee,yU:()=>G,Uv:()=>oe});var u=v(8071);const o=(0,v(1853).L)(P=>function(F){P(this),this.message=F?`${F.length} errors occurred during unsubscription:\n${F.map((ue,ge)=>`${ge+1}) ${ue.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=F});var L=v(7908);class G{constructor(B){this.initialTeardown=B,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let B;if(!this.closed){this.closed=!0;const{_parentage:F}=this;if(F)if(this._parentage=null,Array.isArray(F))for(const Ee of F)Ee.remove(this);else F.remove(this);const{initialTeardown:ue}=this;if((0,u.T)(ue))try{ue()}catch(Ee){B=Ee instanceof o?Ee.errors:[Ee]}const{_finalizers:ge}=this;if(ge){this._finalizers=null;for(const Ee of ge)try{V(Ee)}catch(Re){B=B??[],Re instanceof o?B=[...B,...Re.errors]:B.push(Re)}}if(B)throw new o(B)}}add(B){var F;if(B&&B!==this)if(this.closed)V(B);else{if(B instanceof G){if(B.closed||B._hasParent(this))return;B._addParent(this)}(this._finalizers=null!==(F=this._finalizers)&&void 0!==F?F:[]).push(B)}}_hasParent(B){const{_parentage:F}=this;return F===B||Array.isArray(F)&&F.includes(B)}_addParent(B){const{_parentage:F}=this;this._parentage=Array.isArray(F)?(F.push(B),F):F?[F,B]:B}_removeParent(B){const{_parentage:F}=this;F===B?this._parentage=null:Array.isArray(F)&&(0,L.o)(F,B)}remove(B){const{_finalizers:F}=this;F&&(0,L.o)(F,B),B instanceof G&&B._removeParent(this)}}G.EMPTY=(()=>{const P=new G;return P.closed=!0,P})();const ee=G.EMPTY;function oe(P){return P instanceof G||P&&"closed"in P&&(0,u.T)(P.remove)&&(0,u.T)(P.add)&&(0,u.T)(P.unsubscribe)}function V(P){(0,u.T)(P)?P():P.unsubscribe()}},1026:(tn,Ne,v)=>{"use strict";v.d(Ne,{$:()=>u});const u={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(tn,Ne,v)=>{"use strict";v.d(Ne,{G:()=>ee});var u=v(1985),y=v(8359),o=v(9898),L=v(4360),G=v(9974);class ee extends u.c{constructor(V,P){super(),this.source=V,this.subjectFactory=P,this._subject=null,this._refCount=0,this._connection=null,(0,G.S)(V)&&(this.lift=V.lift)}_subscribe(V){return this.getSubject().subscribe(V)}getSubject(){const V=this._subject;return(!V||V.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:V}=this;this._subject=this._connection=null,V?.unsubscribe()}connect(){let V=this._connection;if(!V){V=this._connection=new y.yU;const P=this.getSubject();V.add(this.source.subscribe((0,L._)(P,void 0,()=>{this._teardown(),P.complete()},B=>{this._teardown(),P.error(B)},()=>this._teardown()))),V.closed&&(this._connection=null,V=y.yU.EMPTY)}return V}refCount(){return(0,o.B)()(this)}}},4572:(tn,Ne,v)=>{"use strict";v.d(Ne,{z:()=>B});var u=v(1985),y=v(3073),o=v(6648),L=v(3669),G=v(6450),ee=v(9326),oe=v(8496),V=v(4360),P=v(5225);function B(...ge){const Ee=(0,ee.lI)(ge),Re=(0,ee.ms)(ge),{args:ke,keys:te}=(0,y.D)(ge);if(0===ke.length)return(0,o.H)([],Ee);const be=new u.c(function F(ge,Ee,Re=L.D){return ke=>{ue(Ee,()=>{const{length:te}=ge,be=new Array(te);let Ze=te,gt=te;for(let je=0;je{const qe=(0,o.H)(ge[je],Ee);let We=!1;qe.subscribe((0,V._)(ke,ae=>{be[je]=ae,We||(We=!0,gt--),gt||ke.next(Re(be.slice()))},()=>{--Ze||ke.complete()}))},ke)},ke)}}(ke,Ee,te?Ze=>(0,oe.e)(te,Ze):L.D));return Re?be.pipe((0,G.I)(Re)):be}function ue(ge,Ee,Re){ge?(0,P.N)(Re,ge,Ee):Ee()}},8793:(tn,Ne,v)=>{"use strict";v.d(Ne,{x:()=>G});var u=v(6365),o=v(9326),L=v(6648);function G(...ee){return function y(){return(0,u.U)(1)}()((0,L.H)(ee,(0,o.lI)(ee)))}},9030:(tn,Ne,v)=>{"use strict";v.d(Ne,{v:()=>o});var u=v(1985),y=v(8750);function o(L){return new u.c(G=>{(0,y.Tg)(L()).subscribe(G)})}},983:(tn,Ne,v)=>{"use strict";v.d(Ne,{w:()=>y});const y=new(v(1985).c)(G=>G.complete())},7468:(tn,Ne,v)=>{"use strict";v.d(Ne,{p:()=>V});var u=v(1985),y=v(3073),o=v(8750),L=v(9326),G=v(4360),ee=v(6450),oe=v(8496);function V(...P){const B=(0,L.ms)(P),{args:F,keys:ue}=(0,y.D)(P),ge=new u.c(Ee=>{const{length:Re}=F;if(!Re)return void Ee.complete();const ke=new Array(Re);let te=Re,be=Re;for(let Ze=0;Ze{gt||(gt=!0,be--),ke[Ze]=je},()=>te--,void 0,()=>{(!te||!gt)&&(be||Ee.next(ue?(0,oe.e)(ue,ke):ke),Ee.complete())}))}});return B?ge.pipe((0,ee.I)(B)):ge}},6648:(tn,Ne,v)=>{"use strict";v.d(Ne,{H:()=>ae});var u=v(8750),y=v(5225),o=v(9974),L=v(4360);function G(me,Le=0){return(0,o.N)((nt,At)=>{nt.subscribe((0,L._)(At,vt=>(0,y.N)(At,me,()=>At.next(vt),Le),()=>(0,y.N)(At,me,()=>At.complete(),Le),vt=>(0,y.N)(At,me,()=>At.error(vt),Le)))})}function ee(me,Le=0){return(0,o.N)((nt,At)=>{At.add(me.schedule(()=>nt.subscribe(At),Le))})}var P=v(1985),F=v(4761),ue=v(8071);function Ee(me,Le){if(!me)throw new Error("Iterable cannot be null");return new P.c(nt=>{(0,y.N)(nt,Le,()=>{const At=me[Symbol.asyncIterator]();(0,y.N)(nt,Le,()=>{At.next().then(vt=>{vt.done?nt.complete():nt.next(vt.value)})},0,!0)})})}var Re=v(5055),ke=v(9858),te=v(7441),be=v(5397),Ze=v(7953),gt=v(591),je=v(5196);function ae(me,Le){return Le?function We(me,Le){if(null!=me){if((0,Re.l)(me))return function oe(me,Le){return(0,u.Tg)(me).pipe(ee(Le),G(Le))}(me,Le);if((0,te.X)(me))return function B(me,Le){return new P.c(nt=>{let At=0;return Le.schedule(function(){At===me.length?nt.complete():(nt.next(me[At++]),nt.closed||this.schedule())})})}(me,Le);if((0,ke.y)(me))return function V(me,Le){return(0,u.Tg)(me).pipe(ee(Le),G(Le))}(me,Le);if((0,Ze.T)(me))return Ee(me,Le);if((0,be.x)(me))return function ge(me,Le){return new P.c(nt=>{let At;return(0,y.N)(nt,Le,()=>{At=me[F.l](),(0,y.N)(nt,Le,()=>{let vt,Dt;try{({value:vt,done:Dt}=At.next())}catch(Zt){return void nt.error(Zt)}Dt?nt.complete():nt.next(vt)},0,!0)}),()=>(0,ue.T)(At?.return)&&At.return()})}(me,Le);if((0,je.U)(me))return function qe(me,Le){return Ee((0,je.C)(me),Le)}(me,Le)}throw(0,gt.L)(me)}(me,Le):(0,u.Tg)(me)}},3726:(tn,Ne,v)=>{"use strict";v.d(Ne,{R:()=>B});var u=v(8750),y=v(1985),o=v(1397),L=v(7441),G=v(8071),ee=v(6450);const oe=["addListener","removeListener"],V=["addEventListener","removeEventListener"],P=["on","off"];function B(Re,ke,te,be){if((0,G.T)(te)&&(be=te,te=void 0),be)return B(Re,ke,te).pipe((0,ee.I)(be));const[Ze,gt]=function Ee(Re){return(0,G.T)(Re.addEventListener)&&(0,G.T)(Re.removeEventListener)}(Re)?V.map(je=>qe=>Re[je](ke,qe,te)):function ue(Re){return(0,G.T)(Re.addListener)&&(0,G.T)(Re.removeListener)}(Re)?oe.map(F(Re,ke)):function ge(Re){return(0,G.T)(Re.on)&&(0,G.T)(Re.off)}(Re)?P.map(F(Re,ke)):[];if(!Ze&&(0,L.X)(Re))return(0,o.Z)(je=>B(je,ke,te))((0,u.Tg)(Re));if(!Ze)throw new TypeError("Invalid event target");return new y.c(je=>{const qe=(...We)=>je.next(1gt(qe)})}function F(Re,ke){return te=>be=>Re[te](ke,be)}},8750:(tn,Ne,v)=>{"use strict";v.d(Ne,{Tg:()=>ge});var u=v(1635),y=v(7441),o=v(9858),L=v(1985),G=v(5055),ee=v(7953),oe=v(591),V=v(5397),P=v(5196),B=v(8071),F=v(5334),ue=v(3494);function ge(je){if(je instanceof L.c)return je;if(null!=je){if((0,G.l)(je))return function Ee(je){return new L.c(qe=>{const We=je[ue.s]();if((0,B.T)(We.subscribe))return We.subscribe(qe);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(je);if((0,y.X)(je))return function Re(je){return new L.c(qe=>{for(let We=0;We{je.then(We=>{qe.closed||(qe.next(We),qe.complete())},We=>qe.error(We)).then(null,F.m)})}(je);if((0,ee.T)(je))return be(je);if((0,V.x)(je))return function te(je){return new L.c(qe=>{for(const We of je)if(qe.next(We),qe.closed)return;qe.complete()})}(je);if((0,P.U)(je))return function Ze(je){return be((0,P.C)(je))}(je)}throw(0,oe.L)(je)}function be(je){return new L.c(qe=>{(function gt(je,qe){var We,ae,me,Le;return(0,u.sH)(this,void 0,void 0,function*(){try{for(We=(0,u.xN)(je);!(ae=yield We.next()).done;)if(qe.next(ae.value),qe.closed)return}catch(nt){me={error:nt}}finally{try{ae&&!ae.done&&(Le=We.return)&&(yield Le.call(We))}finally{if(me)throw me.error}}qe.complete()})})(je,qe).catch(We=>qe.error(We))})}},7786:(tn,Ne,v)=>{"use strict";v.d(Ne,{h:()=>ee});var u=v(6365),y=v(8750),o=v(983),L=v(9326),G=v(6648);function ee(...oe){const V=(0,L.lI)(oe),P=(0,L.R0)(oe,1/0),B=oe;return B.length?1===B.length?(0,y.Tg)(B[0]):(0,u.U)(P)((0,G.H)(B,V)):o.w}},7673:(tn,Ne,v)=>{"use strict";v.d(Ne,{of:()=>o});var u=v(9326),y=v(6648);function o(...L){const G=(0,u.lI)(L);return(0,y.H)(L,G)}},8810:(tn,Ne,v)=>{"use strict";v.d(Ne,{$:()=>o});var u=v(1985),y=v(8071);function o(L,G){const ee=(0,y.T)(L)?L:()=>L,oe=V=>V.error(ee());return new u.c(G?V=>G.schedule(oe,0,V):oe)}},1584:(tn,Ne,v)=>{"use strict";v.d(Ne,{O:()=>G});var u=v(1985),y=v(3236),o=v(9470);function G(ee=0,oe,V=y.b){let P=-1;return null!=oe&&((0,o.m)(oe)?V=oe:P=oe),new u.c(B=>{let F=function L(ee){return ee instanceof Date&&!isNaN(ee)}(ee)?+ee-V.now():ee;F<0&&(F=0);let ue=0;return V.schedule(function(){B.closed||(B.next(ue++),0<=P?this.schedule(void 0,P):B.complete())},F)})}},4360:(tn,Ne,v)=>{"use strict";v.d(Ne,{_:()=>y});var u=v(7707);function y(L,G,ee,oe,V){return new o(L,G,ee,oe,V)}class o extends u.vU{constructor(G,ee,oe,V,P,B){super(G),this.onFinalize=P,this.shouldUnsubscribe=B,this._next=ee?function(F){try{ee(F)}catch(ue){G.error(ue)}}:super._next,this._error=V?function(F){try{V(F)}catch(ue){G.error(ue)}finally{this.unsubscribe()}}:super._error,this._complete=oe?function(){try{oe()}catch(F){G.error(F)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var G;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ee}=this;super.unsubscribe(),!ee&&(null===(G=this.onFinalize)||void 0===G||G.call(this))}}}},3798:(tn,Ne,v)=>{"use strict";v.d(Ne,{Z:()=>oe});var u=v(3236),y=v(9974),o=v(8750),L=v(4360),ee=v(1584);function oe(V,P=u.E){return function G(V){return(0,y.N)((P,B)=>{let F=!1,ue=null,ge=null,Ee=!1;const Re=()=>{if(ge?.unsubscribe(),ge=null,F){F=!1;const te=ue;ue=null,B.next(te)}Ee&&B.complete()},ke=()=>{ge=null,Ee&&B.complete()};P.subscribe((0,L._)(B,te=>{F=!0,ue=te,ge||(0,o.Tg)(V(te)).subscribe(ge=(0,L._)(B,Re,ke))},()=>{Ee=!0,(!F||!ge||ge.closed)&&B.complete()}))})}(()=>(0,ee.O)(V,P))}},9437:(tn,Ne,v)=>{"use strict";v.d(Ne,{W:()=>L});var u=v(8750),y=v(4360),o=v(9974);function L(G){return(0,o.N)((ee,oe)=>{let B,V=null,P=!1;V=ee.subscribe((0,y._)(oe,void 0,void 0,F=>{B=(0,u.Tg)(G(F,L(G)(ee))),V?(V.unsubscribe(),V=null,B.subscribe(oe)):P=!0})),P&&(V.unsubscribe(),V=null,B.subscribe(oe))})}},274:(tn,Ne,v)=>{"use strict";v.d(Ne,{H:()=>o});var u=v(1397),y=v(8071);function o(L,G){return(0,y.T)(G)?(0,u.Z)(L,G,1):(0,u.Z)(L,1)}},152:(tn,Ne,v)=>{"use strict";v.d(Ne,{B:()=>L});var u=v(3236),y=v(9974),o=v(4360);function L(G,ee=u.E){return(0,y.N)((oe,V)=>{let P=null,B=null,F=null;const ue=()=>{if(P){P.unsubscribe(),P=null;const Ee=B;B=null,V.next(Ee)}};function ge(){const Ee=F+G,Re=ee.now();if(Re{B=Ee,F=ee.now(),P||(P=ee.schedule(ge,G),V.add(P))},()=>{ue(),V.complete()},void 0,()=>{B=P=null}))})}},1986:(tn,Ne,v)=>{"use strict";v.d(Ne,{c:()=>ge});var u=v(3236),y=v(8793),o=v(6697),L=v(9974),G=v(4360),ee=v(5343),V=v(3703),P=v(1397),B=v(8750);function F(Ee,Re){return Re?ke=>(0,y.x)(Re.pipe((0,o.s)(1),function oe(){return(0,L.N)((Ee,Re)=>{Ee.subscribe((0,G._)(Re,ee.l))})}()),ke.pipe(F(Ee))):(0,P.Z)((ke,te)=>(0,B.Tg)(Ee(ke,te)).pipe((0,o.s)(1),(0,V.u)(ke)))}var ue=v(1584);function ge(Ee,Re=u.E){const ke=(0,ue.O)(Ee,Re);return F(()=>ke)}},3294:(tn,Ne,v)=>{"use strict";v.d(Ne,{F:()=>L});var u=v(3669),y=v(9974),o=v(4360);function L(ee,oe=u.D){return ee=ee??G,(0,y.N)((V,P)=>{let B,F=!0;V.subscribe((0,o._)(P,ue=>{const ge=oe(ue);(F||!ee(B,ge))&&(F=!1,B=ge,P.next(ue))}))})}function G(ee,oe){return ee===oe}},5964:(tn,Ne,v)=>{"use strict";v.d(Ne,{p:()=>o});var u=v(9974),y=v(4360);function o(L,G){return(0,u.N)((ee,oe)=>{let V=0;ee.subscribe((0,y._)(oe,P=>L.call(G,P,V++)&&oe.next(P)))})}},980:(tn,Ne,v)=>{"use strict";v.d(Ne,{j:()=>y});var u=v(9974);function y(o){return(0,u.N)((L,G)=>{try{L.subscribe(G)}finally{G.add(o)}})}},6354:(tn,Ne,v)=>{"use strict";v.d(Ne,{T:()=>o});var u=v(9974),y=v(4360);function o(L,G){return(0,u.N)((ee,oe)=>{let V=0;ee.subscribe((0,y._)(oe,P=>{oe.next(L.call(G,P,V++))}))})}},3703:(tn,Ne,v)=>{"use strict";v.d(Ne,{u:()=>y});var u=v(6354);function y(o){return(0,u.T)(()=>o)}},6365:(tn,Ne,v)=>{"use strict";v.d(Ne,{U:()=>o});var u=v(1397),y=v(3669);function o(L=1/0){return(0,u.Z)(y.D,L)}},1397:(tn,Ne,v)=>{"use strict";v.d(Ne,{Z:()=>V});var u=v(6354),y=v(8750),o=v(9974),L=v(5225),G=v(4360),oe=v(8071);function V(P,B,F=1/0){return(0,oe.T)(B)?V((ue,ge)=>(0,u.T)((Ee,Re)=>B(ue,Ee,ge,Re))((0,y.Tg)(P(ue,ge))),F):("number"==typeof B&&(F=B),(0,o.N)((ue,ge)=>function ee(P,B,F,ue,ge,Ee,Re,ke){const te=[];let be=0,Ze=0,gt=!1;const je=()=>{gt&&!te.length&&!be&&B.complete()},qe=ae=>be{Ee&&B.next(ae),be++;let me=!1;(0,y.Tg)(F(ae,Ze++)).subscribe((0,G._)(B,Le=>{ge?.(Le),Ee?qe(Le):B.next(Le)},()=>{me=!0},void 0,()=>{if(me)try{for(be--;te.length&&beWe(Le)):We(Le)}je()}catch(Le){B.error(Le)}}))};return P.subscribe((0,G._)(B,qe,()=>{gt=!0,je()})),()=>{ke?.()}}(ue,ge,P,F)))}},9898:(tn,Ne,v)=>{"use strict";v.d(Ne,{B:()=>o});var u=v(9974),y=v(4360);function o(){return(0,u.N)((L,G)=>{let ee=null;L._refCount++;const oe=(0,y._)(G,void 0,void 0,void 0,()=>{if(!L||L._refCount<=0||0<--L._refCount)return void(ee=null);const V=L._connection,P=ee;ee=null,V&&(!P||V===P)&&V.unsubscribe(),G.unsubscribe()});L.subscribe(oe),oe.closed||(ee=L.connect())})}},7647:(tn,Ne,v)=>{"use strict";v.d(Ne,{u:()=>G});var u=v(8750),y=v(1413),o=v(7707),L=v(9974);function G(oe={}){const{connector:V=()=>new y.B,resetOnError:P=!0,resetOnComplete:B=!0,resetOnRefCountZero:F=!0}=oe;return ue=>{let ge,Ee,Re,ke=0,te=!1,be=!1;const Ze=()=>{Ee?.unsubscribe(),Ee=void 0},gt=()=>{Ze(),ge=Re=void 0,te=be=!1},je=()=>{const qe=ge;gt(),qe?.unsubscribe()};return(0,L.N)((qe,We)=>{ke++,!be&&!te&&Ze();const ae=Re=Re??V();We.add(()=>{ke--,0===ke&&!be&&!te&&(Ee=ee(je,F))}),ae.subscribe(We),!ge&&ke>0&&(ge=new o.Ms({next:me=>ae.next(me),error:me=>{be=!0,Ze(),Ee=ee(gt,P,me),ae.error(me)},complete:()=>{te=!0,Ze(),Ee=ee(gt,B),ae.complete()}}),(0,u.Tg)(qe).subscribe(ge))})(ue)}}function ee(oe,V,...P){if(!0===V)return void oe();if(!1===V)return;const B=new o.Ms({next:()=>{B.unsubscribe(),oe()}});return(0,u.Tg)(V(...P)).subscribe(B)}},4668:(tn,Ne,v)=>{"use strict";v.d(Ne,{t:()=>o});var u=v(2771),y=v(7647);function o(L,G,ee){let oe,V=!1;return L&&"object"==typeof L?({bufferSize:oe=1/0,windowTime:G=1/0,refCount:V=!1,scheduler:ee}=L):oe=L??1/0,(0,y.u)({connector:()=>new u.m(oe,G,ee),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:V})}},5245:(tn,Ne,v)=>{"use strict";v.d(Ne,{i:()=>y});var u=v(5964);function y(o){return(0,u.p)((L,G)=>o<=G)}},9172:(tn,Ne,v)=>{"use strict";v.d(Ne,{Z:()=>L});var u=v(8793),y=v(9326),o=v(9974);function L(...G){const ee=(0,y.lI)(G);return(0,o.N)((oe,V)=>{(ee?(0,u.x)(G,oe,ee):(0,u.x)(G,oe)).subscribe(V)})}},5558:(tn,Ne,v)=>{"use strict";v.d(Ne,{n:()=>L});var u=v(8750),y=v(9974),o=v(4360);function L(G,ee){return(0,y.N)((oe,V)=>{let P=null,B=0,F=!1;const ue=()=>F&&!P&&V.complete();oe.subscribe((0,o._)(V,ge=>{P?.unsubscribe();let Ee=0;const Re=B++;(0,u.Tg)(G(ge,Re)).subscribe(P=(0,o._)(V,ke=>V.next(ee?ee(ge,ke,Re,Ee++):ke),()=>{P=null,ue()}))},()=>{F=!0,ue()}))})}},6697:(tn,Ne,v)=>{"use strict";v.d(Ne,{s:()=>L});var u=v(983),y=v(9974),o=v(4360);function L(G){return G<=0?()=>u.w:(0,y.N)((ee,oe)=>{let V=0;ee.subscribe((0,o._)(oe,P=>{++V<=G&&(oe.next(P),G<=V&&oe.complete())}))})}},6977:(tn,Ne,v)=>{"use strict";v.d(Ne,{Q:()=>G});var u=v(9974),y=v(4360),o=v(8750),L=v(5343);function G(ee){return(0,u.N)((oe,V)=>{(0,o.Tg)(ee).subscribe((0,y._)(V,()=>V.complete(),L.l)),!V.closed&&oe.subscribe(V)})}},7048:(tn,Ne,v)=>{"use strict";v.d(Ne,{v:()=>o});var u=v(9974),y=v(4360);function o(L,G=!1){return(0,u.N)((ee,oe)=>{let V=0;ee.subscribe((0,y._)(oe,P=>{const B=L(P,V++);(B||G)&&oe.next(P),!B&&oe.complete()}))})}},8141:(tn,Ne,v)=>{"use strict";v.d(Ne,{M:()=>G});var u=v(8071),y=v(9974),o=v(4360),L=v(3669);function G(ee,oe,V){const P=(0,u.T)(ee)||oe||V?{next:ee,error:oe,complete:V}:ee;return P?(0,y.N)((B,F)=>{var ue;null===(ue=P.subscribe)||void 0===ue||ue.call(P);let ge=!0;B.subscribe((0,o._)(F,Ee=>{var Re;null===(Re=P.next)||void 0===Re||Re.call(P,Ee),F.next(Ee)},()=>{var Ee;ge=!1,null===(Ee=P.complete)||void 0===Ee||Ee.call(P),F.complete()},Ee=>{var Re;ge=!1,null===(Re=P.error)||void 0===Re||Re.call(P,Ee),F.error(Ee)},()=>{var Ee,Re;ge&&(null===(Ee=P.unsubscribe)||void 0===Ee||Ee.call(P)),null===(Re=P.finalize)||void 0===Re||Re.call(P)}))}):L.D}},6780:(tn,Ne,v)=>{"use strict";v.d(Ne,{R:()=>G});var u=v(8359);class y extends u.yU{constructor(oe,V){super()}schedule(oe,V=0){return this}}const o={setInterval(ee,oe,...V){const{delegate:P}=o;return P?.setInterval?P.setInterval(ee,oe,...V):setInterval(ee,oe,...V)},clearInterval(ee){const{delegate:oe}=o;return(oe?.clearInterval||clearInterval)(ee)},delegate:void 0};var L=v(7908);class G extends y{constructor(oe,V){super(oe,V),this.scheduler=oe,this.work=V,this.pending=!1}schedule(oe,V=0){var P;if(this.closed)return this;this.state=oe;const B=this.id,F=this.scheduler;return null!=B&&(this.id=this.recycleAsyncId(F,B,V)),this.pending=!0,this.delay=V,this.id=null!==(P=this.id)&&void 0!==P?P:this.requestAsyncId(F,this.id,V),this}requestAsyncId(oe,V,P=0){return o.setInterval(oe.flush.bind(oe,this),P)}recycleAsyncId(oe,V,P=0){if(null!=P&&this.delay===P&&!1===this.pending)return V;null!=V&&o.clearInterval(V)}execute(oe,V){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const P=this._execute(oe,V);if(P)return P;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(oe,V){let B,P=!1;try{this.work(oe)}catch(F){P=!0,B=F||new Error("Scheduled action threw falsy error")}if(P)return this.unsubscribe(),B}unsubscribe(){if(!this.closed){const{id:oe,scheduler:V}=this,{actions:P}=V;this.work=this.state=this.scheduler=null,this.pending=!1,(0,L.o)(P,this),null!=oe&&(this.id=this.recycleAsyncId(V,oe,null)),this.delay=null,super.unsubscribe()}}}},9687:(tn,Ne,v)=>{"use strict";v.d(Ne,{q:()=>o});var u=v(6129);class y{constructor(G,ee=y.now){this.schedulerActionCtor=G,this.now=ee}schedule(G,ee=0,oe){return new this.schedulerActionCtor(this,G).schedule(oe,ee)}}y.now=u.U.now;class o extends y{constructor(G,ee=y.now){super(G,ee),this.actions=[],this._active=!1}flush(G){const{actions:ee}=this;if(this._active)return void ee.push(G);let oe;this._active=!0;do{if(oe=G.execute(G.state,G.delay))break}while(G=ee.shift());if(this._active=!1,oe){for(;G=ee.shift();)G.unsubscribe();throw oe}}}},5007:(tn,Ne,v)=>{"use strict";v.d(Ne,{$:()=>Ee});var u=v(6780);let o,y=1;const L={};function G(ke){return ke in L&&(delete L[ke],!0)}const ee={setImmediate(ke){const te=y++;return L[te]=!0,o||(o=Promise.resolve()),o.then(()=>G(te)&&ke()),te},clearImmediate(ke){G(ke)}},{setImmediate:V,clearImmediate:P}=ee,B={setImmediate(...ke){const{delegate:te}=B;return(te?.setImmediate||V)(...ke)},clearImmediate(ke){const{delegate:te}=B;return(te?.clearImmediate||P)(ke)},delegate:void 0};var ue=v(9687);const Ee=new class ge extends ue.q{flush(te){this._active=!0;const be=this._scheduled;this._scheduled=void 0;const{actions:Ze}=this;let gt;te=te||Ze.shift();do{if(gt=te.execute(te.state,te.delay))break}while((te=Ze[0])&&te.id===be&&Ze.shift());if(this._active=!1,gt){for(;(te=Ze[0])&&te.id===be&&Ze.shift();)te.unsubscribe();throw gt}}}(class F extends u.R{constructor(te,be){super(te,be),this.scheduler=te,this.work=be}requestAsyncId(te,be,Ze=0){return null!==Ze&&Ze>0?super.requestAsyncId(te,be,Ze):(te.actions.push(this),te._scheduled||(te._scheduled=B.setImmediate(te.flush.bind(te,void 0))))}recycleAsyncId(te,be,Ze=0){var gt;if(null!=Ze?Ze>0:this.delay>0)return super.recycleAsyncId(te,be,Ze);const{actions:je}=te;null!=be&&(null===(gt=je[je.length-1])||void 0===gt?void 0:gt.id)!==be&&(B.clearImmediate(be),te._scheduled===be&&(te._scheduled=void 0))}})},3236:(tn,Ne,v)=>{"use strict";v.d(Ne,{E:()=>o,b:()=>L});var u=v(6780);const o=new(v(9687).q)(u.R),L=o},6129:(tn,Ne,v)=>{"use strict";v.d(Ne,{U:()=>u});const u={now:()=>(u.delegate||Date).now(),delegate:void 0}},9270:(tn,Ne,v)=>{"use strict";v.d(Ne,{f:()=>u});const u={setTimeout(y,o,...L){const{delegate:G}=u;return G?.setTimeout?G.setTimeout(y,o,...L):setTimeout(y,o,...L)},clearTimeout(y){const{delegate:o}=u;return(o?.clearTimeout||clearTimeout)(y)},delegate:void 0}},4761:(tn,Ne,v)=>{"use strict";v.d(Ne,{l:()=>y});const y=function u(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(tn,Ne,v)=>{"use strict";v.d(Ne,{s:()=>u});const u="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(tn,Ne,v)=>{"use strict";v.d(Ne,{G:()=>y});const y=(0,v(1853).L)(o=>function(){o(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(tn,Ne,v)=>{"use strict";v.d(Ne,{R0:()=>ee,lI:()=>G,ms:()=>L});var u=v(8071),y=v(9470);function o(oe){return oe[oe.length-1]}function L(oe){return(0,u.T)(o(oe))?oe.pop():void 0}function G(oe){return(0,y.m)(o(oe))?oe.pop():void 0}function ee(oe,V){return"number"==typeof o(oe)?oe.pop():V}},3073:(tn,Ne,v)=>{"use strict";v.d(Ne,{D:()=>G});const{isArray:u}=Array,{getPrototypeOf:y,prototype:o,keys:L}=Object;function G(oe){if(1===oe.length){const V=oe[0];if(u(V))return{args:V,keys:null};if(function ee(oe){return oe&&"object"==typeof oe&&y(oe)===o}(V)){const P=L(V);return{args:P.map(B=>V[B]),keys:P}}}return{args:oe,keys:null}}},7908:(tn,Ne,v)=>{"use strict";function u(y,o){if(y){const L=y.indexOf(o);0<=L&&y.splice(L,1)}}v.d(Ne,{o:()=>u})},1853:(tn,Ne,v)=>{"use strict";function u(y){const L=y(G=>{Error.call(G),G.stack=(new Error).stack});return L.prototype=Object.create(Error.prototype),L.prototype.constructor=L,L}v.d(Ne,{L:()=>u})},8496:(tn,Ne,v)=>{"use strict";function u(y,o){return y.reduce((L,G,ee)=>(L[G]=o[ee],L),{})}v.d(Ne,{e:()=>u})},9786:(tn,Ne,v)=>{"use strict";v.d(Ne,{Y:()=>o,l:()=>L});var u=v(1026);let y=null;function o(G){if(u.$.useDeprecatedSynchronousErrorHandling){const ee=!y;if(ee&&(y={errorThrown:!1,error:null}),G(),ee){const{errorThrown:oe,error:V}=y;if(y=null,oe)throw V}}else G()}function L(G){u.$.useDeprecatedSynchronousErrorHandling&&y&&(y.errorThrown=!0,y.error=G)}},5225:(tn,Ne,v)=>{"use strict";function u(y,o,L,G=0,ee=!1){const oe=o.schedule(function(){L(),ee?y.add(this.schedule(null,G)):this.unsubscribe()},G);if(y.add(oe),!ee)return oe}v.d(Ne,{N:()=>u})},3669:(tn,Ne,v)=>{"use strict";function u(y){return y}v.d(Ne,{D:()=>u})},7441:(tn,Ne,v)=>{"use strict";v.d(Ne,{X:()=>u});const u=y=>y&&"number"==typeof y.length&&"function"!=typeof y},7953:(tn,Ne,v)=>{"use strict";v.d(Ne,{T:()=>y});var u=v(8071);function y(o){return Symbol.asyncIterator&&(0,u.T)(o?.[Symbol.asyncIterator])}},8071:(tn,Ne,v)=>{"use strict";function u(y){return"function"==typeof y}v.d(Ne,{T:()=>u})},5055:(tn,Ne,v)=>{"use strict";v.d(Ne,{l:()=>o});var u=v(3494),y=v(8071);function o(L){return(0,y.T)(L[u.s])}},5397:(tn,Ne,v)=>{"use strict";v.d(Ne,{x:()=>o});var u=v(4761),y=v(8071);function o(L){return(0,y.T)(L?.[u.l])}},4402:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>o});var u=v(1985),y=v(8071);function o(L){return!!L&&(L instanceof u.c||(0,y.T)(L.lift)&&(0,y.T)(L.subscribe))}},9858:(tn,Ne,v)=>{"use strict";v.d(Ne,{y:()=>y});var u=v(8071);function y(o){return(0,u.T)(o?.then)}},5196:(tn,Ne,v)=>{"use strict";v.d(Ne,{C:()=>o,U:()=>L});var u=v(1635),y=v(8071);function o(G){return(0,u.AQ)(this,arguments,function*(){const oe=G.getReader();try{for(;;){const{value:V,done:P}=yield(0,u.N3)(oe.read());if(P)return yield(0,u.N3)(void 0);yield yield(0,u.N3)(V)}}finally{oe.releaseLock()}})}function L(G){return(0,y.T)(G?.getReader)}},9470:(tn,Ne,v)=>{"use strict";v.d(Ne,{m:()=>y});var u=v(8071);function y(o){return o&&(0,u.T)(o.schedule)}},9974:(tn,Ne,v)=>{"use strict";v.d(Ne,{N:()=>o,S:()=>y});var u=v(8071);function y(L){return(0,u.T)(L?.lift)}function o(L){return G=>{if(y(G))return G.lift(function(ee){try{return L(ee,this)}catch(oe){this.error(oe)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(tn,Ne,v)=>{"use strict";v.d(Ne,{I:()=>L});var u=v(6354);const{isArray:y}=Array;function L(G){return(0,u.T)(ee=>function o(G,ee){return y(ee)?G(...ee):G(ee)}(G,ee))}},5343:(tn,Ne,v)=>{"use strict";function u(){}v.d(Ne,{l:()=>u})},1203:(tn,Ne,v)=>{"use strict";v.d(Ne,{F:()=>y,m:()=>o});var u=v(3669);function y(...L){return o(L)}function o(L){return 0===L.length?u.D:1===L.length?L[0]:function(ee){return L.reduce((oe,V)=>V(oe),ee)}}},5334:(tn,Ne,v)=>{"use strict";v.d(Ne,{m:()=>o});var u=v(1026),y=v(9270);function o(L){y.f.setTimeout(()=>{const{onUnhandledError:G}=u.$;if(!G)throw L;G(L)})}},591:(tn,Ne,v)=>{"use strict";function u(y){return new TypeError(`You provided ${null!==y&&"object"==typeof y?"an invalid object":`'${y}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}v.d(Ne,{L:()=>u})},9969:(tn,Ne,v)=>{"use strict";v.d(Ne,{FX:()=>At,If:()=>o,K2:()=>V,MA:()=>Ee,Os:()=>oe,P:()=>ke,S6:()=>be,hZ:()=>G,i0:()=>ee,i7:()=>F,iF:()=>P,kY:()=>ue,kp:()=>L,sf:()=>Le,ui:()=>nt,wk:()=>B});var u=v(177),y=v(4438),o=function(vt){return vt[vt.State=0]="State",vt[vt.Transition=1]="Transition",vt[vt.Sequence=2]="Sequence",vt[vt.Group=3]="Group",vt[vt.Animate=4]="Animate",vt[vt.Keyframes=5]="Keyframes",vt[vt.Style=6]="Style",vt[vt.Trigger=7]="Trigger",vt[vt.Reference=8]="Reference",vt[vt.AnimateChild=9]="AnimateChild",vt[vt.AnimateRef=10]="AnimateRef",vt[vt.Query=11]="Query",vt[vt.Stagger=12]="Stagger",vt}(o||{});const L="*";function G(vt,Dt){return{type:o.Trigger,name:vt,definitions:Dt,options:{}}}function ee(vt,Dt=null){return{type:o.Animate,styles:Dt,timings:vt}}function oe(vt,Dt=null){return{type:o.Group,steps:vt,options:Dt}}function V(vt,Dt=null){return{type:o.Sequence,steps:vt,options:Dt}}function P(vt){return{type:o.Style,styles:vt,offset:null}}function B(vt,Dt,Zt){return{type:o.State,name:vt,styles:Dt,options:Zt}}function F(vt){return{type:o.Keyframes,steps:vt}}function ue(vt,Dt,Zt=null){return{type:o.Transition,expr:vt,animation:Dt,options:Zt}}function Ee(vt=null){return{type:o.AnimateChild,options:vt}}function ke(vt,Dt,Zt=null){return{type:o.Query,selector:vt,animation:Dt,options:Zt}}let be=(()=>{class vt{static#e=this.\u0275fac=function(Fn){return new(Fn||vt)};static#t=this.\u0275prov=y.jDH({token:vt,factory:()=>(0,y.WQX)(gt),providedIn:"root"})}return vt})();class Ze{}let gt=(()=>{class vt extends be{constructor(Zt,Fn){if(super(),this.animationModuleType=(0,y.WQX)(y.bc$,{optional:!0}),this._nextAnimationId=0,this._renderer=Zt.createRenderer(Fn.body,{id:"0",encapsulation:y.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function me(vt){const Dt=vt.\u0275type;return 0===Dt||1===Dt}(this._renderer))throw new y.wOt(3600,!1)}build(Zt){const Fn=this._nextAnimationId;this._nextAnimationId++;const Vn=Array.isArray(Zt)?V(Zt):Zt;return We(this._renderer,null,Fn,"register",[Vn]),new je(Fn,this._renderer)}static#e=this.\u0275fac=function(Fn){return new(Fn||vt)(y.KVO(y._9s),y.KVO(u.qQ))};static#t=this.\u0275prov=y.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})();class je extends Ze{constructor(Dt,Zt){super(),this._id=Dt,this._renderer=Zt}create(Dt,Zt){return new qe(this._id,Dt,Zt||{},this._renderer)}}class qe{constructor(Dt,Zt,Fn,Vn){this.id=Dt,this.element=Zt,this._renderer=Vn,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Fn)}_listen(Dt,Zt){return this._renderer.listen(this.element,`@@${this.id}:${Dt}`,Zt)}_command(Dt,...Zt){We(this._renderer,this.element,this.id,Dt,Zt)}onDone(Dt){this._listen("done",Dt)}onStart(Dt){this._listen("start",Dt)}onDestroy(Dt){this._listen("destroy",Dt)}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(Dt){this._command("setPosition",Dt)}getPosition(){return function ae(vt){const Dt=vt.\u0275type;return 0===Dt?vt:1===Dt?vt.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function We(vt,Dt,Zt,Fn,Vn){vt.setProperty(Dt,`@@${Zt}:${Fn}`,Vn)}class Le{constructor(Dt=0,Zt=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Dt+Zt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Dt=>Dt()),this._onDoneFns=[])}onStart(Dt){this._originalOnStartFns.push(Dt),this._onStartFns.push(Dt)}onDone(Dt){this._originalOnDoneFns.push(Dt),this._onDoneFns.push(Dt)}onDestroy(Dt){this._onDestroyFns.push(Dt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Dt=>Dt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Dt=>Dt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Dt){this._position=this.totalTime?Dt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Dt){const Zt="start"==Dt?this._onStartFns:this._onDoneFns;Zt.forEach(Fn=>Fn()),Zt.length=0}}class nt{constructor(Dt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Dt;let Zt=0,Fn=0,Vn=0;const _n=this.players.length;0==_n?queueMicrotask(()=>this._onFinish()):this.players.forEach(pi=>{pi.onDone(()=>{++Zt==_n&&this._onFinish()}),pi.onDestroy(()=>{++Fn==_n&&this._onDestroy()}),pi.onStart(()=>{++Vn==_n&&this._onStart()})}),this.totalTime=this.players.reduce((pi,_e)=>Math.max(pi,_e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Dt=>Dt()),this._onDoneFns=[])}init(){this.players.forEach(Dt=>Dt.init())}onStart(Dt){this._onStartFns.push(Dt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Dt=>Dt()),this._onStartFns=[])}onDone(Dt){this._onDoneFns.push(Dt)}onDestroy(Dt){this._onDestroyFns.push(Dt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Dt=>Dt.play())}pause(){this.players.forEach(Dt=>Dt.pause())}restart(){this.players.forEach(Dt=>Dt.restart())}finish(){this._onFinish(),this.players.forEach(Dt=>Dt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Dt=>Dt.destroy()),this._onDestroyFns.forEach(Dt=>Dt()),this._onDestroyFns=[])}reset(){this.players.forEach(Dt=>Dt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Dt){const Zt=Dt*this.totalTime;this.players.forEach(Fn=>{const Vn=Fn.totalTime?Math.min(1,Zt/Fn.totalTime):1;Fn.setPosition(Vn)})}getPosition(){const Dt=this.players.reduce((Zt,Fn)=>null===Zt||Fn.totalTime>Zt.totalTime?Fn:Zt,null);return null!=Dt?Dt.getPosition():0}beforeDestroy(){this.players.forEach(Dt=>{Dt.beforeDestroy&&Dt.beforeDestroy()})}triggerCallback(Dt){const Zt="start"==Dt?this._onStartFns:this._onDoneFns;Zt.forEach(Fn=>Fn()),Zt.length=0}}const At="!"},9888:(tn,Ne,v)=>{"use strict";v.d(Ne,{Pd:()=>Lt,Au:()=>_e,vr:()=>Dt,Bu:()=>Ae,FN:()=>zt,GX:()=>tt,Q_:()=>at,Z7:()=>ie,Ai:()=>En,px:()=>We,_G:()=>$,w6:()=>ce,Ae:()=>ae});var u=v(177),y=v(4438),o=v(6860),L=v(1413),G=v(8359),oe=(v(4402),v(7673)),V=v(4412),P=v(7336),B=v(8141),F=v(152),ue=v(5964),ge=v(6354),Re=(v(6697),v(5245)),ke=v(3294),te=v(6977),Ze=v(2318),gt=v(4085),je=v(9327);const qe=" ";function We(st,Qe,Oe){const ct=me(st,Qe);Oe=Oe.trim(),!ct.some(Wt=>Wt.trim()===Oe)&&(ct.push(Oe),st.setAttribute(Qe,ct.join(qe)))}function ae(st,Qe,Oe){const ct=me(st,Qe);Oe=Oe.trim();const Wt=ct.filter(rn=>rn!==Oe);Wt.length?st.setAttribute(Qe,Wt.join(qe)):st.removeAttribute(Qe)}function me(st,Qe){return st.getAttribute(Qe)?.match(/\S+/g)??[]}const nt="cdk-describedby-message",At="cdk-describedby-host";let vt=0,Dt=(()=>{class st{constructor(Oe,ct){this._platform=ct,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+vt++,this._document=Oe,this._id=(0,y.WQX)(y.sZ2)+"-"+vt++}describe(Oe,ct,Wt){if(!this._canBeDescribed(Oe,ct))return;const rn=Zt(ct,Wt);"string"!=typeof ct?(Fn(ct,this._id),this._messageRegistry.set(rn,{messageElement:ct,referenceCount:0})):this._messageRegistry.has(rn)||this._createMessageElement(ct,Wt),this._isElementDescribedByMessage(Oe,rn)||this._addMessageReference(Oe,rn)}removeDescription(Oe,ct,Wt){if(!ct||!this._isElementNode(Oe))return;const rn=Zt(ct,Wt);if(this._isElementDescribedByMessage(Oe,rn)&&this._removeMessageReference(Oe,rn),"string"==typeof ct){const ai=this._messageRegistry.get(rn);ai&&0===ai.referenceCount&&this._deleteMessageElement(rn)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Oe=this._document.querySelectorAll(`[${At}="${this._id}"]`);for(let ct=0;ct0!=Wt.indexOf(nt));Oe.setAttribute("aria-describedby",ct.join(" "))}_addMessageReference(Oe,ct){const Wt=this._messageRegistry.get(ct);We(Oe,"aria-describedby",Wt.messageElement.id),Oe.setAttribute(At,this._id),Wt.referenceCount++}_removeMessageReference(Oe,ct){const Wt=this._messageRegistry.get(ct);Wt.referenceCount--,ae(Oe,"aria-describedby",Wt.messageElement.id),Oe.removeAttribute(At)}_isElementDescribedByMessage(Oe,ct){const Wt=me(Oe,"aria-describedby"),rn=this._messageRegistry.get(ct),ai=rn&&rn.messageElement.id;return!!ai&&-1!=Wt.indexOf(ai)}_canBeDescribed(Oe,ct){if(!this._isElementNode(Oe))return!1;if(ct&&"object"==typeof ct)return!0;const Wt=null==ct?"":`${ct}`.trim(),rn=Oe.getAttribute("aria-label");return!(!Wt||rn&&rn.trim()===Wt)}_isElementNode(Oe){return Oe.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(ct){return new(ct||st)(y.KVO(u.qQ),y.KVO(o.OD))};static#t=this.\u0275prov=y.jDH({token:st,factory:st.\u0275fac,providedIn:"root"})}return st})();function Zt(st,Qe){return"string"==typeof st?`${Qe||""}/${st}`:st}function Fn(st,Qe){st.id||(st.id=`${nt}-${Qe}-${vt++}`)}class _n{constructor(Qe,Oe){this._letterKeyStream=new L.B,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new L.B,this.selectedItem=this._selectedItem;const ct="number"==typeof Oe?.debounceInterval?Oe.debounceInterval:200;Oe?.skipPredicate&&(this._skipPredicateFn=Oe.skipPredicate),this.setItems(Qe),this._setupKeyHandler(ct)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(Qe){this._selectedItemIndex=Qe}setItems(Qe){this._items=Qe}handleKey(Qe){const Oe=Qe.keyCode;Qe.key&&1===Qe.key.length?this._letterKeyStream.next(Qe.key.toLocaleUpperCase()):(Oe>=P.A&&Oe<=P.Z||Oe>=P.f2&&Oe<=P.bn)&&this._letterKeyStream.next(String.fromCharCode(Oe))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(Qe){this._letterKeyStream.pipe((0,B.M)(Oe=>this._pressedLetters.push(Oe)),(0,F.B)(Qe),(0,ue.p)(()=>this._pressedLetters.length>0),(0,ge.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(Oe=>{for(let ct=1;ctct.disabled,this.tabOut=new L.B,this.change=new L.B,Qe instanceof y.rOR?this._itemChangesSubscription=Qe.changes.subscribe(ct=>this._itemsChanged(ct.toArray())):(0,y.Hps)(Qe)&&(this._effectRef=(0,y.QZP)(()=>this._itemsChanged(Qe()),{injector:Oe}))}skipPredicate(Qe){return this._skipPredicateFn=Qe,this}withWrap(Qe=!0){return this._wrap=Qe,this}withVerticalOrientation(Qe=!0){return this._vertical=Qe,this}withHorizontalOrientation(Qe){return this._horizontal=Qe,this}withAllowedModifierKeys(Qe){return this._allowedModifierKeys=Qe,this}withTypeAhead(Qe=200){this._typeaheadSubscription.unsubscribe();const Oe=this._getItemsArray();return this._typeahead=new _n(Oe,{debounceInterval:"number"==typeof Qe?Qe:void 0,skipPredicate:ct=>this._skipPredicateFn(ct)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(ct=>{this.setActiveItem(ct)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(Qe=!0){return this._homeAndEnd=Qe,this}withPageUpDown(Qe=!0,Oe=10){return this._pageUpAndDown={enabled:Qe,delta:Oe},this}setActiveItem(Qe){const Oe=this._activeItem;this.updateActiveItem(Qe),this._activeItem!==Oe&&this.change.next(this._activeItemIndex)}onKeydown(Qe){const Oe=Qe.keyCode,Wt=["altKey","ctrlKey","metaKey","shiftKey"].every(rn=>!Qe[rn]||this._allowedModifierKeys.indexOf(rn)>-1);switch(Oe){case P.wn:return void this.tabOut.next();case P.n6:if(this._vertical&&Wt){this.setNextItemActive();break}return;case P.i7:if(this._vertical&&Wt){this.setPreviousItemActive();break}return;case P.LE:if(this._horizontal&&Wt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case P.UQ:if(this._horizontal&&Wt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case P.yZ:if(this._homeAndEnd&&Wt){this.setFirstItemActive();break}return;case P.Kp:if(this._homeAndEnd&&Wt){this.setLastItemActive();break}return;case P.w_:if(this._pageUpAndDown.enabled&&Wt){const rn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(rn>0?rn:0,1);break}return;case P.dB:if(this._pageUpAndDown.enabled&&Wt){const rn=this._activeItemIndex+this._pageUpAndDown.delta,ai=this._getItemsArray().length;this._setActiveItemByIndex(rn-1&&Oe!==this._activeItemIndex&&(this._activeItemIndex=Oe,this._typeahead?.setCurrentSelectedItemIndex(Oe))}}}class _e extends pi{setActiveItem(Qe){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Qe),this.activeItem&&this.activeItem.setActiveStyles()}}class Ae extends pi{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Qe){return this._origin=Qe,this}setActiveItem(Qe){super.setActiveItem(Qe),this.activeItem&&this.activeItem.focus(this._origin)}}let ie=(()=>{class st{constructor(Oe){this._platform=Oe}isDisabled(Oe){return Oe.hasAttribute("disabled")}isVisible(Oe){return function le(st){return!!(st.offsetWidth||st.offsetHeight||"function"==typeof st.getClientRects&&st.getClientRects().length)}(Oe)&&"visible"===getComputedStyle(Oe).visibility}isTabbable(Oe){if(!this._platform.isBrowser)return!1;const ct=function ve(st){try{return st.frameElement}catch{return null}}(function qt(st){return st.ownerDocument&&st.ownerDocument.defaultView||window}(Oe));if(ct&&(-1===Rt(ct)||!this.isVisible(ct)))return!1;let Wt=Oe.nodeName.toLowerCase(),rn=Rt(Oe);return Oe.hasAttribute("contenteditable")?-1!==rn:!("iframe"===Wt||"object"===Wt||this._platform.WEBKIT&&this._platform.IOS&&!function kn(st){let Qe=st.nodeName.toLowerCase(),Oe="input"===Qe&&st.type;return"text"===Oe||"password"===Oe||"select"===Qe||"textarea"===Qe}(Oe))&&("audio"===Wt?!!Oe.hasAttribute("controls")&&-1!==rn:"video"===Wt?-1!==rn&&(null!==rn||this._platform.FIREFOX||Oe.hasAttribute("controls")):Oe.tabIndex>=0)}isFocusable(Oe,ct){return function hi(st){return!function dt(st){return function it(st){return"input"==st.nodeName.toLowerCase()}(st)&&"hidden"==st.type}(st)&&(function Ce(st){let Qe=st.nodeName.toLowerCase();return"input"===Qe||"select"===Qe||"button"===Qe||"textarea"===Qe}(st)||function un(st){return function It(st){return"a"==st.nodeName.toLowerCase()}(st)&&st.hasAttribute("href")}(st)||st.hasAttribute("contenteditable")||Ft(st))}(Oe)&&!this.isDisabled(Oe)&&(ct?.ignoreVisibility||this.isVisible(Oe))}static#e=this.\u0275fac=function(ct){return new(ct||st)(y.KVO(o.OD))};static#t=this.\u0275prov=y.jDH({token:st,factory:st.\u0275fac,providedIn:"root"})}return st})();function Ft(st){if(!st.hasAttribute("tabindex")||void 0===st.tabIndex)return!1;let Qe=st.getAttribute("tabindex");return!(!Qe||isNaN(parseInt(Qe,10)))}function Rt(st){if(!Ft(st))return null;const Qe=parseInt(st.getAttribute("tabindex")||"",10);return isNaN(Qe)?-1:Qe}class we{get enabled(){return this._enabled}set enabled(Qe){this._enabled=Qe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Qe,this._startAnchor),this._toggleAnchorTabIndex(Qe,this._endAnchor))}constructor(Qe,Oe,ct,Wt,rn=!1,ai){this._element=Qe,this._checker=Oe,this._ngZone=ct,this._document=Wt,this._injector=ai,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,rn||this.attachAnchors()}destroy(){const Qe=this._startAnchor,Oe=this._endAnchor;Qe&&(Qe.removeEventListener("focus",this.startAnchorListener),Qe.remove()),Oe&&(Oe.removeEventListener("focus",this.endAnchorListener),Oe.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Qe){return new Promise(Oe=>{this._executeOnStable(()=>Oe(this.focusInitialElement(Qe)))})}focusFirstTabbableElementWhenReady(Qe){return new Promise(Oe=>{this._executeOnStable(()=>Oe(this.focusFirstTabbableElement(Qe)))})}focusLastTabbableElementWhenReady(Qe){return new Promise(Oe=>{this._executeOnStable(()=>Oe(this.focusLastTabbableElement(Qe)))})}_getRegionBoundary(Qe){const Oe=this._element.querySelectorAll(`[cdk-focus-region-${Qe}], [cdkFocusRegion${Qe}], [cdk-focus-${Qe}]`);return"start"==Qe?Oe.length?Oe[0]:this._getFirstTabbableElement(this._element):Oe.length?Oe[Oe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Qe){const Oe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Oe){if(!this._checker.isFocusable(Oe)){const ct=this._getFirstTabbableElement(Oe);return ct?.focus(Qe),!!ct}return Oe.focus(Qe),!0}return this.focusFirstTabbableElement(Qe)}focusFirstTabbableElement(Qe){const Oe=this._getRegionBoundary("start");return Oe&&Oe.focus(Qe),!!Oe}focusLastTabbableElement(Qe){const Oe=this._getRegionBoundary("end");return Oe&&Oe.focus(Qe),!!Oe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Qe){if(this._checker.isFocusable(Qe)&&this._checker.isTabbable(Qe))return Qe;const Oe=Qe.children;for(let ct=0;ct=0;ct--){const Wt=Oe[ct].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Oe[ct]):null;if(Wt)return Wt}return null}_createAnchor(){const Qe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Qe),Qe.classList.add("cdk-visually-hidden"),Qe.classList.add("cdk-focus-trap-anchor"),Qe.setAttribute("aria-hidden","true"),Qe}_toggleAnchorTabIndex(Qe,Oe){Qe?Oe.setAttribute("tabindex","0"):Oe.removeAttribute("tabindex")}toggleAnchors(Qe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Qe,this._startAnchor),this._toggleAnchorTabIndex(Qe,this._endAnchor))}_executeOnStable(Qe){this._injector?(0,y.mal)(Qe,{injector:this._injector}):setTimeout(Qe)}}let tt=(()=>{class st{constructor(Oe,ct,Wt){this._checker=Oe,this._ngZone=ct,this._injector=(0,y.WQX)(y.zZn),this._document=Wt}create(Oe,ct=!1){return new we(Oe,this._checker,this._ngZone,this._document,ct,this._injector)}static#e=this.\u0275fac=function(ct){return new(ct||st)(y.KVO(ie),y.KVO(y.SKi),y.KVO(u.qQ))};static#t=this.\u0275prov=y.jDH({token:st,factory:st.\u0275fac,providedIn:"root"})}return st})();function $(st){return 0===st.buttons||0===st.detail}function ce(st){const Qe=st.touches&&st.touches[0]||st.changedTouches&&st.changedTouches[0];return!(!Qe||-1!==Qe.identifier||null!=Qe.radiusX&&1!==Qe.radiusX||null!=Qe.radiusY&&1!==Qe.radiusY)}const he=new y.nKC("cdk-input-modality-detector-options"),et={ignoreKeys:[P.A$,P.W3,P.eg,P.Ge,P.FX]},Bt=(0,o.BQ)({passive:!0,capture:!0});let Vt=(()=>{class st{get mostRecentModality(){return this._modality.value}constructor(Oe,ct,Wt,rn){this._platform=Oe,this._mostRecentTarget=null,this._modality=new V.t(null),this._lastTouchMs=0,this._onKeydown=ai=>{this._options?.ignoreKeys?.some(yr=>yr===ai.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,o.Fb)(ai))},this._onMousedown=ai=>{Date.now()-this._lastTouchMs<650||(this._modality.next($(ai)?"keyboard":"mouse"),this._mostRecentTarget=(0,o.Fb)(ai))},this._onTouchstart=ai=>{ce(ai)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,o.Fb)(ai))},this._options={...et,...rn},this.modalityDetected=this._modality.pipe((0,Re.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ke.F)()),Oe.isBrowser&&ct.runOutsideAngular(()=>{Wt.addEventListener("keydown",this._onKeydown,Bt),Wt.addEventListener("mousedown",this._onMousedown,Bt),Wt.addEventListener("touchstart",this._onTouchstart,Bt)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Bt),document.removeEventListener("mousedown",this._onMousedown,Bt),document.removeEventListener("touchstart",this._onTouchstart,Bt))}static#e=this.\u0275fac=function(ct){return new(ct||st)(y.KVO(o.OD),y.KVO(y.SKi),y.KVO(u.qQ),y.KVO(he,8))};static#t=this.\u0275prov=y.jDH({token:st,factory:st.\u0275fac,providedIn:"root"})}return st})();const Mn=new y.nKC("liveAnnouncerElement",{providedIn:"root",factory:function Ln(){return null}}),Ei=new y.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Jt=0,En=(()=>{class st{constructor(Oe,ct,Wt,rn){this._ngZone=ct,this._defaultOptions=rn,this._document=Wt,this._liveElement=Oe||this._createLiveElement()}announce(Oe,...ct){const Wt=this._defaultOptions;let rn,ai;return 1===ct.length&&"number"==typeof ct[0]?ai=ct[0]:[rn,ai]=ct,this.clear(),clearTimeout(this._previousTimeout),rn||(rn=Wt&&Wt.politeness?Wt.politeness:"polite"),null==ai&&Wt&&(ai=Wt.duration),this._liveElement.setAttribute("aria-live",rn),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(yr=>this._currentResolve=yr)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Oe,"number"==typeof ai&&(this._previousTimeout=setTimeout(()=>this.clear(),ai)),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 Oe="cdk-live-announcer-element",ct=this._document.getElementsByClassName(Oe),Wt=this._document.createElement("div");for(let rn=0;rn .cdk-overlay-container [aria-modal="true"]');for(let Wt=0;Wt{class st{constructor(Oe,ct,Wt,rn,ai){this._ngZone=Oe,this._platform=ct,this._inputModalityDetector=Wt,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new L.B,this._rootNodeFocusAndBlurListener=yr=>{for(let Ri=(0,o.Fb)(yr);Ri;Ri=Ri.parentElement)"focus"===yr.type?this._onFocus(yr,Ri):this._onBlur(yr,Ri)},this._document=rn,this._detectionMode=ai?.detectionMode||Be.IMMEDIATE}monitor(Oe,ct=!1){const Wt=(0,gt.i8)(Oe);if(!this._platform.isBrowser||1!==Wt.nodeType)return(0,oe.of)();const rn=(0,o.KT)(Wt)||this._getDocument(),ai=this._elementInfo.get(Wt);if(ai)return ct&&(ai.checkChildren=!0),ai.subject;const yr={checkChildren:ct,subject:new L.B,rootNode:rn};return this._elementInfo.set(Wt,yr),this._registerGlobalListeners(yr),yr.subject}stopMonitoring(Oe){const ct=(0,gt.i8)(Oe),Wt=this._elementInfo.get(ct);Wt&&(Wt.subject.complete(),this._setClasses(ct),this._elementInfo.delete(ct),this._removeGlobalListeners(Wt))}focusVia(Oe,ct,Wt){const rn=(0,gt.i8)(Oe);rn===this._getDocument().activeElement?this._getClosestElementsInfo(rn).forEach(([yr,xr])=>this._originChanged(yr,ct,xr)):(this._setOrigin(ct),"function"==typeof rn.focus&&rn.focus(Wt))}ngOnDestroy(){this._elementInfo.forEach((Oe,ct)=>this.stopMonitoring(ct))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Oe){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Oe)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Oe&&this._isLastInteractionFromInputLabel(Oe)?"mouse":"program"}_shouldBeAttributedToTouch(Oe){return this._detectionMode===Be.EVENTUAL||!!Oe?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Oe,ct){Oe.classList.toggle("cdk-focused",!!ct),Oe.classList.toggle("cdk-touch-focused","touch"===ct),Oe.classList.toggle("cdk-keyboard-focused","keyboard"===ct),Oe.classList.toggle("cdk-mouse-focused","mouse"===ct),Oe.classList.toggle("cdk-program-focused","program"===ct)}_setOrigin(Oe,ct=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Oe,this._originFromTouchInteraction="touch"===Oe&&ct,this._detectionMode===Be.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Oe,ct){const Wt=this._elementInfo.get(ct),rn=(0,o.Fb)(Oe);!Wt||!Wt.checkChildren&&ct!==rn||this._originChanged(ct,this._getFocusOrigin(rn),Wt)}_onBlur(Oe,ct){const Wt=this._elementInfo.get(ct);!Wt||Wt.checkChildren&&Oe.relatedTarget instanceof Node&&ct.contains(Oe.relatedTarget)||(this._setClasses(ct),this._emitOrigin(Wt,null))}_emitOrigin(Oe,ct){Oe.subject.observers.length&&this._ngZone.run(()=>Oe.subject.next(ct))}_registerGlobalListeners(Oe){if(!this._platform.isBrowser)return;const ct=Oe.rootNode,Wt=this._rootNodeFocusListenerCount.get(ct)||0;Wt||this._ngZone.runOutsideAngular(()=>{ct.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ke),ct.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ke)}),this._rootNodeFocusListenerCount.set(ct,Wt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,te.Q)(this._stopInputModalityDetector)).subscribe(rn=>{this._setOrigin(rn,!0)}))}_removeGlobalListeners(Oe){const ct=Oe.rootNode;if(this._rootNodeFocusListenerCount.has(ct)){const Wt=this._rootNodeFocusListenerCount.get(ct);Wt>1?this._rootNodeFocusListenerCount.set(ct,Wt-1):(ct.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ke),ct.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ke),this._rootNodeFocusListenerCount.delete(ct))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Oe,ct,Wt){this._setClasses(Oe,ct),this._emitOrigin(Wt,ct),this._lastFocusOrigin=ct}_getClosestElementsInfo(Oe){const ct=[];return this._elementInfo.forEach((Wt,rn)=>{(rn===Oe||Wt.checkChildren&&rn.contains(Oe))&&ct.push([rn,Wt])}),ct}_isLastInteractionFromInputLabel(Oe){const{_mostRecentTarget:ct,mostRecentModality:Wt}=this._inputModalityDetector;if("mouse"!==Wt||!ct||ct===Oe||"INPUT"!==Oe.nodeName&&"TEXTAREA"!==Oe.nodeName||Oe.disabled)return!1;const rn=Oe.labels;if(rn)for(let ai=0;ai{class st{constructor(Oe,ct){this._platform=Oe,this._document=ct,this._breakpointSubscription=(0,y.WQX)(je.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return vi.NONE;const Oe=this._document.createElement("div");Oe.style.backgroundColor="rgb(1,2,3)",Oe.style.position="absolute",this._document.body.appendChild(Oe);const ct=this._document.defaultView||window,Wt=ct&&ct.getComputedStyle?ct.getComputedStyle(Oe):null,rn=(Wt&&Wt.backgroundColor||"").replace(/ /g,"");switch(Oe.remove(),rn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return vi.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return vi.BLACK_ON_WHITE}return vi.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Oe=this._document.body.classList;Oe.remove(Et,Ti,nn),this._hasCheckedHighContrastMode=!0;const ct=this.getHighContrastMode();ct===vi.BLACK_ON_WHITE?Oe.add(Et,Ti):ct===vi.WHITE_ON_BLACK&&Oe.add(Et,nn)}}static#e=this.\u0275fac=function(ct){return new(ct||st)(y.KVO(o.OD),y.KVO(u.qQ))};static#t=this.\u0275prov=y.jDH({token:st,factory:st.\u0275fac,providedIn:"root"})}return st})(),Lt=(()=>{class st{constructor(Oe){Oe._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(ct){return new(ct||st)(y.KVO(at))};static#t=this.\u0275mod=y.$C({type:st});static#n=this.\u0275inj=y.G2t({imports:[Ze.w5]})}return st})()},8203:(tn,Ne,v)=>{"use strict";v.d(Ne,{dS:()=>oe,jI:()=>P});var u=v(4438),y=v(177);const o=new u.nKC("cdk-dir-doc",{providedIn:"root",factory:function L(){return(0,u.WQX)(y.qQ)}}),G=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let oe=(()=>{class B{constructor(ue){this.value="ltr",this.change=new u.bkB,ue&&(this.value=function ee(B){const F=B?.toLowerCase()||"";return"auto"===F&&typeof navigator<"u"&&navigator?.language?G.test(navigator.language)?"rtl":"ltr":"rtl"===F?"rtl":"ltr"}((ue.body?ue.body.dir:null)||(ue.documentElement?ue.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(ge){return new(ge||B)(u.KVO(o,8))};static#t=this.\u0275prov=u.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})(),P=(()=>{class B{static#e=this.\u0275fac=function(ge){return new(ge||B)};static#t=this.\u0275mod=u.$C({type:B});static#n=this.\u0275inj=u.G2t({})}return B})()},4085:(tn,Ne,v)=>{"use strict";v.d(Ne,{FG:()=>G,OE:()=>o,a1:()=>ee,he:()=>y,i8:()=>oe});var u=v(4438);function y(P){return null!=P&&"false"!=`${P}`}function o(P,B=0){return function L(P){return!isNaN(parseFloat(P))&&!isNaN(Number(P))}(P)?Number(P):2===arguments.length?B:0}function G(P){return Array.isArray(P)?P:[P]}function ee(P){return null==P?"":"string"==typeof P?P:`${P}px`}function oe(P){return P instanceof u.aKT?P.nativeElement:P}},5024:(tn,Ne,v)=>{"use strict";v.d(Ne,{CB:()=>ue,zP:()=>Ee}),v(4402),v(7673);var o=v(1413),L=v(4438);class ue{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(ke=!1,te,be=!0,Ze){this._multiple=ke,this._emitChanges=be,this.compareWith=Ze,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.B,te&&te.length&&(ke?te.forEach(gt=>this._markSelected(gt)):this._markSelected(te[0]),this._selectedToEmit.length=0)}select(...ke){this._verifyValueAssignment(ke),ke.forEach(be=>this._markSelected(be));const te=this._hasQueuedChanges();return this._emitChangeEvent(),te}deselect(...ke){this._verifyValueAssignment(ke),ke.forEach(be=>this._unmarkSelected(be));const te=this._hasQueuedChanges();return this._emitChangeEvent(),te}setSelection(...ke){this._verifyValueAssignment(ke);const te=this.selected,be=new Set(ke);ke.forEach(gt=>this._markSelected(gt)),te.filter(gt=>!be.has(this._getConcreteValue(gt,be))).forEach(gt=>this._unmarkSelected(gt));const Ze=this._hasQueuedChanges();return this._emitChangeEvent(),Ze}toggle(ke){return this.isSelected(ke)?this.deselect(ke):this.select(ke)}clear(ke=!0){this._unmarkAll();const te=this._hasQueuedChanges();return ke&&this._emitChangeEvent(),te}isSelected(ke){return this._selection.has(this._getConcreteValue(ke))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(ke){this._multiple&&this.selected&&this._selected.sort(ke)}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(ke){ke=this._getConcreteValue(ke),this.isSelected(ke)||(this._multiple||this._unmarkAll(),this.isSelected(ke)||this._selection.add(ke),this._emitChanges&&this._selectedToEmit.push(ke))}_unmarkSelected(ke){ke=this._getConcreteValue(ke),this.isSelected(ke)&&(this._selection.delete(ke),this._emitChanges&&this._deselectedToEmit.push(ke))}_unmarkAll(){this.isEmpty()||this._selection.forEach(ke=>this._unmarkSelected(ke))}_verifyValueAssignment(ke){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(ke,te){if(this.compareWith){te=te??this._selection;for(let be of te)if(this.compareWith(ke,be))return be;return ke}return ke}}let Ee=(()=>{class Re{constructor(){this._listeners=[]}notify(te,be){for(let Ze of this._listeners)Ze(te,be)}listen(te){return this._listeners.push(te),()=>{this._listeners=this._listeners.filter(be=>te!==be)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(be){return new(be||Re)};static#t=this.\u0275prov=L.jDH({token:Re,factory:Re.\u0275fac,providedIn:"root"})}return Re})()},7336:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>Ie,A$:()=>V,FX:()=>ee,Fm:()=>G,Ge:()=>T,Kp:()=>Re,LE:()=>Ze,UQ:()=>te,W3:()=>oe,Z:()=>Q,_f:()=>F,bn:()=>_n,dB:()=>Ee,eg:()=>Te,f2:()=>me,i7:()=>be,n6:()=>gt,rp:()=>se,t6:()=>ue,w_:()=>ge,wn:()=>o,yZ:()=>ke});const o=9,G=13,ee=16,oe=17,V=18,F=27,ue=32,ge=33,Ee=34,Re=35,ke=36,te=37,be=38,Ze=39,gt=40,me=48,_n=57,Ie=65,Q=90,T=91,Te=224;function se($e,...pt){return pt.length?pt.some(lt=>$e[lt]):$e.altKey||$e.shiftKey||$e.ctrlKey||$e.metaKey}},9327:(tn,Ne,v)=>{"use strict";v.d(Ne,{QP:()=>gt,Rp:()=>qe});var u=v(4438),y=v(4085),o=v(1413),L=v(4572),G=v(8793),ee=v(1985),oe=v(6697),V=v(5245),P=v(152),B=v(6354),F=v(9172),ue=v(6977),ge=v(6860);const Re=new Set;let ke,te=(()=>{class We{constructor(me,Le){this._platform=me,this._nonce=Le,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ze}matchMedia(me){return(this._platform.WEBKIT||this._platform.BLINK)&&function be(We,ae){if(!Re.has(We))try{ke||(ke=document.createElement("style"),ae&&ke.setAttribute("nonce",ae),ke.setAttribute("type","text/css"),document.head.appendChild(ke)),ke.sheet&&(ke.sheet.insertRule(`@media ${We} {body{ }}`,0),Re.add(We))}catch(me){console.error(me)}}(me,this._nonce),this._matchMedia(me)}static#e=this.\u0275fac=function(Le){return new(Le||We)(u.KVO(ge.OD),u.KVO(u.BIS,8))};static#t=this.\u0275prov=u.jDH({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function Ze(We){return{matches:"all"===We||""===We,media:We,addListener:()=>{},removeListener:()=>{}}}let gt=(()=>{class We{constructor(me,Le){this._mediaMatcher=me,this._zone=Le,this._queries=new Map,this._destroySubject=new o.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(me){return je((0,y.FG)(me)).some(nt=>this._registerQuery(nt).mql.matches)}observe(me){const nt=je((0,y.FG)(me)).map(vt=>this._registerQuery(vt).observable);let At=(0,L.z)(nt);return At=(0,G.x)(At.pipe((0,oe.s)(1)),At.pipe((0,V.i)(1),(0,P.B)(0))),At.pipe((0,B.T)(vt=>{const Dt={matches:!1,breakpoints:{}};return vt.forEach(({matches:Zt,query:Fn})=>{Dt.matches=Dt.matches||Zt,Dt.breakpoints[Fn]=Zt}),Dt}))}_registerQuery(me){if(this._queries.has(me))return this._queries.get(me);const Le=this._mediaMatcher.matchMedia(me),At={observable:new ee.c(vt=>{const Dt=Zt=>this._zone.run(()=>vt.next(Zt));return Le.addListener(Dt),()=>{Le.removeListener(Dt)}}).pipe((0,F.Z)(Le),(0,B.T)(({matches:vt})=>({query:me,matches:vt})),(0,ue.Q)(this._destroySubject)),mql:Le};return this._queries.set(me,At),At}static#e=this.\u0275fac=function(Le){return new(Le||We)(u.KVO(te),u.KVO(u.SKi))};static#t=this.\u0275prov=u.jDH({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function je(We){return We.map(ae=>ae.split(",")).reduce((ae,me)=>ae.concat(me)).map(ae=>ae.trim())}const qe={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},2318:(tn,Ne,v)=>{"use strict";v.d(Ne,{w5:()=>ee});var u=v(4438);let o=(()=>{class oe{create(P){return typeof MutationObserver>"u"?null:new MutationObserver(P)}static#e=this.\u0275fac=function(B){return new(B||oe)};static#t=this.\u0275prov=u.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})(),ee=(()=>{class oe{static#e=this.\u0275fac=function(B){return new(B||oe)};static#t=this.\u0275mod=u.$C({type:oe});static#n=this.\u0275inj=u.G2t({providers:[o]})}return oe})()},7987:(tn,Ne,v)=>{"use strict";v.d(Ne,{$Q:()=>it,Sf:()=>_n,Tv:()=>We,WB:()=>It,hJ:()=>Ce,rR:()=>ae,yY:()=>pi,z_:()=>kn});var u=v(5542),y=v(177),o=v(4438),L=v(4085),G=v(6860),ee=v(5964),oe=v(6977),V=v(7048),P=v(8203),B=v(6939),F=v(1413),ue=v(8359),ge=v(7786),Ee=v(7336);const Re=(0,G.CZ)();class ke{constructor(we,tt){this._viewportRuler=we,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=tt}attach(){}enable(){if(this._canBeEnabled()){const we=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=we.style.left||"",this._previousHTMLStyles.top=we.style.top||"",we.style.left=(0,L.a1)(-this._previousScrollPosition.left),we.style.top=(0,L.a1)(-this._previousScrollPosition.top),we.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const we=this._document.documentElement,rt=we.style,bt=this._document.body.style,on=rt.scrollBehavior||"",Q=bt.scrollBehavior||"";this._isEnabled=!1,rt.left=this._previousHTMLStyles.left,rt.top=this._previousHTMLStyles.top,we.classList.remove("cdk-global-scrollblock"),Re&&(rt.scrollBehavior=bt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Re&&(rt.scrollBehavior=on,bt.scrollBehavior=Q)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const tt=this._document.body,rt=this._viewportRuler.getViewportSize();return tt.scrollHeight>rt.height||tt.scrollWidth>rt.width}}class be{constructor(we,tt,rt,bt){this._scrollDispatcher=we,this._ngZone=tt,this._viewportRuler=rt,this._config=bt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(we){this._overlayRef=we}enable(){if(this._scrollSubscription)return;const we=this._scrollDispatcher.scrolled(0).pipe((0,ee.p)(tt=>!tt||!this._overlayRef.overlayElement.contains(tt.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=we.subscribe(()=>{const tt=this._viewportRuler.getViewportScrollPosition().top;Math.abs(tt-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=we.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Ze{enable(){}disable(){}attach(){}}function gt(qt,we){return we.some(tt=>qt.bottomtt.bottom||qt.righttt.right)}function je(qt,we){return we.some(tt=>qt.toptt.bottom||qt.lefttt.right)}class qe{constructor(we,tt,rt,bt){this._scrollDispatcher=we,this._viewportRuler=tt,this._ngZone=rt,this._config=bt,this._scrollSubscription=null}attach(we){this._overlayRef=we}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 tt=this._overlayRef.overlayElement.getBoundingClientRect(),{width:rt,height:bt}=this._viewportRuler.getViewportSize();gt(tt,[{width:rt,height:bt,bottom:bt,right:rt,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 We=(()=>{class qt{constructor(tt,rt,bt,on){this._scrollDispatcher=tt,this._viewportRuler=rt,this._ngZone=bt,this.noop=()=>new Ze,this.close=Q=>new be(this._scrollDispatcher,this._ngZone,this._viewportRuler,Q),this.block=()=>new ke(this._viewportRuler,this._document),this.reposition=Q=>new qe(this._scrollDispatcher,this._viewportRuler,this._ngZone,Q),this._document=on}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.KVO(u.R),o.KVO(u.Xj),o.KVO(o.SKi),o.KVO(y.qQ))};static#t=this.\u0275prov=o.jDH({token:qt,factory:qt.\u0275fac,providedIn:"root"})}return qt})();class ae{constructor(we){if(this.scrollStrategy=new Ze,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,we){const tt=Object.keys(we);for(const rt of tt)void 0!==we[rt]&&(this[rt]=we[rt])}}}class nt{constructor(we,tt){this.connectionPair=we,this.scrollableViewProperties=tt}}let Dt=(()=>{class qt{constructor(tt){this._attachedOverlays=[],this._document=tt}ngOnDestroy(){this.detach()}add(tt){this.remove(tt),this._attachedOverlays.push(tt)}remove(tt){const rt=this._attachedOverlays.indexOf(tt);rt>-1&&this._attachedOverlays.splice(rt,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.KVO(y.qQ))};static#t=this.\u0275prov=o.jDH({token:qt,factory:qt.\u0275fac,providedIn:"root"})}return qt})(),Zt=(()=>{class qt extends Dt{constructor(tt,rt){super(tt),this._ngZone=rt,this._keydownListener=bt=>{const on=this._attachedOverlays;for(let Q=on.length-1;Q>-1;Q--)if(on[Q]._keydownEvents.observers.length>0){const T=on[Q]._keydownEvents;this._ngZone?this._ngZone.run(()=>T.next(bt)):T.next(bt);break}}}add(tt){super.add(tt),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.KVO(y.qQ),o.KVO(o.SKi,8))};static#t=this.\u0275prov=o.jDH({token:qt,factory:qt.\u0275fac,providedIn:"root"})}return qt})(),Fn=(()=>{class qt extends Dt{constructor(tt,rt,bt){super(tt),this._platform=rt,this._ngZone=bt,this._cursorStyleIsSet=!1,this._pointerDownListener=on=>{this._pointerDownEventTarget=(0,G.Fb)(on)},this._clickListener=on=>{const Q=(0,G.Fb)(on),T="click"===on.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Q;this._pointerDownEventTarget=null;const N=this._attachedOverlays.slice();for(let $=N.length-1;$>-1;$--){const ce=N[$];if(ce._outsidePointerEvents.observers.length<1||!ce.hasAttached())continue;if(Vn(ce.overlayElement,Q)||Vn(ce.overlayElement,T))break;const he=ce._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>he.next(on)):he.next(on)}}}add(tt){if(super.add(tt),!this._isAttached){const rt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(rt)):this._addEventListeners(rt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=rt.style.cursor,rt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const tt=this._document.body;tt.removeEventListener("pointerdown",this._pointerDownListener,!0),tt.removeEventListener("click",this._clickListener,!0),tt.removeEventListener("auxclick",this._clickListener,!0),tt.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(tt.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(tt){tt.addEventListener("pointerdown",this._pointerDownListener,!0),tt.addEventListener("click",this._clickListener,!0),tt.addEventListener("auxclick",this._clickListener,!0),tt.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.KVO(y.qQ),o.KVO(G.OD),o.KVO(o.SKi,8))};static#t=this.\u0275prov=o.jDH({token:qt,factory:qt.\u0275fac,providedIn:"root"})}return qt})();function Vn(qt,we){const tt=typeof ShadowRoot<"u"&&ShadowRoot;let rt=we;for(;rt;){if(rt===qt)return!0;rt=tt&&rt instanceof ShadowRoot?rt.host:rt.parentNode}return!1}let _n=(()=>{class qt{constructor(tt,rt){this._platform=rt,this._document=tt}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const tt="cdk-overlay-container";if(this._platform.isBrowser||(0,G.v8)()){const bt=this._document.querySelectorAll(`.${tt}[platform="server"], .${tt}[platform="test"]`);for(let on=0;onthis._backdropClick.next(et),this._backdropTransitionendHandler=et=>{this._disposeBackdrop(et.target)},this._keydownEvents=new F.B,this._outsidePointerEvents=new F.B,this._renders=new F.B,bt.scrollStrategy&&(this._scrollStrategy=bt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=bt.positionStrategy,this._afterRenderRef=(0,o.O8t)(()=>(0,o.Tzd)(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(we){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const tt=this._portalOutlet.attach(we);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,o.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof tt?.onDestroy&&tt.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),tt}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const we=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),we}dispose(){const we=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,we&&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(we){we!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=we,this.hasAttached()&&(we.attach(this),this.updatePosition()))}updateSize(we){this._config={...this._config,...we},this._updateElementSize()}setDirection(we){this._config={...this._config,direction:we},this._updateElementDirection()}addPanelClass(we){this._pane&&this._toggleClasses(this._pane,we,!0)}removePanelClass(we){this._pane&&this._toggleClasses(this._pane,we,!1)}getDirection(){const we=this._config.direction;return we?"string"==typeof we?we:we.value:"ltr"}updateScrollStrategy(we){we!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=we,this.hasAttached()&&(we.attach(this),we.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const we=this._pane.style;we.width=(0,L.a1)(this._config.width),we.height=(0,L.a1)(this._config.height),we.minWidth=(0,L.a1)(this._config.minWidth),we.minHeight=(0,L.a1)(this._config.minHeight),we.maxWidth=(0,L.a1)(this._config.maxWidth),we.maxHeight=(0,L.a1)(this._config.maxHeight)}_togglePointerEvents(we){this._pane.style.pointerEvents=we?"":"none"}_attachBackdrop(){const we="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(we)})}):this._backdropElement.classList.add(we)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const we=this._backdropElement;if(we){if(this._animationsDisabled)return void this._disposeBackdrop(we);we.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{we.addEventListener("transitionend",this._backdropTransitionendHandler)}),we.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(we)},500))}}_toggleClasses(we,tt,rt){const bt=(0,L.FG)(tt||[]).filter(on=>!!on);bt.length&&(rt?we.classList.add(...bt):we.classList.remove(...bt))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const we=this._renders.pipe((0,oe.Q)((0,ge.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()),we.unsubscribe())})})}_disposeScrollStrategy(){const we=this._scrollStrategy;we&&(we.disable(),we.detach&&we.detach())}_disposeBackdrop(we){we&&(we.removeEventListener("click",this._backdropClickHandler),we.removeEventListener("transitionend",this._backdropTransitionendHandler),we.remove(),this._backdropElement===we&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const _e="cdk-overlay-connected-position-bounding-box",Ae=/([A-Za-z%]+)$/;class J{get positions(){return this._preferredPositions}constructor(we,tt,rt,bt,on){this._viewportRuler=tt,this._document=rt,this._platform=bt,this._overlayContainer=on,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new F.B,this._resizeSubscription=ue.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(we)}attach(we){this._validatePositions(),we.hostElement.classList.add(_e),this._overlayRef=we,this._boundingBox=we.hostElement,this._pane=we.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 we=this._originRect,tt=this._overlayRect,rt=this._viewportRect,bt=this._containerRect,on=[];let Q;for(let T of this._preferredPositions){let N=this._getOriginPoint(we,bt,T),$=this._getOverlayPoint(N,tt,T),ce=this._getOverlayFit($,tt,rt,T);if(ce.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(T,N);this._canFitWithFlexibleDimensions(ce,$,rt)?on.push({position:T,origin:N,overlayRect:tt,boundingBoxRect:this._calculateBoundingBoxRect(N,T)}):(!Q||Q.overlayFit.visibleAreaN&&(N=ce,T=$)}return this._isPushed=!1,void this._applyPosition(T.position,T.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Q.position,Q.originPoint);this._applyPosition(Q.position,Q.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ie(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(_e),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const we=this._lastPosition;if(we){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const tt=this._getOriginPoint(this._originRect,this._containerRect,we);this._applyPosition(we,tt)}else this.apply()}withScrollableContainers(we){return this._scrollables=we,this}withPositions(we){return this._preferredPositions=we,-1===we.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(we){return this._viewportMargin=we,this}withFlexibleDimensions(we=!0){return this._hasFlexibleDimensions=we,this}withGrowAfterOpen(we=!0){return this._growAfterOpen=we,this}withPush(we=!0){return this._canPush=we,this}withLockedPosition(we=!0){return this._positionLocked=we,this}setOrigin(we){return this._origin=we,this}withDefaultOffsetX(we){return this._offsetX=we,this}withDefaultOffsetY(we){return this._offsetY=we,this}withTransformOriginOn(we){return this._transformOriginSelector=we,this}_getOriginPoint(we,tt,rt){let bt,on;if("center"==rt.originX)bt=we.left+we.width/2;else{const Q=this._isRtl()?we.right:we.left,T=this._isRtl()?we.left:we.right;bt="start"==rt.originX?Q:T}return tt.left<0&&(bt-=tt.left),on="center"==rt.originY?we.top+we.height/2:"top"==rt.originY?we.top:we.bottom,tt.top<0&&(on-=tt.top),{x:bt,y:on}}_getOverlayPoint(we,tt,rt){let bt,on;return bt="center"==rt.overlayX?-tt.width/2:"start"===rt.overlayX?this._isRtl()?-tt.width:0:this._isRtl()?0:-tt.width,on="center"==rt.overlayY?-tt.height/2:"top"==rt.overlayY?0:-tt.height,{x:we.x+bt,y:we.y+on}}_getOverlayFit(we,tt,rt,bt){const on=Pe(tt);let{x:Q,y:T}=we,N=this._getOffset(bt,"x"),$=this._getOffset(bt,"y");N&&(Q+=N),$&&(T+=$);let et=0-T,$t=T+on.height-rt.height,Bt=this._subtractOverflows(on.width,0-Q,Q+on.width-rt.width),Vt=this._subtractOverflows(on.height,et,$t),Mn=Bt*Vt;return{visibleArea:Mn,isCompletelyWithinViewport:on.width*on.height===Mn,fitsInViewportVertically:Vt===on.height,fitsInViewportHorizontally:Bt==on.width}}_canFitWithFlexibleDimensions(we,tt,rt){if(this._hasFlexibleDimensions){const bt=rt.bottom-tt.y,on=rt.right-tt.x,Q=Ot(this._overlayRef.getConfig().minHeight),T=Ot(this._overlayRef.getConfig().minWidth);return(we.fitsInViewportVertically||null!=Q&&Q<=bt)&&(we.fitsInViewportHorizontally||null!=T&&T<=on)}return!1}_pushOverlayOnScreen(we,tt,rt){if(this._previousPushAmount&&this._positionLocked)return{x:we.x+this._previousPushAmount.x,y:we.y+this._previousPushAmount.y};const bt=Pe(tt),on=this._viewportRect,Q=Math.max(we.x+bt.width-on.width,0),T=Math.max(we.y+bt.height-on.height,0),N=Math.max(on.top-rt.top-we.y,0),$=Math.max(on.left-rt.left-we.x,0);let ce=0,he=0;return ce=bt.width<=on.width?$||-Q:we.xBt&&!this._isInitialRender&&!this._growAfterOpen&&(Q=we.y-Bt/2)}if("end"===tt.overlayX&&!bt||"start"===tt.overlayX&&bt)et=rt.width-we.x+2*this._viewportMargin,ce=we.x-this._viewportMargin;else if("start"===tt.overlayX&&!bt||"end"===tt.overlayX&&bt)he=we.x,ce=rt.right-we.x;else{const $t=Math.min(rt.right-we.x+rt.left,we.x),Bt=this._lastBoundingBoxSize.width;ce=2*$t,he=we.x-$t,ce>Bt&&!this._isInitialRender&&!this._growAfterOpen&&(he=we.x-Bt/2)}return{top:Q,left:he,bottom:T,right:et,width:ce,height:on}}_setBoundingBoxStyles(we,tt){const rt=this._calculateBoundingBoxRect(we,tt);!this._isInitialRender&&!this._growAfterOpen&&(rt.height=Math.min(rt.height,this._lastBoundingBoxSize.height),rt.width=Math.min(rt.width,this._lastBoundingBoxSize.width));const bt={};if(this._hasExactPosition())bt.top=bt.left="0",bt.bottom=bt.right=bt.maxHeight=bt.maxWidth="",bt.width=bt.height="100%";else{const on=this._overlayRef.getConfig().maxHeight,Q=this._overlayRef.getConfig().maxWidth;bt.height=(0,L.a1)(rt.height),bt.top=(0,L.a1)(rt.top),bt.bottom=(0,L.a1)(rt.bottom),bt.width=(0,L.a1)(rt.width),bt.left=(0,L.a1)(rt.left),bt.right=(0,L.a1)(rt.right),bt.alignItems="center"===tt.overlayX?"center":"end"===tt.overlayX?"flex-end":"flex-start",bt.justifyContent="center"===tt.overlayY?"center":"bottom"===tt.overlayY?"flex-end":"flex-start",on&&(bt.maxHeight=(0,L.a1)(on)),Q&&(bt.maxWidth=(0,L.a1)(Q))}this._lastBoundingBoxSize=rt,Ie(this._boundingBox.style,bt)}_resetBoundingBoxStyles(){Ie(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ie(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(we,tt){const rt={},bt=this._hasExactPosition(),on=this._hasFlexibleDimensions,Q=this._overlayRef.getConfig();if(bt){const ce=this._viewportRuler.getViewportScrollPosition();Ie(rt,this._getExactOverlayY(tt,we,ce)),Ie(rt,this._getExactOverlayX(tt,we,ce))}else rt.position="static";let T="",N=this._getOffset(tt,"x"),$=this._getOffset(tt,"y");N&&(T+=`translateX(${N}px) `),$&&(T+=`translateY(${$}px)`),rt.transform=T.trim(),Q.maxHeight&&(bt?rt.maxHeight=(0,L.a1)(Q.maxHeight):on&&(rt.maxHeight="")),Q.maxWidth&&(bt?rt.maxWidth=(0,L.a1)(Q.maxWidth):on&&(rt.maxWidth="")),Ie(this._pane.style,rt)}_getExactOverlayY(we,tt,rt){let bt={top:"",bottom:""},on=this._getOverlayPoint(tt,this._overlayRect,we);return this._isPushed&&(on=this._pushOverlayOnScreen(on,this._overlayRect,rt)),"bottom"===we.overlayY?bt.bottom=this._document.documentElement.clientHeight-(on.y+this._overlayRect.height)+"px":bt.top=(0,L.a1)(on.y),bt}_getExactOverlayX(we,tt,rt){let Q,bt={left:"",right:""},on=this._getOverlayPoint(tt,this._overlayRect,we);return this._isPushed&&(on=this._pushOverlayOnScreen(on,this._overlayRect,rt)),Q=this._isRtl()?"end"===we.overlayX?"left":"right":"end"===we.overlayX?"right":"left","right"===Q?bt.right=this._document.documentElement.clientWidth-(on.x+this._overlayRect.width)+"px":bt.left=(0,L.a1)(on.x),bt}_getScrollVisibility(){const we=this._getOriginRect(),tt=this._pane.getBoundingClientRect(),rt=this._scrollables.map(bt=>bt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:je(we,rt),isOriginOutsideView:gt(we,rt),isOverlayClipped:je(tt,rt),isOverlayOutsideView:gt(tt,rt)}}_subtractOverflows(we,...tt){return tt.reduce((rt,bt)=>rt-Math.max(bt,0),we)}_getNarrowedViewportRect(){const we=this._document.documentElement.clientWidth,tt=this._document.documentElement.clientHeight,rt=this._viewportRuler.getViewportScrollPosition();return{top:rt.top+this._viewportMargin,left:rt.left+this._viewportMargin,right:rt.left+we-this._viewportMargin,bottom:rt.top+tt-this._viewportMargin,width:we-2*this._viewportMargin,height:tt-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(we,tt){return"x"===tt?null==we.offsetX?this._offsetX:we.offsetX:null==we.offsetY?this._offsetY:we.offsetY}_validatePositions(){}_addPanelClasses(we){this._pane&&(0,L.FG)(we).forEach(tt=>{""!==tt&&-1===this._appliedPanelClasses.indexOf(tt)&&(this._appliedPanelClasses.push(tt),this._pane.classList.add(tt))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(we=>{this._pane.classList.remove(we)}),this._appliedPanelClasses=[])}_getOriginRect(){const we=this._origin;if(we instanceof o.aKT)return we.nativeElement.getBoundingClientRect();if(we instanceof Element)return we.getBoundingClientRect();const tt=we.width||0,rt=we.height||0;return{top:we.y,bottom:we.y+rt,left:we.x,right:we.x+tt,height:rt,width:tt}}}function Ie(qt,we){for(let tt in we)we.hasOwnProperty(tt)&&(qt[tt]=we[tt]);return qt}function Ot(qt){if("number"!=typeof qt&&null!=qt){const[we,tt]=qt.split(Ae);return tt&&"px"!==tt?null:parseFloat(we)}return qt||null}function Pe(qt){return{top:Math.floor(qt.top),right:Math.floor(qt.right),bottom:Math.floor(qt.bottom),left:Math.floor(qt.left),width:Math.floor(qt.width),height:Math.floor(qt.height)}}const Me="cdk-global-overlay-wrapper";class ie{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(we){const tt=we.getConfig();this._overlayRef=we,this._width&&!tt.width&&we.updateSize({width:this._width}),this._height&&!tt.height&&we.updateSize({height:this._height}),we.hostElement.classList.add(Me),this._isDisposed=!1}top(we=""){return this._bottomOffset="",this._topOffset=we,this._alignItems="flex-start",this}left(we=""){return this._xOffset=we,this._xPosition="left",this}bottom(we=""){return this._topOffset="",this._bottomOffset=we,this._alignItems="flex-end",this}right(we=""){return this._xOffset=we,this._xPosition="right",this}start(we=""){return this._xOffset=we,this._xPosition="start",this}end(we=""){return this._xOffset=we,this._xPosition="end",this}width(we=""){return this._overlayRef?this._overlayRef.updateSize({width:we}):this._width=we,this}height(we=""){return this._overlayRef?this._overlayRef.updateSize({height:we}):this._height=we,this}centerHorizontally(we=""){return this.left(we),this._xPosition="center",this}centerVertically(we=""){return this.top(we),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const we=this._overlayRef.overlayElement.style,tt=this._overlayRef.hostElement.style,rt=this._overlayRef.getConfig(),{width:bt,height:on,maxWidth:Q,maxHeight:T}=rt,N=!("100%"!==bt&&"100vw"!==bt||Q&&"100%"!==Q&&"100vw"!==Q),$=!("100%"!==on&&"100vh"!==on||T&&"100%"!==T&&"100vh"!==T),ce=this._xPosition,he=this._xOffset,et="rtl"===this._overlayRef.getConfig().direction;let $t="",Bt="",Vt="";N?Vt="flex-start":"center"===ce?(Vt="center",et?Bt=he:$t=he):et?"left"===ce||"end"===ce?(Vt="flex-end",$t=he):("right"===ce||"start"===ce)&&(Vt="flex-start",Bt=he):"left"===ce||"start"===ce?(Vt="flex-start",$t=he):("right"===ce||"end"===ce)&&(Vt="flex-end",Bt=he),we.position=this._cssPosition,we.marginLeft=N?"0":$t,we.marginTop=$?"0":this._topOffset,we.marginBottom=this._bottomOffset,we.marginRight=N?"0":Bt,tt.justifyContent=Vt,tt.alignItems=$?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const we=this._overlayRef.overlayElement.style,tt=this._overlayRef.hostElement,rt=tt.style;tt.classList.remove(Me),rt.justifyContent=rt.alignItems=we.marginTop=we.marginBottom=we.marginLeft=we.marginRight=we.position="",this._overlayRef=null,this._isDisposed=!0}}let ve=(()=>{class qt{constructor(tt,rt,bt,on){this._viewportRuler=tt,this._document=rt,this._platform=bt,this._overlayContainer=on}global(){return new ie}flexibleConnectedTo(tt){return new J(tt,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.KVO(u.Xj),o.KVO(y.qQ),o.KVO(G.OD),o.KVO(_n))};static#t=this.\u0275prov=o.jDH({token:qt,factory:qt.\u0275fac,providedIn:"root"})}return qt})(),le=0,Ce=(()=>{class qt{constructor(tt,rt,bt,on,Q,T,N,$,ce,he,et,$t){this.scrollStrategies=tt,this._overlayContainer=rt,this._componentFactoryResolver=bt,this._positionBuilder=on,this._keyboardDispatcher=Q,this._injector=T,this._ngZone=N,this._document=$,this._directionality=ce,this._location=he,this._outsideClickDispatcher=et,this._animationsModuleType=$t}create(tt){const rt=this._createHostElement(),bt=this._createPaneElement(rt),on=this._createPortalOutlet(bt),Q=new ae(tt);return Q.direction=Q.direction||this._directionality.value,new pi(on,rt,bt,Q,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(o.uvJ))}position(){return this._positionBuilder}_createPaneElement(tt){const rt=this._document.createElement("div");return rt.id="cdk-overlay-"+le++,rt.classList.add("cdk-overlay-pane"),tt.appendChild(rt),rt}_createHostElement(){const tt=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(tt),tt}_createPortalOutlet(tt){return this._appRef||(this._appRef=this._injector.get(o.o8S)),new B.aI(tt,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.KVO(We),o.KVO(_n),o.KVO(o.OM3),o.KVO(ve),o.KVO(Zt),o.KVO(o.zZn),o.KVO(o.SKi),o.KVO(y.qQ),o.KVO(P.dS),o.KVO(y.aZ),o.KVO(Fn),o.KVO(o.bc$,8))};static#t=this.\u0275prov=o.jDH({token:qt,factory:qt.\u0275fac,providedIn:"root"})}return qt})();const dt=[{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"}],un=new o.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const qt=(0,o.WQX)(Ce);return()=>qt.scrollStrategies.reposition()}});let it=(()=>{class qt{constructor(tt){this.elementRef=tt}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.rXU(o.aKT))};static#t=this.\u0275dir=o.FsC({type:qt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return qt})(),It=(()=>{class qt{get offsetX(){return this._offsetX}set offsetX(tt){this._offsetX=tt,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(tt){this._offsetY=tt,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(tt){this._disposeOnNavigation=tt}constructor(tt,rt,bt,on,Q){this._overlay=tt,this._dir=Q,this._backdropSubscription=ue.yU.EMPTY,this._attachSubscription=ue.yU.EMPTY,this._detachSubscription=ue.yU.EMPTY,this._positionSubscription=ue.yU.EMPTY,this._disposeOnNavigation=!1,this._ngZone=(0,o.WQX)(o.SKi),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new o.bkB,this.positionChange=new o.bkB,this.attach=new o.bkB,this.detach=new o.bkB,this.overlayKeydown=new o.bkB,this.overlayOutsideClick=new o.bkB,this._templatePortal=new B.VA(rt,bt),this._scrollStrategyFactory=on,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(tt){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),tt.origin&&this.open&&this._position.apply()),tt.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=dt);const tt=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=tt.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=tt.detachments().subscribe(()=>this.detach.emit()),tt.keydownEvents().subscribe(rt=>{this.overlayKeydown.next(rt),rt.keyCode===Ee._f&&!this.disableClose&&!(0,Ee.rp)(rt)&&(rt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(rt=>{const bt=this._getOriginElement(),on=(0,G.Fb)(rt);(!bt||bt!==on&&!bt.contains(on))&&this.overlayOutsideClick.next(rt)})}_buildConfig(){const tt=this._position=this.positionStrategy||this._createPositionStrategy(),rt=new ae({direction:this._dir,positionStrategy:tt,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(rt.width=this.width),(this.height||0===this.height)&&(rt.height=this.height),(this.minWidth||0===this.minWidth)&&(rt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(rt.minHeight=this.minHeight),this.backdropClass&&(rt.backdropClass=this.backdropClass),this.panelClass&&(rt.panelClass=this.panelClass),rt}_updatePositionStrategy(tt){const rt=this.positions.map(bt=>({originX:bt.originX,originY:bt.originY,overlayX:bt.overlayX,overlayY:bt.overlayY,offsetX:bt.offsetX||this.offsetX,offsetY:bt.offsetY||this.offsetY,panelClass:bt.panelClass||void 0}));return tt.setOrigin(this._getOrigin()).withPositions(rt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const tt=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(tt),tt}_getOrigin(){return this.origin instanceof it?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof it?this.origin.elementRef.nativeElement:this.origin instanceof o.aKT?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(tt=>{this.backdropClick.emit(tt)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,V.v)(()=>this.positionChange.observers.length>0)).subscribe(tt=>{this._ngZone.run(()=>this.positionChange.emit(tt)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(rt){return new(rt||qt)(o.rXU(Ce),o.rXU(o.C4Q),o.rXU(o.c1b),o.rXU(un),o.rXU(P.dS,8))};static#t=this.\u0275dir=o.FsC({type:qt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",o.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",o.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",o.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",o.L39],push:[2,"cdkConnectedOverlayPush","push",o.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",o.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[o.GFd,o.OA$]})}return qt})();const Rt={provide:un,deps:[Ce],useFactory:function Ft(qt){return()=>qt.scrollStrategies.reposition()}};let kn=(()=>{class qt{static#e=this.\u0275fac=function(rt){return new(rt||qt)};static#t=this.\u0275mod=o.$C({type:qt});static#n=this.\u0275inj=o.G2t({providers:[Ce,Rt],imports:[P.jI,B.jc,u.E9,u.E9]})}return qt})()},6860:(tn,Ne,v)=>{"use strict";v.d(Ne,{BD:()=>ke,BQ:()=>F,CZ:()=>Re,Fb:()=>je,KT:()=>Ze,MU:()=>V,OD:()=>L,r5:()=>ue,v8:()=>qe,vc:()=>gt});var u=v(4438),y=v(177);let o;try{o=typeof Intl<"u"&&Intl.v8BreakIterator}catch{o=!1}let ee,L=(()=>{class We{constructor(me){this._platformId=me,this.isBrowser=this._platformId?(0,y.UE)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!o)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(Le){return new(Le||We)(u.KVO(u.Agw))};static#t=this.\u0275prov=u.jDH({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();const oe=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function V(){if(ee)return ee;if("object"!=typeof document||!document)return ee=new Set(oe),ee;let We=document.createElement("input");return ee=new Set(oe.filter(ae=>(We.setAttribute("type",ae),We.type===ae))),ee}let P;function F(We){return function B(){if(null==P&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>P=!0}))}finally{P=P||!1}return P}()?We:!!We.capture}var ue=function(We){return We[We.NORMAL=0]="NORMAL",We[We.NEGATED=1]="NEGATED",We[We.INVERTED=2]="INVERTED",We}(ue||{});let ge,Ee,te;function Re(){if(null==Ee){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ee=!1,Ee;if("scrollBehavior"in document.documentElement.style)Ee=!0;else{const We=Element.prototype.scrollTo;Ee=!!We&&!/\{\s*\[native code\]\s*\}/.test(We.toString())}}return Ee}function ke(){if("object"!=typeof document||!document)return ue.NORMAL;if(null==ge){const We=document.createElement("div"),ae=We.style;We.dir="rtl",ae.width="1px",ae.overflow="auto",ae.visibility="hidden",ae.pointerEvents="none",ae.position="absolute";const me=document.createElement("div"),Le=me.style;Le.width="2px",Le.height="1px",We.appendChild(me),document.body.appendChild(We),ge=ue.NORMAL,0===We.scrollLeft&&(We.scrollLeft=1,ge=0===We.scrollLeft?ue.NEGATED:ue.INVERTED),We.remove()}return ge}function Ze(We){if(function be(){if(null==te){const We=typeof document<"u"?document.head:null;te=!(!We||!We.createShadowRoot&&!We.attachShadow)}return te}()){const ae=We.getRootNode?We.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ae instanceof ShadowRoot)return ae}return null}function gt(){let We=typeof document<"u"&&document?document.activeElement:null;for(;We&&We.shadowRoot;){const ae=We.shadowRoot.activeElement;if(ae===We)break;We=ae}return We}function je(We){return We.composedPath?We.composedPath()[0]:We.target}function qe(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(tn,Ne,v)=>{"use strict";v.d(Ne,{A8:()=>B,I3:()=>Ze,VA:()=>F,aI:()=>Re,jc:()=>je,lb:()=>ge});var u=v(4438),y=v(177);class P{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 B extends P{constructor(ae,me,Le,nt,At){super(),this.component=ae,this.viewContainerRef=me,this.injector=Le,this.componentFactoryResolver=nt,this.projectableNodes=At}}class F extends P{constructor(ae,me,Le,nt){super(),this.templateRef=ae,this.viewContainerRef=me,this.context=Le,this.injector=nt}get origin(){return this.templateRef.elementRef}attach(ae,me=this.context){return this.context=me,super.attach(ae)}detach(){return this.context=void 0,super.detach()}}class ue extends P{constructor(ae){super(),this.element=ae instanceof u.aKT?ae.nativeElement:ae}}class ge{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ae){return ae instanceof B?(this._attachedPortal=ae,this.attachComponentPortal(ae)):ae instanceof F?(this._attachedPortal=ae,this.attachTemplatePortal(ae)):this.attachDomPortal&&ae instanceof ue?(this._attachedPortal=ae,this.attachDomPortal(ae)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(ae){this._disposeFn=ae}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Re extends ge{constructor(ae,me,Le,nt,At){super(),this.outletElement=ae,this._componentFactoryResolver=me,this._appRef=Le,this._defaultInjector=nt,this.attachDomPortal=vt=>{const Dt=vt.element,Zt=this._document.createComment("dom-portal");Dt.parentNode.insertBefore(Zt,Dt),this.outletElement.appendChild(Dt),this._attachedPortal=vt,super.setDisposeFn(()=>{Zt.parentNode&&Zt.parentNode.replaceChild(Dt,Zt)})},this._document=At}attachComponentPortal(ae){const Le=(ae.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ae.component);let nt;return ae.viewContainerRef?(nt=ae.viewContainerRef.createComponent(Le,ae.viewContainerRef.length,ae.injector||ae.viewContainerRef.injector,ae.projectableNodes||void 0),this.setDisposeFn(()=>nt.destroy())):(nt=Le.create(ae.injector||this._defaultInjector||u.zZn.NULL),this._appRef.attachView(nt.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(nt.hostView),nt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(nt)),this._attachedPortal=ae,nt}attachTemplatePortal(ae){let me=ae.viewContainerRef,Le=me.createEmbeddedView(ae.templateRef,ae.context,{injector:ae.injector});return Le.rootNodes.forEach(nt=>this.outletElement.appendChild(nt)),Le.detectChanges(),this.setDisposeFn(()=>{let nt=me.indexOf(Le);-1!==nt&&me.remove(nt)}),this._attachedPortal=ae,Le}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ae){return ae.hostView.rootNodes[0]}}let Ze=(()=>{class We extends ge{constructor(me,Le,nt){super(),this._componentFactoryResolver=me,this._viewContainerRef=Le,this._isInitialized=!1,this.attached=new u.bkB,this.attachDomPortal=At=>{const vt=At.element,Dt=this._document.createComment("dom-portal");At.setAttachedHost(this),vt.parentNode.insertBefore(Dt,vt),this._getRootNode().appendChild(vt),this._attachedPortal=At,super.setDisposeFn(()=>{Dt.parentNode&&Dt.parentNode.replaceChild(vt,Dt)})},this._document=nt}get portal(){return this._attachedPortal}set portal(me){this.hasAttached()&&!me&&!this._isInitialized||(this.hasAttached()&&super.detach(),me&&super.attach(me),this._attachedPortal=me||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(me){me.setAttachedHost(this);const Le=null!=me.viewContainerRef?me.viewContainerRef:this._viewContainerRef,At=(me.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(me.component),vt=Le.createComponent(At,Le.length,me.injector||Le.injector,me.projectableNodes||void 0);return Le!==this._viewContainerRef&&this._getRootNode().appendChild(vt.hostView.rootNodes[0]),super.setDisposeFn(()=>vt.destroy()),this._attachedPortal=me,this._attachedRef=vt,this.attached.emit(vt),vt}attachTemplatePortal(me){me.setAttachedHost(this);const Le=this._viewContainerRef.createEmbeddedView(me.templateRef,me.context,{injector:me.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=me,this._attachedRef=Le,this.attached.emit(Le),Le}_getRootNode(){const me=this._viewContainerRef.element.nativeElement;return me.nodeType===me.ELEMENT_NODE?me:me.parentNode}static#e=this.\u0275fac=function(Le){return new(Le||We)(u.rXU(u.OM3),u.rXU(u.c1b),u.rXU(y.qQ))};static#t=this.\u0275dir=u.FsC({type:We,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[u.Vt3]})}return We})(),je=(()=>{class We{static#e=this.\u0275fac=function(Le){return new(Le||We)};static#t=this.\u0275mod=u.$C({type:We});static#n=this.\u0275inj=u.G2t({})}return We})()},5542:(tn,Ne,v)=>{"use strict";v.d(Ne,{uv:()=>Dt,Gj:()=>ht,R:()=>vt,E9:()=>Xe,Xj:()=>Fn});var u=v(4085),y=v(4438),o=v(1413),L=v(7673),G=v(1985),ee=v(3726),oe=v(6780),V=v(8359);const P={schedule(Je){let Me=requestAnimationFrame,ie=cancelAnimationFrame;const{delegate:ve}=P;ve&&(Me=ve.requestAnimationFrame,ie=ve.cancelAnimationFrame);const le=Me(Ce=>{ie=void 0,Je(Ce)});return new V.yU(()=>ie?.(le))},requestAnimationFrame(...Je){const{delegate:Me}=P;return(Me?.requestAnimationFrame||requestAnimationFrame)(...Je)},cancelAnimationFrame(...Je){const{delegate:Me}=P;return(Me?.cancelAnimationFrame||cancelAnimationFrame)(...Je)},delegate:void 0};var F=v(9687);new class ue extends F.q{flush(Me){this._active=!0;const ie=this._scheduled;this._scheduled=void 0;const{actions:ve}=this;let le;Me=Me||ve.shift();do{if(le=Me.execute(Me.state,Me.delay))break}while((Me=ve[0])&&Me.id===ie&&ve.shift());if(this._active=!1,le){for(;(Me=ve[0])&&Me.id===ie&&ve.shift();)Me.unsubscribe();throw le}}}(class B extends oe.R{constructor(Me,ie){super(Me,ie),this.scheduler=Me,this.work=ie}requestAsyncId(Me,ie,ve=0){return null!==ve&&ve>0?super.requestAsyncId(Me,ie,ve):(Me.actions.push(this),Me._scheduled||(Me._scheduled=P.requestAnimationFrame(()=>Me.flush(void 0))))}recycleAsyncId(Me,ie,ve=0){var le;if(null!=ve?ve>0:this.delay>0)return super.recycleAsyncId(Me,ie,ve);const{actions:Ce}=Me;null!=ie&&(null===(le=Ce[Ce.length-1])||void 0===le?void 0:le.id)!==ie&&(P.cancelAnimationFrame(ie),Me._scheduled=void 0)}});v(5007);var ke=v(3798),te=v(5964),be=v(6977),Ze=v(6860),gt=v(177),je=v(8203);let vt=(()=>{class Je{constructor(ie,ve,le){this._ngZone=ie,this._platform=ve,this._scrolled=new o.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=le}register(ie){this.scrollContainers.has(ie)||this.scrollContainers.set(ie,ie.elementScrolled().subscribe(()=>this._scrolled.next(ie)))}deregister(ie){const ve=this.scrollContainers.get(ie);ve&&(ve.unsubscribe(),this.scrollContainers.delete(ie))}scrolled(ie=20){return this._platform.isBrowser?new G.c(ve=>{this._globalSubscription||this._addGlobalListener();const le=ie>0?this._scrolled.pipe((0,ke.Z)(ie)).subscribe(ve):this._scrolled.subscribe(ve);return this._scrolledCount++,()=>{le.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,L.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ie,ve)=>this.deregister(ve)),this._scrolled.complete()}ancestorScrolled(ie,ve){const le=this.getAncestorScrollContainers(ie);return this.scrolled(ve).pipe((0,te.p)(Ce=>!Ce||le.indexOf(Ce)>-1))}getAncestorScrollContainers(ie){const ve=[];return this.scrollContainers.forEach((le,Ce)=>{this._scrollableContainsElement(Ce,ie)&&ve.push(Ce)}),ve}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ie,ve){let le=(0,u.i8)(ve),Ce=ie.getElementRef().nativeElement;do{if(le==Ce)return!0}while(le=le.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ie=this._getWindow();return(0,ee.R)(ie.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(ve){return new(ve||Je)(y.KVO(y.SKi),y.KVO(Ze.OD),y.KVO(gt.qQ,8))};static#t=this.\u0275prov=y.jDH({token:Je,factory:Je.\u0275fac,providedIn:"root"})}return Je})(),Dt=(()=>{class Je{constructor(ie,ve,le,Ce){this.elementRef=ie,this.scrollDispatcher=ve,this.ngZone=le,this.dir=Ce,this._destroyed=new o.B,this._elementScrolled=new G.c(dt=>this.ngZone.runOutsideAngular(()=>(0,ee.R)(this.elementRef.nativeElement,"scroll").pipe((0,be.Q)(this._destroyed)).subscribe(dt)))}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(ie){const ve=this.elementRef.nativeElement,le=this.dir&&"rtl"==this.dir.value;null==ie.left&&(ie.left=le?ie.end:ie.start),null==ie.right&&(ie.right=le?ie.start:ie.end),null!=ie.bottom&&(ie.top=ve.scrollHeight-ve.clientHeight-ie.bottom),le&&(0,Ze.BD)()!=Ze.r5.NORMAL?(null!=ie.left&&(ie.right=ve.scrollWidth-ve.clientWidth-ie.left),(0,Ze.BD)()==Ze.r5.INVERTED?ie.left=ie.right:(0,Ze.BD)()==Ze.r5.NEGATED&&(ie.left=ie.right?-ie.right:ie.right)):null!=ie.right&&(ie.left=ve.scrollWidth-ve.clientWidth-ie.right),this._applyScrollToOptions(ie)}_applyScrollToOptions(ie){const ve=this.elementRef.nativeElement;(0,Ze.CZ)()?ve.scrollTo(ie):(null!=ie.top&&(ve.scrollTop=ie.top),null!=ie.left&&(ve.scrollLeft=ie.left))}measureScrollOffset(ie){const ve="left",Ce=this.elementRef.nativeElement;if("top"==ie)return Ce.scrollTop;if("bottom"==ie)return Ce.scrollHeight-Ce.clientHeight-Ce.scrollTop;const dt=this.dir&&"rtl"==this.dir.value;return"start"==ie?ie=dt?"right":ve:"end"==ie&&(ie=dt?ve:"right"),dt&&(0,Ze.BD)()==Ze.r5.INVERTED?ie==ve?Ce.scrollWidth-Ce.clientWidth-Ce.scrollLeft:Ce.scrollLeft:dt&&(0,Ze.BD)()==Ze.r5.NEGATED?ie==ve?Ce.scrollLeft+Ce.scrollWidth-Ce.clientWidth:-Ce.scrollLeft:ie==ve?Ce.scrollLeft:Ce.scrollWidth-Ce.clientWidth-Ce.scrollLeft}static#e=this.\u0275fac=function(ve){return new(ve||Je)(y.rXU(y.aKT),y.rXU(vt),y.rXU(y.SKi),y.rXU(je.dS,8))};static#t=this.\u0275dir=y.FsC({type:Je,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return Je})(),Fn=(()=>{class Je{constructor(ie,ve,le){this._platform=ie,this._change=new o.B,this._changeListener=Ce=>{this._change.next(Ce)},this._document=le,ve.runOutsideAngular(()=>{if(ie.isBrowser){const Ce=this._getWindow();Ce.addEventListener("resize",this._changeListener),Ce.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ie=this._getWindow();ie.removeEventListener("resize",this._changeListener),ie.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ie={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ie}getViewportRect(){const ie=this.getViewportScrollPosition(),{width:ve,height:le}=this.getViewportSize();return{top:ie.top,left:ie.left,bottom:ie.top+le,right:ie.left+ve,height:le,width:ve}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ie=this._document,ve=this._getWindow(),le=ie.documentElement,Ce=le.getBoundingClientRect();return{top:-Ce.top||ie.body.scrollTop||ve.scrollY||le.scrollTop||0,left:-Ce.left||ie.body.scrollLeft||ve.scrollX||le.scrollLeft||0}}change(ie=20){return ie>0?this._change.pipe((0,ke.Z)(ie)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ie=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ie.innerWidth,height:ie.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(ve){return new(ve||Je)(y.KVO(Ze.OD),y.KVO(y.SKi),y.KVO(gt.qQ,8))};static#t=this.\u0275prov=y.jDH({token:Je,factory:Je.\u0275fac,providedIn:"root"})}return Je})(),ht=(()=>{class Je{static#e=this.\u0275fac=function(ve){return new(ve||Je)};static#t=this.\u0275mod=y.$C({type:Je});static#n=this.\u0275inj=y.G2t({})}return Je})(),Xe=(()=>{class Je{static#e=this.\u0275fac=function(ve){return new(ve||Je)};static#t=this.\u0275mod=y.$C({type:Je});static#n=this.\u0275inj=y.G2t({imports:[je.jI,ht,je.jI,ht]})}return Je})()},7403:(tn,Ne,v)=>{"use strict";v.d(Ne,{EE:()=>Ee,P8:()=>F,xb:()=>ge});var u=v(6860),y=v(4438),o=v(4085),L=v(983),G=v(1413),ee=v(3726),oe=v(3798),V=v(6977),P=v(177);const B=(0,u.BQ)({passive:!0});let F=(()=>{class Re{constructor(te,be){this._platform=te,this._ngZone=be,this._monitoredElements=new Map}monitor(te){if(!this._platform.isBrowser)return L.w;const be=(0,o.i8)(te),Ze=this._monitoredElements.get(be);if(Ze)return Ze.subject;const gt=new G.B,je="cdk-text-field-autofilled",qe=We=>{"cdk-text-field-autofill-start"!==We.animationName||be.classList.contains(je)?"cdk-text-field-autofill-end"===We.animationName&&be.classList.contains(je)&&(be.classList.remove(je),this._ngZone.run(()=>gt.next({target:We.target,isAutofilled:!1}))):(be.classList.add(je),this._ngZone.run(()=>gt.next({target:We.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{be.addEventListener("animationstart",qe,B),be.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(be,{subject:gt,unlisten:()=>{be.removeEventListener("animationstart",qe,B)}}),gt}stopMonitoring(te){const be=(0,o.i8)(te),Ze=this._monitoredElements.get(be);Ze&&(Ze.unlisten(),Ze.subject.complete(),be.classList.remove("cdk-text-field-autofill-monitored"),be.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(be))}ngOnDestroy(){this._monitoredElements.forEach((te,be)=>this.stopMonitoring(be))}static#e=this.\u0275fac=function(be){return new(be||Re)(y.KVO(u.OD),y.KVO(y.SKi))};static#t=this.\u0275prov=y.jDH({token:Re,factory:Re.\u0275fac,providedIn:"root"})}return Re})(),ge=(()=>{class Re{get minRows(){return this._minRows}set minRows(te){this._minRows=(0,o.OE)(te),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(te){this._maxRows=(0,o.OE)(te),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(te){this._enabled!==te&&((this._enabled=te)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(te){this._cachedPlaceholderHeight=void 0,te?this._textareaElement.setAttribute("placeholder",te):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(te,be,Ze,gt){this._elementRef=te,this._platform=be,this._ngZone=Ze,this._destroyed=new G.B,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=je=>{this._hasFocus="focus"===je.type},this._document=gt,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const te=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;te&&(this._textareaElement.style.minHeight=te)}_setMaxHeight(){const te=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;te&&(this._textareaElement.style.maxHeight=te)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const te=this._getWindow();(0,ee.R)(te,"resize").pipe((0,oe.Z)(16),(0,V.Q)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let te=this._textareaElement.cloneNode(!1);te.rows=1,te.style.position="absolute",te.style.visibility="hidden",te.style.border="none",te.style.padding="0",te.style.height="",te.style.minHeight="",te.style.maxHeight="",te.style.overflow="hidden",this._textareaElement.parentNode.appendChild(te),this._cachedLineHeight=te.clientHeight,te.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const te=this._textareaElement,be=te.style.marginBottom||"",Ze=this._platform.FIREFOX,gt=Ze&&this._hasFocus,je=Ze?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";gt&&(te.style.marginBottom=`${te.clientHeight}px`),te.classList.add(je);const qe=te.scrollHeight-4;return te.classList.remove(je),gt&&(te.style.marginBottom=be),qe}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const te=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=te}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(te=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const be=this._elementRef.nativeElement,Ze=be.value;if(!te&&this._minRows===this._previousMinRows&&Ze===this._previousValue)return;const gt=this._measureScrollHeight(),je=Math.max(gt,this._cachedPlaceholderHeight||0);be.style.height=`${je}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(be)):setTimeout(()=>this._scrollToCaretPosition(be))}),this._previousValue=Ze,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(te){const{selectionStart:be,selectionEnd:Ze}=te;!this._destroyed.isStopped&&this._hasFocus&&te.setSelectionRange(be,Ze)}static#e=this.\u0275fac=function(be){return new(be||Re)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(P.qQ,8))};static#t=this.\u0275dir=y.FsC({type:Re,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(be,Ze){1&be&&y.bIt("input",function(){return Ze._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",y.L39],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"],standalone:!0,features:[y.GFd]})}return Re})(),Ee=(()=>{class Re{static#e=this.\u0275fac=function(be){return new(be||Re)};static#t=this.\u0275mod=y.$C({type:Re});static#n=this.\u0275inj=y.G2t({})}return Re})()},177:(tn,Ne,v)=>{"use strict";v.d(Ne,{AJ:()=>Hr,B3:()=>ci,Jj:()=>Lr,MD:()=>js,N0:()=>zo,PV:()=>Bs,QT:()=>o,Sm:()=>ke,Sq:()=>Ge,T3:()=>ki,UE:()=>Uo,VF:()=>G,Vy:()=>va,Xr:()=>Hs,YU:()=>li,ZD:()=>L,_b:()=>Xn,aZ:()=>be,bT:()=>se,fw:()=>te,hb:()=>Ee,hj:()=>P,jo:()=>Lo,qQ:()=>oe,vh:()=>Ul});var u=v(4438);let y=null;function o(){return y}function L(S){y??=S}class G{}const oe=new u.nKC("");let V=(()=>{class S{historyGo(f){throw new Error("")}static#e=this.\u0275fac=function(_){return new(_||S)};static#t=this.\u0275prov=u.jDH({token:S,factory:()=>(0,u.WQX)(B),providedIn:"platform"})}return S})();const P=new u.nKC("");let B=(()=>{class S extends V{constructor(){super(),this._doc=(0,u.WQX)(oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(f){const _=o().getGlobalEventTarget(this._doc,"window");return _.addEventListener("popstate",f,!1),()=>_.removeEventListener("popstate",f)}onHashChange(f){const _=o().getGlobalEventTarget(this._doc,"window");return _.addEventListener("hashchange",f,!1),()=>_.removeEventListener("hashchange",f)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(f){this._location.pathname=f}pushState(f,_,x){this._history.pushState(f,_,x)}replaceState(f,_,x){this._history.replaceState(f,_,x)}forward(){this._history.forward()}back(){this._history.back()}historyGo(f=0){this._history.go(f)}getState(){return this._history.state}static#e=this.\u0275fac=function(_){return new(_||S)};static#t=this.\u0275prov=u.jDH({token:S,factory:()=>new S,providedIn:"platform"})}return S})();function F(S,ne){if(0==S.length)return ne;if(0==ne.length)return S;let f=0;return S.endsWith("/")&&f++,ne.startsWith("/")&&f++,2==f?S+ne.substring(1):1==f?S+ne:S+"/"+ne}function ue(S){const ne=S.match(/#|\?|$/),f=ne&&ne.index||S.length;return S.slice(0,f-("/"===S[f-1]?1:0))+S.slice(f)}function ge(S){return S&&"?"!==S[0]?"?"+S:S}let Ee=(()=>{class S{historyGo(f){throw new Error("")}static#e=this.\u0275fac=function(_){return new(_||S)};static#t=this.\u0275prov=u.jDH({token:S,factory:()=>(0,u.WQX)(ke),providedIn:"root"})}return S})();const Re=new u.nKC("");let ke=(()=>{class S extends Ee{constructor(f,_){super(),this._platformLocation=f,this._removeListenerFns=[],this._baseHref=_??this._platformLocation.getBaseHrefFromDOM()??(0,u.WQX)(oe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(f){this._removeListenerFns.push(this._platformLocation.onPopState(f),this._platformLocation.onHashChange(f))}getBaseHref(){return this._baseHref}prepareExternalUrl(f){return F(this._baseHref,f)}path(f=!1){const _=this._platformLocation.pathname+ge(this._platformLocation.search),x=this._platformLocation.hash;return x&&f?`${_}${x}`:_}pushState(f,_,x,K){const de=this.prepareExternalUrl(x+ge(K));this._platformLocation.pushState(f,_,de)}replaceState(f,_,x,K){const de=this.prepareExternalUrl(x+ge(K));this._platformLocation.replaceState(f,_,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(f=0){this._platformLocation.historyGo?.(f)}static#e=this.\u0275fac=function(_){return new(_||S)(u.KVO(V),u.KVO(Re,8))};static#t=this.\u0275prov=u.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})(),te=(()=>{class S extends Ee{constructor(f,_){super(),this._platformLocation=f,this._baseHref="",this._removeListenerFns=[],null!=_&&(this._baseHref=_)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(f){this._removeListenerFns.push(this._platformLocation.onPopState(f),this._platformLocation.onHashChange(f))}getBaseHref(){return this._baseHref}path(f=!1){const _=this._platformLocation.hash??"#";return _.length>0?_.substring(1):_}prepareExternalUrl(f){const _=F(this._baseHref,f);return _.length>0?"#"+_:_}pushState(f,_,x,K){let de=this.prepareExternalUrl(x+ge(K));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.pushState(f,_,de)}replaceState(f,_,x,K){let de=this.prepareExternalUrl(x+ge(K));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.replaceState(f,_,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(f=0){this._platformLocation.historyGo?.(f)}static#e=this.\u0275fac=function(_){return new(_||S)(u.KVO(V),u.KVO(Re,8))};static#t=this.\u0275prov=u.jDH({token:S,factory:S.\u0275fac})}return S})(),be=(()=>{class S{constructor(f){this._subject=new u.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=f;const _=this._locationStrategy.getBaseHref();this._basePath=function qe(S){if(new RegExp("^(https?:)?//").test(S)){const[,f]=S.split(/\/\/[^\/]+/);return f}return S}(ue(je(_))),this._locationStrategy.onPopState(x=>{this._subject.emit({url:this.path(!0),pop:!0,state:x.state,type:x.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(f=!1){return this.normalize(this._locationStrategy.path(f))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(f,_=""){return this.path()==this.normalize(f+ge(_))}normalize(f){return S.stripTrailingSlash(function gt(S,ne){if(!S||!ne.startsWith(S))return ne;const f=ne.substring(S.length);return""===f||["/",";","?","#"].includes(f[0])?f:ne}(this._basePath,je(f)))}prepareExternalUrl(f){return f&&"/"!==f[0]&&(f="/"+f),this._locationStrategy.prepareExternalUrl(f)}go(f,_="",x=null){this._locationStrategy.pushState(x,"",f,_),this._notifyUrlChangeListeners(this.prepareExternalUrl(f+ge(_)),x)}replaceState(f,_="",x=null){this._locationStrategy.replaceState(x,"",f,_),this._notifyUrlChangeListeners(this.prepareExternalUrl(f+ge(_)),x)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(f=0){this._locationStrategy.historyGo?.(f)}onUrlChange(f){return this._urlChangeListeners.push(f),this._urlChangeSubscription??=this.subscribe(_=>{this._notifyUrlChangeListeners(_.url,_.state)}),()=>{const _=this._urlChangeListeners.indexOf(f);this._urlChangeListeners.splice(_,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(f="",_){this._urlChangeListeners.forEach(x=>x(f,_))}subscribe(f,_,x){return this._subject.subscribe({next:f,error:_,complete:x})}static#e=this.normalizeQueryParams=ge;static#t=this.joinWithSlash=F;static#n=this.stripTrailingSlash=ue;static#i=this.\u0275fac=function(_){return new(_||S)(u.KVO(Ee))};static#r=this.\u0275prov=u.jDH({token:S,factory:()=>function Ze(){return new be((0,u.KVO)(Ee))}(),providedIn:"root"})}return S})();function je(S){return S.replace(/\/index.html$/,"")}var me=function(S){return S[S.Zero=0]="Zero",S[S.One=1]="One",S[S.Two=2]="Two",S[S.Few=3]="Few",S[S.Many=4]="Many",S[S.Other=5]="Other",S}(me||{}),Le=function(S){return S[S.Format=0]="Format",S[S.Standalone=1]="Standalone",S}(Le||{}),nt=function(S){return S[S.Narrow=0]="Narrow",S[S.Abbreviated=1]="Abbreviated",S[S.Wide=2]="Wide",S[S.Short=3]="Short",S}(nt||{}),At=function(S){return S[S.Short=0]="Short",S[S.Medium=1]="Medium",S[S.Long=2]="Long",S[S.Full=3]="Full",S}(At||{});const vt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function J(S,ne){return it((0,u.H5H)(S)[u.KH2.DateFormat],ne)}function Ie(S,ne){return it((0,u.H5H)(S)[u.KH2.TimeFormat],ne)}function Ot(S,ne){return it((0,u.H5H)(S)[u.KH2.DateTimeFormat],ne)}function Pe(S,ne){const f=(0,u.H5H)(S),_=f[u.KH2.NumberSymbols][ne];if(typeof _>"u"){if(ne===vt.CurrencyDecimal)return f[u.KH2.NumberSymbols][vt.Decimal];if(ne===vt.CurrencyGroup)return f[u.KH2.NumberSymbols][vt.Group]}return _}const ve=u.mq5;function le(S){if(!S[u.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${S[u.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function it(S,ne){for(let f=ne;f>-1;f--)if(typeof S[f]<"u")return S[f];throw new Error("Locale data API: locale data undefined")}function It(S){const[ne,f]=S.split(":");return{hours:+ne,minutes:+f}}const hi=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,qt={},we=/((?:[^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 tt=function(S){return S[S.Short=0]="Short",S[S.ShortGMT=1]="ShortGMT",S[S.Long=2]="Long",S[S.Extended=3]="Extended",S}(tt||{}),rt=function(S){return S[S.FullYear=0]="FullYear",S[S.Month=1]="Month",S[S.Date=2]="Date",S[S.Hours=3]="Hours",S[S.Minutes=4]="Minutes",S[S.Seconds=5]="Seconds",S[S.FractionalSeconds=6]="FractionalSeconds",S[S.Day=7]="Day",S}(rt||{}),bt=function(S){return S[S.DayPeriods=0]="DayPeriods",S[S.Days=1]="Days",S[S.Months=2]="Months",S[S.Eras=3]="Eras",S}(bt||{});function on(S,ne,f,_){let x=function vi(S){if(nn(S))return S;if("number"==typeof S&&!isNaN(S))return new Date(S);if("string"==typeof S){if(S=S.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(S)){const[x,K=1,de=1]=S.split("-").map(ze=>+ze);return Q(x,K-1,de)}const f=parseFloat(S);if(!isNaN(S-f))return new Date(f);let _;if(_=S.match(hi))return function Ti(S){const ne=new Date(0);let f=0,_=0;const x=S[8]?ne.setUTCFullYear:ne.setFullYear,K=S[8]?ne.setUTCHours:ne.setHours;S[9]&&(f=Number(S[9]+S[10]),_=Number(S[9]+S[11])),x.call(ne,Number(S[1]),Number(S[2])-1,Number(S[3]));const de=Number(S[4]||0)-f,ze=Number(S[5]||0)-_,_t=Number(S[6]||0),wt=Math.floor(1e3*parseFloat("0."+(S[7]||0)));return K.call(ne,de,ze,_t,wt),ne}(_)}const ne=new Date(S);if(!nn(ne))throw new Error(`Unable to convert "${S}" into a date`);return ne}(S);ne=T(f,ne)||ne;let ze,de=[];for(;ne;){if(ze=we.exec(ne),!ze){de.push(ne);break}{de=de.concat(ze.slice(1));const kt=de.pop();if(!kt)break;ne=kt}}let _t=x.getTimezoneOffset();_&&(_t=Ke(_,_t),x=function Pn(S,ne,f){const _=f?-1:1,x=S.getTimezoneOffset();return function zt(S,ne){return(S=new Date(S.getTime())).setMinutes(S.getMinutes()+ne),S}(S,_*(Ke(ne,x)-x))}(x,_,!0));let wt="";return de.forEach(kt=>{const Yt=function ye(S){if(Be[S])return Be[S];let ne;switch(S){case"G":case"GG":case"GGG":ne=$t(bt.Eras,nt.Abbreviated);break;case"GGGG":ne=$t(bt.Eras,nt.Wide);break;case"GGGGG":ne=$t(bt.Eras,nt.Narrow);break;case"y":ne=he(rt.FullYear,1,0,!1,!0);break;case"yy":ne=he(rt.FullYear,2,0,!0,!0);break;case"yyy":ne=he(rt.FullYear,3,0,!1,!0);break;case"yyyy":ne=he(rt.FullYear,4,0,!1,!0);break;case"Y":ne=He(1);break;case"YY":ne=He(2,!0);break;case"YYY":ne=He(3);break;case"YYYY":ne=He(4);break;case"M":case"L":ne=he(rt.Month,1,1);break;case"MM":case"LL":ne=he(rt.Month,2,1);break;case"MMM":ne=$t(bt.Months,nt.Abbreviated);break;case"MMMM":ne=$t(bt.Months,nt.Wide);break;case"MMMMM":ne=$t(bt.Months,nt.Narrow);break;case"LLL":ne=$t(bt.Months,nt.Abbreviated,Le.Standalone);break;case"LLLL":ne=$t(bt.Months,nt.Wide,Le.Standalone);break;case"LLLLL":ne=$t(bt.Months,nt.Narrow,Le.Standalone);break;case"w":ne=En(1);break;case"ww":ne=En(2);break;case"W":ne=En(1,!0);break;case"d":ne=he(rt.Date,1);break;case"dd":ne=he(rt.Date,2);break;case"c":case"cc":ne=he(rt.Day,1);break;case"ccc":ne=$t(bt.Days,nt.Abbreviated,Le.Standalone);break;case"cccc":ne=$t(bt.Days,nt.Wide,Le.Standalone);break;case"ccccc":ne=$t(bt.Days,nt.Narrow,Le.Standalone);break;case"cccccc":ne=$t(bt.Days,nt.Short,Le.Standalone);break;case"E":case"EE":case"EEE":ne=$t(bt.Days,nt.Abbreviated);break;case"EEEE":ne=$t(bt.Days,nt.Wide);break;case"EEEEE":ne=$t(bt.Days,nt.Narrow);break;case"EEEEEE":ne=$t(bt.Days,nt.Short);break;case"a":case"aa":case"aaa":ne=$t(bt.DayPeriods,nt.Abbreviated);break;case"aaaa":ne=$t(bt.DayPeriods,nt.Wide);break;case"aaaaa":ne=$t(bt.DayPeriods,nt.Narrow);break;case"b":case"bb":case"bbb":ne=$t(bt.DayPeriods,nt.Abbreviated,Le.Standalone,!0);break;case"bbbb":ne=$t(bt.DayPeriods,nt.Wide,Le.Standalone,!0);break;case"bbbbb":ne=$t(bt.DayPeriods,nt.Narrow,Le.Standalone,!0);break;case"B":case"BB":case"BBB":ne=$t(bt.DayPeriods,nt.Abbreviated,Le.Format,!0);break;case"BBBB":ne=$t(bt.DayPeriods,nt.Wide,Le.Format,!0);break;case"BBBBB":ne=$t(bt.DayPeriods,nt.Narrow,Le.Format,!0);break;case"h":ne=he(rt.Hours,1,-12);break;case"hh":ne=he(rt.Hours,2,-12);break;case"H":ne=he(rt.Hours,1);break;case"HH":ne=he(rt.Hours,2);break;case"m":ne=he(rt.Minutes,1);break;case"mm":ne=he(rt.Minutes,2);break;case"s":ne=he(rt.Seconds,1);break;case"ss":ne=he(rt.Seconds,2);break;case"S":ne=he(rt.FractionalSeconds,1);break;case"SS":ne=he(rt.FractionalSeconds,2);break;case"SSS":ne=he(rt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ne=Vt(tt.Short);break;case"ZZZZZ":ne=Vt(tt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ne=Vt(tt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ne=Vt(tt.Long);break;default:return null}return Be[S]=ne,ne}(kt);wt+=Yt?Yt(x,f,_t):"''"===kt?"'":kt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),wt}function Q(S,ne,f){const _=new Date(0);return _.setFullYear(S,ne,f),_.setHours(0,0,0),_}function T(S,ne){const f=function Zt(S){return(0,u.H5H)(S)[u.KH2.LocaleId]}(S);if(qt[f]??={},qt[f][ne])return qt[f][ne];let _="";switch(ne){case"shortDate":_=J(S,At.Short);break;case"mediumDate":_=J(S,At.Medium);break;case"longDate":_=J(S,At.Long);break;case"fullDate":_=J(S,At.Full);break;case"shortTime":_=Ie(S,At.Short);break;case"mediumTime":_=Ie(S,At.Medium);break;case"longTime":_=Ie(S,At.Long);break;case"fullTime":_=Ie(S,At.Full);break;case"short":const x=T(S,"shortTime"),K=T(S,"shortDate");_=N(Ot(S,At.Short),[x,K]);break;case"medium":const de=T(S,"mediumTime"),ze=T(S,"mediumDate");_=N(Ot(S,At.Medium),[de,ze]);break;case"long":const _t=T(S,"longTime"),wt=T(S,"longDate");_=N(Ot(S,At.Long),[_t,wt]);break;case"full":const kt=T(S,"fullTime"),Yt=T(S,"fullDate");_=N(Ot(S,At.Full),[kt,Yt])}return _&&(qt[f][ne]=_),_}function N(S,ne){return ne&&(S=S.replace(/\{([^}]+)}/g,function(f,_){return null!=ne&&_ in ne?ne[_]:f})),S}function $(S,ne,f="-",_,x){let K="";(S<0||x&&S<=0)&&(x?S=1-S:(S=-S,K=f));let de=String(S);for(;de.length0||ze>-f)&&(ze+=f),S===rt.Hours)0===ze&&-12===f&&(ze=12);else if(S===rt.FractionalSeconds)return function ce(S,ne){return $(S,3).substring(0,ne)}(ze,ne);const _t=Pe(de,vt.MinusSign);return $(ze,ne,_t,_,x)}}function $t(S,ne,f=Le.Format,_=!1){return function(x,K){return function Bt(S,ne,f,_,x,K){switch(f){case bt.Months:return function _n(S,ne,f){const _=(0,u.H5H)(S),K=it([_[u.KH2.MonthsFormat],_[u.KH2.MonthsStandalone]],ne);return it(K,f)}(ne,x,_)[S.getMonth()];case bt.Days:return function Vn(S,ne,f){const _=(0,u.H5H)(S),K=it([_[u.KH2.DaysFormat],_[u.KH2.DaysStandalone]],ne);return it(K,f)}(ne,x,_)[S.getDay()];case bt.DayPeriods:const de=S.getHours(),ze=S.getMinutes();if(K){const wt=function Ce(S){const ne=(0,u.H5H)(S);return le(ne),(ne[u.KH2.ExtraData][2]||[]).map(_=>"string"==typeof _?It(_):[It(_[0]),It(_[1])])}(ne),kt=function dt(S,ne,f){const _=(0,u.H5H)(S);le(_);const K=it([_[u.KH2.ExtraData][0],_[u.KH2.ExtraData][1]],ne)||[];return it(K,f)||[]}(ne,x,_),Yt=wt.findIndex(vn=>{if(Array.isArray(vn)){const[xt,Ht]=vn,cn=de>=xt.hours&&ze>=xt.minutes,Rn=de0?Math.floor(x/60):Math.ceil(x/60);switch(S){case tt.Short:return(x>=0?"+":"")+$(de,2,K)+$(Math.abs(x%60),2,K);case tt.ShortGMT:return"GMT"+(x>=0?"+":"")+$(de,1,K);case tt.Long:return"GMT"+(x>=0?"+":"")+$(de,2,K)+":"+$(Math.abs(x%60),2,K);case tt.Extended:return 0===_?"Z":(x>=0?"+":"")+$(de,2,K)+":"+$(Math.abs(x%60),2,K);default:throw new Error(`Unknown zone width "${S}"`)}}}const Mn=0,Ln=4;function Jt(S){const ne=S.getDay(),f=0===ne?-3:Ln-ne;return Q(S.getFullYear(),S.getMonth(),S.getDate()+f)}function En(S,ne=!1){return function(f,_){let x;if(ne){const K=new Date(f.getFullYear(),f.getMonth(),1).getDay()-1,de=f.getDate();x=1+Math.floor((de+K)/7)}else{const K=Jt(f),de=function Ei(S){const ne=Q(S,Mn,1).getDay();return Q(S,0,1+(ne<=Ln?Ln:Ln+7)-ne)}(K.getFullYear()),ze=K.getTime()-de.getTime();x=1+Math.round(ze/6048e5)}return $(x,S,Pe(_,vt.MinusSign))}}function He(S,ne=!1){return function(f,_){return $(Jt(f).getFullYear(),S,Pe(_,vt.MinusSign),ne)}}const Be={};function Ke(S,ne){S=S.replace(/:/g,"");const f=Date.parse("Jan 01, 1970 00:00:00 "+S)/6e4;return isNaN(f)?ne:f}function nn(S){return S instanceof Date&&!isNaN(S.valueOf())}let St=(()=>{class S{static#e=this.\u0275fac=function(_){return new(_||S)};static#t=this.\u0275prov=u.jDH({token:S,factory:function(_){let x=null;return _?x=new _:(K=u.KVO(u.xe9),x=new yn(K)),x;var K},providedIn:"root"})}return S})();let yn=(()=>{class S extends St{constructor(f){super(),this.locale=f}getPluralCategory(f,_){switch(ve(_||this.locale)(f)){case me.Zero:return"zero";case me.One:return"one";case me.Two:return"two";case me.Few:return"few";case me.Many:return"many";default:return"other"}}static#e=this.\u0275fac=function(_){return new(_||S)(u.KVO(u.xe9))};static#t=this.\u0275prov=u.jDH({token:S,factory:S.\u0275fac})}return S})();function Xn(S,ne){ne=encodeURIComponent(ne);for(const f of S.split(";")){const _=f.indexOf("="),[x,K]=-1==_?[f,""]:[f.slice(0,_),f.slice(_+1)];if(x.trim()===ne)return decodeURIComponent(K)}return null}const zn=/\s+/,ri=[];let li=(()=>{class S{constructor(f,_){this._ngEl=f,this._renderer=_,this.initialClasses=ri,this.stateMap=new Map}set klass(f){this.initialClasses=null!=f?f.trim().split(zn):ri}set ngClass(f){this.rawClass="string"==typeof f?f.trim().split(zn):f}ngDoCheck(){for(const _ of this.initialClasses)this._updateState(_,!0);const f=this.rawClass;if(Array.isArray(f)||f instanceof Set)for(const _ of f)this._updateState(_,!0);else if(null!=f)for(const _ of Object.keys(f))this._updateState(_,!!f[_]);this._applyStateDiff()}_updateState(f,_){const x=this.stateMap.get(f);void 0!==x?(x.enabled!==_&&(x.changed=!0,x.enabled=_),x.touched=!0):this.stateMap.set(f,{enabled:_,changed:!0,touched:!0})}_applyStateDiff(){for(const f of this.stateMap){const _=f[0],x=f[1];x.changed?(this._toggleClass(_,x.enabled),x.changed=!1):x.touched||(x.enabled&&this._toggleClass(_,!1),this.stateMap.delete(_)),x.touched=!1}}_toggleClass(f,_){(f=f.trim()).length>0&&f.split(zn).forEach(x=>{_?this._renderer.addClass(this._ngEl.nativeElement,x):this._renderer.removeClass(this._ngEl.nativeElement,x)})}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(u.aKT),u.rXU(u.sFG))};static#t=this.\u0275dir=u.FsC({type:S,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return S})();class Ye{constructor(ne,f,_,x){this.$implicit=ne,this.ngForOf=f,this.index=_,this.count=x}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ge=(()=>{class S{set ngForOf(f){this._ngForOf=f,this._ngForOfDirty=!0}set ngForTrackBy(f){this._trackByFn=f}get ngForTrackBy(){return this._trackByFn}constructor(f,_,x){this._viewContainer=f,this._template=_,this._differs=x,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(f){f&&(this._template=f)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const f=this._ngForOf;!this._differ&&f&&(this._differ=this._differs.find(f).create(this.ngForTrackBy))}if(this._differ){const f=this._differ.diff(this._ngForOf);f&&this._applyChanges(f)}}_applyChanges(f){const _=this._viewContainer;f.forEachOperation((x,K,de)=>{if(null==x.previousIndex)_.createEmbeddedView(this._template,new Ye(x.item,this._ngForOf,-1,-1),null===de?void 0:de);else if(null==de)_.remove(null===K?void 0:K);else if(null!==K){const ze=_.get(K);_.move(ze,de),W(ze,x)}});for(let x=0,K=_.length;x{W(_.get(x.currentIndex),x)})}static ngTemplateContextGuard(f,_){return!0}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(u.c1b),u.rXU(u.C4Q),u.rXU(u._q3))};static#t=this.\u0275dir=u.FsC({type:S,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return S})();function W(S,ne){S.context.$implicit=ne.item}let se=(()=>{class S{constructor(f,_){this._viewContainer=f,this._context=new $e,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=_}set ngIf(f){this._context.$implicit=this._context.ngIf=f,this._updateView()}set ngIfThen(f){pt("ngIfThen",f),this._thenTemplateRef=f,this._thenViewRef=null,this._updateView()}set ngIfElse(f){pt("ngIfElse",f),this._elseTemplateRef=f,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(f,_){return!0}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(u.c1b),u.rXU(u.C4Q))};static#t=this.\u0275dir=u.FsC({type:S,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return S})();class $e{constructor(){this.$implicit=null,this.ngIf=null}}function pt(S,ne){if(ne&&!ne.createEmbeddedView)throw new Error(`${S} must be a TemplateRef, but received '${(0,u.Tbb)(ne)}'.`)}let ci=(()=>{class S{constructor(f,_,x){this._ngEl=f,this._differs=_,this._renderer=x,this._ngStyle=null,this._differ=null}set ngStyle(f){this._ngStyle=f,!this._differ&&f&&(this._differ=this._differs.find(f).create())}ngDoCheck(){if(this._differ){const f=this._differ.diff(this._ngStyle);f&&this._applyChanges(f)}}_setStyle(f,_){const[x,K]=f.split("."),de=-1===x.indexOf("-")?void 0:u.czy.DashCase;null!=_?this._renderer.setStyle(this._ngEl.nativeElement,x,K?`${_}${K}`:_,de):this._renderer.removeStyle(this._ngEl.nativeElement,x,de)}_applyChanges(f){f.forEachRemovedItem(_=>this._setStyle(_.key,null)),f.forEachAddedItem(_=>this._setStyle(_.key,_.currentValue)),f.forEachChangedItem(_=>this._setStyle(_.key,_.currentValue))}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(u.aKT),u.rXU(u.MKu),u.rXU(u.sFG))};static#t=this.\u0275dir=u.FsC({type:S,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return S})(),ki=(()=>{class S{constructor(f){this._viewContainerRef=f,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(f){if(this._shouldRecreateView(f)){const _=this._viewContainerRef;if(this._viewRef&&_.remove(_.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const x=this._createContextForwardProxy();this._viewRef=_.createEmbeddedView(this.ngTemplateOutlet,x,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(f){return!!f.ngTemplateOutlet||!!f.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(f,_,x)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,_,x),get:(f,_,x)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,_,x)}})}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(u.c1b))};static#t=this.\u0275dir=u.FsC({type:S,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[u.OA$]})}return S})();function Gn(S,ne){return new u.wOt(2100,!1)}class Rr{createSubscription(ne,f){return(0,u.O8t)(()=>ne.subscribe({next:f,error:_=>{throw _}}))}dispose(ne){(0,u.O8t)(()=>ne.unsubscribe())}}class uo{createSubscription(ne,f){return ne.then(f,_=>{throw _})}dispose(ne){}}const Fr=new uo,Ci=new Rr;let Lr=(()=>{class S{constructor(f){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=f}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(f){if(!this._obj){if(f)try{this.markForCheckOnValueUpdate=!1,this._subscribe(f)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return f!==this._obj?(this._dispose(),this.transform(f)):this._latestValue}_subscribe(f){this._obj=f,this._strategy=this._selectStrategy(f),this._subscription=this._strategy.createSubscription(f,_=>this._updateLatestValue(f,_))}_selectStrategy(f){if((0,u.jNT)(f))return Fr;if((0,u.zjR)(f))return Ci;throw Gn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(f,_){f===this._obj&&(this._latestValue=_,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(u.gRc,16))};static#t=this.\u0275pipe=u.EJ8({name:"async",type:S,pure:!1,standalone:!0})}return S})();const zi=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Bs=(()=>{class S{transform(f){if(null==f)return null;if("string"!=typeof f)throw Gn();return f.replace(zi,_=>_[0].toUpperCase()+_.slice(1).toLowerCase())}static#e=this.\u0275fac=function(_){return new(_||S)};static#t=this.\u0275pipe=u.EJ8({name:"titlecase",type:S,pure:!0,standalone:!0})}return S})();const ma=new u.nKC(""),ga=new u.nKC("");let Ul=(()=>{class S{constructor(f,_,x){this.locale=f,this.defaultTimezone=_,this.defaultOptions=x}transform(f,_,x,K){if(null==f||""===f||f!=f)return null;try{return on(f,_??this.defaultOptions?.dateFormat??"mediumDate",K||this.locale,x??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(de){throw Gn()}}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(u.xe9,16),u.rXU(ma,24),u.rXU(ga,24))};static#t=this.\u0275pipe=u.EJ8({name:"date",type:S,pure:!0,standalone:!0})}return S})();const vo=/#/g;let Lo=(()=>{class S{constructor(f){this._localization=f}transform(f,_,x){if(null==f)return"";if("object"!=typeof _||null===_)throw Gn();return _[function ln(S,ne,f,_){let x=`=${S}`;if(ne.indexOf(x)>-1||(x=f.getPluralCategory(S,_),ne.indexOf(x)>-1))return x;if(ne.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${S}"`)}(f,Object.keys(_),this._localization,x)].replace(vo,f.toString())}static#e=this.\u0275fac=function(_){return new(_||S)(u.rXU(St,16))};static#t=this.\u0275pipe=u.EJ8({name:"i18nPlural",type:S,pure:!0,standalone:!0})}return S})(),js=(()=>{class S{static#e=this.\u0275fac=function(_){return new(_||S)};static#t=this.\u0275mod=u.$C({type:S});static#n=this.\u0275inj=u.G2t({})}return S})();const Hr="browser",Bo="server";function Uo(S){return S===Hr}function va(S){return S===Bo}let Hs=(()=>{class S{static#e=this.\u0275prov=(0,u.jDH)({token:S,providedIn:"root",factory:()=>Uo((0,u.WQX)(u.Agw))?new Qr((0,u.WQX)(oe),window):new gr})}return S})();class Qr{constructor(ne,f){this.document=ne,this.window=f,this.offset=()=>[0,0]}setOffset(ne){this.offset=Array.isArray(ne)?()=>ne:ne}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(ne){this.window.scrollTo(ne[0],ne[1])}scrollToAnchor(ne){const f=function Li(S,ne){const f=S.getElementById(ne)||S.getElementsByName(ne)[0];if(f)return f;if("function"==typeof S.createTreeWalker&&S.body&&"function"==typeof S.body.attachShadow){const _=S.createTreeWalker(S.body,NodeFilter.SHOW_ELEMENT);let x=_.currentNode;for(;x;){const K=x.shadowRoot;if(K){const de=K.getElementById(ne)||K.querySelector(`[name="${ne}"]`);if(de)return de}x=_.nextNode()}}return null}(this.document,ne);f&&(this.scrollToElement(f),f.focus())}setHistoryScrollRestoration(ne){this.window.history.scrollRestoration=ne}scrollToElement(ne){const f=ne.getBoundingClientRect(),_=f.left+this.window.pageXOffset,x=f.top+this.window.pageYOffset,K=this.offset();this.window.scrollTo(_-K[0],x-K[1])}}class gr{setOffset(ne){}getScrollPosition(){return[0,0]}scrollToPosition(ne){}scrollToAnchor(ne){}setHistoryScrollRestoration(ne){}}class zo{}},1626:(tn,Ne,v)=>{"use strict";v.d(Ne,{$R:()=>Pn,Nl:()=>qe,Qq:()=>Ot,b$:()=>vi,cS:()=>_n,yz:()=>pi});var u=v(467),y=v(4438),o=v(7673),L=v(1985),G=v(6648),ee=v(274),oe=v(5964),V=v(6354),P=v(980),B=v(5558),F=v(177);class ue{}class ge{}class Ee{constructor(Ye){this.normalizedNames=new Map,this.lazyUpdate=null,Ye?"string"==typeof Ye?this.lazyInit=()=>{this.headers=new Map,Ye.split("\n").forEach(Ge=>{const W=Ge.indexOf(":");if(W>0){const Te=Ge.slice(0,W),se=Te.toLowerCase(),$e=Ge.slice(W+1).trim();this.maybeSetNormalizedName(Te,se),this.headers.has(se)?this.headers.get(se).push($e):this.headers.set(se,[$e])}})}:typeof Headers<"u"&&Ye instanceof Headers?(this.headers=new Map,Ye.forEach((Ge,W)=>{this.setHeaderEntries(W,Ge)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Ye).forEach(([Ge,W])=>{this.setHeaderEntries(Ge,W)})}:this.headers=new Map}has(Ye){return this.init(),this.headers.has(Ye.toLowerCase())}get(Ye){this.init();const Ge=this.headers.get(Ye.toLowerCase());return Ge&&Ge.length>0?Ge[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Ye){return this.init(),this.headers.get(Ye.toLowerCase())||null}append(Ye,Ge){return this.clone({name:Ye,value:Ge,op:"a"})}set(Ye,Ge){return this.clone({name:Ye,value:Ge,op:"s"})}delete(Ye,Ge){return this.clone({name:Ye,value:Ge,op:"d"})}maybeSetNormalizedName(Ye,Ge){this.normalizedNames.has(Ge)||this.normalizedNames.set(Ge,Ye)}init(){this.lazyInit&&(this.lazyInit instanceof Ee?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Ye=>this.applyUpdate(Ye)),this.lazyUpdate=null))}copyFrom(Ye){Ye.init(),Array.from(Ye.headers.keys()).forEach(Ge=>{this.headers.set(Ge,Ye.headers.get(Ge)),this.normalizedNames.set(Ge,Ye.normalizedNames.get(Ge))})}clone(Ye){const Ge=new Ee;return Ge.lazyInit=this.lazyInit&&this.lazyInit instanceof Ee?this.lazyInit:this,Ge.lazyUpdate=(this.lazyUpdate||[]).concat([Ye]),Ge}applyUpdate(Ye){const Ge=Ye.name.toLowerCase();switch(Ye.op){case"a":case"s":let W=Ye.value;if("string"==typeof W&&(W=[W]),0===W.length)return;this.maybeSetNormalizedName(Ye.name,Ge);const Te=("a"===Ye.op?this.headers.get(Ge):void 0)||[];Te.push(...W),this.headers.set(Ge,Te);break;case"d":const se=Ye.value;if(se){let $e=this.headers.get(Ge);if(!$e)return;$e=$e.filter(pt=>-1===se.indexOf(pt)),0===$e.length?(this.headers.delete(Ge),this.normalizedNames.delete(Ge)):this.headers.set(Ge,$e)}else this.headers.delete(Ge),this.normalizedNames.delete(Ge)}}setHeaderEntries(Ye,Ge){const W=(Array.isArray(Ge)?Ge:[Ge]).map(se=>se.toString()),Te=Ye.toLowerCase();this.headers.set(Te,W),this.maybeSetNormalizedName(Ye,Te)}forEach(Ye){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ge=>Ye(this.normalizedNames.get(Ge),this.headers.get(Ge)))}}class ke{encodeKey(Ye){return gt(Ye)}encodeValue(Ye){return gt(Ye)}decodeKey(Ye){return decodeURIComponent(Ye)}decodeValue(Ye){return decodeURIComponent(Ye)}}const be=/%(\d[a-f0-9])/gi,Ze={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function gt(xe){return encodeURIComponent(xe).replace(be,(Ye,Ge)=>Ze[Ge]??Ye)}function je(xe){return`${xe}`}class qe{constructor(Ye={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Ye.encoder||new ke,Ye.fromString){if(Ye.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function te(xe,Ye){const Ge=new Map;return xe.length>0&&xe.replace(/^\?/,"").split("&").forEach(Te=>{const se=Te.indexOf("="),[$e,pt]=-1==se?[Ye.decodeKey(Te),""]:[Ye.decodeKey(Te.slice(0,se)),Ye.decodeValue(Te.slice(se+1))],lt=Ge.get($e)||[];lt.push(pt),Ge.set($e,lt)}),Ge}(Ye.fromString,this.encoder)}else Ye.fromObject?(this.map=new Map,Object.keys(Ye.fromObject).forEach(Ge=>{const W=Ye.fromObject[Ge],Te=Array.isArray(W)?W.map(je):[je(W)];this.map.set(Ge,Te)})):this.map=null}has(Ye){return this.init(),this.map.has(Ye)}get(Ye){this.init();const Ge=this.map.get(Ye);return Ge?Ge[0]:null}getAll(Ye){return this.init(),this.map.get(Ye)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Ye,Ge){return this.clone({param:Ye,value:Ge,op:"a"})}appendAll(Ye){const Ge=[];return Object.keys(Ye).forEach(W=>{const Te=Ye[W];Array.isArray(Te)?Te.forEach(se=>{Ge.push({param:W,value:se,op:"a"})}):Ge.push({param:W,value:Te,op:"a"})}),this.clone(Ge)}set(Ye,Ge){return this.clone({param:Ye,value:Ge,op:"s"})}delete(Ye,Ge){return this.clone({param:Ye,value:Ge,op:"d"})}toString(){return this.init(),this.keys().map(Ye=>{const Ge=this.encoder.encodeKey(Ye);return this.map.get(Ye).map(W=>Ge+"="+this.encoder.encodeValue(W)).join("&")}).filter(Ye=>""!==Ye).join("&")}clone(Ye){const Ge=new qe({encoder:this.encoder});return Ge.cloneFrom=this.cloneFrom||this,Ge.updates=(this.updates||[]).concat(Ye),Ge}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Ye=>this.map.set(Ye,this.cloneFrom.map.get(Ye))),this.updates.forEach(Ye=>{switch(Ye.op){case"a":case"s":const Ge=("a"===Ye.op?this.map.get(Ye.param):void 0)||[];Ge.push(je(Ye.value)),this.map.set(Ye.param,Ge);break;case"d":if(void 0===Ye.value){this.map.delete(Ye.param);break}{let W=this.map.get(Ye.param)||[];const Te=W.indexOf(je(Ye.value));-1!==Te&&W.splice(Te,1),W.length>0?this.map.set(Ye.param,W):this.map.delete(Ye.param)}}}),this.cloneFrom=this.updates=null)}}class ae{constructor(){this.map=new Map}set(Ye,Ge){return this.map.set(Ye,Ge),this}get(Ye){return this.map.has(Ye)||this.map.set(Ye,Ye.defaultValue()),this.map.get(Ye)}delete(Ye){return this.map.delete(Ye),this}has(Ye){return this.map.has(Ye)}keys(){return this.map.keys()}}function Le(xe){return typeof ArrayBuffer<"u"&&xe instanceof ArrayBuffer}function nt(xe){return typeof Blob<"u"&&xe instanceof Blob}function At(xe){return typeof FormData<"u"&&xe instanceof FormData}class Dt{constructor(Ye,Ge,W,Te){let se;if(this.url=Ge,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Ye.toUpperCase(),function me(xe){switch(xe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Te?(this.body=void 0!==W?W:null,se=Te):se=W,se&&(this.reportProgress=!!se.reportProgress,this.withCredentials=!!se.withCredentials,se.responseType&&(this.responseType=se.responseType),se.headers&&(this.headers=se.headers),se.context&&(this.context=se.context),se.params&&(this.params=se.params),this.transferCache=se.transferCache),this.headers??=new Ee,this.context??=new ae,this.params){const $e=this.params.toString();if(0===$e.length)this.urlWithParams=Ge;else{const pt=Ge.indexOf("?");this.urlWithParams=Ge+(-1===pt?"?":ptwn.set(Dn,Ye.setHeaders[Dn]),jt)),Ye.setParams&&(hn=Object.keys(Ye.setParams).reduce((wn,Dn)=>wn.set(Dn,Ye.setParams[Dn]),hn)),new Dt(Ge,W,$e,{params:hn,headers:jt,context:fn,reportProgress:lt,responseType:Te,withCredentials:pt,transferCache:se})}}var Zt=function(xe){return xe[xe.Sent=0]="Sent",xe[xe.UploadProgress=1]="UploadProgress",xe[xe.ResponseHeader=2]="ResponseHeader",xe[xe.DownloadProgress=3]="DownloadProgress",xe[xe.Response=4]="Response",xe[xe.User=5]="User",xe}(Zt||{});class Fn{constructor(Ye,Ge=200,W="OK"){this.headers=Ye.headers||new Ee,this.status=void 0!==Ye.status?Ye.status:Ge,this.statusText=Ye.statusText||W,this.url=Ye.url||null,this.ok=this.status>=200&&this.status<300}}class Vn extends Fn{constructor(Ye={}){super(Ye),this.type=Zt.ResponseHeader}clone(Ye={}){return new Vn({headers:Ye.headers||this.headers,status:void 0!==Ye.status?Ye.status:this.status,statusText:Ye.statusText||this.statusText,url:Ye.url||this.url||void 0})}}class _n extends Fn{constructor(Ye={}){super(Ye),this.type=Zt.Response,this.body=void 0!==Ye.body?Ye.body:null}clone(Ye={}){return new _n({body:void 0!==Ye.body?Ye.body:this.body,headers:Ye.headers||this.headers,status:void 0!==Ye.status?Ye.status:this.status,statusText:Ye.statusText||this.statusText,url:Ye.url||this.url||void 0})}}class pi extends Fn{constructor(Ye){super(Ye,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Ye.url||"(unknown url)"}`:`Http failure response for ${Ye.url||"(unknown url)"}: ${Ye.status} ${Ye.statusText}`,this.error=Ye.error||null}}function Ie(xe,Ye){return{body:Ye,headers:xe.headers,context:xe.context,observe:xe.observe,params:xe.params,reportProgress:xe.reportProgress,responseType:xe.responseType,withCredentials:xe.withCredentials,transferCache:xe.transferCache}}let Ot=(()=>{class xe{constructor(Ge){this.handler=Ge}request(Ge,W,Te={}){let se;if(Ge instanceof Dt)se=Ge;else{let lt,jt;lt=Te.headers instanceof Ee?Te.headers:new Ee(Te.headers),Te.params&&(jt=Te.params instanceof qe?Te.params:new qe({fromObject:Te.params})),se=new Dt(Ge,W,void 0!==Te.body?Te.body:null,{headers:lt,context:Te.context,params:jt,reportProgress:Te.reportProgress,responseType:Te.responseType||"json",withCredentials:Te.withCredentials,transferCache:Te.transferCache})}const $e=(0,o.of)(se).pipe((0,ee.H)(lt=>this.handler.handle(lt)));if(Ge instanceof Dt||"events"===Te.observe)return $e;const pt=$e.pipe((0,oe.p)(lt=>lt instanceof _n));switch(Te.observe||"body"){case"body":switch(se.responseType){case"arraybuffer":return pt.pipe((0,V.T)(lt=>{if(null!==lt.body&&!(lt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return lt.body}));case"blob":return pt.pipe((0,V.T)(lt=>{if(null!==lt.body&&!(lt.body instanceof Blob))throw new Error("Response is not a Blob.");return lt.body}));case"text":return pt.pipe((0,V.T)(lt=>{if(null!==lt.body&&"string"!=typeof lt.body)throw new Error("Response is not a string.");return lt.body}));default:return pt.pipe((0,V.T)(lt=>lt.body))}case"response":return pt;default:throw new Error(`Unreachable: unhandled observe type ${Te.observe}}`)}}delete(Ge,W={}){return this.request("DELETE",Ge,W)}get(Ge,W={}){return this.request("GET",Ge,W)}head(Ge,W={}){return this.request("HEAD",Ge,W)}jsonp(Ge,W){return this.request("JSONP",Ge,{params:(new qe).append(W,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ge,W={}){return this.request("OPTIONS",Ge,W)}patch(Ge,W,Te={}){return this.request("PATCH",Ge,Ie(Te,W))}post(Ge,W,Te={}){return this.request("POST",Ge,Ie(Te,W))}put(Ge,W,Te={}){return this.request("PUT",Ge,Ie(Te,W))}static#e=this.\u0275fac=function(W){return new(W||xe)(y.KVO(ue))};static#t=this.\u0275prov=y.jDH({token:xe,factory:xe.\u0275fac})}return xe})();const Pe=/^\)\]\}',?\n/;function Xe(xe){if(xe.url)return xe.url;const Ye="X-Request-URL".toLocaleLowerCase();return xe.headers.get(Ye)}let Je=(()=>{class xe{constructor(){this.fetchImpl=(0,y.WQX)(Me,{optional:!0})?.fetch??((...Ge)=>globalThis.fetch(...Ge)),this.ngZone=(0,y.WQX)(y.SKi)}handle(Ge){return new L.c(W=>{const Te=new AbortController;return this.doRequest(Ge,Te.signal,W).then(ie,se=>W.error(new pi({error:se}))),()=>Te.abort()})}doRequest(Ge,W,Te){var se=this;return(0,u.A)(function*(){const $e=se.createRequestInit(Ge);let pt;try{const jn=se.ngZone.runOutsideAngular(()=>se.fetchImpl(Ge.urlWithParams,{signal:W,...$e}));(function ve(xe){xe.then(ie,ie)})(jn),Te.next({type:Zt.Sent}),pt=yield jn}catch(jn){return void Te.error(new pi({error:jn,status:jn.status??0,statusText:jn.statusText,url:Ge.urlWithParams,headers:jn.headers}))}const lt=new Ee(pt.headers),jt=pt.statusText,hn=Xe(pt)??Ge.urlWithParams;let fn=pt.status,wn=null;if(Ge.reportProgress&&Te.next(new Vn({headers:lt,status:fn,statusText:jt,url:hn})),pt.body){const jn=pt.headers.get("content-length"),$n=[],ci=pt.body.getReader();let ei,Gn,ki=0;const Rr=typeof Zone<"u"&&Zone.current;yield se.ngZone.runOutsideAngular((0,u.A)(function*(){for(;;){const{done:Fr,value:Ci}=yield ci.read();if(Fr)break;if($n.push(Ci),ki+=Ci.length,Ge.reportProgress){Gn="text"===Ge.responseType?(Gn??"")+(ei??=new TextDecoder).decode(Ci,{stream:!0}):void 0;const Lr=()=>Te.next({type:Zt.DownloadProgress,total:jn?+jn:void 0,loaded:ki,partialText:Gn});Rr?Rr.run(Lr):Lr()}}}));const uo=se.concatChunks($n,ki);try{const Fr=pt.headers.get("Content-Type")??"";wn=se.parseBody(Ge,uo,Fr)}catch(Fr){return void Te.error(new pi({error:Fr,headers:new Ee(pt.headers),status:pt.status,statusText:pt.statusText,url:Xe(pt)??Ge.urlWithParams}))}}0===fn&&(fn=wn?200:0),fn>=200&&fn<300?(Te.next(new _n({body:wn,headers:lt,status:fn,statusText:jt,url:hn})),Te.complete()):Te.error(new pi({error:wn,headers:lt,status:fn,statusText:jt,url:hn}))})()}parseBody(Ge,W,Te){switch(Ge.responseType){case"json":const se=(new TextDecoder).decode(W).replace(Pe,"");return""===se?null:JSON.parse(se);case"text":return(new TextDecoder).decode(W);case"blob":return new Blob([W],{type:Te});case"arraybuffer":return W.buffer}}createRequestInit(Ge){const W={},Te=Ge.withCredentials?"include":void 0;if(Ge.headers.forEach((se,$e)=>W[se]=$e.join(",")),Ge.headers.has("Accept")||(W.Accept="application/json, text/plain, */*"),!Ge.headers.has("Content-Type")){const se=Ge.detectContentTypeHeader();null!==se&&(W["Content-Type"]=se)}return{body:Ge.serializeBody(),method:Ge.method,headers:W,credentials:Te}}concatChunks(Ge,W){const Te=new Uint8Array(W);let se=0;for(const $e of Ge)Te.set($e,se),se+=$e.length;return Te}static#e=this.\u0275fac=function(W){return new(W||xe)};static#t=this.\u0275prov=y.jDH({token:xe,factory:xe.\u0275fac})}return xe})();class Me{}function ie(){}function le(xe,Ye){return Ye(xe)}const it=new y.nKC(""),It=new y.nKC(""),Ft=new y.nKC("",{providedIn:"root",factory:()=>!0});let qt=(()=>{class xe extends ue{constructor(Ge,W){super(),this.backend=Ge,this.injector=W,this.chain=null,this.pendingTasks=(0,y.WQX)(y.TgB),this.contributeToStability=(0,y.WQX)(Ft)}handle(Ge){if(null===this.chain){const W=Array.from(new Set([...this.injector.get(it),...this.injector.get(It,[])]));this.chain=W.reduceRight((Te,se)=>function dt(xe,Ye,Ge){return(W,Te)=>(0,y.N4e)(Ge,()=>Ye(W,se=>xe(se,Te)))}(Te,se,this.injector),le)}if(this.contributeToStability){const W=this.pendingTasks.add();return this.chain(Ge,Te=>this.backend.handle(Te)).pipe((0,P.j)(()=>this.pendingTasks.remove(W)))}return this.chain(Ge,W=>this.backend.handle(W))}static#e=this.\u0275fac=function(W){return new(W||xe)(y.KVO(ge),y.KVO(y.uvJ))};static#t=this.\u0275prov=y.jDH({token:xe,factory:xe.\u0275fac})}return xe})();const et=/^\)\]\}',?\n/;let Bt=(()=>{class xe{constructor(Ge){this.xhrFactory=Ge}handle(Ge){if("JSONP"===Ge.method)throw new y.wOt(-2800,!1);const W=this.xhrFactory;return(W.\u0275loadImpl?(0,G.H)(W.\u0275loadImpl()):(0,o.of)(null)).pipe((0,B.n)(()=>new L.c(se=>{const $e=W.build();if($e.open(Ge.method,Ge.urlWithParams),Ge.withCredentials&&($e.withCredentials=!0),Ge.headers.forEach(($n,ci)=>$e.setRequestHeader($n,ci.join(","))),Ge.headers.has("Accept")||$e.setRequestHeader("Accept","application/json, text/plain, */*"),!Ge.headers.has("Content-Type")){const $n=Ge.detectContentTypeHeader();null!==$n&&$e.setRequestHeader("Content-Type",$n)}if(Ge.responseType){const $n=Ge.responseType.toLowerCase();$e.responseType="json"!==$n?$n:"text"}const pt=Ge.serializeBody();let lt=null;const jt=()=>{if(null!==lt)return lt;const $n=$e.statusText||"OK",ci=new Ee($e.getAllResponseHeaders()),ki=function $t(xe){return"responseURL"in xe&&xe.responseURL?xe.responseURL:/^X-Request-URL:/m.test(xe.getAllResponseHeaders())?xe.getResponseHeader("X-Request-URL"):null}($e)||Ge.url;return lt=new Vn({headers:ci,status:$e.status,statusText:$n,url:ki}),lt},hn=()=>{let{headers:$n,status:ci,statusText:ki,url:ei}=jt(),Gn=null;204!==ci&&(Gn=typeof $e.response>"u"?$e.responseText:$e.response),0===ci&&(ci=Gn?200:0);let Rr=ci>=200&&ci<300;if("json"===Ge.responseType&&"string"==typeof Gn){const uo=Gn;Gn=Gn.replace(et,"");try{Gn=""!==Gn?JSON.parse(Gn):null}catch(Fr){Gn=uo,Rr&&(Rr=!1,Gn={error:Fr,text:Gn})}}Rr?(se.next(new _n({body:Gn,headers:$n,status:ci,statusText:ki,url:ei||void 0})),se.complete()):se.error(new pi({error:Gn,headers:$n,status:ci,statusText:ki,url:ei||void 0}))},fn=$n=>{const{url:ci}=jt(),ki=new pi({error:$n,status:$e.status||0,statusText:$e.statusText||"Unknown Error",url:ci||void 0});se.error(ki)};let wn=!1;const Dn=$n=>{wn||(se.next(jt()),wn=!0);let ci={type:Zt.DownloadProgress,loaded:$n.loaded};$n.lengthComputable&&(ci.total=$n.total),"text"===Ge.responseType&&$e.responseText&&(ci.partialText=$e.responseText),se.next(ci)},jn=$n=>{let ci={type:Zt.UploadProgress,loaded:$n.loaded};$n.lengthComputable&&(ci.total=$n.total),se.next(ci)};return $e.addEventListener("load",hn),$e.addEventListener("error",fn),$e.addEventListener("timeout",fn),$e.addEventListener("abort",fn),Ge.reportProgress&&($e.addEventListener("progress",Dn),null!==pt&&$e.upload&&$e.upload.addEventListener("progress",jn)),$e.send(pt),se.next({type:Zt.Sent}),()=>{$e.removeEventListener("error",fn),$e.removeEventListener("abort",fn),$e.removeEventListener("load",hn),$e.removeEventListener("timeout",fn),Ge.reportProgress&&($e.removeEventListener("progress",Dn),null!==pt&&$e.upload&&$e.upload.removeEventListener("progress",jn)),$e.readyState!==$e.DONE&&$e.abort()}})))}static#e=this.\u0275fac=function(W){return new(W||xe)(y.KVO(F.N0))};static#t=this.\u0275prov=y.jDH({token:xe,factory:xe.\u0275fac})}return xe})();const Vt=new y.nKC(""),Ln=new y.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Jt=new y.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class En{}let He=(()=>{class xe{constructor(Ge,W,Te){this.doc=Ge,this.platform=W,this.cookieName=Te,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ge=this.doc.cookie||"";return Ge!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,F._b)(Ge,this.cookieName),this.lastCookieString=Ge),this.lastToken}static#e=this.\u0275fac=function(W){return new(W||xe)(y.KVO(F.qQ),y.KVO(y.Agw),y.KVO(Ln))};static#t=this.\u0275prov=y.jDH({token:xe,factory:xe.\u0275fac})}return xe})();function Be(xe,Ye){const Ge=xe.url.toLowerCase();if(!(0,y.WQX)(Vt)||"GET"===xe.method||"HEAD"===xe.method||Ge.startsWith("http://")||Ge.startsWith("https://"))return Ye(xe);const W=(0,y.WQX)(En).getToken(),Te=(0,y.WQX)(Jt);return null!=W&&!xe.headers.has(Te)&&(xe=xe.clone({headers:xe.headers.set(Te,W)})),Ye(xe)}var Ke=function(xe){return xe[xe.Interceptors=0]="Interceptors",xe[xe.LegacyInterceptors=1]="LegacyInterceptors",xe[xe.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",xe[xe.NoXsrfProtection=3]="NoXsrfProtection",xe[xe.JsonpSupport=4]="JsonpSupport",xe[xe.RequestsMadeViaParent=5]="RequestsMadeViaParent",xe[xe.Fetch=6]="Fetch",xe}(Ke||{});function Pn(...xe){const Ye=[Ot,Bt,qt,{provide:ue,useExisting:qt},{provide:ge,useFactory:()=>(0,y.WQX)(Je,{optional:!0})??(0,y.WQX)(Bt)},{provide:it,useValue:Be,multi:!0},{provide:Vt,useValue:!0},{provide:En,useClass:He}];for(const Ge of xe)Ye.push(...Ge.\u0275providers);return(0,y.EmA)(Ye)}function vi(xe){return function zt(xe,Ye){return{\u0275kind:xe,\u0275providers:Ye}}(Ke.Interceptors,xe.map(Ye=>({provide:it,useValue:Ye,multi:!0})))}},4438:(tn,Ne,v)=>{"use strict";function u(e,t){return Object.is(e,t)}v.d(Ne,{bc$:()=>Ng,iLQ:()=>Sy,sZ2:()=>lf,hnV:()=>M1,wjH:()=>Th,o8S:()=>Mc,BIS:()=>Pg,gRc:()=>W1,Ql9:()=>UM,OM3:()=>Eh,Ocv:()=>GM,Z63:()=>ss,aKT:()=>Ut,uvJ:()=>po,zcH:()=>fe,bkB:()=>Va,$GK:()=>zi,nKC:()=>Bn,zZn:()=>Es,_q3:()=>NE,MKu:()=>PE,xe9:()=>TE,Co$:()=>bC,Vns:()=>Sh,SKi:()=>mo,Xx1:()=>Qr,Agw:()=>Zd,PLl:()=>cf,rOR:()=>Un,sFG:()=>nw,_9s:()=>zm,czy:()=>Af,WPN:()=>Rl,kdw:()=>gr,C4Q:()=>dh,NYb:()=>RM,giA:()=>T1,RxE:()=>b1,c1b:()=>zf,gXe:()=>Ko,mal:()=>sy,Tzd:()=>MC,L39:()=>GO,EWP:()=>YO,sbv:()=>sl,Ol2:()=>Aw,w6W:()=>US,QZP:()=>CS,Rfq:()=>He,oKB:()=>Qo,WQX:()=>Di,naY:()=>tO,Hps:()=>h,QuC:()=>Yo,EmA:()=>ao,Udg:()=>KO,HJs:()=>tR,N4e:()=>sc,vPA:()=>H,O8t:()=>QO,H3F:()=>w1,H8p:()=>So,KH2:()=>dp,TgB:()=>bc,wOt:()=>Rt,WHO:()=>S1,e01:()=>A1,lNU:()=>Ft,h9k:()=>iv,$MX:()=>Ef,ZF7:()=>Yu,Kcf:()=>rb,e5t:()=>lb,UyX:()=>sb,cWb:()=>ob,osQ:()=>ab,H5H:()=>nE,Zy3:()=>kn,mq5:()=>ID,JZv:()=>et,TL3:()=>SO,LfX:()=>St,plB:()=>xc,jNT:()=>DE,zjR:()=>I1,ngT:()=>c,TL$:()=>BE,Tbb:()=>Ln,rcV:()=>Zl,nM4:()=>mC,Vt3:()=>Dw,GFd:()=>yC,OA$:()=>Ms,Jv_:()=>Ux,aNF:()=>Vx,R7$:()=>Tv,BMQ:()=>Vw,HbH:()=>dD,ZvI:()=>_D,AVh:()=>Kw,BUC:()=>yD,vxM:()=>CD,wni:()=>ux,C6U:()=>px,VBU:()=>Ss,FsC:()=>Cl,jDH:()=>wi,G2t:()=>Or,$C:()=>Ra,EJ8:()=>ka,rXU:()=>id,nrm:()=>Jw,eu8:()=>qw,bVm:()=>my,qex:()=>py,k0s:()=>fy,j41:()=>hy,RV6:()=>TD,xGo:()=>Rs,Mr5:()=>eE,KVO:()=>Ir,kS0:()=>Xl,QTQ:()=>Mv,bIt:()=>oE,lsd:()=>fx,joV:()=>Wh,qSk:()=>Su,XpG:()=>qD,nI1:()=>e1,bMT:()=>t1,i5U:()=>n1,SdG:()=>tx,NAR:()=>ex,Y8G:()=>zw,FS9:()=>lE,Mz_:()=>by,lJ4:()=>$x,eq3:()=>zx,l_i:()=>Wx,sMw:()=>Gx,ziG:()=>Kx,lV:()=>Xx,NyB:()=>mx,mGM:()=>hx,sdS:()=>gx,Dyx:()=>xD,Z7z:()=>DD,Njj:()=>bu,eBV:()=>Ad,npT:()=>rv,f$h:()=>sm,B4B:()=>om,n$t:()=>ov,Aen:()=>ic,xc7:()=>Gw,Kam:()=>sE,zvX:()=>tE,DNE:()=>Iw,C5r:()=>r1,EFF:()=>Sx,JRh:()=>uE,SpI:()=>wy,Lme:()=>dE,DH7:()=>Px,mxI:()=>fE,R50:()=>hE,GBs:()=>dx});let y=null,o=!1,L=1;const G=Symbol("SIGNAL");function ee(e){const t=y;return y=e,t}const B={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 F(e){if(o)throw new Error("");if(null===y)return;y.consumerOnSignalRead(e);const t=y.nextProducerIndex++;ae(y),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ze(e){ae(e);for(let t=0;t0}function ae(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function me(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Le(e){return void 0!==e.producerNode}function nt(e){const t=Object.create(Zt);t.computation=e;const n=()=>{if(ge(t),F(t),t.value===Dt)throw t.error;return t.value};return n[G]=t,n}const At=Symbol("UNSET"),vt=Symbol("COMPUTING"),Dt=Symbol("ERRORED"),Zt={...B,value:At,dirty:!0,error:null,equal:u,producerMustRecompute:e=>e.value===At||e.value===vt,producerRecomputeValue(e){if(e.value===vt)throw new Error("Detected cycle in computations.");const t=e.value;e.value=vt;const n=te(e);let r;try{r=e.computation()}catch(l){r=Dt,e.error=l}finally{be(e,n)}t!==At&&t!==Dt&&r!==Dt&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}};let Vn=function Fn(){throw new Error};function _n(){Vn()}let _e=null;function Ot(e,t){Re()||_n(),e.equal(e.value,t)||(e.value=t,function Je(e){e.version++,function ue(){L++}(),Ee(e),_e?.()}(e))}const Xe={...B,equal:u,value:void 0};const ie=()=>{},ve={...B,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:ie};var Ce=v(4412),dt=v(1413),un=v(8359),it=v(6354);const Ft="https://g.co/ng/security#xss";class Rt extends Error{constructor(t,n){super(kn(t,n)),this.code=t}}function kn(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function bt(e){return{toString:e}.toString()}const Q="__parameters__";function ce(e,t,n){return bt(()=>{const r=function $(e){return function(...n){if(e){const r=e(...n);for(const l in r)this[l]=r[l]}}}(t);function l(...d){if(this instanceof l)return r.apply(this,d),this;const m=new l(...d);return w.annotation=m,w;function w(A,j,Z){const Ve=A.hasOwnProperty(Q)?A[Q]:Object.defineProperty(A,Q,{value:[]})[Q];for(;Ve.length<=Z;)Ve.push(null);return(Ve[Z]=Ve[Z]||[]).push(m),A}}return n&&(l.prototype=Object.create(n.prototype)),l.prototype.ngMetadataName=e,l.annotationCls=l,l})}const et=globalThis;function Vt(e){for(let t in e)if(e[t]===Vt)return t;throw Error("Could not find renamed property on target object.")}function Mn(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ln(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ln).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ei(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const En=Vt({__forward_ref__:Vt});function He(e){return e.__forward_ref__=He,e.toString=function(){return Ln(this())},e}function Be(e){return ye(e)?e():e}function ye(e){return"function"==typeof e&&e.hasOwnProperty(En)&&e.__forward_ref__===He}function wi(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Or(e){return{providers:e.providers||[],imports:e.imports||[]}}function ft(e){return ln(e,Xn)||ln(e,ri)}function St(e){return null!==ft(e)}function ln(e,t){return e.hasOwnProperty(t)?e[t]:null}function An(e){return e&&(e.hasOwnProperty(zn)||e.hasOwnProperty(li))?e[zn]:null}const Xn=Vt({\u0275prov:Vt}),zn=Vt({\u0275inj:Vt}),ri=Vt({ngInjectableDef:Vt}),li=Vt({ngInjectorDef:Vt});class Bn{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=wi({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function hn(e){return e&&!!e.\u0275providers}const fn=Vt({\u0275cmp:Vt}),wn=Vt({\u0275dir:Vt}),Dn=Vt({\u0275pipe:Vt}),jn=Vt({\u0275mod:Vt}),$n=Vt({\u0275fac:Vt}),ci=Vt({__NG_ELEMENT_ID__:Vt}),ki=Vt({__NG_ENV_ID__:Vt});function ei(e){return"string"==typeof e?e:null==e?"":String(e)}function $o(e,t){throw new Rt(-201,!1)}var zi=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}(zi||{});let Bs;function ns(){return Bs}function oo(e){const t=Bs;return Bs=e,t}function ma(e,t,n){const r=ft(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&zi.Optional?null:void 0!==t?t:void $o()}const vo={},Lo="__NG_DI_FLAG__",Sr="ngTempTokenPath",hr=/\n/gm,no="__source";let Ii;function Ar(e){const t=Ii;return Ii=e,t}function Tr(e,t=zi.Default){if(void 0===Ii)throw new Rt(-203,!1);return null===Ii?ma(e,void 0,t):Ii.get(e,t&zi.Optional?null:void 0,t)}function Ir(e,t=zi.Default){return(ns()||Tr)(Be(e),t)}function Di(e,t=zi.Default){return Ir(e,js(t))}function js(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Hr(e){const t=[];for(let n=0;nArray.isArray(n)?Io(n,t):t(n))}function Eo(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function $s(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Co(e,t,n){let r=Ta(e,t);return r>=0?e[1|r]=n:(r=~r,function Wo(e,t,n,r){let l=e.length;if(l==t)e.push(n,r);else if(1===l)e.push(r,e[0]),e[0]=n;else{for(l--,e.push(e[l-1],e[l]);l>t;)e[l]=e[l-2],l--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function zs(e,t){const n=Ta(e,t);if(n>=0)return e[1|n]}function Ta(e,t){return function Cs(e,t,n){let r=0,l=e.length>>n;for(;l!==r;){const d=r+(l-r>>1),m=e[d<t?l=d:r=d+1}return~(l<t){m=d-1;break}}}for(;d-1){let d;for(;++ld?"":l[Z+1].toLowerCase(),2&r&&j!==Ve){if(X(r))return!1;m=!0}}}}else{if(!m&&!X(r)&&!X(A))return!1;if(m&&X(A))continue;m=!1,r=A|1&r}}return X(r)||m}function X(e){return!(1&e)}function k(e,t,n,r){if(null===t)return-1;let l=0;if(r||!n){let d=!1;for(;l-1)for(n++;n0?'="'+w+'"':"")+"]"}else 8&r?l+="."+m:4&r&&(l+=" "+m);else""!==l&&!X(m)&&(t+=_o(d,l),l=""),r=m,d=d||!X(r);n++}return""!==l&&(t+=_o(d,l)),t}function Ss(e){return bt(()=>{const t=Na(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ws.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ko.Emulated,styles:e.styles||or,_:null,schemas:e.schemas||null,tView:null,id:""};As(n);const r=e.dependencies;return n.directiveDefs=la(r,!1),n.pipeDefs=la(r,!0),n.id=function Gs(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const l of n)t=Math.imul(31,t)+l.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function Oa(e){return Wi(e)||Jr(e)}function aa(e){return null!==e}function Ra(e){return bt(()=>({type:e.type,bootstrap:e.bootstrap||or,declarations:e.declarations||or,imports:e.imports||or,exports:e.exports||or,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ho(e,t){if(null==e)return Go;const n={};for(const r in e)if(e.hasOwnProperty(r)){const l=e[r];let d,m,w=Mo.None;Array.isArray(l)?(w=l[0],d=l[1],m=l[2]??d):(d=l,m=l),t?(n[d]=w!==Mo.None?[r,w]:r,t[d]=m):n[d]=r}return n}function Cl(e){return bt(()=>{const t=Na(e);return As(t),t})}function ka(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Wi(e){return e[fn]||null}function Jr(e){return e[wn]||null}function qr(e){return e[Dn]||null}function Yo(e){const t=Wi(e)||Jr(e)||qr(e);return null!==t&&t.standalone}function fo(e,t){const n=e[jn]||null;if(!n&&!0===t)throw new Error(`Type ${Ln(e)} does not have '\u0275mod' property.`);return n}function Na(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Go,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||or,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ho(e.inputs,t),outputs:ho(e.outputs),debugInfo:null}}function As(e){e.features?.forEach(t=>t(e))}function la(e,t){if(!e)return null;const n=t?qr:Oa;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(aa)}function ao(e){return{\u0275providers:e}}function Qo(...e){return{\u0275providers:Pa(0,e),\u0275fromNgModule:!0}}function Pa(e,...t){const n=[],r=new Set;let l;const d=m=>{n.push(m)};return Io(t,m=>{const w=m;Ho(w,d,[],r)&&(l||=[],l.push(w))}),void 0!==l&&Ks(l,d),n}function Ks(e,t){for(let n=0;n{t(d,r)})}}function Ho(e,t,n,r){if(!(e=Be(e)))return!1;let l=null,d=An(e);const m=!d&&Wi(e);if(d||m){if(m&&!m.standalone)return!1;l=e}else{const A=e.ngModule;if(d=An(A),!d)return!1;l=A}const w=r.has(l);if(m){if(w)return!1;if(r.add(l),m.dependencies){const A="function"==typeof m.dependencies?m.dependencies():m.dependencies;for(const j of A)Ho(j,t,n,r)}}else{if(!d)return!1;{if(null!=d.imports&&!w){let j;r.add(l);try{Io(d.imports,Z=>{Ho(Z,t,n,r)&&(j||=[],j.push(Z))})}finally{}void 0!==j&&Ks(j,t)}if(!w){const j=so(l)||(()=>new l);t({provide:l,useFactory:j,deps:or},l),t({provide:Vo,useValue:l,multi:!0},l),t({provide:ss,useValue:()=>Ir(l),multi:!0},l)}const A=d.providers;if(null!=A&&!w){const j=e;_a(A,Z=>{t(Z,j)})}}}return l!==e&&void 0!==e.providers}function _a(e,t){for(let n of e)hn(n)&&(n=n.\u0275providers),Array.isArray(n)?_a(n,t):t(n)}const Xs=Vt({provide:String,useValue:Vt});function Ga(e){return null!==e&&"object"==typeof e&&Xs in e}function Ts(e){return"function"==typeof e}const So=new Bn(""),_s={},Oc={};let Is;function Ka(){return void 0===Is&&(Is=new jo),Is}class po{}class Xa extends po{get destroyed(){return this._destroyed}constructor(t,n,r,l){super(),this.parent=n,this.source=r,this.scopes=l,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ua(t,m=>this.processProvider(m)),this.records.set(br,ca(void 0,this)),l.has("environment")&&this.records.set(po,ca(void 0,this));const d=this.records.get(So);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(Vo,or,zi.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=ee(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ee(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Ar(this),r=oo(void 0);try{return t()}finally{Ar(n),oo(r)}}get(t,n=vo,r=zi.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(ki))return t[ki](this);r=js(r);const d=Ar(this),m=oo(void 0);try{if(!(r&zi.SkipSelf)){let A=this.records.get(t);if(void 0===A){const j=function fl(e){return"function"==typeof e||"object"==typeof e&&e instanceof Bn}(t)&&ft(t);A=j&&this.injectableDefInScope(j)?ca(ys(t),_s):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(r&zi.Self?Ka():this.parent).get(t,n=r&zi.Optional&&n===vo?null:n)}catch(w){if("NullInjectorError"===w.name){if((w[Sr]=w[Sr]||[]).unshift(Ln(t)),d)throw w;return function va(e,t,n,r){const l=e[Sr];throw t[no]&&l.unshift(t[no]),e.message=function gs(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let l=Ln(t);if(Array.isArray(t))l=t.map(Ln).join(" -> ");else if("object"==typeof t){let d=[];for(let m in t)if(t.hasOwnProperty(m)){let w=t[m];d.push(m+":"+("string"==typeof w?JSON.stringify(w):Ln(w)))}l=`{${d.join(", ")}}`}return`${n}${r?"("+r+")":""}[${l}]: ${e.replace(hr,"\n ")}`}("\n"+e.message,l,n,r),e.ngTokenPath=l,e[Sr]=null,e}(w,t,"R3InjectorError",this.source)}throw w}finally{oo(m),Ar(d)}}resolveInjectorInitializers(){const t=ee(null),n=Ar(this),r=oo(void 0);try{const d=this.get(ss,or,zi.Self);for(const m of d)m()}finally{Ar(n),oo(r),ee(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Ln(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Rt(205,!1)}processProvider(t){let n=Ts(t=Be(t))?t:Be(t&&t.provide);const r=function ur(e){return Ga(e)?ca(void 0,e.useValue):ca(bs(e),_s)}(t);if(!Ts(t)&&!0===t.multi){let l=this.records.get(n);l||(l=ca(void 0,_s,!0),l.factory=()=>Hr(l.multi),this.records.set(n,l)),n=t,l.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=ee(null);try{return n.value===_s&&(n.value=Oc,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Gr(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{ee(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Be(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function ys(e){const t=ft(e),n=null!==t?t.factory:so(e);if(null!==n)return n;if(e instanceof Bn)throw new Rt(204,!1);if(e instanceof Function)return function Rc(e){if(e.length>0)throw new Rt(204,!1);const n=function yn(e){return e&&(e[Xn]||e[ri])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Rt(204,!1)}function bs(e,t,n){let r;if(Ts(e)){const l=Be(e);return so(l)||ys(l)}if(Ga(e))r=()=>Be(e.useValue);else if(function Fa(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Hr(e.deps||[]));else if(function Zo(e){return!(!e||!e.useExisting)}(e))r=()=>Ir(Be(e.useExisting));else{const l=Be(e&&(e.useClass||e.provide));if(!function Wr(e){return!!e.deps}(e))return so(l)||ys(l);r=()=>new l(...Hr(e.deps))}return r}function ca(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ua(e,t){for(const n of e)Array.isArray(n)?ua(n,t):n&&hn(n)?ua(n.\u0275providers,t):t(n)}function sc(e,t){e instanceof Xa&&e.assertNotDestroyed();const r=Ar(e),l=oo(void 0);try{return t()}finally{Ar(r),oo(l)}}function da(){return void 0!==ns()||null!=function rs(){return Ii}()}function ir(e){if(!da())throw new Rt(-203,!1)}const xt=0,Ht=1,cn=2,Rn=3,pn=4,Tn=5,Nn=6,Yn=7,Sn=8,ui=9,di=10,On=11,Si=12,Ai=13,qi=14,Pi=15,er=16,lo=17,Er=18,sr=19,Zn=20,gi=21,tr=22,pr=23,Jn=25,Cr=1,$r=7,cs=9,kr=10;var Qs=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Qs||{});function Ur(e){return Array.isArray(e)&&"object"==typeof e[Cr]}function yo(e){return Array.isArray(e)&&!0===e[Cr]}function ws(e){return!!(4&e.flags)}function Do(e){return e.componentOffset>-1}function yi(e){return!(1&~e.flags)}function eo(e){return!!e.template}function ha(e){return!!(512&e[cn])}class qo{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function La(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function Ms(){return Dl}function Dl(e){return e.type.prototype.ngOnChanges&&(e.setInput=lc),vd}function vd(){const e=Ph(this),t=e?.current;if(t){const n=e.previous;if(n===Go)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function lc(e,t,n,r,l){const d=this.declaredInputs[r],m=Ph(e)||function mp(e,t){return e[Nh]=t}(e,{previous:Go,current:null}),w=m.current||(m.current={}),A=m.previous,j=A[d];w[d]=new qo(j&&j.currentValue,n,A===Go),La(e,t,l,n)}Ms.ngInherit=!0;const Nh="__ngSimpleChanges__";function Ph(e){return e[Nh]||null}const Za=function(e,t,n){},Fh="svg";function Mr(e){for(;Array.isArray(e);)e=e[xt];return e}function kc(e,t){return Mr(t[e])}function Os(e,t){return Mr(t[e.index])}function Nc(e,t){return e.data[t]}function cc(e,t){return e[t]}function fa(e,t){const n=t[e];return Ur(n)?n:n[xt]}function Ja(e){return!(128&~e[cn])}function Zs(e,t){return null==t?null:e[t]}function gu(e){e[lo]=0}function vu(e){1024&e[cn]||(e[cn]|=1024,Ja(e)&&Hl(e))}function Pc(e){return!!(9216&e[cn]||e[pr]?.dirty)}function bd(e){e[di].changeDetectionScheduler?.notify(8),64&e[cn]&&(e[cn]|=1024),Pc(e)&&Hl(e)}function Hl(e){e[di].changeDetectionScheduler?.notify(0);let t=qa(e);for(;null!==t&&!(8192&t[cn])&&(t[cn]|=8192,Ja(t));)t=qa(t)}function Fc(e,t){if(!(256&~e[cn]))throw new Rt(911,!1);null===e[gi]&&(e[gi]=[]),e[gi].push(t)}function qa(e){const t=e[Rn];return yo(t)?t[Rn]:t}const Gi={lFrame:Hh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Cd=!1;function _u(){return Gi.bindingsEnabled}function $l(){return null!==Gi.skipHydrationRootTNode}function gn(){return Gi.lFrame.lView}function ar(){return Gi.lFrame.tView}function Ad(e){return Gi.lFrame.contextLView=e,e[Sn]}function bu(e){return Gi.lFrame.contextLView=null,e}function _r(){let e=wu();for(;null!==e&&64===e.type;)e=e.parent;return e}function wu(){return Gi.lFrame.currentTNode}function Ba(e,t){const n=Gi.lFrame;n.currentTNode=e,n.isParent=t}function Td(){return Gi.lFrame.isParent}function Eu(){Gi.lFrame.isParent=!1}function Id(){return Cd}function Md(e){Cd=e}function Ao(){const e=Gi.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function tl(){return Gi.lFrame.bindingIndex++}function gl(e){const t=Gi.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Du(e,t){const n=Gi.lFrame;n.bindingIndex=n.bindingRootIndex=e,dc(t)}function dc(e){Gi.lFrame.currentDirectiveIndex=e}function Vh(e){const t=Gi.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function xu(){return Gi.lFrame.currentQueryIndex}function Od(e){Gi.lFrame.currentQueryIndex=e}function xp(e){const t=e[Ht];return 2===t.type?t.declTNode:1===t.type?e[Tn]:null}function Sp(e,t,n){if(n&zi.SkipSelf){let l=t,d=e;for(;!(l=l.parent,null!==l||n&zi.Host||(l=xp(d),null===l||(d=d[qi],10&l.type))););if(null===l)return!1;t=l,e=d}const r=Gi.lFrame=hc();return r.currentTNode=t,r.lView=e,!0}function jh(e){const t=hc(),n=e[Ht];Gi.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function hc(){const e=Gi.lFrame,t=null===e?null:e.child;return null===t?Hh(e):t}function Hh(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 Rd(){const e=Gi.lFrame;return Gi.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const $h=Rd;function Sl(){const e=Rd();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 es(){return Gi.lFrame.selectedIndex}function ba(e){Gi.lFrame.selectedIndex=e}function to(){const e=Gi.lFrame;return Nc(e.tView,e.selectedIndex)}function Su(){Gi.lFrame.currentNamespace=Fh}function Wh(){!function Au(){Gi.lFrame.currentNamespace=null}()}let Gh=!0;function Vc(){return Gh}function nl(e){Gh=e}function fc(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[A]<0&&(e[lo]+=65536),(w>14>16&&(3&e[cn])===t&&(e[cn]+=16384,Kh(w,d)):Kh(w,d)}const zl=-1;class Wl{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}const Hc={};class il{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=js(r);const l=this.injector.get(t,Hc,r);return l!==Hc||n===Hc?l:this.parentInjector.get(t,n,r)}}function Xh(e){return e!==zl}function $c(e){return 32767&e}function mc(e,t){let n=function Yh(e){return e>>16}(e),r=t;for(;n>0;)r=r[qi],n--;return r}let Fd=!0;function gc(e){const t=Fd;return Fd=e,t}const Ld=255,Qh=5;let Zh=0;const rl={};function ku(e,t){const n=zc(e,t);if(-1!==n)return n;const r=t[Ht];r.firstCreatePass&&(e.injectorIndex=t.length,Bd(r.data,e),Bd(t,null),Bd(r.blueprint,null));const l=Nu(e,t),d=e.injectorIndex;if(Xh(l)){const m=$c(l),w=mc(l,t),A=w[Ht].data;for(let j=0;j<8;j++)t[d+j]=w[m+j]|A[m+j]}return t[d+8]=l,d}function Bd(e,t){e.push(0,0,0,0,0,0,0,0,t)}function zc(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Nu(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,l=t;for(;null!==l;){if(r=qh(l),null===r)return zl;if(n++,l=l[qi],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return zl}function Pu(e,t,n){!function Ru(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ci)&&(r=n[ci]),null==r&&(r=n[ci]=Zh++);const l=r&Ld;t.data[e+(l>>Qh)]|=1<=0?t&Ld:Ud:t}(n);if("function"==typeof d){if(!Sp(t,e,r))return r&zi.Host?wa(l,0,r):Fu(t,n,r,l);try{let m;if(m=d(r),null!=m||r&zi.Optional)return m;$o()}finally{$h()}}else if("number"==typeof d){let m=null,w=zc(e,t),A=zl,j=r&zi.Host?t[Pi][Tn]:null;for((-1===w||r&zi.SkipSelf)&&(A=-1===w?Nu(e,t):t[w+8],A!==zl&&Wc(r,!1)?(m=t[Ht],w=$c(A),t=mc(A,t)):w=-1);-1!==w;){const Z=t[Ht];if(Jh(d,w,Z.data)){const Ve=Rp(w,t,n,m,r,j);if(Ve!==rl)return Ve}A=t[w+8],A!==zl&&Wc(r,t[Ht].data[w+8]===j)&&Jh(d,w,t)?(m=Z,w=$c(A),t=mc(A,t)):w=-1}}return l}function Rp(e,t,n,r,l,d){const m=t[Ht],w=m.data[e+8],Z=Lu(w,m,n,null==r?Do(w)&&Fd:r!=m&&!!(3&w.type),l&zi.Host&&d===w);return null!==Z?_l(t,m,Z,w):rl}function Lu(e,t,n,r,l){const d=e.providerIndexes,m=t.data,w=1048575&d,A=e.directiveStart,Z=d>>20,mt=l?w+Z:e.directiveEnd;for(let Tt=r?w:w+Z;Tt=A&&Qt.type===n)return Tt}if(l){const Tt=m[A];if(Tt&&eo(Tt)&&Tt.type===n)return A}return null}function _l(e,t,n,r){let l=e[n];const d=t.data;if(function Nd(e){return e instanceof Wl}(l)){const m=l;m.resolving&&function Fr(e,t){throw t&&t.join(" > "),new Rt(-200,e)}(function Gn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ei(e)}(d[n]));const w=gc(m.canSeeViewProviders);m.resolving=!0;const j=m.injectImpl?oo(m.injectImpl):null;Sp(e,r,zi.Default);try{l=e[n]=m.factory(void 0,d,e,r),t.firstCreatePass&&n>=r.directiveStart&&function vl(e,t,n){const{ngOnChanges:r,ngOnInit:l,ngDoCheck:d}=t.type.prototype;if(r){const m=Dl(t);(n.preOrderHooks??=[]).push(e,m),(n.preOrderCheckHooks??=[]).push(e,m)}l&&(n.preOrderHooks??=[]).push(0-e,l),d&&((n.preOrderHooks??=[]).push(e,d),(n.preOrderCheckHooks??=[]).push(e,d))}(n,d[n],t)}finally{null!==j&&oo(j),gc(w),m.resolving=!1,$h()}}return l}function Jh(e,t,n){return!!(n[t+(e>>Qh)]&1<{const t=e.prototype.constructor,n=t[$n]||Tl(t),r=Object.prototype;let l=Object.getPrototypeOf(e.prototype).constructor;for(;l&&l!==r;){const d=l[$n]||Tl(l);if(d&&d!==n)return d;l=Object.getPrototypeOf(l)}return d=>new d})}function Tl(e){return ye(e)?()=>{const t=Tl(Be(e));return t&&t()}:so(e)}function qh(e){const t=e[Ht],n=t.type;return 2===n?t.declTNode:1===n?e[Tn]:null}function Xl(e){return function Op(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let l=0;for(;lIr(br)});static#i=this.__NG_ELEMENT_ID__=-1}new Bn("").__NG_ELEMENT_ID__=e=>{const t=_r();if(null===t)throw new Rt(204,!1);if(2&t.type)return t.value;if(e&zi.Optional)return null;throw new Rt(204,!1)};function Kc(e){return e.ngOriginalError}const tf=!0;let Hu=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Ag;static#t=this.__NG_ENV_ID__=n=>n}return e})();class Wd extends Hu{constructor(t){super(),this._lView=t}onDestroy(t){return Fc(this._lView,t),()=>function ml(e,t){if(null===e[gi])return;const n=e[gi].indexOf(t);-1!==n&&e[gi].splice(n,1)}(this._lView,t)}}function Ag(){return new Wd(gn())}let bc=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ce.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=wi({token:e,providedIn:"root",factory:()=>new e})}return e})();const Va=class wc extends dt.B{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,da()&&(this.destroyRef=Di(Hu,{optional:!0})??void 0,this.pendingTasks=Di(bc,{optional:!0})??void 0)}emit(t){const n=ee(null);try{super.next(t)}finally{ee(n)}}subscribe(t,n,r){let l=t,d=n||(()=>null),m=r;if(t&&"object"==typeof t){const A=t;l=A.next?.bind(A),d=A.error?.bind(A),m=A.complete?.bind(A)}this.__isAsync&&(d=this.wrapInTimeout(d),l&&(l=this.wrapInTimeout(l)),m&&(m=this.wrapInTimeout(m)));const w=super.subscribe({next:l,error:d,complete:m});return t instanceof un.yU&&t.add(w),w}wrapInTimeout(t){return n=>{const r=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==r&&this.pendingTasks?.remove(r)})}}};function zr(...e){}function $u(e){let t,n;function r(){e=zr;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ql(e){return queueMicrotask(()=>e()),()=>{e=zr}}const ol="isAngularZone",Il=ol+"_ID";let us=0;class mo{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Va(!1),this.onMicrotaskEmpty=new Va(!1),this.onStable=new Va(!1),this.onError=new Va(!1);const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:l=!1,scheduleInRootZone:d=tf}=t;if(typeof Zone>"u")throw new Rt(908,!1);Zone.assertZonePatched();const m=this;m._nesting=0,m._outer=m._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(m._inner=m._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(m._inner=m._inner.fork(Zone.longStackTraceZoneSpec)),m.shouldCoalesceEventChangeDetection=!l&&r,m.shouldCoalesceRunChangeDetection=l,m.callbackScheduled=!1,m.scheduleInRootZone=d,function rf(e){const t=()=>{!function zu(e){function t(){$u(()=>{e.callbackScheduled=!1,Wu(e),e.isCheckStableRunning=!0,Xc(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Wu(e))}(e)},n=us++;e._inner=e._inner.fork({name:"angular",properties:{[ol]:!0,[Il]:n,[Il+n]:!0},onInvokeTask:(r,l,d,m,w,A)=>{if(function b(e){return U(e,"__ignore_ng_zone__")}(A))return r.invokeTask(d,m,w,A);try{return Yc(e),r.invokeTask(d,m,w,A)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===m.type||e.shouldCoalesceRunChangeDetection)&&t(),p(e)}},onInvoke:(r,l,d,m,w,A,j)=>{try{return Yc(e),r.invoke(d,m,w,A,j)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function M(e){return U(e,"__scheduler_tick__")}(A)&&t(),p(e)}},onHasTask:(r,l,d,m)=>{r.hasTask(d,m),l===d&&("microTask"==m.change?(e._hasPendingMicrotasks=m.microTask,Wu(e),Xc(e)):"macroTask"==m.change&&(e.hasPendingMacrotasks=m.macroTask))},onHandleError:(r,l,d,m)=>(r.handleError(d,m),e.runOutsideAngular(()=>e.onError.emit(m)),!1)})}(m)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(ol)}static assertInAngularZone(){if(!mo.isInAngularZone())throw new Rt(909,!1)}static assertNotInAngularZone(){if(mo.isInAngularZone())throw new Rt(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,l){const d=this._inner,m=d.scheduleEventTask("NgZoneEvent: "+l,t,Gd,zr,zr);try{return d.runTask(m,n,r)}finally{d.cancelTask(m)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Gd={};function Xc(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 Wu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Yc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function p(e){e._nesting--,Xc(e)}class g{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Va,this.onMicrotaskEmpty=new Va,this.onStable=new Va,this.onError=new Va}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,l){return t.apply(n,r)}}function U(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class fe{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Kc(t);for(;n&&Kc(n);)n=Kc(n);return n||null}}const De=new Bn("",{providedIn:"root",factory:()=>{const e=Di(mo),t=Di(fe);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Xt(){return Nt(_r(),gn())}function Nt(e,t){return new Ut(Os(e,t))}let Ut=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=Xt}return e})();function dn(e){return e instanceof Ut?e.nativeElement:e}function mn(){return this._results[Symbol.iterator]()}class Un{static#e=Symbol.iterator;get changes(){return this._changes??=new Va}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Un.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=mn)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const r=function lr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function oa(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rGy}),Gy="ng",cf=new Bn(""),Zd=new Bn("",{providedIn:"platform",factory:()=>"unknown"}),Ng=new Bn(""),Pg=new Bn("",{providedIn:"root",factory:()=>Ol().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let pf=()=>null;function Qp(e,t,n=!1){return pf(e,t,n)}const $g=new Bn("",{providedIn:"root",factory:()=>!1});let bf,wf;function Xu(e){return function qp(){if(void 0===bf&&(bf=null,et.trustedTypes))try{bf=et.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return bf}()?.createHTML(e)||e}function em(){if(void 0===wf&&(wf=null,et.trustedTypes))try{wf=et.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return wf}function Gg(e){return em()?.createHTML(e)||e}function tm(e){return em()?.createScriptURL(e)||e}class Zc{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ft})`}}class qy extends Zc{getTypeName(){return"HTML"}}class eb extends Zc{getTypeName(){return"Style"}}class Xg extends Zc{getTypeName(){return"Script"}}class tb extends Zc{getTypeName(){return"URL"}}class nb extends Zc{getTypeName(){return"ResourceURL"}}function Zl(e){return e instanceof Zc?e.changingThisBreaksApplicationSecurity:e}function Yu(e,t){const n=function ib(e){return e instanceof Zc&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ft})`)}return n===t}function rb(e){return new qy(e)}function ob(e){return new eb(e)}function sb(e){return new Xg(e)}function ab(e){return new tb(e)}function lb(e){return new nb(e)}class cb{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Xu(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}}class ub{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Xu(t),n}}const hb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ef(e){return(e=String(e)).match(hb)?e:"unsafe:"+e}function Jl(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function oh(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Qg=Jl("area,br,col,hr,img,wbr"),Zg=Jl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Jg=Jl("rp,rt"),im=oh(Qg,oh(Zg,Jl("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")),oh(Jg,Jl("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")),oh(Jg,Zg)),rm=Jl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qg=oh(rm,Jl("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"),Jl("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")),pb=Jl("script,style,template");class mb{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,l=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)l.push(n),n=_b(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let d=vb(n);if(d){n=d;break}n=l.pop()}return this.buf.join("")}startElement(t){const n=ev(t).toLowerCase();if(!im.hasOwnProperty(n))return this.sanitizedSomething=!0,!pb.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let l=0;l"),!0}endElement(t){const n=ev(t).toLowerCase();im.hasOwnProperty(n)&&!Qg.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(nv(t))}}function vb(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw tv(t);return t}function _b(e){const t=e.firstChild;if(t&&function gb(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw tv(t);return t}function ev(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function tv(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const yb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bb=/([^\#-~ |!])/g;function nv(e){return e.replace(/&/g,"&").replace(yb,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(bb,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Cf;function iv(e,t){let n=null;try{Cf=Cf||function Yg(e){const t=new ub(e);return function db(){try{return!!(new window.DOMParser).parseFromString(Xu(""),"text/html")}catch{return!1}}()?new cb(t):t}(e);let r=t?String(t):"";n=Cf.getInertBodyElement(r);let l=5,d=r;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,r=d,d=n.innerHTML,n=Cf.getInertBodyElement(r)}while(r!==d);return Xu((new mb).sanitizeChildren(Qu(n)||n))}finally{if(n){const r=Qu(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Qu(e){return"content"in e&&function Df(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Rl=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}(Rl||{});function rv(e){const t=sh();return t?Gg(t.sanitize(Rl.HTML,e)||""):Yu(e,"HTML")?Gg(Zl(e)):iv(Ol(),ei(e))}function om(e){const t=sh();return t?t.sanitize(Rl.URL,e)||"":Yu(e,"URL")?Zl(e):Ef(ei(e))}function sm(e){const t=sh();if(t)return tm(t.sanitize(Rl.RESOURCE_URL,e)||"");if(Yu(e,"ResourceURL"))return tm(Zl(e));throw new Rt(904,!1)}function ov(e,t,n){return function xb(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?sm:om}(t,n)(e)}function sh(){const e=gn();return e&&e[di].sanitizer}const Sb=/^>|^->||--!>|)/g,Tb="\u200b$1\u200b";function bo(e){return e instanceof Function?e():e}function na(e){return"browser"===(e??Di(Es)).get(Zd)}var Af=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Af||{});let qc;function Tf(e,t){return qc(e,t)}function ql(e,t,n,r,l){if(null!=r){let d,m=!1;yo(r)?d=r:Ur(r)&&(m=!0,r=r[xt]);const w=Mr(r);0===e&&null!==n?null==l?mm(t,n,w):eu(t,n,w,l||null,!0):1===e&&null!==n?eu(t,n,w,l||null,!0):2===e?function ah(e,t,n){e.removeChild(null,t,n)}(t,w,m):3===e&&t.destroyNode(w),null!=d&&function Wb(e,t,n,r,l){const d=n[$r];d!==Mr(n)&&ql(t,e,r,d,l);for(let w=kr;wt.replace(Ab,Tb))}(t))}function If(e,t,n){return e.createElement(t,n)}function kl(e,t){t[di].changeDetectionScheduler?.notify(9),Rf(e,t,t[On],2,null,null)}function gv(e,t){const n=e[cs],r=t[Rn];(Ur(r)||t[Pi]!==r[Rn][Pi])&&(e[cn]|=Qs.HasTransplantedViews),null===n?e[cs]=[t]:n.push(t)}function hm(e,t){const n=e[cs],r=n.indexOf(t);n.splice(r,1)}function td(e,t){if(e.length<=kr)return;const n=kr+t,r=e[n];if(r){const l=r[er];null!==l&&l!==e&&hm(l,r),t>0&&(e[n-1][pn]=r[pn]);const d=$s(e,kr+t);!function Ub(e,t){kl(e,t),t[xt]=null,t[Tn]=null}(r[Ht],r);const m=d[Er];null!==m&&m.detachView(d[Ht]),r[Rn]=null,r[pn]=null,r[cn]&=-129}return r}function Mf(e,t){if(!(256&t[cn])){const n=t[On];n.destroyNode&&Rf(e,t,n,3,null,null),function mv(e){let t=e[Si];if(!t)return fm(e[Ht],e);for(;t;){let n=null;if(Ur(t))n=t[Si];else{const r=t[kr];r&&(n=r)}if(!n){for(;t&&!t[pn]&&t!==e;)Ur(t)&&fm(t[Ht],t),t=t[Rn];null===t&&(t=e),Ur(t)&&fm(t[Ht],t),n=t&&t[pn]}t=n}}(t)}}function fm(e,t){if(256&t[cn])return;const n=ee(null);try{t[cn]&=-129,t[cn]|=256,t[pr]&>(t[pr]),function Hb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[m]():r[-m].unsubscribe(),d+=2}else n[d].call(r[n[d+1]]);null!==r&&(t[Yn]=null);const l=t[gi];if(null!==l){t[gi]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[r.directiveStart+l];if(d===Ko.None||d===Ko.Emulated)return null}return Os(r,n)}}(e,t.parent,n)}function eu(e,t,n,r,l){e.insertBefore(t,n,r,l)}function mm(e,t,n){e.appendChild(t,n)}function gm(e,t,n,r,l){null!==r?eu(e,t,n,r,l):mm(e,t,n)}function Nl(e,t){return e.parentNode(t)}function vv(e,t,n){return yv(e,t,n)}let vm,yv=function _v(e,t,n){return 40&e.type?Os(e,n):null};function Of(e,t,n,r){const l=pm(e,r,t),d=t[On],w=vv(r.parent||t[Tn],r,t);if(null!=l)if(Array.isArray(n))for(let A=0;AJn&&Iv(e,t,Jn,!1),Za(m?2:0,l),n(r,l)}finally{ba(d),Za(m?3:1,l)}}function wm(e,t,n){if(ws(t)){const r=ee(null);try{const d=t.directiveEnd;for(let m=t.directiveStart;mnull;function ru(e,t,n,r,l){for(let d in t){if(!t.hasOwnProperty(d))continue;const m=t[d];if(void 0===m)continue;r??={};let w,A=Mo.None;Array.isArray(m)?(w=m[0],A=m[1]):w=m;let j=d;if(null!==l){if(!l.hasOwnProperty(d))continue;j=l[d]}0===e?Nf(r,n,j,w,A):Nf(r,n,j,w)}return r}function Nf(e,t,n,r,l){let d;e.hasOwnProperty(n)?(d=e[n]).push(t,r):d=e[n]=[t,r],void 0!==l&&d.push(l)}function xa(e,t,n,r,l,d,m,w){const A=Os(t,n);let Z,j=t.inputs;!w&&null!=j&&(Z=j[r])?(Mm(e,n,Z,r,l),Do(t)&&function Zb(e,t){const n=fa(t,e);16&n[cn]||(n[cn]|=64)}(n,t.index)):3&t.type&&(r=function Lv(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),l=null!=m?m(l,t.value||"",r):l,d.setProperty(A,r,l))}function xm(e,t,n,r){if(_u()){const l=null===r?null:{"":-1},d=function eC(e,t){const n=e.directiveRegistry;let r=null,l=null;if(n)for(let d=0;d0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(m)!=w&&m.push(w),m.push(n,r,d)}}(e,t,r,lh(e,n,l.hostVars,Zi),l)}function Fl(e,t,n,r,l,d){const m=Os(e,t);!function Tm(e,t,n,r,l,d,m){if(null==d)e.removeAttribute(t,l,n);else{const w=null==m?ei(d):m(d,r||"",l);e.setAttribute(t,l,w,n)}}(t[On],m,d,e.value,n,r,l)}function Hv(e,t,n,r,l,d){const m=d[t];if(null!==m)for(let w=0;w0&&(n[l-1][pn]=t),r{Hl(e.lView)},consumerOnSignalRead(){this.lView[pr]=this}},h0={...B,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=qa(e.lView);for(;t&&!qv(t[Ht]);)t=qa(t);t&&vu(t)},consumerOnSignalRead(){this.lView[pr]=this}};function qv(e){return 2!==e.type}const f0=100;function sd(e,t=!0,n=0){const r=e[di],l=r.rendererFactory;l.begin?.();try{!function Lf(e,t){const n=Id();try{Md(!0),km(e,t);let r=0;for(;Pc(e);){if(r===f0)throw new Rt(103,!1);r++,km(e,1)}}finally{Md(n)}}(e,n)}catch(m){throw t&&Ff(e,m),m}finally{l.end?.(),r.inlineEffectRunner?.flush()}}function p0(e,t,n,r){const l=t[cn];if(!(256&~l))return;t[di].inlineEffectRunner?.flush(),jh(t);let w=!0,A=null,j=null;qv(e)?(j=function a0(e){return e[pr]??function l0(e){const t=Jv.pop()??Object.create(u0);return t.lView=e,t}(e)}(t),A=te(j)):null===function oe(){return y}()?(w=!1,j=function d0(e){const t=e[pr]??Object.create(h0);return t.lView=e,t}(t),A=te(j)):t[pr]&&(gt(t[pr]),t[pr]=null);try{gu(t),function Lc(e){return Gi.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Rv(e,t,n,2,r);const Z=!(3&~l);if(Z){const Tt=e.preOrderCheckHooks;null!==Tt&&jc(t,Tt,null)}else{const Tt=e.preOrderHooks;null!==Tt&&Al(t,Tt,0,null),Tu(t,0)}if(function m0(e){for(let t=Tg(e);null!==t;t=Vy(t)){if(!(t[cn]&Qs.HasTransplantedViews))continue;const n=t[cs];for(let r=0;r-1&&(td(t,r),$s(n,r))}this._attachedToViewContainer=!1}Mf(this._lView[Ht],this._lView)}onDestroy(t){Fc(this._lView,t)}markForCheck(){ch(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[cn]&=-129}reattach(){bd(this._lView),this._lView[cn]|=128}detectChanges(){this._lView[cn]|=1024,sd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Rt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=ha(this._lView),n=this._lView[er];null!==n&&!t&&hm(n,this._lView),kl(this._lView[Ht],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Rt(902,!1);this._appRef=t;const n=ha(this._lView),r=this._lView[er];null!==r&&!n&&gv(r,this._lView),bd(this._lView)}}let dh=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=y0}return e})();const v0=dh,_0=class extends v0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const l=ou(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new uh(l)}};function y0(){return Bf(_r(),gn())}function Bf(e,t){return 4&e.type?new _0(t,e,Nt(e,t)):null}let T_=()=>null;function uu(e,t){return T_(e,t)}class hd{}const wh=new Bn("",{providedIn:"root",factory:()=>!1}),I_=new Bn(""),$m=new Bn("");class q0{}class M_{}class tw{resolveComponentFactory(t){throw function ew(e){const t=Error(`No component factory found for ${Ln(e)}.`);return t.ngComponent=e,t}(t)}}class Eh{static#e=this.NULL=new tw}class zm{}let nw=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function iw(){const e=gn(),n=fa(_r().index,e);return(Ur(n)?n:e)[On]}()}return e})(),R_=(()=>{class e{static#e=this.\u0275prov=wi({token:e,providedIn:"root",factory:()=>null})}return e})();function xc(e){return!!fo(e)}function Dh(e,t,n){let r=n?e.styles:null,l=n?e.classes:null,d=0;if(null!==t)for(let m=0;m0&&Sv(e,n,d.join(" "))}}(mt,ms,Qt,r),void 0!==n&&function B_(e,t,n){const r=e.projection=[];for(let l=0;l{class e{static#e=this.__NG_ELEMENT_ID__=hw}return e})();function hw(){return H_(_r(),gn())}const U_=zf,V_=class extends U_{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Nt(this._hostTNode,this._hostLView)}get injector(){return new Po(this._hostTNode,this._hostLView)}get parentInjector(){const t=Nu(this._hostTNode,this._hostLView);if(Xh(t)){const n=mc(t,this._hostLView),r=$c(t);return new Po(n[Ht].data[r+8],n)}return new Po(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=j_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-kr}createEmbeddedView(t,n,r){let l,d;"number"==typeof r?l=r:null!=r&&(l=r.index,d=r.injector);const m=uu(this._lContainer,t.ssrId),w=t.createEmbeddedViewImpl(n||{},d,m);return this.insertImpl(w,l,su(this._hostTNode,m)),w}createComponent(t,n,r,l,d){const m=t&&!function x(e){return"function"==typeof e}(t);let w;if(m)w=n;else{const Qt=n||{};w=Qt.index,r=Qt.injector,l=Qt.projectableNodes,d=Qt.environmentInjector||Qt.ngModuleRef}const A=m?t:new xh(Wi(t)),j=r||this.parentInjector;if(!d&&null==A.ngModule){const In=(m?j:this.parentInjector).get(po,null);In&&(d=In)}const Z=Wi(A.componentType??{}),Ve=uu(this._lContainer,Z?.id??null),Tt=A.create(j,l,Ve?.firstChild??null,d);return this.insertImpl(Tt.hostView,w,su(this._hostTNode,Ve)),Tt}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const l=t._lView;if(function Bh(e){return yo(e[Rn])}(l)){const w=this.indexOf(t);if(-1!==w)this.detach(w);else{const A=l[Rn],j=new V_(A,A[Tn],A[Rn]);j.detach(j.indexOf(t))}}const d=this._adjustIndex(n),m=this._lContainer;return rd(m,l,d,r),t.attachToViewContainerRef(),Eo(Xm(m),d,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=j_(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=td(this._lContainer,n);r&&($s(Xm(this._lContainer),n),Mf(r[Ht],r))}detach(t){const n=this._adjustIndex(t,-1),r=td(this._lContainer,n);return r&&null!=$s(Xm(this._lContainer),n)?new uh(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function j_(e){return e[8]}function Xm(e){return e[8]||(e[8]=[])}function H_(e,t){let n;const r=t[e.index];return yo(r)?n=r:(n=$v(r,t,null,e),t[e.index]=n,Pf(t,n)),$_(n,t,e,r),new V_(n,e,t)}let $_=function W_(e,t,n,r){if(e[$r])return;let l;l=8&n.type?Mr(r):function fw(e,t){const n=e[On],r=n.createComment(""),l=Os(t,e);return eu(n,Nl(n,l),r,function $b(e,t){return e.nextSibling(t)}(n,l),!1),r}(t,n),e[$r]=l},Ym=()=>!1;class Qm{constructor(t){this.queryList=t,this.matches=null}clone(){return new Qm(this.queryList)}setDirty(){this.queryList.setDirty()}}class Zm{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,l=[];for(let d=0;dt.trim())}(t):t}}class Jm{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r0)r.push(m[w/2]);else{const j=d[w+1],Z=t[-A];for(let Ve=kr;Ve(F(t),t.value);return n[G]=t,n}(e),r=n[G];return t?.equal&&(r.equal=t.equal),n.set=l=>Ot(r,l),n.update=l=>function Pe(e,t){Re()||_n(),Ot(e,t(e.value))}(r,l),n.asReadonly=re.bind(n),n}function re(){const e=this[G];if(void 0===e.readonlyFn){const t=()=>this();t[G]=e,e.readonlyFn=t}return e.readonlyFn}function Fe(e){return h(e)&&"function"==typeof e.set}function Pt(e,t){let n;const r=nt(()=>{n._dirtyCounter();const l=function fi(e,t){const n=e._lView,r=e._queryIndex;if(void 0===n||void 0===r||4&n[cn])return t?void 0:or;const l=X_(n,r),d=s(n,r);return l.reset(d,dn),t?l.first:l._changesDetected||void 0===e._flatValue?e._flatValue=l.toArray():e._flatValue}(n,e);if(t&&void 0===l)throw new Rt(-951,!1);return l});return n=r[G],n._dirtyCounter=H(0),n._flatValue=void 0,r}function go(e,t){return function Gt(){return Pt(!0,!1)}()}const sl=(go.required=function nc(e,t){return function Hn(){return Pt(!0,!0)}()},go);function Dw(e){let t=function pC(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let l;if(eo(e))l=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Rt(903,!1);l=t.\u0275dir}if(l){if(n){r.push(l);const m=e;m.inputs=ey(e.inputs),m.inputTransforms=ey(e.inputTransforms),m.declaredInputs=ey(e.declaredInputs),m.outputs=ey(e.outputs);const w=l.hostBindings;w&&NS(e,w);const A=l.viewQuery,j=l.contentQueries;if(A&&RS(e,A),j&&kS(e,j),MS(e,l),Mn(e.outputs,l.outputs),eo(l)&&l.data.animation){const Z=e.data;Z.animation=(Z.animation||[]).concat(l.data.animation)}}const d=l.features;if(d)for(let m=0;m=0;r--){const l=e[r];l.hostVars=t+=l.hostVars,l.hostAttrs=Ds(l.hostAttrs,n=Ds(n,l.hostAttrs))}}(r)}function MS(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const l=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(l))continue;e.inputTransforms??={},e.inputTransforms[l]=t.inputTransforms[l]}}}function ey(e){return e===Go?{}:e===or?[]:e}function RS(e,t){const n=e.viewQuery;e.viewQuery=n?(r,l)=>{t(r,l),n(r,l)}:t}function kS(e,t){const n=e.contentQueries;e.contentQueries=n?(r,l,d)=>{t(r,l,d),n(r,l,d)}:t}function NS(e,t){const n=e.hostBindings;e.hostBindings=n?(r,l)=>{t(r,l),n(r,l)}:t}function mC(e){const t=n=>{const r=(Array.isArray(e)?e:e()).map(l=>"function"==typeof l?{directive:Be(l),inputs:Go,outputs:Go}:{directive:Be(l.directive),inputs:vC(l.inputs),outputs:vC(l.outputs)});null===n.hostDirectives?(n.findHostDirectiveDefs=gC,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return t.ngInherit=!0,t}function gC(e,t,n){if(null!==e.hostDirectives)for(const r of e.hostDirectives){const l=Jr(r.directive);BS(l.declaredInputs,r.inputs),gC(l,t,n),n.set(l,r),t.push(l)}}function vC(e){if(void 0===e||0===e.length)return Go;const t={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Sw extends bC{constructor(t){super(),this.moduleType=t}create(t){return new xw(this.moduleType,t,[])}}class wC extends Sh{constructor(t){super(),this.componentFactoryResolver=new P_(this),this.instance=null;const n=new Xa([...t.providers,{provide:Sh,useValue:this},{provide:Eh,useValue:this.componentFactoryResolver}],t.parent||Ka(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Aw(e,t,n=null){return new wC({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function ty(e){return!!Tw(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Tw(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Tc(e,t,n){return e[t]=n}function tg(e,t){return e[t]}function hs(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ah(e,t,n,r){const l=hs(e,t,n);return hs(e,t+1,r)||l}function Bl(e,t,n,r,l,d){const m=Ah(e,t,n,r);return Ah(e,t+2,l,d)||m}function ng(e,t,n,r,l,d,m,w,A,j){const Z=n+Jn,Ve=t.firstCreatePass?function WS(e,t,n,r,l,d,m,w,A){const j=t.consts,Z=nu(t,e,4,m||null,w||null);xm(t,n,Z,Zs(j,A)),fc(t,Z);const Ve=Z.tView=Dm(2,Z,r,l,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,j,null);return null!==t.queries&&(t.queries.template(t,Z),Ve.queries=t.queries.embeddedTView(Z)),Z}(Z,t,e,r,l,d,m,w,A):t.data[Z];Ba(Ve,!1);const mt=EC(t,e,Ve,n);Vc()&&Of(t,e,mt,Ve),Vr(mt,e);const Tt=$v(mt,e,mt,Ve);return e[Z]=Tt,Pf(e,Tt),function z_(e,t,n){return Ym(e,t,n)}(Tt,Ve,e),yi(Ve)&&Em(t,e,Ve),null!=A&&Cm(e,Ve,j),Ve}function Iw(e,t,n,r,l,d,m,w){const A=gn(),j=ar();return ng(A,j,e,t,n,r,l,Zs(j.consts,d),m,w),Iw}let EC=function CC(e,t,n,r){return nl(!0),t[On].createComment("")};var Th=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Th||{});let IC=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static#e=this.\u0275prov=wi({token:e,providedIn:"root",factory:()=>new e})}return e})();class og{constructor(){this.ngZone=Di(mo),this.scheduler=Di(hd),this.errorHandler=Di(fe,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static#e=this.PHASES=[Th.EarlyRead,Th.Write,Th.MixedReadWrite,Th.Read];execute(){this.executing=!0;for(const t of og.PHASES)for(const n of this.sequences)if(!n.erroredOrDestroyed&&n.hooks[t])try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(const t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static#t=this.\u0275prov=wi({token:og,providedIn:"root",factory:()=>new og})}class YS{constructor(t,n,r,l){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=l?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function MC(e,t){!t?.injector&&ir();const n=t?.injector??Di(Es);return na(n)?(c("NgAfterRender"),OC(e,n,t,!1)):RC}function sy(e,t){!t?.injector&&ir();const n=t?.injector??Di(Es);return na(n)?(c("NgAfterNextRender"),OC(e,n,t,!0)):RC}function OC(e,t,n,r){const l=t.get(IC);l.impl??=t.get(og);const d=n?.phase??Th.MixedReadWrite,m=!0!==n?.manualCleanup?t.get(Hu):null,w=new YS(l.impl,function QS(e,t){if(e instanceof Function){const n=[void 0,void 0,void 0,void 0];return n[t]=e,n}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,d),r,m);return l.impl.register(w),w}const RC={destroy(){}};function Vw(e,t,n,r){const l=gn();return hs(l,tl(),t)&&(ar(),Fl(to(),l,e,t,n,r)),Vw}function tp(e,t,n,r){return hs(e,tl(),n)?t+ei(n)+r:Zi}function np(e,t,n,r,l,d){const w=Ah(e,function el(){return Gi.lFrame.bindingIndex}(),n,l);return gl(2),w?t+ei(n)+r+ei(l)+d:Zi}function cy(e,t){return e<<17|t<<2}function md(e){return e>>17&32767}function jw(e){return 2|e}function Mh(e){return(131068&e)>>2}function Hw(e,t){return-131069&e|t<<2}function $w(e){return 1|e}function rD(e,t,n,r){const l=e[n+1],d=null===t;let m=r?md(l):Mh(l),w=!1;for(;0!==m&&(!1===w||d);){const j=e[m+1];RA(e[m],t)&&(w=!0,e[m+1]=r?$w(j):jw(j)),m=r?md(j):Mh(j)}w&&(e[n+1]=r?jw(l):$w(l))}function RA(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ta(e,t)>=0}const Fs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function oD(e){return e.substring(Fs.key,Fs.keyEnd)}function kA(e){return e.substring(Fs.value,Fs.valueEnd)}function sD(e,t){const n=Fs.textEnd;return n===t?-1:(t=Fs.keyEnd=function FA(e,t,n){for(;t32;)t++;return t}(e,Fs.key=t,n),cp(e,t,n))}function aD(e,t){const n=Fs.textEnd;let r=Fs.key=cp(e,t,n);return n===r?-1:(r=Fs.keyEnd=function LA(e,t,n){let r;for(;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=cD(e,r,n),r=Fs.value=cp(e,r,n),r=Fs.valueEnd=function BA(e,t,n){let r=-1,l=-1,d=-1,m=t,w=m;for(;m32&&(w=m),d=l,l=r,r=-33&A}return w}(e,r,n),cD(e,r,n))}function lD(e){Fs.key=0,Fs.keyEnd=0,Fs.value=0,Fs.valueEnd=0,Fs.textEnd=e.length}function cp(e,t,n){for(;t=0;n=aD(t,n))pD(e,oD(t),kA(t))}function dD(e){oc(WA,Ic,e,!0)}function Ic(e,t){for(let n=function NA(e){return lD(e),sD(e,cp(e,0,Fs.textEnd))}(t);n>=0;n=sD(t,n))Co(e,oD(t),!0)}function rc(e,t,n,r){const l=gn(),d=ar(),m=gl(2);d.firstUpdatePass&&fD(d,e,m,r),t!==Zi&&hs(l,m,t)&&mD(d,d.data[es()],l,l[On],e,l[m+1]=function KA(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Ln(Zl(e)))),e}(t,n),r,m)}function oc(e,t,n,r){const l=ar(),d=gl(2);l.firstUpdatePass&&fD(l,null,d,r);const m=gn();if(n!==Zi&&hs(m,d,n)){const w=l.data[es()];if(vD(w,r)&&!hD(l,d)){let A=r?w.classesWithoutHost:w.stylesWithoutHost;null!==A&&(n=Ei(A,n||"")),Ww(l,w,m,n,r)}else!function GA(e,t,n,r,l,d,m,w){l===Zi&&(l=or);let A=0,j=0,Z=0=e.expandoStartIndex}function fD(e,t,n,r){const l=e.data;if(null===l[n+1]){const d=l[es()],m=hD(e,n);vD(d,r)&&null===t&&!m&&(t=!1),t=function VA(e,t,n,r){const l=Vh(e);let d=r?t.residualClasses:t.residualStyles;if(null===l)0===(r?t.classBindings:t.styleBindings)&&(n=ag(n=Xw(null,e,t,n,r),t.attrs,r),d=null);else{const m=t.directiveStylingLast;if(-1===m||e[m]!==l)if(n=Xw(l,e,t,n,r),null===d){let A=function jA(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Mh(r))return e[md(r)]}(e,t,r);void 0!==A&&Array.isArray(A)&&(A=Xw(null,e,t,A[1],r),A=ag(A,t.attrs,r),function HA(e,t,n,r){e[md(n?t.classBindings:t.styleBindings)]=r}(e,t,r,A))}else d=function $A(e,t,n){let r;const l=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(j=!0)):Z=n,l)if(0!==A){const mt=md(e[w+1]);e[r+1]=cy(mt,w),0!==mt&&(e[mt+1]=Hw(e[mt+1],r)),e[w+1]=function TA(e,t){return 131071&e|t<<17}(e[w+1],r)}else e[r+1]=cy(w,0),0!==w&&(e[w+1]=Hw(e[w+1],r)),w=r;else e[r+1]=cy(A,0),0===w?w=r:e[A+1]=Hw(e[A+1],r),A=r;j&&(e[r+1]=jw(e[r+1])),rD(e,Z,r,!0),rD(e,Z,r,!1),function OA(e,t,n,r,l){const d=l?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&Ta(d,t)>=0&&(n[r+1]=$w(n[r+1]))}(t,Z,e,r,d),m=cy(w,A),d?t.classBindings=m:t.styleBindings=m}(l,d,t,n,m,r)}}function Xw(e,t,n,r,l){let d=null;const m=n.directiveEnd;let w=n.directiveStylingLast;for(-1===w?w=n.directiveStart:w++;w0;){const A=e[l],j=Array.isArray(A),Z=j?A[1]:A,Ve=null===Z;let mt=n[l+1];mt===Zi&&(mt=Ve?or:void 0);let Tt=Ve?zs(mt,r):Z===r?mt:void 0;if(j&&!uy(Tt)&&(Tt=zs(A,r)),uy(Tt)&&(w=Tt,m))return w;const Qt=e[l+1];l=m?md(Qt):Mh(Qt)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(w=zs(A,r))}return w}function uy(e){return void 0!==e}function vD(e,t){return!!(e.flags&(t?8:16))}function _D(e,t,n){oc(Co,Ic,tp(gn(),e,t,n),!0)}function yD(){return gn()[Pi][Sn]}class nT{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),l=Math.max(t,n),d=this.detach(l);if(l-r>1){const m=this.detach(r);this.attach(r,d),this.attach(l,m)}else this.attach(r,d)}move(t,n){this.attach(n,this.detach(t))}}function Yw(e,t,n,r,l){return e===n&&Object.is(t,r)?1:Object.is(l(e,t),l(n,r))?-1:0}function Qw(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function bD(e,t,n,r,l){if(Qw(e,t,r,n(r,l)))e.updateValue(r,l);else{const d=e.create(r,l);e.attach(r,d)}}function wD(e,t,n,r){const l=new Set;for(let d=t;d<=n;d++)l.add(r(d,e.at(d)));return l}class ED{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const l=this._vMap;for(;l.has(r);)r=l.get(r);l.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),void 0!==this._vMap){const l=this._vMap;for(;l.has(r);)r=l.get(r),t(r,n)}}}function CD(e,t){c("NgControlFlow");const n=gn(),r=tl(),l=n[r]!==Zi?n[r]:-1,d=-1!==l?dy(n,Jn+l):void 0;if(hs(n,r,e)){const w=ee(null);try{if(void 0!==d&&Rm(d,0),-1!==e){const A=Jn+e,j=dy(n,A),Z=Zw(n[Ht],A),Ve=uu(j,Z.tView.ssrId);rd(j,ou(n,Z,t,{dehydratedView:Ve}),0,su(Z,Ve))}}finally{ee(w)}}else if(void 0!==d){const w=Qv(d,0);void 0!==w&&(w[Sn]=t)}}class rT{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-kr}}class aT{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}function DD(e,t,n,r,l,d,m,w,A,j,Z,Ve,mt){c("NgControlFlow");const Tt=gn(),Qt=ar(),In=void 0!==A,Qn=gn(),si=w?m.bind(Qn[Pi][Sn]):m,xn=new aT(In,si);Qn[Jn+e]=xn,ng(Tt,Qt,e+1,t,n,r,l,Zs(Qt.consts,d)),In&&ng(Tt,Qt,e+2,A,j,Z,Ve,Zs(Qt.consts,mt))}class lT extends nT{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-kr}at(t){return this.getLView(t)[Sn].$implicit}attach(t,n){const r=n[Nn];this.needsIndexUpdate||=t!==this.length,rd(this.lContainer,n,t,su(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function cT(e,t){return td(e,t)}(this.lContainer,t)}create(t,n){const r=uu(this.lContainer,this.templateTNode.tView.ssrId),l=ou(this.hostLView,this.templateTNode,new rT(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),l}destroy(t){Mf(t[Ht],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Sn].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(A)})}(A,e,d.trackByFn),A.updateIndexes(),d.hasEmptyBlock){const j=tl(),Z=0===A.length;if(hs(r,j,Z)){const Ve=n+2,mt=dy(r,Ve);if(Z){const Tt=Zw(l,Ve),Qt=uu(mt,Tt.tView.ssrId);rd(mt,ou(r,Tt,void 0,{dehydratedView:Qt}),0,su(Tt,Qt))}else Rm(mt,0)}}}finally{ee(t)}}function dy(e,t){return e[t]}function Zw(e,t){return Nc(e,t)}function hy(e,t,n,r){const l=gn(),d=ar(),m=Jn+e,w=l[On],A=d.firstCreatePass?function dT(e,t,n,r,l,d){const m=t.consts,A=nu(t,e,2,r,Zs(m,l));return xm(t,n,A,Zs(m,d)),null!==A.attrs&&Dh(A,A.attrs,!1),null!==A.mergedAttrs&&Dh(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(m,d,l,t,n,r):d.data[m],j=SD(d,l,A,w,t,e);l[m]=j;const Z=yi(A);return Ba(A,!0),Av(w,j,A),!function Kf(e){return!(32&~e.flags)}(A)&&Vc()&&Of(d,l,j,A),0===function Cg(){return Gi.lFrame.elementDepthCount}()&&Vr(j,l),function Dd(){Gi.lFrame.elementDepthCount++}(),Z&&(Em(d,l,A),wm(d,A,l)),null!==r&&Cm(l,A),hy}function fy(){let e=_r();Td()?Eu():(e=e.parent,Ba(e,!1));const t=e;(function bp(e){return Gi.skipHydrationRootTNode===e})(t)&&function yu(){Gi.skipHydrationRootTNode=null}(),function xd(){Gi.lFrame.elementDepthCount--}();const n=ar();return n.firstCreatePass&&(fc(n,e),ws(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Ap(e){return!!(8&e.flags)}(t)&&Ww(n,t,gn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Ou(e){return!!(16&e.flags)}(t)&&Ww(n,t,gn(),t.stylesWithoutHost,!1),fy}function Jw(e,t,n,r){return hy(e,t,n,r),fy(),Jw}let SD=(e,t,n,r,l,d)=>(nl(!0),If(r,l,function Uc(){return Gi.lFrame.currentNamespace}()));function py(e,t,n){const r=gn(),l=ar(),d=e+Jn,m=l.firstCreatePass?function pT(e,t,n,r,l){const d=t.consts,m=Zs(d,r),w=nu(t,e,8,"ng-container",m);return null!==m&&Dh(w,m,!0),xm(t,n,w,Zs(d,l)),null!==t.queries&&t.queries.elementStart(t,w),w}(d,l,r,t,n):l.data[d];Ba(m,!0);const w=AD(l,r,m,e);return r[d]=w,Vc()&&Of(l,r,w,m),Vr(w,r),yi(m)&&(Em(l,r,m),wm(l,m,r)),null!=n&&Cm(r,m),py}function my(){let e=_r();const t=ar();return Td()?Eu():(e=e.parent,Ba(e,!1)),t.firstCreatePass&&(fc(t,e),ws(e)&&t.queries.elementEnd(e)),my}function qw(e,t,n){return py(e,t,n),my(),qw}let AD=(e,t,n,r)=>(nl(!0),xo(t[On],""));function TD(){return gn()}function eE(e,t,n){const r=gn();return hs(r,tl(),t)&&xa(ar(),to(),r,e,t,r[On],n,!0),eE}function tE(e,t,n){const r=gn();if(hs(r,tl(),t)){const d=ar(),m=to();xa(d,m,r,e,t,Kv(Vh(d.data),m,r),n,!0)}return tE}const Oh=void 0;var _T=["en",[["a","p"],["AM","PM"],Oh],[["AM","PM"],Oh,Oh],[["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"]],Oh,[["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"]],Oh,[["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}",Oh,"{1} 'at' {0}",Oh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function vT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let up={};function nE(e){const t=function yT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=MD(t);if(n)return n;const r=t.split("-")[0];if(n=MD(r),n)return n;if("en"===r)return _T;throw new Rt(701,!1)}function ID(e){return nE(e)[dp.PluralCase]}function MD(e){return e in up||(up[e]=et.ng&&et.ng.common&&et.ng.common.locales&&et.ng.common.locales[e]),up[e]}var dp=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}(dp||{});const gy="en-US";let OD=gy,YD=(e,t,n)=>{};function oE(e,t,n,r){const l=gn(),d=ar(),m=_r();return aE(d,l,l[On],m,e,t,r),oE}function sE(e,t){const n=_r(),r=gn(),l=ar();return aE(l,r,Kv(Vh(l.data),n,r),n,e,t),sE}function aE(e,t,n,r,l,d,m){const w=yi(r),j=e.firstCreatePass&&Gv(e),Z=t[Sn],Ve=Wv(t);let mt=!0;if(3&r.type||m){const In=Os(r,t),Qn=m?m(In):In,si=Ve.length,xn=m?Nr=>m(Mr(Nr[r.index])):r.index;let rr=null;if(!m&&w&&(rr=function aI(e,t,n,r){const l=e.cleanup;if(null!=l)for(let d=0;dA?w[A]:null}"string"==typeof m&&(d+=2)}return null}(e,t,l,r.index)),null!==rr)(rr.__ngLastListenerFn__||rr).__ngNextListenerFn__=d,rr.__ngLastListenerFn__=d,mt=!1;else{d=JD(r,t,Z,d),YD(In,l,d);const Nr=n.listen(Qn,l,d);Ve.push(d,Nr),j&&j.push(l,xn,si,si+1)}}else d=JD(r,t,Z,d);const Tt=r.outputs;let Qt;if(mt&&null!==Tt&&(Qt=Tt[l])){const In=Qt.length;if(In)for(let Qn=0;Qn-1?fa(e.index,t):t,5);let w=ZD(t,n,r,d),A=l.__ngNextListenerFn__;for(;A;)w=ZD(t,n,A,d)&&w,A=A.__ngNextListenerFn__;return w}}function qD(e=1){return function Bc(e){return(Gi.lFrame.contextLView=function Js(e,t){for(;e>0;)t=t[qi],e--;return t}(e,Gi.lFrame.contextLView))[Sn]}(e)}function lI(e,t){let n=null;const r=function yt(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let l=0;ln._dirtyCounter.update(r=>r+1))}(t,qm(e,n,r,l))}function mx(e=1){Od(xu()+e)}function gx(e){return cc(function Ua(){return Gi.lFrame.contextLView}(),Jn+e)}function Sx(e,t=""){const n=gn(),r=ar(),l=e+Jn,d=r.firstCreatePass?nu(r,l,1,t,null):r.data[l],m=Ax(r,n,d,t,e);n[l]=m,Vc()&&Of(r,n,m,d),Ba(d,!1)}let Ax=(e,t,n,r,l)=>(nl(!0),function qu(e,t){return e.createText(t)}(t[On],r));function uE(e){return wy("",e,""),uE}function wy(e,t,n){const r=gn(),l=tp(r,e,t,n);return l!==Zi&&Ll(r,es(),l),wy}function dE(e,t,n,r,l){const d=gn(),m=np(d,e,t,n,r,l);return m!==Zi&&Ll(d,es(),m),dE}function hE(e,t,n){Fe(t)&&(t=t());const r=gn();return hs(r,tl(),t)&&xa(ar(),to(),r,e,t,r[On],n,!1),hE}function Px(e,t){const n=Fe(e);return n&&e.set(t),n}function fE(e,t){const n=gn(),r=ar(),l=_r();return aE(r,n,n[On],l,e,t),fE}function pE(e,t,n,r,l){if(e=Be(e),Array.isArray(e))for(let d=0;d>20;if(Ts(e)||!e.multi){const Tt=new Wl(j,l,id),Qt=gE(A,t,l?Z:Z+mt,Ve);-1===Qt?(Pu(ku(w,m),d,A),mE(d,e,t.length),t.push(A),w.directiveStart++,w.directiveEnd++,l&&(w.providerIndexes+=1048576),n.push(Tt),m.push(Tt)):(n[Qt]=Tt,m[Qt]=Tt)}else{const Tt=gE(A,t,Z+mt,Ve),Qt=gE(A,t,Z,Z+mt),Qn=Qt>=0&&n[Qt];if(l&&!Qn||!l&&!(Tt>=0&&n[Tt])){Pu(ku(w,m),d,A);const si=function AI(e,t,n,r,l){const d=new Wl(e,n,id);return d.multi=[],d.index=t,d.componentProviders=0,Bx(d,l,r&&!n),d}(l?SI:xI,n.length,l,r,j);!l&&Qn&&(n[Qt].providerFactory=si),mE(d,e,t.length,0),t.push(A),w.directiveStart++,w.directiveEnd++,l&&(w.providerIndexes+=1048576),n.push(si),m.push(si)}else mE(d,e,Tt>-1?Tt:Qt,Bx(n[l?Qt:Tt],j,!l&&r));!l&&r&&Qn&&n[Qt].componentProviders++}}}function mE(e,t,n,r){const l=Ts(t),d=function hl(e){return!!e.useClass}(t);if(l||d){const A=(d?Be(t.useClass):t).prototype.ngOnDestroy;if(A){const j=e.destroyHooks||(e.destroyHooks=[]);if(!l&&t.multi){const Z=j.indexOf(n);-1===Z?j.push(n,[r,A]):j[Z+1].push(r,A)}else j.push(n,A)}}}function Bx(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function gE(e,t,n,r){for(let l=n;l{n.providersResolver=(r,l)=>function DI(e,t,n){const r=ar();if(r.firstCreatePass){const l=eo(e);pE(n,r.data,r.blueprint,l,!0),pE(t,r.data,r.blueprint,l,!1)}}(r,l?l(e):e,t)}}let TI=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=Pa(0,n.type),l=r.length>0?Aw([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,l)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=wi({token:e,providedIn:"environment",factory:()=>new e(Ir(po))})}return e})();function Vx(e){c("NgStandalone"),e.getStandaloneInjector=t=>t.get(TI).getOrCreateStandaloneInjector(e)}function $x(e,t,n){const r=Ao()+e,l=gn();return l[r]===Zi?Tc(l,r,n?t.call(n):t()):tg(l,r)}function zx(e,t,n,r){return Yx(gn(),Ao(),e,t,n,r)}function Wx(e,t,n,r,l){return Qx(gn(),Ao(),e,t,n,r,l)}function Gx(e,t,n,r,l,d){return function Zx(e,t,n,r,l,d,m,w){const A=t+n;return function ny(e,t,n,r,l){const d=Ah(e,t,n,r);return hs(e,t+2,l)||d}(e,A,l,d,m)?Tc(e,A+3,w?r.call(w,l,d,m):r(l,d,m)):fg(e,A+3)}(gn(),Ao(),e,t,n,r,l,d)}function Kx(e,t,n,r,l,d,m){return function Jx(e,t,n,r,l,d,m,w,A){const j=t+n;return Bl(e,j,l,d,m,w)?Tc(e,j+4,A?r.call(A,l,d,m,w):r(l,d,m,w)):fg(e,j+4)}(gn(),Ao(),e,t,n,r,l,d,m)}function Xx(e,t,n,r,l,d,m,w,A,j,Z){const Ve=Ao()+e,mt=gn(),Tt=Bl(mt,Ve,n,r,l,d);return Bl(mt,Ve+4,m,w,A,j)||Tt?Tc(mt,Ve+8,Z?t.call(Z,n,r,l,d,m,w,A,j):t(n,r,l,d,m,w,A,j)):tg(mt,Ve+8)}function fg(e,t){const n=e[t];return n===Zi?void 0:n}function Yx(e,t,n,r,l,d){const m=t+n;return hs(e,m,l)?Tc(e,m+1,d?r.call(d,l):r(l)):fg(e,m+1)}function Qx(e,t,n,r,l,d,m){const w=t+n;return Ah(e,w,l,d)?Tc(e,w+2,m?r.call(m,l,d):r(l,d)):fg(e,w+2)}function e1(e,t){const n=ar();let r;const l=e+Jn;n.firstCreatePass?(r=function FI(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[l]=r,r.onDestroy&&(n.destroyHooks??=[]).push(l,r.onDestroy)):r=n.data[l];const d=r.factory||(r.factory=so(r.type)),w=oo(id);try{const A=gc(!1),j=d();return gc(A),function cE(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,gn(),l,j),j}finally{oo(w)}}function t1(e,t,n){const r=e+Jn,l=gn(),d=cc(l,r);return pg(l,r)?Yx(l,Ao(),t,d.transform,n,d):d.transform(n)}function n1(e,t,n,r){const l=e+Jn,d=gn(),m=cc(d,l);return pg(d,l)?Qx(d,Ao(),t,m.transform,n,r,m):m.transform(n,r)}function pg(e,t){return e[Ht].data[t].pure}function r1(e,t){return Bf(e,t)}class b1{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let w1=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const S1=new Bn(""),A1=new Bn("");let CE,RM=(()=>{class e{constructor(n,r,l){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,CE||(function kM(e){CE=e}(l),l.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{mo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,l){let d=-1;r&&r>0&&(d=setTimeout(()=>{this._callbacks=this._callbacks.filter(m=>m.timeoutId!==d),n()},r)),this._callbacks.push({doneCb:n,timeoutId:d,updateCb:l})}whenStable(n,r,l){if(l&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,l),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,l){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(Ir(mo),Ir(T1),Ir(A1))};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac})}return e})(),T1=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return CE?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function DE(e){return!!e&&"function"==typeof e.then}function I1(e){return!!e&&"function"==typeof e.subscribe}const M1=new Bn("");let O1=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=Di(M1,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const l of this.appInits){const d=l();if(DE(d))n.push(d);else if(I1(d)){const m=new Promise((w,A)=>{d.subscribe({complete:w,error:A})});n.push(m)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(l=>{this.reject(l)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Sy=new Bn("");let Mc=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Di(De),this.afterRenderManager=Di(IC),this.zonelessEnabled=Di(wh),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new dt.B,this.afterTick=new dt.B,this.componentTypes=[],this.components=[],this.isStable=Di(bc).hasPendingTasks.pipe((0,it.T)(n=>!n)),this._injector=Di(po)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:l=>{l&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){const l=n instanceof M_;if(!this._injector.get(O1).done)throw!l&&Yo(n),new Rt(405,!1);let m;m=l?n:this._injector.get(Eh).resolveComponentFactory(n),this.componentTypes.push(m.componentType);const w=function NM(e){return e.isBoundToModule}(m)?void 0:this._injector.get(Sh),j=m.create(Es.NULL,[],r||m.selector,w),Z=j.location.nativeElement,Ve=j.injector.get(S1,null);return Ve?.registerApplication(Z),j.onDestroy(()=>{this.detachView(j.hostView),Ay(this.components,j),Ve?.unregisterApplication(Z)}),this._loadComponent(j),j}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new Rt(101,!1);const n=ee(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,ee(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(zm,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;0!==this.dirtyFlags&&r++<10;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:l,notifyErrorHandler:d}of this._views)LM(l,d,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else n?.begin?.(),n?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:n})=>Pc(n))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Ay(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Sy,[]);[...this._bootstrapListeners,...r].forEach(l=>l(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ay(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Rt(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ay(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function LM(e,t,n,r){(n||Pc(e))&&sd(e,t,n&&!r?0:1)}class BM{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let UM=(()=>{class e{compileModuleSync(n){return new Sw(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),d=bo(fo(n).declarations).reduce((m,w)=>{const A=Wi(w);return A&&m.push(new xh(A)),m},[]);return new BM(r,d)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),HM=(()=>{class e{constructor(){this.zone=Di(mo),this.changeDetectionScheduler=Di(hd),this.applicationRef=Di(Mc)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function xE({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new mo({...SE(),scheduleInRootZone:n}),[{provide:mo,useFactory:e},{provide:ss,multi:!0,useFactory:()=>{const r=Di(HM,{optional:!0});return()=>r.initialize()}},{provide:ss,multi:!0,useFactory:()=>{const r=Di(zM);return()=>{r.initialize()}}},!0===t?{provide:I_,useValue:!0}:[],{provide:$m,useValue:n??tf}]}function SE(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let zM=(()=>{class e{constructor(){this.subscription=new un.yU,this.initialized=!1,this.zone=Di(mo),this.pendingTasks=Di(bc)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{mo.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{mo.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vg=(()=>{class e{constructor(){this.appRef=Di(Mc),this.taskService=Di(bc),this.ngZone=Di(mo),this.zonelessEnabled=Di(wh),this.disableScheduling=Di(I_,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new un.yU,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Il):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(Di($m,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof g||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&5===n)return;switch(n){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?Ql:$u;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Il+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ql(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=wi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const TE=new Bn("",{providedIn:"root",factory:()=>Di(TE,zi.Optional|zi.SkipSelf)||function WM(){return typeof $localize<"u"&&$localize.locale||gy}()}),GM=new Bn("",{providedIn:"root",factory:()=>"USD"}),Iy=new Bn("");function My(e){return!e.moduleRef}let gd=null;function tO(){return!1}let W1=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=nO}return e})();function nO(e){return function iO(e,t,n){if(Do(e)&&!n){const r=fa(e.index,t);return new uh(r,r)}return 175&e.type?new uh(t[Pi],t):null}(_r(),gn(),!(16&~e))}class Y1{constructor(){}supports(t){return ty(t)}create(t){return new lO(t)}}const aO=(e,t)=>t;class lO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||aO}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,l=0,d=null;for(;n||r;){const m=!r||n&&n.currentIndex{m=this._trackByFn(l,w),null!==n&&Object.is(n.trackById,m)?(r&&(n=this._verifyReinsertion(n,w,m,l)),Object.is(n.item,w)||this._addIdentityChange(n,w)):(n=this._mismatch(n,w,m,l),r=!0),n=n._next,l++}),this.length=l;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,l){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,d,l)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,l))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,d,l)):t=this._addAfter(new cO(n,r),d,l),t}_verifyReinsertion(t,n,r,l){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==d?t=this._reinsertAfter(d,t._prev,l):t.currentIndex!=l&&(t.currentIndex=l,this._addToMoves(t,l)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const l=t._prevRemoved,d=t._nextRemoved;return null===l?this._removalsHead=d:l._nextRemoved=d,null===d?this._removalsTail=l:d._prevRemoved=l,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const l=null===n?this._itHead:n._next;return t._next=l,t._prev=n,null===l?this._itTail=t:l._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Q1),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Q1),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class cO{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class uO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Q1{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new uO,this.map.set(n,r)),r.add(t)}get(t,n){const l=this.map.get(t);return l?l.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Z1(e,t,n){const r=e.previousIndex;if(null===r)return r;let l=0;return n&&r{if(n&&n.key===l)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const d=this._getOrCreateRecordForKey(l,r);n=this._insertBeforeOrAppend(n,d)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const l=this._records.get(t);this._maybeAddToChanges(l,n);const d=l._prev,m=l._next;return d&&(d._next=m),m&&(m._prev=d),l._next=null,l._prev=null,l}const r=new hO(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class hO{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function q1(){return new NE([new Y1])}let NE=(()=>{class e{static#e=this.\u0275prov=wi({token:e,providedIn:"root",factory:q1});constructor(n){this.factories=n}static create(n,r){if(null!=r){const l=r.factories.slice();n=n.concat(l)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||q1()),deps:[[e,new gr,new Qr]]}}find(n){const r=this.factories.find(l=>l.supports(n));if(null!=r)return r;throw new Rt(901,!1)}}return e})();function eS(){return new PE([new J1])}let PE=(()=>{class e{static#e=this.\u0275prov=wi({token:e,providedIn:"root",factory:eS});constructor(n){this.factories=n}static create(n,r){if(r){const l=r.factories.slice();n=n.concat(l)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||eS()),deps:[[e,new gr,new Qr]]}}find(n){const r=this.factories.find(l=>l.supports(n));if(r)return r;throw new Rt(901,!1)}}return e})();function SO(e){try{const{rootComponent:t,appProviders:n,platformProviders:r}=e,l=function eO(e=[]){if(gd)return gd;const t=function H1(e=[],t){return Es.create({name:t,providers:[{provide:So,useValue:"platform"},{provide:Iy,useValue:new Set([()=>gd=null])},...e]})}(e);return gd=t,function R1(){!function pi(e){Vn=e}(()=>{throw new Rt(600,!1)})}(),function $1(e){e.get(cf,null)?.forEach(n=>n())}(t),t}(r),d=[xE({}),{provide:hd,useExisting:vg},...n||[]];return function U1(e){const t=My(e)?e.r3Injector:e.moduleRef.injector,n=t.get(mo);return n.run(()=>{My(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=t.get(fe,null);let l;if(n.runOutsideAngular(()=>{l=n.onError.subscribe({next:d=>{r.handleError(d)}})}),My(e)){const d=()=>t.destroy(),m=e.platformInjector.get(Iy);m.add(d),t.onDestroy(()=>{l.unsubscribe(),m.delete(d)})}else{const d=()=>e.moduleRef.destroy(),m=e.platformInjector.get(Iy);m.add(d),e.moduleRef.onDestroy(()=>{Ay(e.allPlatformModules,e.moduleRef),l.unsubscribe(),m.delete(d)})}return function FM(e,t,n){try{const r=n();return DE(r)?r.catch(l=>{throw t.runOutsideAngular(()=>e.handleError(l)),l}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(r,n,()=>{const d=t.get(O1);return d.runInitializers(),d.donePromise.then(()=>{if(function CT(e){"string"==typeof e&&(OD=e.toLowerCase().replace(/_/g,"-"))}(t.get(TE,gy)||gy),My(e)){const w=t.get(Mc);return void 0!==e.rootComponent&&w.bootstrap(e.rootComponent),w}return function ZM(e,t){const n=e.injector.get(Mc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Rt(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new wC({providers:d,parent:l,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:l,rootComponent:t})}catch(t){return Promise.reject(t)}}function GO(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function KO(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function YO(e,t){c("NgSignals");const n=nt(e);return t?.equal&&(n[G].equal=t.equal),n}function QO(e){const t=ee(null);try{return e()}finally{ee(t)}}const ZO=new Bn("",{providedIn:"root",factory:()=>Di(JO)});let JO=(()=>{class e{static#e=this.\u0275prov=wi({token:e,providedIn:"root",factory:()=>new qO})}return e})();class qO{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Di(bc),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){const n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);const r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,n]of this.queues)null===t?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(const n of t)t.delete(n),this.queuedEffectCount--,n.run()}}class eR{constructor(t,n,r,l,d,m){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=d,this.watcher=function Me(e,t,n){const r=Object.create(ve);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const l=A=>{r.cleanupFn=A};return r.ref={notify:()=>ke(r),run:()=>{if(null===r.fn)return;if(function V(){return o}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Ze(r))return;r.hasRun=!0;const A=te(r);try{r.cleanupFn(),r.cleanupFn=ie,r.fn(l)}finally{be(r,A)}},cleanup:()=>r.cleanupFn(),destroy:()=>function m(A){(function d(A){return null===A.fn&&null===A.schedule})(A)||(gt(A),A.cleanupFn(),A.fn=null,A.schedule=null,A.cleanupFn=ie)}(r),[G]:r},r.ref}(w=>this.runEffect(w),()=>this.schedule(),m),this.unregisterOnDestroy=l?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(fe,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function CS(e,t){c("NgSignals"),!t?.injector&&ir();const n=t?.injector??Di(Es),r=!0!==t?.manualCleanup?n.get(Hu):null,l=new eR(n.get(ZO),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),d=n.get(W1,null,{optional:!0});return d&&8&d._lView[cn]?(d._lView[tr]??=[]).push(l.watcher.notify):l.watcher.notify(),l}function tR(e){const t=Wi(e);if(!t)return null;const n=new xh(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},9417:(tn,Ne,v)=>{"use strict";v.d(Ne,{BC:()=>Ft,JD:()=>Hr,Q0:()=>ma,X1:()=>Ro,YN:()=>fr,YS:()=>Co,cV:()=>wn,cb:()=>Rt,cz:()=>be,hs:()=>ci,j4:()=>rs,k0:()=>je,kq:()=>P,l_:()=>no,me:()=>Re,ok:()=>Ds,qT:()=>ns,vO:()=>dt,vS:()=>Bs,xq:()=>zs,ze:()=>xs});var u=v(4438),y=v(177),o=v(6648),L=v(7468),G=v(1413),ee=v(6354);let oe=(()=>{class z{constructor(k,pe){this._renderer=k,this._elementRef=pe,this.onChange=yt=>{},this.onTouched=()=>{}}setProperty(k,pe){this._renderer.setProperty(this._elementRef.nativeElement,k,pe)}registerOnTouched(k){this.onTouched=k}registerOnChange(k){this.onChange=k}setDisabledState(k){this.setProperty("disabled",k)}static#e=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(u.sFG),u.rXU(u.aKT))};static#t=this.\u0275dir=u.FsC({type:z})}return z})(),V=(()=>{class z extends oe{static#e=this.\u0275fac=(()=>{let k;return function(yt){return(k||(k=u.xGo(z)))(yt||z)}})();static#t=this.\u0275dir=u.FsC({type:z,features:[u.Vt3]})}return z})();const P=new u.nKC(""),ue={provide:P,useExisting:(0,u.Rfq)(()=>Re),multi:!0},Ee=new u.nKC("");let Re=(()=>{class z extends oe{constructor(k,pe,yt){super(k,pe),this._compositionMode=yt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ge(){const z=(0,y.QT)()?(0,y.QT)().getUserAgent():"";return/android (\d+)/.test(z.toLowerCase())}())}writeValue(k){this.setProperty("value",k??"")}_handleInput(k){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(k)}_compositionStart(){this._composing=!0}_compositionEnd(k){this._composing=!1,this._compositionMode&&this.onChange(k)}static#e=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(Ee,8))};static#t=this.\u0275dir=u.FsC({type:z,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(pe,yt){1&pe&&u.bIt("input",function(Xi){return yt._handleInput(Xi.target.value)})("blur",function(){return yt.onTouched()})("compositionstart",function(){return yt._compositionStart()})("compositionend",function(Xi){return yt._compositionEnd(Xi.target.value)})},features:[u.Jv_([ue]),u.Vt3]})}return z})();function ke(z){return null==z||("string"==typeof z||Array.isArray(z))&&0===z.length}function te(z){return null!=z&&"number"==typeof z.length}const be=new u.nKC(""),Ze=new u.nKC(""),gt=/^(?=.{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 je{static min(X){return function qe(z){return X=>{if(ke(X.value)||ke(z))return null;const k=parseFloat(X.value);return!isNaN(k)&&k{if(ke(X.value)||ke(z))return null;const k=parseFloat(X.value);return!isNaN(k)&&k>z?{max:{max:z,actual:X.value}}:null}}(X)}static required(X){return ae(X)}static requiredTrue(X){return me(X)}static email(X){return function Le(z){return ke(z.value)||gt.test(z.value)?null:{email:!0}}(X)}static minLength(X){return function nt(z){return X=>ke(X.value)||!te(X.value)?null:X.value.lengthte(X.value)&&X.value.length>z?{maxlength:{requiredLength:z,actualLength:X.value.length}}:null}(X)}static pattern(X){return function vt(z){if(!z)return Dt;let X,k;return"string"==typeof z?(k="","^"!==z.charAt(0)&&(k+="^"),k+=z,"$"!==z.charAt(z.length-1)&&(k+="$"),X=new RegExp(k)):(k=z.toString(),X=z),pe=>{if(ke(pe.value))return null;const yt=pe.value;return X.test(yt)?null:{pattern:{requiredPattern:k,actualValue:yt}}}}(X)}static nullValidator(X){return null}static compose(X){return Ae(X)}static composeAsync(X){return Ie(X)}}function ae(z){return ke(z.value)?{required:!0}:null}function me(z){return!0===z.value?null:{required:!0}}function Dt(z){return null}function Zt(z){return null!=z}function Fn(z){return(0,u.jNT)(z)?(0,o.H)(z):z}function Vn(z){let X={};return z.forEach(k=>{X=null!=k?{...X,...k}:X}),0===Object.keys(X).length?null:X}function _n(z,X){return X.map(k=>k(z))}function _e(z){return z.map(X=>function pi(z){return!z.validate}(X)?X:k=>X.validate(k))}function Ae(z){if(!z)return null;const X=z.filter(Zt);return 0==X.length?null:function(k){return Vn(_n(k,X))}}function J(z){return null!=z?Ae(_e(z)):null}function Ie(z){if(!z)return null;const X=z.filter(Zt);return 0==X.length?null:function(k){const pe=_n(k,X).map(Fn);return(0,L.p)(pe).pipe((0,ee.T)(Vn))}}function Ot(z){return null!=z?Ie(_e(z)):null}function Pe(z,X){return null===z?[X]:Array.isArray(z)?[...z,X]:[z,X]}function ht(z){return z._rawValidators}function Xe(z){return z._rawAsyncValidators}function Je(z){return z?Array.isArray(z)?z:[z]:[]}function Me(z,X){return Array.isArray(z)?z.includes(X):z===X}function ie(z,X){const k=Je(X);return Je(z).forEach(yt=>{Me(k,yt)||k.push(yt)}),k}function ve(z,X){return Je(X).filter(k=>!Me(z,k))}class le{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(X){this._rawValidators=X||[],this._composedValidatorFn=J(this._rawValidators)}_setAsyncValidators(X){this._rawAsyncValidators=X||[],this._composedAsyncValidatorFn=Ot(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(X){this._onDestroyCallbacks.push(X)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(X=>X()),this._onDestroyCallbacks=[]}reset(X=void 0){this.control&&this.control.reset(X)}hasError(X,k){return!!this.control&&this.control.hasError(X,k)}getError(X,k){return this.control?this.control.getError(X,k):null}}class Ce extends le{get formDirective(){return null}get path(){return null}}class dt extends le{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class un{constructor(X){this._cd=X}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 Ft=(()=>{class z extends un{constructor(k){super(k)}static#e=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(dt,2))};static#t=this.\u0275dir=u.FsC({type:z,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(pe,yt){2&pe&&u.AVh("ng-untouched",yt.isUntouched)("ng-touched",yt.isTouched)("ng-pristine",yt.isPristine)("ng-dirty",yt.isDirty)("ng-valid",yt.isValid)("ng-invalid",yt.isInvalid)("ng-pending",yt.isPending)},features:[u.Vt3]})}return z})(),Rt=(()=>{class z extends un{constructor(k){super(k)}static#e=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(Ce,10))};static#t=this.\u0275dir=u.FsC({type:z,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(pe,yt){2&pe&&u.AVh("ng-untouched",yt.isUntouched)("ng-touched",yt.isTouched)("ng-pristine",yt.isPristine)("ng-dirty",yt.isDirty)("ng-valid",yt.isValid)("ng-invalid",yt.isInvalid)("ng-pending",yt.isPending)("ng-submitted",yt.isSubmitted)},features:[u.Vt3]})}return z})();const Mn="VALID",Ln="INVALID",Ei="PENDING",Jt="DISABLED";class En{}class He extends En{constructor(X,k){super(),this.value=X,this.source=k}}class Be extends En{constructor(X,k){super(),this.pristine=X,this.source=k}}class ye extends En{constructor(X,k){super(),this.touched=X,this.source=k}}class Ke extends En{constructor(X,k){super(),this.status=X,this.source=k}}class zt extends En{constructor(X){super(),this.source=X}}class Pn extends En{constructor(X){super(),this.source=X}}function vi(z){return(at(z)?z.validators:z)||null}function nn(z,X){return(at(X)?X.asyncValidators:z)||null}function at(z){return null!=z&&!Array.isArray(z)&&"object"==typeof z}function Lt(z,X,k){const pe=z.controls;if(!(X?Object.keys(pe):pe).length)throw new u.wOt(1e3,"");if(!pe[k])throw new u.wOt(1001,"")}function st(z,X,k){z._forEachChild((pe,yt)=>{if(void 0===k[yt])throw new u.wOt(1002,"")})}class Qe{constructor(X,k){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=(0,u.EWP)(()=>this.statusReactive()),this.statusReactive=(0,u.vPA)(void 0),this._pristine=(0,u.EWP)(()=>this.pristineReactive()),this.pristineReactive=(0,u.vPA)(!0),this._touched=(0,u.EWP)(()=>this.touchedReactive()),this.touchedReactive=(0,u.vPA)(!1),this._events=new G.B,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(X),this._assignAsyncValidators(k)}get validator(){return this._composedValidatorFn}set validator(X){this._rawValidators=this._composedValidatorFn=X}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(X){this._rawAsyncValidators=this._composedAsyncValidatorFn=X}get parent(){return this._parent}get status(){return(0,u.O8t)(this.statusReactive)}set status(X){(0,u.O8t)(()=>this.statusReactive.set(X))}get valid(){return this.status===Mn}get invalid(){return this.status===Ln}get pending(){return this.status==Ei}get disabled(){return this.status===Jt}get enabled(){return this.status!==Jt}get pristine(){return(0,u.O8t)(this.pristineReactive)}set pristine(X){(0,u.O8t)(()=>this.pristineReactive.set(X))}get dirty(){return!this.pristine}get touched(){return(0,u.O8t)(this.touchedReactive)}set touched(X){(0,u.O8t)(()=>this.touchedReactive.set(X))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(X){this._assignValidators(X)}setAsyncValidators(X){this._assignAsyncValidators(X)}addValidators(X){this.setValidators(ie(X,this._rawValidators))}addAsyncValidators(X){this.setAsyncValidators(ie(X,this._rawAsyncValidators))}removeValidators(X){this.setValidators(ve(X,this._rawValidators))}removeAsyncValidators(X){this.setAsyncValidators(ve(X,this._rawAsyncValidators))}hasValidator(X){return Me(this._rawValidators,X)}hasAsyncValidator(X){return Me(this._rawAsyncValidators,X)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(X={}){const k=!1===this.touched;this.touched=!0;const pe=X.sourceControl??this;this._parent&&!X.onlySelf&&this._parent.markAsTouched({...X,sourceControl:pe}),k&&!1!==X.emitEvent&&this._events.next(new ye(!0,pe))}markAllAsTouched(X={}){this.markAsTouched({onlySelf:!0,emitEvent:X.emitEvent,sourceControl:this}),this._forEachChild(k=>k.markAllAsTouched(X))}markAsUntouched(X={}){const k=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const pe=X.sourceControl??this;this._forEachChild(yt=>{yt.markAsUntouched({onlySelf:!0,emitEvent:X.emitEvent,sourceControl:pe})}),this._parent&&!X.onlySelf&&this._parent._updateTouched(X,pe),k&&!1!==X.emitEvent&&this._events.next(new ye(!1,pe))}markAsDirty(X={}){const k=!0===this.pristine;this.pristine=!1;const pe=X.sourceControl??this;this._parent&&!X.onlySelf&&this._parent.markAsDirty({...X,sourceControl:pe}),k&&!1!==X.emitEvent&&this._events.next(new Be(!1,pe))}markAsPristine(X={}){const k=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const pe=X.sourceControl??this;this._forEachChild(yt=>{yt.markAsPristine({onlySelf:!0,emitEvent:X.emitEvent})}),this._parent&&!X.onlySelf&&this._parent._updatePristine(X,pe),k&&!1!==X.emitEvent&&this._events.next(new Be(!0,pe))}markAsPending(X={}){this.status=Ei;const k=X.sourceControl??this;!1!==X.emitEvent&&(this._events.next(new Ke(this.status,k)),this.statusChanges.emit(this.status)),this._parent&&!X.onlySelf&&this._parent.markAsPending({...X,sourceControl:k})}disable(X={}){const k=this._parentMarkedDirty(X.onlySelf);this.status=Jt,this.errors=null,this._forEachChild(yt=>{yt.disable({...X,onlySelf:!0})}),this._updateValue();const pe=X.sourceControl??this;!1!==X.emitEvent&&(this._events.next(new He(this.value,pe)),this._events.next(new Ke(this.status,pe)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...X,skipPristineCheck:k},this),this._onDisabledChange.forEach(yt=>yt(!0))}enable(X={}){const k=this._parentMarkedDirty(X.onlySelf);this.status=Mn,this._forEachChild(pe=>{pe.enable({...X,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:X.emitEvent}),this._updateAncestors({...X,skipPristineCheck:k},this),this._onDisabledChange.forEach(pe=>pe(!1))}_updateAncestors(X,k){this._parent&&!X.onlySelf&&(this._parent.updateValueAndValidity(X),X.skipPristineCheck||this._parent._updatePristine({},k),this._parent._updateTouched({},k))}setParent(X){this._parent=X}getRawValue(){return this.value}updateValueAndValidity(X={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const pe=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Mn||this.status===Ei)&&this._runAsyncValidator(pe,X.emitEvent)}const k=X.sourceControl??this;!1!==X.emitEvent&&(this._events.next(new He(this.value,k)),this._events.next(new Ke(this.status,k)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!X.onlySelf&&this._parent.updateValueAndValidity({...X,sourceControl:k})}_updateTreeValidity(X={emitEvent:!0}){this._forEachChild(k=>k._updateTreeValidity(X)),this.updateValueAndValidity({onlySelf:!0,emitEvent:X.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Jt:Mn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(X,k){if(this.asyncValidator){this.status=Ei,this._hasOwnPendingAsyncValidator={emitEvent:!1!==k};const pe=Fn(this.asyncValidator(this));this._asyncValidationSubscription=pe.subscribe(yt=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(yt,{emitEvent:k,shouldHaveEmitted:X})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const X=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,X}return!1}setErrors(X,k={}){this.errors=X,this._updateControlsErrors(!1!==k.emitEvent,this,k.shouldHaveEmitted)}get(X){let k=X;return null==k||(Array.isArray(k)||(k=k.split(".")),0===k.length)?null:k.reduce((pe,yt)=>pe&&pe._find(yt),this)}getError(X,k){const pe=k?this.get(k):this;return pe&&pe.errors?pe.errors[X]:null}hasError(X,k){return!!this.getError(X,k)}get root(){let X=this;for(;X._parent;)X=X._parent;return X}_updateControlsErrors(X,k,pe){this.status=this._calculateStatus(),X&&this.statusChanges.emit(this.status),(X||pe)&&this._events.next(new Ke(this.status,k)),this._parent&&this._parent._updateControlsErrors(X,k,pe)}_initObservables(){this.valueChanges=new u.bkB,this.statusChanges=new u.bkB}_calculateStatus(){return this._allControlsDisabled()?Jt:this.errors?Ln:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ei)?Ei:this._anyControlsHaveStatus(Ln)?Ln:Mn}_anyControlsHaveStatus(X){return this._anyControls(k=>k.status===X)}_anyControlsDirty(){return this._anyControls(X=>X.dirty)}_anyControlsTouched(){return this._anyControls(X=>X.touched)}_updatePristine(X,k){const pe=!this._anyControlsDirty(),yt=this.pristine!==pe;this.pristine=pe,this._parent&&!X.onlySelf&&this._parent._updatePristine(X,k),yt&&this._events.next(new Be(this.pristine,k))}_updateTouched(X={},k){this.touched=this._anyControlsTouched(),this._events.next(new ye(this.touched,k)),this._parent&&!X.onlySelf&&this._parent._updateTouched(X,k)}_registerOnCollectionChange(X){this._onCollectionChange=X}_setUpdateStrategy(X){at(X)&&null!=X.updateOn&&(this._updateOn=X.updateOn)}_parentMarkedDirty(X){return!X&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(X){return null}_assignValidators(X){this._rawValidators=Array.isArray(X)?X.slice():X,this._composedValidatorFn=function Ti(z){return Array.isArray(z)?J(z):z||null}(this._rawValidators)}_assignAsyncValidators(X){this._rawAsyncValidators=Array.isArray(X)?X.slice():X,this._composedAsyncValidatorFn=function Et(z){return Array.isArray(z)?Ot(z):z||null}(this._rawAsyncValidators)}}class Oe extends Qe{constructor(X,k,pe){super(vi(k),nn(pe,k)),this.controls=X,this._initObservables(),this._setUpdateStrategy(k),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(X,k){return this.controls[X]?this.controls[X]:(this.controls[X]=k,k.setParent(this),k._registerOnCollectionChange(this._onCollectionChange),k)}addControl(X,k,pe={}){this.registerControl(X,k),this.updateValueAndValidity({emitEvent:pe.emitEvent}),this._onCollectionChange()}removeControl(X,k={}){this.controls[X]&&this.controls[X]._registerOnCollectionChange(()=>{}),delete this.controls[X],this.updateValueAndValidity({emitEvent:k.emitEvent}),this._onCollectionChange()}setControl(X,k,pe={}){this.controls[X]&&this.controls[X]._registerOnCollectionChange(()=>{}),delete this.controls[X],k&&this.registerControl(X,k),this.updateValueAndValidity({emitEvent:pe.emitEvent}),this._onCollectionChange()}contains(X){return this.controls.hasOwnProperty(X)&&this.controls[X].enabled}setValue(X,k={}){st(this,0,X),Object.keys(X).forEach(pe=>{Lt(this,!0,pe),this.controls[pe].setValue(X[pe],{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k)}patchValue(X,k={}){null!=X&&(Object.keys(X).forEach(pe=>{const yt=this.controls[pe];yt&&yt.patchValue(X[pe],{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k))}reset(X={},k={}){this._forEachChild((pe,yt)=>{pe.reset(X?X[yt]:null,{onlySelf:!0,emitEvent:k.emitEvent})}),this._updatePristine(k,this),this._updateTouched(k,this),this.updateValueAndValidity(k)}getRawValue(){return this._reduceChildren({},(X,k,pe)=>(X[pe]=k.getRawValue(),X))}_syncPendingControls(){let X=this._reduceChildren(!1,(k,pe)=>!!pe._syncPendingControls()||k);return X&&this.updateValueAndValidity({onlySelf:!0}),X}_forEachChild(X){Object.keys(this.controls).forEach(k=>{const pe=this.controls[k];pe&&X(pe,k)})}_setUpControls(){this._forEachChild(X=>{X.setParent(this),X._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(X){for(const[k,pe]of Object.entries(this.controls))if(this.contains(k)&&X(pe))return!0;return!1}_reduceValue(){return this._reduceChildren({},(k,pe,yt)=>((pe.enabled||this.disabled)&&(k[yt]=pe.value),k))}_reduceChildren(X,k){let pe=X;return this._forEachChild((yt,ii)=>{pe=k(pe,yt,ii)}),pe}_allControlsDisabled(){for(const X of Object.keys(this.controls))if(this.controls[X].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(X){return this.controls.hasOwnProperty(X)?this.controls[X]:null}}class ai extends Oe{}const xr=new u.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>Ri}),Ri="always";function Pr(z,X){return[...X.path,z]}function wi(z,X,k=Ri){St(z,X),X.valueAccessor.writeValue(z.value),(z.disabled||"always"===k)&&X.valueAccessor.setDisabledState?.(z.disabled),function yn(z,X){X.valueAccessor.registerOnChange(k=>{z._pendingValue=k,z._pendingChange=!0,z._pendingDirty=!0,"change"===z.updateOn&&Xn(z,X)})}(z,X),function zn(z,X){const k=(pe,yt)=>{X.valueAccessor.writeValue(pe),yt&&X.viewToModelUpdate(pe)};z.registerOnChange(k),X._registerOnDestroy(()=>{z._unregisterOnChange(k)})}(z,X),function An(z,X){X.valueAccessor.registerOnTouched(()=>{z._pendingTouched=!0,"blur"===z.updateOn&&z._pendingChange&&Xn(z,X),"submit"!==z.updateOn&&z.markAsTouched()})}(z,X),function ft(z,X){if(X.valueAccessor.setDisabledState){const k=pe=>{X.valueAccessor.setDisabledState(pe)};z.registerOnDisabledChange(k),X._registerOnDestroy(()=>{z._unregisterOnDisabledChange(k)})}}(z,X)}function Yr(z,X,k=!0){const pe=()=>{};X.valueAccessor&&(X.valueAccessor.registerOnChange(pe),X.valueAccessor.registerOnTouched(pe)),ln(z,X),z&&(X._invokeOnDestroyCallbacks(),z._registerOnCollectionChange(()=>{}))}function Or(z,X){z.forEach(k=>{k.registerOnValidatorChange&&k.registerOnValidatorChange(X)})}function St(z,X){const k=ht(z);null!==X.validator?z.setValidators(Pe(k,X.validator)):"function"==typeof k&&z.setValidators([k]);const pe=Xe(z);null!==X.asyncValidator?z.setAsyncValidators(Pe(pe,X.asyncValidator)):"function"==typeof pe&&z.setAsyncValidators([pe]);const yt=()=>z.updateValueAndValidity();Or(X._rawValidators,yt),Or(X._rawAsyncValidators,yt)}function ln(z,X){let k=!1;if(null!==z){if(null!==X.validator){const yt=ht(z);if(Array.isArray(yt)&&yt.length>0){const ii=yt.filter(Xi=>Xi!==X.validator);ii.length!==yt.length&&(k=!0,z.setValidators(ii))}}if(null!==X.asyncValidator){const yt=Xe(z);if(Array.isArray(yt)&&yt.length>0){const ii=yt.filter(Xi=>Xi!==X.asyncValidator);ii.length!==yt.length&&(k=!0,z.setAsyncValidators(ii))}}}const pe=()=>{};return Or(X._rawValidators,pe),Or(X._rawAsyncValidators,pe),k}function Xn(z,X){z._pendingDirty&&z.markAsDirty(),z.setValue(z._pendingValue,{emitModelToViewChange:!1}),X.viewToModelUpdate(z._pendingValue),z._pendingChange=!1}function ri(z,X){St(z,X)}function Te(z,X){if(!z.hasOwnProperty("model"))return!1;const k=z.model;return!!k.isFirstChange()||!Object.is(X,k.currentValue)}function $e(z,X){z._syncPendingControls(),X.forEach(k=>{const pe=k.control;"submit"===pe.updateOn&&pe._pendingChange&&(k.viewToModelUpdate(pe._pendingValue),pe._pendingChange=!1)})}function pt(z,X){if(!X)return null;let k,pe,yt;return Array.isArray(X),X.forEach(ii=>{ii.constructor===Re?k=ii:function se(z){return Object.getPrototypeOf(z.constructor)===V}(ii)?pe=ii:yt=ii}),yt||pe||k||null}const hn={provide:Ce,useExisting:(0,u.Rfq)(()=>wn)},fn=Promise.resolve();let wn=(()=>{class z extends Ce{get submitted(){return(0,u.O8t)(this.submittedReactive)}constructor(k,pe,yt){super(),this.callSetDisabledState=yt,this._submitted=(0,u.EWP)(()=>this.submittedReactive()),this.submittedReactive=(0,u.vPA)(!1),this._directives=new Set,this.ngSubmit=new u.bkB,this.form=new Oe({},J(k),Ot(pe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(k){fn.then(()=>{const pe=this._findContainer(k.path);k.control=pe.registerControl(k.name,k.control),wi(k.control,k,this.callSetDisabledState),k.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(k)})}getControl(k){return this.form.get(k.path)}removeControl(k){fn.then(()=>{const pe=this._findContainer(k.path);pe&&pe.removeControl(k.name),this._directives.delete(k)})}addFormGroup(k){fn.then(()=>{const pe=this._findContainer(k.path),yt=new Oe({});ri(yt,k),pe.registerControl(k.name,yt),yt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(k){fn.then(()=>{const pe=this._findContainer(k.path);pe&&pe.removeControl(k.name)})}getFormGroup(k){return this.form.get(k.path)}updateModel(k,pe){fn.then(()=>{this.form.get(k.path).setValue(pe)})}setValue(k){this.control.setValue(k)}onSubmit(k){return this.submittedReactive.set(!0),$e(this.form,this._directives),this.ngSubmit.emit(k),"dialog"===k?.target?.method}onReset(){this.resetForm()}resetForm(k=void 0){this.form.reset(k),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(k){return k.pop(),k.length?this.form.get(k):this.form}static#e=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(be,10),u.rXU(Ze,10),u.rXU(xr,8))};static#t=this.\u0275dir=u.FsC({type:z,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(pe,yt){1&pe&&u.bIt("submit",function(Xi){return yt.onSubmit(Xi)})("reset",function(){return yt.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u.Jv_([hn]),u.Vt3]})}return z})();function Dn(z,X){const k=z.indexOf(X);k>-1&&z.splice(k,1)}function jn(z){return"object"==typeof z&&null!==z&&2===Object.keys(z).length&&"value"in z&&"disabled"in z}const $n=class extends Qe{constructor(X=null,k,pe){super(vi(k),nn(pe,k)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(X),this._setUpdateStrategy(k),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),at(k)&&(k.nonNullable||k.initialValueIsDefault)&&(this.defaultValue=jn(X)?X.value:X)}setValue(X,k={}){this.value=this._pendingValue=X,this._onChange.length&&!1!==k.emitModelToViewChange&&this._onChange.forEach(pe=>pe(this.value,!1!==k.emitViewToModelChange)),this.updateValueAndValidity(k)}patchValue(X,k={}){this.setValue(X,k)}reset(X=this.defaultValue,k={}){this._applyFormState(X),this.markAsPristine(k),this.markAsUntouched(k),this.setValue(this.value,k),this._pendingChange=!1}_updateValue(){}_anyControls(X){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(X){this._onChange.push(X)}_unregisterOnChange(X){Dn(this._onChange,X)}registerOnDisabledChange(X){this._onDisabledChange.push(X)}_unregisterOnDisabledChange(X){Dn(this._onDisabledChange,X)}_forEachChild(X){}_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(X){jn(X)?(this.value=this._pendingValue=X.value,X.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=X}},ci=$n,$o={provide:dt,useExisting:(0,u.Rfq)(()=>Bs)},zi=Promise.resolve();let Bs=(()=>{class z extends dt{constructor(k,pe,yt,ii,Xi,ko){super(),this._changeDetectorRef=Xi,this.callSetDisabledState=ko,this.control=new $n,this._registered=!1,this.name="",this.update=new u.bkB,this._parent=k,this._setValidators(pe),this._setAsyncValidators(yt),this.valueAccessor=pt(0,ii)}ngOnChanges(k){if(this._checkForErrors(),!this._registered||"name"in k){if(this._registered&&(this._checkName(),this.formDirective)){const pe=k.name.previousValue;this.formDirective.removeControl({name:pe,path:this._getPath(pe)})}this._setUpControl()}"isDisabled"in k&&this._updateDisabled(k),Te(k,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(k){this.viewModel=k,this.update.emit(k)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){wi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(k){zi.then(()=>{this.control.setValue(k,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(k){const pe=k.isDisabled.currentValue,yt=0!==pe&&(0,u.L39)(pe);zi.then(()=>{yt&&!this.control.disabled?this.control.disable():!yt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(k){return this._parent?Pr(k,this._parent):[k]}static#e=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(Ce,9),u.rXU(be,10),u.rXU(Ze,10),u.rXU(P,10),u.rXU(u.gRc,8),u.rXU(xr,8))};static#t=this.\u0275dir=u.FsC({type:z,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[u.Jv_([$o]),u.Vt3,u.OA$]})}return z})(),ns=(()=>{class z{static#e=this.\u0275fac=function(pe){return new(pe||z)};static#t=this.\u0275dir=u.FsC({type:z,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return z})();const oo={provide:P,useExisting:(0,u.Rfq)(()=>ma),multi:!0};let ma=(()=>{class z extends V{writeValue(k){this.setProperty("value",k??"")}registerOnChange(k){this.onChange=pe=>{k(""==pe?null:parseFloat(pe))}}static#e=this.\u0275fac=(()=>{let k;return function(yt){return(k||(k=u.xGo(z)))(yt||z)}})();static#t=this.\u0275dir=u.FsC({type:z,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(pe,yt){1&pe&&u.bIt("input",function(Xi){return yt.onChange(Xi.target.value)})("blur",function(){return yt.onTouched()})},features:[u.Jv_([oo]),u.Vt3]})}return z})();const hr=new u.nKC(""),is={provide:dt,useExisting:(0,u.Rfq)(()=>no)};let no=(()=>{class z extends dt{set isDisabled(k){}static#e=this._ngModelWarningSentOnce=!1;constructor(k,pe,yt,ii,Xi){super(),this._ngModelWarningConfig=ii,this.callSetDisabledState=Xi,this.update=new u.bkB,this._ngModelWarningSent=!1,this._setValidators(k),this._setAsyncValidators(pe),this.valueAccessor=pt(0,yt)}ngOnChanges(k){if(this._isControlChanged(k)){const pe=k.form.previousValue;pe&&Yr(pe,this,!1),wi(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Te(k,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Yr(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(k){this.viewModel=k,this.update.emit(k)}_isControlChanged(k){return k.hasOwnProperty("form")}static#t=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(be,10),u.rXU(Ze,10),u.rXU(P,10),u.rXU(hr,8),u.rXU(xr,8))};static#n=this.\u0275dir=u.FsC({type:z,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[u.Jv_([is]),u.Vt3,u.OA$]})}return z})();const Ii={provide:Ce,useExisting:(0,u.Rfq)(()=>rs)};let rs=(()=>{class z extends Ce{get submitted(){return(0,u.O8t)(this._submittedReactive)}set submitted(k){this._submittedReactive.set(k)}constructor(k,pe,yt){super(),this.callSetDisabledState=yt,this._submitted=(0,u.EWP)(()=>this._submittedReactive()),this._submittedReactive=(0,u.vPA)(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new u.bkB,this._setValidators(k),this._setAsyncValidators(pe)}ngOnChanges(k){this._checkFormPresent(),k.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ln(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(k){const pe=this.form.get(k.path);return wi(pe,k,this.callSetDisabledState),pe.updateValueAndValidity({emitEvent:!1}),this.directives.push(k),pe}getControl(k){return this.form.get(k.path)}removeControl(k){Yr(k.control||null,k,!1),function lt(z,X){const k=z.indexOf(X);k>-1&&z.splice(k,1)}(this.directives,k)}addFormGroup(k){this._setUpFormContainer(k)}removeFormGroup(k){this._cleanUpFormContainer(k)}getFormGroup(k){return this.form.get(k.path)}addFormArray(k){this._setUpFormContainer(k)}removeFormArray(k){this._cleanUpFormContainer(k)}getFormArray(k){return this.form.get(k.path)}updateModel(k,pe){this.form.get(k.path).setValue(pe)}onSubmit(k){return this._submittedReactive.set(!0),$e(this.form,this.directives),this.ngSubmit.emit(k),this.form._events.next(new zt(this.control)),"dialog"===k?.target?.method}onReset(){this.resetForm()}resetForm(k=void 0){this.form.reset(k),this._submittedReactive.set(!1),this.form._events.next(new Pn(this.form))}_updateDomValue(){this.directives.forEach(k=>{const pe=k.control,yt=this.form.get(k.path);pe!==yt&&(Yr(pe||null,k),(z=>z instanceof $n)(yt)&&(wi(yt,k,this.callSetDisabledState),k.control=yt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(k){const pe=this.form.get(k.path);ri(pe,k),pe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(k){if(this.form){const pe=this.form.get(k.path);pe&&function li(z,X){return ln(z,X)}(pe,k)&&pe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){St(this.form,this),this._oldForm&&ln(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(be,10),u.rXU(Ze,10),u.rXU(xr,8))};static#t=this.\u0275dir=u.FsC({type:z,selectors:[["","formGroup",""]],hostBindings:function(pe,yt){1&pe&&u.bIt("submit",function(Xi){return yt.onSubmit(Xi)})("reset",function(){return yt.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u.Jv_([Ii]),u.Vt3,u.OA$]})}return z})();const js={provide:dt,useExisting:(0,u.Rfq)(()=>Hr)};let Hr=(()=>{class z extends dt{set isDisabled(k){}static#e=this._ngModelWarningSentOnce=!1;constructor(k,pe,yt,ii,Xi){super(),this._ngModelWarningConfig=Xi,this._added=!1,this.name=null,this.update=new u.bkB,this._ngModelWarningSent=!1,this._parent=k,this._setValidators(pe),this._setAsyncValidators(yt),this.valueAccessor=pt(0,ii)}ngOnChanges(k){this._added||this._setUpControl(),Te(k,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(k){this.viewModel=k,this.update.emit(k)}get path(){return Pr(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#t=this.\u0275fac=function(pe){return new(pe||z)(u.rXU(Ce,13),u.rXU(be,10),u.rXU(Ze,10),u.rXU(P,10),u.rXU(hr,8))};static#n=this.\u0275dir=u.FsC({type:z,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[u.Jv_([js]),u.Vt3,u.OA$]})}return z})(),Eo=(()=>{class z{constructor(){this._validator=Dt}ngOnChanges(k){if(this.inputName in k){const pe=this.normalizeInput(k[this.inputName].currentValue);this._enabled=this.enabled(pe),this._validator=this._enabled?this.createValidator(pe):Dt,this._onChange&&this._onChange()}}validate(k){return this._validator(k)}registerOnValidatorChange(k){this._onChange=k}enabled(k){return null!=k}static#e=this.\u0275fac=function(pe){return new(pe||z)};static#t=this.\u0275dir=u.FsC({type:z,features:[u.OA$]})}return z})();const Wo={provide:be,useExisting:(0,u.Rfq)(()=>Co),multi:!0},ul={provide:be,useExisting:(0,u.Rfq)(()=>zs),multi:!0};let Co=(()=>{class z extends Eo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=u.L39,this.createValidator=k=>ae}enabled(k){return k}static#e=this.\u0275fac=(()=>{let k;return function(yt){return(k||(k=u.xGo(z)))(yt||z)}})();static#t=this.\u0275dir=u.FsC({type:z,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(pe,yt){2&pe&&u.BMQ("required",yt._enabled?"":null)},inputs:{required:"required"},features:[u.Jv_([Wo]),u.Vt3]})}return z})(),zs=(()=>{class z extends Co{constructor(){super(...arguments),this.createValidator=k=>me}static#e=this.\u0275fac=(()=>{let k;return function(yt){return(k||(k=u.xGo(z)))(yt||z)}})();static#t=this.\u0275dir=u.FsC({type:z,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(pe,yt){2&pe&&u.BMQ("required",yt._enabled?"":null)},features:[u.Jv_([ul]),u.Vt3]})}return z})(),Mo=(()=>{class z{static#e=this.\u0275fac=function(pe){return new(pe||z)};static#t=this.\u0275mod=u.$C({type:z});static#n=this.\u0275inj=u.G2t({})}return z})();class as extends Qe{constructor(X,k,pe){super(vi(k),nn(pe,k)),this.controls=X,this._initObservables(),this._setUpdateStrategy(k),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(X){return this.controls[this._adjustIndex(X)]}push(X,k={}){this.controls.push(X),this._registerControl(X),this.updateValueAndValidity({emitEvent:k.emitEvent}),this._onCollectionChange()}insert(X,k,pe={}){this.controls.splice(X,0,k),this._registerControl(k),this.updateValueAndValidity({emitEvent:pe.emitEvent})}removeAt(X,k={}){let pe=this._adjustIndex(X);pe<0&&(pe=0),this.controls[pe]&&this.controls[pe]._registerOnCollectionChange(()=>{}),this.controls.splice(pe,1),this.updateValueAndValidity({emitEvent:k.emitEvent})}setControl(X,k,pe={}){let yt=this._adjustIndex(X);yt<0&&(yt=0),this.controls[yt]&&this.controls[yt]._registerOnCollectionChange(()=>{}),this.controls.splice(yt,1),k&&(this.controls.splice(yt,0,k),this._registerControl(k)),this.updateValueAndValidity({emitEvent:pe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(X,k={}){st(this,0,X),X.forEach((pe,yt)=>{Lt(this,!1,yt),this.at(yt).setValue(pe,{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k)}patchValue(X,k={}){null!=X&&(X.forEach((pe,yt)=>{this.at(yt)&&this.at(yt).patchValue(pe,{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k))}reset(X=[],k={}){this._forEachChild((pe,yt)=>{pe.reset(X[yt],{onlySelf:!0,emitEvent:k.emitEvent})}),this._updatePristine(k,this),this._updateTouched(k,this),this.updateValueAndValidity(k)}getRawValue(){return this.controls.map(X=>X.getRawValue())}clear(X={}){this.controls.length<1||(this._forEachChild(k=>k._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:X.emitEvent}))}_adjustIndex(X){return X<0?X+this.length:X}_syncPendingControls(){let X=this.controls.reduce((k,pe)=>!!pe._syncPendingControls()||k,!1);return X&&this.updateValueAndValidity({onlySelf:!0}),X}_forEachChild(X){this.controls.forEach((k,pe)=>{X(k,pe)})}_updateValue(){this.value=this.controls.filter(X=>X.enabled||this.disabled).map(X=>X.value)}_anyControls(X){return this.controls.some(k=>k.enabled&&X(k))}_setUpControls(){this._forEachChild(X=>this._registerControl(X))}_allControlsDisabled(){for(const X of this.controls)if(X.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(X){X.setParent(this),X._registerOnCollectionChange(this._onCollectionChange)}_find(X){return this.at(X)??null}}function Ia(z){return!!z&&(void 0!==z.asyncValidators||void 0!==z.validators||void 0!==z.updateOn)}let Ds=(()=>{class z{constructor(){this.useNonNullable=!1}get nonNullable(){const k=new z;return k.useNonNullable=!0,k}group(k,pe=null){const yt=this._reduceControls(k);let ii={};return Ia(pe)?ii=pe:null!==pe&&(ii.validators=pe.validator,ii.asyncValidators=pe.asyncValidator),new Oe(yt,ii)}record(k,pe=null){const yt=this._reduceControls(k);return new ai(yt,pe)}control(k,pe,yt){let ii={};return this.useNonNullable?(Ia(pe)?ii=pe:(ii.validators=pe,ii.asyncValidators=yt),new $n(k,{...ii,nonNullable:!0})):new $n(k,pe,yt)}array(k,pe,yt){const ii=k.map(Xi=>this._createControl(Xi));return new as(ii,pe,yt)}_reduceControls(k){const pe={};return Object.keys(k).forEach(yt=>{pe[yt]=this._createControl(k[yt])}),pe}_createControl(k){return k instanceof $n||k instanceof Qe?k:Array.isArray(k)?this.control(k[0],k.length>1?k[1]:null,k.length>2?k[2]:null):this.control(k)}static#e=this.\u0275fac=function(pe){return new(pe||z)};static#t=this.\u0275prov=u.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),xs=(()=>{class z extends Ds{group(k,pe=null){return super.group(k,pe)}control(k,pe,yt){return super.control(k,pe,yt)}array(k,pe,yt){return super.array(k,pe,yt)}static#e=this.\u0275fac=(()=>{let k;return function(yt){return(k||(k=u.xGo(z)))(yt||z)}})();static#t=this.\u0275prov=u.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),fr=(()=>{class z{static withConfig(k){return{ngModule:z,providers:[{provide:xr,useValue:k.callSetDisabledState??Ri}]}}static#e=this.\u0275fac=function(pe){return new(pe||z)};static#t=this.\u0275mod=u.$C({type:z});static#n=this.\u0275inj=u.G2t({imports:[Mo]})}return z})(),Ro=(()=>{class z{static withConfig(k){return{ngModule:z,providers:[{provide:hr,useValue:k.warnOnNgModelWithFormControl??"always"},{provide:xr,useValue:k.callSetDisabledState??Ri}]}}static#e=this.\u0275fac=function(pe){return new(pe||z)};static#t=this.\u0275mod=u.$C({type:z});static#n=this.\u0275inj=u.G2t({imports:[Mo]})}return z})()},8834:(tn,Ne,v)=>{"use strict";v.d(Ne,{$0:()=>At,$z:()=>qe,Hl:()=>Vn,It:()=>We,iY:()=>Zt,pQ:()=>Fn});var u=v(6860),y=v(4438),o=v(9888),L=v(6600);const G=["mat-button",""],ee=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],oe=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],P=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",F=["mat-mini-fab",""],ge=["mat-icon-button",""],Ee=["*"],ke=new y.nKC("MAT_BUTTON_CONFIG"),be=[{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 Ze=(()=>{class _n{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(_e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,_e)}get disableRipple(){return this._disableRipple}set disableRipple(_e){this._disableRipple=_e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(_e){this._disabled=_e,this._updateRippleDisabled()}constructor(_e,Ae,J,Ie){this._elementRef=_e,this._platform=Ae,this._ngZone=J,this._animationMode=Ie,this._focusMonitor=(0,y.WQX)(o.FN),this._rippleLoader=(0,y.WQX)(L.Ej),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const Ot=(0,y.WQX)(ke,{optional:!0}),Pe=_e.nativeElement,ht=Pe.classList;this.disabledInteractive=Ot?.disabledInteractive??!1,this.color=Ot?.color??null,this._rippleLoader?.configureRipple(Pe,{className:"mat-mdc-button-ripple"});for(const{attribute:Xe,mdcClasses:Je}of be)Pe.hasAttribute(Xe)&&ht.add(...Je)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(_e="program",Ae){_e?this._focusMonitor.focusVia(this._elementRef.nativeElement,_e,Ae):this._elementRef.nativeElement.focus(Ae)}_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#e=this.\u0275fac=function(Ae){y.QTQ()};static#t=this.\u0275dir=y.FsC({type:_n,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",y.L39],disabled:[2,"disabled","disabled",y.L39],ariaDisabled:[2,"aria-disabled","ariaDisabled",y.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",y.L39]},features:[y.GFd]})}return _n})(),je=(()=>{class _n extends Ze{constructor(_e,Ae,J,Ie){super(_e,Ae,J,Ie),this._haltDisabledEvents=Ot=>{this.disabled&&(Ot.preventDefault(),Ot.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return null==this.ariaDisabled?this.disabled:this.ariaDisabled}static#e=this.\u0275fac=function(Ae){y.QTQ()};static#t=this.\u0275dir=y.FsC({type:_n,inputs:{tabIndex:[2,"tabIndex","tabIndex",_e=>null==_e?void 0:(0,y.Udg)(_e)]},features:[y.GFd,y.Vt3]})}return _n})(),qe=(()=>{class _n extends Ze{constructor(_e,Ae,J,Ie){super(_e,Ae,J,Ie)}static#e=this.\u0275fac=function(Ae){return new(Ae||_n)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))};static#t=this.\u0275cmp=y.VBU({type:_n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(Ae,J){2&Ae&&(y.BMQ("disabled",J._getDisabledAttribute())("aria-disabled",J._getAriaDisabled()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[y.Vt3,y.aNF],attrs:G,ngContentSelectors:oe,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ae,J){1&Ae&&(y.NAR(ee),y.nrm(0,"span",0),y.SdG(1),y.j41(2,"span",1),y.SdG(3,1),y.k0s(),y.SdG(4,2),y.nrm(5,"span",2)(6,"span",3)),2&Ae&&y.AVh("mdc-button__ripple",!J._isFab)("mdc-fab__ripple",J._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return _n})(),We=(()=>{class _n extends je{constructor(_e,Ae,J,Ie){super(_e,Ae,J,Ie)}static#e=this.\u0275fac=function(Ae){return new(Ae||_n)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))};static#t=this.\u0275cmp=y.VBU({type:_n,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(Ae,J){2&Ae&&(y.BMQ("disabled",J._getDisabledAttribute())("tabindex",J.disabled&&!J.disabledInteractive?-1:J.tabIndex)("aria-disabled",J._getDisabledAttribute()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[y.Vt3,y.aNF],attrs:G,ngContentSelectors:oe,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ae,J){1&Ae&&(y.NAR(ee),y.nrm(0,"span",0),y.SdG(1),y.j41(2,"span",1),y.SdG(3,1),y.k0s(),y.SdG(4,2),y.nrm(5,"span",2)(6,"span",3)),2&Ae&&y.AVh("mdc-button__ripple",!J._isFab)("mdc-fab__ripple",J._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',P],encapsulation:2,changeDetection:0})}return _n})();const ae=new y.nKC("mat-mdc-fab-default-options",{providedIn:"root",factory:me});function me(){return{color:"accent"}}const Le=me();let At=(()=>{class _n extends Ze{constructor(_e,Ae,J,Ie,Ot){super(_e,Ae,J,Ie),this._options=Ot,this._isFab=!0,this._options=this._options||Le,this.color=this._options.color||Le.color}static#e=this.\u0275fac=function(Ae){return new(Ae||_n)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8),y.rXU(ae,8))};static#t=this.\u0275cmp=y.VBU({type:_n,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(Ae,J){2&Ae&&(y.BMQ("disabled",J._getDisabledAttribute())("aria-disabled",J._getAriaDisabled()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[y.Vt3,y.aNF],attrs:F,ngContentSelectors:oe,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ae,J){1&Ae&&(y.NAR(ee),y.nrm(0,"span",0),y.SdG(1),y.j41(2,"span",1),y.SdG(3,1),y.k0s(),y.SdG(4,2),y.nrm(5,"span",2)(6,"span",3)),2&Ae&&y.AVh("mdc-button__ripple",!J._isFab)("mdc-fab__ripple",J._isFab)},styles:['.mat-mdc-fab-base{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-app-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-app-corner-large));color:var(--mat-fab-foreground-color, var(--mat-app-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-app-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-app-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-app-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-app-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-app-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-app-level3));height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-app-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0})}return _n})(),Zt=(()=>{class _n extends Ze{constructor(_e,Ae,J,Ie){super(_e,Ae,J,Ie),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(Ae){return new(Ae||_n)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))};static#t=this.\u0275cmp=y.VBU({type:_n,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(Ae,J){2&Ae&&(y.BMQ("disabled",J._getDisabledAttribute())("aria-disabled",J._getAriaDisabled()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[y.Vt3,y.aNF],attrs:ge,ngContentSelectors:Ee,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ae,J){1&Ae&&(y.NAR(),y.nrm(0,"span",0),y.SdG(1),y.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',P],encapsulation:2,changeDetection:0})}return _n})(),Fn=(()=>{class _n extends je{constructor(_e,Ae,J,Ie){super(_e,Ae,J,Ie)}static#e=this.\u0275fac=function(Ae){return new(Ae||_n)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))};static#t=this.\u0275cmp=y.VBU({type:_n,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(Ae,J){2&Ae&&(y.BMQ("disabled",J._getDisabledAttribute())("tabindex",J.disabled&&!J.disabledInteractive?-1:J.tabIndex)("aria-disabled",J._getDisabledAttribute()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[y.Vt3,y.aNF],attrs:ge,ngContentSelectors:Ee,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ae,J){1&Ae&&(y.NAR(),y.nrm(0,"span",0),y.SdG(1),y.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',P],encapsulation:2,changeDetection:0})}return _n})(),Vn=(()=>{class _n{static#e=this.\u0275fac=function(Ae){return new(Ae||_n)};static#t=this.\u0275mod=y.$C({type:_n});static#n=this.\u0275inj=y.G2t({imports:[L.yE,L.pZ,L.yE]})}return _n})()},6600:(tn,Ne,v)=>{"use strict";v.d(Ne,{MJ:()=>J,es:()=>le,N:()=>ae,de:()=>Ie,Ju:()=>_e,QC:()=>$t,is:()=>he,yE:()=>me,wT:()=>Ln,Sy:()=>En,MI:()=>Mn,r6:()=>T,Ej:()=>vi,pZ:()=>N,X0:()=>Vn,tO:()=>Ti,jb:()=>Ei,TL:()=>Jt});var u=v(4438),y=v(9888),o=v(8203),G=v(177),ee=v(6860),oe=v(4085),V=v(1413),P=v(7336);const ue=["text"],ge=[[["mat-icon"]],"*"],Ee=["mat-icon","*"];function Re(nn,Et){if(1&nn&&u.nrm(0,"mat-pseudo-checkbox",1),2&nn){const at=u.XpG();u.Y8G("disabled",at.disabled)("state",at.selected?"checked":"unchecked")}}function ke(nn,Et){if(1&nn&&u.nrm(0,"mat-pseudo-checkbox",3),2&nn){const at=u.XpG();u.Y8G("disabled",at.disabled)}}function te(nn,Et){if(1&nn&&(u.j41(0,"span",4),u.EFF(1),u.k0s()),2&nn){const at=u.XpG();u.R7$(),u.SpI("(",at.group.label,")")}}const be=["mat-internal-form-field",""],Ze=["*"],ae=new u.nKC("mat-sanity-checks",{providedIn:"root",factory:function We(){return!0}});let me=(()=>{class nn{constructor(at,Lt,st){this._sanityChecks=Lt,this._document=st,this._hasDoneGlobalChecks=!1,at._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(at){return!(0,ee.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[at])}static#e=this.\u0275fac=function(Lt){return new(Lt||nn)(u.KVO(y.Q_),u.KVO(ae,8),u.KVO(G.qQ))};static#t=this.\u0275mod=u.$C({type:nn});static#n=this.\u0275inj=u.G2t({imports:[o.jI,o.jI]})}return nn})();class Vn{constructor(Et,at,Lt,st,Qe){this._defaultMatcher=Et,this.ngControl=at,this._parentFormGroup=Lt,this._parentForm=st,this._stateChanges=Qe,this.errorState=!1}updateErrorState(){const Et=this.errorState,at=this._parentFormGroup||this._parentForm,Lt=this.matcher||this._defaultMatcher,st=this.ngControl?this.ngControl.control:null,Qe=Lt?.isErrorState(st,at)??!1;Qe!==Et&&(this.errorState=Qe,this._stateChanges.next())}}const _e=new u.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function Ae(){return(0,u.WQX)(u.xe9)}});class J{constructor(){this._localeChanges=new V.B,this.localeChanges=this._localeChanges}getValidDateOrNull(Et){return this.isDateInstance(Et)&&this.isValid(Et)?Et:null}deserialize(Et){return null==Et||this.isDateInstance(Et)&&this.isValid(Et)?Et:this.invalid()}setLocale(Et){this.locale=Et,this._localeChanges.next()}compareDate(Et,at){return this.getYear(Et)-this.getYear(at)||this.getMonth(Et)-this.getMonth(at)||this.getDate(Et)-this.getDate(at)}sameDate(Et,at){if(Et&&at){let Lt=this.isValid(Et),st=this.isValid(at);return Lt&&st?!this.compareDate(Et,at):Lt==st}return Et==at}clampDate(Et,at,Lt){return at&&this.compareDate(Et,at)<0?at:Lt&&this.compareDate(Et,Lt)>0?Lt:Et}}const Ie=new u.nKC("mat-date-formats");let le=(()=>{class nn{isErrorState(at,Lt){return!!(at&&at.invalid&&(at.touched||Lt&&Lt.submitted))}static#e=this.\u0275fac=function(Lt){return new(Lt||nn)};static#t=this.\u0275prov=u.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})();var It=function(nn){return nn[nn.FADING_IN=0]="FADING_IN",nn[nn.VISIBLE=1]="VISIBLE",nn[nn.FADING_OUT=2]="FADING_OUT",nn[nn.HIDDEN=3]="HIDDEN",nn}(It||{});class Ft{constructor(Et,at,Lt,st=!1){this._renderer=Et,this.element=at,this.config=Lt,this._animationForciblyDisabledThroughCss=st,this.state=It.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const Rt=(0,ee.BQ)({passive:!0,capture:!0});class kn{constructor(){this._events=new Map,this._delegateEventHandler=Et=>{const at=(0,ee.Fb)(Et);at&&this._events.get(Et.type)?.forEach((Lt,st)=>{(st===at||st.contains(at))&&Lt.forEach(Qe=>Qe.handleEvent(Et))})}}addHandler(Et,at,Lt,st){const Qe=this._events.get(at);if(Qe){const Oe=Qe.get(Lt);Oe?Oe.add(st):Qe.set(Lt,new Set([st]))}else this._events.set(at,new Map([[Lt,new Set([st])]])),Et.runOutsideAngular(()=>{document.addEventListener(at,this._delegateEventHandler,Rt)})}removeHandler(Et,at,Lt){const st=this._events.get(Et);if(!st)return;const Qe=st.get(at);Qe&&(Qe.delete(Lt),0===Qe.size&&st.delete(at),0===st.size&&(this._events.delete(Et),document.removeEventListener(Et,this._delegateEventHandler,Rt)))}}const hi={enterDuration:225,exitDuration:150},we=(0,ee.BQ)({passive:!0,capture:!0}),tt=["mousedown","touchstart"],rt=["mouseup","mouseleave","touchend","touchcancel"];class bt{static#e=this._eventManager=new kn;constructor(Et,at,Lt,st){this._target=Et,this._ngZone=at,this._platform=st,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,st.isBrowser&&(this._containerElement=(0,oe.i8)(Lt))}fadeInRipple(Et,at,Lt={}){const st=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Qe={...hi,...Lt.animation};Lt.centered&&(Et=st.left+st.width/2,at=st.top+st.height/2);const Oe=Lt.radius||function on(nn,Et,at){const Lt=Math.max(Math.abs(nn-at.left),Math.abs(nn-at.right)),st=Math.max(Math.abs(Et-at.top),Math.abs(Et-at.bottom));return Math.sqrt(Lt*Lt+st*st)}(Et,at,st),ct=Et-st.left,Wt=at-st.top,rn=Qe.enterDuration,ai=document.createElement("div");ai.classList.add("mat-ripple-element"),ai.style.left=ct-Oe+"px",ai.style.top=Wt-Oe+"px",ai.style.height=2*Oe+"px",ai.style.width=2*Oe+"px",null!=Lt.color&&(ai.style.backgroundColor=Lt.color),ai.style.transitionDuration=`${rn}ms`,this._containerElement.appendChild(ai);const yr=window.getComputedStyle(ai),Ri=yr.transitionDuration,Pr="none"===yr.transitionProperty||"0s"===Ri||"0s, 0s"===Ri||0===st.width&&0===st.height,wi=new Ft(this,ai,Lt,Pr);ai.style.transform="scale3d(1, 1, 1)",wi.state=It.FADING_IN,Lt.persistent||(this._mostRecentTransientRipple=wi);let Yr=null;return!Pr&&(rn||Qe.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Or=()=>{Yr&&(Yr.fallbackTimer=null),clearTimeout(St),this._finishRippleTransition(wi)},ft=()=>this._destroyRipple(wi),St=setTimeout(ft,rn+100);ai.addEventListener("transitionend",Or),ai.addEventListener("transitioncancel",ft),Yr={onTransitionEnd:Or,onTransitionCancel:ft,fallbackTimer:St}}),this._activeRipples.set(wi,Yr),(Pr||!rn)&&this._finishRippleTransition(wi),wi}fadeOutRipple(Et){if(Et.state===It.FADING_OUT||Et.state===It.HIDDEN)return;const at=Et.element,Lt={...hi,...Et.config.animation};at.style.transitionDuration=`${Lt.exitDuration}ms`,at.style.opacity="0",Et.state=It.FADING_OUT,(Et._animationForciblyDisabledThroughCss||!Lt.exitDuration)&&this._finishRippleTransition(Et)}fadeOutAll(){this._getActiveRipples().forEach(Et=>Et.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Et=>{Et.config.persistent||Et.fadeOut()})}setupTriggerEvents(Et){const at=(0,oe.i8)(Et);!this._platform.isBrowser||!at||at===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=at,tt.forEach(Lt=>{bt._eventManager.addHandler(this._ngZone,Lt,at,this)}))}handleEvent(Et){"mousedown"===Et.type?this._onMousedown(Et):"touchstart"===Et.type?this._onTouchStart(Et):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{rt.forEach(at=>{this._triggerElement.addEventListener(at,this,we)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Et){Et.state===It.FADING_IN?this._startFadeOutTransition(Et):Et.state===It.FADING_OUT&&this._destroyRipple(Et)}_startFadeOutTransition(Et){const at=Et===this._mostRecentTransientRipple,{persistent:Lt}=Et.config;Et.state=It.VISIBLE,!Lt&&(!at||!this._isPointerDown)&&Et.fadeOut()}_destroyRipple(Et){const at=this._activeRipples.get(Et)??null;this._activeRipples.delete(Et),this._activeRipples.size||(this._containerRect=null),Et===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Et.state=It.HIDDEN,null!==at&&(Et.element.removeEventListener("transitionend",at.onTransitionEnd),Et.element.removeEventListener("transitioncancel",at.onTransitionCancel),null!==at.fallbackTimer&&clearTimeout(at.fallbackTimer)),Et.element.remove()}_onMousedown(Et){const at=(0,y._G)(Et),Lt=this._lastTouchStartEvent&&Date.now(){!Et.config.persistent&&(Et.state===It.VISIBLE||Et.config.terminateOnPointerUp&&Et.state===It.FADING_IN)&&Et.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Et=this._triggerElement;Et&&(tt.forEach(at=>bt._eventManager.removeHandler(at,Et,this)),this._pointerUpEventsRegistered&&(rt.forEach(at=>Et.removeEventListener(at,this,we)),this._pointerUpEventsRegistered=!1))}}const Q=new u.nKC("mat-ripple-global-options");let T=(()=>{class nn{get disabled(){return this._disabled}set disabled(at){at&&this.fadeOutAllNonPersistent(),this._disabled=at,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(at){this._trigger=at,this._setupTriggerEventsIfEnabled()}constructor(at,Lt,st,Qe,Oe){this._elementRef=at,this._animationMode=Oe,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Qe||{},this._rippleRenderer=new bt(this,Lt,at,st)}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(at,Lt=0,st){return"number"==typeof at?this._rippleRenderer.fadeInRipple(at,Lt,{...this.rippleConfig,...st}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...at})}static#e=this.\u0275fac=function(Lt){return new(Lt||nn)(u.rXU(u.aKT),u.rXU(u.SKi),u.rXU(ee.OD),u.rXU(Q,8),u.rXU(u.bc$,8))};static#t=this.\u0275dir=u.FsC({type:nn,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Lt,st){2&Lt&&u.AVh("mat-ripple-unbounded",st.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}return nn})(),N=(()=>{class nn{static#e=this.\u0275fac=function(Lt){return new(Lt||nn)};static#t=this.\u0275mod=u.$C({type:nn});static#n=this.\u0275inj=u.G2t({imports:[me,me]})}return nn})(),$=(()=>{class nn{constructor(at){this._animationMode=at,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(Lt){return new(Lt||nn)(u.rXU(u.bc$,8))};static#t=this.\u0275cmp=u.VBU({type:nn,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(Lt,st){2&Lt&&u.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===st.state)("mat-pseudo-checkbox-checked","checked"===st.state)("mat-pseudo-checkbox-disabled",st.disabled)("mat-pseudo-checkbox-minimal","minimal"===st.appearance)("mat-pseudo-checkbox-full","full"===st.appearance)("_mat-animation-noopable","NoopAnimations"===st._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[u.aNF],decls:0,vars:0,template:function(Lt,st){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-app-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-app-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return nn})(),ce=(()=>{class nn{static#e=this.\u0275fac=function(Lt){return new(Lt||nn)};static#t=this.\u0275mod=u.$C({type:nn});static#n=this.\u0275inj=u.G2t({imports:[me]})}return nn})();const he=new u.nKC("MAT_OPTION_PARENT_COMPONENT"),$t=new u.nKC("MatOptgroup");let Vt=0;class Mn{constructor(Et,at=!1){this.source=Et,this.isUserInput=at}}let Ln=(()=>{class nn{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(at){this._disabled=at}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(at,Lt,st,Qe){this._element=at,this._changeDetectorRef=Lt,this._parent=st,this.group=Qe,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Vt++,this.onSelectionChange=new u.bkB,this._stateChanges=new V.B}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(at=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),at&&this._emitSelectionChangeEvent())}deselect(at=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),at&&this._emitSelectionChangeEvent())}focus(at,Lt){const st=this._getHostElement();"function"==typeof st.focus&&st.focus(Lt)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(at){(at.keyCode===P.Fm||at.keyCode===P.t6)&&!(0,P.rp)(at)&&(this._selectViaInteraction(),at.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 at=this.viewValue;at!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=at)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(at=!1){this.onSelectionChange.emit(new Mn(this,at))}static#e=this.\u0275fac=function(Lt){return new(Lt||nn)(u.rXU(u.aKT),u.rXU(u.gRc),u.rXU(he,8),u.rXU($t,8))};static#t=this.\u0275cmp=u.VBU({type:nn,selectors:[["mat-option"]],viewQuery:function(Lt,st){if(1&Lt&&u.GBs(ue,7),2&Lt){let Qe;u.mGM(Qe=u.lsd())&&(st._text=Qe.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(Lt,st){1&Lt&&u.bIt("click",function(){return st._selectViaInteraction()})("keydown",function(Oe){return st._handleKeydown(Oe)}),2&Lt&&(u.Mr5("id",st.id),u.BMQ("aria-selected",st.selected)("aria-disabled",st.disabled.toString()),u.AVh("mdc-list-item--selected",st.selected)("mat-mdc-option-multiple",st.multiple)("mat-mdc-option-active",st.active)("mdc-list-item--disabled",st.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",u.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[u.GFd,u.aNF],ngContentSelectors:Ee,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(Lt,st){1&Lt&&(u.NAR(ge),u.DNE(0,Re,1,2,"mat-pseudo-checkbox",1),u.SdG(1),u.j41(2,"span",2,0),u.SdG(4,1),u.k0s(),u.DNE(5,ke,1,1,"mat-pseudo-checkbox",3)(6,te,2,1,"span",4),u.nrm(7,"div",5)),2&Lt&&(u.vxM(st.multiple?0:-1),u.R7$(5),u.vxM(st.multiple||!st.selected||st.hideSingleSelectionIndicator?-1:5),u.R7$(),u.vxM(st.group&&st.group._inert?6:-1),u.R7$(),u.Y8G("matRippleTrigger",st._getHostElement())("matRippleDisabled",st.disabled||st.disableRipple))},dependencies:[$,T],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-app-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-app-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return nn})();function Ei(nn,Et,at){if(at.length){let Lt=Et.toArray(),st=at.toArray(),Qe=0;for(let Oe=0;Oeat+Lt?Math.max(0,nn-Lt+Et):at}let En=(()=>{class nn{static#e=this.\u0275fac=function(Lt){return new(Lt||nn)};static#t=this.\u0275mod=u.$C({type:nn});static#n=this.\u0275inj=u.G2t({imports:[N,me,ce]})}return nn})();const He={capture:!0},Be=["focus","mousedown","mouseenter","touchstart"],ye="mat-ripple-loader-uninitialized",Ke="mat-ripple-loader-class-name",zt="mat-ripple-loader-centered",Pn="mat-ripple-loader-disabled";let vi=(()=>{class nn{constructor(){this._document=(0,u.WQX)(G.qQ,{optional:!0}),this._animationMode=(0,u.WQX)(u.bc$,{optional:!0}),this._globalRippleOptions=(0,u.WQX)(Q,{optional:!0}),this._platform=(0,u.WQX)(ee.OD),this._ngZone=(0,u.WQX)(u.SKi),this._hosts=new Map,this._onInteraction=at=>{const Lt=(0,ee.Fb)(at);if(Lt instanceof HTMLElement){const st=Lt.closest(`[${ye}="${this._globalRippleOptions?.namespace??""}"]`);st&&this._createRipple(st)}},this._ngZone.runOutsideAngular(()=>{for(const at of Be)this._document?.addEventListener(at,this._onInteraction,He)})}ngOnDestroy(){const at=this._hosts.keys();for(const Lt of at)this.destroyRipple(Lt);for(const Lt of Be)this._document?.removeEventListener(Lt,this._onInteraction,He)}configureRipple(at,Lt){at.setAttribute(ye,this._globalRippleOptions?.namespace??""),(Lt.className||!at.hasAttribute(Ke))&&at.setAttribute(Ke,Lt.className||""),Lt.centered&&at.setAttribute(zt,""),Lt.disabled&&at.setAttribute(Pn,"")}getRipple(at){return this._hosts.get(at)||this._createRipple(at)}setDisabled(at,Lt){const st=this._hosts.get(at);st?st.disabled=Lt:Lt?at.setAttribute(Pn,""):at.removeAttribute(Pn)}_createRipple(at){if(!this._document)return;const Lt=this._hosts.get(at);if(Lt)return Lt;at.querySelector(".mat-ripple")?.remove();const st=this._document.createElement("span");st.classList.add("mat-ripple",at.getAttribute(Ke)),at.append(st);const Qe=new T(new u.aKT(st),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return Qe._isInitialized=!0,Qe.trigger=at,Qe.centered=at.hasAttribute(zt),Qe.disabled=at.hasAttribute(Pn),this.attachRipple(at,Qe),Qe}attachRipple(at,Lt){at.removeAttribute(ye),this._hosts.set(at,Lt)}destroyRipple(at){const Lt=this._hosts.get(at);Lt&&(Lt.ngOnDestroy(),this._hosts.delete(at))}static#e=this.\u0275fac=function(Lt){return new(Lt||nn)};static#t=this.\u0275prov=u.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})(),Ti=(()=>{class nn{static#e=this.\u0275fac=function(Lt){return new(Lt||nn)};static#t=this.\u0275cmp=u.VBU({type:nn,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(Lt,st){2&Lt&&u.AVh("mdc-form-field--align-end","before"===st.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[u.aNF],attrs:be,ngContentSelectors:Ze,decls:1,vars:0,template:function(Lt,st){1&Lt&&(u.NAR(),u.SdG(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}return nn})()},5351:(tn,Ne,v)=>{"use strict";v.d(Ne,{Vh:()=>ve,bZ:()=>It,E7:()=>we,tx:()=>Rt,Yi:()=>qt,hM:()=>bt,CP:()=>Me});var u=v(7987),y=v(177),o=v(4438),L=v(9888),G=v(6860),ee=v(6939),oe=v(7336),V=v(1413),P=v(9030),B=v(7673),F=v(8203),ue=v(9172);function ge(T,N){}class Ee{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let ke=(()=>{class T extends ee.lb{constructor($,ce,he,et,$t,Bt,Vt,Mn){super(),this._elementRef=$,this._focusTrapFactory=ce,this._config=et,this._interactivityChecker=$t,this._ngZone=Bt,this._overlayRef=Vt,this._focusMonitor=Mn,this._platform=(0,o.WQX)(G.OD),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=(0,o.WQX)(o.gRc),this._injector=(0,o.WQX)(o.zZn),this._isDestroyed=!1,this.attachDomPortal=Ln=>{this._portalOutlet.hasAttached();const Ei=this._portalOutlet.attachDomPortal(Ln);return this._contentAttached(),Ei},this._document=he,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy($){this._ariaLabelledByQueue.push($),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy($){const ce=this._ariaLabelledByQueue.indexOf($);ce>-1&&(this._ariaLabelledByQueue.splice(ce,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal($){this._portalOutlet.hasAttached();const ce=this._portalOutlet.attachComponentPortal($);return this._contentAttached(),ce}attachTemplatePortal($){this._portalOutlet.hasAttached();const ce=this._portalOutlet.attachTemplatePortal($);return this._contentAttached(),ce}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus($,ce){this._interactivityChecker.isFocusable($)||($.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const he=()=>{$.removeEventListener("blur",he),$.removeEventListener("mousedown",he),$.removeAttribute("tabindex")};$.addEventListener("blur",he),$.addEventListener("mousedown",he)})),$.focus(ce)}_focusByCssSelector($,ce){let he=this._elementRef.nativeElement.querySelector($);he&&this._forceFocus(he,ce)}_trapFocus(){this._isDestroyed||(0,o.mal)(()=>{const $=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||$.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}},{injector:this._injector})}_restoreFocus(){const $=this._config.restoreFocus;let ce=null;if("string"==typeof $?ce=this._document.querySelector($):"boolean"==typeof $?ce=$?this._elementFocusedBeforeDialogWasOpened:null:$&&(ce=$),this._config.restoreFocus&&ce&&"function"==typeof ce.focus){const he=(0,G.vc)(),et=this._elementRef.nativeElement;(!he||he===this._document.body||he===et||et.contains(he))&&(this._focusMonitor?(this._focusMonitor.focusVia(ce,this._closeInteractionType),this._closeInteractionType=null):ce.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const $=this._elementRef.nativeElement,ce=(0,G.vc)();return $===ce||$.contains(ce)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,G.vc)()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(ce){return new(ce||T)(o.rXU(o.aKT),o.rXU(L.GX),o.rXU(y.qQ,8),o.rXU(Ee),o.rXU(L.Z7),o.rXU(o.SKi),o.rXU(u.yY),o.rXU(L.FN))};static#t=this.\u0275cmp=o.VBU({type:T,selectors:[["cdk-dialog-container"]],viewQuery:function(ce,he){if(1&ce&&o.GBs(ee.I3,7),2&ce){let et;o.mGM(et=o.lsd())&&(he._portalOutlet=et.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(ce,he){2&ce&&o.BMQ("id",he._config.id||null)("role",he._config.role)("aria-modal",he._config.ariaModal)("aria-labelledby",he._config.ariaLabel?null:he._ariaLabelledByQueue[0])("aria-label",he._config.ariaLabel)("aria-describedby",he._config.ariaDescribedBy||null)},standalone:!0,features:[o.Vt3,o.aNF],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ce,he){1&ce&&o.DNE(0,ge,0,0,"ng-template",0)},dependencies:[ee.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return T})();class te{constructor(N,$){this.overlayRef=N,this.config=$,this.closed=new V.B,this.disableClose=$.disableClose,this.backdropClick=N.backdropClick(),this.keydownEvents=N.keydownEvents(),this.outsidePointerEvents=N.outsidePointerEvents(),this.id=$.id,this.keydownEvents.subscribe(ce=>{ce.keyCode===oe._f&&!this.disableClose&&!(0,oe.rp)(ce)&&(ce.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=N.detachments().subscribe(()=>{!1!==$.closeOnOverlayDetachments&&this.close()})}close(N,$){if(this.containerInstance){const ce=this.closed;this.containerInstance._closeInteractionType=$?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),ce.next(N),ce.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(N="",$=""){return this.overlayRef.updateSize({width:N,height:$}),this}addPanelClass(N){return this.overlayRef.addPanelClass(N),this}removePanelClass(N){return this.overlayRef.removePanelClass(N),this}}const be=new o.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const T=(0,o.WQX)(u.hJ);return()=>T.scrollStrategies.block()}}),Ze=new o.nKC("DialogData"),gt=new o.nKC("DefaultDialogConfig");let We=0,ae=(()=>{class T{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor($,ce,he,et,$t,Bt){this._overlay=$,this._injector=ce,this._defaultOptions=he,this._parentDialog=et,this._overlayContainer=$t,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new V.B,this._afterOpenedAtThisLevel=new V.B,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,P.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,ue.Z)(void 0))),this._scrollStrategy=Bt}open($,ce){(ce={...this._defaultOptions||new Ee,...ce}).id=ce.id||"cdk-dialog-"+We++,ce.id&&this.getDialogById(ce.id);const et=this._getOverlayConfig(ce),$t=this._overlay.create(et),Bt=new te($t,ce),Vt=this._attachContainer($t,Bt,ce);return Bt.containerInstance=Vt,this._attachDialogContent($,Bt,Vt,ce),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Bt),Bt.closed.subscribe(()=>this._removeOpenDialog(Bt,!0)),this.afterOpened.next(Bt),Bt}closeAll(){me(this.openDialogs,$=>$.close())}getDialogById($){return this.openDialogs.find(ce=>ce.id===$)}ngOnDestroy(){me(this._openDialogsAtThisLevel,$=>{!1===$.config.closeOnDestroy&&this._removeOpenDialog($,!1)}),me(this._openDialogsAtThisLevel,$=>$.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig($){const ce=new u.rR({positionStrategy:$.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:$.scrollStrategy||this._scrollStrategy(),panelClass:$.panelClass,hasBackdrop:$.hasBackdrop,direction:$.direction,minWidth:$.minWidth,minHeight:$.minHeight,maxWidth:$.maxWidth,maxHeight:$.maxHeight,width:$.width,height:$.height,disposeOnNavigation:$.closeOnNavigation});return $.backdropClass&&(ce.backdropClass=$.backdropClass),ce}_attachContainer($,ce,he){const et=he.injector||he.viewContainerRef?.injector,$t=[{provide:Ee,useValue:he},{provide:te,useValue:ce},{provide:u.yY,useValue:$}];let Bt;he.container?"function"==typeof he.container?Bt=he.container:(Bt=he.container.type,$t.push(...he.container.providers(he))):Bt=ke;const Vt=new ee.A8(Bt,he.viewContainerRef,o.zZn.create({parent:et||this._injector,providers:$t}),he.componentFactoryResolver);return $.attach(Vt).instance}_attachDialogContent($,ce,he,et){if($ instanceof o.C4Q){const $t=this._createInjector(et,ce,he,void 0);let Bt={$implicit:et.data,dialogRef:ce};et.templateContext&&(Bt={...Bt,..."function"==typeof et.templateContext?et.templateContext():et.templateContext}),he.attachTemplatePortal(new ee.VA($,null,Bt,$t))}else{const $t=this._createInjector(et,ce,he,this._injector),Bt=he.attachComponentPortal(new ee.A8($,et.viewContainerRef,$t,et.componentFactoryResolver));ce.componentRef=Bt,ce.componentInstance=Bt.instance}}_createInjector($,ce,he,et){const $t=$.injector||$.viewContainerRef?.injector,Bt=[{provide:Ze,useValue:$.data},{provide:te,useValue:ce}];return $.providers&&("function"==typeof $.providers?Bt.push(...$.providers(ce,$,he)):Bt.push(...$.providers)),$.direction&&(!$t||!$t.get(F.dS,null,{optional:!0}))&&Bt.push({provide:F.dS,useValue:{value:$.direction,change:(0,B.of)()}}),o.zZn.create({parent:$t||et,providers:Bt})}_removeOpenDialog($,ce){const he=this.openDialogs.indexOf($);he>-1&&(this.openDialogs.splice(he,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((et,$t)=>{et?$t.setAttribute("aria-hidden",et):$t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),ce&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const $=this._overlayContainer.getContainerElement();if($.parentElement){const ce=$.parentElement.children;for(let he=ce.length-1;he>-1;he--){const et=ce[he];et!==$&&"SCRIPT"!==et.nodeName&&"STYLE"!==et.nodeName&&!et.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(et,et.getAttribute("aria-hidden")),et.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const $=this._parentDialog;return $?$._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(ce){return new(ce||T)(o.KVO(u.hJ),o.KVO(o.zZn),o.KVO(gt,8),o.KVO(T,12),o.KVO(u.Sf),o.KVO(be))};static#t=this.\u0275prov=o.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})();function me(T,N){let $=T.length;for(;$--;)N(T[$])}let Le=(()=>{class T{static#e=this.\u0275fac=function(ce){return new(ce||T)};static#t=this.\u0275mod=o.$C({type:T});static#n=this.\u0275inj=o.G2t({providers:[ae],imports:[u.z_,ee.jc,L.Pd,ee.jc]})}return T})();var nt=v(4085),At=v(7786),vt=v(5964),Dt=v(6697),Zt=v(5542),Fn=v(6600);function _n(T,N){}v(9969);class pi{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const _e="mdc-dialog--open",Ae="mdc-dialog--opening",J="mdc-dialog--closing";let Pe=(()=>{class T extends ke{constructor($,ce,he,et,$t,Bt,Vt,Mn,Ln){super($,ce,he,et,$t,Bt,Vt,Ln),this._animationMode=Mn,this._animationStateChanged=new o.bkB,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?Xe(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?Xe(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ht,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ae,_e)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(_e),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(_e),this._animationsEnabled?(this._hostElement.style.setProperty(ht,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(J)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount($){this._actionSectionCount+=$,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(Ae,J)}_waitForAnimationToComplete($,ce){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(ce,$)}_requestAnimationFrame($){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame($):$()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone($){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:$})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal($){const ce=super.attachComponentPortal($);return ce.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),ce}static#e=this.\u0275fac=function(ce){return new(ce||T)(o.rXU(o.aKT),o.rXU(L.GX),o.rXU(y.qQ,8),o.rXU(pi),o.rXU(L.Z7),o.rXU(o.SKi),o.rXU(u.yY),o.rXU(o.bc$,8),o.rXU(L.FN))};static#t=this.\u0275cmp=o.VBU({type:T,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(ce,he){2&ce&&(o.Mr5("id",he._config.id),o.BMQ("aria-modal",he._config.ariaModal)("role",he._config.role)("aria-labelledby",he._config.ariaLabel?null:he._ariaLabelledByQueue[0])("aria-label",he._config.ariaLabel)("aria-describedby",he._config.ariaDescribedBy||null),o.AVh("_mat-animation-noopable",!he._animationsEnabled)("mat-mdc-dialog-container-with-actions",he._actionSectionCount>0))},standalone:!0,features:[o.Vt3,o.aNF],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(ce,he){1&ce&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,_n,0,0,"ng-template",2),o.k0s()())},dependencies:[ee.I3],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}return T})();const ht="--mat-dialog-transition-duration";function Xe(T){return null==T?null:"number"==typeof T?T:T.endsWith("ms")?(0,nt.OE)(T.substring(0,T.length-2)):T.endsWith("s")?1e3*(0,nt.OE)(T.substring(0,T.length-1)):"0"===T?0:null}var Je=function(T){return T[T.OPEN=0]="OPEN",T[T.CLOSING=1]="CLOSING",T[T.CLOSED=2]="CLOSED",T}(Je||{});class Me{constructor(N,$,ce){this._ref=N,this._containerInstance=ce,this._afterOpened=new V.B,this._beforeClosed=new V.B,this._state=Je.OPEN,this.disableClose=$.disableClose,this.id=N.id,N.addPanelClass("mat-mdc-dialog-panel"),ce._animationStateChanged.pipe((0,vt.p)(he=>"opened"===he.state),(0,Dt.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ce._animationStateChanged.pipe((0,vt.p)(he=>"closed"===he.state),(0,Dt.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),N.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,At.h)(this.backdropClick(),this.keydownEvents().pipe((0,vt.p)(he=>he.keyCode===oe._f&&!this.disableClose&&!(0,oe.rp)(he)))).subscribe(he=>{this.disableClose||(he.preventDefault(),ie(this,"keydown"===he.type?"keyboard":"mouse"))})}close(N){this._result=N,this._containerInstance._animationStateChanged.pipe((0,vt.p)($=>"closing"===$.state),(0,Dt.s)(1)).subscribe($=>{this._beforeClosed.next(N),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),$.totalTime+100)}),this._state=Je.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(N){let $=this._ref.config.positionStrategy;return N&&(N.left||N.right)?N.left?$.left(N.left):$.right(N.right):$.centerHorizontally(),N&&(N.top||N.bottom)?N.top?$.top(N.top):$.bottom(N.bottom):$.centerVertically(),this._ref.updatePosition(),this}updateSize(N="",$=""){return this._ref.updateSize(N,$),this}addPanelClass(N){return this._ref.addPanelClass(N),this}removePanelClass(N){return this._ref.removePanelClass(N),this}getState(){return this._state}_finishDialogClose(){this._state=Je.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function ie(T,N,$){return T._closeInteractionType=N,T.close($)}const ve=new o.nKC("MatMdcDialogData"),le=new o.nKC("mat-mdc-dialog-default-options"),Ce=new o.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const T=(0,o.WQX)(u.hJ);return()=>T.scrollStrategies.block()}});let it=0,It=(()=>{class T{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const $=this._parentDialog;return $?$._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor($,ce,he,et,$t,Bt,Vt,Mn){this._overlay=$,this._defaultOptions=et,this._scrollStrategy=$t,this._parentDialog=Bt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new V.B,this._afterOpenedAtThisLevel=new V.B,this.dialogConfigClass=pi,this.afterAllClosed=(0,P.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,ue.Z)(void 0))),this._dialog=ce.get(ae),this._dialogRefConstructor=Me,this._dialogContainerType=Pe,this._dialogDataToken=ve}open($,ce){let he;(ce={...this._defaultOptions||new pi,...ce}).id=ce.id||"mat-mdc-dialog-"+it++,ce.scrollStrategy=ce.scrollStrategy||this._scrollStrategy();const et=this._dialog.open($,{...ce,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:ce},{provide:Ee,useValue:ce}]},templateContext:()=>({dialogRef:he}),providers:($t,Bt,Vt)=>(he=new this._dialogRefConstructor($t,ce,Vt),he.updatePosition(ce?.position),[{provide:this._dialogContainerType,useValue:Vt},{provide:this._dialogDataToken,useValue:Bt.data},{provide:this._dialogRefConstructor,useValue:he}])});return he.componentRef=et.componentRef,he.componentInstance=et.componentInstance,this.openDialogs.push(he),this.afterOpened.next(he),he.afterClosed().subscribe(()=>{const $t=this.openDialogs.indexOf(he);$t>-1&&(this.openDialogs.splice($t,1),this.openDialogs.length||this._getAfterAllClosed().next())}),he}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById($){return this.openDialogs.find(ce=>ce.id===$)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs($){let ce=$.length;for(;ce--;)$[ce].close()}static#e=this.\u0275fac=function(ce){return new(ce||T)(o.KVO(u.hJ),o.KVO(o.zZn),o.KVO(y.aZ,8),o.KVO(le,8),o.KVO(Ce),o.KVO(T,12),o.KVO(u.Sf),o.KVO(o.bc$,8))};static#t=this.\u0275prov=o.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})(),Rt=(()=>{class T{constructor($,ce,he){this.dialogRef=$,this._elementRef=ce,this._dialog=he,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=tt(this._elementRef,this._dialog.openDialogs))}ngOnChanges($){const ce=$._matDialogClose||$._matDialogCloseResult;ce&&(this.dialogResult=ce.currentValue)}_onButtonClick($){ie(this.dialogRef,0===$.screenX&&0===$.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(ce){return new(ce||T)(o.rXU(Me,8),o.rXU(o.aKT),o.rXU(It))};static#t=this.\u0275dir=o.FsC({type:T,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ce,he){1&ce&&o.bIt("click",function($t){return he._onButtonClick($t)}),2&ce&&o.BMQ("aria-label",he.ariaLabel||null)("type",he.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[o.OA$]})}return T})(),kn=(()=>{class T{constructor($,ce,he){this._dialogRef=$,this._elementRef=ce,this._dialog=he}ngOnInit(){this._dialogRef||(this._dialogRef=tt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static#e=this.\u0275fac=function(ce){return new(ce||T)(o.rXU(Me,8),o.rXU(o.aKT),o.rXU(It))};static#t=this.\u0275dir=o.FsC({type:T,standalone:!0})}return T})(),qt=(()=>{class T{static#e=this.\u0275fac=function(ce){return new(ce||T)};static#t=this.\u0275dir=o.FsC({type:T,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[o.nM4([Zt.uv])]})}return T})(),we=(()=>{class T extends kn{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static#e=this.\u0275fac=(()=>{let $;return function(he){return($||($=o.xGo(T)))(he||T)}})();static#t=this.\u0275dir=o.FsC({type:T,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(ce,he){2&ce&&o.AVh("mat-mdc-dialog-actions-align-start","start"===he.align)("mat-mdc-dialog-actions-align-center","center"===he.align)("mat-mdc-dialog-actions-align-end","end"===he.align)},inputs:{align:"align"},standalone:!0,features:[o.Vt3]})}return T})();function tt(T,N){let $=T.nativeElement.parentElement;for(;$&&!$.classList.contains("mat-mdc-dialog-container");)$=$.parentElement;return $?N.find(ce=>ce.id===$.id):null}let bt=(()=>{class T{static#e=this.\u0275fac=function(ce){return new(ce||T)};static#t=this.\u0275mod=o.$C({type:T});static#n=this.\u0275inj=o.G2t({providers:[It],imports:[Le,u.z_,ee.jc,Fn.yE,Fn.yE]})}return T})()},1997:(tn,Ne,v)=>{"use strict";v.d(Ne,{q:()=>L,w:()=>G});var u=v(4438),y=v(4085),o=v(6600);let L=(()=>{class ee{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(V){this._vertical=(0,y.he)(V)}get inset(){return this._inset}set inset(V){this._inset=(0,y.he)(V)}static#e=this.\u0275fac=function(P){return new(P||ee)};static#t=this.\u0275cmp=u.VBU({type:ee,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(P,B){2&P&&(u.BMQ("aria-orientation",B.vertical?"vertical":"horizontal"),u.AVh("mat-divider-vertical",B.vertical)("mat-divider-horizontal",!B.vertical)("mat-divider-inset",B.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[u.aNF],decls:0,vars:0,template:function(P,B){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-app-outline));border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-app-outline));border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return ee})(),G=(()=>{class ee{static#e=this.\u0275fac=function(P){return new(P||ee)};static#t=this.\u0275mod=u.$C({type:ee});static#n=this.\u0275inj=u.G2t({imports:[o.yE,o.yE]})}return ee})()},2102:(tn,Ne,v)=>{"use strict";v.d(Ne,{xb:()=>ce,U$:()=>he,TL:()=>Ce,rl:()=>Ln,qT:()=>Q,RG:()=>Ei,MV:()=>un,nJ:()=>ie,JW:()=>It,yw:()=>Rt});var u=v(4438),y=v(8203),o=v(4085),L=v(6860),G=v(177),ee=v(8359),oe=v(1413),V=v(7786),P=v(6977),B=v(1985),F=v(5964),ue=v(4668);class Ee{constructor(En){this._box=En,this._destroyed=new oe.B,this._resizeSubject=new oe.B,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(He=>this._resizeSubject.next(He)))}observe(En){return this._elementObservables.has(En)||this._elementObservables.set(En,new B.c(He=>{const Be=this._resizeSubject.subscribe(He);return this._resizeObserver?.observe(En,{box:this._box}),()=>{this._resizeObserver?.unobserve(En),Be.unsubscribe(),this._elementObservables.delete(En)}}).pipe((0,F.p)(He=>He.some(Be=>Be.target===En)),(0,ue.t)({bufferSize:1,refCount:!0}),(0,P.Q)(this._destroyed))),this._elementObservables.get(En)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Re=(()=>{class Jt{constructor(){this._observers=new Map,this._ngZone=(0,u.WQX)(u.SKi)}ngOnDestroy(){for(const[,He]of this._observers)He.destroy();this._observers.clear()}observe(He,Be){const ye=Be?.box||"content-box";return this._observers.has(ye)||this._observers.set(ye,new Ee(ye)),this._observers.get(ye).observe(He)}static#e=this.\u0275fac=function(Be){return new(Be||Jt)};static#t=this.\u0275prov=u.jDH({token:Jt,factory:Jt.\u0275fac,providedIn:"root"})}return Jt})();var ke=v(9969),te=v(2318),be=v(6600);const Ze=["notch"],gt=["matFormFieldNotchedOutline",""],je=["*"],qe=["textField"],We=["iconPrefixContainer"],ae=["textPrefixContainer"],me=["iconSuffixContainer"],Le=["textSuffixContainer"],nt=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],At=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function vt(Jt,En){1&Jt&&u.nrm(0,"span",21)}function Dt(Jt,En){if(1&Jt&&(u.j41(0,"label",20),u.SdG(1,1),u.DNE(2,vt,1,0,"span",21),u.k0s()),2&Jt){const He=u.XpG(2);u.Y8G("floating",He._shouldLabelFloat())("monitorResize",He._hasOutline())("id",He._labelId),u.BMQ("for",He._control.disableAutomaticLabeling?null:He._control.id),u.R7$(2),u.vxM(!He.hideRequiredMarker&&He._control.required?2:-1)}}function Zt(Jt,En){if(1&Jt&&u.DNE(0,Dt,3,5,"label",20),2&Jt){const He=u.XpG();u.vxM(He._hasFloatingLabel()?0:-1)}}function Fn(Jt,En){1&Jt&&u.nrm(0,"div",7)}function Vn(Jt,En){}function _n(Jt,En){if(1&Jt&&u.DNE(0,Vn,0,0,"ng-template",13),2&Jt){u.XpG(2);const He=u.sdS(1);u.Y8G("ngTemplateOutlet",He)}}function pi(Jt,En){if(1&Jt&&(u.j41(0,"div",9),u.DNE(1,_n,1,1,null,13),u.k0s()),2&Jt){const He=u.XpG();u.Y8G("matFormFieldNotchedOutlineOpen",He._shouldLabelFloat()),u.R7$(),u.vxM(He._forceDisplayInfixLabel()?-1:1)}}function _e(Jt,En){1&Jt&&(u.j41(0,"div",10,2),u.SdG(2,2),u.k0s())}function Ae(Jt,En){1&Jt&&(u.j41(0,"div",11,3),u.SdG(2,3),u.k0s())}function J(Jt,En){}function Ie(Jt,En){if(1&Jt&&u.DNE(0,J,0,0,"ng-template",13),2&Jt){u.XpG();const He=u.sdS(1);u.Y8G("ngTemplateOutlet",He)}}function Ot(Jt,En){1&Jt&&(u.j41(0,"div",14,4),u.SdG(2,4),u.k0s())}function Pe(Jt,En){1&Jt&&(u.j41(0,"div",15,5),u.SdG(2,5),u.k0s())}function ht(Jt,En){1&Jt&&u.nrm(0,"div",16)}function Xe(Jt,En){if(1&Jt&&(u.j41(0,"div",18),u.SdG(1,6),u.k0s()),2&Jt){const He=u.XpG();u.Y8G("@transitionMessages",He._subscriptAnimationState)}}function Je(Jt,En){if(1&Jt&&(u.j41(0,"mat-hint",22),u.EFF(1),u.k0s()),2&Jt){const He=u.XpG(2);u.Y8G("id",He._hintLabelId),u.R7$(),u.JRh(He.hintLabel)}}function Me(Jt,En){if(1&Jt&&(u.j41(0,"div",19),u.DNE(1,Je,2,2,"mat-hint",22),u.SdG(2,7),u.nrm(3,"div",23),u.SdG(4,8),u.k0s()),2&Jt){const He=u.XpG();u.Y8G("@transitionMessages",He._subscriptAnimationState),u.R7$(),u.vxM(He.hintLabel?1:-1)}}let ie=(()=>{class Jt{static#e=this.\u0275fac=function(Be){return new(Be||Jt)};static#t=this.\u0275dir=u.FsC({type:Jt,selectors:[["mat-label"]],standalone:!0})}return Jt})(),ve=0;const le=new u.nKC("MatError");let Ce=(()=>{class Jt{constructor(He,Be){this.id="mat-mdc-error-"+ve++,He||Be.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(Be){return new(Be||Jt)(u.kS0("aria-live"),u.rXU(u.aKT))};static#t=this.\u0275dir=u.FsC({type:Jt,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(Be,ye){2&Be&&u.Mr5("id",ye.id)},inputs:{id:"id"},standalone:!0,features:[u.Jv_([{provide:le,useExisting:Jt}])]})}return Jt})(),dt=0,un=(()=>{class Jt{constructor(){this.align="start",this.id="mat-mdc-hint-"+dt++}static#e=this.\u0275fac=function(Be){return new(Be||Jt)};static#t=this.\u0275dir=u.FsC({type:Jt,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(Be,ye){2&Be&&(u.Mr5("id",ye.id),u.BMQ("align",null),u.AVh("mat-mdc-form-field-hint-end","end"===ye.align))},inputs:{align:"align",id:"id"},standalone:!0})}return Jt})();const it=new u.nKC("MatPrefix");let It=(()=>{class Jt{constructor(){this._isText=!1}set _isTextSelector(He){this._isText=!0}static#e=this.\u0275fac=function(Be){return new(Be||Jt)};static#t=this.\u0275dir=u.FsC({type:Jt,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[u.Jv_([{provide:it,useExisting:Jt}])]})}return Jt})();const Ft=new u.nKC("MatSuffix");let Rt=(()=>{class Jt{constructor(){this._isText=!1}set _isTextSelector(He){this._isText=!0}static#e=this.\u0275fac=function(Be){return new(Be||Jt)};static#t=this.\u0275dir=u.FsC({type:Jt,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[u.Jv_([{provide:Ft,useExisting:Jt}])]})}return Jt})();const kn=new u.nKC("FloatingLabelParent");let hi=(()=>{class Jt{get floating(){return this._floating}set floating(He){this._floating=He,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(He){this._monitorResize=He,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(He){this._elementRef=He,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,u.WQX)(Re),this._ngZone=(0,u.WQX)(u.SKi),this._parent=(0,u.WQX)(kn),this._resizeSubscription=new ee.yU}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function qt(Jt){if(null!==Jt.offsetParent)return Jt.scrollWidth;const He=Jt.cloneNode(!0);He.style.setProperty("position","absolute"),He.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(He);const Be=He.scrollWidth;return He.remove(),Be}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(Be){return new(Be||Jt)(u.rXU(u.aKT))};static#t=this.\u0275dir=u.FsC({type:Jt,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(Be,ye){2&Be&&u.AVh("mdc-floating-label--float-above",ye.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}return Jt})();const we="mdc-line-ripple--active",tt="mdc-line-ripple--deactivating";let rt=(()=>{class Jt{constructor(He,Be){this._elementRef=He,this._handleTransitionEnd=ye=>{const Ke=this._elementRef.nativeElement.classList,zt=Ke.contains(tt);"opacity"===ye.propertyName&&zt&&Ke.remove(we,tt)},Be.runOutsideAngular(()=>{He.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const He=this._elementRef.nativeElement.classList;He.remove(tt),He.add(we)}deactivate(){this._elementRef.nativeElement.classList.add(tt)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(Be){return new(Be||Jt)(u.rXU(u.aKT),u.rXU(u.SKi))};static#t=this.\u0275dir=u.FsC({type:Jt,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}return Jt})(),bt=(()=>{class Jt{constructor(He,Be){this._elementRef=He,this._ngZone=Be,this.open=!1}ngAfterViewInit(){const He=this._elementRef.nativeElement.querySelector(".mdc-floating-label");He?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(He.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>He.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(He){this._notch.nativeElement.style.width=this.open&&He?`calc(${He}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(Be){return new(Be||Jt)(u.rXU(u.aKT),u.rXU(u.SKi))};static#t=this.\u0275cmp=u.VBU({type:Jt,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(Be,ye){if(1&Be&&u.GBs(Ze,5),2&Be){let Ke;u.mGM(Ke=u.lsd())&&(ye._notch=Ke.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(Be,ye){2&Be&&u.AVh("mdc-notched-outline--notched",ye.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[u.aNF],attrs:gt,ngContentSelectors:je,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(Be,ye){1&Be&&(u.NAR(),u.nrm(0,"div",1),u.j41(1,"div",2,0),u.SdG(3),u.k0s(),u.nrm(4,"div",3))},encapsulation:2,changeDetection:0})}return Jt})();const on={transitionMessages:(0,ke.hZ)("transitionMessages",[(0,ke.wk)("enter",(0,ke.iF)({opacity:1,transform:"translateY(0%)"})),(0,ke.kY)("void => enter",[(0,ke.iF)({opacity:0,transform:"translateY(-5px)"}),(0,ke.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Q=(()=>{class Jt{static#e=this.\u0275fac=function(Be){return new(Be||Jt)};static#t=this.\u0275dir=u.FsC({type:Jt})}return Jt})();const ce=new u.nKC("MatFormField"),he=new u.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let et=0,Ln=(()=>{class Jt{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(He){this._hideRequiredMarker=(0,o.he)(He)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(He){He!==this._floatLabel&&(this._floatLabel=He,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(He){const Be=this._appearance;this._appearance=He||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==Be&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(He){this._subscriptSizing=He||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(He){this._hintLabel=He,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(He){this._explicitFormFieldControl=He}constructor(He,Be,ye,Ke,zt,Pn,vi,Ti){this._elementRef=He,this._changeDetectorRef=Be,this._dir=Ke,this._platform=zt,this._defaults=Pn,this._animationMode=vi,this._labelChild=(0,u.sbv)(ie),this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+et++,this._hintLabelId="mat-mdc-hint-"+et++,this._subscriptAnimationState="",this._destroyed=new oe.B,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=(0,u.WQX)(u.zZn),this.getLabelId=(0,u.EWP)(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=(0,u.EWP)(()=>!!this._labelChild()),Pn&&(Pn.appearance&&(this.appearance=Pn.appearance),this._hideRequiredMarker=!!Pn?.hideRequiredMarker,Pn.color&&(this.color=Pn.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(He){const Be=this._control,ye="mat-mdc-form-field-type-";He&&this._elementRef.nativeElement.classList.remove(ye+He.controlType),Be.controlType&&this._elementRef.nativeElement.classList.add(ye+Be.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=Be.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),Be.ngControl&&Be.ngControl.valueChanges&&(this._valueChanges=Be.ngControl.valueChanges.pipe((0,P.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(He=>!He._isText),this._hasTextPrefix=!!this._prefixChildren.find(He=>He._isText),this._hasIconSuffix=!!this._suffixChildren.find(He=>!He._isText),this._hasTextSuffix=!!this._suffixChildren.find(He=>He._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,V.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),(0,u.Tzd)(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe((0,P.Q)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return!!this._hasFloatingLabel()&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_shouldForward(He){const Be=this._control?this._control.ngControl:null;return Be&&Be[He]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let He=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&He.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Be=this._hintChildren?this._hintChildren.find(Ke=>"start"===Ke.align):null,ye=this._hintChildren?this._hintChildren.find(Ke=>"end"===Ke.align):null;Be?He.push(Be.id):this._hintLabel&&He.push(this._hintLabelId),ye&&He.push(ye.id)}else this._errorChildren&&He.push(...this._errorChildren.map(Be=>Be.id));this._control.setDescribedByIds(He)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;const He=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(He.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdate=!0);const Be=this._iconPrefixContainer?.nativeElement,ye=this._textPrefixContainer?.nativeElement,Ke=this._iconSuffixContainer?.nativeElement,zt=this._textSuffixContainer?.nativeElement,Pn=Be?.getBoundingClientRect().width??0,vi=ye?.getBoundingClientRect().width??0,Ti=Ke?.getBoundingClientRect().width??0,nn=zt?.getBoundingClientRect().width??0;He.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Pn+vi}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`,this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Pn+vi+Ti+nn}px)`)}_isAttachedToDom(){const He=this._elementRef.nativeElement;if(He.getRootNode){const Be=He.getRootNode();return Be&&Be!==He}return document.documentElement.contains(He)}static#e=this.\u0275fac=function(Be){return new(Be||Jt)(u.rXU(u.aKT),u.rXU(u.gRc),u.rXU(u.SKi),u.rXU(y.dS),u.rXU(L.OD),u.rXU(he,8),u.rXU(u.bc$,8),u.rXU(G.qQ))};static#t=this.\u0275cmp=u.VBU({type:Jt,selectors:[["mat-form-field"]],contentQueries:function(Be,ye,Ke){if(1&Be&&(u.C6U(Ke,ye._labelChild,ie,5),u.wni(Ke,Q,5),u.wni(Ke,it,5),u.wni(Ke,Ft,5),u.wni(Ke,le,5),u.wni(Ke,un,5)),2&Be){let zt;u.NyB(),u.mGM(zt=u.lsd())&&(ye._formFieldControl=zt.first),u.mGM(zt=u.lsd())&&(ye._prefixChildren=zt),u.mGM(zt=u.lsd())&&(ye._suffixChildren=zt),u.mGM(zt=u.lsd())&&(ye._errorChildren=zt),u.mGM(zt=u.lsd())&&(ye._hintChildren=zt)}},viewQuery:function(Be,ye){if(1&Be&&(u.GBs(qe,5),u.GBs(We,5),u.GBs(ae,5),u.GBs(me,5),u.GBs(Le,5),u.GBs(hi,5),u.GBs(bt,5),u.GBs(rt,5)),2&Be){let Ke;u.mGM(Ke=u.lsd())&&(ye._textField=Ke.first),u.mGM(Ke=u.lsd())&&(ye._iconPrefixContainer=Ke.first),u.mGM(Ke=u.lsd())&&(ye._textPrefixContainer=Ke.first),u.mGM(Ke=u.lsd())&&(ye._iconSuffixContainer=Ke.first),u.mGM(Ke=u.lsd())&&(ye._textSuffixContainer=Ke.first),u.mGM(Ke=u.lsd())&&(ye._floatingLabel=Ke.first),u.mGM(Ke=u.lsd())&&(ye._notchedOutline=Ke.first),u.mGM(Ke=u.lsd())&&(ye._lineRipple=Ke.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(Be,ye){2&Be&&u.AVh("mat-mdc-form-field-label-always-float",ye._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",ye._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",ye._hasIconSuffix)("mat-form-field-invalid",ye._control.errorState)("mat-form-field-disabled",ye._control.disabled)("mat-form-field-autofilled",ye._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===ye._animationMode)("mat-form-field-appearance-fill","fill"==ye.appearance)("mat-form-field-appearance-outline","outline"==ye.appearance)("mat-form-field-hide-placeholder",ye._hasFloatingLabel()&&!ye._shouldLabelFloat())("mat-focused",ye._control.focused)("mat-primary","accent"!==ye.color&&"warn"!==ye.color)("mat-accent","accent"===ye.color)("mat-warn","warn"===ye.color)("ng-untouched",ye._shouldForward("untouched"))("ng-touched",ye._shouldForward("touched"))("ng-pristine",ye._shouldForward("pristine"))("ng-dirty",ye._shouldForward("dirty"))("ng-valid",ye._shouldForward("valid"))("ng-invalid",ye._shouldForward("invalid"))("ng-pending",ye._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[u.Jv_([{provide:ce,useExisting:Jt},{provide:kn,useExisting:Jt}]),u.aNF],ngContentSelectors:At,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(Be,ye){if(1&Be){const Ke=u.RV6();u.NAR(nt),u.DNE(0,Zt,1,1,"ng-template",null,0,u.C5r),u.j41(2,"div",6,1),u.bIt("click",function(Pn){return u.eBV(Ke),u.Njj(ye._control.onContainerClick(Pn))}),u.DNE(4,Fn,1,0,"div",7),u.j41(5,"div",8),u.DNE(6,pi,2,2,"div",9)(7,_e,3,0,"div",10)(8,Ae,3,0,"div",11),u.j41(9,"div",12),u.DNE(10,Ie,1,1,null,13),u.SdG(11),u.k0s(),u.DNE(12,Ot,3,0,"div",14)(13,Pe,3,0,"div",15),u.k0s(),u.DNE(14,ht,1,0,"div",16),u.k0s(),u.j41(15,"div",17),u.DNE(16,Xe,2,1,"div",18)(17,Me,5,2,"div",19),u.k0s()}if(2&Be){let Ke;u.R7$(2),u.AVh("mdc-text-field--filled",!ye._hasOutline())("mdc-text-field--outlined",ye._hasOutline())("mdc-text-field--no-label",!ye._hasFloatingLabel())("mdc-text-field--disabled",ye._control.disabled)("mdc-text-field--invalid",ye._control.errorState),u.R7$(2),u.vxM(ye._hasOutline()||ye._control.disabled?-1:4),u.R7$(2),u.vxM(ye._hasOutline()?6:-1),u.R7$(),u.vxM(ye._hasIconPrefix?7:-1),u.R7$(),u.vxM(ye._hasTextPrefix?8:-1),u.R7$(2),u.vxM(!ye._hasOutline()||ye._forceDisplayInfixLabel()?10:-1),u.R7$(2),u.vxM(ye._hasTextSuffix?12:-1),u.R7$(),u.vxM(ye._hasIconSuffix?13:-1),u.R7$(),u.vxM(ye._hasOutline()?-1:14),u.R7$(),u.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===ye.subscriptSizing),u.R7$(),u.vxM("error"===(Ke=ye._getDisplayedMessages())?16:"hint"===Ke?17:-1)}},dependencies:[hi,bt,G.T3,rt,un],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-app-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-app-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-app-outline));border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-app-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-app-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-app-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-app-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-app-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-app-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-app-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-app-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-app-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-app-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-app-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-app-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-app-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-app-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-app-body-large-weight))}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-app-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-app-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-app-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[on.transitionMessages]},changeDetection:0})}return Jt})(),Ei=(()=>{class Jt{static#e=this.\u0275fac=function(Be){return new(Be||Jt)};static#t=this.\u0275mod=u.$C({type:Jt});static#n=this.\u0275inj=u.G2t({imports:[be.yE,G.MD,te.w5,be.yE]})}return Jt})()},9213:(tn,Ne,v)=>{"use strict";v.d(Ne,{An:()=>Ae,m_:()=>J,tp:()=>me});var u=v(4438),y=v(6600),o=v(177),L=v(7673),G=v(8810),ee=v(7468),oe=v(8359),V=v(8141),P=v(6354),B=v(9437),F=v(980),ue=v(7647),ge=v(6697),Ee=v(1626),Re=v(345);const ke=["*"];let te;function Ze(Ie){return function be(){if(void 0===te&&(te=null,typeof window<"u")){const Ie=window;void 0!==Ie.trustedTypes&&(te=Ie.trustedTypes.createPolicy("angular#components",{createHTML:Ot=>Ot}))}return te}()?.createHTML(Ie)||Ie}function gt(Ie){return Error(`Unable to find icon with the name "${Ie}"`)}function qe(Ie){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Ie}".`)}function We(Ie){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Ie}".`)}class ae{constructor(Ot,Pe,ht){this.url=Ot,this.svgText=Pe,this.options=ht}}let me=(()=>{class Ie{constructor(Pe,ht,Xe,Je){this._httpClient=Pe,this._sanitizer=ht,this._errorHandler=Je,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Xe}addSvgIcon(Pe,ht,Xe){return this.addSvgIconInNamespace("",Pe,ht,Xe)}addSvgIconLiteral(Pe,ht,Xe){return this.addSvgIconLiteralInNamespace("",Pe,ht,Xe)}addSvgIconInNamespace(Pe,ht,Xe,Je){return this._addSvgIconConfig(Pe,ht,new ae(Xe,null,Je))}addSvgIconResolver(Pe){return this._resolvers.push(Pe),this}addSvgIconLiteralInNamespace(Pe,ht,Xe,Je){const Me=this._sanitizer.sanitize(u.WPN.HTML,Xe);if(!Me)throw We(Xe);const ie=Ze(Me);return this._addSvgIconConfig(Pe,ht,new ae("",ie,Je))}addSvgIconSet(Pe,ht){return this.addSvgIconSetInNamespace("",Pe,ht)}addSvgIconSetLiteral(Pe,ht){return this.addSvgIconSetLiteralInNamespace("",Pe,ht)}addSvgIconSetInNamespace(Pe,ht,Xe){return this._addSvgIconSetConfig(Pe,new ae(ht,null,Xe))}addSvgIconSetLiteralInNamespace(Pe,ht,Xe){const Je=this._sanitizer.sanitize(u.WPN.HTML,ht);if(!Je)throw We(ht);const Me=Ze(Je);return this._addSvgIconSetConfig(Pe,new ae("",Me,Xe))}registerFontClassAlias(Pe,ht=Pe){return this._fontCssClassesByAlias.set(Pe,ht),this}classNameForFontAlias(Pe){return this._fontCssClassesByAlias.get(Pe)||Pe}setDefaultFontSetClass(...Pe){return this._defaultFontSetClass=Pe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Pe){const ht=this._sanitizer.sanitize(u.WPN.RESOURCE_URL,Pe);if(!ht)throw qe(Pe);const Xe=this._cachedIconsByUrl.get(ht);return Xe?(0,L.of)(At(Xe)):this._loadSvgIconFromConfig(new ae(Pe,null)).pipe((0,V.M)(Je=>this._cachedIconsByUrl.set(ht,Je)),(0,P.T)(Je=>At(Je)))}getNamedSvgIcon(Pe,ht=""){const Xe=vt(ht,Pe);let Je=this._svgIconConfigs.get(Xe);if(Je)return this._getSvgFromConfig(Je);if(Je=this._getIconConfigFromResolvers(ht,Pe),Je)return this._svgIconConfigs.set(Xe,Je),this._getSvgFromConfig(Je);const Me=this._iconSetConfigs.get(ht);return Me?this._getSvgFromIconSetConfigs(Pe,Me):(0,G.$)(gt(Xe))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Pe){return Pe.svgText?(0,L.of)(At(this._svgElementFromConfig(Pe))):this._loadSvgIconFromConfig(Pe).pipe((0,P.T)(ht=>At(ht)))}_getSvgFromIconSetConfigs(Pe,ht){const Xe=this._extractIconWithNameFromAnySet(Pe,ht);if(Xe)return(0,L.of)(Xe);const Je=ht.filter(Me=>!Me.svgText).map(Me=>this._loadSvgIconSetFromConfig(Me).pipe((0,B.W)(ie=>{const le=`Loading icon set URL: ${this._sanitizer.sanitize(u.WPN.RESOURCE_URL,Me.url)} failed: ${ie.message}`;return this._errorHandler.handleError(new Error(le)),(0,L.of)(null)})));return(0,ee.p)(Je).pipe((0,P.T)(()=>{const Me=this._extractIconWithNameFromAnySet(Pe,ht);if(!Me)throw gt(Pe);return Me}))}_extractIconWithNameFromAnySet(Pe,ht){for(let Xe=ht.length-1;Xe>=0;Xe--){const Je=ht[Xe];if(Je.svgText&&Je.svgText.toString().indexOf(Pe)>-1){const Me=this._svgElementFromConfig(Je),ie=this._extractSvgIconFromSet(Me,Pe,Je.options);if(ie)return ie}}return null}_loadSvgIconFromConfig(Pe){return this._fetchIcon(Pe).pipe((0,V.M)(ht=>Pe.svgText=ht),(0,P.T)(()=>this._svgElementFromConfig(Pe)))}_loadSvgIconSetFromConfig(Pe){return Pe.svgText?(0,L.of)(null):this._fetchIcon(Pe).pipe((0,V.M)(ht=>Pe.svgText=ht))}_extractSvgIconFromSet(Pe,ht,Xe){const Je=Pe.querySelector(`[id="${ht}"]`);if(!Je)return null;const Me=Je.cloneNode(!0);if(Me.removeAttribute("id"),"svg"===Me.nodeName.toLowerCase())return this._setSvgAttributes(Me,Xe);if("symbol"===Me.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Me),Xe);const ie=this._svgElementFromString(Ze(""));return ie.appendChild(Me),this._setSvgAttributes(ie,Xe)}_svgElementFromString(Pe){const ht=this._document.createElement("DIV");ht.innerHTML=Pe;const Xe=ht.querySelector("svg");if(!Xe)throw Error(" tag not found");return Xe}_toSvgElement(Pe){const ht=this._svgElementFromString(Ze("")),Xe=Pe.attributes;for(let Je=0;JeZe(le)),(0,F.j)(()=>this._inProgressUrlFetches.delete(Me)),(0,ue.u)());return this._inProgressUrlFetches.set(Me,ve),ve}_addSvgIconConfig(Pe,ht,Xe){return this._svgIconConfigs.set(vt(Pe,ht),Xe),this}_addSvgIconSetConfig(Pe,ht){const Xe=this._iconSetConfigs.get(Pe);return Xe?Xe.push(ht):this._iconSetConfigs.set(Pe,[ht]),this}_svgElementFromConfig(Pe){if(!Pe.svgElement){const ht=this._svgElementFromString(Pe.svgText);this._setSvgAttributes(ht,Pe.options),Pe.svgElement=ht}return Pe.svgElement}_getIconConfigFromResolvers(Pe,ht){for(let Xe=0;XeOt?Ot.pathname+Ot.search:""}}}),_n=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],pi=_n.map(Ie=>`[${Ie}]`).join(", "),_e=/^url\(['"]?#(.*?)['"]?\)$/;let Ae=(()=>{class Ie{get color(){return this._color||this._defaultColor}set color(Pe){this._color=Pe}get svgIcon(){return this._svgIcon}set svgIcon(Pe){Pe!==this._svgIcon&&(Pe?this._updateSvgIcon(Pe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Pe)}get fontSet(){return this._fontSet}set fontSet(Pe){const ht=this._cleanupFontValue(Pe);ht!==this._fontSet&&(this._fontSet=ht,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Pe){const ht=this._cleanupFontValue(Pe);ht!==this._fontIcon&&(this._fontIcon=ht,this._updateFontIconClasses())}constructor(Pe,ht,Xe,Je,Me,ie){this._elementRef=Pe,this._iconRegistry=ht,this._location=Je,this._errorHandler=Me,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=oe.yU.EMPTY,ie&&(ie.color&&(this.color=this._defaultColor=ie.color),ie.fontSet&&(this.fontSet=ie.fontSet)),Xe||Pe.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Pe){if(!Pe)return["",""];const ht=Pe.split(":");switch(ht.length){case 1:return["",ht[0]];case 2:return ht;default:throw Error(`Invalid icon name: "${Pe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Pe=this._elementsWithExternalReferences;if(Pe&&Pe.size){const ht=this._location.getPathname();ht!==this._previousPath&&(this._previousPath=ht,this._prependPathToReferences(ht))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Pe){this._clearSvgElement();const ht=this._location.getPathname();this._previousPath=ht,this._cacheChildrenWithExternalReferences(Pe),this._prependPathToReferences(ht),this._elementRef.nativeElement.appendChild(Pe)}_clearSvgElement(){const Pe=this._elementRef.nativeElement;let ht=Pe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();ht--;){const Xe=Pe.childNodes[ht];(1!==Xe.nodeType||"svg"===Xe.nodeName.toLowerCase())&&Xe.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Pe=this._elementRef.nativeElement,ht=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Xe=>Xe.length>0);this._previousFontSetClass.forEach(Xe=>Pe.classList.remove(Xe)),ht.forEach(Xe=>Pe.classList.add(Xe)),this._previousFontSetClass=ht,this.fontIcon!==this._previousFontIconClass&&!ht.includes("mat-ligature-font")&&(this._previousFontIconClass&&Pe.classList.remove(this._previousFontIconClass),this.fontIcon&&Pe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Pe){return"string"==typeof Pe?Pe.trim().split(" ")[0]:Pe}_prependPathToReferences(Pe){const ht=this._elementsWithExternalReferences;ht&&ht.forEach((Xe,Je)=>{Xe.forEach(Me=>{Je.setAttribute(Me.name,`url('${Pe}#${Me.value}')`)})})}_cacheChildrenWithExternalReferences(Pe){const ht=Pe.querySelectorAll(pi),Xe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Je=0;Je{const ie=ht[Je],ve=ie.getAttribute(Me),le=ve?ve.match(_e):null;if(le){let Ce=Xe.get(ie);Ce||(Ce=[],Xe.set(ie,Ce)),Ce.push({name:Me,value:le[1]})}})}_updateSvgIcon(Pe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Pe){const[ht,Xe]=this._splitIconName(Pe);ht&&(this._svgNamespace=ht),Xe&&(this._svgName=Xe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Xe,ht).pipe((0,ge.s)(1)).subscribe(Je=>this._setSvgElement(Je),Je=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${ht}:${Xe}! ${Je.message}`))})}}static#e=this.\u0275fac=function(ht){return new(ht||Ie)(u.rXU(u.aKT),u.rXU(me),u.kS0("aria-hidden"),u.rXU(Fn),u.rXU(u.zcH),u.rXU(Zt,8))};static#t=this.\u0275cmp=u.VBU({type:Ie,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(ht,Xe){2&ht&&(u.BMQ("data-mat-icon-type",Xe._usingFontIcon()?"font":"svg")("data-mat-icon-name",Xe._svgName||Xe.fontIcon)("data-mat-icon-namespace",Xe._svgNamespace||Xe.fontSet)("fontIcon",Xe._usingFontIcon()?Xe.fontIcon:null),u.HbH(Xe.color?"mat-"+Xe.color:""),u.AVh("mat-icon-inline",Xe.inline)("mat-icon-no-color","primary"!==Xe.color&&"accent"!==Xe.color&&"warn"!==Xe.color))},inputs:{color:"color",inline:[2,"inline","inline",u.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[u.GFd,u.aNF],ngContentSelectors:ke,decls:1,vars:0,template:function(ht,Xe){1&ht&&(u.NAR(),u.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return Ie})(),J=(()=>{class Ie{static#e=this.\u0275fac=function(ht){return new(ht||Ie)};static#t=this.\u0275mod=u.$C({type:Ie});static#n=this.\u0275inj=u.G2t({imports:[y.yE,y.yE]})}return Ie})()},9042:(tn,Ne,v)=>{"use strict";v.d(Ne,{fS:()=>Ee,fg:()=>ge});var u=v(4085),y=v(6860),o=v(7403),L=v(4438),G=v(9417),ee=v(6600),oe=v(2102),V=v(1413);const B=new L.nKC("MAT_INPUT_VALUE_ACCESSOR"),F=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let ue=0,ge=(()=>{class Re{get disabled(){return this._disabled}set disabled(te){this._disabled=(0,u.he)(te),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(te){this._id=te||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(G.k0.required)??!1}set required(te){this._required=(0,u.he)(te)}get type(){return this._type}set type(te){this._type=te||"text",this._validateType(),!this._isTextarea&&(0,y.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(te){this._errorStateTracker.matcher=te}get value(){return this._inputValueAccessor.value}set value(te){te!==this.value&&(this._inputValueAccessor.value=te,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(te){this._readonly=(0,u.he)(te)}get errorState(){return this._errorStateTracker.errorState}set errorState(te){this._errorStateTracker.errorState=te}constructor(te,be,Ze,gt,je,qe,We,ae,me,Le){this._elementRef=te,this._platform=be,this.ngControl=Ze,this._autofillMonitor=ae,this._ngZone=me,this._formField=Le,this._uid="mat-input-"+ue++,this._webkitBlinkWheelListenerAttached=!1,this.focused=!1,this.stateChanges=new V.B,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(vt=>(0,y.MU)().has(vt)),this._iOSKeyupListener=vt=>{const Dt=vt.target;!Dt.value&&0===Dt.selectionStart&&0===Dt.selectionEnd&&(Dt.setSelectionRange(1,1),Dt.setSelectionRange(0,0))},this._webkitBlinkWheelListener=()=>{};const nt=this._elementRef.nativeElement,At=nt.nodeName.toLowerCase();this._inputValueAccessor=We||nt,this._previousNativeValue=this.value,this.id=this.id,be.IOS&&me.runOutsideAngular(()=>{te.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new ee.X0(qe,Ze,je,gt,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===At,this._isTextarea="textarea"===At,this._isInFormField=!!Le,this._isNativeSelect&&(this.controlType=nt.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(te=>{this.autofilled=te.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(te){this._elementRef.nativeElement.focus(te)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(te){te!==this.focused&&(this.focused=te,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const te=this._elementRef.nativeElement.value;this._previousNativeValue!==te&&(this._previousNativeValue=te,this.stateChanges.next())}_dirtyCheckPlaceholder(){const te=this._getPlaceholder();if(te!==this._previousPlaceholder){const be=this._elementRef.nativeElement;this._previousPlaceholder=te,te?be.setAttribute("placeholder",te):be.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){F.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let te=this._elementRef.nativeElement.validity;return te&&te.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const te=this._elementRef.nativeElement,be=te.options[0];return this.focused||te.multiple||!this.empty||!!(te.selectedIndex>-1&&be&&be.label)}return this.focused||!this.empty}setDescribedByIds(te){te.length?this._elementRef.nativeElement.setAttribute("aria-describedby",te.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const te=this._elementRef.nativeElement;return this._isNativeSelect&&(te.multiple||te.size>1)}_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&"number"===this._type&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&"number"!==this._type&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}static#e=this.\u0275fac=function(be){return new(be||Re)(L.rXU(L.aKT),L.rXU(y.OD),L.rXU(G.vO,10),L.rXU(G.cV,8),L.rXU(G.j4,8),L.rXU(ee.es),L.rXU(B,10),L.rXU(o.P8),L.rXU(L.SKi),L.rXU(oe.xb,8))};static#t=this.\u0275dir=L.FsC({type:Re,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(be,Ze){1&be&&L.bIt("focus",function(){return Ze._focusChanged(!0)})("blur",function(){return Ze._focusChanged(!1)})("input",function(){return Ze._onInput()}),2&be&&(L.Mr5("id",Ze.id)("disabled",Ze.disabled)("required",Ze.required),L.BMQ("name",Ze.name||null)("readonly",Ze.readonly&&!Ze._isNativeSelect||null)("aria-invalid",Ze.empty&&Ze.required?null:Ze.errorState)("aria-required",Ze.required)("id",Ze.id),L.AVh("mat-input-server",Ze._isServer)("mat-mdc-form-field-textarea-control",Ze._isInFormField&&Ze._isTextarea)("mat-mdc-form-field-input-control",Ze._isInFormField)("mdc-text-field__input",Ze._isInFormField)("mat-mdc-native-select-inline",Ze._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[L.Jv_([{provide:oe.qT,useExisting:Re}]),L.OA$]})}return Re})(),Ee=(()=>{class Re{static#e=this.\u0275fac=function(be){return new(be||Re)};static#t=this.\u0275mod=L.$C({type:Re});static#n=this.\u0275inj=L.G2t({imports:[ee.yE,oe.RG,oe.RG,o.EE,ee.yE]})}return Re})()},9115:(tn,Ne,v)=>{"use strict";v.d(Ne,{Cn:()=>Ce,Cp:()=>le,fb:()=>Dt,kk:()=>ht});var u=v(4438),y=v(9888),o=v(7336),L=v(1413),G=v(7786),ee=v(8359),oe=v(7673),V=v(5007),P=v(9172),B=v(5558),F=v(6977),ue=v(5964),ge=v(6697),Ee=v(1986),Re=v(177),ke=v(6600),te=v(6939),be=v(9969),Ze=v(8203),gt=v(7987),je=v(6860),qe=v(5542);const We=["mat-menu-item",""],ae=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],me=["mat-icon, [matMenuItemIcon]","*"];function Le(dt,un){1&dt&&(u.qSk(),u.j41(0,"svg",2),u.nrm(1,"polygon",3),u.k0s())}const nt=["*"];function At(dt,un){if(1&dt){const it=u.RV6();u.j41(0,"div",0),u.bIt("keydown",function(Ft){u.eBV(it);const Rt=u.XpG();return u.Njj(Rt._handleKeydown(Ft))})("click",function(){u.eBV(it);const Ft=u.XpG();return u.Njj(Ft.closed.emit("click"))})("@transformMenu.start",function(Ft){u.eBV(it);const Rt=u.XpG();return u.Njj(Rt._onAnimationStart(Ft))})("@transformMenu.done",function(Ft){u.eBV(it);const Rt=u.XpG();return u.Njj(Rt._onAnimationDone(Ft))}),u.j41(1,"div",1),u.SdG(2),u.k0s()()}if(2&dt){const it=u.XpG();u.HbH(it._classList),u.Y8G("id",it.panelId)("@transformMenu",it._panelAnimationState),u.BMQ("aria-label",it.ariaLabel||null)("aria-labelledby",it.ariaLabelledby||null)("aria-describedby",it.ariaDescribedby||null)}}const vt=new u.nKC("MAT_MENU_PANEL");let Dt=(()=>{class dt{constructor(it,It,Ft,Rt,kn){this._elementRef=it,this._document=It,this._focusMonitor=Ft,this._parentMenu=Rt,this._changeDetectorRef=kn,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new L.B,this._focused=new L.B,this._highlighted=!1,this._triggersSubmenu=!1,Rt?.addItem?.(this)}focus(it,It){this._focusMonitor&&it?this._focusMonitor.focusVia(this._getHostElement(),it,It):this._getHostElement().focus(It),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(it){this.disabled&&(it.preventDefault(),it.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const it=this._elementRef.nativeElement.cloneNode(!0),It=it.querySelectorAll("mat-icon, .material-icons");for(let Ft=0;Ft enter",(0,be.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,be.iF)({opacity:1,transform:"scale(1)"}))),(0,be.kY)("* => void",(0,be.i0)("100ms 25ms linear",(0,be.iF)({opacity:0})))]),fadeInItems:(0,be.hZ)("fadeInItems",[(0,be.wk)("showing",(0,be.iF)({opacity:1})),(0,be.kY)("void => *",[(0,be.iF)({opacity:0}),(0,be.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ie=0;const Ot=new u.nKC("mat-menu-default-options",{providedIn:"root",factory:function Pe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let ht=(()=>{class dt{get xPosition(){return this._xPosition}set xPosition(it){this._xPosition=it,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(it){this._yPosition=it,this.setPositionClasses()}set panelClass(it){const It=this._previousPanelClass,Ft={...this._classList};It&&It.length&&It.split(" ").forEach(Rt=>{Ft[Rt]=!1}),this._previousPanelClass=it,it&&it.length&&(it.split(" ").forEach(Rt=>{Ft[Rt]=!0}),this._elementRef.nativeElement.className=""),this._classList=Ft}get classList(){return this.panelClass}set classList(it){this.panelClass=it}constructor(it,It,Ft,Rt){this._elementRef=it,this._changeDetectorRef=Rt,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new u.rOR,this._classList={},this._panelAnimationState="void",this._animationDone=new L.B,this.closed=new u.bkB,this.close=this.closed,this.panelId="mat-menu-panel-"+Ie++,this._injector=(0,u.WQX)(u.zZn),this.overlayPanelClass=Ft.overlayPanelClass||"",this._xPosition=Ft.xPosition,this._yPosition=Ft.yPosition,this.backdropClass=Ft.backdropClass,this.overlapTrigger=Ft.overlapTrigger,this.hasBackdrop=Ft.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new y.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,P.Z)(this._directDescendantItems),(0,B.n)(it=>(0,G.h)(...it.map(It=>It._focused)))).subscribe(it=>this._keyManager.updateActiveItem(it)),this._directDescendantItems.changes.subscribe(it=>{const It=this._keyManager;if("enter"===this._panelAnimationState&&It.activeItem?._hasFocus()){const Ft=it.toArray(),Rt=Math.max(0,Math.min(Ft.length-1,It.activeItemIndex||0));Ft[Rt]&&!Ft[Rt].disabled?It.setActiveItem(Rt):It.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe((0,P.Z)(this._directDescendantItems),(0,B.n)(It=>(0,G.h)(...It.map(Ft=>Ft._hovered))))}addItem(it){}removeItem(it){}_handleKeydown(it){const It=it.keyCode,Ft=this._keyManager;switch(It){case o._f:(0,o.rp)(it)||(it.preventDefault(),this.closed.emit("keydown"));break;case o.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case o.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(It===o.i7||It===o.n6)&&Ft.setFocusOrigin("keyboard"),void Ft.onKeydown(it)}it.stopPropagation()}focusFirstItem(it="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,u.mal)(()=>{let It=null;if(this._directDescendantItems.length&&(It=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!It||!It.contains(document.activeElement)){const Ft=this._keyManager;Ft.setFocusOrigin(it).setFirstItemActive(),!Ft.activeItem&&It&&It.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(it){if(null===this._baseElevation){const hi=("function"==typeof getComputedStyle?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(hi)}const It=Math.min(this._baseElevation+it,24),Ft=`${this._elevationPrefix}${It}`,Rt=Object.keys(this._classList).find(kn=>kn.startsWith(this._elevationPrefix));if(!Rt||Rt===this._previousElevation){const kn={...this._classList};this._previousElevation&&(kn[this._previousElevation]=!1),kn[Ft]=!0,this._previousElevation=Ft,this._classList=kn}}setPositionClasses(it=this.xPosition,It=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===it,"mat-menu-after":"after"===it,"mat-menu-above":"above"===It,"mat-menu-below":"below"===It},this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(it){this._animationDone.next(it),this._isAnimating=!1}_onAnimationStart(it){this._isAnimating=!0,"enter"===it.toState&&0===this._keyManager.activeItemIndex&&(it.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,P.Z)(this._allItems)).subscribe(it=>{this._directDescendantItems.reset(it.filter(It=>It._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(It){return new(It||dt)(u.rXU(u.aKT),u.rXU(u.SKi),u.rXU(Ot),u.rXU(u.gRc))};static#t=this.\u0275cmp=u.VBU({type:dt,selectors:[["mat-menu"]],contentQueries:function(It,Ft,Rt){if(1&It&&(u.wni(Rt,_n,5),u.wni(Rt,Dt,5),u.wni(Rt,Dt,4)),2&It){let kn;u.mGM(kn=u.lsd())&&(Ft.lazyContent=kn.first),u.mGM(kn=u.lsd())&&(Ft._allItems=kn),u.mGM(kn=u.lsd())&&(Ft.items=kn)}},viewQuery:function(It,Ft){if(1&It&&u.GBs(u.C4Q,5),2&It){let Rt;u.mGM(Rt=u.lsd())&&(Ft.templateRef=Rt.first)}},hostVars:3,hostBindings:function(It,Ft){2&It&&u.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",u.L39],hasBackdrop:[2,"hasBackdrop","hasBackdrop",it=>null==it?null:(0,u.L39)(it)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[u.Jv_([{provide:vt,useExisting:dt}]),u.GFd,u.aNF],ngContentSelectors:nt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(It,Ft){1&It&&(u.NAR(),u.DNE(0,At,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-app-surface-container));will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-app-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-app-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[_e.transformMenu,_e.fadeInItems]},changeDetection:0})}return dt})();const Xe=new u.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const dt=(0,u.WQX)(gt.hJ);return()=>dt.scrollStrategies.reposition()}}),Me={provide:Xe,deps:[gt.hJ],useFactory:function Je(dt){return()=>dt.scrollStrategies.reposition()}},ie=(0,je.BQ)({passive:!0});let le=(()=>{class dt{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(it){this.menu=it}get menu(){return this._menu}set menu(it){it!==this._menu&&(this._menu=it,this._menuCloseSubscription.unsubscribe(),it&&(this._menuCloseSubscription=it.close.subscribe(It=>{this._destroyMenu(It),("click"===It||"tab"===It)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(It)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(it,It,Ft,Rt,kn,hi,qt,we,tt){this._overlay=it,this._element=It,this._viewContainerRef=Ft,this._menuItemInstance=hi,this._dir=qt,this._focusMonitor=we,this._ngZone=tt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ee.yU.EMPTY,this._hoverSubscription=ee.yU.EMPTY,this._menuCloseSubscription=ee.yU.EMPTY,this._changeDetectorRef=(0,u.WQX)(u.gRc),this._handleTouchStart=rt=>{(0,y.w6)(rt)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new u.bkB,this.onMenuOpen=this.menuOpened,this.menuClosed=new u.bkB,this.onMenuClose=this.menuClosed,this._scrollStrategy=Rt,this._parentMaterialMenu=kn instanceof ht?kn:void 0,It.nativeElement.addEventListener("touchstart",this._handleTouchStart,ie)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ie),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 it=this.menu;if(this._menuOpen||!it)return;const It=this._createOverlay(it),Ft=It.getConfig(),Rt=Ft.positionStrategy;this._setPosition(it,Rt),Ft.hasBackdrop=null==it.hasBackdrop?!this.triggersSubmenu():it.hasBackdrop,It.attach(this._getPortal(it)),it.lazyContent&&it.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(it),it instanceof ht&&(it._startAnimation(),it._directDescendantItems.changes.pipe((0,F.Q)(it.close)).subscribe(()=>{Rt.withLockedPosition(!1).reapplyLastPosition(),Rt.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(it,It){this._focusMonitor&&it?this._focusMonitor.focusVia(this._element,it,It):this._element.nativeElement.focus(It)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(it){if(!this._overlayRef||!this.menuOpen)return;const It=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===it||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,It instanceof ht?(It._resetAnimation(),It.lazyContent?It._animationDone.pipe((0,ue.p)(Ft=>"void"===Ft.toState),(0,ge.s)(1),(0,F.Q)(It.lazyContent._attached)).subscribe({next:()=>It.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),It?.lazyContent?.detach())}_initMenu(it){it.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,it.direction=this.dir,this._setMenuElevation(it),it.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(it){if(it.setElevation){let It=0,Ft=it.parentMenu;for(;Ft;)It++,Ft=Ft.parentMenu;it.setElevation(It)}}_setIsMenuOpen(it){it!==this._menuOpen&&(this._menuOpen=it,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(it),this._changeDetectorRef.markForCheck())}_createOverlay(it){if(!this._overlayRef){const It=this._getOverlayConfig(it);this._subscribeToPositions(it,It.positionStrategy),this._overlayRef=this._overlay.create(It),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(it){return new gt.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:it.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:it.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(it,It){it.setPositionClasses&&It.positionChanges.subscribe(Ft=>{const Rt="start"===Ft.connectionPair.overlayX?"after":"before",kn="top"===Ft.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>it.setPositionClasses(Rt,kn)):it.setPositionClasses(Rt,kn)})}_setPosition(it,It){let[Ft,Rt]="before"===it.xPosition?["end","start"]:["start","end"],[kn,hi]="above"===it.yPosition?["bottom","top"]:["top","bottom"],[qt,we]=[kn,hi],[tt,rt]=[Ft,Rt],bt=0;if(this.triggersSubmenu()){if(rt=Ft="before"===it.xPosition?"start":"end",Rt=tt="end"===Ft?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const on=this._parentMaterialMenu.items.first;this._parentInnerPadding=on?on._getHostElement().offsetTop:0}bt="bottom"===kn?this._parentInnerPadding:-this._parentInnerPadding}}else it.overlapTrigger||(qt="top"===kn?"bottom":"top",we="top"===hi?"bottom":"top");It.withPositions([{originX:Ft,originY:qt,overlayX:tt,overlayY:kn,offsetY:bt},{originX:Rt,originY:qt,overlayX:rt,overlayY:kn,offsetY:bt},{originX:Ft,originY:we,overlayX:tt,overlayY:hi,offsetY:-bt},{originX:Rt,originY:we,overlayX:rt,overlayY:hi,offsetY:-bt}])}_menuClosingActions(){const it=this._overlayRef.backdropClick(),It=this._overlayRef.detachments(),Ft=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,oe.of)(),Rt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ue.p)(kn=>kn!==this._menuItemInstance),(0,ue.p)(()=>this._menuOpen)):(0,oe.of)();return(0,G.h)(it,Ft,Rt,It)}_handleMousedown(it){(0,y._G)(it)||(this._openedBy=0===it.button?"mouse":void 0,this.triggersSubmenu()&&it.preventDefault())}_handleKeydown(it){const It=it.keyCode;(It===o.Fm||It===o.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(It===o.LE&&"ltr"===this.dir||It===o.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(it){this.triggersSubmenu()?(it.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ue.p)(it=>it===this._menuItemInstance&&!it.disabled),(0,Ee.c)(0,V.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ht&&this.menu._isAnimating?this.menu._animationDone.pipe((0,ge.s)(1),(0,Ee.c)(0,V.$),(0,F.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(it){return(!this._portal||this._portal.templateRef!==it.templateRef)&&(this._portal=new te.VA(it.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(It){return new(It||dt)(u.rXU(gt.hJ),u.rXU(u.aKT),u.rXU(u.c1b),u.rXU(Xe),u.rXU(vt,8),u.rXU(Dt,10),u.rXU(Ze.dS,8),u.rXU(y.FN),u.rXU(u.SKi))};static#t=this.\u0275dir=u.FsC({type:dt,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(It,Ft){1&It&&u.bIt("click",function(kn){return Ft._handleClick(kn)})("mousedown",function(kn){return Ft._handleMousedown(kn)})("keydown",function(kn){return Ft._handleKeydown(kn)}),2&It&&u.BMQ("aria-haspopup",Ft.menu?"menu":null)("aria-expanded",Ft.menuOpen)("aria-controls",Ft.menuOpen?Ft.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0})}return dt})(),Ce=(()=>{class dt{static#e=this.\u0275fac=function(It){return new(It||dt)};static#t=this.\u0275mod=u.$C({type:dt});static#n=this.\u0275inj=u.G2t({providers:[Me],imports:[Re.MD,ke.pZ,ke.yE,gt.z_,qe.Gj,ke.yE]})}return dt})()},7575:(tn,Ne,v)=>{"use strict";v.d(Ne,{HM:()=>V,PO:()=>B});var u=v(4438),o=(v(177),v(6600));function L(F,ue){1&F&&u.nrm(0,"div",2)}const G=new u.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let V=(()=>{class F{constructor(ge,Ee,Re,ke,te){this._elementRef=ge,this._ngZone=Ee,this._changeDetectorRef=Re,this._animationMode=ke,this._isNoopAnimation=!1,this._defaultColor="primary",this._value=0,this._bufferValue=0,this.animationEnd=new u.bkB,this._mode="determinate",this._transitionendHandler=be=>{0===this.animationEnd.observers.length||!be.target||!be.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===ke,te&&(te.color&&(this.color=this._defaultColor=te.color),this.mode=te.mode||this.mode)}get color(){return this._color||this._defaultColor}set color(ge){this._color=ge}get value(){return this._value}set value(ge){this._value=P(ge||0),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(ge){this._bufferValue=P(ge||0),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(ge){this._mode=ge,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(Ee){return new(Ee||F)(u.rXU(u.aKT),u.rXU(u.SKi),u.rXU(u.gRc),u.rXU(u.bc$,8),u.rXU(G,8))};static#t=this.\u0275cmp=u.VBU({type:F,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(Ee,Re){2&Ee&&(u.BMQ("aria-valuenow",Re._isIndeterminate()?null:Re.value)("mode",Re.mode),u.HbH("mat-"+Re.color),u.AVh("_mat-animation-noopable",Re._isNoopAnimation)("mdc-linear-progress--animation-ready",!Re._isNoopAnimation)("mdc-linear-progress--indeterminate",Re._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",u.Udg],bufferValue:[2,"bufferValue","bufferValue",u.Udg],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],standalone:!0,features:[u.GFd,u.aNF],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(Ee,Re){1&Ee&&(u.j41(0,"div",0),u.nrm(1,"div",1),u.DNE(2,L,1,0,"div",2),u.k0s(),u.j41(3,"div",3),u.nrm(4,"span",4),u.k0s(),u.j41(5,"div",5),u.nrm(6,"span",4),u.k0s()),2&Ee&&(u.R7$(),u.xc7("flex-basis",Re._getBufferBarFlexBasis()),u.R7$(),u.vxM("buffer"===Re.mode?2:-1),u.R7$(),u.xc7("transform",Re._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mdc-linear-progress-track-height),var(--mdc-linear-progress-active-indicator-height))}.cdk-high-contrast-active .mdc-linear-progress{outline-color:CanvasText}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mdc-linear-progress-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mdc-linear-progress-track-height);border-radius:var(--mdc-linear-progress-track-shape, var(--mat-app-corner-none))}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mdc-linear-progress-track-color, var(--mat-app-surface-variant))}.cdk-high-contrast-active .mdc-linear-progress__buffer-dots{background-color:ButtonBorder}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mdc-linear-progress-track-color, var(--mat-app-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}"],encapsulation:2,changeDetection:0})}return F})();function P(F,ue=0,ge=100){return Math.max(ue,Math.min(ge,F))}let B=(()=>{class F{static#e=this.\u0275fac=function(Ee){return new(Ee||F)};static#t=this.\u0275mod=u.$C({type:F});static#n=this.\u0275inj=u.G2t({imports:[o.yE]})}return F})()},2798:(tn,Ne,v)=>{"use strict";v.d(Ne,{$2:()=>Je,VO:()=>Xe,Ve:()=>Me});var u=v(7987),y=v(177),o=v(4438),L=v(6600),G=v(2102),ee=v(5542),oe=v(9888),V=v(8203),P=v(5024),B=v(7336),F=v(9417),ue=v(1413),ge=v(9030),Ee=v(7786),Re=v(9172),ke=v(5558),te=v(5964),be=v(6354),Ze=v(3294),gt=v(6977),je=v(6697),qe=v(9969);const We=["trigger"],ae=["panel"],me=[[["mat-select-trigger"]],"*"],Le=["mat-select-trigger","*"];function nt(ie,ve){if(1&ie&&(o.j41(0,"span",4),o.EFF(1),o.k0s()),2&ie){const le=o.XpG();o.R7$(),o.JRh(le.placeholder)}}function At(ie,ve){1&ie&&o.SdG(0)}function vt(ie,ve){if(1&ie&&(o.j41(0,"span",11),o.EFF(1),o.k0s()),2&ie){const le=o.XpG(2);o.R7$(),o.JRh(le.triggerValue)}}function Dt(ie,ve){if(1&ie&&(o.j41(0,"span",5),o.DNE(1,At,1,0)(2,vt,2,1,"span",11),o.k0s()),2&ie){const le=o.XpG();o.R7$(),o.vxM(le.customTrigger?1:2)}}function Zt(ie,ve){if(1&ie){const le=o.RV6();o.j41(0,"div",12,1),o.bIt("@transformPanel.done",function(dt){o.eBV(le);const un=o.XpG();return o.Njj(un._panelDoneAnimatingStream.next(dt.toState))})("keydown",function(dt){o.eBV(le);const un=o.XpG();return o.Njj(un._handleKeydown(dt))}),o.SdG(2,1),o.k0s()}if(2&ie){const le=o.XpG();o.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",le._getPanelTheme(),""),o.Y8G("ngClass",le.panelClass)("@transformPanel","showing"),o.BMQ("id",le.id+"-panel")("aria-multiselectable",le.multiple)("aria-label",le.ariaLabel||null)("aria-labelledby",le._getPanelAriaLabelledby())}}const Fn={transformPanelWrap:(0,qe.hZ)("transformPanelWrap",[(0,qe.kY)("* => void",(0,qe.P)("@transformPanel",[(0,qe.MA)()],{optional:!0}))]),transformPanel:(0,qe.hZ)("transformPanel",[(0,qe.wk)("void",(0,qe.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,qe.kY)("void => showing",(0,qe.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,qe.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,qe.kY)("* => void",(0,qe.i0)("100ms linear",(0,qe.iF)({opacity:0})))])};let _e=0;const Ae=new o.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const ie=(0,o.WQX)(u.hJ);return()=>ie.scrollStrategies.reposition()}}),Ie=new o.nKC("MAT_SELECT_CONFIG"),Ot={provide:Ae,deps:[u.hJ],useFactory:function J(ie){return()=>ie.scrollStrategies.reposition()}},Pe=new o.nKC("MatSelectTrigger");class ht{constructor(ve,le){this.source=ve,this.value=le}}let Xe=(()=>{class ie{_scrollOptionIntoView(le){const Ce=this.options.toArray()[le];if(Ce){const dt=this.panel.nativeElement,un=(0,L.jb)(le,this.options,this.optionGroups),it=Ce._getHostElement();dt.scrollTop=0===le&&1===un?0:(0,L.TL)(it.offsetTop,it.offsetHeight,dt.scrollTop,dt.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(le){return new ht(this,le)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(le){this._hideSingleSelectionIndicator=le,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(le){this._placeholder=le,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(F.k0.required)??!1}set required(le){this._required=le,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(le){this._multiple=le}get compareWith(){return this._compareWith}set compareWith(le){this._compareWith=le,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(le){this._assignValue(le)&&this._onChange(le)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(le){this._errorStateTracker.matcher=le}get id(){return this._id}set id(le){this._id=le||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(le){this._errorStateTracker.errorState=le}constructor(le,Ce,dt,un,it,It,Ft,Rt,kn,hi,qt,we,tt,rt){this._viewportRuler=le,this._changeDetectorRef=Ce,this._elementRef=it,this._dir=It,this._parentFormField=kn,this.ngControl=hi,this._liveAnnouncer=tt,this._defaultOptions=rt,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(bt,on)=>bt===on,this._uid="mat-select-"+_e++,this._triggerAriaLabelledBy=null,this._destroy=new ue.B,this.stateChanges=new ue.B,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+_e++,this._panelDoneAnimatingStream=new ue.B,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new ue.B,this.optionSelectionChanges=(0,ge.v)(()=>{const bt=this.options;return bt?bt.changes.pipe((0,Re.Z)(bt),(0,ke.n)(()=>(0,Ee.h)(...bt.map(on=>on.onSelectionChange)))):this._initialized.pipe((0,ke.n)(()=>this.optionSelectionChanges))}),this.openedChange=new o.bkB,this._openedStream=this.openedChange.pipe((0,te.p)(bt=>bt),(0,be.T)(()=>{})),this._closedStream=this.openedChange.pipe((0,te.p)(bt=>!bt),(0,be.T)(()=>{})),this.selectionChange=new o.bkB,this.valueChange=new o.bkB,this._trackedModal=null,this._skipPredicate=bt=>!this.panelOpen&&bt.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),null!=rt?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=rt.typeaheadDebounceInterval),this._errorStateTracker=new L.X0(un,hi,Rt,Ft,this.stateChanges),this._scrollStrategyFactory=we,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(qt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new P.CB(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Ze.F)(),(0,gt.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,gt.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,gt.Q)(this._destroy)).subscribe(le=>{le.added.forEach(Ce=>Ce.select()),le.removed.forEach(Ce=>Ce.deselect())}),this.options.changes.pipe((0,Re.Z)(null),(0,gt.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const le=this._getTriggerAriaLabelledby(),Ce=this.ngControl;if(le!==this._triggerAriaLabelledBy){const dt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=le,le?dt.setAttribute("aria-labelledby",le):dt.removeAttribute("aria-labelledby")}Ce&&(this._previousControl!==Ce.control&&(void 0!==this._previousControl&&null!==Ce.disabled&&Ce.disabled!==this.disabled&&(this.disabled=Ce.disabled),this._previousControl=Ce.control),this.updateErrorState())}ngOnChanges(le){(le.disabled||le.userAriaDescribedBy)&&this.stateChanges.next(),le.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){const le=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!le)return;const Ce=`${this.id}-panel`;this._trackedModal&&(0,oe.Ae)(this._trackedModal,"aria-owns",Ce),(0,oe.px)(le,"aria-owns",Ce),this._trackedModal=le}_clearFromModal(){this._trackedModal&&((0,oe.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(le){this._assignValue(le)}registerOnChange(le){this._onChange=le}registerOnTouched(le){this._onTouched=le}setDisabledState(le){this.disabled=le,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 le=this._selectionModel.selected.map(Ce=>Ce.viewValue);return this._isRtl()&&le.reverse(),le.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(le){this.disabled||(this.panelOpen?this._handleOpenKeydown(le):this._handleClosedKeydown(le))}_handleClosedKeydown(le){const Ce=le.keyCode,dt=Ce===B.n6||Ce===B.i7||Ce===B.UQ||Ce===B.LE,un=Ce===B.Fm||Ce===B.t6,it=this._keyManager;if(!it.isTyping()&&un&&!(0,B.rp)(le)||(this.multiple||le.altKey)&&dt)le.preventDefault(),this.open();else if(!this.multiple){const It=this.selected;it.onKeydown(le);const Ft=this.selected;Ft&&It!==Ft&&this._liveAnnouncer.announce(Ft.viewValue,1e4)}}_handleOpenKeydown(le){const Ce=this._keyManager,dt=le.keyCode,un=dt===B.n6||dt===B.i7,it=Ce.isTyping();if(un&&le.altKey)le.preventDefault(),this.close();else if(it||dt!==B.Fm&&dt!==B.t6||!Ce.activeItem||(0,B.rp)(le))if(!it&&this._multiple&&dt===B.A&&le.ctrlKey){le.preventDefault();const It=this.options.some(Ft=>!Ft.disabled&&!Ft.selected);this.options.forEach(Ft=>{Ft.disabled||(It?Ft.select():Ft.deselect())})}else{const It=Ce.activeItemIndex;Ce.onKeydown(le),this._multiple&&un&&le.shiftKey&&Ce.activeItem&&Ce.activeItemIndex!==It&&Ce.activeItem._selectViaInteraction()}else le.preventDefault(),Ce.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,je.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(le){if(this.options.forEach(Ce=>Ce.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&le)Array.isArray(le),le.forEach(Ce=>this._selectOptionByValue(Ce)),this._sortValues();else{const Ce=this._selectOptionByValue(le);Ce?this._keyManager.updateActiveItem(Ce):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(le){const Ce=this.options.find(dt=>{if(this._selectionModel.isSelected(dt))return!1;try{return null!=dt.value&&this._compareWith(dt.value,le)}catch{return!1}});return Ce&&this._selectionModel.select(Ce),Ce}_assignValue(le){return!!(le!==this._value||this._multiple&&Array.isArray(le))&&(this.options&&this._setSelectionByValue(le),this._value=le,!0)}_getOverlayWidth(le){return"auto"===this.panelWidth?(le instanceof u.$Q?le.elementRef:le||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const le of this.options)le._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new oe.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 le=(0,Ee.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,gt.Q)(le)).subscribe(Ce=>{this._onSelect(Ce.source,Ce.isUserInput),Ce.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Ee.h)(...this.options.map(Ce=>Ce._stateChanges)).pipe((0,gt.Q)(le)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(le,Ce){const dt=this._selectionModel.isSelected(le);null!=le.value||this._multiple?(dt!==le.selected&&(le.selected?this._selectionModel.select(le):this._selectionModel.deselect(le)),Ce&&this._keyManager.setActiveItem(le),this.multiple&&(this._sortValues(),Ce&&this.focus())):(le.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(le.value)),dt!==this._selectionModel.isSelected(le)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const le=this.options.toArray();this._selectionModel.sort((Ce,dt)=>this.sortComparator?this.sortComparator(Ce,dt,le):le.indexOf(Ce)-le.indexOf(dt)),this.stateChanges.next()}}_propagateChanges(le){let Ce;Ce=this.multiple?this.selected.map(dt=>dt.value):this.selected?this.selected.value:le,this._value=Ce,this.valueChange.emit(Ce),this._onChange(Ce),this.selectionChange.emit(this._getChangeEvent(Ce)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let le=-1;for(let Ce=0;Ce0}focus(le){this._elementRef.nativeElement.focus(le)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const le=this._parentFormField?.getLabelId();return this.ariaLabelledby?(le?le+" ":"")+this.ariaLabelledby:le}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const le=this._parentFormField?.getLabelId();let Ce=(le?le+" ":"")+this._valueId;return this.ariaLabelledby&&(Ce+=" "+this.ariaLabelledby),Ce}_panelDoneAnimating(le){this.openedChange.emit(le)}setDescribedByIds(le){le.length?this._elementRef.nativeElement.setAttribute("aria-describedby",le.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static#e=this.\u0275fac=function(Ce){return new(Ce||ie)(o.rXU(ee.Xj),o.rXU(o.gRc),o.rXU(o.SKi),o.rXU(L.es),o.rXU(o.aKT),o.rXU(V.dS,8),o.rXU(F.cV,8),o.rXU(F.j4,8),o.rXU(G.xb,8),o.rXU(F.vO,10),o.kS0("tabindex"),o.rXU(Ae),o.rXU(oe.Ai),o.rXU(Ie,8))};static#t=this.\u0275cmp=o.VBU({type:ie,selectors:[["mat-select"]],contentQueries:function(Ce,dt,un){if(1&Ce&&(o.wni(un,Pe,5),o.wni(un,L.wT,5),o.wni(un,L.QC,5)),2&Ce){let it;o.mGM(it=o.lsd())&&(dt.customTrigger=it.first),o.mGM(it=o.lsd())&&(dt.options=it),o.mGM(it=o.lsd())&&(dt.optionGroups=it)}},viewQuery:function(Ce,dt){if(1&Ce&&(o.GBs(We,5),o.GBs(ae,5),o.GBs(u.WB,5)),2&Ce){let un;o.mGM(un=o.lsd())&&(dt.trigger=un.first),o.mGM(un=o.lsd())&&(dt.panel=un.first),o.mGM(un=o.lsd())&&(dt._overlayDir=un.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(Ce,dt){1&Ce&&o.bIt("keydown",function(it){return dt._handleKeydown(it)})("focus",function(){return dt._onFocus()})("blur",function(){return dt._onBlur()}),2&Ce&&(o.BMQ("id",dt.id)("tabindex",dt.disabled?-1:dt.tabIndex)("aria-controls",dt.panelOpen?dt.id+"-panel":null)("aria-expanded",dt.panelOpen)("aria-label",dt.ariaLabel||null)("aria-required",dt.required.toString())("aria-disabled",dt.disabled.toString())("aria-invalid",dt.errorState)("aria-activedescendant",dt._getAriaActiveDescendant()),o.AVh("mat-mdc-select-disabled",dt.disabled)("mat-mdc-select-invalid",dt.errorState)("mat-mdc-select-required",dt.required)("mat-mdc-select-empty",dt.empty)("mat-mdc-select-multiple",dt.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",o.L39],disableRipple:[2,"disableRipple","disableRipple",o.L39],tabIndex:[2,"tabIndex","tabIndex",le=>null==le?0:(0,o.Udg)(le)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",o.L39],placeholder:"placeholder",required:[2,"required","required",o.L39],multiple:[2,"multiple","multiple",o.L39],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",o.L39],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",o.Udg],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[o.Jv_([{provide:G.qT,useExisting:ie},{provide:L.is,useExisting:ie}]),o.GFd,o.OA$,o.aNF],ngContentSelectors:Le,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(Ce,dt){if(1&Ce){const un=o.RV6();o.NAR(me),o.j41(0,"div",2,0),o.bIt("click",function(){return o.eBV(un),o.Njj(dt.open())}),o.j41(3,"div",3),o.DNE(4,nt,2,1,"span",4)(5,Dt,3,1,"span",5),o.k0s(),o.j41(6,"div",6)(7,"div",7),o.qSk(),o.j41(8,"svg",8),o.nrm(9,"path",9),o.k0s()()()(),o.DNE(10,Zt,3,9,"ng-template",10),o.bIt("backdropClick",function(){return o.eBV(un),o.Njj(dt.close())})("attach",function(){return o.eBV(un),o.Njj(dt._onAttached())})("detach",function(){return o.eBV(un),o.Njj(dt.close())})}if(2&Ce){const un=o.sdS(1);o.R7$(3),o.BMQ("id",dt._valueId),o.R7$(),o.vxM(dt.empty?4:5),o.R7$(6),o.Y8G("cdkConnectedOverlayPanelClass",dt._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",dt._scrollStrategy)("cdkConnectedOverlayOrigin",dt._preferredOverlayOrigin||un)("cdkConnectedOverlayOpen",dt.panelOpen)("cdkConnectedOverlayPositions",dt._positions)("cdkConnectedOverlayWidth",dt._overlayWidth)}},dependencies:[u.$Q,u.WB,y.YU],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[Fn.transformPanel]},changeDetection:0})}return ie})(),Je=(()=>{class ie{static#e=this.\u0275fac=function(Ce){return new(Ce||ie)};static#t=this.\u0275dir=o.FsC({type:ie,selectors:[["mat-select-trigger"]],standalone:!0,features:[o.Jv_([{provide:Pe,useExisting:ie}])]})}return ie})(),Me=(()=>{class ie{static#e=this.\u0275fac=function(Ce){return new(Ce||ie)};static#t=this.\u0275mod=o.$C({type:ie});static#n=this.\u0275inj=o.G2t({providers:[Ot],imports:[y.MD,u.z_,L.Sy,L.yE,ee.Gj,G.RG,L.Sy,L.yE]})}return ie})()},882:(tn,Ne,v)=>{"use strict";v.d(Ne,{$C:()=>Ot,$l:()=>J,qe:()=>Ie,vg:()=>Je});var u=v(5542),y=v(4438),o=v(6600),L=v(9888),G=v(8203),ee=v(4085),oe=v(7336),V=v(6860),P=v(177),B=v(1413),F=v(3726),ue=v(7786),ge=v(5964),Ee=v(6354),Re=v(3703),ke=v(6977),te=v(3294),be=v(6697),Ze=v(9172),gt=v(152),je=v(9969);const qe=["*"],We=["content"],ae=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],me=["mat-drawer","mat-drawer-content","*"];function Le(Me,ie){if(1&Me){const ve=y.RV6();y.j41(0,"div",1),y.bIt("click",function(){y.eBV(ve);const Ce=y.XpG();return y.Njj(Ce._onBackdropClicked())}),y.k0s()}if(2&Me){const ve=y.XpG();y.AVh("mat-drawer-shown",ve._isShowingBackdrop())}}function nt(Me,ie){1&Me&&(y.j41(0,"mat-drawer-content"),y.SdG(1,2),y.k0s())}const Vn={transformDrawer:(0,je.hZ)("transform",[(0,je.wk)("open, open-instant",(0,je.iF)({transform:"none",visibility:"visible"})),(0,je.wk)("void",(0,je.iF)({"box-shadow":"none",visibility:"hidden"})),(0,je.kY)("void => open-instant",(0,je.i0)("0ms")),(0,je.kY)("void <=> open, open-instant => void",(0,je.i0)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},pi=new y.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Ae(){return!1}}),_e=new y.nKC("MAT_DRAWER_CONTAINER");let J=(()=>{class Me extends u.uv{constructor(ve,le,Ce,dt,un){super(Ce,dt,un),this._changeDetectorRef=ve,this._container=le}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(le){return new(le||Me)(y.rXU(y.gRc),y.rXU((0,y.Rfq)(()=>Ot)),y.rXU(y.aKT),y.rXU(u.R),y.rXU(y.SKi))};static#t=this.\u0275cmp=y.VBU({type:Me,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(le,Ce){2&le&&y.xc7("margin-left",Ce._container._contentMargins.left,"px")("margin-right",Ce._container._contentMargins.right,"px")},standalone:!0,features:[y.Jv_([{provide:u.uv,useExisting:Me}]),y.Vt3,y.aNF],ngContentSelectors:qe,decls:1,vars:0,template:function(le,Ce){1&le&&(y.NAR(),y.SdG(0))},encapsulation:2,changeDetection:0})}return Me})(),Ie=(()=>{class Me{get position(){return this._position}set position(ve){(ve="end"===ve?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(ve),this._position=ve,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(ve){this._mode=ve,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(ve){this._disableClose=(0,ee.he)(ve)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(ve){("true"===ve||"false"===ve||null==ve)&&(ve=(0,ee.he)(ve)),this._autoFocus=ve}get opened(){return this._opened}set opened(ve){this.toggle((0,ee.he)(ve))}constructor(ve,le,Ce,dt,un,it,It,Ft){this._elementRef=ve,this._focusTrapFactory=le,this._focusMonitor=Ce,this._platform=dt,this._ngZone=un,this._interactivityChecker=it,this._doc=It,this._container=Ft,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new B.B,this._animationEnd=new B.B,this._animationState="void",this.openedChange=new y.bkB(!0),this._openedStream=this.openedChange.pipe((0,ge.p)(Rt=>Rt),(0,Ee.T)(()=>{})),this.openedStart=this._animationStarted.pipe((0,ge.p)(Rt=>Rt.fromState!==Rt.toState&&0===Rt.toState.indexOf("open")),(0,Re.u)(void 0)),this._closedStream=this.openedChange.pipe((0,ge.p)(Rt=>!Rt),(0,Ee.T)(()=>{})),this.closedStart=this._animationStarted.pipe((0,ge.p)(Rt=>Rt.fromState!==Rt.toState&&"void"===Rt.toState),(0,Re.u)(void 0)),this._destroyed=new B.B,this.onPositionChanged=new y.bkB,this._modeChanged=new B.B,this._injector=(0,y.WQX)(y.zZn),this._changeDetectorRef=(0,y.WQX)(y.gRc),this.openedChange.pipe((0,ke.Q)(this._destroyed)).subscribe(Rt=>{Rt?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,F.R)(this._elementRef.nativeElement,"keydown").pipe((0,ge.p)(Rt=>Rt.keyCode===oe._f&&!this.disableClose&&!(0,oe.rp)(Rt)),(0,ke.Q)(this._destroyed)).subscribe(Rt=>this._ngZone.run(()=>{this.close(),Rt.stopPropagation(),Rt.preventDefault()}))}),this._animationEnd.pipe((0,te.F)((Rt,kn)=>Rt.fromState===kn.fromState&&Rt.toState===kn.toState)).subscribe(Rt=>{const{fromState:kn,toState:hi}=Rt;(0===hi.indexOf("open")&&"void"===kn||"void"===hi&&0===kn.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(ve,le){this._interactivityChecker.isFocusable(ve)||(ve.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ce=()=>{ve.removeEventListener("blur",Ce),ve.removeEventListener("mousedown",Ce),ve.removeAttribute("tabindex")};ve.addEventListener("blur",Ce),ve.addEventListener("mousedown",Ce)})),ve.focus(le)}_focusByCssSelector(ve,le){let Ce=this._elementRef.nativeElement.querySelector(ve);Ce&&this._forceFocus(Ce,le)}_takeFocus(){if(!this._focusTrap)return;const ve=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":(0,y.mal)(()=>{!this._focusTrap.focusInitialElement()&&"function"==typeof ve.focus&&ve.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(ve){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,ve):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const ve=this._doc.activeElement;return!!ve&&this._elementRef.nativeElement.contains(ve)}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(ve){return this.toggle(!0,ve)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(ve=!this.opened,le){ve&&le&&(this._openedVia=le);const Ce=this._setOpen(ve,!ve&&this._isFocusWithinDrawer(),this._openedVia||"program");return ve||(this._openedVia=null),Ce}_setOpen(ve,le,Ce){return this._opened=ve,ve?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",le&&this._restoreFocus(Ce)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(dt=>{this.openedChange.pipe((0,be.s)(1)).subscribe(un=>dt(un?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(ve){if(!this._platform.isBrowser)return;const le=this._elementRef.nativeElement,Ce=le.parentNode;"end"===ve?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Ce.insertBefore(this._anchor,le)),Ce.appendChild(le)):this._anchor&&this._anchor.parentNode.insertBefore(le,this._anchor)}static#e=this.\u0275fac=function(le){return new(le||Me)(y.rXU(y.aKT),y.rXU(L.GX),y.rXU(L.FN),y.rXU(V.OD),y.rXU(y.SKi),y.rXU(L.Z7),y.rXU(P.qQ,8),y.rXU(_e,8))};static#t=this.\u0275cmp=y.VBU({type:Me,selectors:[["mat-drawer"]],viewQuery:function(le,Ce){if(1&le&&y.GBs(We,5),2&le){let dt;y.mGM(dt=y.lsd())&&(Ce._content=dt.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(le,Ce){1&le&&y.Kam("@transform.start",function(un){return Ce._animationStarted.next(un)})("@transform.done",function(un){return Ce._animationEnd.next(un)}),2&le&&(y.zvX("@transform",Ce._animationState),y.BMQ("align",null),y.AVh("mat-drawer-end","end"===Ce.position)("mat-drawer-over","over"===Ce.mode)("mat-drawer-push","push"===Ce.mode)("mat-drawer-side","side"===Ce.mode)("mat-drawer-opened",Ce.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],standalone:!0,features:[y.aNF],ngContentSelectors:qe,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(le,Ce){1&le&&(y.NAR(),y.j41(0,"div",1,0),y.SdG(2),y.k0s())},dependencies:[u.uv],encapsulation:2,data:{animation:[Vn.transformDrawer]},changeDetection:0})}return Me})(),Ot=(()=>{class Me{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(ve){this._autosize=(0,ee.he)(ve)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(ve){this._backdropOverride=null==ve?null:(0,ee.he)(ve)}get scrollable(){return this._userContent||this._content}constructor(ve,le,Ce,dt,un,it=!1,It){this._dir=ve,this._element=le,this._ngZone=Ce,this._changeDetectorRef=dt,this._animationMode=It,this._drawers=new y.rOR,this.backdropClick=new y.bkB,this._destroyed=new B.B,this._doCheckSubject=new B.B,this._contentMargins={left:null,right:null},this._contentMarginChanges=new B.B,this._injector=(0,y.WQX)(y.zZn),ve&&ve.change.pipe((0,ke.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),un.change().pipe((0,ke.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=it}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Ze.Z)(this._allDrawers),(0,ke.Q)(this._destroyed)).subscribe(ve=>{this._drawers.reset(ve.filter(le=>!le._container||le._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Ze.Z)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(ve=>{this._watchDrawerToggle(ve),this._watchDrawerPosition(ve),this._watchDrawerMode(ve)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,gt.B)(10),(0,ke.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(ve=>ve.open())}close(){this._drawers.forEach(ve=>ve.close())}updateContentMargins(){let ve=0,le=0;if(this._left&&this._left.opened)if("side"==this._left.mode)ve+=this._left._getWidth();else if("push"==this._left.mode){const Ce=this._left._getWidth();ve+=Ce,le-=Ce}if(this._right&&this._right.opened)if("side"==this._right.mode)le+=this._right._getWidth();else if("push"==this._right.mode){const Ce=this._right._getWidth();le+=Ce,ve-=Ce}ve=ve||null,le=le||null,(ve!==this._contentMargins.left||le!==this._contentMargins.right)&&(this._contentMargins={left:ve,right:le},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(ve){ve._animationStarted.pipe((0,ge.p)(le=>le.fromState!==le.toState),(0,ke.Q)(this._drawers.changes)).subscribe(le=>{"open-instant"!==le.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==ve.mode&&ve.openedChange.pipe((0,ke.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(ve.opened))}_watchDrawerPosition(ve){ve&&ve.onPositionChanged.pipe((0,ke.Q)(this._drawers.changes)).subscribe(()=>{(0,y.mal)(()=>{this._validateDrawers()},{injector:this._injector,phase:y.wjH.Read})})}_watchDrawerMode(ve){ve&&ve._modeChanged.pipe((0,ke.Q)((0,ue.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(ve){const le=this._element.nativeElement.classList,Ce="mat-drawer-container-has-open";ve?le.add(Ce):le.remove(Ce)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(ve=>{"end"==ve.position?this._end=ve:this._start=ve}),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(ve=>ve&&!ve.disableClose&&this._drawerHasBackdrop(ve)).forEach(ve=>ve._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(ve){return null!=ve&&ve.opened}_drawerHasBackdrop(ve){return null==this._backdropOverride?!!ve&&"side"!==ve.mode:this._backdropOverride}static#e=this.\u0275fac=function(le){return new(le||Me)(y.rXU(G.dS,8),y.rXU(y.aKT),y.rXU(y.SKi),y.rXU(y.gRc),y.rXU(u.Xj),y.rXU(pi),y.rXU(y.bc$,8))};static#t=this.\u0275cmp=y.VBU({type:Me,selectors:[["mat-drawer-container"]],contentQueries:function(le,Ce,dt){if(1&le&&(y.wni(dt,J,5),y.wni(dt,Ie,5)),2&le){let un;y.mGM(un=y.lsd())&&(Ce._content=un.first),y.mGM(un=y.lsd())&&(Ce._allDrawers=un)}},viewQuery:function(le,Ce){if(1&le&&y.GBs(J,5),2&le){let dt;y.mGM(dt=y.lsd())&&(Ce._userContent=dt.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(le,Ce){2&le&&y.AVh("mat-drawer-container-explicit-backdrop",Ce._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[y.Jv_([{provide:_e,useExisting:Me}]),y.aNF],ngContentSelectors:me,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(le,Ce){1&le&&(y.NAR(ae),y.DNE(0,Le,1,2,"div",0),y.SdG(1),y.SdG(2,1),y.DNE(3,nt,2,0,"mat-drawer-content")),2&le&&(y.vxM(Ce.hasBackdrop?0:-1),y.R7$(3),y.vxM(Ce._content?-1:3))},dependencies:[J],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-app-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-app-background));box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-app-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color, var(--mat-app-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return Me})(),Je=(()=>{class Me{static#e=this.\u0275fac=function(le){return new(le||Me)};static#t=this.\u0275mod=y.$C({type:Me});static#n=this.\u0275inj=y.G2t({imports:[o.yE,u.Gj,u.Gj,o.yE]})}return Me})()},4823:(tn,Ne,v)=>{"use strict";v.d(Ne,{oV:()=>Dt,uc:()=>Vn});var u=v(6977),y=v(4085),o=v(7336),L=v(4438),G=v(177),ee=v(6860),oe=v(9888),V=v(8203),P=v(7987),B=v(5542),F=v(6939),ue=v(1413),Ee=(v(9969),v(6600));const Re=["tooltip"],be=new L.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const _n=(0,L.WQX)(P.hJ);return()=>_n.scrollStrategies.reposition({scrollThrottle:20})}}),gt={provide:be,deps:[P.hJ],useFactory:function Ze(_n){return()=>_n.scrollStrategies.reposition({scrollThrottle:20})}},qe=new L.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function je(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ae="tooltip-panel",me=(0,ee.BQ)({passive:!0});let Dt=(()=>{class _n{get position(){return this._position}set position(_e){_e!==this._position&&(this._position=_e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(_e){this._positionAtOrigin=(0,y.he)(_e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(_e){const Ae=(0,y.he)(_e);this._disabled!==Ae&&(this._disabled=Ae,Ae?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(_e){this._showDelay=(0,y.OE)(_e)}get hideDelay(){return this._hideDelay}set hideDelay(_e){this._hideDelay=(0,y.OE)(_e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(_e){const Ae=this._message;this._message=null!=_e?String(_e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(Ae)}get tooltipClass(){return this._tooltipClass}set tooltipClass(_e){this._tooltipClass=_e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(_e,Ae,J,Ie,Ot,Pe,ht,Xe,Je,Me,ie,ve){this._overlay=_e,this._elementRef=Ae,this._scrollDispatcher=J,this._viewContainerRef=Ie,this._ngZone=Ot,this._platform=Pe,this._ariaDescriber=ht,this._focusMonitor=Xe,this._dir=Me,this._defaultOptions=ie,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Zt,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new ue.B,this._injector=(0,L.WQX)(L.zZn),this._scrollStrategy=Je,this._document=ve,ie&&(this._showDelay=ie.showDelay,this._hideDelay=ie.hideDelay,ie.position&&(this.position=ie.position),ie.positionAtOrigin&&(this.positionAtOrigin=ie.positionAtOrigin),ie.touchGestures&&(this.touchGestures=ie.touchGestures),ie.tooltipClass&&(this.tooltipClass=ie.tooltipClass)),Me.change.pipe((0,u.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,u.Q)(this._destroyed)).subscribe(_e=>{_e?"keyboard"===_e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const _e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Ae,J])=>{_e.removeEventListener(Ae,J,me)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(_e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(_e)}show(_e=this.showDelay,Ae){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const J=this._createOverlay(Ae);this._detach(),this._portal=this._portal||new F.A8(this._tooltipComponent,this._viewContainerRef);const Ie=this._tooltipInstance=J.attach(this._portal).instance;Ie._triggerElement=this._elementRef.nativeElement,Ie._mouseLeaveHideDelay=this._hideDelay,Ie.afterHidden().pipe((0,u.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Ie.show(_e)}hide(_e=this.hideDelay){const Ae=this._tooltipInstance;Ae&&(Ae.isVisible()?Ae.hide(_e):(Ae._cancelPendingAnimations(),this._detach()))}toggle(_e){this._isTooltipVisible()?this.hide():this.show(void 0,_e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(_e){if(this._overlayRef){const Ie=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!_e)&&Ie._origin instanceof L.aKT)return this._overlayRef;this._detach()}const Ae=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),J=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&_e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Ae);return J.positionChanges.pipe((0,u.Q)(this._destroyed)).subscribe(Ie=>{this._updateCurrentPositionClass(Ie.connectionPair),this._tooltipInstance&&Ie.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:J,panelClass:`${this._cssClassPrefix}-${ae}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,u.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,u.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,u.Q)(this._destroyed)).subscribe(Ie=>{this._isTooltipVisible()&&Ie.keyCode===o._f&&!(0,o.rp)(Ie)&&(Ie.preventDefault(),Ie.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(_e){const Ae=_e.getConfig().positionStrategy,J=this._getOrigin(),Ie=this._getOverlayPosition();Ae.withPositions([this._addOffset({...J.main,...Ie.main}),this._addOffset({...J.fallback,...Ie.fallback})])}_addOffset(_e){const J=!this._dir||"ltr"==this._dir.value;return"top"===_e.originY?_e.offsetY=-8:"bottom"===_e.originY?_e.offsetY=8:"start"===_e.originX?_e.offsetX=J?-8:8:"end"===_e.originX&&(_e.offsetX=J?8:-8),_e}_getOrigin(){const _e=!this._dir||"ltr"==this._dir.value,Ae=this.position;let J;"above"==Ae||"below"==Ae?J={originX:"center",originY:"above"==Ae?"top":"bottom"}:"before"==Ae||"left"==Ae&&_e||"right"==Ae&&!_e?J={originX:"start",originY:"center"}:("after"==Ae||"right"==Ae&&_e||"left"==Ae&&!_e)&&(J={originX:"end",originY:"center"});const{x:Ie,y:Ot}=this._invertPosition(J.originX,J.originY);return{main:J,fallback:{originX:Ie,originY:Ot}}}_getOverlayPosition(){const _e=!this._dir||"ltr"==this._dir.value,Ae=this.position;let J;"above"==Ae?J={overlayX:"center",overlayY:"bottom"}:"below"==Ae?J={overlayX:"center",overlayY:"top"}:"before"==Ae||"left"==Ae&&_e||"right"==Ae&&!_e?J={overlayX:"end",overlayY:"center"}:("after"==Ae||"right"==Ae&&_e||"left"==Ae&&!_e)&&(J={overlayX:"start",overlayY:"center"});const{x:Ie,y:Ot}=this._invertPosition(J.overlayX,J.overlayY);return{main:J,fallback:{overlayX:Ie,overlayY:Ot}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,L.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(_e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=_e,this._tooltipInstance._markForCheck())}_invertPosition(_e,Ae){return"above"===this.position||"below"===this.position?"top"===Ae?Ae="bottom":"bottom"===Ae&&(Ae="top"):"end"===_e?_e="start":"start"===_e&&(_e="end"),{x:_e,y:Ae}}_updateCurrentPositionClass(_e){const{overlayY:Ae,originX:J,originY:Ie}=_e;let Ot;if(Ot="center"===Ae?this._dir&&"rtl"===this._dir.value?"end"===J?"left":"right":"start"===J?"left":"right":"bottom"===Ae&&"top"===Ie?"above":"below",Ot!==this._currentPosition){const Pe=this._overlayRef;if(Pe){const ht=`${this._cssClassPrefix}-${ae}-`;Pe.removePanelClass(ht+this._currentPosition),Pe.addPanelClass(ht+Ot)}this._currentPosition=Ot}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",_e=>{let Ae;this._setupPointerExitEventsIfNeeded(),void 0!==_e.x&&void 0!==_e.y&&(Ae=_e),this.show(void 0,Ae)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",_e=>{const Ae=_e.targetTouches?.[0],J=Ae?{x:Ae.clientX,y:Ae.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,J)},this._defaultOptions.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const _e=[];if(this._platformSupportsMouseEvents())_e.push(["mouseleave",Ae=>{const J=Ae.relatedTarget;(!J||!this._overlayRef?.overlayElement.contains(J))&&this.hide()}],["wheel",Ae=>this._wheelListener(Ae)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ae=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};_e.push(["touchend",Ae],["touchcancel",Ae])}this._addListeners(_e),this._passiveListeners.push(..._e)}_addListeners(_e){_e.forEach(([Ae,J])=>{this._elementRef.nativeElement.addEventListener(Ae,J,me)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(_e){if(this._isTooltipVisible()){const Ae=this._document.elementFromPoint(_e.clientX,_e.clientY),J=this._elementRef.nativeElement;Ae!==J&&!J.contains(Ae)&&this.hide()}}_disableNativeGesturesIfNecessary(){const _e=this.touchGestures;if("off"!==_e){const Ae=this._elementRef.nativeElement,J=Ae.style;("on"===_e||"INPUT"!==Ae.nodeName&&"TEXTAREA"!==Ae.nodeName)&&(J.userSelect=J.msUserSelect=J.webkitUserSelect=J.MozUserSelect="none"),("on"===_e||!Ae.draggable)&&(J.webkitUserDrag="none"),J.touchAction="none",J.webkitTapHighlightColor="transparent"}}_syncAriaDescription(_e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,_e,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static#e=this.\u0275fac=function(Ae){return new(Ae||_n)(L.rXU(P.hJ),L.rXU(L.aKT),L.rXU(B.R),L.rXU(L.c1b),L.rXU(L.SKi),L.rXU(ee.OD),L.rXU(oe.vr),L.rXU(oe.FN),L.rXU(be),L.rXU(V.dS),L.rXU(qe,8),L.rXU(G.qQ))};static#t=this.\u0275dir=L.FsC({type:_n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(Ae,J){2&Ae&&L.AVh("mat-mdc-tooltip-disabled",J.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}return _n})(),Zt=(()=>{class _n{constructor(_e,Ae,J){this._changeDetectorRef=_e,this._elementRef=Ae,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new ue.B,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===J}show(_e){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},_e)}hide(_e){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},_e)}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:_e}){(!_e||!this._triggerElement.contains(_e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const _e=this._elementRef.nativeElement.getBoundingClientRect();return _e.height>24&&_e.width>=200}_handleAnimationEnd({animationName:_e}){(_e===this._showAnimation||_e===this._hideAnimation)&&this._finalizeAnimation(_e===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(_e){_e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(_e){const Ae=this._tooltip.nativeElement,J=this._showAnimation,Ie=this._hideAnimation;if(Ae.classList.remove(_e?Ie:J),Ae.classList.add(_e?J:Ie),this._isVisible!==_e&&(this._isVisible=_e,this._changeDetectorRef.markForCheck()),_e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Ot=getComputedStyle(Ae);("0s"===Ot.getPropertyValue("animation-duration")||"none"===Ot.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}_e&&this._onShow(),this._animationsDisabled&&(Ae.classList.add("_mat-animation-noopable"),this._finalizeAnimation(_e))}static#e=this.\u0275fac=function(Ae){return new(Ae||_n)(L.rXU(L.gRc),L.rXU(L.aKT),L.rXU(L.bc$,8))};static#t=this.\u0275cmp=L.VBU({type:_n,selectors:[["mat-tooltip-component"]],viewQuery:function(Ae,J){if(1&Ae&&L.GBs(Re,7),2&Ae){let Ie;L.mGM(Ie=L.lsd())&&(J._tooltip=Ie.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(Ae,J){1&Ae&&L.bIt("mouseleave",function(Ot){return J._handleMouseLeave(Ot)})},standalone:!0,features:[L.aNF],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(Ae,J){if(1&Ae){const Ie=L.RV6();L.j41(0,"div",1,0),L.bIt("animationend",function(Pe){return L.eBV(Ie),L.Njj(J._handleAnimationEnd(Pe))}),L.j41(2,"div",2),L.EFF(3),L.k0s()()}2&Ae&&(L.AVh("mdc-tooltip--multiline",J._isMultiline),L.Y8G("ngClass",J.tooltipClass),L.R7$(3),L.JRh(J.message))},dependencies:[G.YU],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-app-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-app-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-app-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-app-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-app-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-app-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-app-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return _n})(),Vn=(()=>{class _n{static#e=this.\u0275fac=function(Ae){return new(Ae||_n)};static#t=this.\u0275mod=L.$C({type:_n});static#n=this.\u0275inj=L.G2t({providers:[gt],imports:[oe.Pd,G.MD,P.z_,Ee.yE,Ee.yE,B.Gj]})}return _n})()},345:(tn,Ne,v)=>{"use strict";v.d(Ne,{B7:()=>me,B8:()=>J,hE:()=>It,up:()=>ce});var u=v(177),y=v(4438);class o extends u.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class L extends o{static makeCurrent(){(0,u.ZD)(new L)}onAndCancel(Be,ye,Ke){return Be.addEventListener(ye,Ke),()=>{Be.removeEventListener(ye,Ke)}}dispatchEvent(Be,ye){Be.dispatchEvent(ye)}remove(Be){Be.remove()}createElement(Be,ye){return(ye=ye||this.getDefaultDocument()).createElement(Be)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Be){return Be.nodeType===Node.ELEMENT_NODE}isShadowRoot(Be){return Be instanceof DocumentFragment}getGlobalEventTarget(Be,ye){return"window"===ye?window:"document"===ye?Be:"body"===ye?Be.body:null}getBaseHref(Be){const ye=function ee(){return G=G||document.querySelector("base"),G?G.getAttribute("href"):null}();return null==ye?null:function oe(He){return new URL(He,document.baseURI).pathname}(ye)}resetBaseElement(){G=null}getUserAgent(){return window.navigator.userAgent}getCookie(Be){return(0,u._b)(document.cookie,Be)}}let G=null,P=(()=>{class He{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Ke){return new(Ke||He)};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}return He})();const B=new y.nKC("");let F=(()=>{class He{constructor(ye,Ke){this._zone=Ke,this._eventNameToPlugin=new Map,ye.forEach(zt=>{zt.manager=this}),this._plugins=ye.slice().reverse()}addEventListener(ye,Ke,zt){return this._findPluginFor(Ke).addEventListener(ye,Ke,zt)}getZone(){return this._zone}_findPluginFor(ye){let Ke=this._eventNameToPlugin.get(ye);if(Ke)return Ke;if(Ke=this._plugins.find(Pn=>Pn.supports(ye)),!Ke)throw new y.wOt(5101,!1);return this._eventNameToPlugin.set(ye,Ke),Ke}static#e=this.\u0275fac=function(Ke){return new(Ke||He)(y.KVO(B),y.KVO(y.SKi))};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}return He})();class ue{constructor(Be){this._doc=Be}}const ge="ng-app-id";let Ee=(()=>{class He{constructor(ye,Ke,zt,Pn={}){this.doc=ye,this.appId=Ke,this.nonce=zt,this.platformId=Pn,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,u.Vy)(Pn),this.resetHostNodes()}addStyles(ye){for(const Ke of ye)1===this.changeUsageCount(Ke,1)&&this.onStyleAdded(Ke)}removeStyles(ye){for(const Ke of ye)this.changeUsageCount(Ke,-1)<=0&&this.onStyleRemoved(Ke)}ngOnDestroy(){const ye=this.styleNodesInDOM;ye&&(ye.forEach(Ke=>Ke.remove()),ye.clear());for(const Ke of this.getAllStyles())this.onStyleRemoved(Ke);this.resetHostNodes()}addHost(ye){this.hostNodes.add(ye);for(const Ke of this.getAllStyles())this.addStyleToHost(ye,Ke)}removeHost(ye){this.hostNodes.delete(ye)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ye){for(const Ke of this.hostNodes)this.addStyleToHost(Ke,ye)}onStyleRemoved(ye){const Ke=this.styleRef;Ke.get(ye)?.elements?.forEach(zt=>zt.remove()),Ke.delete(ye)}collectServerRenderedStyles(){const ye=this.doc.head?.querySelectorAll(`style[${ge}="${this.appId}"]`);if(ye?.length){const Ke=new Map;return ye.forEach(zt=>{null!=zt.textContent&&Ke.set(zt.textContent,zt)}),Ke}return null}changeUsageCount(ye,Ke){const zt=this.styleRef;if(zt.has(ye)){const Pn=zt.get(ye);return Pn.usage+=Ke,Pn.usage}return zt.set(ye,{usage:Ke,elements:[]}),Ke}getStyleElement(ye,Ke){const zt=this.styleNodesInDOM,Pn=zt?.get(Ke);if(Pn?.parentNode===ye)return zt.delete(Ke),Pn.removeAttribute(ge),Pn;{const vi=this.doc.createElement("style");return this.nonce&&vi.setAttribute("nonce",this.nonce),vi.textContent=Ke,this.platformIsServer&&vi.setAttribute(ge,this.appId),ye.appendChild(vi),vi}}addStyleToHost(ye,Ke){const zt=this.getStyleElement(ye,Ke),Pn=this.styleRef,vi=Pn.get(Ke)?.elements;vi?vi.push(zt):Pn.set(Ke,{elements:[zt],usage:1})}resetHostNodes(){const ye=this.hostNodes;ye.clear(),ye.add(this.doc.head)}static#e=this.\u0275fac=function(Ke){return new(Ke||He)(y.KVO(u.qQ),y.KVO(y.sZ2),y.KVO(y.BIS,8),y.KVO(y.Agw))};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}return He})();const Re={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"},ke=/%COMP%/g,je=new y.nKC("",{providedIn:"root",factory:()=>!0});function ae(He,Be){return Be.map(ye=>ye.replace(ke,He))}let me=(()=>{class He{constructor(ye,Ke,zt,Pn,vi,Ti,nn,Et=null){this.eventManager=ye,this.sharedStylesHost=Ke,this.appId=zt,this.removeStylesOnCompDestroy=Pn,this.doc=vi,this.platformId=Ti,this.ngZone=nn,this.nonce=Et,this.rendererByCompId=new Map,this.platformIsServer=(0,u.Vy)(Ti),this.defaultRenderer=new Le(ye,vi,nn,this.platformIsServer)}createRenderer(ye,Ke){if(!ye||!Ke)return this.defaultRenderer;this.platformIsServer&&Ke.encapsulation===y.gXe.ShadowDom&&(Ke={...Ke,encapsulation:y.gXe.Emulated});const zt=this.getOrCreateRenderer(ye,Ke);return zt instanceof Fn?zt.applyToHost(ye):zt instanceof Zt&&zt.applyStyles(),zt}getOrCreateRenderer(ye,Ke){const zt=this.rendererByCompId;let Pn=zt.get(Ke.id);if(!Pn){const vi=this.doc,Ti=this.ngZone,nn=this.eventManager,Et=this.sharedStylesHost,at=this.removeStylesOnCompDestroy,Lt=this.platformIsServer;switch(Ke.encapsulation){case y.gXe.Emulated:Pn=new Fn(nn,Et,Ke,this.appId,at,vi,Ti,Lt);break;case y.gXe.ShadowDom:return new Dt(nn,Et,ye,Ke,vi,Ti,this.nonce,Lt);default:Pn=new Zt(nn,Et,Ke,at,vi,Ti,Lt)}zt.set(Ke.id,Pn)}return Pn}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Ke){return new(Ke||He)(y.KVO(F),y.KVO(Ee),y.KVO(y.sZ2),y.KVO(je),y.KVO(u.qQ),y.KVO(y.Agw),y.KVO(y.SKi),y.KVO(y.BIS))};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}return He})();class Le{constructor(Be,ye,Ke,zt){this.eventManager=Be,this.doc=ye,this.ngZone=Ke,this.platformIsServer=zt,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Be,ye){return ye?this.doc.createElementNS(Re[ye]||ye,Be):this.doc.createElement(Be)}createComment(Be){return this.doc.createComment(Be)}createText(Be){return this.doc.createTextNode(Be)}appendChild(Be,ye){(vt(Be)?Be.content:Be).appendChild(ye)}insertBefore(Be,ye,Ke){Be&&(vt(Be)?Be.content:Be).insertBefore(ye,Ke)}removeChild(Be,ye){ye.remove()}selectRootElement(Be,ye){let Ke="string"==typeof Be?this.doc.querySelector(Be):Be;if(!Ke)throw new y.wOt(-5104,!1);return ye||(Ke.textContent=""),Ke}parentNode(Be){return Be.parentNode}nextSibling(Be){return Be.nextSibling}setAttribute(Be,ye,Ke,zt){if(zt){ye=zt+":"+ye;const Pn=Re[zt];Pn?Be.setAttributeNS(Pn,ye,Ke):Be.setAttribute(ye,Ke)}else Be.setAttribute(ye,Ke)}removeAttribute(Be,ye,Ke){if(Ke){const zt=Re[Ke];zt?Be.removeAttributeNS(zt,ye):Be.removeAttribute(`${Ke}:${ye}`)}else Be.removeAttribute(ye)}addClass(Be,ye){Be.classList.add(ye)}removeClass(Be,ye){Be.classList.remove(ye)}setStyle(Be,ye,Ke,zt){zt&(y.czy.DashCase|y.czy.Important)?Be.style.setProperty(ye,Ke,zt&y.czy.Important?"important":""):Be.style[ye]=Ke}removeStyle(Be,ye,Ke){Ke&y.czy.DashCase?Be.style.removeProperty(ye):Be.style[ye]=""}setProperty(Be,ye,Ke){null!=Be&&(Be[ye]=Ke)}setValue(Be,ye){Be.nodeValue=ye}listen(Be,ye,Ke){if("string"==typeof Be&&!(Be=(0,u.QT)().getGlobalEventTarget(this.doc,Be)))throw new Error(`Unsupported event target ${Be} for event ${ye}`);return this.eventManager.addEventListener(Be,ye,this.decoratePreventDefault(Ke))}decoratePreventDefault(Be){return ye=>{if("__ngUnwrap__"===ye)return Be;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Be(ye)):Be(ye))&&ye.preventDefault()}}}function vt(He){return"TEMPLATE"===He.tagName&&void 0!==He.content}class Dt extends Le{constructor(Be,ye,Ke,zt,Pn,vi,Ti,nn){super(Be,Pn,vi,nn),this.sharedStylesHost=ye,this.hostEl=Ke,this.shadowRoot=Ke.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Et=ae(zt.id,zt.styles);for(const at of Et){const Lt=document.createElement("style");Ti&&Lt.setAttribute("nonce",Ti),Lt.textContent=at,this.shadowRoot.appendChild(Lt)}}nodeOrShadowRoot(Be){return Be===this.hostEl?this.shadowRoot:Be}appendChild(Be,ye){return super.appendChild(this.nodeOrShadowRoot(Be),ye)}insertBefore(Be,ye,Ke){return super.insertBefore(this.nodeOrShadowRoot(Be),ye,Ke)}removeChild(Be,ye){return super.removeChild(null,ye)}parentNode(Be){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Be)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Zt extends Le{constructor(Be,ye,Ke,zt,Pn,vi,Ti,nn){super(Be,Pn,vi,Ti),this.sharedStylesHost=ye,this.removeStylesOnCompDestroy=zt,this.styles=nn?ae(nn,Ke.styles):Ke.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Fn extends Zt{constructor(Be,ye,Ke,zt,Pn,vi,Ti,nn){const Et=zt+"-"+Ke.id;super(Be,ye,Ke,Pn,vi,Ti,nn,Et),this.contentAttr=function qe(He){return"_ngcontent-%COMP%".replace(ke,He)}(Et),this.hostAttr=function We(He){return"_nghost-%COMP%".replace(ke,He)}(Et)}applyToHost(Be){this.applyStyles(),this.setAttribute(Be,this.hostAttr,"")}createElement(Be,ye){const Ke=super.createElement(Be,ye);return super.setAttribute(Ke,this.contentAttr,""),Ke}}let Vn=(()=>{class He extends ue{constructor(ye){super(ye)}supports(ye){return!0}addEventListener(ye,Ke,zt){return ye.addEventListener(Ke,zt,!1),()=>this.removeEventListener(ye,Ke,zt)}removeEventListener(ye,Ke,zt){return ye.removeEventListener(Ke,zt)}static#e=this.\u0275fac=function(Ke){return new(Ke||He)(y.KVO(u.qQ))};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}return He})();const _n=["alt","control","meta","shift"],pi={"\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"},_e={alt:He=>He.altKey,control:He=>He.ctrlKey,meta:He=>He.metaKey,shift:He=>He.shiftKey};let Ae=(()=>{class He extends ue{constructor(ye){super(ye)}supports(ye){return null!=He.parseEventName(ye)}addEventListener(ye,Ke,zt){const Pn=He.parseEventName(Ke),vi=He.eventCallback(Pn.fullKey,zt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,u.QT)().onAndCancel(ye,Pn.domEventName,vi))}static parseEventName(ye){const Ke=ye.toLowerCase().split("."),zt=Ke.shift();if(0===Ke.length||"keydown"!==zt&&"keyup"!==zt)return null;const Pn=He._normalizeKey(Ke.pop());let vi="",Ti=Ke.indexOf("code");if(Ti>-1&&(Ke.splice(Ti,1),vi="code."),_n.forEach(Et=>{const at=Ke.indexOf(Et);at>-1&&(Ke.splice(at,1),vi+=Et+".")}),vi+=Pn,0!=Ke.length||0===Pn.length)return null;const nn={};return nn.domEventName=zt,nn.fullKey=vi,nn}static matchEventFullKeyCode(ye,Ke){let zt=pi[ye.key]||ye.key,Pn="";return Ke.indexOf("code.")>-1&&(zt=ye.code,Pn="code."),!(null==zt||!zt)&&(zt=zt.toLowerCase()," "===zt?zt="space":"."===zt&&(zt="dot"),_n.forEach(vi=>{vi!==zt&&(0,_e[vi])(ye)&&(Pn+=vi+".")}),Pn+=zt,Pn===Ke)}static eventCallback(ye,Ke,zt){return Pn=>{He.matchEventFullKeyCode(Pn,ye)&&zt.runGuarded(()=>Ke(Pn))}}static _normalizeKey(ye){return"esc"===ye?"escape":ye}static#e=this.\u0275fac=function(Ke){return new(Ke||He)(y.KVO(u.qQ))};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}return He})();function J(He,Be){return(0,y.TL3)({rootComponent:He,...Ot(Be)})}function Ot(He){return{appProviders:[...Ce,...He?.providers??[]],platformProviders:Me}}const Me=[{provide:y.Agw,useValue:u.AJ},{provide:y.PLl,useValue:function ht(){L.makeCurrent()},multi:!0},{provide:u.qQ,useFactory:function Je(){return(0,y.TL$)(document),document},deps:[]}],Ce=[{provide:y.H8p,useValue:"root"},{provide:y.zcH,useFactory:function Xe(){return new y.zcH},deps:[]},{provide:B,useClass:Vn,multi:!0,deps:[u.qQ,y.SKi,y.Agw]},{provide:B,useClass:Ae,multi:!0,deps:[u.qQ]},me,Ee,F,{provide:y._9s,useExisting:me},{provide:u.N0,useClass:P,deps:[]},[]];let It=(()=>{class He{constructor(ye){this._doc=ye}getTitle(){return this._doc.title}setTitle(ye){this._doc.title=ye||""}static#e=this.\u0275fac=function(Ke){return new(Ke||He)(y.KVO(u.qQ))};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}return He})(),ce=(()=>{class He{static#e=this.\u0275fac=function(Ke){return new(Ke||He)};static#t=this.\u0275prov=y.jDH({token:He,factory:function(Ke){let zt=null;return zt=Ke?new(Ke||He):y.KVO(he),zt},providedIn:"root"})}return He})(),he=(()=>{class He extends ce{constructor(ye){super(),this._doc=ye}sanitize(ye,Ke){if(null==Ke)return null;switch(ye){case y.WPN.NONE:return Ke;case y.WPN.HTML:return(0,y.ZF7)(Ke,"HTML")?(0,y.rcV)(Ke):(0,y.h9k)(this._doc,String(Ke)).toString();case y.WPN.STYLE:return(0,y.ZF7)(Ke,"Style")?(0,y.rcV)(Ke):Ke;case y.WPN.SCRIPT:if((0,y.ZF7)(Ke,"Script"))return(0,y.rcV)(Ke);throw new y.wOt(5200,!1);case y.WPN.URL:return(0,y.ZF7)(Ke,"URL")?(0,y.rcV)(Ke):(0,y.$MX)(String(Ke));case y.WPN.RESOURCE_URL:if((0,y.ZF7)(Ke,"ResourceURL"))return(0,y.rcV)(Ke);throw new y.wOt(5201,!1);default:throw new y.wOt(5202,!1)}}bypassSecurityTrustHtml(ye){return(0,y.Kcf)(ye)}bypassSecurityTrustStyle(ye){return(0,y.cWb)(ye)}bypassSecurityTrustScript(ye){return(0,y.UyX)(ye)}bypassSecurityTrustUrl(ye){return(0,y.osQ)(ye)}bypassSecurityTrustResourceUrl(ye){return(0,y.e5t)(ye)}static#e=this.\u0275fac=function(Ke){return new(Ke||He)(y.KVO(u.qQ))};static#t=this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}return He})()},9192:(tn,Ne,v)=>{"use strict";v.d(Ne,{nX:()=>Hr,wF:()=>se,Kp:()=>Yn,Ix:()=>xt,Wk:()=>Rn,wQ:()=>pn,iI:()=>Do,n3:()=>zo,lh:()=>Si,oH:()=>Er,Sn:()=>Br});var u=v(4438),y=v(4402),o=v(6648),L=v(7673),G=v(4412),ee=v(4572),oe=v(9350),V=v(8793),P=v(9030),B=v(1203),F=v(8810),ue=v(983),ge=v(17),Ee=v(1413),Re=v(8359),ke=v(177),te=v(6354),be=v(5558),Ze=v(6697),gt=v(9172),je=v(5964),qe=v(1397),We=v(9974),ae=v(4360);function me(E){return(0,We.N)((O,D)=>{let R=!1;O.subscribe((0,ae._)(D,Y=>{R=!0,D.next(Y)},()=>{R||D.next(E),D.complete()}))})}function Le(E=nt){return(0,We.N)((O,D)=>{let R=!1;O.subscribe((0,ae._)(D,Y=>{R=!0,D.next(Y)},()=>R?D.complete():D.error(E())))})}function nt(){return new oe.G}var At=v(3669);function vt(E,O){const D=arguments.length>=2;return R=>R.pipe(E?(0,je.p)((Y,Se)=>E(Y,Se,R)):At.D,(0,Ze.s)(1),D?me(O):Le(()=>new oe.G))}var Dt=v(274),Zt=v(8141),Fn=v(9437);function pi(E){return E<=0?()=>ue.w:(0,We.N)((O,D)=>{let R=[];O.subscribe((0,ae._)(D,Y=>{R.push(Y),E{for(const Y of R)D.next(Y);D.complete()},void 0,()=>{R=null}))})}var Ae=v(3703),J=v(980),Ie=v(9898),Ot=v(6977),Pe=v(6365),ht=v(345);const Xe="primary",Je=Symbol("RouteTitle");class Me{constructor(O){this.params=O||{}}has(O){return Object.prototype.hasOwnProperty.call(this.params,O)}get(O){if(this.has(O)){const D=this.params[O];return Array.isArray(D)?D[0]:D}return null}getAll(O){if(this.has(O)){const D=this.params[O];return Array.isArray(D)?D:[D]}return[]}get keys(){return Object.keys(this.params)}}function ie(E){return new Me(E)}function ve(E,O,D){const R=D.path.split("/");if(R.length>E.length||"full"===D.pathMatch&&(O.hasChildren()||R.lengthR[Se]===Y)}return E===O}function it(E){return E.length>0?E[E.length-1]:null}function It(E){return(0,y.A)(E)?E:(0,u.jNT)(E)?(0,o.H)(Promise.resolve(E)):(0,L.of)(E)}const Ft={exact:function qt(E,O,D){if(!$(E.segments,O.segments)||!bt(E.segments,O.segments,D)||E.numberOfChildren!==O.numberOfChildren)return!1;for(const R in O.children)if(!E.children[R]||!qt(E.children[R],O.children[R],D))return!1;return!0},subset:tt},Rt={exact:function hi(E,O){return Ce(E,O)},subset:function we(E,O){return Object.keys(O).length<=Object.keys(E).length&&Object.keys(O).every(D=>un(E[D],O[D]))},ignored:()=>!0};function kn(E,O,D){return Ft[D.paths](E.root,O.root,D.matrixParams)&&Rt[D.queryParams](E.queryParams,O.queryParams)&&!("exact"===D.fragment&&E.fragment!==O.fragment)}function tt(E,O,D){return rt(E,O,O.segments,D)}function rt(E,O,D,R){if(E.segments.length>D.length){const Y=E.segments.slice(0,D.length);return!(!$(Y,D)||O.hasChildren()||!bt(Y,D,R))}if(E.segments.length===D.length){if(!$(E.segments,D)||!bt(E.segments,D,R))return!1;for(const Y in O.children)if(!E.children[Y]||!tt(E.children[Y],O.children[Y],R))return!1;return!0}{const Y=D.slice(0,E.segments.length),Se=D.slice(E.segments.length);return!!($(E.segments,Y)&&bt(E.segments,Y,R)&&E.children[Xe])&&rt(E.children[Xe],O,Se,R)}}function bt(E,O,D){return O.every((R,Y)=>Rt[D](E[Y].parameters,R.parameters))}class on{constructor(O=new Q([],{}),D={},R=null){this.root=O,this.queryParams=D,this.fragment=R}get queryParamMap(){return this._queryParamMap??=ie(this.queryParams),this._queryParamMap}toString(){return $t.serialize(this)}}class Q{constructor(O,D){this.segments=O,this.children=D,this.parent=null,Object.values(D).forEach(R=>R.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bt(this)}}class T{constructor(O,D){this.path=O,this.parameters=D}get parameterMap(){return this._parameterMap??=ie(this.parameters),this._parameterMap}toString(){return Be(this)}}function $(E,O){return E.length===O.length&&E.every((D,R)=>D.path===O[R].path)}let he=(()=>{class E{static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:()=>new et,providedIn:"root"})}return E})();class et{parse(O){const D=new st(O);return new on(D.parseRootSegment(),D.parseQueryParams(),D.parseFragment())}serialize(O){const D=`/${Vt(O.root,!0)}`,R=function Ke(E){const O=Object.entries(E).map(([D,R])=>Array.isArray(R)?R.map(Y=>`${Ln(D)}=${Ln(Y)}`).join("&"):`${Ln(D)}=${Ln(R)}`).filter(D=>D);return O.length?`?${O.join("&")}`:""}(O.queryParams);return`${D}${R}${"string"==typeof O.fragment?`#${function Ei(E){return encodeURI(E)}(O.fragment)}`:""}`}}const $t=new et;function Bt(E){return E.segments.map(O=>Be(O)).join("/")}function Vt(E,O){if(!E.hasChildren())return Bt(E);if(O){const D=E.children[Xe]?Vt(E.children[Xe],!1):"",R=[];return Object.entries(E.children).forEach(([Y,Se])=>{Y!==Xe&&R.push(`${Y}:${Vt(Se,!1)}`)}),R.length>0?`${D}(${R.join("//")})`:D}{const D=function ce(E,O){let D=[];return Object.entries(E.children).forEach(([R,Y])=>{R===Xe&&(D=D.concat(O(Y,R)))}),Object.entries(E.children).forEach(([R,Y])=>{R!==Xe&&(D=D.concat(O(Y,R)))}),D}(E,(R,Y)=>Y===Xe?[Vt(E.children[Xe],!1)]:[`${Y}:${Vt(R,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[Xe]?`${Bt(E)}/${D[0]}`:`${Bt(E)}/(${D.join("//")})`}}function Mn(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ln(E){return Mn(E).replace(/%3B/gi,";")}function Jt(E){return Mn(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function En(E){return decodeURIComponent(E)}function He(E){return En(E.replace(/\+/g,"%20"))}function Be(E){return`${Jt(E.path)}${function ye(E){return Object.entries(E).map(([O,D])=>`;${Jt(O)}=${Jt(D)}`).join("")}(E.parameters)}`}const zt=/^[^\/()?;#]+/;function Pn(E){const O=E.match(zt);return O?O[0]:""}const vi=/^[^\/()?;=#]+/,nn=/^[^=?&#]+/,at=/^[^&#]+/;class st{constructor(O){this.url=O,this.remaining=O}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Q([],{}):new Q([],this.parseChildren())}parseQueryParams(){const O={};if(this.consumeOptional("?"))do{this.parseQueryParam(O)}while(this.consumeOptional("&"));return O}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const O=[];for(this.peekStartsWith("(")||O.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),O.push(this.parseSegment());let D={};this.peekStartsWith("/(")&&(this.capture("/"),D=this.parseParens(!0));let R={};return this.peekStartsWith("(")&&(R=this.parseParens(!1)),(O.length>0||Object.keys(D).length>0)&&(R[Xe]=new Q(O,D)),R}parseSegment(){const O=Pn(this.remaining);if(""===O&&this.peekStartsWith(";"))throw new u.wOt(4009,!1);return this.capture(O),new T(En(O),this.parseMatrixParams())}parseMatrixParams(){const O={};for(;this.consumeOptional(";");)this.parseParam(O);return O}parseParam(O){const D=function Ti(E){const O=E.match(vi);return O?O[0]:""}(this.remaining);if(!D)return;this.capture(D);let R="";if(this.consumeOptional("=")){const Y=Pn(this.remaining);Y&&(R=Y,this.capture(R))}O[En(D)]=En(R)}parseQueryParam(O){const D=function Et(E){const O=E.match(nn);return O?O[0]:""}(this.remaining);if(!D)return;this.capture(D);let R="";if(this.consumeOptional("=")){const ut=function Lt(E){const O=E.match(at);return O?O[0]:""}(this.remaining);ut&&(R=ut,this.capture(R))}const Y=He(D),Se=He(R);if(O.hasOwnProperty(Y)){let ut=O[Y];Array.isArray(ut)||(ut=[ut],O[Y]=ut),ut.push(Se)}else O[Y]=Se}parseParens(O){const D={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const R=Pn(this.remaining),Y=this.remaining[R.length];if("/"!==Y&&")"!==Y&&";"!==Y)throw new u.wOt(4010,!1);let Se;R.indexOf(":")>-1?(Se=R.slice(0,R.indexOf(":")),this.capture(Se),this.capture(":")):O&&(Se=Xe);const ut=this.parseChildren();D[Se]=1===Object.keys(ut).length?ut[Xe]:new Q([],ut),this.consumeOptional("//")}return D}peekStartsWith(O){return this.remaining.startsWith(O)}consumeOptional(O){return!!this.peekStartsWith(O)&&(this.remaining=this.remaining.substring(O.length),!0)}capture(O){if(!this.consumeOptional(O))throw new u.wOt(4011,!1)}}function Qe(E){return E.segments.length>0?new Q([],{[Xe]:E}):E}function Oe(E){const O={};for(const[R,Y]of Object.entries(E.children)){const Se=Oe(Y);if(R===Xe&&0===Se.segments.length&&Se.hasChildren())for(const[ut,sn]of Object.entries(Se.children))O[ut]=sn;else(Se.segments.length>0||Se.hasChildren())&&(O[R]=Se)}return function ct(E){if(1===E.numberOfChildren&&E.children[Xe]){const O=E.children[Xe];return new Q(E.segments.concat(O.segments),O.children)}return E}(new Q(E.segments,O))}function Wt(E){return E instanceof on}function ai(E){let O;const Y=Qe(function D(Se){const ut={};for(const Kt of Se.children){const ti=D(Kt);ut[Kt.outlet]=ti}const sn=new Q(Se.url,ut);return Se===E&&(O=sn),sn}(E.root));return O??Y}function yr(E,O,D,R){let Y=E;for(;Y.parent;)Y=Y.parent;if(0===O.length)return Pr(Y,Y,Y,D,R);const Se=function Or(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new Yr(!0,0,E);let O=0,D=!1;const R=E.reduce((Y,Se,ut)=>{if("object"==typeof Se&&null!=Se){if(Se.outlets){const sn={};return Object.entries(Se.outlets).forEach(([Kt,ti])=>{sn[Kt]="string"==typeof ti?ti.split("/"):ti}),[...Y,{outlets:sn}]}if(Se.segmentPath)return[...Y,Se.segmentPath]}return"string"!=typeof Se?[...Y,Se]:0===ut?(Se.split("/").forEach((sn,Kt)=>{0==Kt&&"."===sn||(0==Kt&&""===sn?D=!0:".."===sn?O++:""!=sn&&Y.push(sn))}),Y):[...Y,Se]},[]);return new Yr(D,O,R)}(O);if(Se.toRoot())return Pr(Y,Y,new Q([],{}),D,R);const ut=function St(E,O,D){if(E.isAbsolute)return new ft(O,!0,0);if(!D)return new ft(O,!1,NaN);if(null===D.parent)return new ft(D,!0,0);const R=xr(E.commands[0])?0:1;return function ln(E,O,D){let R=E,Y=O,Se=D;for(;Se>Y;){if(Se-=Y,R=R.parent,!R)throw new u.wOt(4005,!1);Y=R.segments.length}return new ft(R,!1,Y-Se)}(D,D.segments.length-1+R,E.numberOfDoubleDots)}(Se,Y,E),sn=ut.processChildren?Xn(ut.segmentGroup,ut.index,Se.commands):An(ut.segmentGroup,ut.index,Se.commands);return Pr(Y,ut.segmentGroup,sn,D,R)}function xr(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function Ri(E){return"object"==typeof E&&null!=E&&E.outlets}function Pr(E,O,D,R,Y){let ut,Se={};R&&Object.entries(R).forEach(([Kt,ti])=>{Se[Kt]=Array.isArray(ti)?ti.map(ji=>`${ji}`):`${ti}`}),ut=E===O?D:wi(E,O,D);const sn=Qe(Oe(ut));return new on(sn,Se,Y)}function wi(E,O,D){const R={};return Object.entries(E.children).forEach(([Y,Se])=>{R[Y]=Se===O?D:wi(Se,O,D)}),new Q(E.segments,R)}class Yr{constructor(O,D,R){if(this.isAbsolute=O,this.numberOfDoubleDots=D,this.commands=R,O&&R.length>0&&xr(R[0]))throw new u.wOt(4003,!1);const Y=R.find(Ri);if(Y&&Y!==it(R))throw new u.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ft{constructor(O,D,R){this.segmentGroup=O,this.processChildren=D,this.index=R}}function An(E,O,D){if(E??=new Q([],{}),0===E.segments.length&&E.hasChildren())return Xn(E,O,D);const R=function zn(E,O,D){let R=0,Y=O;const Se={match:!1,pathIndex:0,commandIndex:0};for(;Y=D.length)return Se;const ut=E.segments[Y],sn=D[R];if(Ri(sn))break;const Kt=`${sn}`,ti=R0&&void 0===Kt)break;if(Kt&&ti&&"object"==typeof ti&&void 0===ti.outlets){if(!xe(Kt,ti,ut))return Se;R+=2}else{if(!xe(Kt,{},ut))return Se;R++}Y++}return{match:!0,pathIndex:Y,commandIndex:R}}(E,O,D),Y=D.slice(R.commandIndex);if(R.match&&R.pathIndexSe!==Xe)&&E.children[Xe]&&1===E.numberOfChildren&&0===E.children[Xe].segments.length){const Se=Xn(E.children[Xe],O,D);return new Q(E.segments,Se.children)}return Object.entries(R).forEach(([Se,ut])=>{"string"==typeof ut&&(ut=[ut]),null!==ut&&(Y[Se]=An(E.children[Se],O,ut))}),Object.entries(E.children).forEach(([Se,ut])=>{void 0===R[Se]&&(Y[Se]=ut)}),new Q(E.segments,Y)}}function ri(E,O,D){const R=E.segments.slice(0,O);let Y=0;for(;Y{"string"==typeof R&&(R=[R]),null!==R&&(O[D]=ri(new Q([],{}),0,R))}),O}function Bn(E){const O={};return Object.entries(E).forEach(([D,R])=>O[D]=`${R}`),O}function xe(E,O,D){return E==D.path&&Ce(O,D.parameters)}const Ye="imperative";var Ge=function(E){return E[E.NavigationStart=0]="NavigationStart",E[E.NavigationEnd=1]="NavigationEnd",E[E.NavigationCancel=2]="NavigationCancel",E[E.NavigationError=3]="NavigationError",E[E.RoutesRecognized=4]="RoutesRecognized",E[E.ResolveStart=5]="ResolveStart",E[E.ResolveEnd=6]="ResolveEnd",E[E.GuardsCheckStart=7]="GuardsCheckStart",E[E.GuardsCheckEnd=8]="GuardsCheckEnd",E[E.RouteConfigLoadStart=9]="RouteConfigLoadStart",E[E.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",E[E.ChildActivationStart=11]="ChildActivationStart",E[E.ChildActivationEnd=12]="ChildActivationEnd",E[E.ActivationStart=13]="ActivationStart",E[E.ActivationEnd=14]="ActivationEnd",E[E.Scroll=15]="Scroll",E[E.NavigationSkipped=16]="NavigationSkipped",E}(Ge||{});class W{constructor(O,D){this.id=O,this.url=D}}class Te extends W{constructor(O,D,R="imperative",Y=null){super(O,D),this.type=Ge.NavigationStart,this.navigationTrigger=R,this.restoredState=Y}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class se extends W{constructor(O,D,R){super(O,D),this.urlAfterRedirects=R,this.type=Ge.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var $e=function(E){return E[E.Redirect=0]="Redirect",E[E.SupersededByNewNavigation=1]="SupersededByNewNavigation",E[E.NoDataFromResolver=2]="NoDataFromResolver",E[E.GuardRejected=3]="GuardRejected",E}($e||{}),pt=function(E){return E[E.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",E[E.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",E}(pt||{});class lt extends W{constructor(O,D,R,Y){super(O,D),this.reason=R,this.code=Y,this.type=Ge.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class jt extends W{constructor(O,D,R,Y){super(O,D),this.reason=R,this.code=Y,this.type=Ge.NavigationSkipped}}class hn extends W{constructor(O,D,R,Y){super(O,D),this.error=R,this.target=Y,this.type=Ge.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class fn extends W{constructor(O,D,R,Y){super(O,D),this.urlAfterRedirects=R,this.state=Y,this.type=Ge.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wn extends W{constructor(O,D,R,Y){super(O,D),this.urlAfterRedirects=R,this.state=Y,this.type=Ge.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dn extends W{constructor(O,D,R,Y,Se){super(O,D),this.urlAfterRedirects=R,this.state=Y,this.shouldActivate=Se,this.type=Ge.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class jn extends W{constructor(O,D,R,Y){super(O,D),this.urlAfterRedirects=R,this.state=Y,this.type=Ge.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $n extends W{constructor(O,D,R,Y){super(O,D),this.urlAfterRedirects=R,this.state=Y,this.type=Ge.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ci{constructor(O){this.route=O,this.type=Ge.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ki{constructor(O){this.route=O,this.type=Ge.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ei{constructor(O){this.snapshot=O,this.type=Ge.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gn{constructor(O){this.snapshot=O,this.type=Ge.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rr{constructor(O){this.snapshot=O,this.type=Ge.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class uo{constructor(O){this.snapshot=O,this.type=Ge.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fr{constructor(O,D,R){this.routerEvent=O,this.position=D,this.anchor=R,this.type=Ge.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ci{}class Lr{constructor(O,D){this.url=O,this.navigationBehaviorOptions=D}}function Sr(E){return E.outlet||Xe}function hr(E){if(!E)return null;if(E.routeConfig?._injector)return E.routeConfig._injector;for(let O=E.parent;O;O=O.parent){const D=O.routeConfig;if(D?._loadedInjector)return D._loadedInjector;if(D?._injector)return D._injector}return null}class is{get injector(){return hr(this.route?.snapshot)??this.rootInjector}set injector(O){}constructor(O){this.rootInjector=O,this.outlet=null,this.route=null,this.children=new no(this.rootInjector),this.attachRef=null}}let no=(()=>{class E{constructor(D){this.rootInjector=D,this.contexts=new Map}onChildOutletCreated(D,R){const Y=this.getOrCreateContext(D);Y.outlet=R,this.contexts.set(D,Y)}onChildOutletDestroyed(D){const R=this.getContext(D);R&&(R.outlet=null,R.attachRef=null)}onOutletDeactivated(){const D=this.contexts;return this.contexts=new Map,D}onOutletReAttached(D){this.contexts=D}getOrCreateContext(D){let R=this.getContext(D);return R||(R=new is(this.rootInjector),this.contexts.set(D,R)),R}getContext(D){return this.contexts.get(D)||null}static#e=this.\u0275fac=function(R){return new(R||E)(u.KVO(u.uvJ))};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();class Ii{constructor(O){this._root=O}get root(){return this._root.value}parent(O){const D=this.pathFromRoot(O);return D.length>1?D[D.length-2]:null}children(O){const D=rs(O,this._root);return D?D.children.map(R=>R.value):[]}firstChild(O){const D=rs(O,this._root);return D&&D.children.length>0?D.children[0].value:null}siblings(O){const D=Ar(O,this._root);return D.length<2?[]:D[D.length-2].children.map(Y=>Y.value).filter(Y=>Y!==O)}pathFromRoot(O){return Ar(O,this._root).map(D=>D.value)}}function rs(E,O){if(E===O.value)return O;for(const D of O.children){const R=rs(E,D);if(R)return R}return null}function Ar(E,O){if(E===O.value)return[O];for(const D of O.children){const R=Ar(E,D);if(R.length)return R.unshift(O),R}return[]}class Tr{constructor(O,D){this.value=O,this.children=D}toString(){return`TreeNode(${this.value})`}}function Ir(E){const O={};return E&&E.children.forEach(D=>O[D.value.outlet]=D),O}class Vs extends Ii{constructor(O,D){super(O),this.snapshot=D,gs(this,O)}toString(){return this.snapshot.toString()}}function Di(E){const O=function js(E){const Se=new Uo([],{},{},"",{},Xe,E,null,{});return new va("",new Tr(Se,[]))}(E),D=new G.t([new T("",{})]),R=new G.t({}),Y=new G.t({}),Se=new G.t({}),ut=new G.t(""),sn=new Hr(D,R,Se,ut,Y,Xe,E,O.root);return sn.snapshot=O.root,new Vs(new Tr(sn,[]),O)}class Hr{constructor(O,D,R,Y,Se,ut,sn,Kt){this.urlSubject=O,this.paramsSubject=D,this.queryParamsSubject=R,this.fragmentSubject=Y,this.dataSubject=Se,this.outlet=ut,this.component=sn,this._futureSnapshot=Kt,this.title=this.dataSubject?.pipe((0,te.T)(ti=>ti[Je]))??(0,L.of)(void 0),this.url=O,this.params=D,this.queryParams=R,this.fragment=Y,this.data=Se}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,te.T)(O=>ie(O))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,te.T)(O=>ie(O))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Bo(E,O,D="emptyOnly"){let R;const{routeConfig:Y}=E;return R=null===O||"always"!==D&&""!==Y?.path&&(O.component||O.routeConfig?.loadComponent)?{params:{...E.params},data:{...E.data},resolve:{...E.data,...E._resolvedData??{}}}:{params:{...O.params,...E.params},data:{...O.data,...E.data},resolve:{...E.data,...O.data,...Y?.data,...E._resolvedData}},Y&&gr(Y)&&(R.resolve[Je]=Y.title),R}class Uo{get title(){return this.data?.[Je]}constructor(O,D,R,Y,Se,ut,sn,Kt,ti){this.url=O,this.params=D,this.queryParams=R,this.fragment=Y,this.data=Se,this.outlet=ut,this.component=sn,this.routeConfig=Kt,this._resolve=ti}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??=ie(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ie(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(R=>R.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class va extends Ii{constructor(O,D){super(D),this.url=O,gs(this,D)}toString(){return Hs(this._root)}}function gs(E,O){O.value._routerState=E,O.children.forEach(D=>gs(E,D))}function Hs(E){const O=E.children.length>0?` { ${E.children.map(Hs).join(", ")} } `:"";return`${E.value}${O}`}function Qr(E){if(E.snapshot){const O=E.snapshot,D=E._futureSnapshot;E.snapshot=D,Ce(O.queryParams,D.queryParams)||E.queryParamsSubject.next(D.queryParams),O.fragment!==D.fragment&&E.fragmentSubject.next(D.fragment),Ce(O.params,D.params)||E.paramsSubject.next(D.params),function le(E,O){if(E.length!==O.length)return!1;for(let D=0;DCe(D.parameters,O[R].parameters))}(E.url,O.url);return D&&!(!E.parent!=!O.parent)&&(!E.parent||Li(E.parent,O.parent))}function gr(E){return"string"==typeof E.title||null===E.title}let zo=(()=>{class E{constructor(){this.activated=null,this._activatedRoute=null,this.name=Xe,this.activateEvents=new u.bkB,this.deactivateEvents=new u.bkB,this.attachEvents=new u.bkB,this.detachEvents=new u.bkB,this.parentContexts=(0,u.WQX)(no),this.location=(0,u.WQX)(u.c1b),this.changeDetector=(0,u.WQX)(u.gRc),this.inputBinder=(0,u.WQX)(oa,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(D){if(D.name){const{firstChange:R,previousValue:Y}=D.name;if(R)return;this.isTrackedInParentContexts(Y)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Y)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(D){return this.parentContexts.getContext(D)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const D=this.parentContexts.getContext(this.name);D?.route&&(D.attachRef?this.attach(D.attachRef,D.route):this.activateWith(D.route,D.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new u.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new u.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new u.wOt(4012,!1);this.location.detach();const D=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(D.instance),D}attach(D,R){this.activated=D,this._activatedRoute=R,this.location.insert(D.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(D.instance)}deactivate(){if(this.activated){const D=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(D)}}activateWith(D,R){if(this.isActivated)throw new u.wOt(4013,!1);this._activatedRoute=D;const Y=this.location,ut=D.snapshot.component,sn=this.parentContexts.getOrCreateContext(this.name).children,Kt=new so(D,sn,Y.injector);this.activated=Y.createComponent(ut,{index:Y.length,injector:Kt,environmentInjector:R}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275dir=u.FsC({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[u.OA$]})}return E})();class so{__ngOutletInjector(O){return new so(this.route,this.childContexts,O)}constructor(O,D,R){this.route=O,this.childContexts=D,this.parent=R}get(O,D){return O===Hr?this.route:O===no?this.childContexts:this.parent.get(O,D)}}const oa=new u.nKC("");let lr=(()=>{class E{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(D){this.unsubscribeFromRouteData(D),this.subscribeToRouteData(D)}unsubscribeFromRouteData(D){this.outletDataSubscriptions.get(D)?.unsubscribe(),this.outletDataSubscriptions.delete(D)}subscribeToRouteData(D){const{activatedRoute:R}=D,Y=(0,ee.z)([R.queryParams,R.params,R.data]).pipe((0,be.n)(([Se,ut,sn],Kt)=>(sn={...Se,...ut,...sn},0===Kt?(0,L.of)(sn):Promise.resolve(sn)))).subscribe(Se=>{if(!D.isActivated||!D.activatedComponentRef||D.activatedRoute!==R||null===R.component)return void this.unsubscribeFromRouteData(D);const ut=(0,u.HJs)(R.component);if(ut)for(const{templateName:sn}of ut.inputs)D.activatedComponentRef.setInput(sn,Se[sn]);else this.unsubscribeFromRouteData(D)});this.outletDataSubscriptions.set(D,Y)}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac})}return E})();function Eo(E,O,D){if(D&&E.shouldReuseRoute(O.value,D.value.snapshot)){const R=D.value;R._futureSnapshot=O.value;const Y=function $s(E,O,D){return O.children.map(R=>{for(const Y of D.children)if(E.shouldReuseRoute(R.value,Y.value.snapshot))return Eo(E,R,Y);return Eo(E,R)})}(E,O,D);return new Tr(R,Y)}{if(E.shouldAttach(O.value)){const Se=E.retrieve(O.value);if(null!==Se){const ut=Se.route;return ut.value._futureSnapshot=O.value,ut.children=O.children.map(sn=>Eo(E,sn)),ut}}const R=function Mi(E){return new Hr(new G.t(E.url),new G.t(E.params),new G.t(E.queryParams),new G.t(E.fragment),new G.t(E.data),E.outlet,E.component,E)}(O.value),Y=O.children.map(Se=>Eo(E,Se));return new Tr(R,Y)}}class os{constructor(O,D){this.redirectTo=O,this.navigationBehaviorOptions=D}}const Zr="ngNavigationCancelingError";function Wo(E,O){const{redirectTo:D,navigationBehaviorOptions:R}=Wt(O)?{redirectTo:O,navigationBehaviorOptions:void 0}:O,Y=ul(!1,$e.Redirect);return Y.url=D,Y.navigationBehaviorOptions=R,Y}function ul(E,O){const D=new Error(`NavigationCancelingError: ${E||""}`);return D[Zr]=!0,D.cancellationCode=O,D}function zs(E){return!!E&&E[Zr]}class Cs{constructor(O,D,R,Y,Se){this.routeReuseStrategy=O,this.futureState=D,this.currState=R,this.forwardEvent=Y,this.inputBindingEnabled=Se}activate(O){const D=this.futureState._root,R=this.currState?this.currState._root:null;this.deactivateChildRoutes(D,R,O),Qr(this.futureState.root),this.activateChildRoutes(D,R,O)}deactivateChildRoutes(O,D,R){const Y=Ir(D);O.children.forEach(Se=>{const ut=Se.value.outlet;this.deactivateRoutes(Se,Y[ut],R),delete Y[ut]}),Object.values(Y).forEach(Se=>{this.deactivateRouteAndItsChildren(Se,R)})}deactivateRoutes(O,D,R){const Y=O.value,Se=D?D.value:null;if(Y===Se)if(Y.component){const ut=R.getContext(Y.outlet);ut&&this.deactivateChildRoutes(O,D,ut.children)}else this.deactivateChildRoutes(O,D,R);else Se&&this.deactivateRouteAndItsChildren(D,R)}deactivateRouteAndItsChildren(O,D){O.value.component&&this.routeReuseStrategy.shouldDetach(O.value.snapshot)?this.detachAndStoreRouteSubtree(O,D):this.deactivateRouteAndOutlet(O,D)}detachAndStoreRouteSubtree(O,D){const R=D.getContext(O.value.outlet),Y=R&&O.value.component?R.children:D,Se=Ir(O);for(const ut of Object.values(Se))this.deactivateRouteAndItsChildren(ut,Y);if(R&&R.outlet){const ut=R.outlet.detach(),sn=R.children.onOutletDeactivated();this.routeReuseStrategy.store(O.value.snapshot,{componentRef:ut,route:O,contexts:sn})}}deactivateRouteAndOutlet(O,D){const R=D.getContext(O.value.outlet),Y=R&&O.value.component?R.children:D,Se=Ir(O);for(const ut of Object.values(Se))this.deactivateRouteAndItsChildren(ut,Y);R&&(R.outlet&&(R.outlet.deactivate(),R.children.onOutletDeactivated()),R.attachRef=null,R.route=null)}activateChildRoutes(O,D,R){const Y=Ir(D);O.children.forEach(Se=>{this.activateRoutes(Se,Y[Se.value.outlet],R),this.forwardEvent(new uo(Se.value.snapshot))}),O.children.length&&this.forwardEvent(new Gn(O.value.snapshot))}activateRoutes(O,D,R){const Y=O.value,Se=D?D.value:null;if(Qr(Y),Y===Se)if(Y.component){const ut=R.getOrCreateContext(Y.outlet);this.activateChildRoutes(O,D,ut.children)}else this.activateChildRoutes(O,D,R);else if(Y.component){const ut=R.getOrCreateContext(Y.outlet);if(this.routeReuseStrategy.shouldAttach(Y.snapshot)){const sn=this.routeReuseStrategy.retrieve(Y.snapshot);this.routeReuseStrategy.store(Y.snapshot,null),ut.children.onOutletReAttached(sn.contexts),ut.attachRef=sn.componentRef,ut.route=sn.route.value,ut.outlet&&ut.outlet.attach(sn.componentRef,sn.route.value),Qr(sn.route.value),this.activateChildRoutes(O,null,ut.children)}else ut.attachRef=null,ut.route=Y,ut.outlet&&ut.outlet.activateWith(Y,ut.injector),this.activateChildRoutes(O,null,ut.children)}else this.activateChildRoutes(O,null,R)}}class Go{constructor(O){this.path=O,this.route=this.path[this.path.length-1]}}class or{constructor(O,D){this.component=O,this.route=D}}function ss(E,O,D){const R=E._root;return jo(R,O?O._root:null,D,[R.value])}function Vo(E,O){const D=Symbol(),R=O.get(E,D);return R===D?"function"!=typeof E||(0,u.LfX)(E)?O.get(E):E:R}function jo(E,O,D,R,Y={canDeactivateChecks:[],canActivateChecks:[]}){const Se=Ir(O);return E.children.forEach(ut=>{(function Ws(E,O,D,R,Y={canDeactivateChecks:[],canActivateChecks:[]}){const Se=E.value,ut=O?O.value:null,sn=D?D.getContext(E.value.outlet):null;if(ut&&Se.routeConfig===ut.routeConfig){const Kt=function Ko(E,O,D){if("function"==typeof D)return D(E,O);switch(D){case"pathParamsChange":return!$(E.url,O.url);case"pathParamsOrQueryParamsChange":return!$(E.url,O.url)||!Ce(E.queryParams,O.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Li(E,O)||!Ce(E.queryParams,O.queryParams);default:return!Li(E,O)}}(ut,Se,Se.routeConfig.runGuardsAndResolvers);Kt?Y.canActivateChecks.push(new Go(R)):(Se.data=ut.data,Se._resolvedData=ut._resolvedData),jo(E,O,Se.component?sn?sn.children:null:D,R,Y),Kt&&sn&&sn.outlet&&sn.outlet.isActivated&&Y.canDeactivateChecks.push(new or(sn.outlet.component,ut))}else ut&&Mo(O,sn,Y),Y.canActivateChecks.push(new Go(R)),jo(E,null,Se.component?sn?sn.children:null:D,R,Y)})(ut,Se[ut.value.outlet],D,R.concat([ut.value]),Y),delete Se[ut.value.outlet]}),Object.entries(Se).forEach(([ut,sn])=>Mo(sn,D.getContext(ut),Y)),Y}function Mo(E,O,D){const R=Ir(E),Y=E.value;Object.entries(R).forEach(([Se,ut])=>{Mo(ut,Y.component?O?O.children.getContext(Se):null:O,D)}),D.canDeactivateChecks.push(new or(Y.component&&O&&O.outlet&&O.outlet.isActivated?O.outlet.component:null,Y))}function as(E){return"function"==typeof E}function Xo(E){return E instanceof oe.G||"EmptyError"===E?.name}const fr=Symbol("INITIAL_VALUE");function Ro(){return(0,be.n)(E=>(0,ee.z)(E.map(O=>O.pipe((0,Ze.s)(1),(0,gt.Z)(fr)))).pipe((0,te.T)(O=>{for(const D of O)if(!0!==D){if(D===fr)return fr;if(!1===D||z(D))return D}return!0}),(0,je.p)(O=>O!==fr),(0,Ze.s)(1)))}function z(E){return Wt(E)||E instanceof os}function Vl(E){return(0,B.F)((0,Zt.M)(O=>{if("boolean"!=typeof O)throw Wo(0,O)}),(0,te.T)(O=>!0===O))}class Ss{constructor(O){this.segmentGroup=O||null}}class Oa extends Error{constructor(O){super(),this.urlTree=O}}function aa(E){return(0,F.$)(new Ss(E))}class ka{constructor(O,D){this.urlSerializer=O,this.urlTree=D}lineralizeSegments(O,D){let R=[],Y=D.root;for(;;){if(R=R.concat(Y.segments),0===Y.numberOfChildren)return(0,L.of)(R);if(Y.numberOfChildren>1||!Y.children[Xe])return(0,F.$)(new u.wOt(4e3,!1));Y=Y.children[Xe]}}applyRedirectCommands(O,D,R,Y,Se){if("string"!=typeof D){const sn=D,{queryParams:Kt,fragment:ti,routeConfig:ji,url:Qi,outlet:io,params:ya,data:qo,title:La}=Y,Ms=(0,u.N4e)(Se,()=>sn({params:ya,data:qo,queryParams:Kt,fragment:ti,routeConfig:ji,url:Qi,outlet:io,title:La}));if(Ms instanceof on)throw new Oa(Ms);D=Ms}const ut=this.applyRedirectCreateUrlTree(D,this.urlSerializer.parse(D),O,R);if("/"===D[0])throw new Oa(ut);return ut}applyRedirectCreateUrlTree(O,D,R,Y){const Se=this.createSegmentGroup(O,D.root,R,Y);return new on(Se,this.createQueryParams(D.queryParams,this.urlTree.queryParams),D.fragment)}createQueryParams(O,D){const R={};return Object.entries(O).forEach(([Y,Se])=>{if("string"==typeof Se&&":"===Se[0]){const sn=Se.substring(1);R[Y]=D[sn]}else R[Y]=Se}),R}createSegmentGroup(O,D,R,Y){const Se=this.createSegments(O,D.segments,R,Y);let ut={};return Object.entries(D.children).forEach(([sn,Kt])=>{ut[sn]=this.createSegmentGroup(O,Kt,R,Y)}),new Q(Se,ut)}createSegments(O,D,R,Y){return D.map(Se=>":"===Se.path[0]?this.findPosParam(O,Se,Y):this.findOrReturn(Se,R))}findPosParam(O,D,R){const Y=R[D.path.substring(1)];if(!Y)throw new u.wOt(4001,!1);return Y}findOrReturn(O,D){let R=0;for(const Y of D){if(Y.path===O.path)return D.splice(R),Y;R++}return O}}const Wi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Jr(E,O,D,R,Y){const Se=qr(E,O,D);return Se.matched?(R=function zi(E,O){return E.providers&&!E._injector&&(E._injector=(0,u.Ol2)(E.providers,O,`Route: ${E.path}`)),E._injector??O}(O,R),function Ma(E,O,D,R){const Y=O.canMatch;if(!Y||0===Y.length)return(0,L.of)(!0);const Se=Y.map(ut=>{const sn=Vo(ut,E);return It(function xs(E){return E&&as(E.canMatch)}(sn)?sn.canMatch(O,D):(0,u.N4e)(E,()=>sn(O,D)))});return(0,L.of)(Se).pipe(Ro(),Vl())}(R,O,D).pipe((0,te.T)(ut=>!0===ut?Se:{...Wi}))):(0,L.of)(Se)}function qr(E,O,D){if("**"===O.path)return function Yo(E){return{matched:!0,parameters:E.length>0?it(E).parameters:{},consumedSegments:E,remainingSegments:[],positionalParamSegments:{}}}(D);if(""===O.path)return"full"===O.pathMatch&&(E.hasChildren()||D.length>0)?{...Wi}:{matched:!0,consumedSegments:[],remainingSegments:D,parameters:{},positionalParamSegments:{}};const Y=(O.matcher||ve)(D,E,O);if(!Y)return{...Wi};const Se={};Object.entries(Y.posParams??{}).forEach(([sn,Kt])=>{Se[sn]=Kt.path});const ut=Y.consumed.length>0?{...Se,...Y.consumed[Y.consumed.length-1].parameters}:Se;return{matched:!0,consumedSegments:Y.consumed,remainingSegments:D.slice(Y.consumed.length),parameters:ut,positionalParamSegments:Y.posParams??{}}}function fo(E,O,D,R){return D.length>0&&function la(E,O,D){return D.some(R=>Gs(E,O,R)&&Sr(R)!==Xe)}(E,D,R)?{segmentGroup:new Q(O,As(R,new Q(D,E.children))),slicedSegments:[]}:0===D.length&&function Wa(E,O,D){return D.some(R=>Gs(E,O,R))}(E,D,R)?{segmentGroup:new Q(E.segments,Na(E,D,R,E.children)),slicedSegments:D}:{segmentGroup:new Q(E.segments,E.children),slicedSegments:D}}function Na(E,O,D,R){const Y={};for(const Se of D)if(Gs(E,O,Se)&&!R[Sr(Se)]){const ut=new Q([],{});Y[Sr(Se)]=ut}return{...R,...Y}}function As(E,O){const D={};D[Xe]=O;for(const R of E)if(""===R.path&&Sr(R)!==Xe){const Y=new Q([],{});D[Sr(R)]=Y}return D}function Gs(E,O,D){return(!(E.hasChildren()||O.length>0)||"full"!==D.pathMatch)&&""===D.path}class Qo{}class Ho{constructor(O,D,R,Y,Se,ut,sn){this.injector=O,this.configLoader=D,this.rootComponentType=R,this.config=Y,this.urlTree=Se,this.paramsInheritanceStrategy=ut,this.urlSerializer=sn,this.applyRedirects=new ka(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(O){return new u.wOt(4002,`'${O.segmentGroup}'`)}recognize(){const O=fo(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(O).pipe((0,te.T)(({children:D,rootSnapshot:R})=>{const Y=new Tr(R,D),Se=new va("",Y),ut=function rn(E,O,D=null,R=null){return yr(ai(E),O,D,R)}(R,[],this.urlTree.queryParams,this.urlTree.fragment);return ut.queryParams=this.urlTree.queryParams,Se.url=this.urlSerializer.serialize(ut),{state:Se,tree:ut}}))}match(O){const D=new Uo([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),Xe,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,O,Xe,D).pipe((0,te.T)(R=>({children:R,rootSnapshot:D})),(0,Fn.W)(R=>{if(R instanceof Oa)return this.urlTree=R.urlTree,this.match(R.urlTree.root);throw R instanceof Ss?this.noMatchError(R):R}))}processSegmentGroup(O,D,R,Y,Se){return 0===R.segments.length&&R.hasChildren()?this.processChildren(O,D,R,Se):this.processSegment(O,D,R,R.segments,Y,!0,Se).pipe((0,te.T)(ut=>ut instanceof Tr?[ut]:[]))}processChildren(O,D,R,Y){const Se=[];for(const ut of Object.keys(R.children))"primary"===ut?Se.unshift(ut):Se.push(ut);return(0,o.H)(Se).pipe((0,Dt.H)(ut=>{const sn=R.children[ut],Kt=function Us(E,O){const D=E.filter(R=>Sr(R)===O);return D.push(...E.filter(R=>Sr(R)!==O)),D}(D,ut);return this.processSegmentGroup(O,Kt,sn,ut,Y)}),function _n(E,O){return(0,We.N)(function Vn(E,O,D,R,Y){return(Se,ut)=>{let sn=D,Kt=O,ti=0;Se.subscribe((0,ae._)(ut,ji=>{const Qi=ti++;Kt=sn?E(Kt,ji,Qi):(sn=!0,ji),R&&ut.next(Kt)},Y&&(()=>{sn&&ut.next(Kt),ut.complete()})))}}(E,O,arguments.length>=2,!0))}((ut,sn)=>(ut.push(...sn),ut)),me(null),function _e(E,O){const D=arguments.length>=2;return R=>R.pipe(E?(0,je.p)((Y,Se)=>E(Y,Se,R)):At.D,pi(1),D?me(O):Le(()=>new oe.G))}(),(0,qe.Z)(ut=>{if(null===ut)return aa(R);const sn=Xs(ut);return function No(E){E.sort((O,D)=>O.value.outlet===Xe?-1:D.value.outlet===Xe?1:O.value.outlet.localeCompare(D.value.outlet))}(sn),(0,L.of)(sn)}))}processSegment(O,D,R,Y,Se,ut,sn){return(0,o.H)(D).pipe((0,Dt.H)(Kt=>this.processSegmentAgainstRoute(Kt._injector??O,D,Kt,R,Y,Se,ut,sn).pipe((0,Fn.W)(ti=>{if(ti instanceof Ss)return(0,L.of)(null);throw ti}))),vt(Kt=>!!Kt),(0,Fn.W)(Kt=>{if(Xo(Kt))return function ao(E,O,D){return 0===O.length&&!E.children[D]}(R,Y,Se)?(0,L.of)(new Qo):aa(R);throw Kt}))}processSegmentAgainstRoute(O,D,R,Y,Se,ut,sn,Kt){return Sr(R)===ut||ut!==Xe&&Gs(Y,Se,R)?void 0===R.redirectTo?this.matchSegmentAgainstRoute(O,Y,R,Se,ut,Kt):this.allowRedirects&&sn?this.expandSegmentAgainstRouteUsingRedirect(O,Y,D,R,Se,ut,Kt):aa(Y):aa(Y)}expandSegmentAgainstRouteUsingRedirect(O,D,R,Y,Se,ut,sn){const{matched:Kt,parameters:ti,consumedSegments:ji,positionalParamSegments:Qi,remainingSegments:io}=qr(D,Y,Se);if(!Kt)return aa(D);"string"==typeof Y.redirectTo&&"/"===Y.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const ya=new Uo(Se,ti,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zo(Y),Sr(Y),Y.component??Y._loadedComponent??null,Y,Fa(Y)),qo=Bo(ya,sn,this.paramsInheritanceStrategy);ya.params=Object.freeze(qo.params),ya.data=Object.freeze(qo.data);const La=this.applyRedirects.applyRedirectCommands(ji,Y.redirectTo,Qi,ya,O);return this.applyRedirects.lineralizeSegments(Y,La).pipe((0,qe.Z)(Ms=>this.processSegment(O,R,D,Ms.concat(io),ut,!1,sn)))}matchSegmentAgainstRoute(O,D,R,Y,Se,ut){const sn=Jr(D,R,Y,O);return"**"===R.path&&(D.children={}),sn.pipe((0,be.n)(Kt=>Kt.matched?this.getChildConfig(O=R._injector??O,R,Y).pipe((0,be.n)(({routes:ti})=>{const ji=R._loadedInjector??O,{parameters:Qi,consumedSegments:io,remainingSegments:ya}=Kt,qo=new Uo(io,Qi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zo(R),Sr(R),R.component??R._loadedComponent??null,R,Fa(R)),La=Bo(qo,ut,this.paramsInheritanceStrategy);qo.params=Object.freeze(La.params),qo.data=Object.freeze(La.data);const{segmentGroup:Ms,slicedSegments:Dl}=fo(D,io,ya,ti);if(0===Dl.length&&Ms.hasChildren())return this.processChildren(ji,ti,Ms,qo).pipe((0,te.T)(lc=>new Tr(qo,lc)));if(0===ti.length&&0===Dl.length)return(0,L.of)(new Tr(qo,[]));const vd=Sr(R)===Se;return this.processSegment(ji,ti,Ms,Dl,vd?Xe:Se,!0,qo).pipe((0,te.T)(lc=>new Tr(qo,lc instanceof Tr?[lc]:[])))})):aa(D)))}getChildConfig(O,D,R){return D.children?(0,L.of)({routes:D.children,injector:O}):D.loadChildren?void 0!==D._loadedRoutes?(0,L.of)({routes:D._loadedRoutes,injector:D._loadedInjector}):function ls(E,O,D,R){const Y=O.canLoad;if(void 0===Y||0===Y.length)return(0,L.of)(!0);const Se=Y.map(ut=>{const sn=Vo(ut,E);return It(function sa(E){return E&&as(E.canLoad)}(sn)?sn.canLoad(O,D):(0,u.N4e)(E,()=>sn(O,D)))});return(0,L.of)(Se).pipe(Ro(),Vl())}(O,D,R).pipe((0,qe.Z)(Y=>Y?this.configLoader.loadChildren(O,D).pipe((0,Zt.M)(Se=>{D._loadedRoutes=Se.routes,D._loadedInjector=Se.injector})):function Cl(){return(0,F.$)(ul(!1,$e.GuardRejected))}())):(0,L.of)({routes:[],injector:O})}}function _a(E){const O=E.value.routeConfig;return O&&""===O.path}function Xs(E){const O=[],D=new Set;for(const R of E){if(!_a(R)){O.push(R);continue}const Y=O.find(Se=>R.value.routeConfig===Se.value.routeConfig);void 0!==Y?(Y.children.push(...R.children),D.add(Y)):O.push(R)}for(const R of D){const Y=Xs(R.children);O.push(new Tr(R.value,Y))}return O.filter(R=>!D.has(R))}function Zo(E){return E.data||{}}function Fa(E){return E.resolve||{}}function So(E){const O=E.children.map(D=>So(D)).flat();return[E,...O]}function Ka(E){return(0,be.n)(O=>{const D=E(O);return D?(0,o.H)(D).pipe((0,te.T)(()=>O)):(0,L.of)(O)})}let po=(()=>{class E{buildTitle(D){let R,Y=D.root;for(;void 0!==Y;)R=this.getResolvedTitleForRoute(Y)??R,Y=Y.children.find(Se=>Se.outlet===Xe);return R}getResolvedTitleForRoute(D){return D.data[Je]}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(Xa),providedIn:"root"})}return E})(),Xa=(()=>{class E extends po{constructor(D){super(),this.title=D}updateTitle(D){const R=this.buildTitle(D);void 0!==R&&this.title.setTitle(R)}static#e=this.\u0275fac=function(R){return new(R||E)(u.KVO(ht.hE))};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const ys=new u.nKC("",{providedIn:"root",factory:()=>({})});let Rc=(()=>{class E{static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275cmp=u.VBU({type:E,selectors:[["ng-component"]],standalone:!0,features:[u.aNF],decls:1,vars:0,template:function(R,Y){1&R&&u.nrm(0,"router-outlet")},dependencies:[zo],encapsulation:2})}return E})();function ur(E){const O=E.children&&E.children.map(ur),D=O?{...E,children:O}:{...E};return!D.component&&!D.loadComponent&&(O||D.loadChildren)&&D.outlet&&D.outlet!==Xe&&(D.component=Rc),D}const bs=new u.nKC("");let ca=(()=>{class E{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,u.WQX)(u.Ql9)}loadComponent(D){if(this.componentLoaders.get(D))return this.componentLoaders.get(D);if(D._loadedComponent)return(0,L.of)(D._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(D);const R=It(D.loadComponent()).pipe((0,te.T)(fl),(0,Zt.M)(Se=>{this.onLoadEndListener&&this.onLoadEndListener(D),D._loadedComponent=Se}),(0,J.j)(()=>{this.componentLoaders.delete(D)})),Y=new ge.G(R,()=>new Ee.B).pipe((0,Ie.B)());return this.componentLoaders.set(D,Y),Y}loadChildren(D,R){if(this.childrenLoaders.get(R))return this.childrenLoaders.get(R);if(R._loadedRoutes)return(0,L.of)({routes:R._loadedRoutes,injector:R._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(R);const Se=function Wr(E,O,D,R){return It(E.loadChildren()).pipe((0,te.T)(fl),(0,qe.Z)(Y=>Y instanceof u.Co$||Array.isArray(Y)?(0,L.of)(Y):(0,o.H)(O.compileModuleAsync(Y))),(0,te.T)(Y=>{R&&R(E);let Se,ut,sn=!1;return Array.isArray(Y)?(ut=Y,!0):(Se=Y.create(D).injector,ut=Se.get(bs,[],{optional:!0,self:!0}).flat()),{routes:ut.map(ur),injector:Se}}))}(R,this.compiler,D,this.onLoadEndListener).pipe((0,J.j)(()=>{this.childrenLoaders.delete(R)})),ut=new ge.G(Se,()=>new Ee.B).pipe((0,Ie.B)());return this.childrenLoaders.set(R,ut),ut}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function fl(E){return function Gr(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let ua=(()=>{class E{static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(sc),providedIn:"root"})}return E})(),sc=(()=>{class E{shouldProcessUrl(D){return!0}extract(D){return D}merge(D,R){return D}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const da=new u.nKC(""),ir=new u.nKC("");function Ya(E,O,D){const R=E.get(ir),Y=E.get(ke.qQ);return E.get(u.SKi).runOutsideAngular(()=>{if(!Y.startViewTransition||R.skipNextTransition)return R.skipNextTransition=!1,new Promise(ti=>setTimeout(ti));let Se;const ut=new Promise(ti=>{Se=ti}),sn=Y.startViewTransition(()=>(Se(),function jl(E){return new Promise(O=>{(0,u.mal)({read:()=>setTimeout(O)},{injector:E})})}(E))),{onViewTransitionCreated:Kt}=R;return Kt&&(0,u.N4e)(E,()=>Kt({transition:sn,from:O,to:D})),ut})}const S=new u.nKC("");let ne=(()=>{class E{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ee.B,this.transitionAbortSubject=new Ee.B,this.configLoader=(0,u.WQX)(ca),this.environmentInjector=(0,u.WQX)(u.uvJ),this.urlSerializer=(0,u.WQX)(he),this.rootContexts=(0,u.WQX)(no),this.location=(0,u.WQX)(ke.aZ),this.inputBindingEnabled=null!==(0,u.WQX)(oa,{optional:!0}),this.titleStrategy=(0,u.WQX)(po),this.options=(0,u.WQX)(ys,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,u.WQX)(ua),this.createViewTransition=(0,u.WQX)(da,{optional:!0}),this.navigationErrorHandler=(0,u.WQX)(S,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,L.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Y=>this.events.next(new ki(Y)),this.configLoader.onLoadStartListener=Y=>this.events.next(new ci(Y))}complete(){this.transitions?.complete()}handleNavigationRequest(D){const R=++this.navigationId;this.transitions?.next({...this.transitions.value,...D,id:R})}setupNavigations(D,R,Y){return this.transitions=new G.t({id:0,currentUrlTree:R,currentRawUrl:R,extractedUrl:this.urlHandlingStrategy.extract(R),urlAfterRedirects:this.urlHandlingStrategy.extract(R),rawUrl:R,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Ye,restoredState:null,currentSnapshot:Y.snapshot,targetSnapshot:null,currentRouterState:Y,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,je.p)(Se=>0!==Se.id),(0,te.T)(Se=>({...Se,extractedUrl:this.urlHandlingStrategy.extract(Se.rawUrl)})),(0,be.n)(Se=>{let ut=!1,sn=!1;return(0,L.of)(Se).pipe((0,be.n)(Kt=>{if(this.navigationId>Se.id)return this.cancelNavigationTransition(Se,"",$e.SupersededByNewNavigation),ue.w;this.currentTransition=Se,this.currentNavigation={id:Kt.id,initialUrl:Kt.rawUrl,extractedUrl:Kt.extractedUrl,targetBrowserUrl:"string"==typeof Kt.extras.browserUrl?this.urlSerializer.parse(Kt.extras.browserUrl):Kt.extras.browserUrl,trigger:Kt.source,extras:Kt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const ti=!D.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!ti&&"reload"!==(Kt.extras.onSameUrlNavigation??D.onSameUrlNavigation)){const Qi="";return this.events.next(new jt(Kt.id,this.urlSerializer.serialize(Kt.rawUrl),Qi,pt.IgnoredSameUrlNavigation)),Kt.resolve(!1),ue.w}if(this.urlHandlingStrategy.shouldProcessUrl(Kt.rawUrl))return(0,L.of)(Kt).pipe((0,be.n)(Qi=>{const io=this.transitions?.getValue();return this.events.next(new Te(Qi.id,this.urlSerializer.serialize(Qi.extractedUrl),Qi.source,Qi.restoredState)),io!==this.transitions?.getValue()?ue.w:Promise.resolve(Qi)}),function Ts(E,O,D,R,Y,Se){return(0,qe.Z)(ut=>function Pa(E,O,D,R,Y,Se,ut="emptyOnly"){return new Ho(E,O,D,R,Y,ut,Se).recognize()}(E,O,D,R,ut.extractedUrl,Y,Se).pipe((0,te.T)(({state:sn,tree:Kt})=>({...ut,targetSnapshot:sn,urlAfterRedirects:Kt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,D.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,Zt.M)(Qi=>{Se.targetSnapshot=Qi.targetSnapshot,Se.urlAfterRedirects=Qi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Qi.urlAfterRedirects};const io=new fn(Qi.id,this.urlSerializer.serialize(Qi.extractedUrl),this.urlSerializer.serialize(Qi.urlAfterRedirects),Qi.targetSnapshot);this.events.next(io)}));if(ti&&this.urlHandlingStrategy.shouldProcessUrl(Kt.currentRawUrl)){const{id:Qi,extractedUrl:io,source:ya,restoredState:qo,extras:La}=Kt,Ms=new Te(Qi,this.urlSerializer.serialize(io),ya,qo);this.events.next(Ms);const Dl=Di(this.rootComponentType).snapshot;return this.currentTransition=Se={...Kt,targetSnapshot:Dl,urlAfterRedirects:io,extras:{...La,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=io,(0,L.of)(Se)}{const Qi="";return this.events.next(new jt(Kt.id,this.urlSerializer.serialize(Kt.extractedUrl),Qi,pt.IgnoredByUrlHandlingStrategy)),Kt.resolve(!1),ue.w}}),(0,Zt.M)(Kt=>{const ti=new wn(Kt.id,this.urlSerializer.serialize(Kt.extractedUrl),this.urlSerializer.serialize(Kt.urlAfterRedirects),Kt.targetSnapshot);this.events.next(ti)}),(0,te.T)(Kt=>(this.currentTransition=Se={...Kt,guards:ss(Kt.targetSnapshot,Kt.currentSnapshot,this.rootContexts)},Se)),function X(E,O){return(0,qe.Z)(D=>{const{targetSnapshot:R,currentSnapshot:Y,guards:{canActivateChecks:Se,canDeactivateChecks:ut}}=D;return 0===ut.length&&0===Se.length?(0,L.of)({...D,guardsResult:!0}):function k(E,O,D,R){return(0,o.H)(E).pipe((0,qe.Z)(Y=>function _o(E,O,D,R,Y){const Se=O&&O.routeConfig?O.routeConfig.canDeactivate:null;if(!Se||0===Se.length)return(0,L.of)(!0);const ut=Se.map(sn=>{const Kt=hr(O)??Y,ti=Vo(sn,Kt);return It(function vs(E){return E&&as(E.canDeactivate)}(ti)?ti.canDeactivate(E,O,D,R):(0,u.N4e)(Kt,()=>ti(E,O,D,R))).pipe(vt())});return(0,L.of)(ut).pipe(Ro())}(Y.component,Y.route,D,O,R)),vt(Y=>!0!==Y,!0))}(ut,R,Y,E).pipe((0,qe.Z)(sn=>sn&&function dl(E){return"boolean"==typeof E}(sn)?function pe(E,O,D,R){return(0,o.H)(O).pipe((0,Dt.H)(Y=>(0,V.x)(function ii(E,O){return null!==E&&O&&O(new ei(E)),(0,L.of)(!0)}(Y.route.parent,R),function yt(E,O){return null!==E&&O&&O(new Rr(E)),(0,L.of)(!0)}(Y.route,R),function ko(E,O,D){const R=O[O.length-1],Se=O.slice(0,O.length-1).reverse().map(ut=>function br(E){const O=E.routeConfig?E.routeConfig.canActivateChild:null;return O&&0!==O.length?{node:E,guards:O}:null}(ut)).filter(ut=>null!==ut).map(ut=>(0,P.v)(()=>{const sn=ut.guards.map(Kt=>{const ti=hr(ut.node)??D,ji=Vo(Kt,ti);return It(function Ds(E){return E&&as(E.canActivateChild)}(ji)?ji.canActivateChild(R,E):(0,u.N4e)(ti,()=>ji(R,E))).pipe(vt())});return(0,L.of)(sn).pipe(Ro())}));return(0,L.of)(Se).pipe(Ro())}(E,Y.path,D),function Xi(E,O,D){const R=O.routeConfig?O.routeConfig.canActivate:null;if(!R||0===R.length)return(0,L.of)(!0);const Y=R.map(Se=>(0,P.v)(()=>{const ut=hr(O)??D,sn=Vo(Se,ut);return It(function Ia(E){return E&&as(E.canActivate)}(sn)?sn.canActivate(O,E):(0,u.N4e)(ut,()=>sn(O,E))).pipe(vt())}));return(0,L.of)(Y).pipe(Ro())}(E,Y.route,D))),vt(Y=>!0!==Y,!0))}(R,Se,E,O):(0,L.of)(sn)),(0,te.T)(sn=>({...D,guardsResult:sn})))})}(this.environmentInjector,Kt=>this.events.next(Kt)),(0,Zt.M)(Kt=>{if(Se.guardsResult=Kt.guardsResult,Kt.guardsResult&&"boolean"!=typeof Kt.guardsResult)throw Wo(0,Kt.guardsResult);const ti=new Dn(Kt.id,this.urlSerializer.serialize(Kt.extractedUrl),this.urlSerializer.serialize(Kt.urlAfterRedirects),Kt.targetSnapshot,!!Kt.guardsResult);this.events.next(ti)}),(0,je.p)(Kt=>!!Kt.guardsResult||(this.cancelNavigationTransition(Kt,"",$e.GuardRejected),!1)),Ka(Kt=>{if(Kt.guards.canActivateChecks.length)return(0,L.of)(Kt).pipe((0,Zt.M)(ti=>{const ji=new jn(ti.id,this.urlSerializer.serialize(ti.extractedUrl),this.urlSerializer.serialize(ti.urlAfterRedirects),ti.targetSnapshot);this.events.next(ji)}),(0,be.n)(ti=>{let ji=!1;return(0,L.of)(ti).pipe(function hl(E,O){return(0,qe.Z)(D=>{const{targetSnapshot:R,guards:{canActivateChecks:Y}}=D;if(!Y.length)return(0,L.of)(D);const Se=new Set(Y.map(Kt=>Kt.route)),ut=new Set;for(const Kt of Se)if(!ut.has(Kt))for(const ti of So(Kt))ut.add(ti);let sn=0;return(0,o.H)(ut).pipe((0,Dt.H)(Kt=>Se.has(Kt)?function _s(E,O,D,R){const Y=E.routeConfig,Se=E._resolve;return void 0!==Y?.title&&!gr(Y)&&(Se[Je]=Y.title),function Oc(E,O,D,R){const Y=dt(E);if(0===Y.length)return(0,L.of)({});const Se={};return(0,o.H)(Y).pipe((0,qe.Z)(ut=>function Is(E,O,D,R){const Y=hr(O)??R,Se=Vo(E,Y);return It(Se.resolve?Se.resolve(O,D):(0,u.N4e)(Y,()=>Se(O,D)))}(E[ut],O,D,R).pipe(vt(),(0,Zt.M)(sn=>{if(sn instanceof os)throw Wo(new et,sn);Se[ut]=sn}))),pi(1),(0,Ae.u)(Se),(0,Fn.W)(ut=>Xo(ut)?ue.w:(0,F.$)(ut)))}(Se,E,O,R).pipe((0,te.T)(ut=>(E._resolvedData=ut,E.data=Bo(E,E.parent,D).resolve,null)))}(Kt,R,E,O):(Kt.data=Bo(Kt,Kt.parent,E).resolve,(0,L.of)(void 0))),(0,Zt.M)(()=>sn++),pi(1),(0,qe.Z)(Kt=>sn===ut.size?(0,L.of)(D):ue.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,Zt.M)({next:()=>ji=!0,complete:()=>{ji||this.cancelNavigationTransition(ti,"",$e.NoDataFromResolver)}}))}),(0,Zt.M)(ti=>{const ji=new $n(ti.id,this.urlSerializer.serialize(ti.extractedUrl),this.urlSerializer.serialize(ti.urlAfterRedirects),ti.targetSnapshot);this.events.next(ji)}))}),Ka(Kt=>{const ti=ji=>{const Qi=[];ji.routeConfig?.loadComponent&&!ji.routeConfig._loadedComponent&&Qi.push(this.configLoader.loadComponent(ji.routeConfig).pipe((0,Zt.M)(io=>{ji.component=io}),(0,te.T)(()=>{})));for(const io of ji.children)Qi.push(...ti(io));return Qi};return(0,ee.z)(ti(Kt.targetSnapshot.root)).pipe(me(null),(0,Ze.s)(1))}),Ka(()=>this.afterPreactivation()),(0,be.n)(()=>{const{currentSnapshot:Kt,targetSnapshot:ti}=Se,ji=this.createViewTransition?.(this.environmentInjector,Kt.root,ti.root);return ji?(0,o.H)(ji).pipe((0,te.T)(()=>Se)):(0,L.of)(Se)}),(0,te.T)(Kt=>{const ti=function Io(E,O,D){const R=Eo(E,O._root,D?D._root:void 0);return new Vs(R,O)}(D.routeReuseStrategy,Kt.targetSnapshot,Kt.currentRouterState);return this.currentTransition=Se={...Kt,targetRouterState:ti},this.currentNavigation.targetRouterState=ti,Se}),(0,Zt.M)(()=>{this.events.next(new Ci)}),((E,O,D,R)=>(0,te.T)(Y=>(new Cs(O,Y.targetRouterState,Y.currentRouterState,D,R).activate(E),Y)))(this.rootContexts,D.routeReuseStrategy,Kt=>this.events.next(Kt),this.inputBindingEnabled),(0,Ze.s)(1),(0,Zt.M)({next:Kt=>{ut=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new se(Kt.id,this.urlSerializer.serialize(Kt.extractedUrl),this.urlSerializer.serialize(Kt.urlAfterRedirects))),this.titleStrategy?.updateTitle(Kt.targetRouterState.snapshot),Kt.resolve(!0)},complete:()=>{ut=!0}}),(0,Ot.Q)(this.transitionAbortSubject.pipe((0,Zt.M)(Kt=>{throw Kt}))),(0,J.j)(()=>{!ut&&!sn&&this.cancelNavigationTransition(Se,"",$e.SupersededByNewNavigation),this.currentTransition?.id===Se.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Fn.W)(Kt=>{if(sn=!0,zs(Kt))this.events.next(new lt(Se.id,this.urlSerializer.serialize(Se.extractedUrl),Kt.message,Kt.cancellationCode)),function Co(E){return zs(E)&&Wt(E.url)}(Kt)?this.events.next(new Lr(Kt.url,Kt.navigationBehaviorOptions)):Se.resolve(!1);else{const ti=new hn(Se.id,this.urlSerializer.serialize(Se.extractedUrl),Kt,Se.targetSnapshot??void 0);try{const ji=(0,u.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(ti));if(ji instanceof os){const{message:Qi,cancellationCode:io}=Wo(0,ji);this.events.next(new lt(Se.id,this.urlSerializer.serialize(Se.extractedUrl),Qi,io)),this.events.next(new Lr(ji.redirectTo,ji.navigationBehaviorOptions))}else{this.events.next(ti);const Qi=D.errorHandler(Kt);Se.resolve(!!Qi)}}catch(ji){this.options.resolveNavigationPromiseOnError?Se.resolve(!1):Se.reject(ji)}}return ue.w}))}))}cancelNavigationTransition(D,R,Y){const Se=new lt(D.id,this.urlSerializer.serialize(D.extractedUrl),R,Y);this.events.next(Se),D.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const D=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),R=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return D.toString()!==R?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function f(E){return E!==Ye}let _=(()=>{class E{static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(K),providedIn:"root"})}return E})();class x{shouldDetach(O){return!1}store(O,D){}shouldAttach(O){return!1}retrieve(O){return null}shouldReuseRoute(O,D){return O.routeConfig===D.routeConfig}}let K=(()=>{class E extends x{static#e=this.\u0275fac=(()=>{let D;return function(Y){return(D||(D=u.xGo(E)))(Y||E)}})();static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),de=(()=>{class E{static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(ze),providedIn:"root"})}return E})(),ze=(()=>{class E extends de{constructor(){super(...arguments),this.location=(0,u.WQX)(ke.aZ),this.urlSerializer=(0,u.WQX)(he),this.options=(0,u.WQX)(ys,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,u.WQX)(ua),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new on,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Di(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(D){return this.location.subscribe(R=>{"popstate"===R.type&&D(R.url,R.state)})}handleRouterEvent(D,R){if(D instanceof Te)this.stateMemento=this.createStateMemento();else if(D instanceof jt)this.rawUrlTree=R.initialUrl;else if(D instanceof fn){if("eager"===this.urlUpdateStrategy&&!R.extras.skipLocationChange){const Y=this.urlHandlingStrategy.merge(R.finalUrl,R.initialUrl);this.setBrowserUrl(R.targetBrowserUrl??Y,R)}}else D instanceof Ci?(this.currentUrlTree=R.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(R.finalUrl,R.initialUrl),this.routerState=R.targetRouterState,"deferred"===this.urlUpdateStrategy&&!R.extras.skipLocationChange&&this.setBrowserUrl(R.targetBrowserUrl??this.rawUrlTree,R)):D instanceof lt&&(D.code===$e.GuardRejected||D.code===$e.NoDataFromResolver)?this.restoreHistory(R):D instanceof hn?this.restoreHistory(R,!0):D instanceof se&&(this.lastSuccessfulId=D.id,this.currentPageId=this.browserPageId)}setBrowserUrl(D,R){const Y=D instanceof on?this.urlSerializer.serialize(D):D;if(this.location.isCurrentPathEqualTo(Y)||R.extras.replaceUrl){const ut={...R.extras.state,...this.generateNgRouterState(R.id,this.browserPageId)};this.location.replaceState(Y,"",ut)}else{const Se={...R.extras.state,...this.generateNgRouterState(R.id,this.browserPageId+1)};this.location.go(Y,"",Se)}}restoreHistory(D,R=!1){if("computed"===this.canceledNavigationResolution){const Se=this.currentPageId-this.browserPageId;0!==Se?this.location.historyGo(Se):this.currentUrlTree===D.finalUrl&&0===Se&&(this.resetState(D),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(R&&this.resetState(D),this.resetUrlToCurrentUrlTree())}resetState(D){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,D.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(D,R){return"computed"===this.canceledNavigationResolution?{navigationId:D,\u0275routerPageId:R}:{navigationId:D}}static#e=this.\u0275fac=(()=>{let D;return function(Y){return(D||(D=u.xGo(E)))(Y||E)}})();static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();var _t=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(_t||{});function wt(E,O){E.events.pipe((0,je.p)(D=>D instanceof se||D instanceof lt||D instanceof hn||D instanceof jt),(0,te.T)(D=>D instanceof se||D instanceof jt?_t.COMPLETE:D instanceof lt&&(D.code===$e.Redirect||D.code===$e.SupersededByNewNavigation)?_t.REDIRECTING:_t.FAILED),(0,je.p)(D=>D!==_t.REDIRECTING),(0,Ze.s)(1)).subscribe(()=>{O()})}function kt(E){throw E}const Yt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let xt=(()=>{class E{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=(0,u.WQX)(u.H3F),this.stateManager=(0,u.WQX)(de),this.options=(0,u.WQX)(ys,{optional:!0})||{},this.pendingTasks=(0,u.WQX)(u.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,u.WQX)(ne),this.urlSerializer=(0,u.WQX)(he),this.location=(0,u.WQX)(ke.aZ),this.urlHandlingStrategy=(0,u.WQX)(ua),this._events=new Ee.B,this.errorHandler=this.options.errorHandler||kt,this.navigated=!1,this.routeReuseStrategy=(0,u.WQX)(_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,u.WQX)(bs,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,u.WQX)(oa,{optional:!0}),this.eventsSubscription=new Re.yU,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:D=>{this.console.warn(D)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const D=this.navigationTransitions.events.subscribe(R=>{try{const Y=this.navigationTransitions.currentTransition,Se=this.navigationTransitions.currentNavigation;if(null!==Y&&null!==Se)if(this.stateManager.handleRouterEvent(R,Se),R instanceof lt&&R.code!==$e.Redirect&&R.code!==$e.SupersededByNewNavigation)this.navigated=!0;else if(R instanceof se)this.navigated=!0;else if(R instanceof Lr){const ut=R.navigationBehaviorOptions,sn=this.urlHandlingStrategy.merge(R.url,Y.currentRawUrl),Kt={browserUrl:Y.extras.browserUrl,info:Y.extras.info,skipLocationChange:Y.extras.skipLocationChange,replaceUrl:Y.extras.replaceUrl||"eager"===this.urlUpdateStrategy||f(Y.source),...ut};this.scheduleNavigation(sn,Ye,null,Kt,{resolve:Y.resolve,reject:Y.reject,promise:Y.promise})}(function cn(E){return!(E instanceof Ci||E instanceof Lr)})(R)&&this._events.next(R)}catch(Y){this.navigationTransitions.transitionAbortSubject.next(Y)}});this.eventsSubscription.add(D)}resetRootComponentType(D){this.routerState.root.component=D,this.navigationTransitions.rootComponentType=D}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ye,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((D,R)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(D,"popstate",R)},0)})}navigateToSyncWithBrowser(D,R,Y){const Se={replaceUrl:!0},ut=Y?.navigationId?Y:null;if(Y){const Kt={...Y};delete Kt.navigationId,delete Kt.\u0275routerPageId,0!==Object.keys(Kt).length&&(Se.state=Kt)}const sn=this.parseUrl(D);this.scheduleNavigation(sn,R,ut,Se)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(D){this.config=D.map(ur),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(D,R={}){const{relativeTo:Y,queryParams:Se,fragment:ut,queryParamsHandling:sn,preserveFragment:Kt}=R,ti=Kt?this.currentUrlTree.fragment:ut;let Qi,ji=null;switch(sn??this.options.defaultQueryParamsHandling){case"merge":ji={...this.currentUrlTree.queryParams,...Se};break;case"preserve":ji=this.currentUrlTree.queryParams;break;default:ji=Se||null}null!==ji&&(ji=this.removeEmptyProps(ji));try{Qi=ai(Y?Y.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof D[0]||"/"!==D[0][0])&&(D=[]),Qi=this.currentUrlTree.root}return yr(Qi,D,ji,ti??null)}navigateByUrl(D,R={skipLocationChange:!1}){const Y=Wt(D)?D:this.parseUrl(D),Se=this.urlHandlingStrategy.merge(Y,this.rawUrlTree);return this.scheduleNavigation(Se,Ye,null,R)}navigate(D,R={skipLocationChange:!1}){return function Ht(E){for(let O=0;O(null!=Se&&(R[Y]=Se),R),{})}scheduleNavigation(D,R,Y,Se,ut){if(this.disposed)return Promise.resolve(!1);let sn,Kt,ti;ut?(sn=ut.resolve,Kt=ut.reject,ti=ut.promise):ti=new Promise((Qi,io)=>{sn=Qi,Kt=io});const ji=this.pendingTasks.add();return wt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ji))}),this.navigationTransitions.handleNavigationRequest({source:R,restoredState:Y,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:D,extras:Se,resolve:sn,reject:Kt,promise:ti,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ti.catch(Qi=>Promise.reject(Qi))}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),Rn=(()=>{class E{constructor(D,R,Y,Se,ut,sn){this.router=D,this.route=R,this.tabIndexAttribute=Y,this.renderer=Se,this.el=ut,this.locationStrategy=sn,this.href=null,this.onChanges=new Ee.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;const Kt=ut.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Kt||"area"===Kt,this.isAnchorElement?this.subscription=D.events.subscribe(ti=>{ti instanceof se&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(D){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",D)}ngOnChanges(D){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(D){null==D?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=Wt(D)||Array.isArray(D)?D:[D],this.setTabIndexIfNotOnNativeEl("0"))}onClick(D,R,Y,Se,ut){const sn=this.urlTree;return!!(null===sn||this.isAnchorElement&&(0!==D||R||Y||Se||ut||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(sn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const D=this.urlTree;this.href=null!==D&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(D)):null;const R=null===this.href?null:(0,u.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",R)}applyAttributeValue(D,R){const Y=this.renderer,Se=this.el.nativeElement;null!==R?Y.setAttribute(Se,D,R):Y.removeAttribute(Se,D)}get urlTree(){return null===this.routerLinkInput?null:Wt(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#e=this.\u0275fac=function(R){return new(R||E)(u.rXU(xt),u.rXU(Hr),u.kS0("tabindex"),u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(ke.hb))};static#t=this.\u0275dir=u.FsC({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(R,Y){1&R&&u.bIt("click",function(ut){return Y.onClick(ut.button,ut.ctrlKey,ut.shiftKey,ut.altKey,ut.metaKey)}),2&R&&u.BMQ("target",Y.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",u.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",u.L39],replaceUrl:[2,"replaceUrl","replaceUrl",u.L39],routerLink:"routerLink"},standalone:!0,features:[u.GFd,u.OA$]})}return E})(),pn=(()=>{class E{get isActive(){return this._isActive}constructor(D,R,Y,Se,ut){this.router=D,this.element=R,this.renderer=Y,this.cdr=Se,this.link=ut,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new u.bkB,this.routerEventsSubscription=D.events.subscribe(sn=>{sn instanceof se&&this.update()})}ngAfterContentInit(){(0,L.of)(this.links.changes,(0,L.of)(null)).pipe((0,Pe.U)()).subscribe(D=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const D=[...this.links.toArray(),this.link].filter(R=>!!R).map(R=>R.onChanges);this.linkInputChangesSubscription=(0,o.H)(D).pipe((0,Pe.U)()).subscribe(R=>{this._isActive!==this.isLinkActive(this.router)(R)&&this.update()})}set routerLinkActive(D){const R=Array.isArray(D)?D:D.split(" ");this.classes=R.filter(Y=>!!Y)}ngOnChanges(D){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const D=this.hasActiveLinks();this.classes.forEach(R=>{D?this.renderer.addClass(this.element.nativeElement,R):this.renderer.removeClass(this.element.nativeElement,R)}),D&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==D&&(this._isActive=D,this.cdr.markForCheck(),this.isActiveChange.emit(D))})}isLinkActive(D){const R=function Tn(E){return!!E.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Y=>{const Se=Y.urlTree;return!!Se&&D.isActive(Se,R)}}hasActiveLinks(){const D=this.isLinkActive(this.router);return this.link&&D(this.link)||this.links.some(D)}static#e=this.\u0275fac=function(R){return new(R||E)(u.rXU(xt),u.rXU(u.aKT),u.rXU(u.sFG),u.rXU(u.gRc),u.rXU(Rn,8))};static#t=this.\u0275dir=u.FsC({type:E,selectors:[["","routerLinkActive",""]],contentQueries:function(R,Y,Se){if(1&R&&u.wni(Se,Rn,5),2&R){let ut;u.mGM(ut=u.lsd())&&(Y.links=ut)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[u.OA$]})}return E})();class Nn{}let Yn=(()=>{class E{preload(D,R){return R().pipe((0,Fn.W)(()=>(0,L.of)(null)))}static#e=this.\u0275fac=function(R){return new(R||E)};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),ui=(()=>{class E{constructor(D,R,Y,Se,ut){this.router=D,this.injector=Y,this.preloadingStrategy=Se,this.loader=ut}setUpPreloading(){this.subscription=this.router.events.pipe((0,je.p)(D=>D instanceof se),(0,Dt.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(D,R){const Y=[];for(const Se of R){Se.providers&&!Se._injector&&(Se._injector=(0,u.Ol2)(Se.providers,D,`Route: ${Se.path}`));const ut=Se._injector??D,sn=Se._loadedInjector??ut;(Se.loadChildren&&!Se._loadedRoutes&&void 0===Se.canLoad||Se.loadComponent&&!Se._loadedComponent)&&Y.push(this.preloadConfig(ut,Se)),(Se.children||Se._loadedRoutes)&&Y.push(this.processRoutes(sn,Se.children??Se._loadedRoutes))}return(0,o.H)(Y).pipe((0,Pe.U)())}preloadConfig(D,R){return this.preloadingStrategy.preload(R,()=>{let Y;Y=R.loadChildren&&void 0===R.canLoad?this.loader.loadChildren(D,R):(0,L.of)(null);const Se=Y.pipe((0,qe.Z)(ut=>null===ut?(0,L.of)(void 0):(R._loadedRoutes=ut.routes,R._loadedInjector=ut.injector,this.processRoutes(ut.injector??D,ut.routes))));if(R.loadComponent&&!R._loadedComponent){const ut=this.loader.loadComponent(R);return(0,o.H)([Se,ut]).pipe((0,Pe.U)())}return Se})}static#e=this.\u0275fac=function(R){return new(R||E)(u.KVO(xt),u.KVO(u.Ql9),u.KVO(u.uvJ),u.KVO(Nn),u.KVO(ca))};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const di=new u.nKC("");let On=(()=>{class E{constructor(D,R,Y,Se,ut={}){this.urlSerializer=D,this.transitions=R,this.viewportScroller=Y,this.zone=Se,this.options=ut,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ut.scrollPositionRestoration||="disabled",ut.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof Te?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=D.navigationTrigger,this.restoredId=D.restoredState?D.restoredState.navigationId:0):D instanceof se?(this.lastId=D.id,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.urlAfterRedirects).fragment)):D instanceof jt&&D.code===pt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof Fr&&(D.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(D.position):D.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(D.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(D,R){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Fr(D,"popstate"===this.lastSource?this.store[this.restoredId]:null,R))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(R){u.QTQ()};static#t=this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac})}return E})();function Si(E,...O){return(0,u.EmA)([{provide:bs,multi:!0,useValue:E},[],{provide:Hr,useFactory:Ai,deps:[xt]},{provide:u.iLQ,multi:!0,useFactory:sr},O.map(D=>D.\u0275providers)])}function Ai(E){return E.routerState.root}function qi(E,O){return{\u0275kind:E,\u0275providers:O}}function Er(E={}){return qi(4,[{provide:di,useFactory:()=>{const D=(0,u.WQX)(ke.Xr),R=(0,u.WQX)(u.SKi),Y=(0,u.WQX)(ne),Se=(0,u.WQX)(he);return new On(Se,Y,D,R,E)}}])}function sr(){const E=(0,u.WQX)(u.zZn);return O=>{const D=E.get(u.o8S);if(O!==D.components[0])return;const R=E.get(xt),Y=E.get(Zn);1===E.get(gi)&&R.initialNavigation(),E.get(Cr,null,u.$GK.Optional)?.setUpPreloading(),E.get(di,null,u.$GK.Optional)?.init(),R.resetRootComponentType(D.componentTypes[0]),Y.closed||(Y.next(),Y.complete(),Y.unsubscribe())}}const Zn=new u.nKC("",{factory:()=>new Ee.B}),gi=new u.nKC("",{providedIn:"root",factory:()=>1}),Cr=new u.nKC("");function Br(E){return qi(0,[{provide:Cr,useExisting:ui},{provide:Nn,useExisting:E}])}function Qs(E){return qi(9,[{provide:da,useValue:Ya},{provide:ir,useValue:{skipNextTransition:!!E?.skipInitialTransition,...E}}])}const yo=new u.nKC("ROUTER_FORROOT_GUARD"),ws=[ke.aZ,{provide:he,useClass:et},xt,no,{provide:Hr,useFactory:Ai,deps:[xt]},ca,[]];let Do=(()=>{class E{constructor(D){}static forRoot(D,R){return{ngModule:E,providers:[ws,[],{provide:bs,multi:!0,useValue:D},{provide:yo,useFactory:Jo,deps:[[xt,new u.Xx1,new u.kdw]]},{provide:ys,useValue:R||{}},R?.useHash?{provide:ke.hb,useClass:ke.fw}:{provide:ke.hb,useClass:ke.Sm},{provide:di,useFactory:()=>{const E=(0,u.WQX)(ke.Xr),O=(0,u.WQX)(u.SKi),D=(0,u.WQX)(ys),R=(0,u.WQX)(ne),Y=(0,u.WQX)(he);return D.scrollOffset&&E.setOffset(D.scrollOffset),new On(Y,R,E,O,D)}},R?.preloadingStrategy?Br(R.preloadingStrategy).\u0275providers:[],R?.initialNavigation?Qa(R):[],R?.bindToComponentInputs?qi(8,[lr,{provide:oa,useExisting:lr}]).\u0275providers:[],R?.enableViewTransitions?Qs().\u0275providers:[],[{provide:pl,useFactory:sr},{provide:u.iLQ,multi:!0,useExisting:pl}]]}}static forChild(D){return{ngModule:E,providers:[{provide:bs,multi:!0,useValue:D}]}}static#e=this.\u0275fac=function(R){return new(R||E)(u.KVO(yo,8))};static#t=this.\u0275mod=u.$C({type:E});static#n=this.\u0275inj=u.G2t({})}return E})();function Jo(E){return"guarded"}function Qa(E){return["disabled"===E.initialNavigation?qi(3,[{provide:u.hnV,multi:!0,useFactory:()=>{const O=(0,u.WQX)(xt);return()=>{O.setUpLocationChangeListener()}}},{provide:gi,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?qi(2,[{provide:gi,useValue:0},{provide:u.hnV,multi:!0,deps:[u.zZn],useFactory:O=>{const D=O.get(ke.hj,Promise.resolve());return()=>D.then(()=>new Promise(R=>{const Y=O.get(xt),Se=O.get(Zn);wt(Y,()=>{R(!0)}),O.get(ne).afterPreactivation=()=>(R(!0),Se.closed?(0,L.of)(void 0):Se),Y.initialNavigation()}))}}]).\u0275providers:[]]}const pl=new u.nKC("")},5766:(tn,Ne,v)=>{"use strict";v.d(Ne,{My:()=>je,aT:()=>ae}),new Uint8Array(new Uint32Array([287454020]).buffer);const gt=Array.from({length:256},(J,Ie)=>Ie.toString(16).padStart(2,"0"));function je(J){!function L(J,...Ie){if(!function o(J){return J instanceof Uint8Array||null!=J&&"object"==typeof J&&"Uint8Array"===J.constructor.name}(J))throw new Error("Uint8Array expected");if(Ie.length>0&&!Ie.includes(J.length))throw new Error(`Uint8Array expected of length ${Ie}, not of length=${J.length}`)}(J);let Ie="";for(let Ot=0;Ot=qe._0&&J<=qe._9?J-qe._0:J>=qe._A&&J<=qe._F?J-(qe._A-10):J>=qe._a&&J<=qe._f?J-(qe._a-10):void 0}function ae(J){if("string"!=typeof J)throw new Error("hex string expected, got "+typeof J);const Ie=J.length,Ot=Ie/2;if(Ie%2)throw new Error("padded hex string expected, got unpadded hex of length "+Ie);const Pe=new Uint8Array(Ot);for(let ht=0,Xe=0;ht{"use strict";function u(Je){if(!Number.isSafeInteger(Je))throw new Error(`Wrong integer: ${Je}`)}function y(...Je){const Me=(le,Ce)=>dt=>le(Ce(dt));return{encode:Array.from(Je).reverse().reduce((le,Ce)=>le?Me(le,Ce.encode):Ce.encode,void 0),decode:Je.reduce((le,Ce)=>le?Me(le,Ce.decode):Ce.decode,void 0)}}function o(Je){return{encode:Me=>{if(!Array.isArray(Me)||Me.length&&"number"!=typeof Me[0])throw new Error("alphabet.encode input should be an array of numbers");return Me.map(ie=>{if(u(ie),ie<0||ie>=Je.length)throw new Error(`Digit index outside alphabet: ${ie} (alphabet: ${Je.length})`);return Je[ie]})},decode:Me=>{if(!Array.isArray(Me)||Me.length&&"string"!=typeof Me[0])throw new Error("alphabet.decode input should be array of strings");return Me.map(ie=>{if("string"!=typeof ie)throw new Error(`alphabet.decode: not string element=${ie}`);const ve=Je.indexOf(ie);if(-1===ve)throw new Error(`Unknown letter: "${ie}". Allowed: ${Je}`);return ve})}}}function L(Je=""){if("string"!=typeof Je)throw new Error("join separator should be string");return{encode:Me=>{if(!Array.isArray(Me)||Me.length&&"string"!=typeof Me[0])throw new Error("join.encode input should be array of strings");for(let ie of Me)if("string"!=typeof ie)throw new Error(`join.encode: non-string input=${ie}`);return Me.join(Je)},decode:Me=>{if("string"!=typeof Me)throw new Error("join.decode input should be string");return Me.split(Je)}}}function G(Je,Me="="){if(u(Je),"string"!=typeof Me)throw new Error("padding chr should be string");return{encode(ie){if(!Array.isArray(ie)||ie.length&&"string"!=typeof ie[0])throw new Error("padding.encode input should be array of strings");for(let ve of ie)if("string"!=typeof ve)throw new Error(`padding.encode: non-string input=${ve}`);for(;ie.length*Je%8;)ie.push(Me);return ie},decode(ie){if(!Array.isArray(ie)||ie.length&&"string"!=typeof ie[0])throw new Error("padding.encode input should be array of strings");for(let le of ie)if("string"!=typeof le)throw new Error(`padding.decode: non-string input=${le}`);let ve=ie.length;if(ve*Je%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;ve>0&&ie[ve-1]===Me;ve--)if(!((ve-1)*Je%8))throw new Error("Invalid padding: string has too much padding");return ie.slice(0,ve)}}}function ee(Je){if("function"!=typeof Je)throw new Error("normalize fn should be function");return{encode:Me=>Me,decode:Me=>Je(Me)}}function oe(Je,Me,ie){if(Me<2)throw new Error(`convertRadix: wrong from=${Me}, base cannot be less than 2`);if(ie<2)throw new Error(`convertRadix: wrong to=${ie}, base cannot be less than 2`);if(!Array.isArray(Je))throw new Error("convertRadix: data should be array");if(!Je.length)return[];let ve=0;const le=[],Ce=Array.from(Je);for(Ce.forEach(dt=>{if(u(dt),dt<0||dt>=Me)throw new Error(`Wrong integer: ${dt}`)});;){let dt=0,un=!0;for(let it=ve;it_n,K3:()=>gt,Tq:()=>At,Wp:()=>Re});const V=(Je,Me)=>Me?V(Me,Je%Me):Je,P=(Je,Me)=>Je+(Me-V(Je,Me));function B(Je,Me,ie,ve){if(!Array.isArray(Je))throw new Error("convertRadix2: data should be array");if(Me<=0||Me>32)throw new Error(`convertRadix2: wrong from=${Me}`);if(ie<=0||ie>32)throw new Error(`convertRadix2: wrong to=${ie}`);if(P(Me,ie)>32)throw new Error(`convertRadix2: carry overflow from=${Me} to=${ie} carryBits=${P(Me,ie)}`);let le=0,Ce=0;const dt=2**ie-1,un=[];for(const it of Je){if(u(it),it>=2**Me)throw new Error(`convertRadix2: invalid data word=${it} from=${Me}`);if(le=le<32)throw new Error(`convertRadix2: carry overflow pos=${Ce} from=${Me}`);for(Ce+=Me;Ce>=ie;Ce-=ie)un.push((le>>Ce-ie&dt)>>>0);le&=2**Ce-1}if(le=le<=Me)throw new Error("Excess padding");if(!ve&&le)throw new Error(`Non-zero padding: ${le}`);return ve&&Ce>0&&un.push(le>>>0),un}function F(Je){return u(Je),{encode:Me=>{if(!(Me instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return oe(Array.from(Me),256,Je)},decode:Me=>{if(!Array.isArray(Me)||Me.length&&"number"!=typeof Me[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(oe(Me,Je,256))}}}function ue(Je,Me=!1){if(u(Je),Je<=0||Je>32)throw new Error("radix2: bits should be in (0..32]");if(P(8,Je)>32||P(Je,8)>32)throw new Error("radix2: carry overflow");return{encode:ie=>{if(!(ie instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return B(Array.from(ie),8,Je,!Me)},decode:ie=>{if(!Array.isArray(ie)||ie.length&&"number"!=typeof ie[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(B(ie,Je,8,Me))}}}function ge(Je){if("function"!=typeof Je)throw new Error("unsafeWrapper fn should be function");return function(...Me){try{return Je.apply(null,Me)}catch{}}}function Ee(Je,Me){if(u(Je),"function"!=typeof Me)throw new Error("checksum fn should be function");return{encode(ie){if(!(ie instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const ve=Me(ie).slice(0,Je),le=new Uint8Array(ie.length+Je);return le.set(ie),le.set(ve,ie.length),le},decode(ie){if(!(ie instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const ve=ie.slice(0,-Je),le=Me(ve).slice(0,Je),Ce=ie.slice(-Je);for(let dt=0;dtJe.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),y(ue(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),G(6),L(""))),qe=(y(ue(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),G(6),L("")),Je=>y(F(58),o(Je),L(""))),We=qe("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),At=(qe("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),qe("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),Je=>y(Ee(4,Me=>Je(Je(Me))),We)),vt=y(o("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),L("")),Dt=[996825010,642813549,513874426,1027748829,705979059];function Zt(Je){const Me=Je>>25;let ie=(33554431&Je)<<5;for(let ve=0;ve>ve&1)&&(ie^=Dt[ve]);return ie}function Fn(Je,Me,ie=1){const ve=Je.length;let le=1;for(let Ce=0;Ce126)throw new Error(`Invalid prefix (${Je})`);le=Zt(le)^dt>>5}le=Zt(le);for(let Ce=0;CeRt)throw new TypeError(`Wrong string length: ${Ft.length} (${Ft}). Expected (8..${Rt})`);const kn=Ft.toLowerCase();if(Ft!==kn&&Ft!==Ft.toUpperCase())throw new Error("String must be lowercase or uppercase");const hi=(Ft=kn).lastIndexOf("1");if(0===hi||-1===hi)throw new Error('Letter "1" must be present between prefix and data only');const qt=Ft.slice(0,hi),we=Ft.slice(hi+1);if(we.length<6)throw new Error("Data must be at least 6 characters long");const tt=vt.decode(we).slice(0,-6),rt=Fn(qt,tt,Me);if(!we.endsWith(rt))throw new Error(`Invalid checksum in ${Ft}: expected "${rt}"`);return{prefix:qt,words:tt}}return{encode:function dt(Ft,Rt,kn=90){if("string"!=typeof Ft)throw new Error("bech32.encode prefix should be string, not "+typeof Ft);if(!Array.isArray(Rt)||Rt.length&&"number"!=typeof Rt[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof Rt);const hi=Ft.length+7+Rt.length;if(!1!==kn&&hi>kn)throw new TypeError(`Length ${hi} exceeds limit ${kn}`);return`${Ft=Ft.toLowerCase()}1${vt.encode(Rt)}${Fn(Ft,Rt,Me)}`},decode:un,decodeToBytes:function It(Ft){const{prefix:Rt,words:kn}=un(Ft,!1);return{prefix:Rt,words:kn,bytes:ve(kn)}},decodeUnsafe:ge(un),fromWords:ve,fromWordsUnsafe:Ce,toWords:le}}const _n=Vn("bech32");Vn("bech32m"),y(ue(4),o("0123456789abcdef"),L(""),ee(Je=>{if("string"!=typeof Je||Je.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof Je} with length ${Je.length}`);return Je.toLowerCase()}))},9608:(tn,Ne,v)=>{"use strict";v.d(Ne,{c:()=>ne});var u={};function y(f){if(!Number.isSafeInteger(f)||f<0)throw new Error(`Wrong positive integer: ${f}`)}function G(f,..._){if(!function L(f){return f instanceof Uint8Array||null!=f&&"object"==typeof f&&"Uint8Array"===f.constructor.name}(f))throw new Error("Expected Uint8Array");if(_.length>0&&!_.includes(f.length))throw new Error(`Expected Uint8Array of length ${_}, not of length=${f.length}`)}function oe(f,_=!0){if(f.destroyed)throw new Error("Hash instance has been destroyed");if(_&&f.finished)throw new Error("Hash#digest() has already been called")}function ge(f){return f instanceof Uint8Array||null!=f&&"object"==typeof f&&"Uint8Array"===f.constructor.name}v.r(u),v.d(u,{OG:()=>Bo,My:()=>vo,Ph:()=>hr,lX:()=>is,Id:()=>Tr,fg:()=>gs,qj:()=>Ar,aT:()=>Us,lq:()=>no,z:()=>Ii,Q5:()=>Qr});const Ee=f=>new DataView(f.buffer,f.byteOffset,f.byteLength),Re=(f,_)=>f<<32-_|f>>>_;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const te=Array.from({length:256},(f,_)=>_.toString(16).padStart(2,"0")),Ze={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function gt(f){return f>=Ze._0&&f<=Ze._9?f-Ze._0:f>=Ze._A&&f<=Ze._F?f-(Ze._A-10):f>=Ze._a&&f<=Ze._f?f-(Ze._a-10):void 0}function me(f){if("string"!=typeof f)throw new Error("utf8ToBytes expected string, got "+typeof f);return new Uint8Array((new TextEncoder).encode(f))}function Le(f){if("string"==typeof f&&(f=me(f)),!ge(f))throw new Error("expected Uint8Array, got "+typeof f);return f}function nt(...f){let _=0;for(let K=0;Kf().update(Le(K)).digest(),x=f();return _.outputLen=x.outputLen,_.blockLen=x.blockLen,_.create=()=>f(),_}class pi extends At{constructor(_,x){super(),this.finished=!1,this.destroyed=!1,function ee(f){if("function"!=typeof f||"function"!=typeof f.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");y(f.outputLen),y(f.blockLen)}(_);const K=Le(x);if(this.iHash=_.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const de=this.blockLen,ze=new Uint8Array(de);ze.set(K.length>de?_.create().update(K).digest():K);for(let _t=0;_tnew pi(f,_).update(x).digest();_e.create=(f,_)=>new pi(f,_);class J extends At{constructor(_,x,K,de){super(),this.blockLen=_,this.outputLen=x,this.padOffset=K,this.isLE=de,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(_),this.view=Ee(this.buffer)}update(_){oe(this);const{view:x,buffer:K,blockLen:de}=this,ze=(_=Le(_)).length;for(let _t=0;_tde-_t&&(this.process(K,0),_t=0);for(let xt=_t;xt>de&ze),wt=Number(x&ze),Yt=K?0:4;f.setUint32(_+(K?4:0),_t,K),f.setUint32(_+Yt,wt,K)})(K,de-8,BigInt(8*this.length),ze),this.process(K,0);const wt=Ee(_),kt=this.outputLen;if(kt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Yt=kt/4,vn=this.get();if(Yt>vn.length)throw new Error("_sha2: outputLen bigger than state");for(let xt=0;xt_);let ht=[Ot],Xe=[Ot.map(f=>(9*f+5)%16)];for(let f=0;f<4;f++)for(let _ of[ht,Xe])_.push(_[f].map(x=>Ie[x]));const Je=[[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(f=>new Uint8Array(f)),Me=ht.map((f,_)=>f.map(x=>Je[_][x])),ie=Xe.map((f,_)=>f.map(x=>Je[_][x])),ve=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),le=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),Ce=(f,_)=>f<<_|f>>>32-_;function dt(f,_,x,K){return 0===f?_^x^K:1===f?_&x|~_&K:2===f?(_|~x)^K:3===f?_&K|x&~K:_^(x|~K)}const un=new Uint32Array(16);class it extends J{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:_,h1:x,h2:K,h3:de,h4:ze}=this;return[_,x,K,de,ze]}set(_,x,K,de,ze){this.h0=0|_,this.h1=0|x,this.h2=0|K,this.h3=0|de,this.h4=0|ze}process(_,x){for(let cn=0;cn<16;cn++,x+=4)un[cn]=_.getUint32(x,!0);let K=0|this.h0,de=K,ze=0|this.h1,_t=ze,wt=0|this.h2,kt=wt,Yt=0|this.h3,vn=Yt,xt=0|this.h4,Ht=xt;for(let cn=0;cn<5;cn++){const Rn=4-cn,pn=ve[cn],Tn=le[cn],Nn=ht[cn],Yn=Xe[cn],Sn=Me[cn],ui=ie[cn];for(let di=0;di<16;di++){const On=Ce(K+dt(cn,ze,wt,Yt)+un[Nn[di]]+pn,Sn[di])+xt|0;K=xt,xt=Yt,Yt=0|Ce(wt,10),wt=ze,ze=On}for(let di=0;di<16;di++){const On=Ce(de+dt(Rn,_t,kt,vn)+un[Yn[di]]+Tn,ui[di])+Ht|0;de=Ht,Ht=vn,vn=0|Ce(kt,10),kt=_t,_t=On}}this.set(this.h1+wt+vn|0,this.h2+Yt+Ht|0,this.h3+xt+de|0,this.h4+K+_t|0,this.h0+ze+kt|0)}roundClean(){un.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const It=Zt(()=>new it),Ft=(f,_,x)=>f&_^~f&x,Rt=(f,_,x)=>f&_^f&x^_&x,kn=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]),hi=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),qt=new Uint32Array(64);class we extends J{constructor(){super(64,32,8,!1),this.A=0|hi[0],this.B=0|hi[1],this.C=0|hi[2],this.D=0|hi[3],this.E=0|hi[4],this.F=0|hi[5],this.G=0|hi[6],this.H=0|hi[7]}get(){const{A:_,B:x,C:K,D:de,E:ze,F:_t,G:wt,H:kt}=this;return[_,x,K,de,ze,_t,wt,kt]}set(_,x,K,de,ze,_t,wt,kt){this.A=0|_,this.B=0|x,this.C=0|K,this.D=0|de,this.E=0|ze,this.F=0|_t,this.G=0|wt,this.H=0|kt}process(_,x){for(let xt=0;xt<16;xt++,x+=4)qt[xt]=_.getUint32(x,!1);for(let xt=16;xt<64;xt++){const Ht=qt[xt-15],cn=qt[xt-2],Rn=Re(Ht,7)^Re(Ht,18)^Ht>>>3,pn=Re(cn,17)^Re(cn,19)^cn>>>10;qt[xt]=pn+qt[xt-7]+Rn+qt[xt-16]|0}let{A:K,B:de,C:ze,D:_t,E:wt,F:kt,G:Yt,H:vn}=this;for(let xt=0;xt<64;xt++){const cn=vn+(Re(wt,6)^Re(wt,11)^Re(wt,25))+Ft(wt,kt,Yt)+kn[xt]+qt[xt]|0,pn=(Re(K,2)^Re(K,13)^Re(K,22))+Rt(K,de,ze)|0;vn=Yt,Yt=kt,kt=wt,wt=_t+cn|0,_t=ze,ze=de,de=K,K=cn+pn|0}K=K+this.A|0,de=de+this.B|0,ze=ze+this.C|0,_t=_t+this.D|0,wt=wt+this.E|0,kt=kt+this.F|0,Yt=Yt+this.G|0,vn=vn+this.H|0,this.set(K,de,ze,_t,wt,kt,Yt,vn)}roundClean(){qt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const rt=Zt(()=>new we),on=BigInt(2**32-1),Q=BigInt(32);function T(f,_=!1){return _?{h:Number(f&on),l:Number(f>>Q&on)}:{h:0|Number(f>>Q&on),l:0|Number(f&on)}}const Et_split=function N(f,_=!1){let x=new Uint32Array(f.length),K=new Uint32Array(f.length);for(let de=0;def>>>x,Et_shrSL=(f,_,x)=>f<<32-x|_>>>x,Et_rotrSH=(f,_,x)=>f>>>x|_<<32-x,Et_rotrSL=(f,_,x)=>f<<32-x|_>>>x,Et_rotrBH=(f,_,x)=>f<<64-x|_>>>x-32,Et_rotrBL=(f,_,x)=>f>>>x-32|_<<64-x,Et_add=function Be(f,_,x,K){const de=(_>>>0)+(K>>>0);return{h:f+x+(de/2**32|0)|0,l:0|de}},Et_add3L=(f,_,x)=>(f>>>0)+(_>>>0)+(x>>>0),Et_add3H=(f,_,x,K)=>_+x+K+(f/2**32|0)|0,Et_add4L=(f,_,x,K)=>(f>>>0)+(_>>>0)+(x>>>0)+(K>>>0),Et_add4H=(f,_,x,K,de)=>_+x+K+de+(f/2**32|0)|0,Et_add5H=(f,_,x,K,de,ze)=>_+x+K+de+ze+(f/2**32|0)|0,Et_add5L=(f,_,x,K,de)=>(f>>>0)+(_>>>0)+(x>>>0)+(K>>>0)+(de>>>0),[at,Lt]=Et_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(f=>BigInt(f))),st=new Uint32Array(80),Qe=new Uint32Array(80);class Oe extends J{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:_,Al:x,Bh:K,Bl:de,Ch:ze,Cl:_t,Dh:wt,Dl:kt,Eh:Yt,El:vn,Fh:xt,Fl:Ht,Gh:cn,Gl:Rn,Hh:pn,Hl:Tn}=this;return[_,x,K,de,ze,_t,wt,kt,Yt,vn,xt,Ht,cn,Rn,pn,Tn]}set(_,x,K,de,ze,_t,wt,kt,Yt,vn,xt,Ht,cn,Rn,pn,Tn){this.Ah=0|_,this.Al=0|x,this.Bh=0|K,this.Bl=0|de,this.Ch=0|ze,this.Cl=0|_t,this.Dh=0|wt,this.Dl=0|kt,this.Eh=0|Yt,this.El=0|vn,this.Fh=0|xt,this.Fl=0|Ht,this.Gh=0|cn,this.Gl=0|Rn,this.Hh=0|pn,this.Hl=0|Tn}process(_,x){for(let Sn=0;Sn<16;Sn++,x+=4)st[Sn]=_.getUint32(x),Qe[Sn]=_.getUint32(x+=4);for(let Sn=16;Sn<80;Sn++){const ui=0|st[Sn-15],di=0|Qe[Sn-15],On=Et_rotrSH(ui,di,1)^Et_rotrSH(ui,di,8)^Et_shrSH(ui,di,7),Si=Et_rotrSL(ui,di,1)^Et_rotrSL(ui,di,8)^Et_shrSL(ui,di,7),Ai=0|st[Sn-2],qi=0|Qe[Sn-2],Pi=Et_rotrSH(Ai,qi,19)^Et_rotrBH(Ai,qi,61)^Et_shrSH(Ai,qi,6),er=Et_rotrSL(Ai,qi,19)^Et_rotrBL(Ai,qi,61)^Et_shrSL(Ai,qi,6),lo=Et_add4L(Si,er,Qe[Sn-7],Qe[Sn-16]),Er=Et_add4H(lo,On,Pi,st[Sn-7],st[Sn-16]);st[Sn]=0|Er,Qe[Sn]=0|lo}let{Ah:K,Al:de,Bh:ze,Bl:_t,Ch:wt,Cl:kt,Dh:Yt,Dl:vn,Eh:xt,El:Ht,Fh:cn,Fl:Rn,Gh:pn,Gl:Tn,Hh:Nn,Hl:Yn}=this;for(let Sn=0;Sn<80;Sn++){const ui=Et_rotrSH(xt,Ht,14)^Et_rotrSH(xt,Ht,18)^Et_rotrBH(xt,Ht,41),di=Et_rotrSL(xt,Ht,14)^Et_rotrSL(xt,Ht,18)^Et_rotrBL(xt,Ht,41),On=xt&cn^~xt&pn,Ai=Et_add5L(Yn,di,Ht&Rn^~Ht&Tn,Lt[Sn],Qe[Sn]),qi=Et_add5H(Ai,Nn,ui,On,at[Sn],st[Sn]),Pi=0|Ai,er=Et_rotrSH(K,de,28)^Et_rotrBH(K,de,34)^Et_rotrBH(K,de,39),lo=Et_rotrSL(K,de,28)^Et_rotrBL(K,de,34)^Et_rotrBL(K,de,39),Er=K&ze^K&wt^ze&wt,sr=de&_t^de&kt^_t&kt;Nn=0|pn,Yn=0|Tn,pn=0|cn,Tn=0|Rn,cn=0|xt,Rn=0|Ht,({h:xt,l:Ht}=Et_add(0|Yt,0|vn,0|qi,0|Pi)),Yt=0|wt,vn=0|kt,wt=0|ze,kt=0|_t,ze=0|K,_t=0|de;const Zn=Et_add3L(Pi,lo,sr);K=Et_add3H(Zn,qi,er,Er),de=0|Zn}({h:K,l:de}=Et_add(0|this.Ah,0|this.Al,0|K,0|de)),({h:ze,l:_t}=Et_add(0|this.Bh,0|this.Bl,0|ze,0|_t)),({h:wt,l:kt}=Et_add(0|this.Ch,0|this.Cl,0|wt,0|kt)),({h:Yt,l:vn}=Et_add(0|this.Dh,0|this.Dl,0|Yt,0|vn)),({h:xt,l:Ht}=Et_add(0|this.Eh,0|this.El,0|xt,0|Ht)),({h:cn,l:Rn}=Et_add(0|this.Fh,0|this.Fl,0|cn,0|Rn)),({h:pn,l:Tn}=Et_add(0|this.Gh,0|this.Gl,0|pn,0|Tn)),({h:Nn,l:Yn}=Et_add(0|this.Hh,0|this.Hl,0|Nn,0|Yn)),this.set(K,de,ze,_t,wt,kt,Yt,vn,xt,Ht,cn,Rn,pn,Tn,Nn,Yn)}roundClean(){st.fill(0),Qe.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const ai=Zt(()=>new Oe);function Pr(f){if(!Number.isSafeInteger(f)||f<0)throw new Error(`Wrong positive integer: ${f}`)}function Yr(f,..._){if(!(f instanceof Uint8Array))throw new Error("Expected Uint8Array");if(_.length>0&&!_.includes(f.length))throw new Error(`Expected Uint8Array of length ${_}, not of length=${f.length}`)}const yn={number:Pr,bool:function wi(f){if("boolean"!=typeof f)throw new Error(`Expected boolean, not ${f}`)},bytes:Yr,hash:function Or(f){if("function"!=typeof f||"function"!=typeof f.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Pr(f.outputLen),Pr(f.blockLen)},exists:function ft(f,_=!0){if(f.destroyed)throw new Error("Hash instance has been destroyed");if(_&&f.finished)throw new Error("Hash#digest() has already been called")},output:function St(f,_){Yr(f);const x=_.outputLen;if(f.lengthf instanceof Uint8Array,li=f=>new DataView(f.buffer,f.byteOffset,f.byteLength),Bn=(f,_)=>f<<32-_|f>>>_;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function lt(f){if("string"==typeof f&&(f=function pt(f){if("string"!=typeof f)throw new Error("utf8ToBytes expected string, got "+typeof f);return new Uint8Array((new TextEncoder).encode(f))}(f)),!Xn(f))throw new Error("expected Uint8Array, got "+typeof f);return f}Array.from({length:256},(f,_)=>_.toString(16).padStart(2,"0"));class hn{clone(){return this._cloneInto()}}function Dn(f){const _=K=>f().update(lt(K)).digest(),x=f();return _.outputLen=x.outputLen,_.blockLen=x.blockLen,_.create=()=>f(),_}function ci(f=32){if(An&&"function"==typeof An.getRandomValues)return An.getRandomValues(new Uint8Array(f));throw new Error("crypto.getRandomValues must be defined")}class ei extends hn{constructor(_,x,K,de){super(),this.blockLen=_,this.outputLen=x,this.padOffset=K,this.isLE=de,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(_),this.view=li(this.buffer)}update(_){yn.exists(this);const{view:x,buffer:K,blockLen:de}=this,ze=(_=lt(_)).length;for(let _t=0;_tde-_t&&(this.process(K,0),_t=0);for(let xt=_t;xt>de&ze),wt=Number(x&ze),Yt=K?0:4;f.setUint32(_+(K?4:0),_t,K),f.setUint32(_+Yt,wt,K)})(K,de-8,BigInt(8*this.length),ze),this.process(K,0);const wt=li(_),kt=this.outputLen;if(kt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Yt=kt/4,vn=this.get();if(Yt>vn.length)throw new Error("_sha2: outputLen bigger than state");for(let xt=0;xtf&_^~f&x,Rr=(f,_,x)=>f&_^f&x^_&x,uo=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]),Fr=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ci=new Uint32Array(64);class Lr extends ei{constructor(){super(64,32,8,!1),this.A=0|Fr[0],this.B=0|Fr[1],this.C=0|Fr[2],this.D=0|Fr[3],this.E=0|Fr[4],this.F=0|Fr[5],this.G=0|Fr[6],this.H=0|Fr[7]}get(){const{A:_,B:x,C:K,D:de,E:ze,F:_t,G:wt,H:kt}=this;return[_,x,K,de,ze,_t,wt,kt]}set(_,x,K,de,ze,_t,wt,kt){this.A=0|_,this.B=0|x,this.C=0|K,this.D=0|de,this.E=0|ze,this.F=0|_t,this.G=0|wt,this.H=0|kt}process(_,x){for(let xt=0;xt<16;xt++,x+=4)Ci[xt]=_.getUint32(x,!1);for(let xt=16;xt<64;xt++){const Ht=Ci[xt-15],cn=Ci[xt-2],Rn=Bn(Ht,7)^Bn(Ht,18)^Ht>>>3,pn=Bn(cn,17)^Bn(cn,19)^cn>>>10;Ci[xt]=pn+Ci[xt-7]+Rn+Ci[xt-16]|0}let{A:K,B:de,C:ze,D:_t,E:wt,F:kt,G:Yt,H:vn}=this;for(let xt=0;xt<64;xt++){const cn=vn+(Bn(wt,6)^Bn(wt,11)^Bn(wt,25))+Gn(wt,kt,Yt)+uo[xt]+Ci[xt]|0,pn=(Bn(K,2)^Bn(K,13)^Bn(K,22))+Rr(K,de,ze)|0;vn=Yt,Yt=kt,kt=wt,wt=_t+cn|0,_t=ze,ze=de,de=K,K=cn+pn|0}K=K+this.A|0,de=de+this.B|0,ze=ze+this.C|0,_t=_t+this.D|0,wt=wt+this.E|0,kt=kt+this.F|0,Yt=Yt+this.G|0,vn=vn+this.H|0,this.set(K,de,ze,_t,wt,kt,Yt,vn)}roundClean(){Ci.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class $o extends Lr{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 zi=Dn(()=>new Lr),oo=(Dn(()=>new $o),BigInt(0),BigInt(1)),ma=BigInt(2),ga=f=>f instanceof Uint8Array,Ul=Array.from({length:256},(f,_)=>_.toString(16).padStart(2,"0"));function vo(f){if(!ga(f))throw new Error("Uint8Array expected");let _="";for(let x=0;xK+de.length,0));let x=0;return f.forEach(K=>{if(!ga(K))throw new Error("Uint8Array expected");_.set(K,x),x+=K.length}),_}const Bo=f=>(ma<new Uint8Array(f),va=f=>Uint8Array.from(f);function gs(f,_,x){if("number"!=typeof f||f<2)throw new Error("hashLen must be a number");if("number"!=typeof _||_<2)throw new Error("qByteLen must be a number");if("function"!=typeof x)throw new Error("hmacFn must be a function");let K=Uo(f),de=Uo(f),ze=0;const _t=()=>{K.fill(1),de.fill(0),ze=0},wt=(...xt)=>x(de,K,...xt),kt=(xt=Uo())=>{de=wt(va([0]),xt),K=wt(),0!==xt.length&&(de=wt(va([1]),xt),K=wt())},Yt=()=>{if(ze++>=1e3)throw new Error("drbg: tried 1000 values");let xt=0;const Ht=[];for(;xt<_;){K=wt();const cn=K.slice();Ht.push(cn),xt+=K.length}return Tr(...Ht)};return(xt,Ht)=>{let cn;for(_t(),kt(xt);!(cn=Ht(Yt()));)kt();return _t(),cn}}const Hs={bigint:f=>"bigint"==typeof f,function:f=>"function"==typeof f,boolean:f=>"boolean"==typeof f,string:f=>"string"==typeof f,isSafeInteger:f=>Number.isSafeInteger(f),array:f=>Array.isArray(f),field:(f,_)=>_.Fp.isValid(f),hash:f=>"function"==typeof f&&Number.isSafeInteger(f.outputLen)};function Qr(f,_,x={}){const K=(de,ze,_t)=>{const wt=Hs[ze];if("function"!=typeof wt)throw new Error(`Invalid validator "${ze}", expected function`);const kt=f[de];if(!(_t&&void 0===kt||wt(kt,f)))throw new Error(`Invalid param ${String(de)}=${kt} (${typeof kt}), expected ${ze}`)};for(const[de,ze]of Object.entries(_))K(de,ze,!1);for(const[de,ze]of Object.entries(x))K(de,ze,!0);return f}const Li=BigInt(0),gr=BigInt(1),zo=BigInt(2),so=BigInt(3),oa=BigInt(4),lr=BigInt(5),Io=BigInt(8);function Mi(f,_){const x=f%_;return x>=Li?x:_+x}function os(f,_,x){if(x<=Li||_ 0");if(x===gr)return Li;let K=gr;for(;_>Li;)_&gr&&(K=K*f%x),f=f*f%x,_>>=gr;return K}function Zr(f,_,x){let K=f;for(;_-- >Li;)K*=K,K%=x;return K}function Wo(f,_){if(f===Li||_<=Li)throw new Error(`invert: expected positive integers, got n=${f} mod=${_}`);let x=Mi(f,_),K=_,de=Li,ze=gr,_t=gr,wt=Li;for(;x!==Li;){const Yt=K/x,vn=K%x,xt=de-_t*Yt,Ht=ze-wt*Yt;K=x,x=vn,de=_t,ze=wt,_t=xt,wt=Ht}if(K!==gr)throw new Error("invert: does not exist");return Mi(de,_)}BigInt(9),BigInt(16);const Ta=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function br(f,_){const x=void 0!==_?_:f.toString(2).length;return{nBitLength:x,nByteLength:Math.ceil(x/8)}}const Mo=BigInt(0),as=BigInt(1);function sa(f){return function Ji(f){Qr(f,Ta.reduce((K,de)=>(K[de]="function",K),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(f.Fp),Qr(f,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...br(f.n,f.nBitLength),...f,p:f.Fp.ORDER})}const{Ph:Ds,aT:vs}=u,xs={Err:class extends Error{constructor(_=""){super(_)}},_parseInt(f){const{Err:_}=xs;if(f.length<2||2!==f[0])throw new _("Invalid signature integer tag");const x=f[1],K=f.subarray(2,x+2);if(!x||K.length!==x)throw new _("Invalid signature integer: wrong length");if(128&K[0])throw new _("Invalid signature integer: negative");if(0===K[0]&&!(128&K[1]))throw new _("Invalid signature integer: unnecessary leading zero");return{d:Ds(K),l:f.subarray(x+2)}},toSig(f){const{Err:_}=xs,x="string"==typeof f?vs(f):f;if(!(x instanceof Uint8Array))throw new Error("ui8a expected");let K=x.length;if(K<2||48!=x[0])throw new _("Invalid signature tag");if(x[1]!==K-2)throw new _("Invalid signature: incorrect length");const{d:de,l:ze}=xs._parseInt(x.subarray(2)),{d:_t,l:wt}=xs._parseInt(ze);if(wt.length)throw new _("Invalid signature: left bytes after parsing");return{r:de,s:_t}},hexFromSig(f){const _=Yt=>8&Number.parseInt(Yt[0],16)?"00"+Yt:Yt,x=Yt=>{const vn=Yt.toString(16);return 1&vn.length?`0${vn}`:vn},K=_(x(f.s)),de=_(x(f.r)),ze=K.length/2,_t=de.length/2,wt=x(ze),kt=x(_t);return`30${x(_t+ze+4)}02${kt}${de}02${wt}${K}`}},Xo=BigInt(0),fr=BigInt(1),z=(BigInt(2),BigInt(3));function yt(f){const _=function pe(f){const _=sa(f);return Qr(_,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,..._})}(f),{Fp:x,n:K}=_,de=x.BYTES+1,ze=2*x.BYTES+1;function wt(Zn){return Mi(Zn,K)}function kt(Zn){return Wo(Zn,K)}const{ProjectivePoint:Yt,normPrivateKeyToScalar:vn,weierstrassEquation:xt,isWithinCurveOrder:Ht}=function k(f){const _=function Ia(f){const _=sa(f);Qr(_,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:x,Fp:K,a:de}=_;if(x){if(!K.eql(de,K.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof x||"bigint"!=typeof x.beta||"function"!=typeof x.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({..._})}(f),{Fp:x}=_,K=_.toBytes||((Rn,pn,Tn)=>{const Nn=pn.toAffine();return Tr(Uint8Array.from([4]),x.toBytes(Nn.x),x.toBytes(Nn.y))}),de=_.fromBytes||(Rn=>{const pn=Rn.subarray(1);return{x:x.fromBytes(pn.subarray(0,x.BYTES)),y:x.fromBytes(pn.subarray(x.BYTES,2*x.BYTES))}});function ze(Rn){const{a:pn,b:Tn}=_,Nn=x.sqr(Rn),Yn=x.mul(Nn,Rn);return x.add(x.add(Yn,x.mul(Rn,pn)),Tn)}if(!x.eql(x.sqr(_.Gy),ze(_.Gx)))throw new Error("bad generator point: equation left != right");function _t(Rn){return"bigint"==typeof Rn&&Xox.eql(Sn,x.ZERO);return Yn(Tn)&&Yn(Nn)?xt.ZERO:new xt(Tn,Nn,x.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(pn){const Tn=x.invertBatch(pn.map(Nn=>Nn.pz));return pn.map((Nn,Yn)=>Nn.toAffine(Tn[Yn])).map(xt.fromAffine)}static fromHex(pn){const Tn=xt.fromAffine(de(Ar("pointHex",pn)));return Tn.assertValidity(),Tn}static fromPrivateKey(pn){return xt.BASE.multiply(kt(pn))}_setWindowSize(pn){this._WINDOW_SIZE=pn,Yt.delete(this)}assertValidity(){if(this.is0()){if(_.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:pn,y:Tn}=this.toAffine();if(!x.isValid(pn)||!x.isValid(Tn))throw new Error("bad point: x or y not FE");const Nn=x.sqr(Tn),Yn=ze(pn);if(!x.eql(Nn,Yn))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:pn}=this.toAffine();if(x.isOdd)return!x.isOdd(pn);throw new Error("Field doesn't support isOdd")}equals(pn){vn(pn);const{px:Tn,py:Nn,pz:Yn}=this,{px:Sn,py:ui,pz:di}=pn,On=x.eql(x.mul(Tn,di),x.mul(Sn,Yn)),Si=x.eql(x.mul(Nn,di),x.mul(ui,Yn));return On&&Si}negate(){return new xt(this.px,x.neg(this.py),this.pz)}double(){const{a:pn,b:Tn}=_,Nn=x.mul(Tn,z),{px:Yn,py:Sn,pz:ui}=this;let di=x.ZERO,On=x.ZERO,Si=x.ZERO,Ai=x.mul(Yn,Yn),qi=x.mul(Sn,Sn),Pi=x.mul(ui,ui),er=x.mul(Yn,Sn);return er=x.add(er,er),Si=x.mul(Yn,ui),Si=x.add(Si,Si),di=x.mul(pn,Si),On=x.mul(Nn,Pi),On=x.add(di,On),di=x.sub(qi,On),On=x.add(qi,On),On=x.mul(di,On),di=x.mul(er,di),Si=x.mul(Nn,Si),Pi=x.mul(pn,Pi),er=x.sub(Ai,Pi),er=x.mul(pn,er),er=x.add(er,Si),Si=x.add(Ai,Ai),Ai=x.add(Si,Ai),Ai=x.add(Ai,Pi),Ai=x.mul(Ai,er),On=x.add(On,Ai),Pi=x.mul(Sn,ui),Pi=x.add(Pi,Pi),Ai=x.mul(Pi,er),di=x.sub(di,Ai),Si=x.mul(Pi,qi),Si=x.add(Si,Si),Si=x.add(Si,Si),new xt(di,On,Si)}add(pn){vn(pn);const{px:Tn,py:Nn,pz:Yn}=this,{px:Sn,py:ui,pz:di}=pn;let On=x.ZERO,Si=x.ZERO,Ai=x.ZERO;const qi=_.a,Pi=x.mul(_.b,z);let er=x.mul(Tn,Sn),lo=x.mul(Nn,ui),Er=x.mul(Yn,di),sr=x.add(Tn,Nn),Zn=x.add(Sn,ui);sr=x.mul(sr,Zn),Zn=x.add(er,lo),sr=x.sub(sr,Zn),Zn=x.add(Tn,Yn);let gi=x.add(Sn,di);return Zn=x.mul(Zn,gi),gi=x.add(er,Er),Zn=x.sub(Zn,gi),gi=x.add(Nn,Yn),On=x.add(ui,di),gi=x.mul(gi,On),On=x.add(lo,Er),gi=x.sub(gi,On),Ai=x.mul(qi,Zn),On=x.mul(Pi,Er),Ai=x.add(On,Ai),On=x.sub(lo,Ai),Ai=x.add(lo,Ai),Si=x.mul(On,Ai),lo=x.add(er,er),lo=x.add(lo,er),Er=x.mul(qi,Er),Zn=x.mul(Pi,Zn),lo=x.add(lo,Er),Er=x.sub(er,Er),Er=x.mul(qi,Er),Zn=x.add(Zn,Er),er=x.mul(lo,Zn),Si=x.add(Si,er),er=x.mul(gi,Zn),On=x.mul(sr,On),On=x.sub(On,er),er=x.mul(sr,lo),Ai=x.mul(gi,Ai),Ai=x.add(Ai,er),new xt(On,Si,Ai)}subtract(pn){return this.add(pn.negate())}is0(){return this.equals(xt.ZERO)}wNAF(pn){return cn.wNAFCached(this,Yt,pn,Tn=>{const Nn=x.invertBatch(Tn.map(Yn=>Yn.pz));return Tn.map((Yn,Sn)=>Yn.toAffine(Nn[Sn])).map(xt.fromAffine)})}multiplyUnsafe(pn){const Tn=xt.ZERO;if(pn===Xo)return Tn;if(wt(pn),pn===fr)return this;const{endo:Nn}=_;if(!Nn)return cn.unsafeLadder(this,pn);let{k1neg:Yn,k1:Sn,k2neg:ui,k2:di}=Nn.splitScalar(pn),On=Tn,Si=Tn,Ai=this;for(;Sn>Xo||di>Xo;)Sn&fr&&(On=On.add(Ai)),di&fr&&(Si=Si.add(Ai)),Ai=Ai.double(),Sn>>=fr,di>>=fr;return Yn&&(On=On.negate()),ui&&(Si=Si.negate()),Si=new xt(x.mul(Si.px,Nn.beta),Si.py,Si.pz),On.add(Si)}multiply(pn){wt(pn);let Nn,Yn,Tn=pn;const{endo:Sn}=_;if(Sn){const{k1neg:ui,k1:di,k2neg:On,k2:Si}=Sn.splitScalar(Tn);let{p:Ai,f:qi}=this.wNAF(di),{p:Pi,f:er}=this.wNAF(Si);Ai=cn.constTimeNegate(ui,Ai),Pi=cn.constTimeNegate(On,Pi),Pi=new xt(x.mul(Pi.px,Sn.beta),Pi.py,Pi.pz),Nn=Ai.add(Pi),Yn=qi.add(er)}else{const{p:ui,f:di}=this.wNAF(Tn);Nn=ui,Yn=di}return xt.normalizeZ([Nn,Yn])[0]}multiplyAndAddUnsafe(pn,Tn,Nn){const Yn=xt.BASE,Sn=(di,On)=>On!==Xo&&On!==fr&&di.equals(Yn)?di.multiply(On):di.multiplyUnsafe(On),ui=Sn(this,Tn).add(Sn(pn,Nn));return ui.is0()?void 0:ui}toAffine(pn){const{px:Tn,py:Nn,pz:Yn}=this,Sn=this.is0();null==pn&&(pn=Sn?x.ONE:x.inv(Yn));const ui=x.mul(Tn,pn),di=x.mul(Nn,pn),On=x.mul(Yn,pn);if(Sn)return{x:x.ZERO,y:x.ZERO};if(!x.eql(On,x.ONE))throw new Error("invZ was invalid");return{x:ui,y:di}}isTorsionFree(){const{h:pn,isTorsionFree:Tn}=_;if(pn===fr)return!0;if(Tn)return Tn(xt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:pn,clearCofactor:Tn}=_;return pn===fr?this:Tn?Tn(xt,this):this.multiplyUnsafe(_.h)}toRawBytes(pn=!0){return this.assertValidity(),K(xt,this,pn)}toHex(pn=!0){return vo(this.toRawBytes(pn))}}xt.BASE=new xt(_.Gx,_.Gy,x.ONE),xt.ZERO=new xt(x.ZERO,x.ONE,x.ZERO);const Ht=_.nBitLength,cn=function dl(f,_){const x=(de,ze)=>{const _t=ze.negate();return de?_t:ze},K=de=>({windows:Math.ceil(_/de)+1,windowSize:2**(de-1)});return{constTimeNegate:x,unsafeLadder(de,ze){let _t=f.ZERO,wt=de;for(;ze>Mo;)ze&as&&(_t=_t.add(wt)),wt=wt.double(),ze>>=as;return _t},precomputeWindow(de,ze){const{windows:_t,windowSize:wt}=K(ze),kt=[];let Yt=de,vn=Yt;for(let xt=0;xt<_t;xt++){vn=Yt,kt.push(vn);for(let Ht=1;Ht>=cn,Tn>kt&&(Tn-=Ht,_t+=as);const Nn=pn,Yn=pn+Math.abs(Tn)-1,ui=Tn<0;0===Tn?vn=vn.add(x(Rn%2!=0,ze[Nn])):Yt=Yt.add(x(ui,ze[Yn]))}return{p:Yt,f:vn}},wNAFCached(de,ze,_t,wt){const kt=de._WINDOW_SIZE||1;let Yt=ze.get(de);return Yt||(Yt=this.precomputeWindow(de,kt),1!==kt&&ze.set(de,wt(Yt))),this.wNAF(kt,Yt,_t)}}}(xt,_.endo?Math.ceil(Ht/2):Ht);return{CURVE:_,ProjectivePoint:xt,normPrivateKeyToScalar:kt,weierstrassEquation:ze,isWithinCurveOrder:_t}}({..._,toBytes(Zn,gi,tr){const pr=gi.toAffine(),Jn=x.toBytes(pr.x),Cr=Tr;return tr?Cr(Uint8Array.from([gi.hasEvenY()?2:3]),Jn):Cr(Uint8Array.from([4]),Jn,x.toBytes(pr.y))},fromBytes(Zn){const gi=Zn.length,tr=Zn[0],pr=Zn.subarray(1);if(gi!==de||2!==tr&&3!==tr){if(gi===ze&&4===tr)return{x:x.fromBytes(pr.subarray(0,x.BYTES)),y:x.fromBytes(pr.subarray(x.BYTES,2*x.BYTES))};throw new Error(`Point of length ${gi} was invalid. Expected ${de} compressed bytes or ${ze} uncompressed bytes`)}{const Jn=hr(pr);if(!function _t(Zn){return Xovo(no(Zn,_.nByteLength));function Rn(Zn){return Zn>K>>fr}const Tn=(Zn,gi,tr)=>hr(Zn.slice(gi,tr));class Nn{constructor(gi,tr,pr){this.r=gi,this.s=tr,this.recovery=pr,this.assertValidity()}static fromCompact(gi){const tr=_.nByteLength;return gi=Ar("compactSignature",gi,2*tr),new Nn(Tn(gi,0,tr),Tn(gi,tr,2*tr))}static fromDER(gi){const{r:tr,s:pr}=xs.toSig(Ar("DER",gi));return new Nn(tr,pr)}assertValidity(){if(!Ht(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Ht(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(gi){return new Nn(this.r,this.s,gi)}recoverPublicKey(gi){const{r:tr,s:pr,recovery:Jn}=this,Cr=Si(Ar("msgHash",gi));if(null==Jn||![0,1,2,3].includes(Jn))throw new Error("recovery id invalid");const Br=2===Jn||3===Jn?tr+_.n:tr;if(Br>=x.ORDER)throw new Error("recovery id 2 or 3 invalid");const Ys=Yt.fromHex((1&Jn?"03":"02")+cn(Br)),cs=kt(Br),kr=wt(-Cr*cs),Qs=wt(pr*cs),Ur=Yt.BASE.multiplyAndAddUnsafe(Ys,kr,Qs);if(!Ur)throw new Error("point at infinify");return Ur.assertValidity(),Ur}hasHighS(){return Rn(this.s)}normalizeS(){return this.hasHighS()?new Nn(this.r,wt(-this.s),this.recovery):this}toDERRawBytes(){return Us(this.toDERHex())}toDERHex(){return xs.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Us(this.toCompactHex())}toCompactHex(){return cn(this.r)+cn(this.s)}}const Yn={isValidPrivateKey(Zn){try{return vn(Zn),!0}catch{return!1}},normPrivateKeyToScalar:vn,randomPrivateKey:()=>{const gi=function Ko(f,_,x=!1){const K=(f=Ar("privateHash",f)).length,de=br(_).nByteLength+8;if(de<24||K1024)throw new Error(`hashToPrivateScalar: expected ${de}-1024 bytes of input, got ${K}`);return Mi(x?is(f):hr(f),_-gr)+gr}(_.randomBytes(x.BYTES+8),K);return no(gi,_.nByteLength)},precompute:(Zn=8,gi=Yt.BASE)=>(gi._setWindowSize(Zn),gi.multiply(BigInt(3)),gi)};function ui(Zn){const gi=Zn instanceof Uint8Array,tr="string"==typeof Zn,pr=(gi||tr)&&Zn.length;return gi?pr===de||pr===ze:tr?pr===2*de||pr===2*ze:Zn instanceof Yt}const On=_.bits2int||function(Zn){const gi=hr(Zn),tr=8*Zn.length-_.nBitLength;return tr>0?gi>>BigInt(tr):gi},Si=_.bits2int_modN||function(Zn){return wt(On(Zn))},Ai=Bo(_.nBitLength);function qi(Zn){if("bigint"!=typeof Zn)throw new Error("bigint expected");if(!(Xo<=Zn&&Znws in tr))throw new Error("sign() legacy options not supported");const{hash:pr,randomBytes:Jn}=_;let{lowS:Cr,prehash:Br,extraEntropy:$r}=tr;null==Cr&&(Cr=!0),Zn=Ar("msgHash",Zn),Br&&(Zn=Ar("prehashed msgHash",pr(Zn)));const Ys=Si(Zn),cs=vn(gi),kr=[qi(cs),qi(Ys)];if(null!=$r){const ws=!0===$r?Jn(x.BYTES):$r;kr.push(Ar("extraEntropy",ws,x.BYTES))}const Qs=Tr(...kr),Ur=Ys;return{seed:Qs,k2sig:function yo(ws){const Do=On(ws);if(!Ht(Do))return;const yi=kt(Do),eo=Yt.BASE.multiply(Do).toAffine(),ha=wt(eo.x);if(ha===Xo)return;const Jo=wt(yi*wt(Ur+ha*cs));if(Jo===Xo)return;let Qa=(eo.x===ha?0:2)|Number(eo.y&fr),pl=Jo;return Cr&&Rn(Jo)&&(pl=function pn(Zn){return Rn(Zn)?wt(-Zn):Zn}(Jo),Qa^=1),new Nn(ha,pl,Qa)}}}(Zn,gi,tr);return gs(_.hash.outputLen,_.nByteLength,_.hmac)(pr,Jn)},verify:function sr(Zn,gi,tr,pr=lo){const Jn=Zn;if(gi=Ar("msgHash",gi),tr=Ar("publicKey",tr),"strict"in pr)throw new Error("options.strict was renamed to lowS");const{lowS:Cr,prehash:Br}=pr;let $r,Ys;try{if("string"==typeof Jn||Jn instanceof Uint8Array)try{$r=Nn.fromDER(Jn)}catch(eo){if(!(eo instanceof xs.Err))throw eo;$r=Nn.fromCompact(Jn)}else{if("object"!=typeof Jn||"bigint"!=typeof Jn.r||"bigint"!=typeof Jn.s)throw new Error("PARSE");{const{r:eo,s:ha}=Jn;$r=new Nn(eo,ha)}}Ys=Yt.fromHex(tr)}catch(eo){if("PARSE"===eo.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Cr&&$r.hasHighS())return!1;Br&&(gi=_.hash(gi));const{r:cs,s:kr}=$r,Qs=Si(gi),Ur=kt(kr),yo=wt(Qs*Ur),ws=wt(cs*Ur),Do=Yt.BASE.multiplyAndAddUnsafe(Ys,yo,ws)?.toAffine();return!!Do&&wt(Do.x)===cs},ProjectivePoint:Yt,Signature:Nn,utils:Yn}}BigInt(4);class ka extends hn{constructor(_,x){super(),this.finished=!1,this.destroyed=!1,yn.hash(_);const K=lt(x);if(this.iHash=_.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const de=this.blockLen,ze=new Uint8Array(de);ze.set(K.length>de?_.create().update(K).digest():K);for(let _t=0;_tnew ka(f,_).update(x).digest();function Jr(f){return{hash:f,hmac:(_,...x)=>Wi(f,_,function jt(...f){const _=new Uint8Array(f.reduce((K,de)=>K+de.length,0));let x=0;return f.forEach(K=>{if(!Xn(K))throw new Error("Uint8Array expected");_.set(K,x),x+=K.length}),_}(...x)),randomBytes:ci}}Wi.create=(f,_)=>new ka(f,_);const Yo=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),fo=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Na=BigInt(1),As=BigInt(2),la=(f,_)=>(f+_/As)/_;const Gs=function Vo(f,_,x=!1,K={}){if(f<=Li)throw new Error(`Expected Fp ORDER > 0, got ${f}`);const{nBitLength:de,nByteLength:ze}=br(f,_);if(ze>2048)throw new Error("Field lengths over 2048 bytes are not supported");const _t=function Co(f){if(f%oa===so){const _=(f+gr)/oa;return function(K,de){const ze=K.pow(de,_);if(!K.eql(K.sqr(ze),de))throw new Error("Cannot find square root");return ze}}if(f%Io===lr){const _=(f-lr)/Io;return function(K,de){const ze=K.mul(de,zo),_t=K.pow(ze,_),wt=K.mul(de,_t),kt=K.mul(K.mul(wt,zo),_t),Yt=K.mul(wt,K.sub(kt,K.ONE));if(!K.eql(K.sqr(Yt),de))throw new Error("Cannot find square root");return Yt}}return function ul(f){const _=(f-gr)/zo;let x,K,de;for(x=f-gr,K=0;x%zo===Li;x/=zo,K++);for(de=zo;deMi(kt,f),isValid:kt=>{if("bigint"!=typeof kt)throw new Error("Invalid field element: expected bigint, got "+typeof kt);return Li<=kt&&ktkt===Li,isOdd:kt=>(kt&gr)===gr,neg:kt=>Mi(-kt,f),eql:(kt,Yt)=>kt===Yt,sqr:kt=>Mi(kt*kt,f),add:(kt,Yt)=>Mi(kt+Yt,f),sub:(kt,Yt)=>Mi(kt-Yt,f),mul:(kt,Yt)=>Mi(kt*Yt,f),pow:(kt,Yt)=>function Cs(f,_,x){if(x 0");if(x===Li)return f.ONE;if(x===gr)return _;let K=f.ONE,de=_;for(;x>Li;)x&gr&&(K=f.mul(K,de)),de=f.sqr(de),x>>=gr;return K}(wt,kt,Yt),div:(kt,Yt)=>Mi(kt*Wo(Yt,f),f),sqrN:kt=>kt*kt,addN:(kt,Yt)=>kt+Yt,subN:(kt,Yt)=>kt-Yt,mulN:(kt,Yt)=>kt*Yt,inv:kt=>Wo(kt,f),sqrt:K.sqrt||(kt=>_t(wt,kt)),invertBatch:kt=>function Go(f,_){const x=new Array(_.length),K=_.reduce((ze,_t,wt)=>f.is0(_t)?ze:(x[wt]=ze,f.mul(ze,_t)),f.ONE),de=f.inv(K);return _.reduceRight((ze,_t,wt)=>f.is0(_t)?ze:(x[wt]=f.mul(ze,x[wt]),f.mul(ze,_t)),de),x}(wt,kt),cmov:(kt,Yt,vn)=>vn?Yt:kt,toBytes:kt=>x?Ii(kt,ze):no(kt,ze),fromBytes:kt=>{if(kt.length!==ze)throw new Error(`Fp.fromBytes: expected ${ze}, got ${kt.length}`);return x?is(kt):hr(kt)}});return Object.freeze(wt)}(Yo,void 0,void 0,{sqrt:function Wa(f){const _=Yo,x=BigInt(3),K=BigInt(6),de=BigInt(11),ze=BigInt(22),_t=BigInt(23),wt=BigInt(44),kt=BigInt(88),Yt=f*f*f%_,vn=Yt*Yt*f%_,xt=Zr(vn,x,_)*vn%_,Ht=Zr(xt,x,_)*vn%_,cn=Zr(Ht,As,_)*Yt%_,Rn=Zr(cn,de,_)*cn%_,pn=Zr(Rn,ze,_)*Rn%_,Tn=Zr(pn,wt,_)*pn%_,Nn=Zr(Tn,kt,_)*Tn%_,Yn=Zr(Nn,wt,_)*pn%_,Sn=Zr(Yn,x,_)*vn%_,ui=Zr(Sn,_t,_)*Rn%_,di=Zr(ui,K,_)*Yt%_,On=Zr(di,As,_);if(!Gs.eql(Gs.sqr(On),f))throw new Error("Cannot find square root");return On}}),ao=function qr(f,_){const x=K=>yt({...f,...Jr(K)});return Object.freeze({...x(_),create:x})}({a:BigInt(0),b:BigInt(7),Fp:Gs,n:fo,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:f=>{const _=fo,x=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),K=-Na*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),de=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ze=x,_t=BigInt("0x100000000000000000000000000000000"),wt=la(ze*f,_),kt=la(-K*f,_);let Yt=Mi(f-wt*x-kt*de,_),vn=Mi(-wt*K-kt*ze,_);const xt=Yt>_t,Ht=vn>_t;if(xt&&(Yt=_-Yt),Ht&&(vn=_-vn),Yt>_t||vn>_t)throw new Error("splitScalar: Endomorphism failed, k="+f);return{k1neg:xt,k1:Yt,k2neg:Ht,k2:vn}}}},zi);BigInt(0);var ca=v(3813);const Wr=ao.ProjectivePoint,Gr=(0,ca.Tq)(rt);function fl(f){return BigInt(`0x${function be(f){if(!ge(f))throw new Error("Uint8Array expected");let _="";for(let x=0;x{if(!Number.isSafeInteger(f)||f<0||f>2**32-1)throw new Error(`Invalid number=${f}. Should be from 0 to 2 ** 32 - 1`);const _=new Uint8Array(4);return Ee(_).setUint32(0,f,!1),_};class ne{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return Ee(this.pubHash).getUint32(0,!1)}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){const _=this.privateKey;if(!_)throw new Error("No private key");return Gr.encode(this.serialize(this.versions.private,nt(new Uint8Array([0]),_)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return Gr.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(_,x=da){if(G(_),8*_.length<128||8*_.length>512)throw new Error(`HDKey: wrong seed length=${_.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const K=_e(ai,sc,_);return new ne({versions:x,chainCode:K.slice(32),privateKey:K.slice(0,32)})}static fromExtendedKey(_,x=da){const K=Gr.decode(_),de=Ee(K),ze=de.getUint32(0,!1),_t={versions:x,depth:K[4],parentFingerprint:de.getUint32(5,!1),index:de.getUint32(9,!1),chainCode:K.slice(13,45)},wt=K.slice(45),kt=0===wt[0];if(ze!==x[kt?"private":"public"])throw new Error("Version mismatch");return new ne(kt?{..._t,privateKey:wt.slice(1)}:{..._t,publicKey:wt})}static fromJSON(_){return ne.fromExtendedKey(_.xpriv)}constructor(_){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!_||"object"!=typeof _)throw new Error("HDKey.constructor must not be called directly");if(this.versions=_.versions||da,this.depth=_.depth||0,this.chainCode=_.chainCode,this.index=_.index||0,this.parentFingerprint=_.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(_.publicKey&&_.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(_.privateKey){if(!ao.utils.isValidPrivateKey(_.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof _.privateKey?_.privateKey:fl(_.privateKey),this.privKeyBytes=function ua(f){return function je(f){if("string"!=typeof f)throw new Error("hex string expected, got "+typeof f);const _=f.length,x=_/2;if(_%2)throw new Error("padded hex string expected, got unpadded hex of length "+_);const K=new Uint8Array(x);for(let de=0,ze=0;de=ir)throw new Error("Invalid index");"'"===ze[2]&&(_t+=ir),K=K.deriveChild(_t)}return K}deriveChild(_){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let x=S(_);if(_>=ir){const wt=this.privateKey;if(!wt)throw new Error("Could not derive hardened child key");x=nt(new Uint8Array([0]),wt,x)}else x=nt(this.pubKey,x);const K=_e(ai,this.chainCode,x),de=fl(K.slice(0,32)),ze=K.slice(32);if(!ao.utils.isValidPrivateKey(de))throw new Error("Tweak bigger than curve order");const _t={versions:this.versions,chainCode:ze,depth:this.depth+1,parentFingerprint:this.fingerprint,index:_};try{if(this.privateKey){const wt=Mi(this.privKey+de,ao.CURVE.n);if(!ao.utils.isValidPrivateKey(wt))throw new Error("The tweak was out of range or the resulted private key is invalid");_t.privateKey=wt}else{const wt=Wr.fromHex(this.pubKey).add(Wr.fromPrivateKey(de));if(wt.equals(Wr.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");_t.publicKey=wt.toRawBytes(!0)}return new ne(_t)}catch{return this.deriveChild(_+1)}}sign(_){if(!this.privateKey)throw new Error("No privateKey set!");return G(_,32),ao.sign(_,this.privKey).toCompactRawBytes()}verify(_,x){if(G(_,32),G(x,64),!this.publicKey)throw new Error("No publicKey set!");let K;try{K=ao.Signature.fromCompact(x)}catch{return!1}return ao.verify(K,_,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(_,x){if(!this.chainCode)throw new Error("No chainCode set");return G(x,33),nt(S(_),new Uint8Array([this.depth]),S(this.parentFingerprint),S(this.index),this.chainCode,x)}}},9673:(tn,Ne,v)=>{"use strict";function u(ft){if(!Number.isSafeInteger(ft)||ft<0)throw new Error(`Wrong positive integer: ${ft}`)}function L(ft,...St){if(!function o(ft){return ft instanceof Uint8Array||null!=ft&&"object"==typeof ft&&"Uint8Array"===ft.constructor.name}(ft))throw new Error("Expected Uint8Array");if(St.length>0&&!St.includes(ft.length))throw new Error(`Expected Uint8Array of length ${St}, not of length=${ft.length}`)}function G(ft){if("function"!=typeof ft||"function"!=typeof ft.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");u(ft.outputLen),u(ft.blockLen)}function ee(ft,St=!0){if(ft.destroyed)throw new Error("Hash instance has been destroyed");if(St&&ft.finished)throw new Error("Hash#digest() has already been called")}function oe(ft,St){L(ft);const ln=St.outputLen;if(ft.lengthrn,kw:()=>Or,JB:()=>Pr});const P={number:u,bool:function y(ft){if("boolean"!=typeof ft)throw new Error(`Expected boolean, not ${ft}`)},bytes:L,hash:G,exists:ee,output:oe},B="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;const Ee=ft=>new DataView(ft.buffer,ft.byteOffset,ft.byteLength),Re=(ft,St)=>ft<<32-St|ft>>>St;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Le(ft){if("string"==typeof ft&&(ft=function me(ft){if("string"!=typeof ft)throw new Error("utf8ToBytes expected string, got "+typeof ft);return new Uint8Array((new TextEncoder).encode(ft))}(ft)),!function ge(ft){return ft instanceof Uint8Array||null!=ft&&"object"==typeof ft&&"Uint8Array"===ft.constructor.name}(ft))throw new Error("expected Uint8Array, got "+typeof ft);return ft}class At{clone(){return this._cloneInto()}}const vt={}.toString;function Zt(ft){const St=yn=>ft().update(Le(yn)).digest(),ln=ft();return St.outputLen=ln.outputLen,St.blockLen=ln.blockLen,St.create=()=>ft(),St}class pi extends At{constructor(St,ln){super(),this.finished=!1,this.destroyed=!1,G(St);const yn=Le(ln);if(this.iHash=St.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 An=this.blockLen,Xn=new Uint8Array(An);Xn.set(yn.length>An?St.create().update(yn).digest():yn);for(let zn=0;znnew pi(ft,St).update(ln).digest();_e.create=(ft,St)=>new pi(ft,St);class Xe extends At{constructor(St,ln,yn,An){super(),this.blockLen=St,this.outputLen=ln,this.padOffset=yn,this.isLE=An,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(St),this.view=Ee(this.buffer)}update(St){ee(this);const{view:ln,buffer:yn,blockLen:An}=this,Xn=(St=Le(St)).length;for(let zn=0;znAn-zn&&(this.process(yn,0),zn=0);for(let Ye=zn;Ye>An&Xn),ri=Number(ln&Xn),Bn=yn?0:4;ft.setUint32(St+(yn?4:0),zn,yn),ft.setUint32(St+Bn,ri,yn)})(yn,An-8,BigInt(8*this.length),Xn),this.process(yn,0);const ri=Ee(St),li=this.outputLen;if(li%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Bn=li/4,xe=this.get();if(Bn>xe.length)throw new Error("_sha2: outputLen bigger than state");for(let Ye=0;Yeft&St^~ft&ln,Me=(ft,St,ln)=>ft&St^ft&ln^St&ln,ie=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]),ve=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),le=new Uint32Array(64);class Ce extends Xe{constructor(){super(64,32,8,!1),this.A=0|ve[0],this.B=0|ve[1],this.C=0|ve[2],this.D=0|ve[3],this.E=0|ve[4],this.F=0|ve[5],this.G=0|ve[6],this.H=0|ve[7]}get(){const{A:St,B:ln,C:yn,D:An,E:Xn,F:zn,G:ri,H:li}=this;return[St,ln,yn,An,Xn,zn,ri,li]}set(St,ln,yn,An,Xn,zn,ri,li){this.A=0|St,this.B=0|ln,this.C=0|yn,this.D=0|An,this.E=0|Xn,this.F=0|zn,this.G=0|ri,this.H=0|li}process(St,ln){for(let Ye=0;Ye<16;Ye++,ln+=4)le[Ye]=St.getUint32(ln,!1);for(let Ye=16;Ye<64;Ye++){const Ge=le[Ye-15],W=le[Ye-2],Te=Re(Ge,7)^Re(Ge,18)^Ge>>>3,se=Re(W,17)^Re(W,19)^W>>>10;le[Ye]=se+le[Ye-7]+Te+le[Ye-16]|0}let{A:yn,B:An,C:Xn,D:zn,E:ri,F:li,G:Bn,H:xe}=this;for(let Ye=0;Ye<64;Ye++){const W=xe+(Re(ri,6)^Re(ri,11)^Re(ri,25))+Je(ri,li,Bn)+ie[Ye]+le[Ye]|0,se=(Re(yn,2)^Re(yn,13)^Re(yn,22))+Me(yn,An,Xn)|0;xe=Bn,Bn=li,li=ri,ri=zn+W|0,zn=Xn,Xn=An,An=yn,yn=W+se|0}yn=yn+this.A|0,An=An+this.B|0,Xn=Xn+this.C|0,zn=zn+this.D|0,ri=ri+this.E|0,li=li+this.F|0,Bn=Bn+this.G|0,xe=xe+this.H|0,this.set(yn,An,Xn,zn,ri,li,Bn,xe)}roundClean(){le.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const un=Zt(()=>new Ce),It=BigInt(2**32-1),Ft=BigInt(32);function Rt(ft,St=!1){return St?{h:Number(ft&It),l:Number(ft>>Ft&It)}:{h:0|Number(ft>>Ft&It),l:0|Number(ft&It)}}const En_split=function kn(ft,St=!1){let ln=new Uint32Array(ft.length),yn=new Uint32Array(ft.length);for(let An=0;Anft>>>ln,En_shrSL=(ft,St,ln)=>ft<<32-ln|St>>>ln,En_rotrSH=(ft,St,ln)=>ft>>>ln|St<<32-ln,En_rotrSL=(ft,St,ln)=>ft<<32-ln|St>>>ln,En_rotrBH=(ft,St,ln)=>ft<<64-ln|St>>>ln-32,En_rotrBL=(ft,St,ln)=>ft>>>ln-32|St<<64-ln,En_add=function et(ft,St,ln,yn){const An=(St>>>0)+(yn>>>0);return{h:ft+ln+(An/2**32|0)|0,l:0|An}},En_add3L=(ft,St,ln)=>(ft>>>0)+(St>>>0)+(ln>>>0),En_add3H=(ft,St,ln,yn)=>St+ln+yn+(ft/2**32|0)|0,En_add4L=(ft,St,ln,yn)=>(ft>>>0)+(St>>>0)+(ln>>>0)+(yn>>>0),En_add4H=(ft,St,ln,yn,An)=>St+ln+yn+An+(ft/2**32|0)|0,En_add5H=(ft,St,ln,yn,An,Xn)=>St+ln+yn+An+Xn+(ft/2**32|0)|0,En_add5L=(ft,St,ln,yn,An)=>(ft>>>0)+(St>>>0)+(ln>>>0)+(yn>>>0)+(An>>>0),[He,Be]=En_split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(ft=>BigInt(ft))),ye=new Uint32Array(80),Ke=new Uint32Array(80);class zt extends Xe{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:St,Al:ln,Bh:yn,Bl:An,Ch:Xn,Cl:zn,Dh:ri,Dl:li,Eh:Bn,El:xe,Fh:Ye,Fl:Ge,Gh:W,Gl:Te,Hh:se,Hl:$e}=this;return[St,ln,yn,An,Xn,zn,ri,li,Bn,xe,Ye,Ge,W,Te,se,$e]}set(St,ln,yn,An,Xn,zn,ri,li,Bn,xe,Ye,Ge,W,Te,se,$e){this.Ah=0|St,this.Al=0|ln,this.Bh=0|yn,this.Bl=0|An,this.Ch=0|Xn,this.Cl=0|zn,this.Dh=0|ri,this.Dl=0|li,this.Eh=0|Bn,this.El=0|xe,this.Fh=0|Ye,this.Fl=0|Ge,this.Gh=0|W,this.Gl=0|Te,this.Hh=0|se,this.Hl=0|$e}process(St,ln){for(let jt=0;jt<16;jt++,ln+=4)ye[jt]=St.getUint32(ln),Ke[jt]=St.getUint32(ln+=4);for(let jt=16;jt<80;jt++){const hn=0|ye[jt-15],fn=0|Ke[jt-15],wn=En_rotrSH(hn,fn,1)^En_rotrSH(hn,fn,8)^En_shrSH(hn,fn,7),Dn=En_rotrSL(hn,fn,1)^En_rotrSL(hn,fn,8)^En_shrSL(hn,fn,7),jn=0|ye[jt-2],$n=0|Ke[jt-2],ci=En_rotrSH(jn,$n,19)^En_rotrBH(jn,$n,61)^En_shrSH(jn,$n,6),ki=En_rotrSL(jn,$n,19)^En_rotrBL(jn,$n,61)^En_shrSL(jn,$n,6),ei=En_add4L(Dn,ki,Ke[jt-7],Ke[jt-16]),Gn=En_add4H(ei,wn,ci,ye[jt-7],ye[jt-16]);ye[jt]=0|Gn,Ke[jt]=0|ei}let{Ah:yn,Al:An,Bh:Xn,Bl:zn,Ch:ri,Cl:li,Dh:Bn,Dl:xe,Eh:Ye,El:Ge,Fh:W,Fl:Te,Gh:se,Gl:$e,Hh:pt,Hl:lt}=this;for(let jt=0;jt<80;jt++){const hn=En_rotrSH(Ye,Ge,14)^En_rotrSH(Ye,Ge,18)^En_rotrBH(Ye,Ge,41),fn=En_rotrSL(Ye,Ge,14)^En_rotrSL(Ye,Ge,18)^En_rotrBL(Ye,Ge,41),wn=Ye&W^~Ye&se,jn=En_add5L(lt,fn,Ge&Te^~Ge&$e,Be[jt],Ke[jt]),$n=En_add5H(jn,pt,hn,wn,He[jt],ye[jt]),ci=0|jn,ki=En_rotrSH(yn,An,28)^En_rotrBH(yn,An,34)^En_rotrBH(yn,An,39),ei=En_rotrSL(yn,An,28)^En_rotrBL(yn,An,34)^En_rotrBL(yn,An,39),Gn=yn&Xn^yn&ri^Xn&ri,Rr=An&zn^An&li^zn&li;pt=0|se,lt=0|$e,se=0|W,$e=0|Te,W=0|Ye,Te=0|Ge,({h:Ye,l:Ge}=En_add(0|Bn,0|xe,0|$n,0|ci)),Bn=0|ri,xe=0|li,ri=0|Xn,li=0|zn,Xn=0|yn,zn=0|An;const uo=En_add3L(ci,ei,Rr);yn=En_add3H(uo,$n,ki,Gn),An=0|uo}({h:yn,l:An}=En_add(0|this.Ah,0|this.Al,0|yn,0|An)),({h:Xn,l:zn}=En_add(0|this.Bh,0|this.Bl,0|Xn,0|zn)),({h:ri,l:li}=En_add(0|this.Ch,0|this.Cl,0|ri,0|li)),({h:Bn,l:xe}=En_add(0|this.Dh,0|this.Dl,0|Bn,0|xe)),({h:Ye,l:Ge}=En_add(0|this.Eh,0|this.El,0|Ye,0|Ge)),({h:W,l:Te}=En_add(0|this.Fh,0|this.Fl,0|W,0|Te)),({h:se,l:$e}=En_add(0|this.Gh,0|this.Gl,0|se,0|$e)),({h:pt,l:lt}=En_add(0|this.Hh,0|this.Hl,0|pt,0|lt)),this.set(yn,An,Xn,zn,ri,li,Bn,xe,Ye,Ge,W,Te,se,$e,pt,lt)}roundClean(){ye.fill(0),Ke.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 nn=Zt(()=>new zt);var st=v(3813);const Qe=ft=>"\u3042\u3044\u3053\u304f\u3057\u3093"===ft[0];function Oe(ft){if("string"!=typeof ft)throw new TypeError("Invalid mnemonic type: "+typeof ft);return ft.normalize("NFKD")}function ct(ft){const St=Oe(ft),ln=St.split(" ");if(![12,15,18,21,24].includes(ln.length))throw new Error("Invalid mnemonic");return{nfkd:St,words:ln}}function Wt(ft){P.bytes(ft,16,20,24,28,32)}function rn(ft,St=128){if(P.number(St),St%32!=0||St>256)throw new TypeError("Invalid entropy");return function Ri(ft,St){return Wt(ft),yr(St).encode(ft).join(Qe(St)?"\u3000":" ")}(function _n(ft=32){if(B&&"function"==typeof B.getRandomValues)return B.getRandomValues(new Uint8Array(ft));throw new Error("crypto.getRandomValues must be defined")}(St/8),ft)}const ai=ft=>{const St=8-ft.length/4;return new Uint8Array([un(ft)[0]>>St<{if("string"!=typeof St)throw new Error(`Wordlist: non-string element: ${St}`)}),st.Wp.chain(st.Wp.checksum(1,ai),st.Wp.radix2(11,!0),st.Wp.alphabet(ft))}function Pr(ft,St){try{!function xr(ft,St){const{words:ln}=ct(ft),yn=yr(St).decode(ln);Wt(yn)}(ft,St)}catch{return!1}return!0}const wi=ft=>Oe(`mnemonic${ft}`);function Or(ft,St=""){return function Ie(ft,St,ln,yn){const{c:An,dkLen:Xn,DK:zn,PRF:ri,PRFSalt:li}=function Ae(ft,St,ln,yn){G(ft);const An=function Dt(ft,St){if(void 0!==St&&"[object Object]"!==vt.call(St))throw new Error("Options should be object or undefined");return Object.assign(ft,St)}({dkLen:32,asyncTick:10},yn),{c:Xn,dkLen:zn,asyncTick:ri}=An;if(u(Xn),u(zn),u(ri),Xn<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const li=Le(St),Bn=Le(ln),xe=new Uint8Array(zn),Ye=_e.create(ft,li),Ge=Ye._cloneInto().update(Bn);return{c:Xn,dkLen:zn,asyncTick:ri,DK:xe,PRF:Ye,PRFSalt:Ge}}(ft,St,ln,yn);let Bn;const xe=new Uint8Array(4),Ye=Ee(xe),Ge=new Uint8Array(ri.outputLen);for(let W=1,Te=0;Te{"use strict";v.d(Ne,{p:()=>u});const u="abandon\nability\nable\nabout\nabove\nabsent\nabsorb\nabstract\nabsurd\nabuse\naccess\naccident\naccount\naccuse\nachieve\nacid\nacoustic\nacquire\nacross\nact\naction\nactor\nactress\nactual\nadapt\nadd\naddict\naddress\nadjust\nadmit\nadult\nadvance\nadvice\naerobic\naffair\nafford\nafraid\nagain\nage\nagent\nagree\nahead\naim\nair\nairport\naisle\nalarm\nalbum\nalcohol\nalert\nalien\nall\nalley\nallow\nalmost\nalone\nalpha\nalready\nalso\nalter\nalways\namateur\namazing\namong\namount\namused\nanalyst\nanchor\nancient\nanger\nangle\nangry\nanimal\nankle\nannounce\nannual\nanother\nanswer\nantenna\nantique\nanxiety\nany\napart\napology\nappear\napple\napprove\napril\narch\narctic\narea\narena\nargue\narm\narmed\narmor\narmy\naround\narrange\narrest\narrive\narrow\nart\nartefact\nartist\nartwork\nask\naspect\nassault\nasset\nassist\nassume\nasthma\nathlete\natom\nattack\nattend\nattitude\nattract\nauction\naudit\naugust\naunt\nauthor\nauto\nautumn\naverage\navocado\navoid\nawake\naware\naway\nawesome\nawful\nawkward\naxis\nbaby\nbachelor\nbacon\nbadge\nbag\nbalance\nbalcony\nball\nbamboo\nbanana\nbanner\nbar\nbarely\nbargain\nbarrel\nbase\nbasic\nbasket\nbattle\nbeach\nbean\nbeauty\nbecause\nbecome\nbeef\nbefore\nbegin\nbehave\nbehind\nbelieve\nbelow\nbelt\nbench\nbenefit\nbest\nbetray\nbetter\nbetween\nbeyond\nbicycle\nbid\nbike\nbind\nbiology\nbird\nbirth\nbitter\nblack\nblade\nblame\nblanket\nblast\nbleak\nbless\nblind\nblood\nblossom\nblouse\nblue\nblur\nblush\nboard\nboat\nbody\nboil\nbomb\nbone\nbonus\nbook\nboost\nborder\nboring\nborrow\nboss\nbottom\nbounce\nbox\nboy\nbracket\nbrain\nbrand\nbrass\nbrave\nbread\nbreeze\nbrick\nbridge\nbrief\nbright\nbring\nbrisk\nbroccoli\nbroken\nbronze\nbroom\nbrother\nbrown\nbrush\nbubble\nbuddy\nbudget\nbuffalo\nbuild\nbulb\nbulk\nbullet\nbundle\nbunker\nburden\nburger\nburst\nbus\nbusiness\nbusy\nbutter\nbuyer\nbuzz\ncabbage\ncabin\ncable\ncactus\ncage\ncake\ncall\ncalm\ncamera\ncamp\ncan\ncanal\ncancel\ncandy\ncannon\ncanoe\ncanvas\ncanyon\ncapable\ncapital\ncaptain\ncar\ncarbon\ncard\ncargo\ncarpet\ncarry\ncart\ncase\ncash\ncasino\ncastle\ncasual\ncat\ncatalog\ncatch\ncategory\ncattle\ncaught\ncause\ncaution\ncave\nceiling\ncelery\ncement\ncensus\ncentury\ncereal\ncertain\nchair\nchalk\nchampion\nchange\nchaos\nchapter\ncharge\nchase\nchat\ncheap\ncheck\ncheese\nchef\ncherry\nchest\nchicken\nchief\nchild\nchimney\nchoice\nchoose\nchronic\nchuckle\nchunk\nchurn\ncigar\ncinnamon\ncircle\ncitizen\ncity\ncivil\nclaim\nclap\nclarify\nclaw\nclay\nclean\nclerk\nclever\nclick\nclient\ncliff\nclimb\nclinic\nclip\nclock\nclog\nclose\ncloth\ncloud\nclown\nclub\nclump\ncluster\nclutch\ncoach\ncoast\ncoconut\ncode\ncoffee\ncoil\ncoin\ncollect\ncolor\ncolumn\ncombine\ncome\ncomfort\ncomic\ncommon\ncompany\nconcert\nconduct\nconfirm\ncongress\nconnect\nconsider\ncontrol\nconvince\ncook\ncool\ncopper\ncopy\ncoral\ncore\ncorn\ncorrect\ncost\ncotton\ncouch\ncountry\ncouple\ncourse\ncousin\ncover\ncoyote\ncrack\ncradle\ncraft\ncram\ncrane\ncrash\ncrater\ncrawl\ncrazy\ncream\ncredit\ncreek\ncrew\ncricket\ncrime\ncrisp\ncritic\ncrop\ncross\ncrouch\ncrowd\ncrucial\ncruel\ncruise\ncrumble\ncrunch\ncrush\ncry\ncrystal\ncube\nculture\ncup\ncupboard\ncurious\ncurrent\ncurtain\ncurve\ncushion\ncustom\ncute\ncycle\ndad\ndamage\ndamp\ndance\ndanger\ndaring\ndash\ndaughter\ndawn\nday\ndeal\ndebate\ndebris\ndecade\ndecember\ndecide\ndecline\ndecorate\ndecrease\ndeer\ndefense\ndefine\ndefy\ndegree\ndelay\ndeliver\ndemand\ndemise\ndenial\ndentist\ndeny\ndepart\ndepend\ndeposit\ndepth\ndeputy\nderive\ndescribe\ndesert\ndesign\ndesk\ndespair\ndestroy\ndetail\ndetect\ndevelop\ndevice\ndevote\ndiagram\ndial\ndiamond\ndiary\ndice\ndiesel\ndiet\ndiffer\ndigital\ndignity\ndilemma\ndinner\ndinosaur\ndirect\ndirt\ndisagree\ndiscover\ndisease\ndish\ndismiss\ndisorder\ndisplay\ndistance\ndivert\ndivide\ndivorce\ndizzy\ndoctor\ndocument\ndog\ndoll\ndolphin\ndomain\ndonate\ndonkey\ndonor\ndoor\ndose\ndouble\ndove\ndraft\ndragon\ndrama\ndrastic\ndraw\ndream\ndress\ndrift\ndrill\ndrink\ndrip\ndrive\ndrop\ndrum\ndry\nduck\ndumb\ndune\nduring\ndust\ndutch\nduty\ndwarf\ndynamic\neager\neagle\nearly\nearn\nearth\neasily\neast\neasy\necho\necology\neconomy\nedge\nedit\neducate\neffort\negg\neight\neither\nelbow\nelder\nelectric\nelegant\nelement\nelephant\nelevator\nelite\nelse\nembark\nembody\nembrace\nemerge\nemotion\nemploy\nempower\nempty\nenable\nenact\nend\nendless\nendorse\nenemy\nenergy\nenforce\nengage\nengine\nenhance\nenjoy\nenlist\nenough\nenrich\nenroll\nensure\nenter\nentire\nentry\nenvelope\nepisode\nequal\nequip\nera\nerase\nerode\nerosion\nerror\nerupt\nescape\nessay\nessence\nestate\neternal\nethics\nevidence\nevil\nevoke\nevolve\nexact\nexample\nexcess\nexchange\nexcite\nexclude\nexcuse\nexecute\nexercise\nexhaust\nexhibit\nexile\nexist\nexit\nexotic\nexpand\nexpect\nexpire\nexplain\nexpose\nexpress\nextend\nextra\neye\neyebrow\nfabric\nface\nfaculty\nfade\nfaint\nfaith\nfall\nfalse\nfame\nfamily\nfamous\nfan\nfancy\nfantasy\nfarm\nfashion\nfat\nfatal\nfather\nfatigue\nfault\nfavorite\nfeature\nfebruary\nfederal\nfee\nfeed\nfeel\nfemale\nfence\nfestival\nfetch\nfever\nfew\nfiber\nfiction\nfield\nfigure\nfile\nfilm\nfilter\nfinal\nfind\nfine\nfinger\nfinish\nfire\nfirm\nfirst\nfiscal\nfish\nfit\nfitness\nfix\nflag\nflame\nflash\nflat\nflavor\nflee\nflight\nflip\nfloat\nflock\nfloor\nflower\nfluid\nflush\nfly\nfoam\nfocus\nfog\nfoil\nfold\nfollow\nfood\nfoot\nforce\nforest\nforget\nfork\nfortune\nforum\nforward\nfossil\nfoster\nfound\nfox\nfragile\nframe\nfrequent\nfresh\nfriend\nfringe\nfrog\nfront\nfrost\nfrown\nfrozen\nfruit\nfuel\nfun\nfunny\nfurnace\nfury\nfuture\ngadget\ngain\ngalaxy\ngallery\ngame\ngap\ngarage\ngarbage\ngarden\ngarlic\ngarment\ngas\ngasp\ngate\ngather\ngauge\ngaze\ngeneral\ngenius\ngenre\ngentle\ngenuine\ngesture\nghost\ngiant\ngift\ngiggle\nginger\ngiraffe\ngirl\ngive\nglad\nglance\nglare\nglass\nglide\nglimpse\nglobe\ngloom\nglory\nglove\nglow\nglue\ngoat\ngoddess\ngold\ngood\ngoose\ngorilla\ngospel\ngossip\ngovern\ngown\ngrab\ngrace\ngrain\ngrant\ngrape\ngrass\ngravity\ngreat\ngreen\ngrid\ngrief\ngrit\ngrocery\ngroup\ngrow\ngrunt\nguard\nguess\nguide\nguilt\nguitar\ngun\ngym\nhabit\nhair\nhalf\nhammer\nhamster\nhand\nhappy\nharbor\nhard\nharsh\nharvest\nhat\nhave\nhawk\nhazard\nhead\nhealth\nheart\nheavy\nhedgehog\nheight\nhello\nhelmet\nhelp\nhen\nhero\nhidden\nhigh\nhill\nhint\nhip\nhire\nhistory\nhobby\nhockey\nhold\nhole\nholiday\nhollow\nhome\nhoney\nhood\nhope\nhorn\nhorror\nhorse\nhospital\nhost\nhotel\nhour\nhover\nhub\nhuge\nhuman\nhumble\nhumor\nhundred\nhungry\nhunt\nhurdle\nhurry\nhurt\nhusband\nhybrid\nice\nicon\nidea\nidentify\nidle\nignore\nill\nillegal\nillness\nimage\nimitate\nimmense\nimmune\nimpact\nimpose\nimprove\nimpulse\ninch\ninclude\nincome\nincrease\nindex\nindicate\nindoor\nindustry\ninfant\ninflict\ninform\ninhale\ninherit\ninitial\ninject\ninjury\ninmate\ninner\ninnocent\ninput\ninquiry\ninsane\ninsect\ninside\ninspire\ninstall\nintact\ninterest\ninto\ninvest\ninvite\ninvolve\niron\nisland\nisolate\nissue\nitem\nivory\njacket\njaguar\njar\njazz\njealous\njeans\njelly\njewel\njob\njoin\njoke\njourney\njoy\njudge\njuice\njump\njungle\njunior\njunk\njust\nkangaroo\nkeen\nkeep\nketchup\nkey\nkick\nkid\nkidney\nkind\nkingdom\nkiss\nkit\nkitchen\nkite\nkitten\nkiwi\nknee\nknife\nknock\nknow\nlab\nlabel\nlabor\nladder\nlady\nlake\nlamp\nlanguage\nlaptop\nlarge\nlater\nlatin\nlaugh\nlaundry\nlava\nlaw\nlawn\nlawsuit\nlayer\nlazy\nleader\nleaf\nlearn\nleave\nlecture\nleft\nleg\nlegal\nlegend\nleisure\nlemon\nlend\nlength\nlens\nleopard\nlesson\nletter\nlevel\nliar\nliberty\nlibrary\nlicense\nlife\nlift\nlight\nlike\nlimb\nlimit\nlink\nlion\nliquid\nlist\nlittle\nlive\nlizard\nload\nloan\nlobster\nlocal\nlock\nlogic\nlonely\nlong\nloop\nlottery\nloud\nlounge\nlove\nloyal\nlucky\nluggage\nlumber\nlunar\nlunch\nluxury\nlyrics\nmachine\nmad\nmagic\nmagnet\nmaid\nmail\nmain\nmajor\nmake\nmammal\nman\nmanage\nmandate\nmango\nmansion\nmanual\nmaple\nmarble\nmarch\nmargin\nmarine\nmarket\nmarriage\nmask\nmass\nmaster\nmatch\nmaterial\nmath\nmatrix\nmatter\nmaximum\nmaze\nmeadow\nmean\nmeasure\nmeat\nmechanic\nmedal\nmedia\nmelody\nmelt\nmember\nmemory\nmention\nmenu\nmercy\nmerge\nmerit\nmerry\nmesh\nmessage\nmetal\nmethod\nmiddle\nmidnight\nmilk\nmillion\nmimic\nmind\nminimum\nminor\nminute\nmiracle\nmirror\nmisery\nmiss\nmistake\nmix\nmixed\nmixture\nmobile\nmodel\nmodify\nmom\nmoment\nmonitor\nmonkey\nmonster\nmonth\nmoon\nmoral\nmore\nmorning\nmosquito\nmother\nmotion\nmotor\nmountain\nmouse\nmove\nmovie\nmuch\nmuffin\nmule\nmultiply\nmuscle\nmuseum\nmushroom\nmusic\nmust\nmutual\nmyself\nmystery\nmyth\nnaive\nname\nnapkin\nnarrow\nnasty\nnation\nnature\nnear\nneck\nneed\nnegative\nneglect\nneither\nnephew\nnerve\nnest\nnet\nnetwork\nneutral\nnever\nnews\nnext\nnice\nnight\nnoble\nnoise\nnominee\nnoodle\nnormal\nnorth\nnose\nnotable\nnote\nnothing\nnotice\nnovel\nnow\nnuclear\nnumber\nnurse\nnut\noak\nobey\nobject\noblige\nobscure\nobserve\nobtain\nobvious\noccur\nocean\noctober\nodor\noff\noffer\noffice\noften\noil\nokay\nold\nolive\nolympic\nomit\nonce\none\nonion\nonline\nonly\nopen\nopera\nopinion\noppose\noption\norange\norbit\norchard\norder\nordinary\norgan\norient\noriginal\norphan\nostrich\nother\noutdoor\nouter\noutput\noutside\noval\noven\nover\nown\nowner\noxygen\noyster\nozone\npact\npaddle\npage\npair\npalace\npalm\npanda\npanel\npanic\npanther\npaper\nparade\nparent\npark\nparrot\nparty\npass\npatch\npath\npatient\npatrol\npattern\npause\npave\npayment\npeace\npeanut\npear\npeasant\npelican\npen\npenalty\npencil\npeople\npepper\nperfect\npermit\nperson\npet\nphone\nphoto\nphrase\nphysical\npiano\npicnic\npicture\npiece\npig\npigeon\npill\npilot\npink\npioneer\npipe\npistol\npitch\npizza\nplace\nplanet\nplastic\nplate\nplay\nplease\npledge\npluck\nplug\nplunge\npoem\npoet\npoint\npolar\npole\npolice\npond\npony\npool\npopular\nportion\nposition\npossible\npost\npotato\npottery\npoverty\npowder\npower\npractice\npraise\npredict\nprefer\nprepare\npresent\npretty\nprevent\nprice\npride\nprimary\nprint\npriority\nprison\nprivate\nprize\nproblem\nprocess\nproduce\nprofit\nprogram\nproject\npromote\nproof\nproperty\nprosper\nprotect\nproud\nprovide\npublic\npudding\npull\npulp\npulse\npumpkin\npunch\npupil\npuppy\npurchase\npurity\npurpose\npurse\npush\nput\npuzzle\npyramid\nquality\nquantum\nquarter\nquestion\nquick\nquit\nquiz\nquote\nrabbit\nraccoon\nrace\nrack\nradar\nradio\nrail\nrain\nraise\nrally\nramp\nranch\nrandom\nrange\nrapid\nrare\nrate\nrather\nraven\nraw\nrazor\nready\nreal\nreason\nrebel\nrebuild\nrecall\nreceive\nrecipe\nrecord\nrecycle\nreduce\nreflect\nreform\nrefuse\nregion\nregret\nregular\nreject\nrelax\nrelease\nrelief\nrely\nremain\nremember\nremind\nremove\nrender\nrenew\nrent\nreopen\nrepair\nrepeat\nreplace\nreport\nrequire\nrescue\nresemble\nresist\nresource\nresponse\nresult\nretire\nretreat\nreturn\nreunion\nreveal\nreview\nreward\nrhythm\nrib\nribbon\nrice\nrich\nride\nridge\nrifle\nright\nrigid\nring\nriot\nripple\nrisk\nritual\nrival\nriver\nroad\nroast\nrobot\nrobust\nrocket\nromance\nroof\nrookie\nroom\nrose\nrotate\nrough\nround\nroute\nroyal\nrubber\nrude\nrug\nrule\nrun\nrunway\nrural\nsad\nsaddle\nsadness\nsafe\nsail\nsalad\nsalmon\nsalon\nsalt\nsalute\nsame\nsample\nsand\nsatisfy\nsatoshi\nsauce\nsausage\nsave\nsay\nscale\nscan\nscare\nscatter\nscene\nscheme\nschool\nscience\nscissors\nscorpion\nscout\nscrap\nscreen\nscript\nscrub\nsea\nsearch\nseason\nseat\nsecond\nsecret\nsection\nsecurity\nseed\nseek\nsegment\nselect\nsell\nseminar\nsenior\nsense\nsentence\nseries\nservice\nsession\nsettle\nsetup\nseven\nshadow\nshaft\nshallow\nshare\nshed\nshell\nsheriff\nshield\nshift\nshine\nship\nshiver\nshock\nshoe\nshoot\nshop\nshort\nshoulder\nshove\nshrimp\nshrug\nshuffle\nshy\nsibling\nsick\nside\nsiege\nsight\nsign\nsilent\nsilk\nsilly\nsilver\nsimilar\nsimple\nsince\nsing\nsiren\nsister\nsituate\nsix\nsize\nskate\nsketch\nski\nskill\nskin\nskirt\nskull\nslab\nslam\nsleep\nslender\nslice\nslide\nslight\nslim\nslogan\nslot\nslow\nslush\nsmall\nsmart\nsmile\nsmoke\nsmooth\nsnack\nsnake\nsnap\nsniff\nsnow\nsoap\nsoccer\nsocial\nsock\nsoda\nsoft\nsolar\nsoldier\nsolid\nsolution\nsolve\nsomeone\nsong\nsoon\nsorry\nsort\nsoul\nsound\nsoup\nsource\nsouth\nspace\nspare\nspatial\nspawn\nspeak\nspecial\nspeed\nspell\nspend\nsphere\nspice\nspider\nspike\nspin\nspirit\nsplit\nspoil\nsponsor\nspoon\nsport\nspot\nspray\nspread\nspring\nspy\nsquare\nsqueeze\nsquirrel\nstable\nstadium\nstaff\nstage\nstairs\nstamp\nstand\nstart\nstate\nstay\nsteak\nsteel\nstem\nstep\nstereo\nstick\nstill\nsting\nstock\nstomach\nstone\nstool\nstory\nstove\nstrategy\nstreet\nstrike\nstrong\nstruggle\nstudent\nstuff\nstumble\nstyle\nsubject\nsubmit\nsubway\nsuccess\nsuch\nsudden\nsuffer\nsugar\nsuggest\nsuit\nsummer\nsun\nsunny\nsunset\nsuper\nsupply\nsupreme\nsure\nsurface\nsurge\nsurprise\nsurround\nsurvey\nsuspect\nsustain\nswallow\nswamp\nswap\nswarm\nswear\nsweet\nswift\nswim\nswing\nswitch\nsword\nsymbol\nsymptom\nsyrup\nsystem\ntable\ntackle\ntag\ntail\ntalent\ntalk\ntank\ntape\ntarget\ntask\ntaste\ntattoo\ntaxi\nteach\nteam\ntell\nten\ntenant\ntennis\ntent\nterm\ntest\ntext\nthank\nthat\ntheme\nthen\ntheory\nthere\nthey\nthing\nthis\nthought\nthree\nthrive\nthrow\nthumb\nthunder\nticket\ntide\ntiger\ntilt\ntimber\ntime\ntiny\ntip\ntired\ntissue\ntitle\ntoast\ntobacco\ntoday\ntoddler\ntoe\ntogether\ntoilet\ntoken\ntomato\ntomorrow\ntone\ntongue\ntonight\ntool\ntooth\ntop\ntopic\ntopple\ntorch\ntornado\ntortoise\ntoss\ntotal\ntourist\ntoward\ntower\ntown\ntoy\ntrack\ntrade\ntraffic\ntragic\ntrain\ntransfer\ntrap\ntrash\ntravel\ntray\ntreat\ntree\ntrend\ntrial\ntribe\ntrick\ntrigger\ntrim\ntrip\ntrophy\ntrouble\ntruck\ntrue\ntruly\ntrumpet\ntrust\ntruth\ntry\ntube\ntuition\ntumble\ntuna\ntunnel\nturkey\nturn\nturtle\ntwelve\ntwenty\ntwice\ntwin\ntwist\ntwo\ntype\ntypical\nugly\numbrella\nunable\nunaware\nuncle\nuncover\nunder\nundo\nunfair\nunfold\nunhappy\nuniform\nunique\nunit\nuniverse\nunknown\nunlock\nuntil\nunusual\nunveil\nupdate\nupgrade\nuphold\nupon\nupper\nupset\nurban\nurge\nusage\nuse\nused\nuseful\nuseless\nusual\nutility\nvacant\nvacuum\nvague\nvalid\nvalley\nvalve\nvan\nvanish\nvapor\nvarious\nvast\nvault\nvehicle\nvelvet\nvendor\nventure\nvenue\nverb\nverify\nversion\nvery\nvessel\nveteran\nviable\nvibrant\nvicious\nvictory\nvideo\nview\nvillage\nvintage\nviolin\nvirtual\nvirus\nvisa\nvisit\nvisual\nvital\nvivid\nvocal\nvoice\nvoid\nvolcano\nvolume\nvote\nvoyage\nwage\nwagon\nwait\nwalk\nwall\nwalnut\nwant\nwarfare\nwarm\nwarrior\nwash\nwasp\nwaste\nwater\nwave\nway\nwealth\nweapon\nwear\nweasel\nweather\nweb\nwedding\nweekend\nweird\nwelcome\nwest\nwet\nwhale\nwhat\nwheat\nwheel\nwhen\nwhere\nwhip\nwhisper\nwide\nwidth\nwife\nwild\nwill\nwin\nwindow\nwine\nwing\nwink\nwinner\nwinter\nwire\nwisdom\nwise\nwish\nwitness\nwolf\nwoman\nwonder\nwood\nwool\nword\nwork\nworld\nworry\nworth\nwrap\nwreck\nwrestle\nwrist\nwrite\nwrong\nyard\nyear\nyellow\nyou\nyoung\nyouth\nzebra\nzero\nzone\nzoo".split("\n")},6568:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>L});var u=v(4713),y=v(1860);const L=(0,u.A)(y.A,"Map")},7730:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>ce});var o=v(1319);const G=function L(he,et){for(var $t=he.length;$t--;)if((0,o.A)(he[$t][0],et))return $t;return-1};var oe=Array.prototype.splice;function ke(he){var et=-1,$t=null==he?0:he.length;for(this.clear();++et<$t;){var Bt=he[et];this.set(Bt[0],Bt[1])}}ke.prototype.clear=function u(){this.__data__=[],this.size=0},ke.prototype.delete=function V(he){var et=this.__data__,$t=G(et,he);return!($t<0||($t==et.length-1?et.pop():oe.call(et,$t,1),--this.size,0))},ke.prototype.get=function B(he){var et=this.__data__,$t=G(et,he);return $t<0?void 0:et[$t][1]},ke.prototype.has=function ue(he){return G(this.__data__,he)>-1},ke.prototype.set=function Ee(he,et){var $t=this.__data__,Bt=G($t,he);return Bt<0?(++this.size,$t.push([he,et])):$t[Bt][1]=et,this};const te=ke;var Le=v(6568);const vt=(0,v(4713).A)(Object,"create");var _e=Object.prototype.hasOwnProperty;var Ot=Object.prototype.hasOwnProperty;function ie(he){var et=-1,$t=null==he?0:he.length;for(this.clear();++et<$t;){var Bt=he[et];this.set(Bt[0],Bt[1])}}ie.prototype.clear=function Dt(){this.__data__=vt?vt(null):{},this.size=0},ie.prototype.delete=function Fn(he){var et=this.has(he)&&delete this.__data__[he];return this.size-=et?1:0,et},ie.prototype.get=function Ae(he){var et=this.__data__;if(vt){var $t=et[he];return"__lodash_hash_undefined__"===$t?void 0:$t}return _e.call(et,he)?et[he]:void 0},ie.prototype.has=function Pe(he){var et=this.__data__;return vt?void 0!==et[he]:Ot.call(et,he)},ie.prototype.set=function Je(he,et){var $t=this.__data__;return this.size+=this.has(he)?0:1,$t[he]=vt&&void 0===et?"__lodash_hash_undefined__":et,this};const ve=ie,It=function it(he,et){var $t=he.__data__;return function dt(he){var et=typeof he;return"string"==et||"number"==et||"symbol"==et||"boolean"==et?"__proto__"!==he:null===he}(et)?$t["string"==typeof et?"string":"hash"]:$t.map};function bt(he){var et=-1,$t=null==he?0:he.length;for(this.clear();++et<$t;){var Bt=he[et];this.set(Bt[0],Bt[1])}}bt.prototype.clear=function le(){this.size=0,this.__data__={hash:new ve,map:new(Le.A||te),string:new ve}},bt.prototype.delete=function Ft(he){var et=It(this,he).delete(he);return this.size-=et?1:0,et},bt.prototype.get=function kn(he){return It(this,he).get(he)},bt.prototype.has=function qt(he){return It(this,he).has(he)},bt.prototype.set=function tt(he,et){var $t=It(this,he),Bt=$t.size;return $t.set(he,et),this.size+=$t.size==Bt?0:1,this};const on=bt;function $(he){var et=this.__data__=new te(he);this.size=et.size}$.prototype.clear=function be(){this.__data__=new te,this.size=0},$.prototype.delete=function gt(he){var et=this.__data__,$t=et.delete(he);return this.size=et.size,$t},$.prototype.get=function qe(he){return this.__data__.get(he)},$.prototype.has=function ae(he){return this.__data__.has(he)},$.prototype.set=function T(he,et){var $t=this.__data__;if($t instanceof te){var Bt=$t.__data__;if(!Le.A||Bt.length<199)return Bt.push([he,et]),this.size=++$t.size,this;$t=this.__data__=new on(Bt)}return $t.set(he,et),this.size=$t.size,this};const ce=$},6944:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>o});const o=v(1860).A.Symbol},6726:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>F});var o=v(6513),L=v(3744),G=v(9377),ee=v(8606),oe=v(8885),P=Object.prototype.hasOwnProperty;const F=function B(ue,ge){var Ee=(0,L.A)(ue),Re=!Ee&&(0,o.A)(ue),ke=!Ee&&!Re&&(0,G.A)(ue),te=!Ee&&!Re&&!ke&&(0,oe.A)(ue),be=Ee||Re||ke||te,Ze=be?function u(ue,ge){for(var Ee=-1,Re=Array(ue);++Ee{"use strict";v.d(Ne,{A:()=>ee});var u=v(1827),y=v(1319),L=Object.prototype.hasOwnProperty;const ee=function G(oe,V,P){var B=oe[V];(!L.call(oe,V)||!(0,y.A)(B,P)||void 0===P&&!(V in oe))&&(0,u.A)(oe,V,P)}},1827:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>o});var u=v(4746);const o=function y(L,G,ee){"__proto__"==G&&u.A?(0,u.A)(L,G,{configurable:!0,enumerable:!0,value:ee,writable:!0}):L[G]=ee}},5281:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>ke});var u=v(6944),y=Object.prototype,o=y.hasOwnProperty,L=y.toString,G=u.A?u.A.toStringTag:void 0;var P=Object.prototype.toString;var Ee=u.A?u.A.toStringTag:void 0;const ke=function Re(te){return null==te?void 0===te?"[object Undefined]":"[object Null]":Ee&&Ee in Object(te)?function ee(te){var be=o.call(te,G),Ze=te[G];try{te[G]=void 0;var gt=!0}catch{}var je=L.call(te);return gt&&(be?te[G]=Ze:delete te[G]),je}(te):function B(te){return P.call(te)}(te)}},778:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=function u(o){return function(L){return o(L)}}},9750:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>G});const o=v(1860).A.Uint8Array,G=function L(ee){var oe=new ee.constructor(ee.byteLength);return new o(oe).set(new o(ee)),oe}},9933:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>V});var u=v(1860),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=y&&"object"==typeof module&&module&&!module.nodeType&&module,G=o&&o.exports===y?u.A.Buffer:void 0,ee=G?G.allocUnsafe:void 0;const V=function oe(P,B){if(B)return P.slice();var F=P.length,ue=ee?ee(F):new P.constructor(F);return P.copy(ue),ue}},4314:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>o});var u=v(9750);const o=function y(L,G){var ee=G?(0,u.A)(L.buffer):L.buffer;return new L.constructor(ee,L.byteOffset,L.length)}},4528:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=function u(o,L){var G=-1,ee=o.length;for(L||(L=Array(ee));++G{"use strict";v.d(Ne,{A:()=>L});var u=v(1984),y=v(1827);const L=function o(G,ee,oe,V){var P=!oe;oe||(oe={});for(var B=-1,F=ee.length;++B{"use strict";v.d(Ne,{A:()=>o});var u=v(4713);const o=function(){try{var L=(0,u.A)(Object,"defineProperty");return L({},"",{}),L}catch{}}()},7133:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y="object"==typeof global&&global&&global.Object===Object&&global},4713:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>qe});var We,u=v(129),o=v(1860).A["__core-js_shared__"],G=(We=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+We:"";var V=v(554),P=v(8736),F=/^\[object .+?Constructor\]$/,ke=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const be=function te(We){return!(!(0,V.A)(We)||function ee(We){return!!G&&G in We}(We))&&((0,u.A)(We)?ke:F).test((0,P.A)(We))},qe=function je(We,ae){var me=function Ze(We,ae){return We?.[ae]}(We,ae);return be(me)?me:void 0}},8010:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>o});const o=(0,v(8992).A)(Object.getPrototypeOf,Object)},923:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>V});var u=v(554),y=Object.create;const L=function(){function P(){}return function(B){if(!(0,u.A)(B))return{};if(y)return y(B);P.prototype=B;var F=new P;return P.prototype=void 0,F}}();var G=v(8010),ee=v(5776);const V=function oe(P){return"function"!=typeof P.constructor||(0,ee.A)(P)?{}:L((0,G.A)(P))}},8606:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>L});var y=/^(?:0|[1-9]\d*)$/;const L=function o(G,ee){var oe=typeof G;return!!(ee=ee??9007199254740991)&&("number"==oe||"symbol"!=oe&&y.test(G))&&G>-1&&G%1==0&&G{"use strict";v.d(Ne,{A:()=>o});var u=Object.prototype;const o=function y(L){var G=L&&L.constructor;return L===("function"==typeof G&&G.prototype||u)}},3340:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>oe});var u=v(7133),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=y&&"object"==typeof module&&module&&!module.nodeType&&module,G=o&&o.exports===y&&u.A.process;const oe=function(){try{return o&&o.require&&o.require("util").types||G&&G.binding&&G.binding("util")}catch{}}()},8992:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=function u(o,L){return function(G){return o(L(G))}}},1860:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>L});var u=v(7133),y="object"==typeof self&&self&&self.Object===Object&&self;const L=u.A||y||Function("return this")()},8736:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>L});var y=Function.prototype.toString;const L=function o(G){if(null!=G){try{return y.call(G)}catch{}try{return G+""}catch{}}return""}},1319:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=function u(o,L){return o===L||o!=o&&L!=L}},7680:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=function u(o){for(var L=-1,G=null==o?0:o.length,ee={};++L{"use strict";v.d(Ne,{A:()=>B});var u=v(5281),y=v(2661);const G=function L(F){return(0,y.A)(F)&&"[object Arguments]"==(0,u.A)(F)};var ee=Object.prototype,oe=ee.hasOwnProperty,V=ee.propertyIsEnumerable;const B=G(function(){return arguments}())?G:function(F){return(0,y.A)(F)&&oe.call(F,"callee")&&!V.call(F,"callee")}},3744:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=Array.isArray},1287:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>L});var u=v(129),y=v(5481);const L=function o(G){return null!=G&&(0,y.A)(G.length)&&!(0,u.A)(G)}},9377:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>B});var u=v(1860),L="object"==typeof exports&&exports&&!exports.nodeType&&exports,G=L&&"object"==typeof module&&module&&!module.nodeType&&module,oe=G&&G.exports===L?u.A.Buffer:void 0;const B=(oe?oe.isBuffer:void 0)||function y(){return!1}},129:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>V});var u=v(5281),y=v(554);const V=function oe(P){if(!(0,y.A)(P))return!1;var B=(0,u.A)(P);return"[object Function]"==B||"[object GeneratorFunction]"==B||"[object AsyncFunction]"==B||"[object Proxy]"==B}},5481:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>o});const o=function y(L){return"number"==typeof L&&L>-1&&L%1==0&&L<=9007199254740991}},554:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=function u(o){var L=typeof o;return null!=o&&("object"==L||"function"==L)}},2661:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>y});const y=function u(o){return null!=o&&"object"==typeof o}},8885:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>pi});var u=v(5281),y=v(5481),o=v(2661),At={};At["[object Float32Array]"]=At["[object Float64Array]"]=At["[object Int8Array]"]=At["[object Int16Array]"]=At["[object Int32Array]"]=At["[object Uint8Array]"]=At["[object Uint8ClampedArray]"]=At["[object Uint16Array]"]=At["[object Uint32Array]"]=!0,At["[object Arguments]"]=At["[object Array]"]=At["[object ArrayBuffer]"]=At["[object Boolean]"]=At["[object DataView]"]=At["[object Date]"]=At["[object Error]"]=At["[object Function]"]=At["[object Map]"]=At["[object Number]"]=At["[object Object]"]=At["[object RegExp]"]=At["[object Set]"]=At["[object String]"]=At["[object WeakMap]"]=!1;var Zt=v(778),Fn=v(3340),Vn=Fn.A&&Fn.A.isTypedArray;const pi=Vn?(0,Zt.A)(Vn):function vt(_e){return(0,o.A)(_e)&&(0,y.A)(_e.length)&&!!At[(0,u.A)(_e)]}},133:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>ue});var u=v(6726),y=v(554),o=v(5776);var oe=Object.prototype.hasOwnProperty;const P=function V(ge){if(!(0,y.A)(ge))return function L(ge){var Ee=[];if(null!=ge)for(var Re in Object(ge))Ee.push(Re);return Ee}(ge);var Ee=(0,o.A)(ge),Re=[];for(var ke in ge)"constructor"==ke&&(Ee||!oe.call(ge,ke))||Re.push(ke);return Re};var B=v(1287);const ue=function F(ge){return(0,B.A)(ge)?(0,u.A)(ge,!0):P(ge)}},2401:(tn,Ne,v)=>{"use strict";v.d(Ne,{A:()=>$t});var u=v(7730),y=v(1827),o=v(1319);const G=function L(Bt,Vt,Mn){(void 0!==Mn&&!(0,o.A)(Bt[Vt],Mn)||void 0===Mn&&!(Vt in Bt))&&(0,y.A)(Bt,Vt,Mn)},P=function ee(Bt){return function(Vt,Mn,Ln){for(var Ei=-1,Jt=Object(Vt),En=Ln(Vt),He=En.length;He--;){var Be=En[Bt?He:++Ei];if(!1===Mn(Jt[Be],Be,Jt))break}return Vt}}();var B=v(9933),F=v(4314),ue=v(4528),ge=v(923),Ee=v(6513),Re=v(3744),ke=v(1287),te=v(2661);var gt=v(9377),je=v(129),qe=v(554),We=v(5281),ae=v(8010),At=Function.prototype.toString,vt=Object.prototype.hasOwnProperty,Dt=At.call(Object);var Vn=v(8885);const pi=function _n(Bt,Vt){if(("constructor"!==Vt||"function"!=typeof Bt[Vt])&&"__proto__"!=Vt)return Bt[Vt]};var _e=v(7517),Ae=v(133);const Pe=function Ot(Bt,Vt,Mn,Ln,Ei,Jt,En){var He=pi(Bt,Mn),Be=pi(Vt,Mn),ye=En.get(Be);if(ye)G(Bt,Mn,ye);else{var Ke=Jt?Jt(He,Be,Mn+"",Bt,Vt,En):void 0,zt=void 0===Ke;if(zt){var Pn=(0,Re.A)(Be),vi=!Pn&&(0,gt.A)(Be),Ti=!Pn&&!vi&&(0,Vn.A)(Be);Ke=Be,Pn||vi||Ti?(0,Re.A)(He)?Ke=He:function be(Bt){return(0,te.A)(Bt)&&(0,ke.A)(Bt)}(He)?Ke=(0,ue.A)(He):vi?(zt=!1,Ke=(0,B.A)(Be,!0)):Ti?(zt=!1,Ke=(0,F.A)(Be,!0)):Ke=[]:function Zt(Bt){if(!(0,te.A)(Bt)||"[object Object]"!=(0,We.A)(Bt))return!1;var Vt=(0,ae.A)(Bt);if(null===Vt)return!0;var Mn=vt.call(Vt,"constructor")&&Vt.constructor;return"function"==typeof Mn&&Mn instanceof Mn&&At.call(Mn)==Dt}(Be)||(0,Ee.A)(Be)?(Ke=He,(0,Ee.A)(He)?Ke=function J(Bt){return(0,_e.A)(Bt,(0,Ae.A)(Bt))}(He):(!(0,qe.A)(He)||(0,je.A)(He))&&(Ke=(0,ge.A)(Be))):zt=!1}zt&&(En.set(Be,Ke),Ei(Ke,Be,Ln,Jt,En),En.delete(Be)),G(Bt,Mn,Ke)}},Xe=function ht(Bt,Vt,Mn,Ln,Ei){Bt!==Vt&&P(Vt,function(Jt,En){if(Ei||(Ei=new u.A),(0,qe.A)(Jt))Pe(Bt,Vt,En,Mn,ht,Ln,Ei);else{var He=Ln?Ln(pi(Bt,En),Jt,En+"",Bt,Vt,Ei):void 0;void 0===He&&(He=Jt),G(Bt,En,He)}},Ae.A)},Me=function Je(Bt){return Bt};var le=Math.max;const it=function un(Bt){return function(){return Bt}};var It=v(4746),qt=Date.now;const bt=function we(Bt){var Vt=0,Mn=0;return function(){var Ln=qt(),Ei=16-(Ln-Mn);if(Mn=Ln,Ei>0){if(++Vt>=800)return arguments[0]}else Vt=0;return Bt.apply(void 0,arguments)}}(It.A?function(Bt,Vt){return(0,It.A)(Bt,"toString",{configurable:!0,enumerable:!1,value:it(Vt),writable:!0})}:Me),Q=function on(Bt,Vt){return bt(function Ce(Bt,Vt,Mn){return Vt=le(void 0===Vt?Bt.length-1:Vt,0),function(){for(var Ln=arguments,Ei=-1,Jt=le(Ln.length-Vt,0),En=Array(Jt);++Ei1?Mn[Ei-1]:void 0,En=Ei>2?Mn[2]:void 0;for(Jt=Bt.length>3&&"function"==typeof Jt?(Ei--,Jt):void 0,En&&function N(Bt,Vt,Mn){if(!(0,qe.A)(Mn))return!1;var Ln=typeof Vt;return!!("number"==Ln?(0,ke.A)(Mn)&&(0,T.A)(Vt,Mn.length):"string"==Ln&&Vt in Mn)&&(0,o.A)(Mn[Vt],Bt)}(Mn[0],Mn[1],En)&&(Jt=Ei<3?void 0:Jt,Ei=1),Vt=Object(Vt);++Ln{"use strict";v.d(Ne,{lo:()=>Hh,pC:()=>Jo,Bq:()=>eo,dq:()=>Do,lG:()=>ha,sh:()=>Al,Qe:()=>Rd});var u={};v.r(u),v.d(u,{OG:()=>N,My:()=>dt,Ph:()=>Ft,lX:()=>Rt,Id:()=>tt,fg:()=>he,qj:()=>we,aT:()=>It,lq:()=>kn,z:()=>hi,Q5:()=>$t});var y=v(467);function o(p){if(!Number.isSafeInteger(p)||p<0)throw new Error(`Wrong positive integer: ${p}`)}function G(p,...g){if(!(p instanceof Uint8Array))throw new Error("Expected Uint8Array");if(g.length>0&&!g.includes(p.length))throw new Error(`Expected Uint8Array of length ${g}, not of length=${p.length}`)}function oe(p,g=!0){if(p.destroyed)throw new Error("Hash instance has been destroyed");if(g&&p.finished)throw new Error("Hash#digest() has already been called")}const F="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,ue=p=>p instanceof Uint8Array,Re=p=>new DataView(p.buffer,p.byteOffset,p.byteLength),ke=(p,g)=>p<<32-g|p>>>g;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function me(p){if("string"==typeof p&&(p=function ae(p){if("string"!=typeof p)throw new Error("utf8ToBytes expected string, got "+typeof p);return new Uint8Array((new TextEncoder).encode(p))}(p)),!ue(p))throw new Error("expected Uint8Array, got "+typeof p);return p}class nt{clone(){return this._cloneInto()}}function Dt(p){const g=M=>p().update(me(M)).digest(),b=p();return g.outputLen=b.outputLen,g.blockLen=b.blockLen,g.create=()=>p(),g}function Vn(p=32){if(F&&"function"==typeof F.getRandomValues)return F.getRandomValues(new Uint8Array(p));throw new Error("crypto.getRandomValues must be defined")}class pi extends nt{constructor(g,b,M,U){super(),this.blockLen=g,this.outputLen=b,this.padOffset=M,this.isLE=U,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(g),this.view=Re(this.buffer)}update(g){oe(this);const{view:b,buffer:M,blockLen:U}=this,q=(g=me(g)).length;for(let fe=0;feU-fe&&(this.process(M,0),fe=0);for(let Ct=fe;Ct>U&q),De=Number(b&q),ot=M?0:4;p.setUint32(g+(M?4:0),fe,M),p.setUint32(g+ot,De,M)})(M,U-8,BigInt(8*this.length),q),this.process(M,0);const De=Re(g),Ue=this.outputLen;if(Ue%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const ot=Ue/4,Mt=this.get();if(ot>Mt.length)throw new Error("_sha2: outputLen bigger than state");for(let Ct=0;Ctp&g^~p&b,Ae=(p,g,b)=>p&g^p&b^g&b,J=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ie=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ot=new Uint32Array(64);class Pe extends pi{constructor(){super(64,32,8,!1),this.A=0|Ie[0],this.B=0|Ie[1],this.C=0|Ie[2],this.D=0|Ie[3],this.E=0|Ie[4],this.F=0|Ie[5],this.G=0|Ie[6],this.H=0|Ie[7]}get(){const{A:g,B:b,C:M,D:U,E:q,F:fe,G:De,H:Ue}=this;return[g,b,M,U,q,fe,De,Ue]}set(g,b,M,U,q,fe,De,Ue){this.A=0|g,this.B=0|b,this.C=0|M,this.D=0|U,this.E=0|q,this.F=0|fe,this.G=0|De,this.H=0|Ue}process(g,b){for(let Ct=0;Ct<16;Ct++,b+=4)Ot[Ct]=g.getUint32(b,!1);for(let Ct=16;Ct<64;Ct++){const en=Ot[Ct-15],an=Ot[Ct-2],Xt=ke(en,7)^ke(en,18)^en>>>3,Nt=ke(an,17)^ke(an,19)^an>>>10;Ot[Ct]=Nt+Ot[Ct-7]+Xt+Ot[Ct-16]|0}let{A:M,B:U,C:q,D:fe,E:De,F:Ue,G:ot,H:Mt}=this;for(let Ct=0;Ct<64;Ct++){const an=Mt+(ke(De,6)^ke(De,11)^ke(De,25))+_e(De,Ue,ot)+J[Ct]+Ot[Ct]|0,Nt=(ke(M,2)^ke(M,13)^ke(M,22))+Ae(M,U,q)|0;Mt=ot,ot=Ue,Ue=De,De=fe+an|0,fe=q,q=U,U=M,M=an+Nt|0}M=M+this.A|0,U=U+this.B|0,q=q+this.C|0,fe=fe+this.D|0,De=De+this.E|0,Ue=Ue+this.F|0,ot=ot+this.G|0,Mt=Mt+this.H|0,this.set(M,U,q,fe,De,Ue,ot,Mt)}roundClean(){Ot.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Xe=Dt(()=>new Pe),ie=(BigInt(0),BigInt(1)),ve=BigInt(2),le=p=>p instanceof Uint8Array,Ce=Array.from({length:256},(p,g)=>g.toString(16).padStart(2,"0"));function dt(p){if(!le(p))throw new Error("Uint8Array expected");let g="";for(let b=0;bM+U.length,0));let b=0;return p.forEach(M=>{if(!le(M))throw new Error("Uint8Array expected");g.set(M,b),b+=M.length}),g}const N=p=>(ve<new Uint8Array(p),ce=p=>Uint8Array.from(p);function he(p,g,b){if("number"!=typeof p||p<2)throw new Error("hashLen must be a number");if("number"!=typeof g||g<2)throw new Error("qByteLen must be a number");if("function"!=typeof b)throw new Error("hmacFn must be a function");let M=$(p),U=$(p),q=0;const fe=()=>{M.fill(1),U.fill(0),q=0},De=(...Ct)=>b(U,M,...Ct),Ue=(Ct=$())=>{U=De(ce([0]),Ct),M=De(),0!==Ct.length&&(U=De(ce([1]),Ct),M=De())},ot=()=>{if(q++>=1e3)throw new Error("drbg: tried 1000 values");let Ct=0;const en=[];for(;Ct{let an;for(fe(),Ue(Ct);!(an=en(ot()));)Ue();return fe(),an}}const et={bigint:p=>"bigint"==typeof p,function:p=>"function"==typeof p,boolean:p=>"boolean"==typeof p,string:p=>"string"==typeof p,stringOrUint8Array:p=>"string"==typeof p||p instanceof Uint8Array,isSafeInteger:p=>Number.isSafeInteger(p),array:p=>Array.isArray(p),field:(p,g)=>g.Fp.isValid(p),hash:p=>"function"==typeof p&&Number.isSafeInteger(p.outputLen)};function $t(p,g,b={}){const M=(U,q,fe)=>{const De=et[q];if("function"!=typeof De)throw new Error(`Invalid validator "${q}", expected function`);const Ue=p[U];if(!(fe&&void 0===Ue||De(Ue,p)))throw new Error(`Invalid param ${String(U)}=${Ue} (${typeof Ue}), expected ${q}`)};for(const[U,q]of Object.entries(g))M(U,q,!1);for(const[U,q]of Object.entries(b))M(U,q,!0);return p}const Bt=BigInt(0),Vt=BigInt(1),Mn=BigInt(2),Ln=BigInt(3),Ei=BigInt(4),Jt=BigInt(5),En=BigInt(8);function ye(p,g){const b=p%g;return b>=Bt?b:g+b}function Ke(p,g,b){if(b<=Bt||g 0");if(b===Vt)return Bt;let M=Vt;for(;g>Bt;)g&Vt&&(M=M*p%b),p=p*p%b,g>>=Vt;return M}function zt(p,g,b){let M=p;for(;g-- >Bt;)M*=M,M%=b;return M}function Pn(p,g){if(p===Bt||g<=Bt)throw new Error(`invert: expected positive integers, got n=${p} mod=${g}`);let b=ye(p,g),M=g,U=Bt,q=Vt,fe=Vt,De=Bt;for(;b!==Bt;){const ot=M/b,Mt=M%b,Ct=U-fe*ot,en=q-De*ot;M=b,b=Mt,U=fe,q=De,fe=Ct,De=en}if(M!==Vt)throw new Error("invert: does not exist");return ye(U,g)}BigInt(9),BigInt(16);const Et=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ct(p,g){const b=void 0!==g?g:p.toString(2).length;return{nBitLength:b,nByteLength:Math.ceil(b/8)}}function xr(p){if("bigint"!=typeof p)throw new Error("field order must be bigint");const g=p.toString(2).length;return Math.ceil(g/8)}function Ri(p){const g=xr(p);return g+Math.ceil(g/2)}class wi extends nt{constructor(g,b){super(),this.finished=!1,this.destroyed=!1,function ee(p){if("function"!=typeof p||"function"!=typeof p.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");o(p.outputLen),o(p.blockLen)}(g);const M=me(b);if(this.iHash=g.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 U=this.blockLen,q=new Uint8Array(U);q.set(M.length>U?g.create().update(M).digest():M);for(let fe=0;fenew wi(p,g).update(b).digest();Yr.create=(p,g)=>new wi(p,g);const Or=BigInt(0),ft=BigInt(1);function ln(p){return function at(p){$t(p,Et.reduce((M,U)=>(M[U]="function",M),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(p.Fp),$t(p,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...ct(p.n,p.nBitLength),...p,p:p.Fp.ORDER})}const{Ph:An,aT:Xn}=u,zn={Err:class extends Error{constructor(g=""){super(g)}},_parseInt(p){const{Err:g}=zn;if(p.length<2||2!==p[0])throw new g("Invalid signature integer tag");const b=p[1],M=p.subarray(2,b+2);if(!b||M.length!==b)throw new g("Invalid signature integer: wrong length");if(128&M[0])throw new g("Invalid signature integer: negative");if(0===M[0]&&!(128&M[1]))throw new g("Invalid signature integer: unnecessary leading zero");return{d:An(M),l:p.subarray(b+2)}},toSig(p){const{Err:g}=zn,b="string"==typeof p?Xn(p):p;if(!(b instanceof Uint8Array))throw new Error("ui8a expected");let M=b.length;if(M<2||48!=b[0])throw new g("Invalid signature tag");if(b[1]!==M-2)throw new g("Invalid signature: incorrect length");const{d:U,l:q}=zn._parseInt(b.subarray(2)),{d:fe,l:De}=zn._parseInt(q);if(De.length)throw new g("Invalid signature: left bytes after parsing");return{r:U,s:fe}},hexFromSig(p){const g=ot=>8&Number.parseInt(ot[0],16)?"00"+ot:ot,b=ot=>{const Mt=ot.toString(16);return 1&Mt.length?`0${Mt}`:Mt},M=g(b(p.s)),U=g(b(p.r)),q=M.length/2,fe=U.length/2,De=b(q),Ue=b(fe);return`30${b(fe+q+4)}02${Ue}${U}02${De}${M}`}},ri=BigInt(0),li=BigInt(1),xe=(BigInt(2),BigInt(3));function Te(p){const g=function W(p){const g=ln(p);return $t(g,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...g})}(p),{Fp:b,n:M}=g,U=b.BYTES+1,q=2*b.BYTES+1;function De(Wn){return ye(Wn,M)}function Ue(Wn){return Pn(Wn,M)}const{ProjectivePoint:ot,normPrivateKeyToScalar:Mt,weierstrassEquation:Ct,isWithinCurveOrder:en}=function Ge(p){const g=function yn(p){const g=ln(p);$t(g,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:b,Fp:M,a:U}=g;if(b){if(!M.eql(U,M.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof b||"bigint"!=typeof b.beta||"function"!=typeof b.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...g})}(p),{Fp:b}=g,M=g.toBytes||((Xt,Nt,Ut)=>{const dn=Nt.toAffine();return tt(Uint8Array.from([4]),b.toBytes(dn.x),b.toBytes(dn.y))}),U=g.fromBytes||(Xt=>{const Nt=Xt.subarray(1);return{x:b.fromBytes(Nt.subarray(0,b.BYTES)),y:b.fromBytes(Nt.subarray(b.BYTES,2*b.BYTES))}});function q(Xt){const{a:Nt,b:Ut}=g,dn=b.sqr(Xt),mn=b.mul(dn,Xt);return b.add(b.add(mn,b.mul(Xt,Nt)),Ut)}if(!b.eql(b.sqr(g.Gy),q(g.Gx)))throw new Error("bad generator point: equation left != right");function fe(Xt){return"bigint"==typeof Xt&&rib.eql(Un,b.ZERO);return mn(Ut)&&mn(dn)?Ct.ZERO:new Ct(Ut,dn,b.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Nt){const Ut=b.invertBatch(Nt.map(dn=>dn.pz));return Nt.map((dn,mn)=>dn.toAffine(Ut[mn])).map(Ct.fromAffine)}static fromHex(Nt){const Ut=Ct.fromAffine(U(we("pointHex",Nt)));return Ut.assertValidity(),Ut}static fromPrivateKey(Nt){return Ct.BASE.multiply(Ue(Nt))}_setWindowSize(Nt){this._WINDOW_SIZE=Nt,ot.delete(this)}assertValidity(){if(this.is0()){if(g.allowInfinityPoint&&!b.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:Nt,y:Ut}=this.toAffine();if(!b.isValid(Nt)||!b.isValid(Ut))throw new Error("bad point: x or y not FE");const dn=b.sqr(Ut),mn=q(Nt);if(!b.eql(dn,mn))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Nt}=this.toAffine();if(b.isOdd)return!b.isOdd(Nt);throw new Error("Field doesn't support isOdd")}equals(Nt){Mt(Nt);const{px:Ut,py:dn,pz:mn}=this,{px:Un,py:Kn,pz:xi}=Nt,oi=b.eql(b.mul(Ut,xi),b.mul(Un,mn)),_i=b.eql(b.mul(dn,xi),b.mul(Kn,mn));return oi&&_i}negate(){return new Ct(this.px,b.neg(this.py),this.pz)}double(){const{a:Nt,b:Ut}=g,dn=b.mul(Ut,xe),{px:mn,py:Un,pz:Kn}=this;let xi=b.ZERO,oi=b.ZERO,_i=b.ZERO,bi=b.mul(mn,mn),Yi=b.mul(Un,Un),Hi=b.mul(Kn,Kn),Ui=b.mul(mn,Un);return Ui=b.add(Ui,Ui),_i=b.mul(mn,Kn),_i=b.add(_i,_i),xi=b.mul(Nt,_i),oi=b.mul(dn,Hi),oi=b.add(xi,oi),xi=b.sub(Yi,oi),oi=b.add(Yi,oi),oi=b.mul(xi,oi),xi=b.mul(Ui,xi),_i=b.mul(dn,_i),Hi=b.mul(Nt,Hi),Ui=b.sub(bi,Hi),Ui=b.mul(Nt,Ui),Ui=b.add(Ui,_i),_i=b.add(bi,bi),bi=b.add(_i,bi),bi=b.add(bi,Hi),bi=b.mul(bi,Ui),oi=b.add(oi,bi),Hi=b.mul(Un,Kn),Hi=b.add(Hi,Hi),bi=b.mul(Hi,Ui),xi=b.sub(xi,bi),_i=b.mul(Hi,Yi),_i=b.add(_i,_i),_i=b.add(_i,_i),new Ct(xi,oi,_i)}add(Nt){Mt(Nt);const{px:Ut,py:dn,pz:mn}=this,{px:Un,py:Kn,pz:xi}=Nt;let oi=b.ZERO,_i=b.ZERO,bi=b.ZERO;const Yi=g.a,Hi=b.mul(g.b,xe);let Ui=b.mul(Ut,Un),vr=b.mul(dn,Kn),mr=b.mul(mn,xi),Dr=b.add(Ut,dn),Wn=b.add(Un,Kn);Dr=b.mul(Dr,Wn),Wn=b.add(Ui,vr),Dr=b.sub(Dr,Wn),Wn=b.add(Ut,mn);let ni=b.add(Un,xi);return Wn=b.mul(Wn,ni),ni=b.add(Ui,mr),Wn=b.sub(Wn,ni),ni=b.add(dn,mn),oi=b.add(Kn,xi),ni=b.mul(ni,oi),oi=b.add(vr,mr),ni=b.sub(ni,oi),bi=b.mul(Yi,Wn),oi=b.mul(Hi,mr),bi=b.add(oi,bi),oi=b.sub(vr,bi),bi=b.add(vr,bi),_i=b.mul(oi,bi),vr=b.add(Ui,Ui),vr=b.add(vr,Ui),mr=b.mul(Yi,mr),Wn=b.mul(Hi,Wn),vr=b.add(vr,mr),mr=b.sub(Ui,mr),mr=b.mul(Yi,mr),Wn=b.add(Wn,mr),Ui=b.mul(vr,Wn),_i=b.add(_i,Ui),Ui=b.mul(ni,Wn),oi=b.mul(Dr,oi),oi=b.sub(oi,Ui),Ui=b.mul(Dr,vr),bi=b.mul(ni,bi),bi=b.add(bi,Ui),new Ct(oi,_i,bi)}subtract(Nt){return this.add(Nt.negate())}is0(){return this.equals(Ct.ZERO)}wNAF(Nt){return an.wNAFCached(this,ot,Nt,Ut=>{const dn=b.invertBatch(Ut.map(mn=>mn.pz));return Ut.map((mn,Un)=>mn.toAffine(dn[Un])).map(Ct.fromAffine)})}multiplyUnsafe(Nt){const Ut=Ct.ZERO;if(Nt===ri)return Ut;if(De(Nt),Nt===li)return this;const{endo:dn}=g;if(!dn)return an.unsafeLadder(this,Nt);let{k1neg:mn,k1:Un,k2neg:Kn,k2:xi}=dn.splitScalar(Nt),oi=Ut,_i=Ut,bi=this;for(;Un>ri||xi>ri;)Un&li&&(oi=oi.add(bi)),xi&li&&(_i=_i.add(bi)),bi=bi.double(),Un>>=li,xi>>=li;return mn&&(oi=oi.negate()),Kn&&(_i=_i.negate()),_i=new Ct(b.mul(_i.px,dn.beta),_i.py,_i.pz),oi.add(_i)}multiply(Nt){De(Nt);let dn,mn,Ut=Nt;const{endo:Un}=g;if(Un){const{k1neg:Kn,k1:xi,k2neg:oi,k2:_i}=Un.splitScalar(Ut);let{p:bi,f:Yi}=this.wNAF(xi),{p:Hi,f:Ui}=this.wNAF(_i);bi=an.constTimeNegate(Kn,bi),Hi=an.constTimeNegate(oi,Hi),Hi=new Ct(b.mul(Hi.px,Un.beta),Hi.py,Hi.pz),dn=bi.add(Hi),mn=Yi.add(Ui)}else{const{p:Kn,f:xi}=this.wNAF(Ut);dn=Kn,mn=xi}return Ct.normalizeZ([dn,mn])[0]}multiplyAndAddUnsafe(Nt,Ut,dn){const mn=Ct.BASE,Un=(xi,oi)=>oi!==ri&&oi!==li&&xi.equals(mn)?xi.multiply(oi):xi.multiplyUnsafe(oi),Kn=Un(this,Ut).add(Un(Nt,dn));return Kn.is0()?void 0:Kn}toAffine(Nt){const{px:Ut,py:dn,pz:mn}=this,Un=this.is0();null==Nt&&(Nt=Un?b.ONE:b.inv(mn));const Kn=b.mul(Ut,Nt),xi=b.mul(dn,Nt),oi=b.mul(mn,Nt);if(Un)return{x:b.ZERO,y:b.ZERO};if(!b.eql(oi,b.ONE))throw new Error("invZ was invalid");return{x:Kn,y:xi}}isTorsionFree(){const{h:Nt,isTorsionFree:Ut}=g;if(Nt===li)return!0;if(Ut)return Ut(Ct,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Nt,clearCofactor:Ut}=g;return Nt===li?this:Ut?Ut(Ct,this):this.multiplyUnsafe(g.h)}toRawBytes(Nt=!0){return this.assertValidity(),M(Ct,this,Nt)}toHex(Nt=!0){return dt(this.toRawBytes(Nt))}}Ct.BASE=new Ct(g.Gx,g.Gy,b.ONE),Ct.ZERO=new Ct(b.ZERO,b.ONE,b.ZERO);const en=g.nBitLength,an=function St(p,g){const b=(U,q)=>{const fe=q.negate();return U?fe:q},M=U=>({windows:Math.ceil(g/U)+1,windowSize:2**(U-1)});return{constTimeNegate:b,unsafeLadder(U,q){let fe=p.ZERO,De=U;for(;q>Or;)q&ft&&(fe=fe.add(De)),De=De.double(),q>>=ft;return fe},precomputeWindow(U,q){const{windows:fe,windowSize:De}=M(q),Ue=[];let ot=U,Mt=ot;for(let Ct=0;Ct>=an,Ut>Ue&&(Ut-=en,fe+=ft);const dn=Nt,mn=Nt+Math.abs(Ut)-1,Kn=Ut<0;0===Ut?Mt=Mt.add(b(Xt%2!=0,q[dn])):ot=ot.add(b(Kn,q[mn]))}return{p:ot,f:Mt}},wNAFCached(U,q,fe,De){const Ue=U._WINDOW_SIZE||1;let ot=q.get(U);return ot||(ot=this.precomputeWindow(U,Ue),1!==Ue&&q.set(U,De(ot))),this.wNAF(Ue,ot,fe)}}}(Ct,g.endo?Math.ceil(en/2):en);return{CURVE:g,ProjectivePoint:Ct,normPrivateKeyToScalar:Ue,weierstrassEquation:q,isWithinCurveOrder:fe}}({...g,toBytes(Wn,ni,Ni){const Oi=ni.toAffine(),qn=b.toBytes(Oi.x),cr=tt;return Ni?cr(Uint8Array.from([ni.hasEvenY()?2:3]),qn):cr(Uint8Array.from([4]),qn,b.toBytes(Oi.y))},fromBytes(Wn){const ni=Wn.length,Ni=Wn[0],Oi=Wn.subarray(1);if(ni!==U||2!==Ni&&3!==Ni){if(ni===q&&4===Ni)return{x:b.fromBytes(Oi.subarray(0,b.BYTES)),y:b.fromBytes(Oi.subarray(b.BYTES,2*b.BYTES))};throw new Error(`Point of length ${ni} was invalid. Expected ${U} compressed bytes or ${q} uncompressed bytes`)}{const qn=Ft(Oi);if(!function fe(Wn){return ridt(kn(Wn,g.nByteLength));function Xt(Wn){return Wn>M>>li}const Ut=(Wn,ni,Ni)=>Ft(Wn.slice(ni,Ni));class dn{constructor(ni,Ni,Oi){this.r=ni,this.s=Ni,this.recovery=Oi,this.assertValidity()}static fromCompact(ni){const Ni=g.nByteLength;return ni=we("compactSignature",ni,2*Ni),new dn(Ut(ni,0,Ni),Ut(ni,Ni,2*Ni))}static fromDER(ni){const{r:Ni,s:Oi}=zn.toSig(we("DER",ni));return new dn(Ni,Oi)}assertValidity(){if(!en(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!en(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(ni){return new dn(this.r,this.s,ni)}recoverPublicKey(ni){const{r:Ni,s:Oi,recovery:qn}=this,cr=_i(we("msgHash",ni));if(null==qn||![0,1,2,3].includes(qn))throw new Error("recovery id invalid");const dr=2===qn||3===qn?Ni+g.n:Ni;if(dr>=b.ORDER)throw new Error("recovery id 2 or 3 invalid");const ts=ot.fromHex((1&qn?"03":"02")+an(dr)),Vr=Ue(dr),Fo=De(-cr*Vr),ea=De(Oi*Vr),ks=ot.BASE.multiplyAndAddUnsafe(ts,Fo,ea);if(!ks)throw new Error("point at infinify");return ks.assertValidity(),ks}hasHighS(){return Xt(this.s)}normalizeS(){return this.hasHighS()?new dn(this.r,De(-this.s),this.recovery):this}toDERRawBytes(){return It(this.toDERHex())}toDERHex(){return zn.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return It(this.toCompactHex())}toCompactHex(){return an(this.r)+an(this.s)}}const mn={isValidPrivateKey(Wn){try{return Mt(Wn),!0}catch{return!1}},normPrivateKeyToScalar:Mt,randomPrivateKey:()=>{const Wn=Ri(g.n);return function Pr(p,g,b=!1){const M=p.length,U=xr(g),q=Ri(g);if(M<16||M1024)throw new Error(`expected ${q}-1024 bytes of input, got ${M}`);const De=ye(b?Ft(p):Rt(p),g-Vt)+Vt;return b?hi(De,U):kn(De,U)}(g.randomBytes(Wn),g.n)},precompute:(Wn=8,ni=ot.BASE)=>(ni._setWindowSize(Wn),ni.multiply(BigInt(3)),ni)};function Kn(Wn){const ni=Wn instanceof Uint8Array,Ni="string"==typeof Wn,Oi=(ni||Ni)&&Wn.length;return ni?Oi===U||Oi===q:Ni?Oi===2*U||Oi===2*q:Wn instanceof ot}const oi=g.bits2int||function(Wn){const ni=Ft(Wn),Ni=8*Wn.length-g.nBitLength;return Ni>0?ni>>BigInt(Ni):ni},_i=g.bits2int_modN||function(Wn){return De(oi(Wn))},bi=N(g.nBitLength);function Yi(Wn){if("bigint"!=typeof Wn)throw new Error("bigint expected");if(!(ri<=Wn&&WnNs in Ni))throw new Error("sign() legacy options not supported");const{hash:Oi,randomBytes:qn}=g;let{lowS:cr,prehash:dr,extraEntropy:wr}=Ni;null==cr&&(cr=!0),Wn=we("msgHash",Wn),dr&&(Wn=we("prehashed msgHash",Oi(Wn)));const ts=_i(Wn),Vr=Mt(ni),Fo=[Yi(Vr),Yi(ts)];if(null!=wr){const Ns=!0===wr?qn(b.BYTES):wr;Fo.push(we("extraEntropy",Ns))}const ea=tt(...Fo),ks=ts;return{seed:ea,k2sig:function Ea(Ns){const Ec=oi(Ns);if(!en(Ec))return;const Kd=Ue(Ec),ja=ot.BASE.multiply(Ec).toAffine(),Ca=De(ja.x);if(Ca===ri)return;const Ml=De(Kd*De(ks+Ca*Vr));if(Ml===ri)return;let sf=(ja.x===Ca?0:2)|Number(ja.y&li),Xd=Ml;return cr&&Xt(Ml)&&(Xd=function Nt(Wn){return Xt(Wn)?De(-Wn):Wn}(Ml),sf^=1),new dn(Ca,Xd,sf)}}}(Wn,ni,Ni);return he(g.hash.outputLen,g.nByteLength,g.hmac)(Oi,qn)},verify:function Dr(Wn,ni,Ni,Oi=vr){const qn=Wn;if(ni=we("msgHash",ni),Ni=we("publicKey",Ni),"strict"in Oi)throw new Error("options.strict was renamed to lowS");const{lowS:cr,prehash:dr}=Oi;let wr,ts;try{if("string"==typeof qn||qn instanceof Uint8Array)try{wr=dn.fromDER(qn)}catch(ja){if(!(ja instanceof zn.Err))throw ja;wr=dn.fromCompact(qn)}else{if("object"!=typeof qn||"bigint"!=typeof qn.r||"bigint"!=typeof qn.s)throw new Error("PARSE");{const{r:ja,s:Ca}=qn;wr=new dn(ja,Ca)}}ts=ot.fromHex(Ni)}catch(ja){if("PARSE"===ja.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(cr&&wr.hasHighS())return!1;dr&&(ni=g.hash(ni));const{r:Vr,s:Fo}=wr,ea=_i(ni),ks=Ue(Fo),Ea=De(ea*ks),Ns=De(Vr*ks),Ec=ot.BASE.multiplyAndAddUnsafe(ts,Ea,Ns)?.toAffine();return!!Ec&&De(Ec.x)===Vr},ProjectivePoint:ot,Signature:dn,utils:mn}}function pt(p){return{hash:p,hmac:(g,...b)=>Yr(p,g,function Le(...p){const g=new Uint8Array(p.reduce((M,U)=>M+U.length,0));let b=0;return p.forEach(M=>{if(!ue(M))throw new Error("Uint8Array expected");g.set(M,b),b+=M.length}),g}(...b)),randomBytes:Vn}}BigInt(4);const jt=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),hn=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),fn=BigInt(1),wn=BigInt(2),Dn=(p,g)=>(p+g/wn)/g;function jn(p){const g=jt,b=BigInt(3),M=BigInt(6),U=BigInt(11),q=BigInt(22),fe=BigInt(23),De=BigInt(44),Ue=BigInt(88),ot=p*p*p%g,Mt=ot*ot*p%g,Ct=zt(Mt,b,g)*Mt%g,en=zt(Ct,b,g)*Mt%g,an=zt(en,wn,g)*ot%g,Xt=zt(an,U,g)*an%g,Nt=zt(Xt,q,g)*Xt%g,Ut=zt(Nt,De,g)*Nt%g,dn=zt(Ut,Ue,g)*Ut%g,mn=zt(dn,De,g)*Nt%g,Un=zt(mn,b,g)*Mt%g,Kn=zt(Un,fe,g)*Xt%g,xi=zt(Kn,M,g)*ot%g,oi=zt(xi,wn,g);if(!$n.eql($n.sqr(oi),p))throw new Error("Cannot find square root");return oi}const $n=function Wt(p,g,b=!1,M={}){if(p<=Bt)throw new Error(`Expected Field ORDER > 0, got ${p}`);const{nBitLength:U,nByteLength:q}=ct(p,g);if(q>2048)throw new Error("Field lengths over 2048 bytes are not supported");const fe=function Ti(p){if(p%Ei===Ln){const g=(p+Vt)/Ei;return function(M,U){const q=M.pow(U,g);if(!M.eql(M.sqr(q),U))throw new Error("Cannot find square root");return q}}if(p%En===Jt){const g=(p-Jt)/En;return function(M,U){const q=M.mul(U,Mn),fe=M.pow(q,g),De=M.mul(U,fe),Ue=M.mul(M.mul(De,Mn),fe),ot=M.mul(De,M.sub(Ue,M.ONE));if(!M.eql(M.sqr(ot),U))throw new Error("Cannot find square root");return ot}}return function vi(p){const g=(p-Vt)/Mn;let b,M,U;for(b=p-Vt,M=0;b%Mn===Bt;b/=Mn,M++);for(U=Mn;Uye(Ue,p),isValid:Ue=>{if("bigint"!=typeof Ue)throw new Error("Invalid field element: expected bigint, got "+typeof Ue);return Bt<=Ue&&UeUe===Bt,isOdd:Ue=>(Ue&Vt)===Vt,neg:Ue=>ye(-Ue,p),eql:(Ue,ot)=>Ue===ot,sqr:Ue=>ye(Ue*Ue,p),add:(Ue,ot)=>ye(Ue+ot,p),sub:(Ue,ot)=>ye(Ue-ot,p),mul:(Ue,ot)=>ye(Ue*ot,p),pow:(Ue,ot)=>function Lt(p,g,b){if(b 0");if(b===Bt)return p.ONE;if(b===Vt)return g;let M=p.ONE,U=g;for(;b>Bt;)b&Vt&&(M=p.mul(M,U)),U=p.sqr(U),b>>=Vt;return M}(De,Ue,ot),div:(Ue,ot)=>ye(Ue*Pn(ot,p),p),sqrN:Ue=>Ue*Ue,addN:(Ue,ot)=>Ue+ot,subN:(Ue,ot)=>Ue-ot,mulN:(Ue,ot)=>Ue*ot,inv:Ue=>Pn(Ue,p),sqrt:M.sqrt||(Ue=>fe(De,Ue)),invertBatch:Ue=>function st(p,g){const b=new Array(g.length),M=g.reduce((q,fe,De)=>p.is0(fe)?q:(b[De]=q,p.mul(q,fe)),p.ONE),U=p.inv(M);return g.reduceRight((q,fe,De)=>p.is0(fe)?q:(b[De]=p.mul(q,b[De]),p.mul(q,fe)),U),b}(De,Ue),cmov:(Ue,ot,Mt)=>Mt?ot:Ue,toBytes:Ue=>b?hi(Ue,q):kn(Ue,q),fromBytes:Ue=>{if(Ue.length!==q)throw new Error(`Fp.fromBytes: expected ${q}, got ${Ue.length}`);return b?Rt(Ue):Ft(Ue)}});return Object.freeze(De)}(jt,void 0,void 0,{sqrt:jn}),ci=function lt(p,g){const b=M=>Te({...p,...pt(M)});return Object.freeze({...b(g),create:b})}({a:BigInt(0),b:BigInt(7),Fp:$n,n:hn,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:p=>{const g=hn,b=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),M=-fn*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),U=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),q=b,fe=BigInt("0x100000000000000000000000000000000"),De=Dn(q*p,g),Ue=Dn(-M*p,g);let ot=ye(p-De*b-Ue*U,g),Mt=ye(-De*M-Ue*q,g);const Ct=ot>fe,en=Mt>fe;if(Ct&&(ot=g-ot),en&&(Mt=g-Mt),ot>fe||Mt>fe)throw new Error("splitScalar: Endomorphism failed, k="+p);return{k1neg:Ct,k1:ot,k2neg:en,k2:Mt}}}},Xe),ki=BigInt(0),ei=p=>"bigint"==typeof p&&kiU.charCodeAt(0)));b=tt(M,M),Rr[p]=b}return Xe(tt(b,...g))}const Fr=p=>p.toRawBytes(!0).slice(1),Ci=p=>kn(p,32),Lr=p=>ye(p,jt),$o=p=>ye(p,hn),zi=ci.ProjectivePoint;function ns(p){let g=ci.utils.normPrivateKeyToScalar(p),b=zi.fromPrivateKey(g);return{scalar:b.hasEvenY()?g:$o(-g),bytes:Fr(b)}}function oo(p){if(!ei(p))throw new Error("bad x: need 0 < x < p");const g=Lr(p*p);let M=jn(Lr(g*p+BigInt(7)));M%wn!==ki&&(M=Lr(-M));const U=new zi(p,M,fn);return U.assertValidity(),U}function ma(...p){return $o(Ft(uo("BIP0340/challenge",...p)))}function vo(p,g,b){const M=we("signature",p,64),U=we("message",g),q=we("publicKey",b,32);try{const fe=oo(Ft(q)),De=Ft(M.subarray(0,32));if(!ei(De))return!1;const Ue=Ft(M.subarray(32,64));if(!(p=>"bigint"==typeof p&&kizi.BASE.multiplyAndAddUnsafe(p,g,b))(fe,Ue,$o(-ot));return!(!Mt||!Mt.hasEvenY()||Mt.toAffine().x!==De)}catch{return!1}}const Lo={getPublicKey:function ga(p){return ns(p).bytes},sign:function Ul(p,g,b=Vn(32)){const M=we("message",p),{bytes:U,scalar:q}=ns(g),fe=we("auxRand",b,32),De=Ci(q^Ft(uo("BIP0340/aux",fe))),Ue=uo("BIP0340/nonce",De,U,M),ot=$o(Ft(Ue));if(ot===ki)throw new Error("sign failed: k is zero");const{bytes:Mt,scalar:Ct}=ns(ot),en=ma(Mt,U,M),an=new Uint8Array(64);if(an.set(Mt,0),an.set(Ci($o(Ct+en*q)),32),!vo(an,M,U))throw new Error("sign: Invalid signature produced");return an},verify:vo,utils:{randomPrivateKey:ci.utils.randomPrivateKey,lift_x:oo,pointToBytes:Fr,numberToBytesBE:kn,bytesToNumberBE:Ft,taggedHash:uo,mod:ye}};var Ii=v(6391);function rs(p){if(!Number.isSafeInteger(p)||p<0)throw new Error(`Wrong positive integer: ${p}`)}function Tr(p,...g){if(!(p instanceof Uint8Array))throw new Error("Expected Uint8Array");if(g.length>0&&!g.includes(p.length))throw new Error(`Expected Uint8Array of length ${g}, not of length=${p.length}`)}const Hr={number:rs,bool:function Ar(p){if("boolean"!=typeof p)throw new Error(`Expected boolean, not ${p}`)},bytes:Tr,hash:function Ir(p){if("function"!=typeof p||"function"!=typeof p.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");rs(p.outputLen),rs(p.blockLen)},exists:function Vs(p,g=!0){if(p.destroyed)throw new Error("Hash instance has been destroyed");if(g&&p.finished)throw new Error("Hash#digest() has already been called")},output:function Di(p,g){Tr(p);const b=g.outputLen;if(p.lengthU-fe&&(this.process(M,0),fe=0);for(let Ct=fe;Ct>U&q),De=Number(b&q),ot=M?0:4;p.setUint32(g+(M?4:0),fe,M),p.setUint32(g+ot,De,M)})(M,U-8,BigInt(8*this.length),q),this.process(M,0);const De=(0,Ii.O8)(g),Ue=this.outputLen;if(Ue%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const ot=Ue/4,Mt=this.get();if(ot>Mt.length)throw new Error("_sha2: outputLen bigger than state");for(let Ct=0;Ctp&g^~p&b,gs=(p,g,b)=>p&g^p&b^g&b,Hs=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Qr=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Li=new Uint32Array(64);class gr extends Uo{constructor(){super(64,32,8,!1),this.A=0|Qr[0],this.B=0|Qr[1],this.C=0|Qr[2],this.D=0|Qr[3],this.E=0|Qr[4],this.F=0|Qr[5],this.G=0|Qr[6],this.H=0|Qr[7]}get(){const{A:g,B:b,C:M,D:U,E:q,F:fe,G:De,H:Ue}=this;return[g,b,M,U,q,fe,De,Ue]}set(g,b,M,U,q,fe,De,Ue){this.A=0|g,this.B=0|b,this.C=0|M,this.D=0|U,this.E=0|q,this.F=0|fe,this.G=0|De,this.H=0|Ue}process(g,b){for(let Ct=0;Ct<16;Ct++,b+=4)Li[Ct]=g.getUint32(b,!1);for(let Ct=16;Ct<64;Ct++){const en=Li[Ct-15],an=Li[Ct-2],Xt=(0,Ii.Ow)(en,7)^(0,Ii.Ow)(en,18)^en>>>3,Nt=(0,Ii.Ow)(an,17)^(0,Ii.Ow)(an,19)^an>>>10;Li[Ct]=Nt+Li[Ct-7]+Xt+Li[Ct-16]|0}let{A:M,B:U,C:q,D:fe,E:De,F:Ue,G:ot,H:Mt}=this;for(let Ct=0;Ct<64;Ct++){const an=Mt+((0,Ii.Ow)(De,6)^(0,Ii.Ow)(De,11)^(0,Ii.Ow)(De,25))+va(De,Ue,ot)+Hs[Ct]+Li[Ct]|0,Nt=((0,Ii.Ow)(M,2)^(0,Ii.Ow)(M,13)^(0,Ii.Ow)(M,22))+gs(M,U,q)|0;Mt=ot,ot=Ue,Ue=De,De=fe+an|0,fe=q,q=U,U=M,M=an+Nt|0}M=M+this.A|0,U=U+this.B|0,q=q+this.C|0,fe=fe+this.D|0,De=De+this.E|0,Ue=Ue+this.F|0,ot=ot+this.G|0,Mt=Mt+this.H|0,this.set(M,U,q,fe,De,Ue,ot,Mt)}roundClean(){Li.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class zo extends gr{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const so=(0,Ii.ld)(()=>new gr);(0,Ii.ld)(()=>new zo);var lr=v(3813);function Io(p){if(!Number.isSafeInteger(p)||p<0)throw new Error(`positive integer expected, not ${p}`)}function Eo(p){if("boolean"!=typeof p)throw new Error(`boolean expected, not ${p}`)}function $s(p){return p instanceof Uint8Array||null!=p&&"object"==typeof p&&"Uint8Array"===p.constructor.name}function Mi(p,...g){if(!$s(p))throw new Error("Uint8Array expected");if(g.length>0&&!g.includes(p.length))throw new Error(`Uint8Array expected of length ${g}, not of length=${p.length}`)}function Zr(p,g=!0){if(p.destroyed)throw new Error("Hash instance has been destroyed");if(g&&p.finished)throw new Error("Hash#digest() has already been called")}function Wo(p,g){Mi(p);const b=g.outputLen;if(p.lengthnew Uint32Array(p.buffer,p.byteOffset,Math.floor(p.byteLength/4)),Cs=p=>new DataView(p.buffer,p.byteOffset,p.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function vs(p){if("string"==typeof p)p=function Ia(p){if("string"!=typeof p)throw new Error("string expected, got "+typeof p);return new Uint8Array((new TextEncoder).encode(p))}(p);else{if(!$s(p))throw new Error("Uint8Array expected, got "+typeof p);p=p.slice()}return p}function fr(p,g){if(p.length!==g.length)return!1;let b=0;for(let M=0;M(Object.assign(g,p),g);function X(p,g,b,M){if("function"==typeof p.setBigUint64)return p.setBigUint64(g,b,M);const U=BigInt(32),q=BigInt(4294967295),fe=Number(b>>U&q),De=Number(b&q),ot=M?0:4;p.setUint32(g+(M?4:0),fe,M),p.setUint32(g+ot,De,M)}const yt=new Uint8Array(16),ii=Ji(yt),ko=(p,g,b,M)=>({s3:b<<31|M>>>1,s2:g<<31|b>>>1,s1:p<<31|g>>>1,s0:p>>>1^225<<24&-(1&M)}),_o=p=>(p>>>0&255)<<24|(p>>>8&255)<<16|(p>>>16&255)<<8|p>>>24&255;class Ma{constructor(g,b){this.blockLen=16,this.outputLen=16,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,Mi(g=vs(g),16);const M=Cs(g);let U=M.getUint32(0,!1),q=M.getUint32(4,!1),fe=M.getUint32(8,!1),De=M.getUint32(12,!1);const Ue=[];for(let Xt=0;Xt<128;Xt++)Ue.push({s0:_o(U),s1:_o(q),s2:_o(fe),s3:_o(De)}),({s0:U,s1:q,s2:fe,s3:De}=ko(U,q,fe,De));const ot=(p=b||1024)>65536?8:p>1024?4:2;var p;if(![1,2,4,8].includes(ot))throw new Error(`ghash: wrong window size=${ot}, should be 2, 4 or 8`);this.W=ot;const Ct=128/ot,en=this.windowSize=2**ot,an=[];for(let Xt=0;Xt>>ot-Kn-1&1))continue;const{s0:oi,s1:_i,s2:bi,s3:Yi}=Ue[ot*Xt+Kn];Ut^=oi,dn^=_i,mn^=bi,Un^=Yi}an.push({s0:Ut,s1:dn,s2:mn,s3:Un})}this.t=an}_updateBlock(g,b,M,U){g^=this.s0,b^=this.s1,M^=this.s2,U^=this.s3;const{W:q,t:fe,windowSize:De}=this;let Ue=0,ot=0,Mt=0,Ct=0;const en=(1<>>8*Nt&255;for(let dn=8/q-1;dn>=0;dn--){const mn=Ut>>>q*dn&en,{s0:Un,s1:Kn,s2:xi,s3:oi}=fe[an*De+mn];Ue^=Un,ot^=Kn,Mt^=xi,Ct^=oi,an+=1}}this.s0=Ue,this.s1=ot,this.s2=Mt,this.s3=Ct}update(g){g=vs(g),Zr(this);const b=Ji(g),M=Math.floor(g.length/16),U=g.length%16;for(let q=0;q>>1|b,b=(1&U)<<7}return p[0]^=225&-g,p}((g=vs(g)).slice());super(M,b),M.fill(0)}update(g){g=vs(g),Zr(this);const b=Ji(g),M=g.length%16,U=Math.floor(g.length/16);for(let q=0;qp(U,M.length).update(vs(M)).digest(),b=p(new Uint8Array(16),0);return g.outputLen=b.outputLen,g.blockLen=b.blockLen,g.create=(M,U)=>p(M,U),g}Oa((p,g)=>new Ma(p,g)),Oa((p,g)=>new Ss(p,g)),new Uint8Array(16);const Wi=283;function Jr(p){return p<<1^Wi&-(p>>7)}function qr(p,g){let b=0;for(;g>0;g>>=1)b^=p&-(1&g),p=Jr(p);return b}const Yo=(()=>{let p=new Uint8Array(256);for(let b=0,M=1;b<256;b++,M^=Jr(M))p[b]=M;const g=new Uint8Array(256);g[0]=99;for(let b=0;b<255;b++){let M=p[255-b];M|=M<<8,g[p[b]]=255&(M^M>>4^M>>5^M>>6^M>>7^99)}return g})(),fo=Yo.map((p,g)=>Yo.indexOf(g)),Na=p=>p<<24|p>>>8,As=p=>p<<8|p>>>24;function la(p,g){if(256!==p.length)throw new Error("Wrong sbox length");const b=new Uint32Array(256).map((ot,Mt)=>g(p[Mt])),M=b.map(As),U=M.map(As),q=U.map(As),fe=new Uint32Array(65536),De=new Uint32Array(65536),Ue=new Uint16Array(65536);for(let ot=0;ot<256;ot++)for(let Mt=0;Mt<256;Mt++){const Ct=256*ot+Mt;fe[Ct]=b[ot]^M[Mt],De[Ct]=U[ot]^q[Mt],Ue[Ct]=p[ot]<<8|p[Mt]}return{sbox:p,sbox2:Ue,T0:b,T1:M,T2:U,T3:q,T01:fe,T23:De}}const Wa=la(Yo,p=>qr(p,3)<<24|p<<16|p<<8|qr(p,2)),Gs=la(fo,p=>qr(p,11)<<24|qr(p,13)<<16|qr(p,9)<<8|qr(p,14)),ao=(()=>{const p=new Uint8Array(16);for(let g=0,b=1;g<16;g++,b=Jr(b))p[g]=b;return p})();function Qo(p){Mi(p);const g=p.length;if(![16,24,32].includes(g))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${g}`);const{sbox2:b}=Wa,M=Ji(p),U=M.length,q=De=>Ho(b,De,De,De,De),fe=new Uint32Array(g+28);fe.set(M);for(let De=U;De6&&De%U==4&&(Ue=q(Ue)),fe[De]=fe[De-U]^Ue}return fe}function Ks(p,g,b,M,U,q){return p[b<<8&65280|M>>>8&255]^g[U>>>8&65280|q>>>24&255]}function Ho(p,g,b,M,U){return p[255&g|65280&b]|p[M>>>16&255|U>>>16&65280]<<16}function No(p,g,b,M,U){const{sbox2:q,T01:fe,T23:De}=Wa;let Ue=0;g^=p[Ue++],b^=p[Ue++],M^=p[Ue++],U^=p[Ue++];const ot=p.length/4-2;for(let Xt=0;Xt{const De=Qo(g),{b:Ue,o:ot,out:Mt}=function hl(p,g,b){let M=p.length;const U=M%16;if(!g&&0!==U)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");const q=Ji(p);if(g){let Ue=16-U;Ue||(Ue=16),M+=Ue}const fe=Xs(M,b);return{b:q,o:Ji(fe),out:fe}}(q,U,fe),Ct=Ji(b);let en=Ct[0],an=Ct[1],Xt=Ct[2],Nt=Ct[3],Ut=0;for(;Ut+4<=Ue.length;)en^=Ue[Ut+0],an^=Ue[Ut+1],Xt^=Ue[Ut+2],Nt^=Ue[Ut+3],({s0:en,s1:an,s2:Xt,s3:Nt}=No(De,en,an,Xt,Nt)),ot[Ut++]=en,ot[Ut++]=an,ot[Ut++]=Xt,ot[Ut++]=Nt;if(U){const dn=function _s(p){const g=new Uint8Array(16),b=Ji(g);g.set(p);const M=16-p.length;for(let U=16-M;U<16;U++)g[U]=M;return b}(q.subarray(4*Ut));en^=dn[0],an^=dn[1],Xt^=dn[2],Nt^=dn[3],({s0:en,s1:an,s2:Xt,s3:Nt}=No(De,en,an,Xt,Nt)),ot[Ut++]=en,ot[Ut++]=an,ot[Ut++]=Xt,ot[Ut++]=Nt}return De.fill(0),Mt},decrypt:(q,fe)=>{!function Ts(p){if(Mi(p),p.length%16!=0)throw new Error("aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16")}(q);const De=function Pa(p){const g=Qo(p),b=g.slice(),M=g.length,{sbox2:U}=Wa,{T0:q,T1:fe,T2:De,T3:Ue}=Gs;for(let ot=0;ot>>8&255]^De[Ct>>>16&255]^Ue[Ct>>>24]}return b}(g),Ue=Ji(b),ot=Xs(q.length,fe),Mt=Ji(q),Ct=Ji(ot);let en=Ue[0],an=Ue[1],Xt=Ue[2],Nt=Ue[3];for(let Ut=0;Ut+4<=Mt.length;){const dn=en,mn=an,Un=Xt,Kn=Nt;en=Mt[Ut+0],an=Mt[Ut+1],Xt=Mt[Ut+2],Nt=Mt[Ut+3];const{s0:xi,s1:oi,s2:_i,s3:bi}=_a(De,en,an,Xt,Nt);Ct[Ut++]=xi^dn,Ct[Ut++]=oi^mn,Ct[Ut++]=_i^Un,Ct[Ut++]=bi^Kn}return De.fill(0),function So(p,g){if(!g)return p;const b=p.length;if(!b)throw new Error("aes/pcks5: empty ciphertext not allowed");const M=p[b-1];if(M<=0||M>16)throw new Error(`aes/pcks5: wrong padding byte: ${M}`);const U=p.subarray(0,-M);for(let q=0;q255&p[g++]|(255&p[g++])<<8;class fl{constructor(g){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,Mi(g=vs(g),32);const b=Gr(g,0),M=Gr(g,2),U=Gr(g,4),q=Gr(g,6),fe=Gr(g,8),De=Gr(g,10),Ue=Gr(g,12),ot=Gr(g,14);this.r[0]=8191&b,this.r[1]=8191&(b>>>13|M<<3),this.r[2]=7939&(M>>>10|U<<6),this.r[3]=8191&(U>>>7|q<<9),this.r[4]=255&(q>>>4|fe<<12),this.r[5]=fe>>>1&8190,this.r[6]=8191&(fe>>>14|De<<2),this.r[7]=8065&(De>>>11|Ue<<5),this.r[8]=8191&(Ue>>>8|ot<<8),this.r[9]=ot>>>5&127;for(let Mt=0;Mt<8;Mt++)this.pad[Mt]=Gr(g,16+2*Mt)}process(g,b,M=!1){const U=M?0:2048,{h:q,r:fe}=this,De=fe[0],Ue=fe[1],ot=fe[2],Mt=fe[3],Ct=fe[4],en=fe[5],an=fe[6],Xt=fe[7],Nt=fe[8],Ut=fe[9],dn=Gr(g,b+0),mn=Gr(g,b+2),Un=Gr(g,b+4),Kn=Gr(g,b+6),xi=Gr(g,b+8),oi=Gr(g,b+10),_i=Gr(g,b+12),bi=Gr(g,b+14);let Yi=q[0]+(8191&dn),Hi=q[1]+(8191&(dn>>>13|mn<<3)),Ui=q[2]+(8191&(mn>>>10|Un<<6)),vr=q[3]+(8191&(Un>>>7|Kn<<9)),mr=q[4]+(8191&(Kn>>>4|xi<<12)),Dr=q[5]+(xi>>>1&8191),Wn=q[6]+(8191&(xi>>>14|oi<<2)),ni=q[7]+(8191&(oi>>>11|_i<<5)),Ni=q[8]+(8191&(_i>>>8|bi<<8)),Oi=q[9]+(bi>>>5|U),qn=0,cr=qn+Yi*De+Hi*(5*Ut)+Ui*(5*Nt)+vr*(5*Xt)+mr*(5*an);qn=cr>>>13,cr&=8191,cr+=Dr*(5*en)+Wn*(5*Ct)+ni*(5*Mt)+Ni*(5*ot)+Oi*(5*Ue),qn+=cr>>>13,cr&=8191;let dr=qn+Yi*Ue+Hi*De+Ui*(5*Ut)+vr*(5*Nt)+mr*(5*Xt);qn=dr>>>13,dr&=8191,dr+=Dr*(5*an)+Wn*(5*en)+ni*(5*Ct)+Ni*(5*Mt)+Oi*(5*ot),qn+=dr>>>13,dr&=8191;let wr=qn+Yi*ot+Hi*Ue+Ui*De+vr*(5*Ut)+mr*(5*Nt);qn=wr>>>13,wr&=8191,wr+=Dr*(5*Xt)+Wn*(5*an)+ni*(5*en)+Ni*(5*Ct)+Oi*(5*Mt),qn+=wr>>>13,wr&=8191;let ts=qn+Yi*Mt+Hi*ot+Ui*Ue+vr*De+mr*(5*Ut);qn=ts>>>13,ts&=8191,ts+=Dr*(5*Nt)+Wn*(5*Xt)+ni*(5*an)+Ni*(5*en)+Oi*(5*Ct),qn+=ts>>>13,ts&=8191;let Vr=qn+Yi*Ct+Hi*Mt+Ui*ot+vr*Ue+mr*De;qn=Vr>>>13,Vr&=8191,Vr+=Dr*(5*Ut)+Wn*(5*Nt)+ni*(5*Xt)+Ni*(5*an)+Oi*(5*en),qn+=Vr>>>13,Vr&=8191;let Fo=qn+Yi*en+Hi*Ct+Ui*Mt+vr*ot+mr*Ue;qn=Fo>>>13,Fo&=8191,Fo+=Dr*De+Wn*(5*Ut)+ni*(5*Nt)+Ni*(5*Xt)+Oi*(5*an),qn+=Fo>>>13,Fo&=8191;let ea=qn+Yi*an+Hi*en+Ui*Ct+vr*Mt+mr*ot;qn=ea>>>13,ea&=8191,ea+=Dr*Ue+Wn*De+ni*(5*Ut)+Ni*(5*Nt)+Oi*(5*Xt),qn+=ea>>>13,ea&=8191;let ks=qn+Yi*Xt+Hi*an+Ui*en+vr*Ct+mr*Mt;qn=ks>>>13,ks&=8191,ks+=Dr*ot+Wn*Ue+ni*De+Ni*(5*Ut)+Oi*(5*Nt),qn+=ks>>>13,ks&=8191;let Ea=qn+Yi*Nt+Hi*Xt+Ui*an+vr*en+mr*Ct;qn=Ea>>>13,Ea&=8191,Ea+=Dr*Mt+Wn*ot+ni*Ue+Ni*De+Oi*(5*Ut),qn+=Ea>>>13,Ea&=8191;let Ns=qn+Yi*Ut+Hi*Nt+Ui*Xt+vr*an+mr*en;qn=Ns>>>13,Ns&=8191,Ns+=Dr*Ct+Wn*Mt+ni*ot+Ni*Ue+Oi*De,qn+=Ns>>>13,Ns&=8191,qn=(qn<<2)+qn|0,qn=qn+cr|0,cr=8191&qn,qn>>>=13,dr+=qn,q[0]=cr,q[1]=dr,q[2]=wr,q[3]=ts,q[4]=Vr,q[5]=Fo,q[6]=ea,q[7]=ks,q[8]=Ea,q[9]=Ns}finalize(){const{h:g,pad:b}=this,M=new Uint16Array(10);let U=g[1]>>>13;g[1]&=8191;for(let De=2;De<10;De++)g[De]+=U,U=g[De]>>>13,g[De]&=8191;g[0]+=5*U,U=g[0]>>>13,g[0]&=8191,g[1]+=U,U=g[1]>>>13,g[1]&=8191,g[2]+=U,M[0]=g[0]+5,U=M[0]>>>13,M[0]&=8191;for(let De=1;De<10;De++)M[De]=g[De]+U,U=M[De]>>>13,M[De]&=8191;M[9]-=8192;let q=(1^U)-1;for(let De=0;De<10;De++)M[De]&=q;q=~q;for(let De=0;De<10;De++)g[De]=g[De]&q|M[De];g[0]=65535&(g[0]|g[1]<<13),g[1]=65535&(g[1]>>>3|g[2]<<10),g[2]=65535&(g[2]>>>6|g[3]<<7),g[3]=65535&(g[3]>>>9|g[4]<<4),g[4]=65535&(g[4]>>>12|g[5]<<1|g[6]<<14),g[5]=65535&(g[6]>>>2|g[7]<<11),g[6]=65535&(g[7]>>>5|g[8]<<8),g[7]=65535&(g[8]>>>8|g[9]<<5);let fe=g[0]+b[0];g[0]=65535&fe;for(let De=1;De<8;De++)fe=(g[De]+b[De]|0)+(fe>>>16)|0,g[De]=65535&fe}update(g){Zr(this);const{buffer:b,blockLen:M}=this,U=(g=vs(g)).length;for(let q=0;q>>0,g[q++]=M[fe]>>>8;return g}digest(){const{buffer:g,outputLen:b}=this;this.digestInto(g);const M=g.slice(0,b);return this.destroy(),M}}const sc=function ua(p){const g=(M,U)=>p(U).update(vs(M)).digest(),b=p(new Uint8Array(32));return g.outputLen=b.outputLen,g.blockLen=b.blockLen,g.create=M=>p(M),g}(p=>new fl(p)),da=p=>Uint8Array.from(p.split("").map(g=>g.charCodeAt(0))),ir=da("expand 16-byte k"),Ya=da("expand 32-byte k"),jl=Ji(ir),S=Ji(Ya);function f(p,g){return p<>>32-g}function _(p){return p.byteOffset%4==0}S.slice();const de=2**32-1,ze=new Uint32Array;function wt(p,g){const{allowShortKeys:b,extendNonceFn:M,counterLength:U,counterRight:q,rounds:fe}=function Xo(p,g){if(null==g||"object"!=typeof g)throw new Error("options must be defined");return Object.assign(p,g)}({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},g);if("function"!=typeof p)throw new Error("core must be a function");return Io(U),Io(fe),Eo(q),Eo(b),(De,Ue,ot,Mt,Ct=0)=>{Mi(De),Mi(Ue),Mi(ot);const en=ot.length;if(Mt||(Mt=new Uint8Array(en)),Mi(Mt),Io(Ct),Ct<0||Ct>=de)throw new Error("arx: counter overflow");if(Mt.length=de)throw new Error("arx: counter overflow");const Nt=Math.min(64,Ue-Xt);if(Ct&&64===Nt){const Ut=Xt/4;if(Xt%4!=0)throw new Error("arx: invalid block position");for(let mn,dn=0;dn<16;dn++)mn=Ut+dn,an[mn]=en[mn]^Mt[dn];Xt+=64}else{for(let dn,Ut=0;Ut0;)an.pop().fill(0);return Mt}}function kt(p,g,b,M,U,q=20){let fe=p[0],De=p[1],Ue=p[2],ot=p[3],Mt=g[0],Ct=g[1],en=g[2],an=g[3],Xt=g[4],Nt=g[5],Ut=g[6],dn=g[7],mn=U,Un=b[0],Kn=b[1],xi=b[2],oi=fe,_i=De,bi=Ue,Yi=ot,Hi=Mt,Ui=Ct,vr=en,mr=an,Dr=Xt,Wn=Nt,ni=Ut,Ni=dn,Oi=mn,qn=Un,cr=Kn,dr=xi;for(let ts=0;ts{p.update(g);const b=g.length%16;b&&p.update(pn.subarray(b))},Nn=new Uint8Array(32);function Yn(p,g,b,M,U){const q=p(g,b,Nn),fe=sc.create(q);U&&Tn(fe,U),Tn(fe,M);const De=new Uint8Array(16),Ue=Cs(De);X(Ue,0,BigInt(U?U.length:0),!0),X(Ue,8,BigInt(M.length),!0),fe.update(De);const ot=fe.digest();return q.fill(0),ot}const Sn=p=>(g,b,M)=>(Mi(g,32),Mi(b),{encrypt:(q,fe)=>{const De=q.length,Ue=De+16;fe?Mi(fe,Ue):fe=new Uint8Array(Ue),p(g,b,q,fe,1);const ot=Yn(p,g,b,fe.subarray(0,-16),M);return fe.set(ot,De),fe},decrypt:(q,fe)=>{const De=q.length,Ue=De-16;if(De<16)throw new Error("encrypted data must be at least 16 bytes");fe?Mi(fe,Ue):fe=new Uint8Array(Ue);const ot=q.subarray(0,-16);if(!fr(q.subarray(-16),Yn(p,g,b,ot,M)))throw new Error("invalid tag");return p(g,b,ot,fe,1),fe}});Sn(xt),Sn(Ht);class On extends Ii.Vw{constructor(g,b){super(),this.finished=!1,this.destroyed=!1,Hr.hash(g);const M=(0,Ii.ZJ)(b);if(this.iHash=g.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 U=this.blockLen,q=new Uint8Array(U);q.set(M.length>U?g.create().update(M).digest():M);for(let fe=0;fenew On(p,g).update(b).digest();Si.create=(p,g)=>new On(p,g);const qi=new Uint8Array([0]),Pi=new Uint8Array;var Er=Object.defineProperty,sr=(p,g)=>{for(var b in g)Er(p,b,{get:g[b],enumerable:!0})},Zn=Symbol("verified"),gi=p=>p instanceof Object;function tr(p){if(!gi(p)||"number"!=typeof p.kind||"string"!=typeof p.content||"number"!=typeof p.created_at||"string"!=typeof p.pubkey||!p.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(p.tags))return!1;for(let g=0;gUr,QueueNode:()=>Qs,binarySearch:()=>kr,insertEventIntoAscendingList:()=>cs,insertEventIntoDescendingList:()=>Ys,normalizeURL:()=>$r,utf8Decoder:()=>Cr,utf8Encoder:()=>Br});var Cr=new TextDecoder("utf-8"),Br=new TextEncoder;function $r(p){-1===p.indexOf("://")&&(p="wss://"+p);let g=new URL(p);return g.pathname=g.pathname.replace(/\/+/g,"/"),g.pathname.endsWith("/")&&(g.pathname=g.pathname.slice(0,-1)),("80"===g.port&&"ws:"===g.protocol||"443"===g.port&&"wss:"===g.protocol)&&(g.port=""),g.searchParams.sort(),g.hash="",g.toString()}function Ys(p,g){const[b,M]=kr(p,U=>g.id===U.id?0:g.created_at===U.created_at?-1:U.created_at-g.created_at);return M||p.splice(b,0,g),p}function cs(p,g){const[b,M]=kr(p,U=>g.id===U.id?0:g.created_at===U.created_at?-1:g.created_at-U.created_at);return M||p.splice(b,0,g),p}function kr(p,g){let b=0,M=p.length-1;for(;b<=M;){const U=Math.floor((b+M)/2),q=g(p[U]);if(0===q)return[U,!0];q<0?M=U-1:b=U+1}return[b,!1]}var Qs=class{value;next=null;prev=null;constructor(p){this.value=p}},Ur=class{first;last;constructor(){this.first=null,this.last=null}enqueue(p){const g=new Qs(p);return this.last?this.last===this.first?(this.last=g,this.last.prev=this.first,this.first.next=g):(g.prev=this.last,this.last.next=g,this.last=g):(this.first=g,this.last=g),!0}dequeue(){if(!this.first)return null;if(this.first===this.last){const g=this.first;return this.first=null,this.last=null,g.value}const p=this.first;return this.first=p.next,p.value}};function Do(p){let g=so(Br.encode(function ws(p){if(!tr(p))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,p.pubkey,p.created_at,p.kind,p.tags,p.content])}(p)));return(0,Ii.My)(g)}var yi=new class{generateSecretKey(){return Lo.utils.randomPrivateKey()}getPublicKey(p){return(0,Ii.My)(Lo.getPublicKey(p))}finalizeEvent(p,g){const b=p;return b.pubkey=(0,Ii.My)(Lo.getPublicKey(g)),b.id=Do(b),b.sig=(0,Ii.My)(Lo.sign(Do(b),g)),b[Zn]=!0,b}verifyEvent(p){if("boolean"==typeof p[Zn])return p[Zn];const g=Do(p);if(g!==p.id)return p[Zn]=!1,!1;try{const b=Lo.verify(p.sig,g,p.pubkey);return p[Zn]=b,b}catch{return p[Zn]=!1,!1}}},eo=yi.generateSecretKey,ha=yi.getPublicKey,Jo=yi.finalizeEvent,Qa=yi.verifyEvent;function ac(p){return 1e3<=p&&p<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(p)}function pu(p){return[0,3].includes(p)||1e4<=p&&p<2e4}function mu(p){return 2e4<=p&&p<3e4}function kh(p){return 3e4<=p&&p<4e4}function wg(p){return ac(p)?"regular":pu(p)?"replaceable":mu(p)?"ephemeral":kh(p)?"parameterized":"unknown"}sr({},{Application:()=>yu,BadgeAward:()=>ut,BadgeDefinition:()=>xd,BlockedRelaysList:()=>_p,BookmarkList:()=>Nc,Bookmarksets:()=>yp,Calendar:()=>xl,CalendarEventRSVP:()=>Ba,ChannelCreation:()=>ji,ChannelHideMessage:()=>ya,ChannelMessage:()=>io,ChannelMetadata:()=>Qi,ChannelMuteUser:()=>qo,ClassifiedListing:()=>Ad,ClientAuth:()=>Hl,CommunitiesList:()=>cc,CommunityDefinition:()=>Ua,CommunityPostApproval:()=>mp,Contacts:()=>O,CreateOrUpdateProduct:()=>bp,CreateOrUpdateStall:()=>$l,Curationsets:()=>Cg,Date:()=>_r,DirectMessageRelaysList:()=>gu,DraftClassifiedListing:()=>bu,DraftLong:()=>wp,Emojisets:()=>Sd,EncryptedDirectMessage:()=>D,EventDeletion:()=>R,FileMetadata:()=>Ms,FileServerPreference:()=>Js,Followsets:()=>wd,GenericRepost:()=>ti,Genericlists:()=>Ed,GiftWrap:()=>vu,HTTPAuth:()=>Gi,Handlerinformation:()=>Eu,Handlerrecommendation:()=>Td,Highlights:()=>yd,InterestsList:()=>Bh,Interestsets:()=>_u,JobFeedback:()=>Za,JobRequest:()=>_d,JobResult:()=>gp,Label:()=>Ph,LightningPubRPC:()=>bd,LiveChatMessage:()=>Dl,LiveEvent:()=>gn,LongFormArticle:()=>Uh,Metadata:()=>mi,Mutelist:()=>kc,NWCWalletInfo:()=>Pc,NWCWalletRequest:()=>Fc,NWCWalletResponse:()=>ml,NostrConnect:()=>qa,OpenTimestamps:()=>La,Pinlist:()=>Os,PrivateDirectMessage:()=>Kt,ProblemTracker:()=>vd,ProfileBadges:()=>Dd,PublicChatsList:()=>fa,Reaction:()=>Se,RecommendRelay:()=>E,RelayList:()=>vp,Relaysets:()=>Cd,Report:()=>lc,Reporting:()=>Nh,Repost:()=>Y,Seal:()=>sn,SearchRelaysList:()=>Ja,ShortTextNote:()=>Eg,Time:()=>wu,UserEmojiList:()=>Zs,UserStatuses:()=>ar,Zap:()=>Mr,ZapGoal:()=>Fh,ZapRequest:()=>Lh,classifyKind:()=>wg,isEphemeralKind:()=>mu,isParameterizedReplaceableKind:()=>kh,isRegularKind:()=>ac,isReplaceableKind:()=>pu});var mi=0,Eg=1,E=2,O=3,D=4,R=5,Y=6,Se=7,ut=8,sn=13,Kt=14,ti=16,ji=40,Qi=41,io=42,ya=43,qo=44,La=1040,Ms=1063,Dl=1311,vd=1971,lc=1984,Nh=1984,Ph=1985,mp=4550,_d=5999,gp=6999,Za=7e3,Fh=9041,Lh=9734,Mr=9735,yd=9802,kc=1e4,Os=10001,vp=10002,Nc=10003,cc=10004,fa=10005,_p=10006,Ja=10007,Bh=10015,Zs=10030,gu=10050,vu=10059,Js=10096,Pc=13194,bd=21e3,Hl=22242,Fc=23194,ml=23195,qa=24133,Gi=27235,wd=3e4,Ed=30001,Cd=30002,yp=30003,Cg=30004,Dd=30008,xd=30009,_u=30015,$l=30017,bp=30018,Uh=30023,wp=30024,Sd=30030,yu=30078,gn=30311,ar=30315,Ad=30402,bu=30403,_r=31922,wu=31923,xl=31924,Ba=31925,Td=31989,Eu=31990,Ua=34550;function uc(p,g){if(p.ids&&-1===p.ids.indexOf(g.id)||p.kinds&&-1===p.kinds.indexOf(g.kind)||p.authors&&-1===p.authors.indexOf(g.pubkey))return!1;for(let b in p)if("#"===b[0]){let U=p[`#${b.slice(1)}`];if(U&&!g.tags.find(([q,fe])=>q===b.slice(1)&&-1!==U.indexOf(fe)))return!1}return!(p.since&&g.created_atp.until)}function Ao(p,g){let b=g.length+3,M=p.indexOf(`"${g}":`)+b,U=p.slice(M).indexOf('"')+M+1;return p.slice(U,U+64)}function el(p,g){let b=g.length,M=p.indexOf(`"${g}":`)+b+3,U=p.slice(M),q=Math.min(U.indexOf(","),U.indexOf("}"));return parseInt(U.slice(0,q),10)}function Lc(p){let g=p.slice(0,22).indexOf('"EVENT"');if(-1===g)return null;let b=p.slice(g+7+1).indexOf('"');if(-1===b)return null;let M=g+7+1+b,U=p.slice(M+1,80).indexOf('"');return-1===U?null:p.slice(M+1,M+1+U)}function tl(p,g){return g===Ao(p,"id")}function gl(p,g){return g===Ao(p,"pubkey")}function Cp(p,g){return g===el(p,"kind")}function Du(p,g){return{kind:Hl,created_at:Math.floor(Date.now()/1e3),tags:[["relay",p],["challenge",g]],content:""}}function Dp(){return dc.apply(this,arguments)}function dc(){return(dc=(0,y.A)(function*(){return new Promise(p=>{const g=new MessageChannel,b=()=>{g.port1.removeEventListener("message",b),p()};g.port1.addEventListener("message",b),g.port2.postMessage(0),g.port1.start()})})).apply(this,arguments)}sr({},{getHex64:()=>Ao,getInt:()=>el,getSubscriptionId:()=>Lc,matchEventId:()=>tl,matchEventKind:()=>Cp,matchEventPubkey:()=>gl}),sr({},{makeAuthEvent:()=>Du});var Vh=p=>(p[Zn]=!0,!0),xu=class{url;_connected=!1;onclose=null;onnotice=p=>console.debug(`NOTICE from ${this.url}: ${p}`);_onauth=null;baseEoseTimeout=4400;connectionTimeout=4400;openSubs=new Map;connectionTimeoutHandle;connectionPromise;openCountRequests=new Map;openEventPublishes=new Map;ws;incomingMessageQueue=new Ur;queueRunning=!1;challenge;serial=0;verifyEvent;_WebSocket;constructor(p,g){this.url=$r(p),this.verifyEvent=g.verifyEvent,this._WebSocket=g.websocketImplementation||WebSocket}static connect(p,g){return(0,y.A)(function*(){const b=new xu(p,g);return yield b.connect(),b})()}closeAllSubscriptions(p){for(let[g,b]of this.openSubs)b.close(p);this.openSubs.clear();for(let[g,b]of this.openEventPublishes)b.reject(new Error(p));this.openEventPublishes.clear();for(let[g,b]of this.openCountRequests)b.reject(new Error(p));this.openCountRequests.clear()}get connected(){return this._connected}connect(){var p=this;return(0,y.A)(function*(){return p.connectionPromise||(p.challenge=void 0,p.connectionPromise=new Promise((g,b)=>{p.connectionTimeoutHandle=setTimeout(()=>{b("connection timed out"),p.connectionPromise=void 0,p.onclose?.(),p.closeAllSubscriptions("relay connection timed out")},p.connectionTimeout);try{p.ws=new p._WebSocket(p.url)}catch(M){return void b(M)}p.ws.onopen=()=>{clearTimeout(p.connectionTimeoutHandle),p._connected=!0,g()},p.ws.onerror=M=>{b(M.message||"websocket error"),p._connected&&(p._connected=!1,p.connectionPromise=void 0,p.onclose?.(),p.closeAllSubscriptions("relay connection errored"))},p.ws.onclose=(0,y.A)(function*(){p._connected&&(p._connected=!1,p.connectionPromise=void 0,p.onclose?.(),p.closeAllSubscriptions("relay connection closed"))}),p.ws.onmessage=p._onmessage.bind(p)})),p.connectionPromise})()}runQueue(){var p=this;return(0,y.A)(function*(){for(p.queueRunning=!0;!1!==p.handleNext();)yield Dp();p.queueRunning=!1})()}handleNext(){const p=this.incomingMessageQueue.dequeue();if(!p)return!1;const g=Lc(p);if(g){const b=this.openSubs.get(g);if(!b)return;const M=Ao(p,"id"),U=b.alreadyHaveEvent?.(M);if(b.receivedEvent?.(this,M),U)return}try{let b=JSON.parse(p);switch(b[0]){case"EVENT":{const M=this.openSubs.get(b[1]),U=b[2];return void(this.verifyEvent(U)&&function Cu(p,g){for(let b=0;b{g.ws?.send(p)})})()}auth(p){var g=this;return(0,y.A)(function*(){if(!g.challenge)throw new Error("can't perform auth, no challenge was received");const b=yield p(Du(g.url,g.challenge)),M=new Promise((U,q)=>{g.openEventPublishes.set(b.id,{resolve:U,reject:q})});return g.send('["AUTH",'+JSON.stringify(b)+"]"),M})()}publish(p){var g=this;return(0,y.A)(function*(){const b=new Promise((M,U)=>{g.openEventPublishes.set(p.id,{resolve:M,reject:U})});return g.send('["EVENT",'+JSON.stringify(p)+"]"),b})()}count(p,g){var b=this;return(0,y.A)(function*(){b.serial++;const M=g?.id||"count:"+b.serial,U=new Promise((q,fe)=>{b.openCountRequests.set(M,{resolve:q,reject:fe})});return b.send('["COUNT","'+M+'",'+JSON.stringify(p).substring(1)),U})()}subscribe(p,g){const b=this.prepareSubscription(p,g);return b.fire(),b}prepareSubscription(p,g){this.serial++;const b=g.id||"sub:"+this.serial,M=new Od(this,b,p,g);return this.openSubs.set(b,M),M}close(){this.closeAllSubscriptions("relay connection closed by us"),this._connected=!1,this.ws?.close()}_onmessage(p){this.incomingMessageQueue.enqueue(p.data),this.queueRunning||this.runQueue()}},Od=class{relay;id;closed=!1;eosed=!1;filters;alreadyHaveEvent;receivedEvent;onevent;oneose;onclose;eoseTimeout;eoseTimeoutHandle;constructor(p,g,b,M){this.relay=p,this.filters=b,this.id=g,this.alreadyHaveEvent=M.alreadyHaveEvent,this.receivedEvent=M.receivedEvent,this.eoseTimeout=M.eoseTimeout||p.baseEoseTimeout,this.oneose=M.oneose,this.onclose=M.onclose,this.onevent=M.onevent||(U=>{console.warn(`onevent() callback not defined for subscription '${this.id}' in relay ${this.relay.url}. event received:`,U)})}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(p="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?.(p)}};try{WebSocket}catch{}var hc,jh=class{relays=new Map;seenOn=new Map;trackRelays=!1;verifyEvent;trustedRelayURLs=new Set;_WebSocket;constructor(p){this.verifyEvent=p.verifyEvent,this._WebSocket=p.websocketImplementation}ensureRelay(p,g){var b=this;return(0,y.A)(function*(){p=$r(p);let M=b.relays.get(p);return M||(M=new xu(p,{verifyEvent:b.trustedRelayURLs.has(p)?Vh:b.verifyEvent,websocketImplementation:b._WebSocket}),g?.connectionTimeout&&(M.connectionTimeout=g.connectionTimeout),b.relays.set(p,M)),yield M.connect(),M})()}close(p){p.map($r).forEach(g=>{this.relays.get(g)?.close()})}subscribeMany(p,g,b){return this.subscribeManyMap(Object.fromEntries(p.map(M=>[M,g])),b)}subscribeManyMap(p,g){var b=this;this.trackRelays&&(g.receivedEvent=(en,an)=>{let Xt=this.seenOn.get(an);Xt||(Xt=new Set,this.seenOn.set(an,Xt)),Xt.add(en)});const M=new Set,U=[],q=Object.keys(p).length,fe=[];let De=en=>{fe[en]=!0,fe.filter(an=>an).length===q&&(g.oneose?.(),De=()=>{})};const Ue=[];let ot=(en,an)=>{De(en),Ue[en]=an,Ue.filter(Xt=>Xt).length===q&&(g.onclose?.(Ue),ot=()=>{})};const Mt=en=>{if(g.alreadyHaveEvent?.(en))return!0;const an=M.has(en);return M.add(en),an},Ct=Promise.all(Object.entries(p).map(function(){var en=(0,y.A)(function*(an,Xt,Nt){if(Nt.indexOf(an)!==Xt)return void ot(Xt,"duplicate url");let mn,[Ut,dn]=an;Ut=$r(Ut);try{mn=yield b.ensureRelay(Ut,{connectionTimeout:g.maxWait?Math.max(.8*g.maxWait,g.maxWait-1e3):void 0})}catch(Kn){return void ot(Xt,Kn?.message||String(Kn))}let Un=mn.subscribe(dn,{...g,oneose:()=>De(Xt),onclose:Kn=>ot(Xt,Kn),alreadyHaveEvent:Mt,eoseTimeout:g.maxWait});U.push(Un)});return function(an,Xt,Nt){return en.apply(this,arguments)}}()));return{close:()=>(0,y.A)(function*(){yield Ct,U.forEach(en=>{en.close()})})()}}subscribeManyEose(p,g,b){const M=this.subscribeMany(p,g,{...b,oneose(){M.close()}});return M}querySync(p,g,b){var M=this;return(0,y.A)(function*(){return new Promise(function(){var U=(0,y.A)(function*(q){const fe=[];M.subscribeManyEose(p,[g],{...b,onevent(De){fe.push(De)},onclose(De){q(fe)}})});return function(q){return U.apply(this,arguments)}}())})()}get(p,g,b){var M=this;return(0,y.A)(function*(){g.limit=1;const U=yield M.querySync(p,g,b);return U.sort((q,fe)=>fe.created_at-q.created_at),U[0]||null})()}publish(p,g){var b=this;return p.map($r).map(function(){var M=(0,y.A)(function*(U,q,fe){if(fe.indexOf(U)!==q)return Promise.reject("duplicate url");let De=yield b.ensureRelay(U);return De.publish(g).then(Ue=>{if(b.trackRelays){let ot=b.seenOn.get(g.id);ot||(ot=new Set,b.seenOn.set(g.id,ot)),ot.add(De)}return Ue})});return function(U,q,fe){return M.apply(this,arguments)}}())}listConnectionStatus(){const p=new Map;return this.relays.forEach((g,b)=>p.set(b,g.connected)),p}destroy(){this.relays.forEach(p=>p.close()),this.relays=new Map}};try{hc=WebSocket}catch{}var Hh=class extends jh{constructor(){super({verifyEvent:Qa,websocketImplementation:hc})}},Rd={};sr(Rd,{BECH32_REGEX:()=>Bc,Bech32MaxSize:()=>Sl,NostrTypeGuard:()=>$h,decode:()=>ba,encodeBytes:()=>Uc,naddrEncode:()=>nl,neventEncode:()=>Vc,noteEncode:()=>Wh,nprofileEncode:()=>Gh,npubEncode:()=>zh,nsecEncode:()=>Su});var $h={isNProfile:p=>/^nprofile1[a-z\d]+$/.test(p||""),isNRelay:p=>/^nrelay1[a-z\d]+$/.test(p||""),isNEvent:p=>/^nevent1[a-z\d]+$/.test(p||""),isNAddr:p=>/^naddr1[a-z\d]+$/.test(p||""),isNSec:p=>/^nsec1[a-z\d]{58}$/.test(p||""),isNPub:p=>/^npub1[a-z\d]{58}$/.test(p||""),isNote:p=>/^note1[a-z\d]+$/.test(p||""),isNcryptsec:p=>/^ncryptsec1[a-z\d]+$/.test(p||"")},Sl=5e3,Bc=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function ba(p){let{prefix:g,words:b}=lr.I.decode(p,Sl),M=new Uint8Array(lr.I.fromWords(b));switch(g){case"nprofile":{let U=to(M);if(!U[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==U[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:(0,Ii.My)(U[0][0]),relays:U[1]?U[1].map(q=>Cr.decode(q)):[]}}}case"nevent":{let U=to(M);if(!U[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==U[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(U[2]&&32!==U[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(U[3]&&4!==U[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:(0,Ii.My)(U[0][0]),relays:U[1]?U[1].map(q=>Cr.decode(q)):[],author:U[2]?.[0]?(0,Ii.My)(U[2][0]):void 0,kind:U[3]?.[0]?parseInt((0,Ii.My)(U[3][0]),16):void 0}}}case"naddr":{let U=to(M);if(!U[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!U[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==U[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!U[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==U[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Cr.decode(U[0][0]),pubkey:(0,Ii.My)(U[2][0]),kind:parseInt((0,Ii.My)(U[3][0]),16),relays:U[1]?U[1].map(q=>Cr.decode(q)):[]}}}case"nsec":return{type:g,data:M};case"npub":case"note":return{type:g,data:(0,Ii.My)(M)};default:throw new Error(`unknown prefix ${g}`)}}function to(p){let g={},b=p;for(;b.length>0;){let M=b[0],U=b[1],q=b.slice(2,2+U);if(b=b.slice(2+U),q.lengthBr.encode(b))}))}function Vc(p){let g;return void 0!==p.kind&&(g=function es(p){const g=new Uint8Array(4);return g[0]=p>>24&255,g[1]=p>>16&255,g[2]=p>>8&255,g[3]=255&p,g}(p.kind)),Au("nevent",vl({0:[(0,Ii.aT)(p.id)],1:(p.relays||[]).map(M=>Br.encode(M)),2:p.author?[(0,Ii.aT)(p.author)]:[],3:g?[new Uint8Array(g)]:[]}))}function nl(p){let g=new ArrayBuffer(4);return new DataView(g).setUint32(0,p.kind,!1),Au("naddr",vl({0:[Br.encode(p.identifier)],1:(p.relays||[]).map(M=>Br.encode(M)),2:[(0,Ii.aT)(p.pubkey)],3:[new Uint8Array(g)]}))}function vl(p){let g=[];return Object.entries(p).reverse().forEach(([b,M])=>{M.forEach(U=>{let q=new Uint8Array(U.length+2);q.set([parseInt(b)],0),q.set([U.length],1),q.set(U,2),g.push(q)})}),(0,Ii.Id)(...g)}var Al={};function Tu(p,g,b){return Iu.apply(this,arguments)}function Iu(){return(Iu=(0,y.A)(function*(p,g,b){const M=p instanceof Uint8Array?(0,Ii.My)(p):p,q=zl(ci.getSharedSecret(M,"02"+g));let fe=Uint8Array.from((0,Ii.po)(16)),De=Br.encode(b),Ue=Is(q,fe).encrypt(De);return`${lr.K3.encode(new Uint8Array(Ue))}?iv=${lr.K3.encode(new Uint8Array(fe.buffer))}`})).apply(this,arguments)}function Kh(p,g,b){return kd.apply(this,arguments)}function kd(){return(kd=(0,y.A)(function*(p,g,b){const M=p instanceof Uint8Array?(0,Ii.My)(p):p;let[U,q]=b.split("?iv="),De=zl(ci.getSharedSecret(M,"02"+g)),Ue=lr.K3.decode(q),ot=lr.K3.decode(U),Mt=Is(De,Ue).decrypt(ot);return Cr.decode(Mt)})).apply(this,arguments)}function zl(p){return p.slice(1,33)}sr(Al,{decrypt:()=>Kh,encrypt:()=>Tu}),sr({},{NIP05_REGEX:()=>Nd,isNip05:()=>pc,isValid:()=>Hc,queryProfile:()=>Tp,searchDomain:()=>Ap,useFetchImplementation:()=>Mu});var Gl,Nd=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,pc=p=>Nd.test(p||"");try{Gl=fetch}catch{}function Mu(p){Gl=p}function Ap(p){return Ou.apply(this,arguments)}function Ou(){return(Ou=(0,y.A)(function*(p,g=""){try{const b=`https://${p}/.well-known/nostr.json?name=${g}`;return(yield(yield Gl(b,{redirect:"error"})).json()).names}catch{return{}}})).apply(this,arguments)}function Tp(p){return Pd.apply(this,arguments)}function Pd(){return(Pd=(0,y.A)(function*(p){const g=p.match(Nd);if(!g)return null;const[b,M="_",U]=g;try{const q=`https://${U}/.well-known/nostr.json?name=${M}`,fe=yield(yield Gl(q,{redirect:"error"})).json();let De=fe.names[M];return De?{pubkey:De,relays:fe.relays?.[De]}:null}catch{return null}})).apply(this,arguments)}function Hc(p,g){return il.apply(this,arguments)}function il(){return(il=(0,y.A)(function*(p,g){let b=yield Tp(g);return!!b&&b.pubkey===p})).apply(this,arguments)}function $c(p){const g={reply:void 0,root:void 0,mentions:[],profiles:[]},b=[];for(const M of p.tags)"e"===M[0]&&M[1]&&b.push(M),"p"===M[0]&&M[1]&&g.profiles.push({pubkey:M[1],relays:M[2]?[M[2]]:[]});for(let M=0;M$c}),sr({},{fetchRelayInformation:()=>Fd,useFetchImplementation:()=>Ip});try{fetch}catch{}function Ip(p){}function Fd(p){return gc.apply(this,arguments)}function gc(){return(gc=(0,y.A)(function*(p){return yield(yield fetch(p.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()})).apply(this,arguments)}function Ld(p){let g=0;for(let b=0;b=g)break}return M}function rl(p,g,b,M){return Jo({kind:Y,tags:[...p.tags??[],["e",g.id,b],["p",g.pubkey]],content:""===p.content?"":JSON.stringify(g),created_at:p.created_at},M)}function Ru(p){if(p.kind!==Y)return;let g,b;for(let M=p.tags.length-1;M>=0&&(void 0===g||void 0===b);M--){const U=p.tags[M];U.length>=2&&("e"===U[0]&&void 0===g?g=U:"p"===U[0]&&void 0===b&&(b=U))}return void 0!==g?{id:g[1],relays:[g[2],b?.[2]].filter(M=>"string"==typeof M),author:b?.[1]}:void 0}function ku(p,{skipVerification:g}={}){const b=Ru(p);if(void 0===b||""===p.content)return;let M;try{M=JSON.parse(p.content)}catch{return}return M.id===b.id&&(g||Qa(M))?M:void 0}sr({},{getPow:()=>Ld,minePow:()=>Qh}),sr({},{finishRepostEvent:()=>rl,getRepostedEvent:()=>ku,getRepostedEventPointer:()=>Ru}),sr({},{NOSTR_URI_REGEX:()=>zc,parse:()=>Pu,test:()=>Nu});var zc=new RegExp(`nostr:(${Bc.source})`);function Nu(p){return"string"==typeof p&&new RegExp(`^${zc.source}$`).test(p)}function Pu(p){const g=p.match(new RegExp(`^${zc.source}$`));if(!g)throw new Error(`Invalid Nostr URI: ${p}`);return{uri:g[0],value:g[1],decoded:ba(g[1])}}function wa(p,g,b){const M=g.tags.filter(U=>U.length>=2&&("e"===U[0]||"p"===U[0]));return Jo({...p,kind:Se,tags:[...p.tags??[],...M,["e",g.id],["p",g.pubkey]],content:p.content??"+"},b)}function Fu(p){if(p.kind!==Se)return;let g,b;for(let M=p.tags.length-1;M>=0&&(void 0===g||void 0===b);M--){const U=p.tags[M];U.length>=2&&("e"===U[0]&&void 0===g?g=U:"p"===U[0]&&void 0===b&&(b=U))}return void 0!==g&&void 0!==b?{id:g[1],relays:[g[2],b[2]].filter(M=>void 0!==M),author:b[1]}:void 0}sr({},{finishReactionEvent:()=>wa,getReactedEventPointer:()=>Fu}),sr({},{matchAll:()=>Rp,regex:()=>_c,replaceAll:()=>Lu});var _c=()=>new RegExp(`\\b${zc.source}\\b`,"g");function*Rp(p){const g=p.matchAll(_c());for(const b of g)try{const[M,U]=b;yield{uri:M,value:U,decoded:ba(U),start:b.index,end:b.index+M.length}}catch{}}function Lu(p,g){return p.replaceAll(_c(),(b,M)=>g({uri:b,value:M,decoded:ba(M)}))}sr({},{channelCreateEvent:()=>kp,channelHideMessageEvent:()=>yc,channelMessageEvent:()=>Wc,channelMetadataEvent:()=>Jh,channelMuteUserEvent:()=>Kl});var kp=(p,g)=>{let b;if("object"==typeof p.content)b=JSON.stringify(p.content);else{if("string"!=typeof p.content)return;b=p.content}return Jo({kind:ji,tags:[...p.tags??[]],content:b,created_at:p.created_at},g)},Jh=(p,g)=>{let b;if("object"==typeof p.content)b=JSON.stringify(p.content);else{if("string"!=typeof p.content)return;b=p.content}return Jo({kind:Qi,tags:[["e",p.channel_create_event_id],...p.tags??[]],content:b,created_at:p.created_at},g)},Wc=(p,g)=>{const b=[["e",p.channel_create_event_id,p.relay_url,"root"]];return p.reply_to_channel_message_event_id&&b.push(["e",p.reply_to_channel_message_event_id,p.relay_url,"reply"]),Jo({kind:io,tags:[...b,...p.tags??[]],content:p.content,created_at:p.created_at},g)},yc=(p,g)=>{let b;if("object"==typeof p.content)b=JSON.stringify(p.content);else{if("string"!=typeof p.content)return;b=p.content}return Jo({kind:ya,tags:[["e",p.channel_message_event_id],...p.tags??[]],content:b,created_at:p.created_at},g)},Kl=(p,g)=>{let b;if("object"==typeof p.content)b=JSON.stringify(p.content);else{if("string"!=typeof p.content)return;b=p.content}return Jo({kind:qo,tags:[["p",p.pubkey_to_mute],...p.tags??[]],content:b,created_at:p.created_at},g)};sr({},{EMOJI_SHORTCODE_REGEX:()=>Ud,matchAll:()=>Tl,regex:()=>Rs,replaceAll:()=>Np});var Xl,Ud=/:(\w+):/,Rs=()=>new RegExp(`\\B${Ud.source}\\B`,"g");function*Tl(p){const g=p.matchAll(Rs());for(const b of g)try{const[M,U]=b;yield{shortcode:M,name:U,start:b.index,end:b.index+M.length}}catch{}}function Np(p,g){return p.replaceAll(Rs(),(b,M)=>g({shortcode:b,name:M}))}sr({},{useFetchImplementation:()=>Pp,validateGithub:()=>Vd});try{Xl=fetch}catch{}function Pp(p){Xl=p}function Vd(p,g,b){return yl.apply(this,arguments)}function yl(){return(yl=(0,y.A)(function*(p,g,b){try{return(yield(yield Xl(`https://gist.github.com/${g}/${b}/raw`)).text())===`Verifying that I control the following Nostr public key: ${p}`}catch{return!1}})).apply(this,arguments)}sr({},{decrypt:()=>zd,encrypt:()=>$d,getConversationKey:()=>ef,v2:()=>Es});var Yl=1,Uu=65535;function ef(p,g){const b=ci.getSharedSecret(p,"02"+g).subarray(1,33);return function Ai(p,g,b){return Hr.hash(p),void 0===b&&(b=new Uint8Array(p.outputLen)),Si(p,(0,Ii.ZJ)(b),(0,Ii.ZJ)(g))}(so,b,"nip44-v2")}function jd(p,g){const b=function er(p,g,b,M=32){if(Hr.hash(p),Hr.number(M),M>255*p.outputLen)throw new Error("Length should be <= 255*HashLen");const U=Math.ceil(M/p.outputLen);void 0===b&&(b=Pi);const q=new Uint8Array(U*p.outputLen),fe=Si.create(p,g),De=fe._cloneInto(),Ue=new Uint8Array(fe.outputLen);for(let ot=0;otUu)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const g=new Uint8Array(2);return new DataView(g.buffer).setUint16(0,p,!1),g}(b),U=new Uint8Array(Gc(b)-b);return(0,Ii.Id)(M,g,U)}(p),De=xt(M,U,fe),Ue=Hd(q,De,b);return lr.K3.encode((0,Ii.Id)(new Uint8Array([2]),b,De,Ue))}function zd(p,g){const{nonce:b,ciphertext:M,mac:U}=function Lp(p){if("string"!=typeof p)throw new Error("payload must be a valid string");const g=p.length;if(g<132||g>87472)throw new Error("invalid payload length: "+g);if("#"===p[0])throw new Error("unknown encryption version");let b;try{b=lr.K3.decode(p)}catch(q){throw new Error("invalid base64: "+q.message)}const M=b.length;if(M<99||M>65603)throw new Error("invalid data length: "+M);const U=b[0];if(2!==U)throw new Error("unknown encryption version "+U);return{nonce:b.subarray(1,33),ciphertext:b.subarray(33,-32),mac:b.subarray(-32)}}(p),{chacha_key:q,chacha_nonce:fe,hmac_key:De}=jd(g,b);if(!fr(Hd(De,M,b),U))throw new Error("invalid MAC");return function Vu(p){const g=new DataView(p.buffer).getUint16(0),b=p.subarray(2,2+g);if(gUu||b.length!==g||p.length!==2+Gc(g))throw new Error("invalid padding");return Cr.decode(b)}(xt(q,fe,M))}var Kc,Es={utils:{getConversationKey:ef,calcPaddedLen:Gc},encrypt:$d,decrypt:zd};function Bp(p){const{pathname:g,searchParams:b}=new URL(p),M=g,U=b.get("relay"),q=b.get("secret");if(!M||!U||!q)throw new Error("invalid connection string");return{pubkey:M,relay:U,secret:q}}function Sg(p,g,b){return ju.apply(this,arguments)}function ju(){return(ju=(0,y.A)(function*(p,g,b){const U=yield Tu(g,p,JSON.stringify({method:"pay_invoice",params:{invoice:b}})),q={kind:Fc,created_at:Math.round(Date.now()/1e3),content:U,tags:[["p",p]]};return Jo(q,g)})).apply(this,arguments)}sr({},{makeNwcRequestEvent:()=>Sg,parseConnectionString:()=>Bp}),sr({},{getZapEndpoint:()=>Hu,makeZapReceipt:()=>nf,makeZapRequest:()=>Ag,useFetchImplementation:()=>tf,validateZapRequest:()=>bc});try{Kc=fetch}catch{}function tf(p){Kc=p}function Hu(p){return Wd.apply(this,arguments)}function Wd(){return(Wd=(0,y.A)(function*(p){try{let g="",{lud06:b,lud16:M}=JSON.parse(p.content);if(b){let{words:fe}=lr.I.decode(b,1e3),De=lr.I.fromWords(fe);g=Cr.decode(De)}else{if(!M)return null;{let[fe,De]=M.split("@");g=new URL(`/.well-known/lnurlp/${fe}`,`https://${De}`).toString()}}let q=yield(yield Kc(g)).json();if(q.allowsNostr&&q.nostrPubkey)return q.callback}catch{}return null})).apply(this,arguments)}function Ag({profile:p,event:g,amount:b,relays:M,comment:U=""}){if(!b)throw new Error("amount not given");if(!p)throw new Error("profile not given");let q={kind:9734,created_at:Math.round(Date.now()/1e3),content:U,tags:[["p",p],["amount",b.toString()],["relays",...M]]};return g&&q.tags.push(["e",g]),q}function bc(p){let g;try{g=JSON.parse(p)}catch{return"Invalid zap request JSON."}if(!tr(g))return"Zap request is not a valid Nostr event.";if(!Qa(g))return"Invalid signature on zap request.";let b=g.tags.find(([q,fe])=>"p"===q&&fe);if(!b)return"Zap request doesn't have a 'p' tag.";if(!b[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let M=g.tags.find(([q,fe])=>"e"===q&&fe);return M&&!M[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":g.tags.find(([q,fe])=>"relays"===q&&fe)?null:"Zap request doesn't have a 'relays' tag."}function nf({zapRequest:p,preimage:g,bolt11:b,paidAt:M}){let U=JSON.parse(p),q=U.tags.filter(([De])=>"e"===De||"p"===De||"a"===De),fe={kind:9735,created_at:Math.round(M.getTime()/1e3),content:"",tags:[...q,["P",U.pubkey],["bolt11",b],["description",p]]};return g&&fe.tags.push(["preimage",g]),fe}sr({},{getToken:()=>zr,hashPayload:()=>zu,unpackEventFromToken:()=>ol,validateEvent:()=>Wu,validateEventKind:()=>mo,validateEventMethodTag:()=>Xc,validateEventPayloadTag:()=>rf,validateEventTimestamp:()=>us,validateEventUrlTag:()=>Gd,validateToken:()=>Ql});var Va="Nostr ";function zr(p,g,b){return $u.apply(this,arguments)}function $u(){return($u=(0,y.A)(function*(p,g,b,M=!1,U){const q={kind:Gi,tags:[["u",p],["method",g]],created_at:Math.round((new Date).getTime()/1e3),content:""};U&&q.tags.push(["payload",zu(U)]);const fe=yield b(q);return(M?Va:"")+lr.K3.encode(Br.encode(JSON.stringify(fe)))})).apply(this,arguments)}function Ql(p,g,b){return Vp.apply(this,arguments)}function Vp(){return(Vp=(0,y.A)(function*(p,g,b){const M=yield ol(p).catch(q=>{throw q});return yield Wu(M,g,b).catch(q=>{throw q})})).apply(this,arguments)}function ol(p){return Il.apply(this,arguments)}function Il(){return(Il=(0,y.A)(function*(p){if(!p)throw new Error("Missing token");p=p.replace(Va,"");const g=Cr.decode(lr.K3.decode(p));if(!g||0===g.length||!g.startsWith("{"))throw new Error("Invalid token");return JSON.parse(g)})).apply(this,arguments)}function us(p){return!!p.created_at&&Math.round((new Date).getTime()/1e3)-p.created_at<60}function mo(p){return p.kind===Gi}function Gd(p,g){const b=p.tags.find(M=>"u"===M[0]);return!!b&&b.length>0&&b[1]===g}function Xc(p,g){const b=p.tags.find(M=>"method"===M[0]);return!!b&&b.length>0&&b[1].toLowerCase()===g.toLowerCase()}function zu(p){const g=so(Br.encode(JSON.stringify(p)));return(0,Ii.My)(g)}function rf(p,g){const b=p.tags.find(U=>"payload"===U[0]);if(!b)return!1;const M=zu(g);return b.length>0&&b[1]===M}function Wu(p,g,b,M){return Yc.apply(this,arguments)}function Yc(){return(Yc=(0,y.A)(function*(p,g,b,M){if(!Qa(p))throw new Error("Invalid nostr event, signature invalid");if(!mo(p))throw new Error("Invalid nostr event, kind invalid");if(!us(p))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!Gd(p,g))throw new Error("Invalid nostr event, url tag invalid");if(!Xc(p,b))throw new Error("Invalid nostr event, method tag invalid");if(M&&"object"==typeof M&&Object.keys(M).length>0&&!rf(p,M))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})).apply(this,arguments)}},8418:(tn,Ne,v)=>{"use strict";v.d(Ne,{In:()=>P,rV:()=>B});var P=3,B=4},6391:(tn,Ne,v)=>{"use strict";v.d(Ne,{Vw:()=>te,My:()=>P,Id:()=>ke,O8:()=>G,aT:()=>B,po:()=>We,Ow:()=>ee,ZJ:()=>Re,ld:()=>gt});const u="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,y=ae=>ae instanceof Uint8Array,G=ae=>new DataView(ae.buffer,ae.byteOffset,ae.byteLength),ee=(ae,me)=>ae<<32-me|ae>>>me;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const V=Array.from({length:256},(ae,me)=>me.toString(16).padStart(2,"0"));function P(ae){if(!y(ae))throw new Error("Uint8Array expected");let me="";for(let Le=0;Lent+At.length,0));let Le=0;return ae.forEach(nt=>{if(!y(nt))throw new Error("Uint8Array expected");me.set(nt,Le),Le+=nt.length}),me}class te{clone(){return this._cloneInto()}}function gt(ae){const me=nt=>ae().update(Re(nt)).digest(),Le=ae();return me.outputLen=Le.outputLen,me.blockLen=Le.blockLen,me.create=()=>ae(),me}function We(ae=32){if(u&&"function"==typeof u.getRandomValues)return u.getRandomValues(new Uint8Array(ae));throw new Error("crypto.getRandomValues must be defined")}},467:(tn,Ne,v)=>{"use strict";function u(o,L,G,ee,oe,V,P){try{var B=o[V](P),F=B.value}catch(ue){return void G(ue)}B.done?L(F):Promise.resolve(F).then(ee,oe)}function y(o){return function(){var L=this,G=arguments;return new Promise(function(ee,oe){var V=o.apply(L,G);function P(F){u(V,ee,oe,P,B,"next",F)}function B(F){u(V,ee,oe,P,B,"throw",F)}P(void 0)})}}v.d(Ne,{A:()=>y})},1635:(tn,Ne,v)=>{"use strict";function ue(_e,Ae,J,Ie){return new(J||(J=Promise))(function(Pe,ht){function Xe(ie){try{Me(Ie.next(ie))}catch(ve){ht(ve)}}function Je(ie){try{Me(Ie.throw(ie))}catch(ve){ht(ve)}}function Me(ie){ie.done?Pe(ie.value):function Ot(Pe){return Pe instanceof J?Pe:new J(function(ht){ht(Pe)})}(ie.value).then(Xe,Je)}Me((Ie=Ie.apply(_e,Ae||[])).next())})}function je(_e){return this instanceof je?(this.v=_e,this):new je(_e)}function qe(_e,Ae,J){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ot,Ie=J.apply(_e,Ae||[]),Pe=[];return Ot=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),Xe("next"),Xe("throw"),Xe("return",function ht(Ce){return function(dt){return Promise.resolve(dt).then(Ce,ve)}}),Ot[Symbol.asyncIterator]=function(){return this},Ot;function Xe(Ce,dt){Ie[Ce]&&(Ot[Ce]=function(un){return new Promise(function(it,It){Pe.push([Ce,un,it,It])>1||Je(Ce,un)})},dt&&(Ot[Ce]=dt(Ot[Ce])))}function Je(Ce,dt){try{!function Me(Ce){Ce.value instanceof je?Promise.resolve(Ce.value.v).then(ie,ve):le(Pe[0][2],Ce)}(Ie[Ce](dt))}catch(un){le(Pe[0][3],un)}}function ie(Ce){Je("next",Ce)}function ve(Ce){Je("throw",Ce)}function le(Ce,dt){Ce(dt),Pe.shift(),Pe.length&&Je(Pe[0][0],Pe[0][1])}}function ae(_e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var J,Ae=_e[Symbol.asyncIterator];return Ae?Ae.call(_e):(_e=function ke(_e){var Ae="function"==typeof Symbol&&Symbol.iterator,J=Ae&&_e[Ae],Ie=0;if(J)return J.call(_e);if(_e&&"number"==typeof _e.length)return{next:function(){return _e&&Ie>=_e.length&&(_e=void 0),{value:_e&&_e[Ie++],done:!_e}}};throw new TypeError(Ae?"Object is not iterable.":"Symbol.iterator is not defined.")}(_e),J={},Ie("next"),Ie("throw"),Ie("return"),J[Symbol.asyncIterator]=function(){return this},J);function Ie(Pe){J[Pe]=_e[Pe]&&function(ht){return new Promise(function(Xe,Je){!function Ot(Pe,ht,Xe,Je){Promise.resolve(Je).then(function(Me){Pe({value:Me,done:Xe})},ht)}(Xe,Je,(ht=_e[Pe](ht)).done,ht.value)})}}}v.d(Ne,{AQ:()=>qe,N3:()=>je,sH:()=>ue,xN:()=>ae}),"function"==typeof SuppressedError&&SuppressedError}},tn=>{tn(tn.s=368)}]); \ No newline at end of file diff --git a/ngsw.json b/ngsw.json index eb279f9..d08108d 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1729453249728, + "timestamp": 1729624716827, "index": "/index.html", "assetGroups": [], "dataGroups": [],