diff --git a/404.html b/404.html index 36fe6a2..bcd9c36 100644 --- a/404.html +++ b/404.html @@ -41,5 +41,5 @@ - + diff --git a/468.a065aef0c8d29857.js b/468.a065aef0c8d29857.js new file mode 100644 index 0000000..3756d0d --- /dev/null +++ b/468.a065aef0c8d29857.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkangor=self.webpackChunkangor||[]).push([[468],{5468:(S,y,a)=>{a.r(y),a.d(y,{default:()=>J});var m=a(467),b=a(9345),h=a(177),e=a(4438),u=a(8834),l=a(3),d=a(2408),s=a(9213),n=a(9042),p=a(7575),v=a(7250),k=a(450),I=a(4823),C=a(9183),_=a(5245),F=a(7291),K=a(1413),x=a(6977),E=a(8141),R=a(9437),B=a(7673),w=a(8098),D=a(8729),$=a(605),f=a(9969);let M=(()=>{class i{constructor(){this.displayText="",this.hasStarted=!1,this.days="00",this.hours="00",this.minutes="00",this.seconds="00",this.previousDays="00",this.previousHours="00",this.previousMinutes="00",this.previousSeconds="00"}ngOnInit(){this.subscription=(0,$.Y)(1e3).subscribe(()=>{this.updateTime()}),this.updateTime()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateTime(){const t=Math.floor(Date.now()/1e3),r=(this.hasStarted?this.expiryDate:this.startDate)-t;if(t>=this.startDate&&t0){const c=Math.floor(r/86400),j=Math.floor(r%86400/3600),P=Math.floor(r%3600/60),H=r%60;this.previousDays=this.days,this.previousHours=this.hours,this.previousMinutes=this.minutes,this.previousSeconds=this.seconds,this.days=this.formatTimeUnit(c),this.hours=this.formatTimeUnit(j),this.minutes=this.formatTimeUnit(P),this.seconds=this.formatTimeUnit(H)}else this.days=this.hours=this.minutes=this.seconds="00"}formatTimeUnit(t){return t<10?"0"+t:t.toString()}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["countdown-timer"]],inputs:{startDate:"startDate",expiryDate:"expiryDate"},decls:24,vars:11,consts:[[1,"countdown-container"],[1,"time-boxes-container"],[1,"time-box"],[1,"time-value"],[1,"time-label"],[1,"status-tooltip"]],template:function(o,r){1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.EFF(4),e.k0s(),e.j41(5,"div",4),e.EFF(6,"Days"),e.k0s()(),e.j41(7,"div",2)(8,"div",3),e.EFF(9),e.k0s(),e.j41(10,"div",4),e.EFF(11,"Hours"),e.k0s()(),e.j41(12,"div",2)(13,"div",3),e.EFF(14),e.k0s(),e.j41(15,"div",4),e.EFF(16,"Min"),e.k0s()(),e.j41(17,"div",2)(18,"div",3),e.EFF(19),e.k0s(),e.j41(20,"div",4),e.EFF(21,"Sec"),e.k0s()()(),e.j41(22,"div",5),e.EFF(23),e.k0s()()),2&o&&(e.R7$(3),e.Y8G("@numberChange",r.days!==r.previousDays),e.R7$(),e.JRh(r.days),e.R7$(4),e.Y8G("@numberChange",r.hours!==r.previousHours),e.R7$(),e.JRh(r.hours),e.R7$(4),e.Y8G("@numberChange",r.minutes!==r.previousMinutes),e.R7$(),e.JRh(r.minutes),e.R7$(4),e.Y8G("@numberChange",r.seconds!==r.previousSeconds),e.R7$(),e.JRh(r.seconds),e.R7$(3),e.xc7("color",r.hasStarted?"#ff6e99":"#42f548"),e.R7$(),e.SpI(" ",r.displayText," "))},dependencies:[h.MD],styles:[".countdown-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:.5rem;position:absolute;top:130px;right:30px;transform:translateY(0);width:auto}.time-boxes-container[_ngcontent-%COMP%]{display:flex;gap:.75rem}.time-box[_ngcontent-%COMP%]{background:#ffffff1a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border-radius:6px;padding:.5rem;min-width:55px;box-shadow:0 2px 4px #0000001a;text-align:center}.time-value[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;font-family:Monaco,monospace;margin-bottom:.15rem}.time-label[_ngcontent-%COMP%]{font-size:.65rem;text-transform:uppercase;opacity:.8}.status-tooltip[_ngcontent-%COMP%]{position:absolute;bottom:-25px;right:0;background:#000c;color:#fff;padding:4px 8px;border-radius:4px;font-size:.75rem;opacity:0;transition:opacity .2s ease-in-out;pointer-events:none;white-space:nowrap;z-index:10}.countdown-container[_ngcontent-%COMP%]:hover .status-tooltip[_ngcontent-%COMP%]{opacity:1}@media (max-width: 600px){.countdown-container[_ngcontent-%COMP%]{justify-content:flex-end;margin-top:.25rem;width:auto;transform:translateY(0)}.time-boxes-container[_ngcontent-%COMP%]{gap:.5rem}.time-box[_ngcontent-%COMP%]{padding:.25rem;min-width:45px}.time-value[_ngcontent-%COMP%]{font-size:1rem}.time-label[_ngcontent-%COMP%]{font-size:.55rem}.status-tooltip[_ngcontent-%COMP%]{font-size:.65rem}}"],data:{animation:[(0,f.hZ)("numberChange",[(0,f.kY)(":increment",[(0,f.iF)({transform:"translateY(-100%)",opacity:0}),(0,f.i0)("500ms ease-out",(0,f.iF)({transform:"translateY(0)",opacity:1}))]),(0,f.kY)(":decrement",[(0,f.iF)({transform:"translateY(100%)",opacity:0}),(0,f.i0)("500ms ease-out",(0,f.iF)({transform:"translateY(0)",opacity:1}))])])]}})}}return i})();var T=a(833);const U=i=>["/chat",i];function G(i,g){if(1&i){const t=e.RV6();e.j41(0,"button",27),e.bIt("click",function(){e.eBV(t);const r=e.XpG(),c=e.sdS(20);return e.Njj(r.resetSearch(c))}),e.nrm(1,"mat-icon",28),e.k0s()}2&i&&(e.R7$(),e.Y8G("svgIcon","heroicons_solid:x-mark"))}function N(i,g){if(1&i){const t=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){e.eBV(t);const r=e.XpG(),c=e.sdS(20);return e.Njj(r.filterByQuery(c.value))}),e.nrm(1,"mat-icon",28),e.k0s()}2&i&&(e.R7$(),e.Y8G("svgIcon","heroicons_solid:magnifying-glass"))}function Y(i,g){if(1&i){const t=e.RV6();e.j41(0,"div",59),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,c=e.XpG();return e.Njj(c.goToProjectDetails(r))}),e.EFF(1),e.k0s()}if(2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.displayName||t.nostrPubKey," ")}}function A(i,g){if(1&i&&(e.j41(0,"div",60),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.displayName||t.nostrPubKey," ")}}function O(i,g){if(1&i){const t=e.RV6();e.j41(0,"div",61)(1,"div",62)(2,"button",63),e.nrm(3,"mat-icon",64),e.k0s()(),e.j41(4,"div",62)(5,"button",65),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,c=e.XpG();return e.Njj(c.toggleBookmark(r.nostrPubKey))}),e.nrm(6,"mat-icon",64),e.nI1(7,"async"),e.k0s()()()}if(2&i){let t;const o=e.XpG().$implicit,r=e.XpG();e.R7$(2),e.Y8G("routerLink",e.eq3(5,U,o.nostrPubKey)),e.R7$(),e.Y8G("svgIcon","heroicons_outline:chat-bubble-left-right"),e.R7$(3),e.Y8G("svgIcon",null!=(t=e.bMT(7,3,r.bookmarks$))&&t.includes(o.nostrPubKey)?"heroicons_solid:bookmark":"heroicons_outline:bookmark")}}function L(i,g){if(1&i){const t=e.RV6();e.j41(0,"angor-card",23)(1,"div",30),e.nrm(2,"img",31),e.k0s(),e.j41(3,"div",32)(4,"div",33),e.nrm(5,"img",34),e.k0s(),e.j41(6,"div",35),e.nrm(7,"countdown-timer",36),e.k0s()(),e.j41(8,"div",37)(9,"div",38)(10,"div",39),e.DNE(11,Y,2,1,"div",40)(12,A,2,1,"div",41),e.j41(13,"div",42),e.EFF(14),e.k0s()(),e.DNE(15,O,8,7,"div",43),e.k0s(),e.nrm(16,"hr",44),e.j41(17,"div",45)(18,"div",46),e.nrm(19,"mat-icon",47),e.j41(20,"div",48)(21,"span",49),e.EFF(22,"Target Amount"),e.k0s(),e.j41(23,"span",50),e.EFF(24),e.nI1(25,"number"),e.k0s()()(),e.j41(26,"div",46),e.nrm(27,"mat-icon",47),e.j41(28,"div",48)(29,"span",49),e.EFF(30,"Start Date"),e.k0s(),e.j41(31,"span",50),e.EFF(32),e.nI1(33,"date"),e.k0s()()(),e.j41(34,"div",46),e.nrm(35,"mat-icon",47),e.j41(36,"div",48)(37,"span",49),e.EFF(38,"Penalty Days"),e.k0s(),e.j41(39,"span",50),e.EFF(40),e.k0s()()(),e.j41(41,"div",46),e.nrm(42,"mat-icon",47),e.j41(43,"div",48)(44,"span",49),e.EFF(45,"Expiry Date"),e.k0s(),e.j41(46,"span",50),e.EFF(47),e.nI1(48,"date"),e.k0s()()(),e.j41(49,"div",46),e.nrm(50,"mat-icon",47),e.j41(51,"div",48)(52,"span",49),e.EFF(53,"Stages"),e.k0s(),e.j41(54,"span",50),e.EFF(55),e.k0s()()(),e.j41(56,"div",46),e.nrm(57,"mat-icon",47),e.j41(58,"div",48)(59,"span",49),e.EFF(60,"Seeders"),e.k0s(),e.j41(61,"span",50),e.EFF(62),e.k0s()()()(),e.j41(63,"div",51)(64,"a",52)(65,"span",53),e.nrm(66,"mat-icon",54),e.j41(67,"span",55),e.EFF(68,"Invest Now"),e.k0s()()(),e.j41(69,"button",56),e.bIt("click",function(){const r=e.eBV(t).$implicit,c=e.XpG();return e.Njj(c.goToProjectDetails(r))}),e.j41(70,"span",53),e.nrm(71,"mat-icon",57),e.j41(72,"span",58),e.EFF(73,"View Details"),e.k0s()()()()()()}if(2&i){const t=g.$implicit,o=e.XpG();e.R7$(2),e.Y8G("src",t.banner||"/images/pages/profile/cover.jpg",e.B4B),e.R7$(3),e.Y8G("src",t.picture||"images/avatars/avatar-placeholder.png",e.B4B),e.R7$(2),e.Y8G("startDate",t.startDate)("expiryDate",t.expiryDate),e.R7$(4),e.Y8G("ngIf",t.displayName||t.name),e.R7$(),e.Y8G("ngIf",!t.name&&!t.displayName),e.R7$(2),e.SpI(" ",t.about||"No description available"," "),e.R7$(),e.Y8G("ngIf",t.displayName||t.name),e.R7$(4),e.Y8G("svgIcon","heroicons_outline:currency-dollar"),e.R7$(5),e.Lme("",e.bMT(25,24,t.targetAmount)," ","mainnet"===o.indexerService.getNetwork()?"BTC":"TBTC",""),e.R7$(3),e.Y8G("svgIcon","heroicons_outline:calendar"),e.R7$(5),e.JRh(e.bMT(33,26,1e3*t.startDate)),e.R7$(3),e.Y8G("svgIcon","heroicons_outline:clock"),e.R7$(5),e.SpI("",t.penaltyDays," days"),e.R7$(2),e.Y8G("svgIcon","heroicons_outline:calendar"),e.R7$(5),e.JRh(e.bMT(48,28,1e3*t.expiryDate)),e.R7$(3),e.Y8G("svgIcon","heroicons_outline:chart-bar"),e.R7$(5),e.JRh((null==t.stages?null:t.stages.length)||0),e.R7$(2),e.Y8G("svgIcon","heroicons_outline:user-group"),e.R7$(5),e.JRh((null==t.projectSeeders||null==t.projectSeeders.secretHashes?null:t.projectSeeders.secretHashes.length)||0),e.R7$(2),e.Y8G("href",("mainnet"===o.indexerService.getNetwork()?"https://beta.angor.io/view/":"https://test.angor.io/view/")+t.projectIdentifier,e.B4B),e.R7$(2),e.Y8G("svgIcon","heroicons_solid:circle-stack"),e.R7$(5),e.Y8G("svgIcon","heroicons_outline:document-text")}}function X(i,g){1&i&&(e.j41(0,"div",66),e.nrm(1,"mat-icon",67),e.j41(2,"div",68),e.EFF(3," No projects "),e.k0s()()),2&i&&(e.R7$(),e.Y8G("svgIcon","heroicons_outline:archive-box-x-mark"))}function V(i,g){if(1&i&&e.DNE(0,X,4,1,"div",66),2&i){const t=e.XpG();e.vxM(0===t.projectDetails().length?0:-1)}}function z(i,g){1&i&&(e.j41(0,"div",24),e.nrm(1,"mat-progress-spinner",69),e.j41(2,"div",70),e.EFF(3," Loading projects... "),e.k0s()())}function Q(i,g){if(1&i){const t=e.RV6();e.j41(0,"div",25)(1,"button",71),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.loadMoreProjects())}),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(),e.Y8G("disabled",t.loading()),e.R7$(),e.SpI(" ",t.loading()?"Loading...":"Load More Projects"," ")}}function W(i,g){if(1&i&&(e.j41(0,"div",26),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.SpI(" ",t.errorMessage()," ")}}const J=[{path:"",component:(()=>{class i{constructor(){this.projectService=(0,e.WQX)(D.i),this.storageService=(0,e.WQX)(F.n),this.changeDetectorRef=(0,e.WQX)(e.gRc),this.router=(0,e.WQX)(_.Ix),this.bookmarkService=(0,e.WQX)(w.U),this.indexerService=(0,e.WQX)(T.F),this.projects=[],this.projectDetails=(0,e.vPA)([]),this.filteredProjects=[],this.loading=(0,e.vPA)(!1),this.errorMessage=(0,e.vPA)(""),this.noMoreProjects=!1,this.showCloseSearchButton=(0,e.vPA)(!1),this.bookmarkedProjectNpubs=[],this.initialLoadComplete=(0,e.vPA)(!1),this._unsubscribeAll=new K.B,this.bookmarks$=this.bookmarkService.bookmarks$}ngOnInit(){var t=this;return(0,m.A)(function*(){yield t.bookmarkService.initializeForCurrentUser(),t.loadInitialProjects(),t.subscribeToProjectsUpdates(),t.subscribeToLoading(),t.subscribeToNoMoreProjects(),t.subscribeToBookmarkChanges()})()}loadInitialProjects(){this.projectService.resetProjects(),this.loading.set(!0),this.initialLoadComplete.set(!1),this.projectService.fetchProjects().pipe((0,x.Q)(this._unsubscribeAll)).subscribe({next:t=>{this.projects=t,this.filteredProjects=this.projectDetails(),this.updateBookmarkStatus(),this.fetchProjectDetails(t),this.initialLoadComplete.set(!0),this.changeDetectorRef.detectChanges(),console.log(t)}})}subscribeToBookmarkChanges(){this.bookmarks$.pipe((0,x.Q)(this._unsubscribeAll)).subscribe(t=>{this.bookmarkedProjectNpubs=t,this.updateBookmarkStatus(),this.changeDetectorRef.detectChanges()})}updateBookmarkStatus(){this.projectDetails().forEach(t=>{t.isBookmarked=this.bookmarkedProjectNpubs.includes(t.nostrPubKey)}),this.filteredProjects=[...this.projectDetails()]}fetchMetadataForProjects(t){var o=this;return(0,m.A)(function*(){for(const r of t)try{const c=yield o.storageService.getProfile(r.nostrPubKey);c?o.updateProjectMetadata(r,c):console.warn(`No metadata found for project with pubKey: ${r.nostrPubKey}`)}catch(c){console.error(`Error fetching metadata for pubKey: ${r.nostrPubKey}`,c)}})()}fetchProjectDetails(t){var o=this;return(0,m.A)(function*(){for(const r of t)try{const c=yield o.storageService.getProjectDetails(r.projectIdentifier);if(c){o.projectDetails.update(P=>[...P,c]);const j=yield o.storageService.getProfile(c.nostrPubKey);j?o.updateProjectMetadata(c,j):console.warn(`No metadata found for project with nostrPubKey: ${c.nostrPubKey}`)}else console.warn(`No details found for project with eventId: ${r.nostrEventId}`)}catch(c){console.error(`Error fetching details for eventId: ${r.nostrEventId}`,c)}})()}subscribeToProjectsUpdates(){this.storageService.profile$.pipe((0,x.Q)(this._unsubscribeAll)).subscribe(t=>{if(t&&t.pubKey){const o=this.projectDetails().find(r=>r.nostrPubKey===t.pubKey);o&&(this.updateProjectMetadata(o,t.metadata),this.changeDetectorRef.detectChanges())}})}updateProjectMetadata(t,o){t.displayName=o.name||t.displayName,t.about=o.about||t.about,t.picture=o.picture||t.picture,t.banner=o.banner||t.banner}loadMoreProjects(){this.projectService.fetchProjects().pipe((0,x.Q)(this._unsubscribeAll)).subscribe({next:t=>{const o=t.filter(r=>!this.projects.some(c=>c.projectIdentifier===r.projectIdentifier));this.projects=[...this.projects,...o],this.filteredProjects=[...this.projectDetails()],this.fetchProjectDetails(o),this.changeDetectorRef.detectChanges()},error:t=>{this.errorMessage.set("Error loading more projects"),this.changeDetectorRef.detectChanges()}})}subscribeToLoading(){this.projectService.loading$.pipe((0,x.Q)(this._unsubscribeAll)).subscribe(t=>{this.loading.set(t),this.changeDetectorRef.detectChanges()})}subscribeToNoMoreProjects(){this.projectService.noMoreProjects$.pipe((0,x.Q)(this._unsubscribeAll)).subscribe(t=>{this.noMoreProjects=t,this.changeDetectorRef.detectChanges()})}trackByFn(t,o){return o.projectIdentifier||t}goToProjectDetails(t){this.indexerService.getNetwork(),this.projectService.fetchProjectStats(t.projectIdentifier).pipe((0,E.M)(c=>{this.storageService.saveProjectStats(t.projectIdentifier,c)}),(0,E.M)(()=>{this.router.navigate(["/profile",t.nostrPubKey,t.projectIdentifier])}),(0,R.W)(c=>(console.error(`Failed to navigate to project details for ${t.projectIdentifier}:`,c),(0,B.of)(null)))).subscribe()}filterByQuery(t){if(!t||""===t.trim())return this.filteredProjects=[...this.projectDetails()],this.showCloseSearchButton.set(!1),void this.changeDetectorRef.detectChanges();const o=t.toLowerCase();this.filteredProjects=this.projectDetails().filter(r=>r.displayName&&r.displayName.toLowerCase().includes(o)||r.about&&r.about.toLowerCase().includes(o)||r.displayName&&r.displayName.toLowerCase().includes(o)||r.nostrPubKey&&r.nostrPubKey.toLowerCase().includes(o)||r.projectIdentifier&&r.projectIdentifier.toLowerCase().includes(o)),this.showCloseSearchButton.set(this.projects.length>0),this.changeDetectorRef.detectChanges()}resetSearch(t){t.value="",this.filterByQuery(""),this.showCloseSearchButton.set(!1)}toggleBookmark(t){var o=this;return(0,m.A)(function*(){(yield o.bookmarkService.isBookmarked(t))?yield o.bookmarkService.removeBookmark(t):yield o.bookmarkService.addBookmark(t)})()}isProjectBookmarked(t){var o=this;return(0,m.A)(function*(){return yield o.bookmarkService.isBookmarked(t)})()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["explore"]],decls:33,vars:9,consts:[["query",""],[1,"flex","min-w-0","flex-auto","flex-col"],[1,"dark","relative","flex-0","overflow-hidden","bg-gray-800","px-4","py-8","sm:p-16"],["viewBox","0 0 960 540","width","100%","height","100%","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"pointer-events-none","absolute","inset-0"],["fill","none","stroke","currentColor","stroke-width","100",1,"text-gray-700","opacity-25"],["r","234","cx","196","cy","23"],["r","234","cx","790","cy","491"],[1,"relative","z-10","flex","flex-col","items-center"],[1,"text-xl","font-semibold"],[1,"mt-1","text-center","text-4xl","font-extrabold","leading-tight","tracking-tight","sm:text-7xl"],[1,"text-secondary","mt-6","max-w-2xl","text-center","tracking-tight","sm:text-2xl"],[1,"p-6","sm:p-10"],[1,"mx-auto","flex","w-full","max-w-xs","flex-auto","flex-col","sm:max-w-5xl"],[1,"flex","w-full","max-w-xs","flex-col","items-center","justify-between","sm:max-w-none","sm:flex-row"],[1,"flex","w-full","items-center","space-x-2","sm:w-auto"],[1,"mt-4","w-full","sm:w-80",3,"keyup.enter","subscriptSizing"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["placeholder","Search ...","matInput",""],["mat-icon-button","","color","warn",1,"mt-4"],["mat-icon-button","","color","success",1,"mt-4"],[1,"mt-8","sm:ml-auto","sm:mt-0",3,"color"],[1,"mx-auto","flex","w-full","flex-auto","flex-col","sm:max-w-5xl"],[1,"mt-10","grid","w-full","min-w-0","grid-cols-1","gap-6","sm:grid-cols-1","md:grid-cols-1","lg:grid-cols-2"],[1,"filter-info","flex","w-full","flex-col"],[1,"flex","flex-auto","flex-col","items-center","justify-center"],[1,"mt-10","flex","justify-center"],[1,"error-message"],["mat-icon-button","","color","warn",1,"mt-4",3,"click"],[3,"svgIcon"],["mat-icon-button","","color","success",1,"mt-4",3,"click"],[1,"flex","h-32"],["alt","Card cover image","onerror","this.onerror=null; this.src='/images/pages/profile/cover.jpg';","alt","Card cover image",1,"object-cover",3,"src"],[1,"flex","px-8","items-center","justify-between"],[1,"bg-card","-mt-12","rounded-full","p-1","shadow-lg","profile-picture"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';","alt","Project logo",1,"h-24","w-24","rounded-full","object-cover",3,"src"],[1,"ml-auto"],[3,"startDate","expiryDate"],[1,"flex","flex-col","px-8","pb-6","pt-4"],[1,"flex","items-center","justify-between"],[1,"min-w-0","flex-1"],["class","truncate text-2xl font-semibold leading-tight","role","button",3,"click",4,"ngIf"],["class","truncate text-2xl font-semibold leading-tight",4,"ngIf"],[1,"text-secondary","mt-1","truncate","leading-tight"],["class","absolute right-2 top-2 flex space-x-2",4,"ngIf"],[1,"my-6","w-full","border-t"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-4"],[1,"flex","items-center","space-x-2","p-4","bg-white","shadow-md","rounded-lg"],[1,"text-primary","text-3xl",3,"svgIcon"],[1,"flex","flex-col"],[1,"text-sm","text-gray-500"],[1,"font-semibold"],[1,"mt-6","grid","grid-cols-1","sm:grid-cols-2","gap-4"],["target","_blank",1,"group","relative","inline-flex","items-center","justify-center","overflow-hidden","rounded-lg","bg-primary","p-0.5","text-sm","font-medium","hover:bg-primary-700","focus:outline-none","focus:ring-4","focus:ring-primary-300","dark:bg-primary","dark:hover:bg-primary-600","dark:focus:ring-primary-800","w-full",3,"href"],[1,"relative","flex","items-center","justify-center","gap-2","rounded-md","bg-card","w-full","px-4","py-2.5","transition-all","duration-75","ease-in","group-hover:bg-opacity-0"],[1,"icon-size-5","text-primary","dark:text-primary-400","group-hover:text-white",3,"svgIcon"],[1,"text-primary","dark:text-primary-400","group-hover:text-white"],[1,"group","relative","inline-flex","items-center","justify-center","overflow-hidden","rounded-lg","bg-gray-200","dark:bg-gray-700","p-0.5","text-sm","font-medium","hover:bg-gray-300","dark:hover:bg-gray-600","focus:outline-none","focus:ring-4","focus:ring-gray-300","dark:focus:ring-gray-800","w-full",3,"click"],[1,"icon-size-5","text-gray-700","dark:text-gray-300","group-hover:text-white",3,"svgIcon"],[1,"text-gray-700","dark:text-gray-300","group-hover:text-white"],["role","button",1,"truncate","text-2xl","font-semibold","leading-tight",3,"click"],[1,"truncate","text-2xl","font-semibold","leading-tight"],[1,"absolute","right-2","top-2","flex","space-x-2"],[1,"flex","h-10","w-10","items-center","justify-center","rounded-full","border","bg-white","shadow-md"],["mat-icon-button","",3,"routerLink"],[1,"icon-size-5",3,"svgIcon"],["mat-icon-button","",3,"click"],[1,"flex","flex-auto","flex-col","items-center","justify-center","bg-gray-100","dark:bg-transparent"],[1,"icon-size-24",3,"svgIcon"],[1,"text-secondary","mt-4","text-2xl","font-semibold","tracking-tight"],["mode","indeterminate","diameter","48"],[1,"text-secondary","mt-4","text-xl"],["mat-raised-button","","color","primary",1,"bg-card","text-gray-700","hover:bg-gray-200","dark:text-gray-300","dark:hover:bg-gray-700",3,"click","disabled"]],template:function(o,r){if(1&o){const c=e.RV6();e.j41(0,"div",1)(1,"div",2),e.qSk(),e.j41(2,"svg",3)(3,"g",4),e.nrm(4,"circle",5)(5,"circle",6),e.k0s()(),e.joV(),e.j41(6,"div",7)(7,"h2",8),e.EFF(8,"Explore Projects"),e.k0s(),e.j41(9,"div",9),e.EFF(10," What\u2019s your next investment? "),e.k0s(),e.j41(11,"div",10),e.EFF(12," Check out our projects and find your next investment opportunity. "),e.k0s()()(),e.j41(13,"div",11)(14,"div",12)(15,"div",13)(16,"div",14)(17,"mat-form-field",15),e.bIt("keyup.enter",function(){e.eBV(c);const P=e.sdS(20);return e.Njj(r.filterByQuery(P.value))}),e.nrm(18,"mat-icon",16)(19,"input",17,0),e.k0s(),e.DNE(21,G,2,1,"button",18)(22,N,2,1,"button",19),e.k0s(),e.j41(23,"mat-slide-toggle",20),e.EFF(24," Hide completed "),e.k0s()()(),e.j41(25,"div",21)(26,"div",22),e.Z7z(27,L,74,30,"angor-card",23,e.Vm6),e.k0s(),e.DNE(29,V,1,1)(30,z,4,0,"div",24)(31,Q,3,2,"div",25)(32,W,2,1,"div",26),e.k0s()()()}2&o&&(e.R7$(17),e.Y8G("subscriptSizing","dynamic"),e.R7$(),e.Y8G("svgIcon","heroicons_solid:magnifying-glass"),e.R7$(3),e.vxM(r.showCloseSearchButton()?21:-1),e.R7$(),e.vxM(r.showCloseSearchButton()?-1:22),e.R7$(),e.Y8G("color","primary"),e.R7$(4),e.Dyx(r.projectDetails()),e.R7$(2),e.vxM(!r.loading()||r.initialLoadComplete()?29:-1),e.R7$(),e.vxM(r.loading()&&!r.initialLoadComplete()?30:-1),e.R7$(),e.vxM(r.projectDetails().length>0?31:-1),e.R7$(),e.vxM(!r.loading()&&r.errorMessage()?32:-1))},dependencies:[_.Wk,u.Hl,u.$z,u.iY,s.m_,s.An,b.n,d.RG,d.rl,d.JW,v.Ve,l.Sy,n.fS,n.fg,k.mV,k.sG,I.uc,p.PO,h.MD,h.bT,h.Jj,h.QX,h.vh,C.D6,C.LG,M],styles:["@media (max-width: 600px){.profile-picture img{height:18px;width:18px}}\n"],encapsulation:2})}}return i})()}]},8098:(S,y,a)=>{a.d(y,{U:()=>u});var m=a(467),b=a(4412),h=a(4438),e=a(6324);let u=(()=>{class l{constructor(s){this._signerService=s,this.STORAGE_KEY="userBookmarkedProjects",this.bookmarksSubject=new b.t([]),this.bookmarks$=this.bookmarksSubject.asObservable(),this.currentUserPubKey=null,window.addEventListener("storage",n=>{n.key===this.STORAGE_KEY&&this.refreshBookmarksForCurrentUser()})}initializeForCurrentUser(){var s=this;return(0,m.A)(function*(){s.clearBookmarks(),s.currentUserPubKey=yield s._signerService.getPublicKey(),s.currentUserPubKey&&(yield s.loadBookmarksForCurrentUser())})()}clearBookmarks(){this.bookmarksSubject.next([])}loadBookmarksForCurrentUser(){var s=this;return(0,m.A)(function*(){if(!s.currentUserPubKey)return;const p=s.getUserBookmarks()[s.currentUserPubKey]||[];s.bookmarksSubject.next(p)})()}getUserBookmarks(){const s=localStorage.getItem(this.STORAGE_KEY);return s?JSON.parse(s):{}}saveUserBookmarks(s){localStorage.setItem(this.STORAGE_KEY,JSON.stringify(s))}addBookmark(s){var n=this;return(0,m.A)(function*(){if(!n.currentUserPubKey&&(n.currentUserPubKey=yield n._signerService.getPublicKey(),!n.currentUserPubKey))return void console.warn("No public key found for the current user.");const p=n.getUserBookmarks(),v=p[n.currentUserPubKey]||[];v.includes(s)||(v.push(s),p[n.currentUserPubKey]=v,n.saveUserBookmarks(p),n.bookmarksSubject.next(v))})()}removeBookmark(s){var n=this;return(0,m.A)(function*(){if(!n.currentUserPubKey&&(n.currentUserPubKey=yield n._signerService.getPublicKey(),!n.currentUserPubKey))return void console.warn("No public key found for the current user.");const p=n.getUserBookmarks(),k=(p[n.currentUserPubKey]||[]).filter(I=>I!==s);p[n.currentUserPubKey]=k,n.saveUserBookmarks(p),n.bookmarksSubject.next(k)})()}isBookmarked(s){var n=this;return(0,m.A)(function*(){return n.currentUserPubKey||(n.currentUserPubKey=yield n._signerService.getPublicKey(),n.currentUserPubKey)?(n.getUserBookmarks()[n.currentUserPubKey]||[]).includes(s):(console.warn("No public key found for the current user."),!1)})()}getBookmarks(){var s=this;return(0,m.A)(function*(){return s.currentUserPubKey||(s.currentUserPubKey=yield s._signerService.getPublicKey(),s.currentUserPubKey)?s.getUserBookmarks()[s.currentUserPubKey]||[]:(console.warn("No public key found for the current user."),[])})()}removeAllBookmarks(){var s=this;return(0,m.A)(function*(){if(!s.currentUserPubKey&&(s.currentUserPubKey=yield s._signerService.getPublicKey(),!s.currentUserPubKey))return void console.warn("No public key found for the current user.");const n=s.getUserBookmarks();n[s.currentUserPubKey]=[],s.saveUserBookmarks(n),s.bookmarksSubject.next([])})()}refreshBookmarksForCurrentUser(){this.currentUserPubKey&&this.loadBookmarksForCurrentUser()}static{this.\u0275fac=function(n){return new(n||l)(h.KVO(e.A))}}static{this.\u0275prov=h.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})()},833:(S,y,a)=>{a.d(y,{F:()=>b});var m=a(4438);let b=(()=>{class h{constructor(){this.mainnetLocalStorageKey="mainnetIndexers",this.testnetLocalStorageKey="testnetIndexers",this.mainnetPrimaryIndexerKey="mainnetPrimaryIndexer",this.testnetPrimaryIndexerKey="testnetPrimaryIndexer",this.networkStorageKey="selectedNetwork",this.defaultMainnetIndexer="https://btc.indexer.angor.io/",this.defaultTestnetIndexer="https://tbtc.indexer.angor.io/",this.initializeDefaultIndexers()}initializeDefaultIndexers(){0===this.getIndexers("mainnet").length&&(this.addIndexer(this.defaultMainnetIndexer,"mainnet"),this.setPrimaryIndexer(this.defaultMainnetIndexer,"mainnet")),0===this.getIndexers("testnet").length&&(this.addIndexer(this.defaultTestnetIndexer,"testnet"),this.setPrimaryIndexer(this.defaultTestnetIndexer,"testnet"))}addIndexer(u,l){let d=this.getIndexers(l);d.includes(u)||(d.push(u),this.saveIndexers(d,l))}getIndexers(u){return JSON.parse(localStorage.getItem("mainnet"===u?this.mainnetLocalStorageKey:this.testnetLocalStorageKey)||"[]")}saveIndexers(u,l){localStorage.setItem("mainnet"===l?this.mainnetLocalStorageKey:this.testnetLocalStorageKey,JSON.stringify(u))}setPrimaryIndexer(u,l){this.getIndexers(l).includes(u)&&localStorage.setItem("mainnet"===l?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey,u)}getPrimaryIndexer(u){return localStorage.getItem("mainnet"===u?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey)}removeIndexer(u,l){let d=this.getIndexers(l);const s=d.indexOf(u);-1!==s&&(d.splice(s,1),this.saveIndexers(d,l),u===this.getPrimaryIndexer(l))&&localStorage.removeItem("mainnet"===l?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey)}clearAllIndexers(u){const d="mainnet"===u?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey;localStorage.removeItem("mainnet"===u?this.mainnetLocalStorageKey:this.testnetLocalStorageKey),localStorage.removeItem(d)}setNetwork(u){localStorage.setItem(this.networkStorageKey,u)}getNetwork(){return localStorage.getItem(this.networkStorageKey)||"testnet"}static{this.\u0275fac=function(l){return new(l||h)}}static{this.\u0275prov=m.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}}return h})()}}]); \ No newline at end of file diff --git a/524.86bfd04d1400cfcf.js b/524.9a7ec1a47ccd020f.js similarity index 94% rename from 524.86bfd04d1400cfcf.js rename to 524.9a7ec1a47ccd020f.js index 14c8413..fdfba91 100644 --- a/524.86bfd04d1400cfcf.js +++ b/524.9a7ec1a47ccd020f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkangor=self.webpackChunkangor||[]).push([[524],{8364:(P,f,s)=>{s.r(f),s.d(f,{default:()=>G});var u=s(467),v=s(9345),d=s(177),b=s(8834),a=s(3),i=s(2408),m=s(9213),r=s(9042),o=s(7575),k=s(9183),h=s(7250),x=s(450),p=s(4823),B=s(5245),I=s(1413),j=s(6977),K=s(8141),S=s(9437),U=s(7673),e=s(4438),E=s(8098),_=s(7291),F=s(8729);const C=c=>["/chat",c];function T(c,y){if(1&c){const t=e.RV6();e.j41(0,"div",29),e.bIt("click",function(){e.eBV(t);const l=e.XpG().$implicit,g=e.XpG();return e.Njj(g.goToProjectDetails(l))}),e.EFF(1),e.k0s()}if(2&c){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.displayName||t.nostrPubKey," ")}}function R(c,y){if(1&c&&(e.j41(0,"div",25),e.EFF(1),e.k0s()),2&c){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.displayName||t.nostrPubKey," ")}}function A(c,y){if(1&c){const t=e.RV6();e.j41(0,"div",27)(1,"div",30)(2,"button",31),e.nrm(3,"mat-icon",32),e.k0s()(),e.j41(4,"div",30)(5,"button",33),e.bIt("click",function(){e.eBV(t);const l=e.XpG().$implicit,g=e.XpG();return e.Njj(g.toggleBookmark(l.nostrPubKey))}),e.nrm(6,"mat-icon",32),e.nI1(7,"async"),e.k0s()()()}if(2&c){let t;const n=e.XpG().$implicit,l=e.XpG();e.R7$(2),e.Y8G("routerLink",e.eq3(5,C,n.nostrPubKey)),e.R7$(),e.Y8G("svgIcon","heroicons_outline:chat-bubble-left-right"),e.R7$(3),e.Y8G("svgIcon",null!=(t=e.bMT(7,3,l.bookmarks$))&&t.includes(n.nostrPubKey)?"heroicons_solid:bookmark":"heroicons_outline:bookmark")}}function D(c,y){if(1&c&&(e.qex(0),e.j41(1,"angor-card",15)(2,"div",16),e.nrm(3,"img",17),e.k0s(),e.j41(4,"div",18)(5,"div",19),e.nrm(6,"img",20),e.k0s()(),e.j41(7,"div",21)(8,"div",22)(9,"div",23),e.DNE(10,T,2,1,"div",24)(11,R,2,1,"div",25),e.j41(12,"div",26),e.EFF(13),e.k0s()(),e.DNE(14,A,8,7,"div",27),e.k0s(),e.nrm(15,"hr",28),e.k0s()(),e.bVm()),2&c){const t=y.$implicit;e.R7$(3),e.Y8G("src",t.banner||"/images/pages/profile/cover.jpg",e.B4B),e.R7$(3),e.Y8G("src",t.picture||"images/avatars/avatar-placeholder.png",e.B4B),e.R7$(4),e.vxM(t.displayName||t.name?10:-1),e.R7$(),e.vxM(t.name||t.displayName?-1:11),e.R7$(2),e.SpI(" ",t.about||"No description available"," "),e.R7$(),e.vxM(t.displayName||t.name?14:-1)}}function L(c,y){1&c&&(e.qex(0),e.j41(1,"div",34),e.nrm(2,"mat-spinner",35),e.j41(3,"div",36),e.EFF(4,"Loading projects..."),e.k0s()(),e.bVm()),2&c&&(e.R7$(2),e.Y8G("diameter",40))}function $(c,y){1&c&&(e.qex(0),e.j41(1,"div",37),e.nrm(2,"mat-icon",38),e.j41(3,"div",39),e.EFF(4," No projects "),e.k0s()(),e.bVm()),2&c&&(e.R7$(2),e.Y8G("svgIcon","heroicons_outline:archive-box-x-mark"))}const G=[{path:"",component:(()=>{class c{constructor(t,n,l,g){this._bookmarkService=t,this._storageService=n,this._router=l,this._projectsService=g,this.savedProjects=[],this.savedProjectDetailes=[],this.isLoading=!0,this._unsubscribeAll=new I.B,this.bookmarks$=this._bookmarkService.bookmarks$}ngOnInit(){var t=this;return(0,u.A)(function*(){try{yield t._bookmarkService.initializeForCurrentUser(),yield t.loadBookmarkedProjects(),t.subscribeToBookmarkChanges(),t.isLoading=!1}catch(n){console.error("Error during initialization:",n),t.isLoading=!1}})()}trackByFn(t,n){return n.nostrPubKey||t}loadBookmarkedProjects(){var t=this;return(0,u.A)(function*(){t.isLoading=!0;try{const n=yield t._bookmarkService.getBookmarks(),l=yield t._storageService.getProjectsByNostrPubKeys(n);t.savedProjectDetailes=l,t.isLoading=!1}catch(n){console.error("Error loading bookmarked projects:",n),t.isLoading=!1}})()}subscribeToBookmarkChanges(){var t=this;this.bookmarks$.pipe((0,j.Q)(this._unsubscribeAll)).subscribe(function(){var n=(0,u.A)(function*(l){try{const g=yield t._storageService.getProjectsByNostrPubKeys(l);t.savedProjectDetailes=g,t.fetchMetadataForProjects(t.savedProjectDetailes),t.isLoading=!1}catch(g){console.error("Error updating bookmarks:",g),t.isLoading=!1}});return function(l){return n.apply(this,arguments)}}())}fetchMetadataForProjects(t){t.forEach(n=>{this._storageService.getProfile(n.nostrPubKey).then(l=>{l&&this.updateProjectMetadata(n,l)})})}updateProjectMetadata(t,n){t.displayName=n.name||t.displayName,t.about=n.about||t.about,t.picture=n.picture||t.picture,t.banner=n.banner||t.banner}toggleBookmark(t){var n=this;return(0,u.A)(function*(){(yield n._bookmarkService.isBookmarked(t))?yield n._bookmarkService.removeBookmark(t):yield n._bookmarkService.addBookmark(t)})()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}goToProjectDetails(t){this._projectsService.fetchProjectStats(t.projectIdentifier).pipe((0,K.M)(n=>{this._storageService.saveProjectStats(t.projectIdentifier,n)}),(0,K.M)(()=>{this._router.navigate(["/profile",t.nostrPubKey,t.projectIdentifier])}),(0,S.W)(n=>(console.error(`Failed to navigate to project details for ${t.projectIdentifier}:`,n),(0,U.of)(null)))).subscribe()}static{this.\u0275fac=function(n){return new(n||c)(e.rXU(E.U),e.rXU(_.n),e.rXU(B.Ix),e.rXU(F.i))}}static{this.\u0275cmp=e.VBU({type:c,selectors:[["app-bookmark"]],decls:19,vars:4,consts:[[1,"flex","min-w-0","flex-auto","flex-col"],[1,"dark","relative","flex-0","overflow-hidden","bg-gray-800","px-4","py-8","sm:p-16"],["viewBox","0 0 960 540","width","100%","height","100%","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"pointer-events-none","absolute","inset-0"],["fill","none","stroke","currentColor","stroke-width","100",1,"text-gray-700","opacity-25"],["r","234","cx","196","cy","23"],["r","234","cx","790","cy","491"],[1,"relative","z-10","flex","flex-col","items-center"],[1,"text-xl","font-semibold"],[1,"mt-1","text-center","text-4xl","font-extrabold","leading-tight","tracking-tight","sm:text-7xl"],[1,"text-secondary","mt-6","max-w-2xl","text-center","tracking-tight","sm:text-2xl"],[1,"p-6","sm:p-10"],[1,"mx-auto","flex","w-full","flex-auto","flex-col","sm:max-w-5xl"],[1,"mt-10","grid","w-full","min-w-0","grid-cols-1","gap-6","sm:grid-cols-1","md:grid-cols-1","lg:grid-cols-2"],[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],[1,"filter-info","flex","w-full","flex-col"],[1,"flex","h-32"],["alt","Card cover image","onerror","this.onerror=null; this.src='/images/pages/profile/cover.jpg';","alt","Card cover image",1,"object-cover",3,"src"],[1,"flex","px-8"],[1,"bg-card","-mt-12","rounded-full","p-1"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';","alt","Project logo",1,"h-24","w-24","rounded-full","object-cover",3,"src"],[1,"flex","flex-col","px-8","pb-6","pt-4"],[1,"flex","items-center","justify-between"],[1,"min-w-0","flex-1"],["role","button",1,"truncate","text-2xl","font-semibold","leading-tight"],[1,"truncate","text-2xl","font-semibold","leading-tight"],[1,"text-secondary","mt-1","truncate","leading-tight"],[1,"absolute","top-2","right-2","flex","space-x-2"],[1,"my-6","w-full","border-t"],["role","button",1,"truncate","text-2xl","font-semibold","leading-tight",3,"click"],[1,"flex","h-10","w-10","items-center","justify-center","rounded-full","border","bg-white","shadow-md"],["mat-icon-button","",3,"routerLink"],[1,"icon-size-5",3,"svgIcon"],["mat-icon-button","",3,"click"],[1,"flex","flex-auto","flex-col","items-center","justify-center"],[3,"diameter"],[1,"text-secondary","mt-4","text-lg"],[1,"flex","flex-auto","flex-col","items-center","justify-center","bg-gray-100","dark:bg-transparent"],[1,"icon-size-24",3,"svgIcon"],[1,"text-secondary","mt-4","text-2xl","font-semibold","tracking-tight"]],template:function(n,l){1&n&&(e.j41(0,"div",0)(1,"div",1),e.qSk(),e.j41(2,"svg",2)(3,"g",3),e.nrm(4,"circle",4)(5,"circle",5),e.k0s()(),e.joV(),e.j41(6,"div",6)(7,"h2",7),e.EFF(8,"Bookmark"),e.k0s(),e.j41(9,"div",8),e.EFF(10," Explore Your Saved Projects "),e.k0s(),e.j41(11,"div",9),e.EFF(12," Review and manage your bookmarked projects below. "),e.k0s()()(),e.j41(13,"div",10)(14,"div",11)(15,"div",12),e.DNE(16,D,16,6,"ng-container",13),e.k0s(),e.DNE(17,L,5,1,"ng-container",14)(18,$,5,1,"ng-container",14),e.k0s()()()),2&n&&(e.R7$(16),e.Y8G("ngForOf",l.savedProjectDetailes)("ngForTrackBy",l.trackByFn),e.R7$(),e.Y8G("ngIf",l.isLoading),e.R7$(),e.Y8G("ngIf",!l.isLoading&&0===l.savedProjectDetailes.length))},dependencies:[B.Wk,b.Hl,b.iY,m.m_,m.An,v.n,i.RG,h.Ve,a.Sy,r.fS,x.mV,p.uc,o.PO,d.MD,d.Sq,d.bT,d.Jj,k.D6,k.LG],encapsulation:2})}}return c})()}]},8098:(P,f,s)=>{s.d(f,{U:()=>a});var u=s(467),v=s(4412),d=s(4438),b=s(6324);let a=(()=>{class i{constructor(r){this._signerService=r,this.STORAGE_KEY="userBookmarkedProjects",this.bookmarksSubject=new v.t([]),this.bookmarks$=this.bookmarksSubject.asObservable(),this.currentUserPubKey=null,window.addEventListener("storage",o=>{o.key===this.STORAGE_KEY&&this.refreshBookmarksForCurrentUser()})}initializeForCurrentUser(){var r=this;return(0,u.A)(function*(){r.clearBookmarks(),r.currentUserPubKey=yield r._signerService.getPublicKey(),r.currentUserPubKey&&(yield r.loadBookmarksForCurrentUser())})()}clearBookmarks(){this.bookmarksSubject.next([])}loadBookmarksForCurrentUser(){var r=this;return(0,u.A)(function*(){if(!r.currentUserPubKey)return;const k=r.getUserBookmarks()[r.currentUserPubKey]||[];r.bookmarksSubject.next(k)})()}getUserBookmarks(){const r=localStorage.getItem(this.STORAGE_KEY);return r?JSON.parse(r):{}}saveUserBookmarks(r){localStorage.setItem(this.STORAGE_KEY,JSON.stringify(r))}addBookmark(r){var o=this;return(0,u.A)(function*(){if(!o.currentUserPubKey&&(o.currentUserPubKey=yield o._signerService.getPublicKey(),!o.currentUserPubKey))return void console.warn("No public key found for the current user.");const k=o.getUserBookmarks(),h=k[o.currentUserPubKey]||[];h.includes(r)||(h.push(r),k[o.currentUserPubKey]=h,o.saveUserBookmarks(k),o.bookmarksSubject.next(h))})()}removeBookmark(r){var o=this;return(0,u.A)(function*(){if(!o.currentUserPubKey&&(o.currentUserPubKey=yield o._signerService.getPublicKey(),!o.currentUserPubKey))return void console.warn("No public key found for the current user.");const k=o.getUserBookmarks(),x=(k[o.currentUserPubKey]||[]).filter(p=>p!==r);k[o.currentUserPubKey]=x,o.saveUserBookmarks(k),o.bookmarksSubject.next(x)})()}isBookmarked(r){var o=this;return(0,u.A)(function*(){return o.currentUserPubKey||(o.currentUserPubKey=yield o._signerService.getPublicKey(),o.currentUserPubKey)?(o.getUserBookmarks()[o.currentUserPubKey]||[]).includes(r):(console.warn("No public key found for the current user."),!1)})()}getBookmarks(){var r=this;return(0,u.A)(function*(){return r.currentUserPubKey||(r.currentUserPubKey=yield r._signerService.getPublicKey(),r.currentUserPubKey)?r.getUserBookmarks()[r.currentUserPubKey]||[]:(console.warn("No public key found for the current user."),[])})()}removeAllBookmarks(){var r=this;return(0,u.A)(function*(){if(!r.currentUserPubKey&&(r.currentUserPubKey=yield r._signerService.getPublicKey(),!r.currentUserPubKey))return void console.warn("No public key found for the current user.");const o=r.getUserBookmarks();o[r.currentUserPubKey]=[],r.saveUserBookmarks(o),r.bookmarksSubject.next([])})()}refreshBookmarksForCurrentUser(){this.currentUserPubKey&&this.loadBookmarksForCurrentUser()}static{this.\u0275fac=function(o){return new(o||i)(d.KVO(b.A))}}static{this.\u0275prov=d.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})()},833:(P,f,s)=>{s.d(f,{F:()=>v});var u=s(4438);let v=(()=>{class d{constructor(){this.mainnetLocalStorageKey="mainnetIndexers",this.testnetLocalStorageKey="testnetIndexers",this.mainnetPrimaryIndexerKey="mainnetPrimaryIndexer",this.testnetPrimaryIndexerKey="testnetPrimaryIndexer",this.networkStorageKey="selectedNetwork",this.defaultMainnetIndexer="https://btc.indexer.angor.io/",this.defaultTestnetIndexer="https://tbtc.indexer.angor.io/",this.initializeDefaultIndexers()}initializeDefaultIndexers(){0===this.getIndexers("mainnet").length&&(this.addIndexer(this.defaultMainnetIndexer,"mainnet"),this.setPrimaryIndexer(this.defaultMainnetIndexer,"mainnet")),0===this.getIndexers("testnet").length&&(this.addIndexer(this.defaultTestnetIndexer,"testnet"),this.setPrimaryIndexer(this.defaultTestnetIndexer,"testnet"))}addIndexer(a,i){let m=this.getIndexers(i);m.includes(a)||(m.push(a),this.saveIndexers(m,i))}getIndexers(a){return JSON.parse(localStorage.getItem("mainnet"===a?this.mainnetLocalStorageKey:this.testnetLocalStorageKey)||"[]")}saveIndexers(a,i){localStorage.setItem("mainnet"===i?this.mainnetLocalStorageKey:this.testnetLocalStorageKey,JSON.stringify(a))}setPrimaryIndexer(a,i){this.getIndexers(i).includes(a)&&localStorage.setItem("mainnet"===i?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey,a)}getPrimaryIndexer(a){return localStorage.getItem("mainnet"===a?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey)}removeIndexer(a,i){let m=this.getIndexers(i);const r=m.indexOf(a);-1!==r&&(m.splice(r,1),this.saveIndexers(m,i),a===this.getPrimaryIndexer(i))&&localStorage.removeItem("mainnet"===i?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey)}clearAllIndexers(a){const m="mainnet"===a?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey;localStorage.removeItem("mainnet"===a?this.mainnetLocalStorageKey:this.testnetLocalStorageKey),localStorage.removeItem(m)}setNetwork(a){localStorage.setItem(this.networkStorageKey,a)}getNetwork(){return localStorage.getItem(this.networkStorageKey)||"testnet"}static{this.\u0275fac=function(i){return new(i||d)}}static{this.\u0275prov=u.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkangor=self.webpackChunkangor||[]).push([[524],{8364:(P,h,s)=>{s.r(h),s.d(h,{default:()=>G});var u=s(467),v=s(9345),d=s(177),b=s(8834),a=s(3),i=s(2408),m=s(9213),r=s(9042),o=s(7575),k=s(9183),f=s(7250),x=s(450),p=s(4823),B=s(5245),I=s(1413),j=s(6977),K=s(8141),S=s(9437),U=s(7673),e=s(4438),E=s(8098),F=s(7291),_=s(8729);const C=c=>["/chat",c];function T(c,y){if(1&c){const t=e.RV6();e.j41(0,"div",29),e.bIt("click",function(){e.eBV(t);const l=e.XpG().$implicit,g=e.XpG();return e.Njj(g.goToProjectDetails(l))}),e.EFF(1),e.k0s()}if(2&c){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.displayName||t.nostrPubKey," ")}}function R(c,y){if(1&c&&(e.j41(0,"div",25),e.EFF(1),e.k0s()),2&c){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.displayName||t.nostrPubKey," ")}}function A(c,y){if(1&c){const t=e.RV6();e.j41(0,"div",27)(1,"div",30)(2,"button",31),e.nrm(3,"mat-icon",32),e.k0s()(),e.j41(4,"div",30)(5,"button",33),e.bIt("click",function(){e.eBV(t);const l=e.XpG().$implicit,g=e.XpG();return e.Njj(g.toggleBookmark(l.nostrPubKey))}),e.nrm(6,"mat-icon",32),e.nI1(7,"async"),e.k0s()()()}if(2&c){let t;const n=e.XpG().$implicit,l=e.XpG();e.R7$(2),e.Y8G("routerLink",e.eq3(5,C,n.nostrPubKey)),e.R7$(),e.Y8G("svgIcon","heroicons_outline:chat-bubble-left-right"),e.R7$(3),e.Y8G("svgIcon",null!=(t=e.bMT(7,3,l.bookmarks$))&&t.includes(n.nostrPubKey)?"heroicons_solid:bookmark":"heroicons_outline:bookmark")}}function D(c,y){if(1&c&&(e.qex(0),e.j41(1,"angor-card",15)(2,"div",16),e.nrm(3,"img",17),e.k0s(),e.j41(4,"div",18)(5,"div",19),e.nrm(6,"img",20),e.k0s()(),e.j41(7,"div",21)(8,"div",22)(9,"div",23),e.DNE(10,T,2,1,"div",24)(11,R,2,1,"div",25),e.j41(12,"div",26),e.EFF(13),e.k0s()(),e.DNE(14,A,8,7,"div",27),e.k0s(),e.nrm(15,"hr",28),e.k0s()(),e.bVm()),2&c){const t=y.$implicit;e.R7$(3),e.Y8G("src",t.banner||"/images/pages/profile/cover.jpg",e.B4B),e.R7$(3),e.Y8G("src",t.picture||"images/avatars/avatar-placeholder.png",e.B4B),e.R7$(4),e.vxM(t.displayName||t.name?10:-1),e.R7$(),e.vxM(t.name||t.displayName?-1:11),e.R7$(2),e.SpI(" ",t.about||"No description available"," "),e.R7$(),e.vxM(t.displayName||t.name?14:-1)}}function L(c,y){1&c&&(e.qex(0),e.j41(1,"div",34),e.nrm(2,"mat-spinner",35),e.j41(3,"div",36),e.EFF(4,"Loading projects..."),e.k0s()(),e.bVm()),2&c&&(e.R7$(2),e.Y8G("diameter",40))}function $(c,y){1&c&&(e.qex(0),e.j41(1,"div",37),e.nrm(2,"mat-icon",38),e.j41(3,"div",39),e.EFF(4," No projects "),e.k0s()(),e.bVm()),2&c&&(e.R7$(2),e.Y8G("svgIcon","heroicons_outline:archive-box-x-mark"))}const G=[{path:"",component:(()=>{class c{constructor(t,n,l,g){this._bookmarkService=t,this._storageService=n,this._router=l,this._projectsService=g,this.savedProjects=[],this.savedProjectDetailes=[],this.isLoading=!0,this._unsubscribeAll=new I.B,this.bookmarks$=this._bookmarkService.bookmarks$}ngOnInit(){var t=this;return(0,u.A)(function*(){try{yield t._bookmarkService.initializeForCurrentUser(),yield t.loadBookmarkedProjects(),t.subscribeToBookmarkChanges(),t.isLoading=!1}catch(n){console.error("Error during initialization:",n),t.isLoading=!1}})()}trackByFn(t,n){return n.nostrPubKey||t}loadBookmarkedProjects(){var t=this;return(0,u.A)(function*(){t.isLoading=!0;try{const n=yield t._bookmarkService.getBookmarks(),l=yield t._storageService.getProjectsByNostrPubKeys(n);t.savedProjectDetailes=l,t.isLoading=!1}catch(n){console.error("Error loading bookmarked projects:",n),t.isLoading=!1}})()}subscribeToBookmarkChanges(){var t=this;this.bookmarks$.pipe((0,j.Q)(this._unsubscribeAll)).subscribe(function(){var n=(0,u.A)(function*(l){try{const g=yield t._storageService.getProjectsByNostrPubKeys(l);t.savedProjectDetailes=g,t.fetchMetadataForProjects(t.savedProjectDetailes),t.isLoading=!1}catch(g){console.error("Error updating bookmarks:",g),t.isLoading=!1}});return function(l){return n.apply(this,arguments)}}())}fetchMetadataForProjects(t){t.forEach(n=>{this._storageService.getProfile(n.nostrPubKey).then(l=>{l&&this.updateProjectMetadata(n,l)})})}updateProjectMetadata(t,n){t.displayName=n.name||t.displayName,t.about=n.about||t.about,t.picture=n.picture||t.picture,t.banner=n.banner||t.banner}toggleBookmark(t){var n=this;return(0,u.A)(function*(){(yield n._bookmarkService.isBookmarked(t))?yield n._bookmarkService.removeBookmark(t):yield n._bookmarkService.addBookmark(t)})()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}goToProjectDetails(t){this._projectsService.fetchProjectStats(t.projectIdentifier).pipe((0,K.M)(n=>{this._storageService.saveProjectStats(t.projectIdentifier,n)}),(0,K.M)(()=>{this._router.navigate(["/profile",t.nostrPubKey,t.projectIdentifier])}),(0,S.W)(n=>(console.error(`Failed to navigate to project details for ${t.projectIdentifier}:`,n),(0,U.of)(null)))).subscribe()}static{this.\u0275fac=function(n){return new(n||c)(e.rXU(E.U),e.rXU(F.n),e.rXU(B.Ix),e.rXU(_.i))}}static{this.\u0275cmp=e.VBU({type:c,selectors:[["app-bookmark"]],decls:19,vars:4,consts:[[1,"flex","min-w-0","flex-auto","flex-col"],[1,"dark","relative","flex-0","overflow-hidden","bg-gray-800","px-4","py-8","sm:p-16"],["viewBox","0 0 960 540","width","100%","height","100%","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"pointer-events-none","absolute","inset-0"],["fill","none","stroke","currentColor","stroke-width","100",1,"text-gray-700","opacity-25"],["r","234","cx","196","cy","23"],["r","234","cx","790","cy","491"],[1,"relative","z-10","flex","flex-col","items-center"],[1,"text-xl","font-semibold"],[1,"mt-1","text-center","text-4xl","font-extrabold","leading-tight","tracking-tight","sm:text-7xl"],[1,"text-secondary","mt-6","max-w-2xl","text-center","tracking-tight","sm:text-2xl"],[1,"p-6","sm:p-10"],[1,"mx-auto","flex","w-full","flex-auto","flex-col","sm:max-w-5xl"],[1,"mt-10","grid","w-full","min-w-0","grid-cols-1","gap-6","sm:grid-cols-1","md:grid-cols-1","lg:grid-cols-2"],[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],[1,"filter-info","flex","w-full","flex-col"],[1,"flex","h-32"],["alt","Card cover image","onerror","this.onerror=null; this.src='/images/pages/profile/cover.jpg';","alt","Card cover image",1,"object-cover",3,"src"],[1,"flex","px-8"],[1,"bg-card","-mt-12","rounded-full","p-1"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';","alt","Project logo",1,"h-24","w-24","rounded-full","object-cover",3,"src"],[1,"flex","flex-col","px-8","pb-6","pt-4"],[1,"flex","items-center","justify-between"],[1,"min-w-0","flex-1"],["role","button",1,"truncate","text-2xl","font-semibold","leading-tight"],[1,"truncate","text-2xl","font-semibold","leading-tight"],[1,"text-secondary","mt-1","truncate","leading-tight"],[1,"absolute","top-2","right-2","flex","space-x-2"],[1,"my-6","w-full","border-t"],["role","button",1,"truncate","text-2xl","font-semibold","leading-tight",3,"click"],[1,"flex","h-10","w-10","items-center","justify-center","rounded-full","border","bg-white","shadow-md"],["mat-icon-button","",3,"routerLink"],[1,"icon-size-5",3,"svgIcon"],["mat-icon-button","",3,"click"],[1,"flex","flex-auto","flex-col","items-center","justify-center"],[3,"diameter"],[1,"text-secondary","mt-4","text-lg"],[1,"flex","flex-auto","flex-col","items-center","justify-center","bg-gray-100","dark:bg-transparent"],[1,"icon-size-24",3,"svgIcon"],[1,"text-secondary","mt-4","text-2xl","font-semibold","tracking-tight"]],template:function(n,l){1&n&&(e.j41(0,"div",0)(1,"div",1),e.qSk(),e.j41(2,"svg",2)(3,"g",3),e.nrm(4,"circle",4)(5,"circle",5),e.k0s()(),e.joV(),e.j41(6,"div",6)(7,"h2",7),e.EFF(8,"Bookmark"),e.k0s(),e.j41(9,"div",8),e.EFF(10," Explore Your Saved Projects "),e.k0s(),e.j41(11,"div",9),e.EFF(12," Review and manage your bookmarked projects below. "),e.k0s()()(),e.j41(13,"div",10)(14,"div",11)(15,"div",12),e.DNE(16,D,16,6,"ng-container",13),e.k0s(),e.DNE(17,L,5,1,"ng-container",14)(18,$,5,1,"ng-container",14),e.k0s()()()),2&n&&(e.R7$(16),e.Y8G("ngForOf",l.savedProjectDetailes)("ngForTrackBy",l.trackByFn),e.R7$(),e.Y8G("ngIf",l.isLoading),e.R7$(),e.Y8G("ngIf",!l.isLoading&&0===l.savedProjectDetailes.length))},dependencies:[B.Wk,b.Hl,b.iY,m.m_,m.An,v.n,i.RG,f.Ve,a.Sy,r.fS,x.mV,p.uc,o.PO,d.MD,d.Sq,d.bT,d.Jj,k.D6,k.LG],encapsulation:2})}}return c})()}]},8098:(P,h,s)=>{s.d(h,{U:()=>a});var u=s(467),v=s(4412),d=s(4438),b=s(6324);let a=(()=>{class i{constructor(r){this._signerService=r,this.STORAGE_KEY="userBookmarkedProjects",this.bookmarksSubject=new v.t([]),this.bookmarks$=this.bookmarksSubject.asObservable(),this.currentUserPubKey=null,window.addEventListener("storage",o=>{o.key===this.STORAGE_KEY&&this.refreshBookmarksForCurrentUser()})}initializeForCurrentUser(){var r=this;return(0,u.A)(function*(){r.clearBookmarks(),r.currentUserPubKey=yield r._signerService.getPublicKey(),r.currentUserPubKey&&(yield r.loadBookmarksForCurrentUser())})()}clearBookmarks(){this.bookmarksSubject.next([])}loadBookmarksForCurrentUser(){var r=this;return(0,u.A)(function*(){if(!r.currentUserPubKey)return;const k=r.getUserBookmarks()[r.currentUserPubKey]||[];r.bookmarksSubject.next(k)})()}getUserBookmarks(){const r=localStorage.getItem(this.STORAGE_KEY);return r?JSON.parse(r):{}}saveUserBookmarks(r){localStorage.setItem(this.STORAGE_KEY,JSON.stringify(r))}addBookmark(r){var o=this;return(0,u.A)(function*(){if(!o.currentUserPubKey&&(o.currentUserPubKey=yield o._signerService.getPublicKey(),!o.currentUserPubKey))return void console.warn("No public key found for the current user.");const k=o.getUserBookmarks(),f=k[o.currentUserPubKey]||[];f.includes(r)||(f.push(r),k[o.currentUserPubKey]=f,o.saveUserBookmarks(k),o.bookmarksSubject.next(f))})()}removeBookmark(r){var o=this;return(0,u.A)(function*(){if(!o.currentUserPubKey&&(o.currentUserPubKey=yield o._signerService.getPublicKey(),!o.currentUserPubKey))return void console.warn("No public key found for the current user.");const k=o.getUserBookmarks(),x=(k[o.currentUserPubKey]||[]).filter(p=>p!==r);k[o.currentUserPubKey]=x,o.saveUserBookmarks(k),o.bookmarksSubject.next(x)})()}isBookmarked(r){var o=this;return(0,u.A)(function*(){return o.currentUserPubKey||(o.currentUserPubKey=yield o._signerService.getPublicKey(),o.currentUserPubKey)?(o.getUserBookmarks()[o.currentUserPubKey]||[]).includes(r):(console.warn("No public key found for the current user."),!1)})()}getBookmarks(){var r=this;return(0,u.A)(function*(){return r.currentUserPubKey||(r.currentUserPubKey=yield r._signerService.getPublicKey(),r.currentUserPubKey)?r.getUserBookmarks()[r.currentUserPubKey]||[]:(console.warn("No public key found for the current user."),[])})()}removeAllBookmarks(){var r=this;return(0,u.A)(function*(){if(!r.currentUserPubKey&&(r.currentUserPubKey=yield r._signerService.getPublicKey(),!r.currentUserPubKey))return void console.warn("No public key found for the current user.");const o=r.getUserBookmarks();o[r.currentUserPubKey]=[],r.saveUserBookmarks(o),r.bookmarksSubject.next([])})()}refreshBookmarksForCurrentUser(){this.currentUserPubKey&&this.loadBookmarksForCurrentUser()}static{this.\u0275fac=function(o){return new(o||i)(d.KVO(b.A))}}static{this.\u0275prov=d.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})()},833:(P,h,s)=>{s.d(h,{F:()=>v});var u=s(4438);let v=(()=>{class d{constructor(){this.mainnetLocalStorageKey="mainnetIndexers",this.testnetLocalStorageKey="testnetIndexers",this.mainnetPrimaryIndexerKey="mainnetPrimaryIndexer",this.testnetPrimaryIndexerKey="testnetPrimaryIndexer",this.networkStorageKey="selectedNetwork",this.defaultMainnetIndexer="https://btc.indexer.angor.io/",this.defaultTestnetIndexer="https://tbtc.indexer.angor.io/",this.initializeDefaultIndexers()}initializeDefaultIndexers(){0===this.getIndexers("mainnet").length&&(this.addIndexer(this.defaultMainnetIndexer,"mainnet"),this.setPrimaryIndexer(this.defaultMainnetIndexer,"mainnet")),0===this.getIndexers("testnet").length&&(this.addIndexer(this.defaultTestnetIndexer,"testnet"),this.setPrimaryIndexer(this.defaultTestnetIndexer,"testnet"))}addIndexer(a,i){let m=this.getIndexers(i);m.includes(a)||(m.push(a),this.saveIndexers(m,i))}getIndexers(a){return JSON.parse(localStorage.getItem("mainnet"===a?this.mainnetLocalStorageKey:this.testnetLocalStorageKey)||"[]")}saveIndexers(a,i){localStorage.setItem("mainnet"===i?this.mainnetLocalStorageKey:this.testnetLocalStorageKey,JSON.stringify(a))}setPrimaryIndexer(a,i){this.getIndexers(i).includes(a)&&localStorage.setItem("mainnet"===i?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey,a)}getPrimaryIndexer(a){return localStorage.getItem("mainnet"===a?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey)}removeIndexer(a,i){let m=this.getIndexers(i);const r=m.indexOf(a);-1!==r&&(m.splice(r,1),this.saveIndexers(m,i),a===this.getPrimaryIndexer(i))&&localStorage.removeItem("mainnet"===i?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey)}clearAllIndexers(a){const m="mainnet"===a?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey;localStorage.removeItem("mainnet"===a?this.mainnetLocalStorageKey:this.testnetLocalStorageKey),localStorage.removeItem(m)}setNetwork(a){localStorage.setItem(this.networkStorageKey,a)}getNetwork(){return localStorage.getItem(this.networkStorageKey)||"testnet"}static{this.\u0275fac=function(i){return new(i||d)}}static{this.\u0275prov=u.jDH({token:d,factory:d.\u0275fac,providedIn:"root"})}}return d})()}}]); \ No newline at end of file diff --git a/569.e16d2541faba0baa.js b/569.e16d2541faba0baa.js deleted file mode 100644 index 0f92b9e..0000000 --- a/569.e16d2541faba0baa.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkangor=self.webpackChunkangor||[]).push([[569],{3329:(S,v,a)=>{a.r(v),a.d(v,{default:()=>J});var m=a(467),b=a(9345),h=a(177),e=a(4438),u=a(8834),c=a(3),d=a(2408),s=a(9213),n=a(9042),p=a(7575),y=a(7250),k=a(450),I=a(4823),C=a(9183),_=a(5245),F=a(7291),K=a(1413),x=a(6977),E=a(8141),R=a(9437),B=a(7673),D=a(8098),w=a(8729),$=a(605),g=a(9969);let M=(()=>{class i{constructor(){this.displayText="",this.hasStarted=!1,this.days="00",this.hours="00",this.minutes="00",this.seconds="00",this.previousDays="00",this.previousHours="00",this.previousMinutes="00",this.previousSeconds="00"}ngOnInit(){this.subscription=(0,$.Y)(1e3).subscribe(()=>{this.updateTime()}),this.updateTime()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateTime(){const t=Math.floor(Date.now()/1e3),r=(this.hasStarted?this.expiryDate:this.startDate)-t;if(t>=this.startDate&&t0){const l=Math.floor(r/86400),j=Math.floor(r%86400/3600),P=Math.floor(r%3600/60),W=r%60;this.previousDays=this.days,this.previousHours=this.hours,this.previousMinutes=this.minutes,this.previousSeconds=this.seconds,this.days=this.formatTimeUnit(l),this.hours=this.formatTimeUnit(j),this.minutes=this.formatTimeUnit(P),this.seconds=this.formatTimeUnit(W)}else this.days=this.hours=this.minutes=this.seconds="00"}formatTimeUnit(t){return t<10?"0"+t:t.toString()}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["countdown-timer"]],inputs:{startDate:"startDate",expiryDate:"expiryDate"},decls:24,vars:11,consts:[[1,"countdown-container"],[1,"time-boxes-container"],[1,"time-box"],[1,"time-value"],[1,"time-label"],[1,"status-tooltip"]],template:function(o,r){1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.EFF(4),e.k0s(),e.j41(5,"div",4),e.EFF(6,"Days"),e.k0s()(),e.j41(7,"div",2)(8,"div",3),e.EFF(9),e.k0s(),e.j41(10,"div",4),e.EFF(11,"Hours"),e.k0s()(),e.j41(12,"div",2)(13,"div",3),e.EFF(14),e.k0s(),e.j41(15,"div",4),e.EFF(16,"Min"),e.k0s()(),e.j41(17,"div",2)(18,"div",3),e.EFF(19),e.k0s(),e.j41(20,"div",4),e.EFF(21,"Sec"),e.k0s()()(),e.j41(22,"div",5),e.EFF(23),e.k0s()()),2&o&&(e.R7$(3),e.Y8G("@numberChange",r.days!==r.previousDays),e.R7$(),e.JRh(r.days),e.R7$(4),e.Y8G("@numberChange",r.hours!==r.previousHours),e.R7$(),e.JRh(r.hours),e.R7$(4),e.Y8G("@numberChange",r.minutes!==r.previousMinutes),e.R7$(),e.JRh(r.minutes),e.R7$(4),e.Y8G("@numberChange",r.seconds!==r.previousSeconds),e.R7$(),e.JRh(r.seconds),e.R7$(3),e.xc7("color",r.hasStarted?"#ff6e99":"#42f548"),e.R7$(),e.SpI(" ",r.displayText," "))},dependencies:[h.MD],styles:[".countdown-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:.5rem;position:absolute;top:130px;right:30px;transform:translateY(0);width:auto}.time-boxes-container[_ngcontent-%COMP%]{display:flex;gap:.75rem}.time-box[_ngcontent-%COMP%]{background:#ffffff1a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border-radius:6px;padding:.5rem;min-width:55px;box-shadow:0 2px 4px #0000001a;text-align:center}.time-value[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;font-family:Monaco,monospace;margin-bottom:.15rem}.time-label[_ngcontent-%COMP%]{font-size:.65rem;text-transform:uppercase;opacity:.8}.status-tooltip[_ngcontent-%COMP%]{position:absolute;bottom:-25px;right:0;background:#000c;color:#fff;padding:4px 8px;border-radius:4px;font-size:.75rem;opacity:0;transition:opacity .2s ease-in-out;pointer-events:none;white-space:nowrap;z-index:10}.countdown-container[_ngcontent-%COMP%]:hover .status-tooltip[_ngcontent-%COMP%]{opacity:1}@media (max-width: 600px){.countdown-container[_ngcontent-%COMP%]{justify-content:flex-end;margin-top:.25rem;width:auto;transform:translateY(0)}.time-boxes-container[_ngcontent-%COMP%]{gap:.5rem}.time-box[_ngcontent-%COMP%]{padding:.25rem;min-width:45px}.time-value[_ngcontent-%COMP%]{font-size:1rem}.time-label[_ngcontent-%COMP%]{font-size:.55rem}.status-tooltip[_ngcontent-%COMP%]{font-size:.65rem}}"],data:{animation:[(0,g.hZ)("numberChange",[(0,g.kY)(":increment",[(0,g.iF)({transform:"translateY(-100%)",opacity:0}),(0,g.i0)("500ms ease-out",(0,g.iF)({transform:"translateY(0)",opacity:1}))]),(0,g.kY)(":decrement",[(0,g.iF)({transform:"translateY(100%)",opacity:0}),(0,g.i0)("500ms ease-out",(0,g.iF)({transform:"translateY(0)",opacity:1}))])])]}})}}return i})();const T=i=>["/chat",i];function U(i,f){if(1&i){const t=e.RV6();e.j41(0,"button",27),e.bIt("click",function(){e.eBV(t);const r=e.XpG(),l=e.sdS(20);return e.Njj(r.resetSearch(l))}),e.nrm(1,"mat-icon",28),e.k0s()}2&i&&(e.R7$(),e.Y8G("svgIcon","heroicons_solid:x-mark"))}function G(i,f){if(1&i){const t=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){e.eBV(t);const r=e.XpG(),l=e.sdS(20);return e.Njj(r.filterByQuery(l.value))}),e.nrm(1,"mat-icon",28),e.k0s()}2&i&&(e.R7$(),e.Y8G("svgIcon","heroicons_solid:magnifying-glass"))}function N(i,f){if(1&i){const t=e.RV6();e.j41(0,"div",59),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,l=e.XpG();return e.Njj(l.goToProjectDetails(r))}),e.EFF(1),e.k0s()}if(2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.displayName||t.nostrPubKey," ")}}function Y(i,f){if(1&i&&(e.j41(0,"div",60),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.displayName||t.nostrPubKey," ")}}function A(i,f){if(1&i){const t=e.RV6();e.j41(0,"div",61)(1,"div",62)(2,"button",63),e.nrm(3,"mat-icon",64),e.k0s()(),e.j41(4,"div",62)(5,"button",65),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,l=e.XpG();return e.Njj(l.toggleBookmark(r.nostrPubKey))}),e.nrm(6,"mat-icon",64),e.nI1(7,"async"),e.k0s()()()}if(2&i){let t;const o=e.XpG().$implicit,r=e.XpG();e.R7$(2),e.Y8G("routerLink",e.eq3(5,T,o.nostrPubKey)),e.R7$(),e.Y8G("svgIcon","heroicons_outline:chat-bubble-left-right"),e.R7$(3),e.Y8G("svgIcon",null!=(t=e.bMT(7,3,r.bookmarks$))&&t.includes(o.nostrPubKey)?"heroicons_solid:bookmark":"heroicons_outline:bookmark")}}function O(i,f){if(1&i){const t=e.RV6();e.j41(0,"angor-card",23)(1,"div",30),e.nrm(2,"img",31),e.k0s(),e.j41(3,"div",32)(4,"div",33),e.nrm(5,"img",34),e.k0s(),e.j41(6,"div",35),e.nrm(7,"countdown-timer",36),e.k0s()(),e.j41(8,"div",37)(9,"div",38)(10,"div",39),e.DNE(11,N,2,1,"div",40)(12,Y,2,1,"div",41),e.j41(13,"div",42),e.EFF(14),e.k0s()(),e.DNE(15,A,8,7,"div",43),e.k0s(),e.nrm(16,"hr",44),e.j41(17,"div",45)(18,"div",46),e.nrm(19,"mat-icon",47),e.j41(20,"div",48)(21,"span",49),e.EFF(22,"Target Amount"),e.k0s(),e.j41(23,"span",50),e.EFF(24),e.nI1(25,"number"),e.k0s()()(),e.j41(26,"div",46),e.nrm(27,"mat-icon",47),e.j41(28,"div",48)(29,"span",49),e.EFF(30,"Start Date"),e.k0s(),e.j41(31,"span",50),e.EFF(32),e.nI1(33,"date"),e.k0s()()(),e.j41(34,"div",46),e.nrm(35,"mat-icon",47),e.j41(36,"div",48)(37,"span",49),e.EFF(38,"Penalty Days"),e.k0s(),e.j41(39,"span",50),e.EFF(40),e.k0s()()(),e.j41(41,"div",46),e.nrm(42,"mat-icon",47),e.j41(43,"div",48)(44,"span",49),e.EFF(45,"Expiry Date"),e.k0s(),e.j41(46,"span",50),e.EFF(47),e.nI1(48,"date"),e.k0s()()(),e.j41(49,"div",46),e.nrm(50,"mat-icon",47),e.j41(51,"div",48)(52,"span",49),e.EFF(53,"Stages"),e.k0s(),e.j41(54,"span",50),e.EFF(55),e.k0s()()(),e.j41(56,"div",46),e.nrm(57,"mat-icon",47),e.j41(58,"div",48)(59,"span",49),e.EFF(60,"Seeders"),e.k0s(),e.j41(61,"span",50),e.EFF(62),e.k0s()()()(),e.j41(63,"div",51)(64,"a",52)(65,"span",53),e.nrm(66,"mat-icon",54),e.j41(67,"span",55),e.EFF(68,"Invest Now"),e.k0s()()(),e.j41(69,"button",56),e.bIt("click",function(){const r=e.eBV(t).$implicit,l=e.XpG();return e.Njj(l.goToProjectDetails(r))}),e.j41(70,"span",53),e.nrm(71,"mat-icon",57),e.j41(72,"span",58),e.EFF(73,"View Details"),e.k0s()()()()()()}if(2&i){const t=f.$implicit;e.R7$(2),e.Y8G("src",t.banner||"/images/pages/profile/cover.jpg",e.B4B),e.R7$(3),e.Y8G("src",t.picture||"images/avatars/avatar-placeholder.png",e.B4B),e.R7$(2),e.Y8G("startDate",t.startDate)("expiryDate",t.expiryDate),e.R7$(4),e.Y8G("ngIf",t.displayName||t.name),e.R7$(),e.Y8G("ngIf",!t.name&&!t.displayName),e.R7$(2),e.SpI(" ",t.about||"No description available"," "),e.R7$(),e.Y8G("ngIf",t.displayName||t.name),e.R7$(4),e.Y8G("svgIcon","heroicons_outline:currency-dollar"),e.R7$(5),e.SpI("",e.bMT(25,23,t.targetAmount)," TBTC"),e.R7$(3),e.Y8G("svgIcon","heroicons_outline:calendar"),e.R7$(5),e.JRh(e.bMT(33,25,1e3*t.startDate)),e.R7$(3),e.Y8G("svgIcon","heroicons_outline:clock"),e.R7$(5),e.SpI("",t.penaltyDays," days"),e.R7$(2),e.Y8G("svgIcon","heroicons_outline:calendar"),e.R7$(5),e.JRh(e.bMT(48,27,1e3*t.expiryDate)),e.R7$(3),e.Y8G("svgIcon","heroicons_outline:chart-bar"),e.R7$(5),e.JRh((null==t.stages?null:t.stages.length)||0),e.R7$(2),e.Y8G("svgIcon","heroicons_outline:user-group"),e.R7$(5),e.JRh((null==t.projectSeeders||null==t.projectSeeders.secretHashes?null:t.projectSeeders.secretHashes.length)||0),e.R7$(2),e.Y8G("href","https://test.angor.io/view/"+t.projectIdentifier,e.B4B),e.R7$(2),e.Y8G("svgIcon","heroicons_solid:circle-stack"),e.R7$(5),e.Y8G("svgIcon","heroicons_outline:document-text")}}function L(i,f){1&i&&(e.j41(0,"div",66),e.nrm(1,"mat-icon",67),e.j41(2,"div",68),e.EFF(3," No projects "),e.k0s()()),2&i&&(e.R7$(),e.Y8G("svgIcon","heroicons_outline:archive-box-x-mark"))}function V(i,f){if(1&i&&e.DNE(0,L,4,1,"div",66),2&i){const t=e.XpG();e.vxM(0===t.projectDetails().length?0:-1)}}function z(i,f){1&i&&(e.j41(0,"div",24),e.nrm(1,"mat-progress-spinner",69),e.j41(2,"div",70),e.EFF(3," Loading projects... "),e.k0s()())}function X(i,f){if(1&i){const t=e.RV6();e.j41(0,"div",25)(1,"button",71),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.loadMoreProjects())}),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(),e.Y8G("disabled",t.loading()),e.R7$(),e.SpI(" ",t.loading()?"Loading...":"Load More Projects"," ")}}function Q(i,f){if(1&i&&(e.j41(0,"div",26),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.SpI(" ",t.errorMessage()," ")}}const J=[{path:"",component:(()=>{class i{constructor(){this.projectService=(0,e.WQX)(w.i),this.storageService=(0,e.WQX)(F.n),this.changeDetectorRef=(0,e.WQX)(e.gRc),this.router=(0,e.WQX)(_.Ix),this.bookmarkService=(0,e.WQX)(D.U),this.projects=[],this.projectDetails=(0,e.vPA)([]),this.filteredProjects=[],this.loading=(0,e.vPA)(!1),this.errorMessage=(0,e.vPA)(""),this.noMoreProjects=!1,this.showCloseSearchButton=(0,e.vPA)(!1),this.bookmarkedProjectNpubs=[],this.initialLoadComplete=(0,e.vPA)(!1),this._unsubscribeAll=new K.B,this.bookmarks$=this.bookmarkService.bookmarks$}ngOnInit(){var t=this;return(0,m.A)(function*(){yield t.bookmarkService.initializeForCurrentUser(),t.loadInitialProjects(),t.subscribeToProjectsUpdates(),t.subscribeToLoading(),t.subscribeToNoMoreProjects(),t.subscribeToBookmarkChanges()})()}loadInitialProjects(){this.projectService.resetProjects(),this.loading.set(!0),this.initialLoadComplete.set(!1),this.projectService.fetchProjects().pipe((0,x.Q)(this._unsubscribeAll)).subscribe({next:t=>{this.projects=t,this.filteredProjects=this.projectDetails(),this.updateBookmarkStatus(),this.fetchProjectDetails(t),this.initialLoadComplete.set(!0),this.changeDetectorRef.detectChanges(),console.log(t)}})}subscribeToBookmarkChanges(){this.bookmarks$.pipe((0,x.Q)(this._unsubscribeAll)).subscribe(t=>{this.bookmarkedProjectNpubs=t,this.updateBookmarkStatus(),this.changeDetectorRef.detectChanges()})}updateBookmarkStatus(){this.projectDetails().forEach(t=>{t.isBookmarked=this.bookmarkedProjectNpubs.includes(t.nostrPubKey)}),this.filteredProjects=[...this.projectDetails()]}fetchMetadataForProjects(t){var o=this;return(0,m.A)(function*(){for(const r of t)try{const l=yield o.storageService.getProfile(r.nostrPubKey);l?o.updateProjectMetadata(r,l):console.warn(`No metadata found for project with pubKey: ${r.nostrPubKey}`)}catch(l){console.error(`Error fetching metadata for pubKey: ${r.nostrPubKey}`,l)}})()}fetchProjectDetails(t){var o=this;return(0,m.A)(function*(){for(const r of t)try{const l=yield o.storageService.getProjectDetails(r.projectIdentifier);if(l){o.projectDetails.update(P=>[...P,l]);const j=yield o.storageService.getProfile(l.nostrPubKey);j?o.updateProjectMetadata(l,j):console.warn(`No metadata found for project with nostrPubKey: ${l.nostrPubKey}`)}else console.warn(`No details found for project with eventId: ${r.nostrEventId}`)}catch(l){console.error(`Error fetching details for eventId: ${r.nostrEventId}`,l)}})()}subscribeToProjectsUpdates(){this.storageService.profile$.pipe((0,x.Q)(this._unsubscribeAll)).subscribe(t=>{if(t&&t.pubKey){const o=this.projectDetails().find(r=>r.nostrPubKey===t.pubKey);o&&(this.updateProjectMetadata(o,t.metadata),this.changeDetectorRef.detectChanges())}})}updateProjectMetadata(t,o){t.displayName=o.name||t.displayName,t.about=o.about||t.about,t.picture=o.picture||t.picture,t.banner=o.banner||t.banner}loadMoreProjects(){this.projectService.fetchProjects().pipe((0,x.Q)(this._unsubscribeAll)).subscribe({next:t=>{const o=t.filter(r=>!this.projects.some(l=>l.projectIdentifier===r.projectIdentifier));this.projects=[...this.projects,...o],this.filteredProjects=[...this.projectDetails()],this.fetchProjectDetails(o),this.changeDetectorRef.detectChanges()},error:t=>{this.errorMessage.set("Error loading more projects"),this.changeDetectorRef.detectChanges()}})}subscribeToLoading(){this.projectService.loading$.pipe((0,x.Q)(this._unsubscribeAll)).subscribe(t=>{this.loading.set(t),this.changeDetectorRef.detectChanges()})}subscribeToNoMoreProjects(){this.projectService.noMoreProjects$.pipe((0,x.Q)(this._unsubscribeAll)).subscribe(t=>{this.noMoreProjects=t,this.changeDetectorRef.detectChanges()})}trackByFn(t,o){return o.projectIdentifier||t}goToProjectDetails(t){this.projectService.fetchProjectStats(t.projectIdentifier).pipe((0,E.M)(o=>{this.storageService.saveProjectStats(t.projectIdentifier,o)}),(0,E.M)(()=>{this.router.navigate(["/profile",t.nostrPubKey,t.projectIdentifier])}),(0,R.W)(o=>(console.error(`Failed to navigate to project details for ${t.projectIdentifier}:`,o),(0,B.of)(null)))).subscribe()}filterByQuery(t){if(!t||""===t.trim())return this.filteredProjects=[...this.projectDetails()],this.showCloseSearchButton.set(!1),void this.changeDetectorRef.detectChanges();const o=t.toLowerCase();this.filteredProjects=this.projectDetails().filter(r=>r.displayName&&r.displayName.toLowerCase().includes(o)||r.about&&r.about.toLowerCase().includes(o)||r.displayName&&r.displayName.toLowerCase().includes(o)||r.nostrPubKey&&r.nostrPubKey.toLowerCase().includes(o)||r.projectIdentifier&&r.projectIdentifier.toLowerCase().includes(o)),this.showCloseSearchButton.set(this.projects.length>0),this.changeDetectorRef.detectChanges()}resetSearch(t){t.value="",this.filterByQuery(""),this.showCloseSearchButton.set(!1)}toggleBookmark(t){var o=this;return(0,m.A)(function*(){(yield o.bookmarkService.isBookmarked(t))?yield o.bookmarkService.removeBookmark(t):yield o.bookmarkService.addBookmark(t)})()}isProjectBookmarked(t){var o=this;return(0,m.A)(function*(){return yield o.bookmarkService.isBookmarked(t)})()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["explore"]],decls:33,vars:9,consts:[["query",""],[1,"flex","min-w-0","flex-auto","flex-col"],[1,"dark","relative","flex-0","overflow-hidden","bg-gray-800","px-4","py-8","sm:p-16"],["viewBox","0 0 960 540","width","100%","height","100%","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"pointer-events-none","absolute","inset-0"],["fill","none","stroke","currentColor","stroke-width","100",1,"text-gray-700","opacity-25"],["r","234","cx","196","cy","23"],["r","234","cx","790","cy","491"],[1,"relative","z-10","flex","flex-col","items-center"],[1,"text-xl","font-semibold"],[1,"mt-1","text-center","text-4xl","font-extrabold","leading-tight","tracking-tight","sm:text-7xl"],[1,"text-secondary","mt-6","max-w-2xl","text-center","tracking-tight","sm:text-2xl"],[1,"p-6","sm:p-10"],[1,"mx-auto","flex","w-full","max-w-xs","flex-auto","flex-col","sm:max-w-5xl"],[1,"flex","w-full","max-w-xs","flex-col","items-center","justify-between","sm:max-w-none","sm:flex-row"],[1,"flex","w-full","items-center","space-x-2","sm:w-auto"],[1,"mt-4","w-full","sm:w-80",3,"keyup.enter","subscriptSizing"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["placeholder","Search ...","matInput",""],["mat-icon-button","","color","warn",1,"mt-4"],["mat-icon-button","","color","success",1,"mt-4"],[1,"mt-8","sm:ml-auto","sm:mt-0",3,"color"],[1,"mx-auto","flex","w-full","flex-auto","flex-col","sm:max-w-5xl"],[1,"mt-10","grid","w-full","min-w-0","grid-cols-1","gap-6","sm:grid-cols-1","md:grid-cols-1","lg:grid-cols-2"],[1,"filter-info","flex","w-full","flex-col"],[1,"flex","flex-auto","flex-col","items-center","justify-center"],[1,"mt-10","flex","justify-center"],[1,"error-message"],["mat-icon-button","","color","warn",1,"mt-4",3,"click"],[3,"svgIcon"],["mat-icon-button","","color","success",1,"mt-4",3,"click"],[1,"flex","h-32"],["alt","Card cover image","onerror","this.onerror=null; this.src='/images/pages/profile/cover.jpg';","alt","Card cover image",1,"object-cover",3,"src"],[1,"flex","px-8","items-center","justify-between"],[1,"bg-card","-mt-12","rounded-full","p-1","shadow-lg","profile-picture"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';","alt","Project logo",1,"h-24","w-24","rounded-full","object-cover",3,"src"],[1,"ml-auto"],[3,"startDate","expiryDate"],[1,"flex","flex-col","px-8","pb-6","pt-4"],[1,"flex","items-center","justify-between"],[1,"min-w-0","flex-1"],["class","truncate text-2xl font-semibold leading-tight","role","button",3,"click",4,"ngIf"],["class","truncate text-2xl font-semibold leading-tight",4,"ngIf"],[1,"text-secondary","mt-1","truncate","leading-tight"],["class","absolute right-2 top-2 flex space-x-2",4,"ngIf"],[1,"my-6","w-full","border-t"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-4"],[1,"flex","items-center","space-x-2","p-4","bg-white","shadow-md","rounded-lg"],[1,"text-primary","text-3xl",3,"svgIcon"],[1,"flex","flex-col"],[1,"text-sm","text-gray-500"],[1,"font-semibold"],[1,"mt-6","grid","grid-cols-1","sm:grid-cols-2","gap-4"],["target","_blank",1,"group","relative","inline-flex","items-center","justify-center","overflow-hidden","rounded-lg","bg-primary","p-0.5","text-sm","font-medium","hover:bg-primary-700","focus:outline-none","focus:ring-4","focus:ring-primary-300","dark:bg-primary","dark:hover:bg-primary-600","dark:focus:ring-primary-800","w-full",3,"href"],[1,"relative","flex","items-center","justify-center","gap-2","rounded-md","bg-card","w-full","px-4","py-2.5","transition-all","duration-75","ease-in","group-hover:bg-opacity-0"],[1,"icon-size-5","text-primary","dark:text-primary-400","group-hover:text-white",3,"svgIcon"],[1,"text-primary","dark:text-primary-400","group-hover:text-white"],[1,"group","relative","inline-flex","items-center","justify-center","overflow-hidden","rounded-lg","bg-gray-200","dark:bg-gray-700","p-0.5","text-sm","font-medium","hover:bg-gray-300","dark:hover:bg-gray-600","focus:outline-none","focus:ring-4","focus:ring-gray-300","dark:focus:ring-gray-800","w-full",3,"click"],[1,"icon-size-5","text-gray-700","dark:text-gray-300","group-hover:text-white",3,"svgIcon"],[1,"text-gray-700","dark:text-gray-300","group-hover:text-white"],["role","button",1,"truncate","text-2xl","font-semibold","leading-tight",3,"click"],[1,"truncate","text-2xl","font-semibold","leading-tight"],[1,"absolute","right-2","top-2","flex","space-x-2"],[1,"flex","h-10","w-10","items-center","justify-center","rounded-full","border","bg-white","shadow-md"],["mat-icon-button","",3,"routerLink"],[1,"icon-size-5",3,"svgIcon"],["mat-icon-button","",3,"click"],[1,"flex","flex-auto","flex-col","items-center","justify-center","bg-gray-100","dark:bg-transparent"],[1,"icon-size-24",3,"svgIcon"],[1,"text-secondary","mt-4","text-2xl","font-semibold","tracking-tight"],["mode","indeterminate","diameter","48"],[1,"text-secondary","mt-4","text-xl"],["mat-raised-button","","color","primary",1,"bg-card","text-gray-700","hover:bg-gray-200","dark:text-gray-300","dark:hover:bg-gray-700",3,"click","disabled"]],template:function(o,r){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2),e.qSk(),e.j41(2,"svg",3)(3,"g",4),e.nrm(4,"circle",5)(5,"circle",6),e.k0s()(),e.joV(),e.j41(6,"div",7)(7,"h2",8),e.EFF(8,"Explore Projects"),e.k0s(),e.j41(9,"div",9),e.EFF(10," What\u2019s your next investment? "),e.k0s(),e.j41(11,"div",10),e.EFF(12," Check out our projects and find your next investment opportunity. "),e.k0s()()(),e.j41(13,"div",11)(14,"div",12)(15,"div",13)(16,"div",14)(17,"mat-form-field",15),e.bIt("keyup.enter",function(){e.eBV(l);const P=e.sdS(20);return e.Njj(r.filterByQuery(P.value))}),e.nrm(18,"mat-icon",16)(19,"input",17,0),e.k0s(),e.DNE(21,U,2,1,"button",18)(22,G,2,1,"button",19),e.k0s(),e.j41(23,"mat-slide-toggle",20),e.EFF(24," Hide completed "),e.k0s()()(),e.j41(25,"div",21)(26,"div",22),e.Z7z(27,O,74,29,"angor-card",23,e.Vm6),e.k0s(),e.DNE(29,V,1,1)(30,z,4,0,"div",24)(31,X,3,2,"div",25)(32,Q,2,1,"div",26),e.k0s()()()}2&o&&(e.R7$(17),e.Y8G("subscriptSizing","dynamic"),e.R7$(),e.Y8G("svgIcon","heroicons_solid:magnifying-glass"),e.R7$(3),e.vxM(r.showCloseSearchButton()?21:-1),e.R7$(),e.vxM(r.showCloseSearchButton()?-1:22),e.R7$(),e.Y8G("color","primary"),e.R7$(4),e.Dyx(r.projectDetails()),e.R7$(2),e.vxM(!r.loading()||r.initialLoadComplete()?29:-1),e.R7$(),e.vxM(r.loading()&&!r.initialLoadComplete()?30:-1),e.R7$(),e.vxM(r.projectDetails().length>0?31:-1),e.R7$(),e.vxM(!r.loading()&&r.errorMessage()?32:-1))},dependencies:[_.Wk,u.Hl,u.$z,u.iY,s.m_,s.An,b.n,d.RG,d.rl,d.JW,y.Ve,c.Sy,n.fS,n.fg,k.mV,k.sG,I.uc,p.PO,h.MD,h.bT,h.Jj,h.QX,h.vh,C.D6,C.LG,M],styles:["@media (max-width: 600px){.profile-picture img{height:18px;width:18px}}\n"],encapsulation:2})}}return i})()}]},8098:(S,v,a)=>{a.d(v,{U:()=>u});var m=a(467),b=a(4412),h=a(4438),e=a(6324);let u=(()=>{class c{constructor(s){this._signerService=s,this.STORAGE_KEY="userBookmarkedProjects",this.bookmarksSubject=new b.t([]),this.bookmarks$=this.bookmarksSubject.asObservable(),this.currentUserPubKey=null,window.addEventListener("storage",n=>{n.key===this.STORAGE_KEY&&this.refreshBookmarksForCurrentUser()})}initializeForCurrentUser(){var s=this;return(0,m.A)(function*(){s.clearBookmarks(),s.currentUserPubKey=yield s._signerService.getPublicKey(),s.currentUserPubKey&&(yield s.loadBookmarksForCurrentUser())})()}clearBookmarks(){this.bookmarksSubject.next([])}loadBookmarksForCurrentUser(){var s=this;return(0,m.A)(function*(){if(!s.currentUserPubKey)return;const p=s.getUserBookmarks()[s.currentUserPubKey]||[];s.bookmarksSubject.next(p)})()}getUserBookmarks(){const s=localStorage.getItem(this.STORAGE_KEY);return s?JSON.parse(s):{}}saveUserBookmarks(s){localStorage.setItem(this.STORAGE_KEY,JSON.stringify(s))}addBookmark(s){var n=this;return(0,m.A)(function*(){if(!n.currentUserPubKey&&(n.currentUserPubKey=yield n._signerService.getPublicKey(),!n.currentUserPubKey))return void console.warn("No public key found for the current user.");const p=n.getUserBookmarks(),y=p[n.currentUserPubKey]||[];y.includes(s)||(y.push(s),p[n.currentUserPubKey]=y,n.saveUserBookmarks(p),n.bookmarksSubject.next(y))})()}removeBookmark(s){var n=this;return(0,m.A)(function*(){if(!n.currentUserPubKey&&(n.currentUserPubKey=yield n._signerService.getPublicKey(),!n.currentUserPubKey))return void console.warn("No public key found for the current user.");const p=n.getUserBookmarks(),k=(p[n.currentUserPubKey]||[]).filter(I=>I!==s);p[n.currentUserPubKey]=k,n.saveUserBookmarks(p),n.bookmarksSubject.next(k)})()}isBookmarked(s){var n=this;return(0,m.A)(function*(){return n.currentUserPubKey||(n.currentUserPubKey=yield n._signerService.getPublicKey(),n.currentUserPubKey)?(n.getUserBookmarks()[n.currentUserPubKey]||[]).includes(s):(console.warn("No public key found for the current user."),!1)})()}getBookmarks(){var s=this;return(0,m.A)(function*(){return s.currentUserPubKey||(s.currentUserPubKey=yield s._signerService.getPublicKey(),s.currentUserPubKey)?s.getUserBookmarks()[s.currentUserPubKey]||[]:(console.warn("No public key found for the current user."),[])})()}removeAllBookmarks(){var s=this;return(0,m.A)(function*(){if(!s.currentUserPubKey&&(s.currentUserPubKey=yield s._signerService.getPublicKey(),!s.currentUserPubKey))return void console.warn("No public key found for the current user.");const n=s.getUserBookmarks();n[s.currentUserPubKey]=[],s.saveUserBookmarks(n),s.bookmarksSubject.next([])})()}refreshBookmarksForCurrentUser(){this.currentUserPubKey&&this.loadBookmarksForCurrentUser()}static{this.\u0275fac=function(n){return new(n||c)(h.KVO(e.A))}}static{this.\u0275prov=h.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},833:(S,v,a)=>{a.d(v,{F:()=>b});var m=a(4438);let b=(()=>{class h{constructor(){this.mainnetLocalStorageKey="mainnetIndexers",this.testnetLocalStorageKey="testnetIndexers",this.mainnetPrimaryIndexerKey="mainnetPrimaryIndexer",this.testnetPrimaryIndexerKey="testnetPrimaryIndexer",this.networkStorageKey="selectedNetwork",this.defaultMainnetIndexer="https://btc.indexer.angor.io/",this.defaultTestnetIndexer="https://tbtc.indexer.angor.io/",this.initializeDefaultIndexers()}initializeDefaultIndexers(){0===this.getIndexers("mainnet").length&&(this.addIndexer(this.defaultMainnetIndexer,"mainnet"),this.setPrimaryIndexer(this.defaultMainnetIndexer,"mainnet")),0===this.getIndexers("testnet").length&&(this.addIndexer(this.defaultTestnetIndexer,"testnet"),this.setPrimaryIndexer(this.defaultTestnetIndexer,"testnet"))}addIndexer(u,c){let d=this.getIndexers(c);d.includes(u)||(d.push(u),this.saveIndexers(d,c))}getIndexers(u){return JSON.parse(localStorage.getItem("mainnet"===u?this.mainnetLocalStorageKey:this.testnetLocalStorageKey)||"[]")}saveIndexers(u,c){localStorage.setItem("mainnet"===c?this.mainnetLocalStorageKey:this.testnetLocalStorageKey,JSON.stringify(u))}setPrimaryIndexer(u,c){this.getIndexers(c).includes(u)&&localStorage.setItem("mainnet"===c?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey,u)}getPrimaryIndexer(u){return localStorage.getItem("mainnet"===u?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey)}removeIndexer(u,c){let d=this.getIndexers(c);const s=d.indexOf(u);-1!==s&&(d.splice(s,1),this.saveIndexers(d,c),u===this.getPrimaryIndexer(c))&&localStorage.removeItem("mainnet"===c?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey)}clearAllIndexers(u){const d="mainnet"===u?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey;localStorage.removeItem("mainnet"===u?this.mainnetLocalStorageKey:this.testnetLocalStorageKey),localStorage.removeItem(d)}setNetwork(u){localStorage.setItem(this.networkStorageKey,u)}getNetwork(){return localStorage.getItem(this.networkStorageKey)||"testnet"}static{this.\u0275fac=function(c){return new(c||h)}}static{this.\u0275prov=m.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}}return h})()}}]); \ No newline at end of file diff --git a/888.e4547c5c0d4811fa.js b/888.4de400e6548c47d4.js similarity index 94% rename from 888.e4547c5c0d4811fa.js rename to 888.4de400e6548c47d4.js index 80dbf55..2d09c19 100644 --- a/888.e4547c5c0d4811fa.js +++ b/888.4de400e6548c47d4.js @@ -1 +1 @@ -(self.webpackChunkangor=self.webpackChunkangor||[]).push([[888],{4496:(U,s,o)=>{"use strict";o.d(s,{q:()=>R});var r=o(9345),t=o(9979),i=o(177),e=o(4438),a=o(8834),c=o(1997),u=o(9213),l=o(9115),y=o(5245),g=o(467),f=o(7291),m=o(8703),b=o(2827);let C=(()=>{class h{constructor(){this.userChange=new e.bkB,this.user=(0,e.vPA)(null),this._changeDetectorRef=(0,e.WQX)(e.gRc),this._storageService=(0,e.WQX)(f.n),this._metadatasService=(0,e.WQX)(b.T)}ngOnInit(){this.loadUserProfile(),this._metadatasService.addPublicKey(this.pubkey),this.subscription=this._storageService.profile$.subscribe(n=>{n&&n.pubKey===this.pubkey&&(this.user.set(n.metadata),this.userChange.emit(this.user()),this._changeDetectorRef.detectChanges())})}loadUserProfile(){var n=this;return(0,g.A)(function*(){const v=yield n._storageService.getProfile(n.pubkey);n.user.set(v||{}),n.userChange.emit(n.user()),n._changeDetectorRef.detectChanges()})()}get displayName(){return this.user()?.display_name||this.user()?.name||this.shortenPubkey(this.pubkey)}get displayAvatar(){return this.user()?.picture||this.avatarUrl||"/images/avatars/avatar-placeholder.png"}shortenPubkey(n){return n?`${n.slice(0,8)}...${n.slice(-8)}`:""}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static{this.\u0275fac=function(v){return new(v||h)}}static{this.\u0275cmp=e.VBU({type:h,selectors:[["app-post-profile"]],inputs:{pubkey:"pubkey",avatarUrl:"avatarUrl",created_at:"created_at"},outputs:{userChange:"userChange"},decls:9,vars:7,consts:[[1,"flex","items-center"],[1,"flex","items-center","group",3,"href"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"mr-4","h-10","w-10","rounded-full","object-cover",3,"src","alt"],[1,"flex","flex-col"],[1,"font-semibold","leading-none"],[1,"text-secondary","mt-1","text-sm","leading-none"]],template:function(v,_){1&v&&(e.j41(0,"div",0)(1,"a",1),e.nrm(2,"img",2),e.j41(3,"div",3)(4,"span",4),e.EFF(5),e.k0s(),e.j41(6,"span",5),e.EFF(7),e.nI1(8,"ago"),e.k0s()()()()),2&v&&(e.R7$(),e.Y8G("href","/profile/"+_.pubkey,e.B4B),e.R7$(),e.Y8G("src",_.displayAvatar,e.B4B)("alt",_.displayName),e.R7$(3),e.JRh(_.displayName),e.R7$(2),e.JRh(e.bMT(8,5,_.created_at)))},dependencies:[i.MD,m.g],encapsulation:2})}}return h})();var T=o(2022),$=o(413),S=o(3105),L=o(8359),B=o(6697);const k=h=>({"large-font":h}),W=h=>({"heart-beat":h}),Y=h=>["/post",h];function A(h,G){if(1&h&&(e.j41(0,"div",12),e.nrm(1,"iframe",14),e.k0s()),2&h){const n=e.XpG().$implicit;e.R7$(),e.Y8G("src",n.safeWord,e.f$h)}}function N(h,G){if(1&h&&(e.j41(0,"div",12),e.nrm(1,"img",15),e.k0s()),2&h){const n=e.XpG().$implicit;e.R7$(),e.Y8G("src",n.safeWord,e.B4B)}}function P(h,G){if(1&h&&(e.j41(0,"div",12)(1,"video",16),e.nrm(2,"source",17),e.EFF(3," Your browser does not support the video tag. "),e.k0s()()),2&h){const n=e.XpG().$implicit;e.R7$(2),e.Y8G("src",n.safeWord,e.B4B)}}function w(h,G){if(1&h&&(e.j41(0,"div",12)(1,"audio",18),e.nrm(2,"source",19),e.EFF(3," Your browser does not support the audio element. "),e.k0s()()),2&h){const n=e.XpG().$implicit;e.R7$(2),e.Y8G("src",n.safeWord,e.B4B)}}function O(h,G){if(1&h&&(e.j41(0,"div",13)(1,"a",20)(2,"span",21),e.EFF(3),e.k0s()()()),2&h){const n=e.XpG().$implicit;e.R7$(),e.Y8G("href",n.word,e.B4B),e.R7$(2),e.JRh(n.word)}}function F(h,G){if(1&h&&(e.j41(0,"div",13)(1,"span",22),e.EFF(2),e.k0s()()),2&h){const n=e.XpG().$implicit,v=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(2,k,v.isSingleEmojiOrWord(n))),e.R7$(),e.SpI("",n.trim()," ")}}function I(h,G){if(1&h&&(e.j41(0,"div",10),e.DNE(1,A,2,1,"div",12)(2,N,2,1,"div",12)(3,P,4,1,"div",12)(4,w,4,1,"div",12)(5,O,4,2,"div",13)(6,F,3,4,"div",13),e.k0s()),2&h){const n=G.$implicit;e.R7$(),e.vxM("youtube"===n.token?1:-1),e.R7$(),e.vxM("image"===n.token?2:-1),e.R7$(),e.vxM("video"===n.token?3:-1),e.R7$(),e.vxM("audio"===n.token?4:-1),e.R7$(),e.vxM("link"===n.token?5:-1),e.R7$(),e.vxM(n.token?-1:6)}}function x(h,G){if(1&h){const n=e.RV6();e.j41(0,"div",11)(1,"button",23),e.bIt("click",function(){e.eBV(n);const _=e.XpG();return e.Njj(_.toggleLike(_.item))}),e.nrm(2,"mat-icon",24),e.j41(3,"span",25),e.EFF(4),e.k0s()(),e.j41(5,"button",26),e.nrm(6,"mat-icon",27),e.j41(7,"span",25),e.EFF(8,"Comment"),e.k0s()(),e.j41(9,"button",23),e.bIt("click",function(){e.eBV(n);const _=e.XpG();return e.Njj(_.onShare(_.item))}),e.nrm(10,"mat-icon",28),e.j41(11,"span",25),e.EFF(12,"Share"),e.k0s()(),e.j41(13,"button",23),e.bIt("click",function(){e.eBV(n);const _=e.XpG();return e.Njj(_.openZapDialog(_.item.id,_.user))}),e.nrm(14,"mat-icon",29),e.j41(15,"span",25),e.EFF(16,"Zap"),e.k0s()()()}if(2&h){const n=e.XpG();e.R7$(2),e.Y8G("ngClass",e.eq3(7,W,n.isLiked))("svgIcon",n.isLiked?"heroicons_solid:heart":"heroicons_outline:heart"),e.R7$(2),e.SpI("",n.isLiked?"Liked":"Like"," "),e.R7$(),e.Y8G("routerLink",e.eq3(9,Y,n.item.id)),e.R7$(),e.Y8G("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),e.R7$(4),e.Y8G("svgIcon","heroicons_solid:share"),e.R7$(4),e.Y8G("svgIcon","heroicons_solid:bolt")}}function M(h,G){if(1&h&&(e.nrm(0,"hr",30),e.j41(1,"div",31),e.nrm(2,"div",32),e.j41(3,"div",33)(4,"button",34)(5,"span",35),e.EFF(6,"Read More ..."),e.k0s()()()()),2&h){const n=e.XpG();e.R7$(4),e.Y8G("routerLink",e.eq3(1,Y,n.item.id))}}let R=(()=>{class h{constructor(){this.actions=!0,this.more=!0,this.user=new e.bkB,this.storageService=(0,e.WQX)(f.n),this.zapService=(0,e.WQX)(S.D),this.parseContent=(0,e.WQX)($.m),this.eventService=(0,e.WQX)(T.U),this.angorConfirmationService=(0,e.WQX)(t.m),this.changeDetectorRef=(0,e.WQX)(e.gRc),this.subscription=new L.yU,this.tokens=(0,e.vPA)([]),this.isLiked=!1}get item(){return this._item}set item(n){this._item=n,this.onItemChange()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}openZapDialog(n,v){this.zapService.openZapDialog(n,v)}getProfile(){}isSingleEmojiOrWord(n){const v=n.trim(),_=/^\w+$/.test(v),D=/^[\p{Emoji}]+$/u.test(v);return(_||D)&&v.length<10}onItemChange(){this._item&&(this.subscription=this.storageService.myLikes$.pipe((0,B.s)(1)).subscribe(n=>{this.isLiked=n?.includes(this._item.id)||!1,this.changeDetectorRef.detectChanges()}),this.tokens.set(this._item.content?this.parseContent.parseContent(this._item.content):[]))}sendLike(n){this.isLiked||this.eventService.sendLikeEvent(n).then(()=>{this.isLiked=!0,this.changeDetectorRef.detectChanges()}).catch(v=>console.error("Failed to send like:",v))}toggleLike(n){this.sendLike(n)}onShare(n){this.angorConfirmationService.open({title:"Share",message:'Are you sure you want to share this post on your profile? This action is permanent and cannot be undone.',icon:{show:!0,name:"heroicons_solid:share",color:"primary"},actions:{confirm:{show:!0,label:"Yes, Share",color:"primary"},cancel:{show:!0,label:"Cancel"}},dismissible:!0}).afterClosed().subscribe(_=>{console.log(_),"confirmed"===_&&this.eventService.shareEvent(n)})}trackByToken(n,v){return v.id||n}static{this.\u0275fac=function(v){return new(v||h)}}static{this.\u0275cmp=e.VBU({type:h,selectors:[["app-post"]],inputs:{item:"item",actions:"actions",more:"more"},outputs:{user:"user"},decls:42,vars:13,consts:[["postCardMenu","matMenu"],[1,"flex","w-full","flex-col"],[1,"mx-6","mb-4","mt-6","flex","items-center","sm:mx-8"],[3,"userChange","pubkey","avatarUrl","created_at"],["mat-icon-button","",1,"-mr-4","ml-auto",3,"matMenuTriggerFor"],[1,"icon-size-5",3,"svgIcon"],["mat-menu-item",""],[1,"flex","items-center"],[1,"mr-3","icon-size-5",3,"svgIcon"],[1,"my-2"],[1,"inline-block","whitespace-pre-wrap","break-words"],[1,"mx-3","flex","items-center","sm:mx-5"],[1,"relative","mb-4","block"],[1,"mx-6","mb-6","mt-2","sm:mx-8"],["width","560","height","315","frameborder","0","allowfullscreen","",3,"src"],["alt","Embedded Image",1,"max-h-140","object-cover",2,"width","100%",3,"src"],["controls","",2,"width","100%"],["type","video/mp4",3,"src"],["controls",""],["type","audio/mpeg",3,"src"],["target","_blank",1,"inline-block","break-words","text-blue-500","underline",3,"href"],[1,"inline-block","break-words"],[1,"inline-block","break-words",3,"ngClass"],["mat-button","",1,"mr-1","px-3",3,"click"],[1,"text-red-500","icon-size-5",3,"ngClass","svgIcon"],[1,"ml-2"],["mat-button","",1,"mr-1","px-3",3,"routerLink"],[1,"text-blue-500","icon-size-5",3,"svgIcon"],[1,"text-green-500","icon-size-5",3,"svgIcon"],[1,"text-orange-500","icon-size-5",3,"svgIcon"],[1,"mx-6","mb-6","mt-4","border-b","sm:mx-8"],[1,"mx-6","mb-4","flex","flex-col","sm:mx-8","sm:mb-6","sm:flex-row","sm:items-center"],[1,"hidden","flex-auto","sm:flex"],[1,"mt-4","flex","items-center","sm:mt-0"],["mat-button","",1,"px-3","sm:-mr-4",3,"routerLink"],[1,"mr-1"]],template:function(v,_){if(1&v){const D=e.RV6();e.j41(0,"angor-card",1)(1,"div",2)(2,"app-post-profile",3),e.bIt("userChange",function(d){return e.eBV(D),e.Njj(_.user=d)}),e.k0s(),e.j41(3,"button",4),e.nrm(4,"mat-icon",5),e.k0s(),e.j41(5,"mat-menu",null,0)(7,"button",6)(8,"span",7),e.nrm(9,"mat-icon",8),e.j41(10,"span"),e.EFF(11,"Save post"),e.k0s()()(),e.j41(12,"button",6)(13,"span",7),e.nrm(14,"mat-icon",8),e.j41(15,"span"),e.EFF(16,"Hide post"),e.k0s()()(),e.j41(17,"button",6)(18,"span",7),e.nrm(19,"mat-icon",8),e.j41(20,"span"),e.EFF(21,"Snooze for 30 days"),e.k0s()()(),e.j41(22,"button",6)(23,"span",7),e.nrm(24,"mat-icon",8),e.j41(25,"span"),e.EFF(26,"Hide all"),e.k0s()()(),e.nrm(27,"mat-divider",9),e.j41(28,"button",6)(29,"span",7),e.nrm(30,"mat-icon",8),e.j41(31,"span"),e.EFF(32,"Report post"),e.k0s()()(),e.j41(33,"button",6)(34,"span",7),e.nrm(35,"mat-icon",8),e.j41(36,"span"),e.EFF(37,"Turn on notifications for this post"),e.k0s()()()()(),e.Z7z(38,I,7,6,"div",10,_.trackByToken,!0),e.DNE(40,x,17,11,"div",11)(41,M,7,3),e.k0s()}if(2&v){const D=e.sdS(6);e.R7$(2),e.Y8G("pubkey",null==_.item?null:_.item.pubkey)("avatarUrl","/images/avatars/avatar-placeholder.png")("created_at",_.item.created_at),e.R7$(),e.Y8G("matMenuTriggerFor",D),e.R7$(),e.Y8G("svgIcon","heroicons_solid:ellipsis-vertical"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:arrow-up-tray"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:eye-slash"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:clock"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:minus-circle"),e.R7$(6),e.Y8G("svgIcon","heroicons_solid:exclamation-triangle"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:bell"),e.R7$(3),e.Dyx(_.tokens()),e.R7$(2),e.vxM(_.actions?40:-1),e.R7$(),e.vxM(_.more?41:-1)}},dependencies:[r.n,C,u.m_,u.An,c.w,c.q,l.Cn,l.kk,l.fb,l.Cp,y.iI,y.Wk,i.MD,i.YU,a.$z],encapsulation:2})}}return h})()},2022:(U,s,o)=>{"use strict";o.d(s,{U:()=>u});var r=o(467),t=o(5766),i=o(5462),e=o(4438),a=o(6231),c=o(6324);let u=(()=>{class l{constructor(g,f){this.relayService=g,this.signerService=f,this.likesMap=new Map,this.myLikedNoteIds=[]}sendTextEvent(g){var f=this;return(0,r.A)(function*(){if(g)try{const b=f.signerService.getUnsignedEvent(1,[],g);let C;if(f.signerService.isUsingSecretKey()){const T=yield f.signerService.getDecryptedSecretKey(),$=(0,t.aT)(T);C=(0,i.pC)(b,$)}else C=yield f.signerService.signEventWithExtension(b);yield f.relayService.publishEventToWriteRelays(C)}catch(m){console.error("Failed to send text event:",m)}})()}sendLikeEvent(g){var f=this;return(0,r.A)(function*(){if(g)try{const C=f.signerService.getUnsignedEvent(7,[["e",g.id],["p",g.pubkey]],"+");let T;if(f.signerService.isUsingSecretKey()){const $=yield f.signerService.getDecryptedSecretKey(),S=(0,t.aT)($);T=(0,i.pC)(C,S)}else T=yield f.signerService.signEventWithExtension(C);yield f.relayService.publishEventToWriteRelays(T),f.likesMap.set(g.id,[...f.likesMap.get(g.id)||[],f.signerService.getPublicKey()])}catch(m){console.error("Failed to send like event:",m)}})()}sendZapEvent(g,f){var m=this;return(0,r.A)(function*(){if(g&&!(f<=0))try{const b=[["e",g.id],["p",g.pubkey],["amount",f.toString()]],T=m.signerService.getUnsignedEvent(9735,b,`Zapped with ${f} sats`);let $;if(m.signerService.isUsingSecretKey()){const S=yield m.signerService.getDecryptedSecretKey(),L=(0,t.aT)(S);$=(0,i.pC)(T,L)}else $=yield m.signerService.signEventWithExtension(T);yield m.relayService.publishEventToWriteRelays($)}catch(b){console.error("Failed to send zap event:",b)}})()}sendReplyEvent(g,f){var m=this;return(0,r.A)(function*(){if(g)try{const C=m.signerService.getUnsignedEvent(1,[["e",g.id],["p",g.pubkey]],f);let T;if(m.signerService.isUsingSecretKey()){const $=yield m.signerService.getDecryptedSecretKey(),S=(0,t.aT)($);T=(0,i.pC)(C,S)}else T=yield m.signerService.signEventWithExtension(C);yield m.relayService.publishEventToWriteRelays(T)}catch(b){console.error("Failed to send reply event:",b)}})()}shareEvent(g){var f=this;return(0,r.A)(function*(){if(g)try{const C=f.signerService.getUnsignedEvent(6,[["e",g.id],["p",g.pubkey]],"");let T;if(f.signerService.isUsingSecretKey()){const $=yield f.signerService.getDecryptedSecretKey(),S=(0,t.aT)($);T=(0,i.pC)(C,S)}else T=yield f.signerService.signEventWithExtension(C);yield f.relayService.publishEventToWriteRelays(T),console.log("Event shared successfully:",T)}catch(m){console.error("Failed to share event:",m)}})()}static{this.\u0275fac=function(f){return new(f||l)(e.KVO(a.b),e.KVO(c.A))}}static{this.\u0275prov=e.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})()},3105:(U,s,o)=>{"use strict";o.d(s,{D:()=>c});var r=o(467),t=o(4438),i=o(5351),e=o(5416),a=o(1567);let c=(()=>{class u{constructor(){this.dialog=(0,t.WQX)(i.bZ),this.snackBar=(0,t.WQX)(e.UG)}canUseZap(y){var g=this;return(0,r.A)(function*(){return!(!y||!y.lud06&&!y.lud16)||(g.openSnackBar("Using Zap is not possible. Please complete your profile to include lud06 or lud16."),!1)})()}openSnackBar(y,g="dismiss"){this.snackBar.open(y,g,{duration:3e3})}openZapDialog(y="",g){var f=this;return(0,r.A)(function*(){(yield f.canUseZap(g))&&f.dialog.open(a.r,{width:"405px",maxHeight:"90vh",data:{lud16:g.lud16,lud06:g.lud06,pubkey:g.pubkey,eventId:y}})})()}static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275prov=t.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},1567:(U,s,o)=>{"use strict";o.d(s,{r:()=>R});var r=o(467),t=o(4438),i=o(9417),e=o(5351),a=o(5416),c=o(3801),u=o(5462),l=o(6324),y=o(6231),g=o(8834),f=o(9213),m=o(177),b=o(1997),C=o(2408),T=o(9042),$=o(7250),S=o(882),L=o(4823),B=o(5766),k=o(8314),W=o(345);const Y=["qrcElement"];let A=(()=>{class h{constructor(n,v){this.renderer=n,this.sanitizer=v,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new t.bkB,this.context=null}ngOnChanges(){var n=this;return(0,r.A)(function*(){yield n.createQRCode()})()}isValidQrCodeText(n){return!1===this.allowEmptyString?!(typeof n>"u"||""===n||"null"===n||null===n):!(typeof n>"u")}toDataURL(n){return new Promise((v,_)=>{(0,k.dY)(this.qrdata,n,(D,H)=>{D?_(D):v(H)})})}toCanvas(n,v){return new Promise((_,D)=>{(0,k.mo)(n,this.qrdata,v,H=>{H?D(H):_("success")})})}toSVG(n){return new Promise((v,_)=>{(0,k.toString)(this.qrdata,n,(D,H)=>{D?_(D):v(H)})})}renderElement(n){for(const v of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,v);this.renderer.appendChild(this.qrcElement.nativeElement,n)}createQRCode(){var n=this;return(0,r.A)(function*(){n.version&&n.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),n.version=40):n.version&&n.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),n.version=1):void 0!==n.version&&isNaN(n.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),n.version=void 0);try{if(!n.isValidQrCodeText(n.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");n.isValidQrCodeText(n.qrdata)&&""===n.qrdata&&(n.qrdata=" ");const v={color:{dark:n.colorDark,light:n.colorLight},errorCorrectionLevel:n.errorCorrectionLevel,margin:n.margin,scale:n.scale,version:n.version,width:n.width},_=n.imageSrc,D=n.imageHeight||40,H=n.imageWidth||40;switch(n.elementType){case"canvas":{const d=n.renderer.createElement("canvas");n.context=d.getContext("2d"),n.toCanvas(d,v).then(()=>{if(n.ariaLabel&&n.renderer.setAttribute(d,"aria-label",`${n.ariaLabel}`),n.title&&n.renderer.setAttribute(d,"title",`${n.title}`),_&&n.context){n.centerImage=new Image(H,D),_!==n.centerImage.src&&(n.centerImage.crossOrigin="anonymous",n.centerImage.src=_),D!==n.centerImage.height&&(n.centerImage.height=D),H!==n.centerImage.width&&(n.centerImage.width=H);const p=n.centerImage;p&&(p.onload=()=>{n.context?.drawImage(p,d.width/2-H/2,d.height/2-D/2,H,D)})}n.renderElement(d),n.emitQRCodeURL(d)}).catch(p=>{console.error("[angularx-qrcode] canvas error:",p)});break}case"svg":{const d=n.renderer.createElement("div");n.toSVG(v).then(p=>{n.renderer.setProperty(d,"innerHTML",p);const E=d.firstChild;n.renderer.setAttribute(E,"height",`${n.width}`),n.renderer.setAttribute(E,"width",`${n.width}`),n.renderElement(E),n.emitQRCodeURL(E)}).catch(p=>{console.error("[angularx-qrcode] svg error:",p)});break}default:{const d=n.renderer.createElement("img");n.toDataURL(v).then(p=>{n.alt&&d.setAttribute("alt",n.alt),n.ariaLabel&&d.setAttribute("aria-label",n.ariaLabel),d.setAttribute("src",p),n.title&&d.setAttribute("title",n.title),n.renderElement(d),n.emitQRCodeURL(d)}).catch(p=>{console.error("[angularx-qrcode] img/url error:",p)})}}}catch(v){console.error("[angularx-qrcode] Error generating QR Code:",v.message)}})()}convertBase64ImageUrlToBlob(n){const v=n.split(";base64,"),_=v[0].split(":")[1],D=atob(v[1]),H=new Uint8Array(D.length);for(let d=0;d{class h{constructor(n){this.util=n,this.formBuilder=(0,t.WQX)(i.ok),this.signerService=(0,t.WQX)(l.A),this.relayService=(0,t.WQX)(y.b),this.dialogRef=(0,t.WQX)(e.CP),this.snackBar=(0,t.WQX)(a.UG),this.clipboard=(0,t.WQX)(c.B0),this.data=(0,t.WQX)(e.Vh),this.lightningInvoice="",this.payRequest=null,this.displayQRCode=!1,this.showInvoiceSection=!1,this.loading=!1,this.invoiceAmount=0,this.error="",this.zapButtons=[{icon:"thumb_up",label:"21",value:21},{icon:"favorite",label:"50",value:50},{icon:"emoji_emotions",label:"100",value:100},{icon:"star",label:"500",value:500},{icon:"celebration",label:"1k",value:1e3},{icon:"rocket",label:"5k",value:5e3},{icon:"local_fire_department",label:"10k",value:1e4},{icon:"flash_on",label:"100k",value:1e5},{icon:"diamond",label:"500k",value:5e5}]}ngOnInit(){this.initializeForm()}initializeForm(){this.sendZapForm=this.formBuilder.group({lightningAddress:[this.data.lud16||this.data.lud06,[i.k0.required,this.validateLightningAddress]],amount:["",[i.k0.required,i.k0.min(1)]],comment:[""]})}validateLightningAddress(n){return n.value.includes("@")?null:{invalidFormat:!0}}onSubmit(){var n=this;return(0,r.A)(function*(){n.sendZapForm.invalid?n.showError("Please fill out the form correctly."):(n.loading=!0,yield n.fetchPayRequest())})()}getCallbackUrl(n){if(n.includes("@")){const[v,_]=n.split("@");return`https://${_}/.well-known/lnurlp/${v}`}return n.toLowerCase().startsWith("lnurl")?this.util.convertBech32ToText(n).toString():null}fetchPayRequest(){var n=this;return(0,r.A)(function*(){n.resetState();const v=n.data.lud16||n.data.lud06;if(!v)return void n.showError("Lightning Address is required.");let _=n.getCallbackUrl(v);try{const D=yield fetch(_);if(!D.ok)throw new Error("Failed to fetch pay request.");const H=yield D.json();if("ERROR"===H.status)return void n.showError(H.reason||"Error fetching the pay request.");n.payRequest=H,n.showInvoiceSection=!1,n.configureAmountValidators(),yield n.generateInvoice()}catch(D){n.showError(D.message||"Error connecting to the server.")}finally{n.loading=!1}})()}generateInvoice(){var n=this;return(0,r.A)(function*(){const v=n.sendZapForm.get("amount")?.value,_=n.sendZapForm.get("comment")?.value,D=n.data.eventId||null;if(!n.payRequest)return void n.showError("Pay request is not loaded.");n.invoiceAmount=v;const H=new URL(n.payRequest.callback),d=new URLSearchParams({amount:(1e3*v).toString()});if(_&&n.payRequest.commentAllowed&&d.set("comment",_),D){const p=yield n.createAndSignZapRequest(D,_);d.set("nostr",JSON.stringify(p))}try{const p=yield fetch(`${H.origin}${H.pathname}?${d.toString()}`);if(!p.ok)throw new Error("Failed to fetch invoice.");const E=yield p.json();if("ERROR"===E.status)return void n.showError(E.reason||"Error fetching the invoice.");n.lightningInvoice=E.pr,n.showInvoiceSection=!0,n.toggleQRCodeDisplay(!0)}catch(p){n.showError(p.message||"Error fetching the invoice.")}})()}configureAmountValidators(){if(!this.payRequest)return;const n=(this.payRequest.minSendable||1e3)/1e3,v=(this.payRequest.maxSendable||21e6)/1e3,_=this.sendZapForm.get("amount");_?.setValidators([i.k0.required,i.k0.min(n),i.k0.max(v)]),_?.updateValueAndValidity()}createAndSignZapRequest(n,v){var _=this;return(0,r.A)(function*(){try{const D=_.createZapRequestData(n,v);let H;if(_.signerService.isUsingSecretKey()){const d=yield _.signerService.getDecryptedSecretKey();if(!d)throw new Error("Private key could not be retrieved.");const p=(0,B.aT)(d);H=(0,u.pC)(D,p)}else H=yield _.signerService.signEventWithExtension(D);if(!H)throw new Error("Signing failed. Signed event is null.");return H}catch(D){throw console.error("Error creating and signing zap request:",D),new Error("Failed to create and sign zap request.")}})()}createZapRequestData(n,v){return{kind:9734,content:v||"",tags:[["e",n],["p",this.payRequest?.nostrPubkey||""],["relays",...this.relayService.getConnectedRelays()]],pubkey:this.signerService.getPublicKey(),created_at:Math.floor(Date.now()/1e3)}}copyInvoice(){this.lightningInvoice?(this.clipboard.copy(this.lightningInvoice),this.showSuccess("Invoice copied to clipboard")):this.showError("No invoice available to copy")}toggleQRCodeDisplay(n=!1){this.displayQRCode=!!n||!this.displayQRCode}resetState(){this.error="",this.loading=!0,this.lightningInvoice=""}showError(n){this.error=n,this.loading=!1,this.snackBar.open(n,"Dismiss",{duration:2e3})}showSuccess(n){this.snackBar.open(n,"Dismiss",{duration:2e3})}closeDialog(){this.dialogRef.close()}static{this.\u0275fac=function(v){return new(v||h)(t.rXU(N.FP))}}static{this.\u0275cmp=t.VBU({type:h,selectors:[["app-send-dialog"]],decls:7,vars:4,consts:[[1,"absolute","right-0","top-0","pr-4","pt-4"],["mat-icon-button","","aria-label","Close",3,"matDialogClose"],[1,"text-secondary",3,"svgIcon"],["class","p-0 mt-4",4,"ngIf"],["class","flex flex-col items-center justify-center text-center p-1 mt-4",4,"ngIf"],[1,"p-0","mt-4"],[1,"preset-buttons"],["class","mr-1 px-3","mat-button","",3,"click",4,"ngFor","ngForOf"],[1,"zap-form",3,"formGroup"],["appearance","outline",1,"sats-input"],["matInput","","formControlName","amount","placeholder","Enter amount in sats, e.g., 100","type","number","aria-label","Zap Amount"],["align","end"],[4,"ngIf"],["matInput","","formControlName","comment","placeholder","Optional comment, e.g., as a gift...","aria-label","Comment","maxlength","100"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-button","",1,"mr-1","px-3",3,"click"],[1,"text-orange-500","icon-size-5"],[1,"ml-2"],[1,"flex","flex-col","items-center","justify-center","text-center","p-1","mt-4"],["class","w-full flex flex-col items-center",4,"ngIf"],["class","w-full max-w-md",4,"ngIf"],[1,"w-full","flex","flex-col","items-center"],[1,"mb-2"],[1,"w-full","mb-4"],[1,"qrcode-image","m-auto",3,"qrdata","matTooltip","errorCorrectionLevel"],[1,"w-full","max-w-md"],["appearance","outline",1,"w-full"],["matInput","","readonly","","aria-label","Invoice Address",3,"value"],["mat-icon-button","","matSuffix","","aria-label","Copy Invoice",3,"click","matTooltip"],[3,"svgIcon"]],template:function(v,_){1&v&&(t.j41(0,"div",0)(1,"button",1),t.nrm(2,"mat-icon",2),t.k0s()(),t.j41(3,"h1"),t.EFF(4,"\u26a1Zap"),t.k0s(),t.DNE(5,F,22,6,"mat-dialog-content",3)(6,M,3,2,"mat-dialog-content",4)),2&v&&(t.R7$(),t.Y8G("matDialogClose",void 0),t.R7$(),t.Y8G("svgIcon","heroicons_outline:x-mark"),t.R7$(3),t.Y8G("ngIf",!_.showInvoiceSection||!_.lightningInvoice),t.R7$(),t.Y8G("ngIf",_.showInvoiceSection&&_.lightningInvoice))},dependencies:[S.vg,g.Hl,g.$z,g.iY,f.m_,f.An,i.YN,i.me,i.Q0,i.BC,i.cb,i.tU,C.nJ,C.rl,i.X1,i.j4,i.JD,m.MD,m.Sq,m.bT,$.Ve,C.MV,C.TL,C.yw,C.RG,T.fS,T.fg,e.Yi,e.E7,b.q,L.oV,e.tx,A],styles:[".preset-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;justify-items:center;margin-bottom:20px}.preset-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center;max-height:60px!important}.sats-input[_ngcontent-%COMP%]{margin-top:20px;width:100%}.lightning-buttons[_ngcontent-%COMP%]{margin:5px 0}"]})}}return h})()},243:U=>{"use strict";var s={single_source_shortest_paths:function(o,r,t){var i={},e={};e[r]=0;var c,u,l,y,g,m,a=s.PriorityQueue.make();for(a.push(r,0);!a.empty();)for(l in y=(c=a.pop()).cost,g=o[u=c.value]||{})g.hasOwnProperty(l)&&(m=y+g[l],(typeof e[l]>"u"||e[l]>m)&&(e[l]=m,a.push(l,m),i[l]=u));if(typeof t<"u"&&typeof e[t]>"u"){var T=["Could not find a path from ",r," to ",t,"."].join("");throw new Error(T)}return i},extract_shortest_path_from_predecessor_list:function(o,r){for(var t=[],i=r;i;)t.push(i),i=o[i];return t.reverse(),t},find_path:function(o,r,t){var i=s.single_source_shortest_paths(o,r,t);return s.extract_shortest_path_from_predecessor_list(i,t)},PriorityQueue:{make:function(o){var i,r=s.PriorityQueue,t={};for(i in o=o||{},r)r.hasOwnProperty(i)&&(t[i]=r[i]);return t.queue=[],t.sorter=o.sorter||r.default_sorter,t},default_sorter:function(o,r){return o.cost-r.cost},push:function(o,r){this.queue.push({value:o,cost:r}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};U.exports=s},8314:(U,s,o)=>{const t=o(2836),i=o(9460),e=o(7030),a=o(6511);function c(u,l,y,g,f){const m=[].slice.call(arguments,1),b=m.length,C="function"==typeof m[b-1];if(!C&&!t())throw new Error("Callback required as last argument");if(!C){if(b<1)throw new Error("Too few arguments provided");return 1===b?(y=l,l=g=void 0):2===b&&!l.getContext&&(g=y,y=l,l=void 0),new Promise(function(T,$){try{const S=i.create(y,g);T(u(S,l,g))}catch(S){$(S)}})}if(b<2)throw new Error("Too few arguments provided");2===b?(f=y,y=l,l=g=void 0):3===b&&(l.getContext&&typeof f>"u"?(f=g,g=void 0):(f=g,g=y,y=l,l=void 0));try{const T=i.create(y,g);f(null,u(T,l,g))}catch(T){f(T)}}s.mo=c.bind(null,e.render),s.dY=c.bind(null,e.renderToDataURL),s.toString=c.bind(null,function(u,l,y){return a.render(u,y)})},2836:U=>{U.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6214:(U,s,o)=>{const r=o(9089).getSymbolSize;s.getRowColCoords=function(i){if(1===i)return[];const e=Math.floor(i/7)+2,a=r(i),c=145===a?26:2*Math.ceil((a-13)/(2*e-2)),u=[a-7];for(let l=1;l{const r=o(1677),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=r.ALPHANUMERIC,this.data=e}i.getBitsLength=function(a){return 11*Math.floor(a/2)+a%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(a){let c;for(c=0;c+2<=this.data.length;c+=2){let u=45*t.indexOf(this.data[c]);u+=t.indexOf(this.data[c+1]),a.put(u,11)}this.data.length%2&&a.put(t.indexOf(this.data[c]),6)},U.exports=i},4662:U=>{function s(){this.buffer=[],this.length=0}s.prototype={get:function(o){const r=Math.floor(o/8);return 1==(this.buffer[r]>>>7-o%8&1)},put:function(o,r){for(let t=0;t>>r-t-1&1))},getLengthInBits:function(){return this.length},putBit:function(o){const r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),o&&(this.buffer[r]|=128>>>this.length%8),this.length++}},U.exports=s},5941:U=>{function s(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}s.prototype.set=function(o,r,t,i){const e=o*this.size+r;this.data[e]=t,i&&(this.reservedBit[e]=!0)},s.prototype.get=function(o,r){return this.data[o*this.size+r]},s.prototype.xor=function(o,r,t){this.data[o*this.size+r]^=t},s.prototype.isReserved=function(o,r){return this.reservedBit[o*this.size+r]},U.exports=s},4969:(U,s,o)=>{const r=o(1677);function t(i){this.mode=r.BYTE,this.data="string"==typeof i?(new TextEncoder).encode(i):new Uint8Array(i)}t.getBitsLength=function(e){return 8*e},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(i){for(let e=0,a=this.data.length;e{const r=o(7424),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];s.getBlocksCount=function(a,c){switch(c){case r.L:return t[4*(a-1)+0];case r.M:return t[4*(a-1)+1];case r.Q:return t[4*(a-1)+2];case r.H:return t[4*(a-1)+3];default:return}},s.getTotalCodewordsCount=function(a,c){switch(c){case r.L:return i[4*(a-1)+0];case r.M:return i[4*(a-1)+1];case r.Q:return i[4*(a-1)+2];case r.H:return i[4*(a-1)+3];default:return}}},7424:(U,s)=>{s.L={bit:1},s.M={bit:0},s.Q={bit:3},s.H={bit:2},s.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4},s.from=function(t,i){if(s.isValid(t))return t;try{return function o(r){if("string"!=typeof r)throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return s.L;case"m":case"medium":return s.M;case"q":case"quartile":return s.Q;case"h":case"high":return s.H;default:throw new Error("Unknown EC Level: "+r)}}(t)}catch{return i}}},6269:(U,s,o)=>{const r=o(9089).getSymbolSize;s.getPositions=function(e){const a=r(e);return[[0,0],[a-7,0],[0,a-7]]}},6254:(U,s,o)=>{const r=o(9089),e=r.getBCHDigit(1335);s.getEncodedBits=function(c,u){const l=c.bit<<3|u;let y=l<<10;for(;r.getBCHDigit(y)-e>=0;)y^=1335<{const o=new Uint8Array(512),r=new Uint8Array(256);(function(){let i=1;for(let e=0;e<255;e++)o[e]=i,r[i]=e,i<<=1,256&i&&(i^=285);for(let e=255;e<512;e++)o[e]=o[e-255]})(),s.log=function(i){if(i<1)throw new Error("log("+i+")");return r[i]},s.exp=function(i){return o[i]},s.mul=function(i,e){return 0===i||0===e?0:o[r[i]+r[e]]}},3264:(U,s,o)=>{const r=o(1677),t=o(9089);function i(e){this.mode=r.KANJI,this.data=e}i.getBitsLength=function(a){return 13*a},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let a;for(a=0;a=33088&&c<=40956)c-=33088;else{if(!(c>=57408&&c<=60351))throw new Error("Invalid SJIS character: "+this.data[a]+"\nMake sure your charset is UTF-8");c-=49472}c=192*(c>>>8&255)+(255&c),e.put(c,13)}},U.exports=i},3361:(U,s)=>{s.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function r(t,i,e){switch(t){case s.Patterns.PATTERN000:return(i+e)%2==0;case s.Patterns.PATTERN001:return i%2==0;case s.Patterns.PATTERN010:return e%3==0;case s.Patterns.PATTERN011:return(i+e)%3==0;case s.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(e/3))%2==0;case s.Patterns.PATTERN101:return i*e%2+i*e%3==0;case s.Patterns.PATTERN110:return(i*e%2+i*e%3)%2==0;case s.Patterns.PATTERN111:return(i*e%3+(i+e)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}s.isValid=function(i){return null!=i&&""!==i&&!isNaN(i)&&i>=0&&i<=7},s.from=function(i){return s.isValid(i)?parseInt(i,10):void 0},s.getPenaltyN1=function(i){const e=i.size;let a=0,c=0,u=0,l=null,y=null;for(let g=0;g=5&&(a+=c-5+3),l=m,c=1),m=i.get(f,g),m===y?u++:(u>=5&&(a+=u-5+3),y=m,u=1)}c>=5&&(a+=c-5+3),u>=5&&(a+=u-5+3)}return a},s.getPenaltyN2=function(i){const e=i.size;let a=0;for(let c=0;c=10&&(1488===c||93===c)&&a++,u=u<<1&2047|i.get(y,l),y>=10&&(1488===u||93===u)&&a++}return 40*a},s.getPenaltyN4=function(i){let e=0;const a=i.data.length;for(let u=0;u{const r=o(377),t=o(9359);s.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},s.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},s.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},s.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},s.MIXED={bit:-1},s.getCharCountIndicator=function(a,c){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!r.isValid(c))throw new Error("Invalid version: "+c);return c>=1&&c<10?a.ccBits[0]:c<27?a.ccBits[1]:a.ccBits[2]},s.getBestModeForData=function(a){return t.testNumeric(a)?s.NUMERIC:t.testAlphanumeric(a)?s.ALPHANUMERIC:t.testKanji(a)?s.KANJI:s.BYTE},s.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},s.isValid=function(a){return a&&a.bit&&a.ccBits},s.from=function(a,c){if(s.isValid(a))return a;try{return function i(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return s.NUMERIC;case"alphanumeric":return s.ALPHANUMERIC;case"kanji":return s.KANJI;case"byte":return s.BYTE;default:throw new Error("Unknown mode: "+e)}}(a)}catch{return c}}},6628:(U,s,o)=>{const r=o(1677);function t(i){this.mode=r.NUMERIC,this.data=i.toString()}t.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let a,c,u;for(a=0;a+3<=this.data.length;a+=3)c=this.data.substr(a,3),u=parseInt(c,10),e.put(u,10);const l=this.data.length-a;l>0&&(c=this.data.substr(a),u=parseInt(c,10),e.put(u,3*l+1))},U.exports=t},1744:(U,s,o)=>{const r=o(6686);s.mul=function(i,e){const a=new Uint8Array(i.length+e.length-1);for(let c=0;c=0;){const c=a[0];for(let l=0;l{const r=o(9089),t=o(7424),i=o(4662),e=o(5941),a=o(6214),c=o(6269),u=o(3361),l=o(3677),y=o(6289),g=o(1252),f=o(6254),m=o(1677),b=o(2868);function L(A,N,P){const w=A.size,O=f.getEncodedBits(N,P);let F,I;for(F=0;F<15;F++)I=1==(O>>F&1),A.set(F<6?F:F<8?F+1:w-15+F,8,I,!0),A.set(8,F<8?w-F-1:F<9?15-F-1+1:15-F-1,I,!0);A.set(w-8,8,1,!0)}function Y(A,N,P,w){let O;if(Array.isArray(A))O=b.fromArray(A);else{if("string"!=typeof A)throw new Error("Invalid data");{let R=N;if(!R){const h=b.rawSplit(A);R=g.getBestVersionForData(h,P)}O=b.fromString(A,R||40)}}const F=g.getBestVersionForData(O,P);if(!F)throw new Error("The amount of data is too big to be stored in a QR Code");if(N){if(N=0&&x<=6&&(0===M||6===M)||M>=0&&M<=6&&(0===x||6===x)||x>=2&&x<=4&&M>=2&&M<=4,!0)}}(M,N),function T(A){const N=A.size;for(let P=8;P=7&&function S(A,N){const P=A.size,w=g.getEncodedBits(N);let O,F,I;for(let x=0;x<18;x++)O=Math.floor(x/3),F=x%3+P-8-3,I=1==(w>>x&1),A.set(O,F,I,!0),A.set(F,O,I,!0)}(M,N),function B(A,N){const P=A.size;let w=-1,O=P-1,F=7,I=0;for(let x=P-1;x>0;x-=2)for(6===x&&x--;;){for(let M=0;M<2;M++)if(!A.isReserved(O,x-M)){let R=!1;I>>F&1)),A.set(O,x-M,R),F--,-1===F&&(I++,F=7)}if(O+=w,O<0||P<=O){O-=w,w=-w;break}}}(M,I),isNaN(w)&&(w=u.getBestMask(M,L.bind(null,M,P))),u.applyMask(w,M),L(M,P,w),{modules:M,version:N,errorCorrectionLevel:P,maskPattern:w,segments:O}}s.create=function(N,P){if(typeof N>"u"||""===N)throw new Error("No input text");let O,F,w=t.M;return typeof P<"u"&&(w=t.from(P.errorCorrectionLevel,t.M),O=g.from(P.version),F=u.from(P.maskPattern),P.toSJISFunc&&r.setToSJISFunction(P.toSJISFunc)),Y(N,O,w,F)}},6289:(U,s,o)=>{const r=o(1744);function t(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}t.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},t.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(e.length+this.degree);a.set(e);const c=r.mod(a,this.genPoly),u=this.degree-c.length;if(u>0){const l=new Uint8Array(this.degree);return l.set(c,u),l}return c},U.exports=t},9359:(U,s)=>{const o="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";s.KANJI=new RegExp(t,"g"),s.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),s.BYTE=new RegExp(i,"g"),s.NUMERIC=new RegExp(o,"g"),s.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const e=new RegExp("^"+t+"$"),a=new RegExp("^"+o+"$"),c=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");s.testKanji=function(l){return e.test(l)},s.testNumeric=function(l){return a.test(l)},s.testAlphanumeric=function(l){return c.test(l)}},2868:(U,s,o)=>{const r=o(1677),t=o(6628),i=o(1018),e=o(4969),a=o(3264),c=o(9359),u=o(9089),l=o(243);function y(S){return unescape(encodeURIComponent(S)).length}function g(S,L,B){const k=[];let W;for(;null!==(W=S.exec(B));)k.push({data:W[0],index:W.index,mode:L,length:W[0].length});return k}function f(S){const L=g(c.NUMERIC,r.NUMERIC,S),B=g(c.ALPHANUMERIC,r.ALPHANUMERIC,S);let k,W;return u.isKanjiModeEnabled()?(k=g(c.BYTE,r.BYTE,S),W=g(c.KANJI,r.KANJI,S)):(k=g(c.BYTE_KANJI,r.BYTE,S),W=[]),L.concat(B,k,W).sort(function(A,N){return A.index-N.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function m(S,L){switch(L){case r.NUMERIC:return t.getBitsLength(S);case r.ALPHANUMERIC:return i.getBitsLength(S);case r.KANJI:return a.getBitsLength(S);case r.BYTE:return e.getBitsLength(S)}}function $(S,L){let B;const k=r.getBestModeForData(S);if(B=r.from(L,k),B!==r.BYTE&&B.bit=0?L[L.length-1]:null;return k&&k.mode===B.mode?(L[L.length-1].data+=B.data,L):(L.push(B),L)},[])}(N))},s.rawSplit=function(L){return s.fromArray(f(L,u.isKanjiModeEnabled()))}},9089:(U,s)=>{let o;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];s.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)throw new Error('"version" should be in range from 1 to 40');return 4*i+17},s.getSymbolTotalCodewords=function(i){return r[i]},s.getBCHDigit=function(t){let i=0;for(;0!==t;)i++,t>>>=1;return i},s.setToSJISFunction=function(i){if("function"!=typeof i)throw new Error('"toSJISFunc" is not a valid function.');o=i},s.isKanjiModeEnabled=function(){return typeof o<"u"},s.toSJIS=function(i){return o(i)}},377:(U,s)=>{s.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}},1252:(U,s,o)=>{const r=o(9089),t=o(3677),i=o(7424),e=o(1677),a=o(377),u=r.getBCHDigit(7973);function y(m,b){return e.getCharCountIndicator(m,b)+4}function g(m,b){let C=0;return m.forEach(function(T){const $=y(T.mode,b);C+=$+T.getBitsLength()}),C}s.from=function(b,C){return a.isValid(b)?parseInt(b,10):C},s.getCapacity=function(b,C,T){if(!a.isValid(b))throw new Error("Invalid QR Code version");typeof T>"u"&&(T=e.BYTE);const L=8*(r.getSymbolTotalCodewords(b)-t.getTotalCodewordsCount(b,C));if(T===e.MIXED)return L;const B=L-y(T,b);switch(T){case e.NUMERIC:return Math.floor(B/10*3);case e.ALPHANUMERIC:return Math.floor(B/11*2);case e.KANJI:return Math.floor(B/13);default:return Math.floor(B/8)}},s.getBestVersionForData=function(b,C){let T;const $=i.from(C,i.M);if(Array.isArray(b)){if(b.length>1)return function f(m,b){for(let C=1;C<=40;C++)if(g(m,C)<=s.getCapacity(C,b,e.MIXED))return C}(b,$);if(0===b.length)return 1;T=b[0]}else T=b;return function l(m,b,C){for(let T=1;T<=40;T++)if(b<=s.getCapacity(T,C,m))return T}(T.mode,T.getLength(),$)},s.getEncodedBits=function(b){if(!a.isValid(b)||b<7)throw new Error("Invalid QR Code version");let C=b<<12;for(;r.getBCHDigit(C)-u>=0;)C^=7973<{const r=o(7077);s.render=function(a,c,u){let l=u,y=c;typeof l>"u"&&(!c||!c.getContext)&&(l=c,c=void 0),c||(y=function i(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),l=r.getOptions(l);const g=r.getImageWidth(a.modules.size,l),f=y.getContext("2d"),m=f.createImageData(g,g);return r.qrToImageData(m.data,a,l),function t(e,a,c){e.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=c,a.width=c,a.style.height=c+"px",a.style.width=c+"px"}(f,y,g),f.putImageData(m,0,0),y},s.renderToDataURL=function(a,c,u){let l=u;return typeof l>"u"&&(!c||!c.getContext)&&(l=c,c=void 0),l||(l={}),s.render(a,c,l).toDataURL(l.type||"image/png",(l.rendererOpts||{}).quality)}},6511:(U,s,o)=>{const r=o(7077);function t(a,c){const u=a.a/255,l=c+'="'+a.hex+'"';return u<1?l+" "+c+'-opacity="'+u.toFixed(2).slice(1)+'"':l}function i(a,c,u){let l=a+c;return typeof u<"u"&&(l+=" "+u),l}s.render=function(c,u,l){const y=r.getOptions(u),g=c.modules.size,f=c.modules.data,m=g+2*y.margin,b=y.color.light.a?"':"",C="0&&b>0&&a[m-1]||(l+=g?i("M",b+u,.5+C+u):i("m",y,0),y=0,g=!1),b+1',S=''+b+C+"\n";return"function"==typeof l&&l(null,S),S}},7077:(U,s)=>{function o(r){if("number"==typeof r&&(r=r.toString()),"string"!=typeof r)throw new Error("Color should be defined as hex string");let t=r.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+r);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const i=parseInt(t.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+t.slice(0,6).join("")}}s.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=t.width&&t.width>=21?t.width:void 0;return{width:e,scale:e?4:t.scale||4,margin:typeof t.margin>"u"||null===t.margin||t.margin<0?4:t.margin,color:{dark:o(t.color.dark||"#000000ff"),light:o(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},s.getScale=function(t,i){return i.width&&i.width>=t+2*i.margin?i.width/(t+2*i.margin):i.scale},s.getImageWidth=function(t,i){const e=s.getScale(t,i);return Math.floor((t+2*i.margin)*e)},s.qrToImageData=function(t,i,e){const a=i.modules.size,c=i.modules.data,u=s.getScale(a,e),l=Math.floor((a+2*e.margin)*u),y=e.margin*u,g=[e.color.light,e.color.dark];for(let f=0;f=y&&m>=y&&f{"use strict";o.d(s,{B0:()=>e});var r=o(177),t=o(4438);class i{_document;_textarea;constructor(y,g){this._document=g;const f=this._textarea=this._document.createElement("textarea"),m=f.style;m.position="fixed",m.top=m.opacity="0",m.left="-999em",f.setAttribute("aria-hidden","true"),f.value=y,f.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(f)}copy(){const y=this._textarea;let g=!1;try{if(y){const f=this._document.activeElement;y.select(),y.setSelectionRange(0,y.value.length),g=this._document.execCommand("copy"),f&&f.focus()}}catch{}return g}destroy(){const y=this._textarea;y&&(y.remove(),this._textarea=void 0)}}let e=(()=>{class l{_document=(0,t.WQX)(r.qQ);constructor(){}copy(g){const f=this.beginCopy(g),m=f.copy();return f.destroy(),m}beginCopy(g){return new i(g,this._document)}static \u0275fac=function(f){return new(f||l)};static \u0275prov=t.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},9454:(U,s,o)=>{"use strict";o.d(s,{MY:()=>I});var r=o(4438);let a=(()=>{class x{static \u0275fac=function(h){return new(h||x)};static \u0275mod=r.$C({type:x});static \u0275inj=r.G2t({})}return x})();var c=o(6939),u=o(3);o(9969);let I=(()=>{class x{static \u0275fac=function(h){return new(h||x)};static \u0275mod=r.$C({type:x});static \u0275inj=r.G2t({imports:[u.yE,a,c.jc]})}return x})()},7540:(U,s,o)=>{"use strict";o.d(s,{e:()=>H});var r=o(4438);let H=(()=>{class d{static{this.\u0275fac=function(j){return new(j||d)}}static{this.\u0275mod=r.$C({type:d})}static{this.\u0275inj=r.G2t({})}}return d})()}}]); \ No newline at end of file +(self.webpackChunkangor=self.webpackChunkangor||[]).push([[888],{4496:(U,s,o)=>{"use strict";o.d(s,{q:()=>R});var r=o(9345),t=o(9979),i=o(177),e=o(4438),a=o(8834),c=o(1997),u=o(9213),l=o(9115),y=o(5245),g=o(467),f=o(7291),m=o(8703),b=o(2827);let C=(()=>{class h{constructor(){this.userChange=new e.bkB,this.user=(0,e.vPA)(null),this._changeDetectorRef=(0,e.WQX)(e.gRc),this._storageService=(0,e.WQX)(f.n),this._metadatasService=(0,e.WQX)(b.T)}ngOnInit(){this.loadUserProfile(),this._metadatasService.addPublicKey(this.pubkey),this.subscription=this._storageService.profile$.subscribe(n=>{n&&n.pubKey===this.pubkey&&(this.user.set(n.metadata),this.userChange.emit(this.user()),this._changeDetectorRef.detectChanges())})}loadUserProfile(){var n=this;return(0,g.A)(function*(){const v=yield n._storageService.getProfile(n.pubkey);n.user.set(v||{}),n.userChange.emit(n.user()),n._changeDetectorRef.detectChanges()})()}get displayName(){return this.user()?.display_name||this.user()?.name||this.shortenPubkey(this.pubkey)}get displayAvatar(){return this.user()?.picture||this.avatarUrl||"/images/avatars/avatar-placeholder.png"}shortenPubkey(n){return n?`${n.slice(0,8)}...${n.slice(-8)}`:""}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static{this.\u0275fac=function(v){return new(v||h)}}static{this.\u0275cmp=e.VBU({type:h,selectors:[["app-post-profile"]],inputs:{pubkey:"pubkey",avatarUrl:"avatarUrl",created_at:"created_at"},outputs:{userChange:"userChange"},decls:9,vars:7,consts:[[1,"flex","items-center"],[1,"flex","items-center","group",3,"href"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"mr-4","h-10","w-10","rounded-full","object-cover",3,"src","alt"],[1,"flex","flex-col"],[1,"font-semibold","leading-none"],[1,"text-secondary","mt-1","text-sm","leading-none"]],template:function(v,_){1&v&&(e.j41(0,"div",0)(1,"a",1),e.nrm(2,"img",2),e.j41(3,"div",3)(4,"span",4),e.EFF(5),e.k0s(),e.j41(6,"span",5),e.EFF(7),e.nI1(8,"ago"),e.k0s()()()()),2&v&&(e.R7$(),e.Y8G("href","/profile/"+_.pubkey,e.B4B),e.R7$(),e.Y8G("src",_.displayAvatar,e.B4B)("alt",_.displayName),e.R7$(3),e.JRh(_.displayName),e.R7$(2),e.JRh(e.bMT(8,5,_.created_at)))},dependencies:[i.MD,m.g],encapsulation:2})}}return h})();var T=o(2022),G=o(413),S=o(3105),L=o(8359),B=o(6697);const k=h=>({"large-font":h}),W=h=>({"heart-beat":h}),Y=h=>["/post",h];function A(h,$){if(1&h&&(e.j41(0,"div",12),e.nrm(1,"iframe",14),e.k0s()),2&h){const n=e.XpG().$implicit;e.R7$(),e.Y8G("src",n.safeWord,e.f$h)}}function N(h,$){if(1&h&&(e.j41(0,"div",12),e.nrm(1,"img",15),e.k0s()),2&h){const n=e.XpG().$implicit;e.R7$(),e.Y8G("src",n.safeWord,e.B4B)}}function P(h,$){if(1&h&&(e.j41(0,"div",12)(1,"video",16),e.nrm(2,"source",17),e.EFF(3," Your browser does not support the video tag. "),e.k0s()()),2&h){const n=e.XpG().$implicit;e.R7$(2),e.Y8G("src",n.safeWord,e.B4B)}}function w(h,$){if(1&h&&(e.j41(0,"div",12)(1,"audio",18),e.nrm(2,"source",19),e.EFF(3," Your browser does not support the audio element. "),e.k0s()()),2&h){const n=e.XpG().$implicit;e.R7$(2),e.Y8G("src",n.safeWord,e.B4B)}}function O(h,$){if(1&h&&(e.j41(0,"div",13)(1,"a",20)(2,"span",21),e.EFF(3),e.k0s()()()),2&h){const n=e.XpG().$implicit;e.R7$(),e.Y8G("href",n.word,e.B4B),e.R7$(2),e.JRh(n.word)}}function F(h,$){if(1&h&&(e.j41(0,"div",13)(1,"span",22),e.EFF(2),e.k0s()()),2&h){const n=e.XpG().$implicit,v=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(2,k,v.isSingleEmojiOrWord(n))),e.R7$(),e.SpI("",n.trim()," ")}}function I(h,$){if(1&h&&(e.j41(0,"div",10),e.DNE(1,A,2,1,"div",12)(2,N,2,1,"div",12)(3,P,4,1,"div",12)(4,w,4,1,"div",12)(5,O,4,2,"div",13)(6,F,3,4,"div",13),e.k0s()),2&h){const n=$.$implicit;e.R7$(),e.vxM("youtube"===n.token?1:-1),e.R7$(),e.vxM("image"===n.token?2:-1),e.R7$(),e.vxM("video"===n.token?3:-1),e.R7$(),e.vxM("audio"===n.token?4:-1),e.R7$(),e.vxM("link"===n.token?5:-1),e.R7$(),e.vxM(n.token?-1:6)}}function x(h,$){if(1&h){const n=e.RV6();e.j41(0,"div",11)(1,"button",23),e.bIt("click",function(){e.eBV(n);const _=e.XpG();return e.Njj(_.toggleLike(_.item))}),e.nrm(2,"mat-icon",24),e.j41(3,"span",25),e.EFF(4),e.k0s()(),e.j41(5,"button",26),e.nrm(6,"mat-icon",27),e.j41(7,"span",25),e.EFF(8,"Comment"),e.k0s()(),e.j41(9,"button",23),e.bIt("click",function(){e.eBV(n);const _=e.XpG();return e.Njj(_.onShare(_.item))}),e.nrm(10,"mat-icon",28),e.j41(11,"span",25),e.EFF(12,"Share"),e.k0s()(),e.j41(13,"button",23),e.bIt("click",function(){e.eBV(n);const _=e.XpG();return e.Njj(_.openZapDialog(_.item.id,_.user))}),e.nrm(14,"mat-icon",29),e.j41(15,"span",25),e.EFF(16,"Zap"),e.k0s()()()}if(2&h){const n=e.XpG();e.R7$(2),e.Y8G("ngClass",e.eq3(7,W,n.isLiked))("svgIcon",n.isLiked?"heroicons_solid:heart":"heroicons_outline:heart"),e.R7$(2),e.SpI("",n.isLiked?"Liked":"Like"," "),e.R7$(),e.Y8G("routerLink",e.eq3(9,Y,n.item.id)),e.R7$(),e.Y8G("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),e.R7$(4),e.Y8G("svgIcon","heroicons_solid:share"),e.R7$(4),e.Y8G("svgIcon","heroicons_solid:bolt")}}function M(h,$){if(1&h&&(e.nrm(0,"hr",30),e.j41(1,"div",31),e.nrm(2,"div",32),e.j41(3,"div",33)(4,"button",34)(5,"span",35),e.EFF(6,"Read More ..."),e.k0s()()()()),2&h){const n=e.XpG();e.R7$(4),e.Y8G("routerLink",e.eq3(1,Y,n.item.id))}}let R=(()=>{class h{constructor(){this.actions=!0,this.more=!0,this.user=new e.bkB,this.storageService=(0,e.WQX)(f.n),this.zapService=(0,e.WQX)(S.D),this.parseContent=(0,e.WQX)(G.m),this.eventService=(0,e.WQX)(T.U),this.angorConfirmationService=(0,e.WQX)(t.m),this.changeDetectorRef=(0,e.WQX)(e.gRc),this.subscription=new L.yU,this.tokens=(0,e.vPA)([]),this.isLiked=!1}get item(){return this._item}set item(n){this._item=n,this.onItemChange()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}openZapDialog(n,v){this.zapService.openZapDialog(n,v)}getProfile(){}isSingleEmojiOrWord(n){const v=n.trim(),_=/^\w+$/.test(v),D=/^[\p{Emoji}]+$/u.test(v);return(_||D)&&v.length<10}onItemChange(){this._item&&(this.subscription=this.storageService.myLikes$.pipe((0,B.s)(1)).subscribe(n=>{this.isLiked=n?.includes(this._item.id)||!1,this.changeDetectorRef.detectChanges()}),this.tokens.set(this._item.content?this.parseContent.parseContent(this._item.content):[]))}sendLike(n){this.isLiked||this.eventService.sendLikeEvent(n).then(()=>{this.isLiked=!0,this.changeDetectorRef.detectChanges()}).catch(v=>console.error("Failed to send like:",v))}toggleLike(n){this.sendLike(n)}onShare(n){this.angorConfirmationService.open({title:"Share",message:'Are you sure you want to share this post on your profile? This action is permanent and cannot be undone.',icon:{show:!0,name:"heroicons_solid:share",color:"primary"},actions:{confirm:{show:!0,label:"Yes, Share",color:"primary"},cancel:{show:!0,label:"Cancel"}},dismissible:!0}).afterClosed().subscribe(_=>{console.log(_),"confirmed"===_&&this.eventService.shareEvent(n)})}trackByToken(n,v){return v.id||n}static{this.\u0275fac=function(v){return new(v||h)}}static{this.\u0275cmp=e.VBU({type:h,selectors:[["app-post"]],inputs:{item:"item",actions:"actions",more:"more"},outputs:{user:"user"},decls:42,vars:13,consts:[["postCardMenu","matMenu"],[1,"flex","w-full","flex-col"],[1,"mx-6","mb-4","mt-6","flex","items-center","sm:mx-8"],[3,"userChange","pubkey","avatarUrl","created_at"],["mat-icon-button","",1,"-mr-4","ml-auto",3,"matMenuTriggerFor"],[1,"icon-size-5",3,"svgIcon"],["mat-menu-item",""],[1,"flex","items-center"],[1,"mr-3","icon-size-5",3,"svgIcon"],[1,"my-2"],[1,"inline-block","whitespace-pre-wrap","break-words"],[1,"mx-3","flex","items-center","sm:mx-5"],[1,"relative","mb-4","block"],[1,"mx-6","mb-6","mt-2","sm:mx-8"],["width","560","height","315","frameborder","0","allowfullscreen","",3,"src"],["alt","Embedded Image",1,"max-h-140","object-cover",2,"width","100%",3,"src"],["controls","",2,"width","100%"],["type","video/mp4",3,"src"],["controls",""],["type","audio/mpeg",3,"src"],["target","_blank",1,"inline-block","break-words","text-blue-500","underline",3,"href"],[1,"inline-block","break-words"],[1,"inline-block","break-words",3,"ngClass"],["mat-button","",1,"mr-1","px-3",3,"click"],[1,"text-red-500","icon-size-5",3,"ngClass","svgIcon"],[1,"ml-2"],["mat-button","",1,"mr-1","px-3",3,"routerLink"],[1,"text-blue-500","icon-size-5",3,"svgIcon"],[1,"text-green-500","icon-size-5",3,"svgIcon"],[1,"text-orange-500","icon-size-5",3,"svgIcon"],[1,"mx-6","mb-6","mt-4","border-b","sm:mx-8"],[1,"mx-6","mb-4","flex","flex-col","sm:mx-8","sm:mb-6","sm:flex-row","sm:items-center"],[1,"hidden","flex-auto","sm:flex"],[1,"mt-4","flex","items-center","sm:mt-0"],["mat-button","",1,"px-3","sm:-mr-4",3,"routerLink"],[1,"mr-1"]],template:function(v,_){if(1&v){const D=e.RV6();e.j41(0,"angor-card",1)(1,"div",2)(2,"app-post-profile",3),e.bIt("userChange",function(d){return e.eBV(D),e.Njj(_.user=d)}),e.k0s(),e.j41(3,"button",4),e.nrm(4,"mat-icon",5),e.k0s(),e.j41(5,"mat-menu",null,0)(7,"button",6)(8,"span",7),e.nrm(9,"mat-icon",8),e.j41(10,"span"),e.EFF(11,"Save post"),e.k0s()()(),e.j41(12,"button",6)(13,"span",7),e.nrm(14,"mat-icon",8),e.j41(15,"span"),e.EFF(16,"Hide post"),e.k0s()()(),e.j41(17,"button",6)(18,"span",7),e.nrm(19,"mat-icon",8),e.j41(20,"span"),e.EFF(21,"Snooze for 30 days"),e.k0s()()(),e.j41(22,"button",6)(23,"span",7),e.nrm(24,"mat-icon",8),e.j41(25,"span"),e.EFF(26,"Hide all"),e.k0s()()(),e.nrm(27,"mat-divider",9),e.j41(28,"button",6)(29,"span",7),e.nrm(30,"mat-icon",8),e.j41(31,"span"),e.EFF(32,"Report post"),e.k0s()()(),e.j41(33,"button",6)(34,"span",7),e.nrm(35,"mat-icon",8),e.j41(36,"span"),e.EFF(37,"Turn on notifications for this post"),e.k0s()()()()(),e.Z7z(38,I,7,6,"div",10,_.trackByToken,!0),e.DNE(40,x,17,11,"div",11)(41,M,7,3),e.k0s()}if(2&v){const D=e.sdS(6);e.R7$(2),e.Y8G("pubkey",null==_.item?null:_.item.pubkey)("avatarUrl","/images/avatars/avatar-placeholder.png")("created_at",_.item.created_at),e.R7$(),e.Y8G("matMenuTriggerFor",D),e.R7$(),e.Y8G("svgIcon","heroicons_solid:ellipsis-vertical"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:arrow-up-tray"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:eye-slash"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:clock"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:minus-circle"),e.R7$(6),e.Y8G("svgIcon","heroicons_solid:exclamation-triangle"),e.R7$(5),e.Y8G("svgIcon","heroicons_solid:bell"),e.R7$(3),e.Dyx(_.tokens()),e.R7$(2),e.vxM(_.actions?40:-1),e.R7$(),e.vxM(_.more?41:-1)}},dependencies:[r.n,C,u.m_,u.An,c.w,c.q,l.Cn,l.kk,l.fb,l.Cp,y.iI,y.Wk,i.MD,i.YU,a.$z],encapsulation:2})}}return h})()},2022:(U,s,o)=>{"use strict";o.d(s,{U:()=>u});var r=o(467),t=o(5766),i=o(5462),e=o(4438),a=o(6231),c=o(6324);let u=(()=>{class l{constructor(g,f){this.relayService=g,this.signerService=f,this.likesMap=new Map,this.myLikedNoteIds=[]}sendTextEvent(g){var f=this;return(0,r.A)(function*(){if(g)try{const b=f.signerService.getUnsignedEvent(1,[],g);let C;if(f.signerService.isUsingSecretKey()){const T=yield f.signerService.getDecryptedSecretKey(),G=(0,t.aT)(T);C=(0,i.pC)(b,G)}else C=yield f.signerService.signEventWithExtension(b);yield f.relayService.publishEventToWriteRelays(C)}catch(m){console.error("Failed to send text event:",m)}})()}sendLikeEvent(g){var f=this;return(0,r.A)(function*(){if(g)try{const C=f.signerService.getUnsignedEvent(7,[["e",g.id],["p",g.pubkey]],"+");let T;if(f.signerService.isUsingSecretKey()){const G=yield f.signerService.getDecryptedSecretKey(),S=(0,t.aT)(G);T=(0,i.pC)(C,S)}else T=yield f.signerService.signEventWithExtension(C);yield f.relayService.publishEventToWriteRelays(T),f.likesMap.set(g.id,[...f.likesMap.get(g.id)||[],f.signerService.getPublicKey()])}catch(m){console.error("Failed to send like event:",m)}})()}sendZapEvent(g,f){var m=this;return(0,r.A)(function*(){if(g&&!(f<=0))try{const b=[["e",g.id],["p",g.pubkey],["amount",f.toString()]],T=m.signerService.getUnsignedEvent(9735,b,`Zapped with ${f} sats`);let G;if(m.signerService.isUsingSecretKey()){const S=yield m.signerService.getDecryptedSecretKey(),L=(0,t.aT)(S);G=(0,i.pC)(T,L)}else G=yield m.signerService.signEventWithExtension(T);yield m.relayService.publishEventToWriteRelays(G)}catch(b){console.error("Failed to send zap event:",b)}})()}sendReplyEvent(g,f){var m=this;return(0,r.A)(function*(){if(g)try{const C=m.signerService.getUnsignedEvent(1,[["e",g.id],["p",g.pubkey]],f);let T;if(m.signerService.isUsingSecretKey()){const G=yield m.signerService.getDecryptedSecretKey(),S=(0,t.aT)(G);T=(0,i.pC)(C,S)}else T=yield m.signerService.signEventWithExtension(C);yield m.relayService.publishEventToWriteRelays(T)}catch(b){console.error("Failed to send reply event:",b)}})()}shareEvent(g){var f=this;return(0,r.A)(function*(){if(g)try{const C=f.signerService.getUnsignedEvent(6,[["e",g.id],["p",g.pubkey]],"");let T;if(f.signerService.isUsingSecretKey()){const G=yield f.signerService.getDecryptedSecretKey(),S=(0,t.aT)(G);T=(0,i.pC)(C,S)}else T=yield f.signerService.signEventWithExtension(C);yield f.relayService.publishEventToWriteRelays(T),console.log("Event shared successfully:",T)}catch(m){console.error("Failed to share event:",m)}})()}static{this.\u0275fac=function(f){return new(f||l)(e.KVO(a.b),e.KVO(c.A))}}static{this.\u0275prov=e.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})()},3105:(U,s,o)=>{"use strict";o.d(s,{D:()=>c});var r=o(467),t=o(4438),i=o(5351),e=o(5416),a=o(1567);let c=(()=>{class u{constructor(){this.dialog=(0,t.WQX)(i.bZ),this.snackBar=(0,t.WQX)(e.UG)}canUseZap(y){var g=this;return(0,r.A)(function*(){return!(!y||!y.lud06&&!y.lud16)||(g.openSnackBar("Using Zap is not possible. Please complete your profile to include lud06 or lud16."),!1)})()}openSnackBar(y,g="dismiss"){this.snackBar.open(y,g,{duration:3e3})}openZapDialog(y="",g){var f=this;return(0,r.A)(function*(){(yield f.canUseZap(g))&&f.dialog.open(a.r,{width:"405px",maxHeight:"90vh",data:{lud16:g.lud16,lud06:g.lud06,pubkey:g.pubkey,eventId:y}})})()}static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275prov=t.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},1567:(U,s,o)=>{"use strict";o.d(s,{r:()=>R});var r=o(467),t=o(4438),i=o(9417),e=o(5351),a=o(5416),c=o(3801),u=o(5462),l=o(6324),y=o(6231),g=o(8834),f=o(9213),m=o(177),b=o(1997),C=o(2408),T=o(9042),G=o(7250),S=o(882),L=o(4823),B=o(5766),k=o(8314),W=o(345);const Y=["qrcElement"];let A=(()=>{class h{constructor(n,v){this.renderer=n,this.sanitizer=v,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new t.bkB,this.context=null}ngOnChanges(){var n=this;return(0,r.A)(function*(){yield n.createQRCode()})()}isValidQrCodeText(n){return!1===this.allowEmptyString?!(typeof n>"u"||""===n||"null"===n||null===n):!(typeof n>"u")}toDataURL(n){return new Promise((v,_)=>{(0,k.dY)(this.qrdata,n,(D,H)=>{D?_(D):v(H)})})}toCanvas(n,v){return new Promise((_,D)=>{(0,k.mo)(n,this.qrdata,v,H=>{H?D(H):_("success")})})}toSVG(n){return new Promise((v,_)=>{(0,k.toString)(this.qrdata,n,(D,H)=>{D?_(D):v(H)})})}renderElement(n){for(const v of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,v);this.renderer.appendChild(this.qrcElement.nativeElement,n)}createQRCode(){var n=this;return(0,r.A)(function*(){n.version&&n.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),n.version=40):n.version&&n.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),n.version=1):void 0!==n.version&&isNaN(n.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),n.version=void 0);try{if(!n.isValidQrCodeText(n.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");n.isValidQrCodeText(n.qrdata)&&""===n.qrdata&&(n.qrdata=" ");const v={color:{dark:n.colorDark,light:n.colorLight},errorCorrectionLevel:n.errorCorrectionLevel,margin:n.margin,scale:n.scale,version:n.version,width:n.width},_=n.imageSrc,D=n.imageHeight||40,H=n.imageWidth||40;switch(n.elementType){case"canvas":{const d=n.renderer.createElement("canvas");n.context=d.getContext("2d"),n.toCanvas(d,v).then(()=>{if(n.ariaLabel&&n.renderer.setAttribute(d,"aria-label",`${n.ariaLabel}`),n.title&&n.renderer.setAttribute(d,"title",`${n.title}`),_&&n.context){n.centerImage=new Image(H,D),_!==n.centerImage.src&&(n.centerImage.crossOrigin="anonymous",n.centerImage.src=_),D!==n.centerImage.height&&(n.centerImage.height=D),H!==n.centerImage.width&&(n.centerImage.width=H);const p=n.centerImage;p&&(p.onload=()=>{n.context?.drawImage(p,d.width/2-H/2,d.height/2-D/2,H,D)})}n.renderElement(d),n.emitQRCodeURL(d)}).catch(p=>{console.error("[angularx-qrcode] canvas error:",p)});break}case"svg":{const d=n.renderer.createElement("div");n.toSVG(v).then(p=>{n.renderer.setProperty(d,"innerHTML",p);const E=d.firstChild;n.renderer.setAttribute(E,"height",`${n.width}`),n.renderer.setAttribute(E,"width",`${n.width}`),n.renderElement(E),n.emitQRCodeURL(E)}).catch(p=>{console.error("[angularx-qrcode] svg error:",p)});break}default:{const d=n.renderer.createElement("img");n.toDataURL(v).then(p=>{n.alt&&d.setAttribute("alt",n.alt),n.ariaLabel&&d.setAttribute("aria-label",n.ariaLabel),d.setAttribute("src",p),n.title&&d.setAttribute("title",n.title),n.renderElement(d),n.emitQRCodeURL(d)}).catch(p=>{console.error("[angularx-qrcode] img/url error:",p)})}}}catch(v){console.error("[angularx-qrcode] Error generating QR Code:",v.message)}})()}convertBase64ImageUrlToBlob(n){const v=n.split(";base64,"),_=v[0].split(":")[1],D=atob(v[1]),H=new Uint8Array(D.length);for(let d=0;d{class h{constructor(n){this.util=n,this.formBuilder=(0,t.WQX)(i.ok),this.signerService=(0,t.WQX)(l.A),this.relayService=(0,t.WQX)(y.b),this.dialogRef=(0,t.WQX)(e.CP),this.snackBar=(0,t.WQX)(a.UG),this.clipboard=(0,t.WQX)(c.B0),this.data=(0,t.WQX)(e.Vh),this.lightningInvoice="",this.payRequest=null,this.displayQRCode=!1,this.showInvoiceSection=!1,this.loading=!1,this.invoiceAmount=0,this.error="",this.zapButtons=[{icon:"thumb_up",label:"21",value:21},{icon:"favorite",label:"50",value:50},{icon:"emoji_emotions",label:"100",value:100},{icon:"star",label:"500",value:500},{icon:"celebration",label:"1k",value:1e3},{icon:"rocket",label:"5k",value:5e3},{icon:"local_fire_department",label:"10k",value:1e4},{icon:"flash_on",label:"100k",value:1e5},{icon:"diamond",label:"500k",value:5e5}]}ngOnInit(){this.initializeForm()}initializeForm(){this.sendZapForm=this.formBuilder.group({lightningAddress:[this.data.lud16||this.data.lud06,[i.k0.required,this.validateLightningAddress]],amount:["",[i.k0.required,i.k0.min(1)]],comment:[""]})}validateLightningAddress(n){return n.value.includes("@")?null:{invalidFormat:!0}}onSubmit(){var n=this;return(0,r.A)(function*(){n.sendZapForm.invalid?n.showError("Please fill out the form correctly."):(n.loading=!0,yield n.fetchPayRequest())})()}getCallbackUrl(n){if(n.includes("@")){const[v,_]=n.split("@");return`https://${_}/.well-known/lnurlp/${v}`}return n.toLowerCase().startsWith("lnurl")?this.util.convertBech32ToText(n).toString():null}fetchPayRequest(){var n=this;return(0,r.A)(function*(){n.resetState();const v=n.data.lud16||n.data.lud06;if(!v)return void n.showError("Lightning Address is required.");let _=n.getCallbackUrl(v);try{const D=yield fetch(_);if(!D.ok)throw new Error("Failed to fetch pay request.");const H=yield D.json();if("ERROR"===H.status)return void n.showError(H.reason||"Error fetching the pay request.");n.payRequest=H,n.showInvoiceSection=!1,n.configureAmountValidators(),yield n.generateInvoice()}catch(D){n.showError(D.message||"Error connecting to the server.")}finally{n.loading=!1}})()}generateInvoice(){var n=this;return(0,r.A)(function*(){const v=n.sendZapForm.get("amount")?.value,_=n.sendZapForm.get("comment")?.value,D=n.data.eventId||null;if(!n.payRequest)return void n.showError("Pay request is not loaded.");n.invoiceAmount=v;const H=new URL(n.payRequest.callback),d=new URLSearchParams({amount:(1e3*v).toString()});if(_&&n.payRequest.commentAllowed&&d.set("comment",_),D){const p=yield n.createAndSignZapRequest(D,_);d.set("nostr",JSON.stringify(p))}try{const p=yield fetch(`${H.origin}${H.pathname}?${d.toString()}`);if(!p.ok)throw new Error("Failed to fetch invoice.");const E=yield p.json();if("ERROR"===E.status)return void n.showError(E.reason||"Error fetching the invoice.");n.lightningInvoice=E.pr,n.showInvoiceSection=!0,n.toggleQRCodeDisplay(!0)}catch(p){n.showError(p.message||"Error fetching the invoice.")}})()}configureAmountValidators(){if(!this.payRequest)return;const n=(this.payRequest.minSendable||1e3)/1e3,v=(this.payRequest.maxSendable||21e6)/1e3,_=this.sendZapForm.get("amount");_?.setValidators([i.k0.required,i.k0.min(n),i.k0.max(v)]),_?.updateValueAndValidity()}createAndSignZapRequest(n,v){var _=this;return(0,r.A)(function*(){try{const D=_.createZapRequestData(n,v);let H;if(_.signerService.isUsingSecretKey()){const d=yield _.signerService.getDecryptedSecretKey();if(!d)throw new Error("Private key could not be retrieved.");const p=(0,B.aT)(d);H=(0,u.pC)(D,p)}else H=yield _.signerService.signEventWithExtension(D);if(!H)throw new Error("Signing failed. Signed event is null.");return H}catch(D){throw console.error("Error creating and signing zap request:",D),new Error("Failed to create and sign zap request.")}})()}createZapRequestData(n,v){return{kind:9734,content:v||"",tags:[["e",n],["p",this.payRequest?.nostrPubkey||""],["relays",...this.relayService.getConnectedRelays()]],pubkey:this.signerService.getPublicKey(),created_at:Math.floor(Date.now()/1e3)}}copyInvoice(){this.lightningInvoice?(this.clipboard.copy(this.lightningInvoice),this.showSuccess("Invoice copied to clipboard")):this.showError("No invoice available to copy")}toggleQRCodeDisplay(n=!1){this.displayQRCode=!!n||!this.displayQRCode}resetState(){this.error="",this.loading=!0,this.lightningInvoice=""}showError(n){this.error=n,this.loading=!1,this.snackBar.open(n,"Dismiss",{duration:2e3})}showSuccess(n){this.snackBar.open(n,"Dismiss",{duration:2e3})}closeDialog(){this.dialogRef.close()}static{this.\u0275fac=function(v){return new(v||h)(t.rXU(N.FP))}}static{this.\u0275cmp=t.VBU({type:h,selectors:[["app-send-dialog"]],decls:7,vars:4,consts:[[1,"absolute","right-0","top-0","pr-4","pt-4"],["mat-icon-button","","aria-label","Close",3,"matDialogClose"],[1,"text-secondary",3,"svgIcon"],["class","p-0 mt-4",4,"ngIf"],["class","flex flex-col items-center justify-center text-center p-1 mt-4",4,"ngIf"],[1,"p-0","mt-4"],[1,"preset-buttons"],["class","mr-1 px-3","mat-button","",3,"click",4,"ngFor","ngForOf"],[1,"zap-form",3,"formGroup"],["appearance","outline",1,"sats-input"],["matInput","","formControlName","amount","placeholder","Enter amount in sats, e.g., 100","type","number","aria-label","Zap Amount"],["align","end"],[4,"ngIf"],["matInput","","formControlName","comment","placeholder","Optional comment, e.g., as a gift...","aria-label","Comment","maxlength","100"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-button","",1,"mr-1","px-3",3,"click"],[1,"text-orange-500","icon-size-5"],[1,"ml-2"],[1,"flex","flex-col","items-center","justify-center","text-center","p-1","mt-4"],["class","w-full flex flex-col items-center",4,"ngIf"],["class","w-full max-w-md",4,"ngIf"],[1,"w-full","flex","flex-col","items-center"],[1,"mb-2"],[1,"w-full","mb-4"],[1,"qrcode-image","m-auto",3,"qrdata","matTooltip","errorCorrectionLevel"],[1,"w-full","max-w-md"],["appearance","outline",1,"w-full"],["matInput","","readonly","","aria-label","Invoice Address",3,"value"],["mat-icon-button","","matSuffix","","aria-label","Copy Invoice",3,"click","matTooltip"],[3,"svgIcon"]],template:function(v,_){1&v&&(t.j41(0,"div",0)(1,"button",1),t.nrm(2,"mat-icon",2),t.k0s()(),t.j41(3,"h1"),t.EFF(4,"\u26a1Zap"),t.k0s(),t.DNE(5,F,22,6,"mat-dialog-content",3)(6,M,3,2,"mat-dialog-content",4)),2&v&&(t.R7$(),t.Y8G("matDialogClose",void 0),t.R7$(),t.Y8G("svgIcon","heroicons_outline:x-mark"),t.R7$(3),t.Y8G("ngIf",!_.showInvoiceSection||!_.lightningInvoice),t.R7$(),t.Y8G("ngIf",_.showInvoiceSection&&_.lightningInvoice))},dependencies:[S.vg,g.Hl,g.$z,g.iY,f.m_,f.An,i.YN,i.me,i.Q0,i.BC,i.cb,i.tU,C.nJ,C.rl,i.X1,i.j4,i.JD,m.MD,m.Sq,m.bT,G.Ve,C.MV,C.TL,C.yw,C.RG,T.fS,T.fg,e.Yi,e.E7,b.q,L.oV,e.tx,A],styles:[".preset-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;justify-items:center;margin-bottom:20px}.preset-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center;max-height:60px!important}.sats-input[_ngcontent-%COMP%]{margin-top:20px;width:100%}.lightning-buttons[_ngcontent-%COMP%]{margin:5px 0}"]})}}return h})()},243:U=>{"use strict";var s={single_source_shortest_paths:function(o,r,t){var i={},e={};e[r]=0;var c,u,l,y,g,m,a=s.PriorityQueue.make();for(a.push(r,0);!a.empty();)for(l in y=(c=a.pop()).cost,g=o[u=c.value]||{})g.hasOwnProperty(l)&&(m=y+g[l],(typeof e[l]>"u"||e[l]>m)&&(e[l]=m,a.push(l,m),i[l]=u));if(typeof t<"u"&&typeof e[t]>"u"){var T=["Could not find a path from ",r," to ",t,"."].join("");throw new Error(T)}return i},extract_shortest_path_from_predecessor_list:function(o,r){for(var t=[],i=r;i;)t.push(i),i=o[i];return t.reverse(),t},find_path:function(o,r,t){var i=s.single_source_shortest_paths(o,r,t);return s.extract_shortest_path_from_predecessor_list(i,t)},PriorityQueue:{make:function(o){var i,r=s.PriorityQueue,t={};for(i in o=o||{},r)r.hasOwnProperty(i)&&(t[i]=r[i]);return t.queue=[],t.sorter=o.sorter||r.default_sorter,t},default_sorter:function(o,r){return o.cost-r.cost},push:function(o,r){this.queue.push({value:o,cost:r}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};U.exports=s},8314:(U,s,o)=>{const t=o(2836),i=o(9460),e=o(7030),a=o(6511);function c(u,l,y,g,f){const m=[].slice.call(arguments,1),b=m.length,C="function"==typeof m[b-1];if(!C&&!t())throw new Error("Callback required as last argument");if(!C){if(b<1)throw new Error("Too few arguments provided");return 1===b?(y=l,l=g=void 0):2===b&&!l.getContext&&(g=y,y=l,l=void 0),new Promise(function(T,G){try{const S=i.create(y,g);T(u(S,l,g))}catch(S){G(S)}})}if(b<2)throw new Error("Too few arguments provided");2===b?(f=y,y=l,l=g=void 0):3===b&&(l.getContext&&typeof f>"u"?(f=g,g=void 0):(f=g,g=y,y=l,l=void 0));try{const T=i.create(y,g);f(null,u(T,l,g))}catch(T){f(T)}}s.mo=c.bind(null,e.render),s.dY=c.bind(null,e.renderToDataURL),s.toString=c.bind(null,function(u,l,y){return a.render(u,y)})},2836:U=>{U.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6214:(U,s,o)=>{const r=o(9089).getSymbolSize;s.getRowColCoords=function(i){if(1===i)return[];const e=Math.floor(i/7)+2,a=r(i),c=145===a?26:2*Math.ceil((a-13)/(2*e-2)),u=[a-7];for(let l=1;l{const r=o(1677),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=r.ALPHANUMERIC,this.data=e}i.getBitsLength=function(a){return 11*Math.floor(a/2)+a%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(a){let c;for(c=0;c+2<=this.data.length;c+=2){let u=45*t.indexOf(this.data[c]);u+=t.indexOf(this.data[c+1]),a.put(u,11)}this.data.length%2&&a.put(t.indexOf(this.data[c]),6)},U.exports=i},4662:U=>{function s(){this.buffer=[],this.length=0}s.prototype={get:function(o){const r=Math.floor(o/8);return 1==(this.buffer[r]>>>7-o%8&1)},put:function(o,r){for(let t=0;t>>r-t-1&1))},getLengthInBits:function(){return this.length},putBit:function(o){const r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),o&&(this.buffer[r]|=128>>>this.length%8),this.length++}},U.exports=s},5941:U=>{function s(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}s.prototype.set=function(o,r,t,i){const e=o*this.size+r;this.data[e]=t,i&&(this.reservedBit[e]=!0)},s.prototype.get=function(o,r){return this.data[o*this.size+r]},s.prototype.xor=function(o,r,t){this.data[o*this.size+r]^=t},s.prototype.isReserved=function(o,r){return this.reservedBit[o*this.size+r]},U.exports=s},4969:(U,s,o)=>{const r=o(1677);function t(i){this.mode=r.BYTE,this.data="string"==typeof i?(new TextEncoder).encode(i):new Uint8Array(i)}t.getBitsLength=function(e){return 8*e},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(i){for(let e=0,a=this.data.length;e{const r=o(7424),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];s.getBlocksCount=function(a,c){switch(c){case r.L:return t[4*(a-1)+0];case r.M:return t[4*(a-1)+1];case r.Q:return t[4*(a-1)+2];case r.H:return t[4*(a-1)+3];default:return}},s.getTotalCodewordsCount=function(a,c){switch(c){case r.L:return i[4*(a-1)+0];case r.M:return i[4*(a-1)+1];case r.Q:return i[4*(a-1)+2];case r.H:return i[4*(a-1)+3];default:return}}},7424:(U,s)=>{s.L={bit:1},s.M={bit:0},s.Q={bit:3},s.H={bit:2},s.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4},s.from=function(t,i){if(s.isValid(t))return t;try{return function o(r){if("string"!=typeof r)throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return s.L;case"m":case"medium":return s.M;case"q":case"quartile":return s.Q;case"h":case"high":return s.H;default:throw new Error("Unknown EC Level: "+r)}}(t)}catch{return i}}},6269:(U,s,o)=>{const r=o(9089).getSymbolSize;s.getPositions=function(e){const a=r(e);return[[0,0],[a-7,0],[0,a-7]]}},6254:(U,s,o)=>{const r=o(9089),e=r.getBCHDigit(1335);s.getEncodedBits=function(c,u){const l=c.bit<<3|u;let y=l<<10;for(;r.getBCHDigit(y)-e>=0;)y^=1335<{const o=new Uint8Array(512),r=new Uint8Array(256);(function(){let i=1;for(let e=0;e<255;e++)o[e]=i,r[i]=e,i<<=1,256&i&&(i^=285);for(let e=255;e<512;e++)o[e]=o[e-255]})(),s.log=function(i){if(i<1)throw new Error("log("+i+")");return r[i]},s.exp=function(i){return o[i]},s.mul=function(i,e){return 0===i||0===e?0:o[r[i]+r[e]]}},3264:(U,s,o)=>{const r=o(1677),t=o(9089);function i(e){this.mode=r.KANJI,this.data=e}i.getBitsLength=function(a){return 13*a},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let a;for(a=0;a=33088&&c<=40956)c-=33088;else{if(!(c>=57408&&c<=60351))throw new Error("Invalid SJIS character: "+this.data[a]+"\nMake sure your charset is UTF-8");c-=49472}c=192*(c>>>8&255)+(255&c),e.put(c,13)}},U.exports=i},3361:(U,s)=>{s.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function r(t,i,e){switch(t){case s.Patterns.PATTERN000:return(i+e)%2==0;case s.Patterns.PATTERN001:return i%2==0;case s.Patterns.PATTERN010:return e%3==0;case s.Patterns.PATTERN011:return(i+e)%3==0;case s.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(e/3))%2==0;case s.Patterns.PATTERN101:return i*e%2+i*e%3==0;case s.Patterns.PATTERN110:return(i*e%2+i*e%3)%2==0;case s.Patterns.PATTERN111:return(i*e%3+(i+e)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}s.isValid=function(i){return null!=i&&""!==i&&!isNaN(i)&&i>=0&&i<=7},s.from=function(i){return s.isValid(i)?parseInt(i,10):void 0},s.getPenaltyN1=function(i){const e=i.size;let a=0,c=0,u=0,l=null,y=null;for(let g=0;g=5&&(a+=c-5+3),l=m,c=1),m=i.get(f,g),m===y?u++:(u>=5&&(a+=u-5+3),y=m,u=1)}c>=5&&(a+=c-5+3),u>=5&&(a+=u-5+3)}return a},s.getPenaltyN2=function(i){const e=i.size;let a=0;for(let c=0;c=10&&(1488===c||93===c)&&a++,u=u<<1&2047|i.get(y,l),y>=10&&(1488===u||93===u)&&a++}return 40*a},s.getPenaltyN4=function(i){let e=0;const a=i.data.length;for(let u=0;u{const r=o(377),t=o(9359);s.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},s.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},s.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},s.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},s.MIXED={bit:-1},s.getCharCountIndicator=function(a,c){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!r.isValid(c))throw new Error("Invalid version: "+c);return c>=1&&c<10?a.ccBits[0]:c<27?a.ccBits[1]:a.ccBits[2]},s.getBestModeForData=function(a){return t.testNumeric(a)?s.NUMERIC:t.testAlphanumeric(a)?s.ALPHANUMERIC:t.testKanji(a)?s.KANJI:s.BYTE},s.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},s.isValid=function(a){return a&&a.bit&&a.ccBits},s.from=function(a,c){if(s.isValid(a))return a;try{return function i(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return s.NUMERIC;case"alphanumeric":return s.ALPHANUMERIC;case"kanji":return s.KANJI;case"byte":return s.BYTE;default:throw new Error("Unknown mode: "+e)}}(a)}catch{return c}}},6628:(U,s,o)=>{const r=o(1677);function t(i){this.mode=r.NUMERIC,this.data=i.toString()}t.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let a,c,u;for(a=0;a+3<=this.data.length;a+=3)c=this.data.substr(a,3),u=parseInt(c,10),e.put(u,10);const l=this.data.length-a;l>0&&(c=this.data.substr(a),u=parseInt(c,10),e.put(u,3*l+1))},U.exports=t},1744:(U,s,o)=>{const r=o(6686);s.mul=function(i,e){const a=new Uint8Array(i.length+e.length-1);for(let c=0;c=0;){const c=a[0];for(let l=0;l{const r=o(9089),t=o(7424),i=o(4662),e=o(5941),a=o(6214),c=o(6269),u=o(3361),l=o(3677),y=o(6289),g=o(1252),f=o(6254),m=o(1677),b=o(2868);function L(A,N,P){const w=A.size,O=f.getEncodedBits(N,P);let F,I;for(F=0;F<15;F++)I=1==(O>>F&1),A.set(F<6?F:F<8?F+1:w-15+F,8,I,!0),A.set(8,F<8?w-F-1:F<9?15-F-1+1:15-F-1,I,!0);A.set(w-8,8,1,!0)}function Y(A,N,P,w){let O;if(Array.isArray(A))O=b.fromArray(A);else{if("string"!=typeof A)throw new Error("Invalid data");{let R=N;if(!R){const h=b.rawSplit(A);R=g.getBestVersionForData(h,P)}O=b.fromString(A,R||40)}}const F=g.getBestVersionForData(O,P);if(!F)throw new Error("The amount of data is too big to be stored in a QR Code");if(N){if(N=0&&x<=6&&(0===M||6===M)||M>=0&&M<=6&&(0===x||6===x)||x>=2&&x<=4&&M>=2&&M<=4,!0)}}(M,N),function T(A){const N=A.size;for(let P=8;P=7&&function S(A,N){const P=A.size,w=g.getEncodedBits(N);let O,F,I;for(let x=0;x<18;x++)O=Math.floor(x/3),F=x%3+P-8-3,I=1==(w>>x&1),A.set(O,F,I,!0),A.set(F,O,I,!0)}(M,N),function B(A,N){const P=A.size;let w=-1,O=P-1,F=7,I=0;for(let x=P-1;x>0;x-=2)for(6===x&&x--;;){for(let M=0;M<2;M++)if(!A.isReserved(O,x-M)){let R=!1;I>>F&1)),A.set(O,x-M,R),F--,-1===F&&(I++,F=7)}if(O+=w,O<0||P<=O){O-=w,w=-w;break}}}(M,I),isNaN(w)&&(w=u.getBestMask(M,L.bind(null,M,P))),u.applyMask(w,M),L(M,P,w),{modules:M,version:N,errorCorrectionLevel:P,maskPattern:w,segments:O}}s.create=function(N,P){if(typeof N>"u"||""===N)throw new Error("No input text");let O,F,w=t.M;return typeof P<"u"&&(w=t.from(P.errorCorrectionLevel,t.M),O=g.from(P.version),F=u.from(P.maskPattern),P.toSJISFunc&&r.setToSJISFunction(P.toSJISFunc)),Y(N,O,w,F)}},6289:(U,s,o)=>{const r=o(1744);function t(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}t.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},t.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(e.length+this.degree);a.set(e);const c=r.mod(a,this.genPoly),u=this.degree-c.length;if(u>0){const l=new Uint8Array(this.degree);return l.set(c,u),l}return c},U.exports=t},9359:(U,s)=>{const o="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";s.KANJI=new RegExp(t,"g"),s.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),s.BYTE=new RegExp(i,"g"),s.NUMERIC=new RegExp(o,"g"),s.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const e=new RegExp("^"+t+"$"),a=new RegExp("^"+o+"$"),c=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");s.testKanji=function(l){return e.test(l)},s.testNumeric=function(l){return a.test(l)},s.testAlphanumeric=function(l){return c.test(l)}},2868:(U,s,o)=>{const r=o(1677),t=o(6628),i=o(1018),e=o(4969),a=o(3264),c=o(9359),u=o(9089),l=o(243);function y(S){return unescape(encodeURIComponent(S)).length}function g(S,L,B){const k=[];let W;for(;null!==(W=S.exec(B));)k.push({data:W[0],index:W.index,mode:L,length:W[0].length});return k}function f(S){const L=g(c.NUMERIC,r.NUMERIC,S),B=g(c.ALPHANUMERIC,r.ALPHANUMERIC,S);let k,W;return u.isKanjiModeEnabled()?(k=g(c.BYTE,r.BYTE,S),W=g(c.KANJI,r.KANJI,S)):(k=g(c.BYTE_KANJI,r.BYTE,S),W=[]),L.concat(B,k,W).sort(function(A,N){return A.index-N.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function m(S,L){switch(L){case r.NUMERIC:return t.getBitsLength(S);case r.ALPHANUMERIC:return i.getBitsLength(S);case r.KANJI:return a.getBitsLength(S);case r.BYTE:return e.getBitsLength(S)}}function G(S,L){let B;const k=r.getBestModeForData(S);if(B=r.from(L,k),B!==r.BYTE&&B.bit=0?L[L.length-1]:null;return k&&k.mode===B.mode?(L[L.length-1].data+=B.data,L):(L.push(B),L)},[])}(N))},s.rawSplit=function(L){return s.fromArray(f(L,u.isKanjiModeEnabled()))}},9089:(U,s)=>{let o;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];s.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)throw new Error('"version" should be in range from 1 to 40');return 4*i+17},s.getSymbolTotalCodewords=function(i){return r[i]},s.getBCHDigit=function(t){let i=0;for(;0!==t;)i++,t>>>=1;return i},s.setToSJISFunction=function(i){if("function"!=typeof i)throw new Error('"toSJISFunc" is not a valid function.');o=i},s.isKanjiModeEnabled=function(){return typeof o<"u"},s.toSJIS=function(i){return o(i)}},377:(U,s)=>{s.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}},1252:(U,s,o)=>{const r=o(9089),t=o(3677),i=o(7424),e=o(1677),a=o(377),u=r.getBCHDigit(7973);function y(m,b){return e.getCharCountIndicator(m,b)+4}function g(m,b){let C=0;return m.forEach(function(T){const G=y(T.mode,b);C+=G+T.getBitsLength()}),C}s.from=function(b,C){return a.isValid(b)?parseInt(b,10):C},s.getCapacity=function(b,C,T){if(!a.isValid(b))throw new Error("Invalid QR Code version");typeof T>"u"&&(T=e.BYTE);const L=8*(r.getSymbolTotalCodewords(b)-t.getTotalCodewordsCount(b,C));if(T===e.MIXED)return L;const B=L-y(T,b);switch(T){case e.NUMERIC:return Math.floor(B/10*3);case e.ALPHANUMERIC:return Math.floor(B/11*2);case e.KANJI:return Math.floor(B/13);default:return Math.floor(B/8)}},s.getBestVersionForData=function(b,C){let T;const G=i.from(C,i.M);if(Array.isArray(b)){if(b.length>1)return function f(m,b){for(let C=1;C<=40;C++)if(g(m,C)<=s.getCapacity(C,b,e.MIXED))return C}(b,G);if(0===b.length)return 1;T=b[0]}else T=b;return function l(m,b,C){for(let T=1;T<=40;T++)if(b<=s.getCapacity(T,C,m))return T}(T.mode,T.getLength(),G)},s.getEncodedBits=function(b){if(!a.isValid(b)||b<7)throw new Error("Invalid QR Code version");let C=b<<12;for(;r.getBCHDigit(C)-u>=0;)C^=7973<{const r=o(7077);s.render=function(a,c,u){let l=u,y=c;typeof l>"u"&&(!c||!c.getContext)&&(l=c,c=void 0),c||(y=function i(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),l=r.getOptions(l);const g=r.getImageWidth(a.modules.size,l),f=y.getContext("2d"),m=f.createImageData(g,g);return r.qrToImageData(m.data,a,l),function t(e,a,c){e.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=c,a.width=c,a.style.height=c+"px",a.style.width=c+"px"}(f,y,g),f.putImageData(m,0,0),y},s.renderToDataURL=function(a,c,u){let l=u;return typeof l>"u"&&(!c||!c.getContext)&&(l=c,c=void 0),l||(l={}),s.render(a,c,l).toDataURL(l.type||"image/png",(l.rendererOpts||{}).quality)}},6511:(U,s,o)=>{const r=o(7077);function t(a,c){const u=a.a/255,l=c+'="'+a.hex+'"';return u<1?l+" "+c+'-opacity="'+u.toFixed(2).slice(1)+'"':l}function i(a,c,u){let l=a+c;return typeof u<"u"&&(l+=" "+u),l}s.render=function(c,u,l){const y=r.getOptions(u),g=c.modules.size,f=c.modules.data,m=g+2*y.margin,b=y.color.light.a?"':"",C="0&&b>0&&a[m-1]||(l+=g?i("M",b+u,.5+C+u):i("m",y,0),y=0,g=!1),b+1',S=''+b+C+"\n";return"function"==typeof l&&l(null,S),S}},7077:(U,s)=>{function o(r){if("number"==typeof r&&(r=r.toString()),"string"!=typeof r)throw new Error("Color should be defined as hex string");let t=r.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+r);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const i=parseInt(t.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+t.slice(0,6).join("")}}s.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=t.width&&t.width>=21?t.width:void 0;return{width:e,scale:e?4:t.scale||4,margin:typeof t.margin>"u"||null===t.margin||t.margin<0?4:t.margin,color:{dark:o(t.color.dark||"#000000ff"),light:o(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},s.getScale=function(t,i){return i.width&&i.width>=t+2*i.margin?i.width/(t+2*i.margin):i.scale},s.getImageWidth=function(t,i){const e=s.getScale(t,i);return Math.floor((t+2*i.margin)*e)},s.qrToImageData=function(t,i,e){const a=i.modules.size,c=i.modules.data,u=s.getScale(a,e),l=Math.floor((a+2*e.margin)*u),y=e.margin*u,g=[e.color.light,e.color.dark];for(let f=0;f=y&&m>=y&&f{"use strict";o.d(s,{B0:()=>e});var r=o(177),t=o(4438);class i{_document;_textarea;constructor(y,g){this._document=g;const f=this._textarea=this._document.createElement("textarea"),m=f.style;m.position="fixed",m.top=m.opacity="0",m.left="-999em",f.setAttribute("aria-hidden","true"),f.value=y,f.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(f)}copy(){const y=this._textarea;let g=!1;try{if(y){const f=this._document.activeElement;y.select(),y.setSelectionRange(0,y.value.length),g=this._document.execCommand("copy"),f&&f.focus()}}catch{}return g}destroy(){const y=this._textarea;y&&(y.remove(),this._textarea=void 0)}}let e=(()=>{class l{_document=(0,t.WQX)(r.qQ);constructor(){}copy(g){const f=this.beginCopy(g),m=f.copy();return f.destroy(),m}beginCopy(g){return new i(g,this._document)}static \u0275fac=function(f){return new(f||l)};static \u0275prov=t.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},9454:(U,s,o)=>{"use strict";o.d(s,{MY:()=>I});var r=o(4438);let a=(()=>{class x{static \u0275fac=function(h){return new(h||x)};static \u0275mod=r.$C({type:x});static \u0275inj=r.G2t({})}return x})();var c=o(6939),u=o(3);o(9969);let I=(()=>{class x{static \u0275fac=function(h){return new(h||x)};static \u0275mod=r.$C({type:x});static \u0275inj=r.G2t({imports:[u.yE,a,c.jc]})}return x})()},7540:(U,s,o)=>{"use strict";o.d(s,{e:()=>H});var r=o(4438);let H=(()=>{class d{static{this.\u0275fac=function(j){return new(j||d)}}static{this.\u0275mod=r.$C({type:d})}static{this.\u0275inj=r.G2t({})}}return d})()}}]); \ No newline at end of file diff --git a/index.html b/index.html index 36fe6a2..bcd9c36 100644 --- a/index.html +++ b/index.html @@ -41,5 +41,5 @@ - + diff --git a/main.1041579e53cf665c.js b/main.1041579e53cf665c.js new file mode 100644 index 0000000..52f1b84 --- /dev/null +++ b/main.1041579e53cf665c.js @@ -0,0 +1 @@ +(self.webpackChunkangor=self.webpackChunkangor||[]).push([[792],{3365:(o,s,r)=>{"use strict";r.d(s,{F:()=>st});let i=(()=>{class ht{static{this.standard="cubic-bezier(0.4, 0.0, 0.2, 1)"}static{this.deceleration="cubic-bezier(0.0, 0.0, 0.2, 1)"}static{this.acceleration="cubic-bezier(0.4, 0.0, 1, 1)"}static{this.sharp="cubic-bezier(0.4, 0.0, 0.6, 1)"}}return ht})(),a=(()=>{class ht{static{this.complex="375ms"}static{this.entering="225ms"}static{this.exiting="195ms"}}return ht})();var c=r(9969);const ae=(ht,vt,at,Xt,ln=`${a.entering} ${i.deceleration}`,yn=`${a.exiting} ${i.acceleration}`)=>(0,c.hZ)(ht,[(0,c.wk)("void",(0,c.iF)(vt)),(0,c.wk)("*",(0,c.iF)(at)),(0,c.kY)("void => false, * => false",[]),(0,c.kY)("void => *",(0,c.i0)(Xt||ln),{params:{timings:ln}}),(0,c.kY)("* => void",(0,c.i0)(Xt||yn),{params:{timings:yn}})]),st=[(0,c.hZ)("expandCollapse",[(0,c.wk)("void, collapsed",(0,c.iF)({height:"0"})),(0,c.wk)("*, expanded",(0,c.iF)("*")),(0,c.kY)("void <=> false, collapsed <=> false, expanded <=> false",[]),(0,c.kY)("void <=> *, collapsed <=> expanded",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeIn",[(0,c.wk)("void",(0,c.iF)({opacity:0})),(0,c.wk)("*",(0,c.iF)({opacity:1})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInTop",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInBottom",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInLeft",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInRight",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeOut",[(0,c.wk)("*",(0,c.iF)({opacity:1})),(0,c.wk)("void",(0,c.iF)({opacity:0})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutTop",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutBottom",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutLeft",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutRight",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("shake",[(0,c.kY)("void => false",[]),(0,c.kY)("void => *, * => true",[(0,c.i0)("{{timings}}",(0,c.i7)([(0,c.iF)({transform:"translate3d(0, 0, 0)",offset:0}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.1}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.2}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.3}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.4}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.5}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.6}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.7}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.8}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.9}),(0,c.iF)({transform:"translate3d(0, 0, 0)",offset:1})]))],{params:{timings:"0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955)"}})]),(0,c.hZ)("slideInTop",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, -100%, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInBottom",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, 100%, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInLeft",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInRight",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideOutTop",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, -100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutBottom",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, 100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutLeft",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutRight",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),ae("zoomIn",{opacity:0,transform:"scale(0.5)"},{opacity:1,transform:"scale(1)"},""),ae("zoomOut",{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.5)"},"")]},7857:(o,s,r)=>{"use strict";r.d(s,{$w:()=>At,lX:()=>c,Tv:()=>Ya});var i=r(3365),a=r(4438);let c=(()=>{class Y{constructor(){this._componentRegistry=new Map,this._navigationStore=new Map}registerComponent(re,Xe){this._componentRegistry.set(re,Xe)}deregisterComponent(re){this._componentRegistry.delete(re)}getComponent(re){return this._componentRegistry.get(re)}storeNavigation(re,Xe){this._navigationStore.set(re,Xe)}getNavigation(re){return this._navigationStore.get(re)??[]}deleteNavigation(re){this._navigationStore.has(re)||console.warn(`Navigation with the key '${re}' does not exist.`),this._navigationStore.delete(re)}getFlatNavigation(re,Xe=[]){for(const wt of re)"basic"===wt.type?Xe.push(wt):wt.children&&this.getFlatNavigation(wt.children,Xe);return Xe}getItem(re,Xe){for(const wt of Xe){if(wt.id===re)return wt;if(wt.children){const Ln=this.getItem(re,wt.children);if(Ln)return Ln}}return null}getItemParent(re,Xe,wt){for(const Ln of Xe){if(Ln.id===re)return wt;if(Ln.children){const hn=this.getItemParent(re,Ln.children,Ln);if(hn)return hn}}return null}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275prov=a.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})();var y=r(7209),w=r(2771),C=r(1413),T=r(177),S=r(9213),A=r(9115),I=r(4823),N=r(5245),K=r(6977);const Z=Y=>({"angor-horizontal-navigation-item-active-forced":Y}),ne=Y=>[Y];function be(Y,je){1&Y&&a.eu8(0)}function me(Y,je){if(1&Y&&(a.j41(0,"div",2),a.DNE(1,be,1,0,"ng-container",7),a.k0s()),2&Y){let re,Xe,wt,Ln;const hn=a.XpG(),ur=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Z,hn.item.active))("routerLink",a.eq3(12,ne,hn.item.link))("fragment",null!==(re=hn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Xe=hn.item.preserveFragment)&&void 0!==Xe&&Xe)("queryParams",null!==(wt=hn.item.queryParams)&&void 0!==wt?wt:null)("queryParamsHandling",null!==(Ln=hn.item.queryParamsHandling)&&void 0!==Ln?Ln:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",hn.isActiveMatchOptions)("matTooltip",hn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ur)}}function pe(Y,je){1&Y&&a.eu8(0)}function Te(Y,je){if(1&Y&&(a.j41(0,"a",3),a.DNE(1,pe,1,0,"ng-container",7),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("href",re.item.link,a.B4B)("target",re.item.target||"_self")("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function xe(Y,je){1&Y&&a.eu8(0)}function Re(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"div",8),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,xe,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Z,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function Me(Y,je){1&Y&&a.eu8(0)}function Ce(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"div",9),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,Me,1,0,"ng-container",7),a.k0s()}if(2&Y){let re,Xe,wt,Ln;const hn=a.XpG(),ur=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Z,hn.item.active))("routerLink",a.eq3(12,ne,hn.item.link))("fragment",null!==(re=hn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Xe=hn.item.preserveFragment)&&void 0!==Xe&&Xe)("queryParams",null!==(wt=hn.item.queryParams)&&void 0!==wt?wt:null)("queryParamsHandling",null!==(Ln=hn.item.queryParamsHandling)&&void 0!==Ln?Ln:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",hn.isActiveMatchOptions)("matTooltip",hn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ur)}}function le(Y,je){1&Y&&a.eu8(0)}function ae(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"a",10),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,le,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("href",re.item.link,a.B4B)("target",re.item.target||"_self")("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function Ie(Y,je){1&Y&&a.eu8(0)}function $e(Y,je){if(1&Y&&(a.j41(0,"div",4),a.DNE(1,Ie,1,0,"ng-container",7),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Z,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function st(Y,je){1&Y&&a.eu8(0)}function ht(Y,je){if(1&Y&&(a.j41(0,"div",6),a.DNE(1,st,1,0,"ng-container",7),a.k0s()),2&Y){a.XpG();const re=a.sdS(9);a.R7$(),a.Y8G("ngTemplateOutlet",re)}}function vt(Y,je){if(1&Y&&a.nrm(0,"mat-icon",11),2&Y){const re=a.XpG(2);a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function at(Y,je){if(1&Y&&(a.j41(0,"div",15)(1,"span",14),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG(2);a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function Xt(Y,je){if(1&Y&&(a.j41(0,"div",16)(1,"div",17),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG(2);a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function ln(Y,je){if(1&Y&&(a.DNE(0,vt,1,2,"mat-icon",11),a.j41(1,"div",12)(2,"div",13)(3,"span",14),a.EFF(4),a.k0s()(),a.DNE(5,at,3,2,"div",15),a.k0s(),a.DNE(6,Xt,3,2,"div",16)),2&Y){const re=a.XpG();a.vxM(re.item.icon?0:-1),a.R7$(3),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.title),a.R7$(),a.SpI(" ",re.item.title," "),a.R7$(),a.vxM(re.item.subtitle?5:-1),a.R7$(),a.vxM(re.item.badge?6:-1)}}let yn=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new C.B}ngOnInit(){this.isActiveMatchOptions=this.item.isActiveMatchOptions??this.item.exactMatch?this._angorUtilsService.exactMatchOptions:this._angorUtilsService.subsetMatchOptions,this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._changeDetectorRef.markForCheck(),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,K.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation-basic-item"]],inputs:{item:"item",name:"name"},decls:10,vars:10,consts:[["itemTemplate",""],[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"],[1,"angor-horizontal-navigation-item",3,"ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-horizontal-navigation-item",3,"href","target","matTooltip"],[1,"angor-horizontal-navigation-item",3,"ngClass","matTooltip"],["mat-menu-item","",1,"angor-horizontal-navigation-item",3,"href","target","matTooltip"],[1,"angor-horizontal-navigation-item","angor-horizontal-navigation-item-disabled"],[4,"ngTemplateOutlet"],[1,"angor-horizontal-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-horizontal-navigation-item",3,"click","ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],["mat-menu-item","",1,"angor-horizontal-navigation-item",3,"click","href","target","matTooltip"],[1,"angor-horizontal-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-horizontal-navigation-item-title-wrapper"],[1,"angor-horizontal-navigation-item-title"],[3,"ngClass"],[1,"angor-horizontal-navigation-item-subtitle","text-hint"],[1,"angor-horizontal-navigation-item-badge"],[1,"angor-horizontal-navigation-item-badge-content",3,"ngClass"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",1),a.DNE(1,me,2,14,"div",2)(2,Te,2,4,"a",3)(3,Re,2,5,"div",4)(4,Ce,2,14,"div",2)(5,ae,2,4,"a",5)(6,$e,2,5,"div",4)(7,ht,2,1,"div",6),a.k0s(),a.DNE(8,ln,7,5,"ng-template",null,0,a.C5r)),2&Xe&&(a.AVh("angor-horizontal-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(),a.vxM(!wt.item.link||wt.item.externalLink||wt.item.function||wt.item.disabled?-1:1),a.R7$(),a.vxM(wt.item.link&&wt.item.externalLink&&!wt.item.function&&!wt.item.disabled?2:-1),a.R7$(),a.vxM(wt.item.link||!wt.item.function||wt.item.disabled?-1:3),a.R7$(),a.vxM(wt.item.link&&!wt.item.externalLink&&wt.item.function&&!wt.item.disabled?4:-1),a.R7$(),a.vxM(wt.item.link&&wt.item.externalLink&&wt.item.function&&!wt.item.disabled?5:-1),a.R7$(),a.vxM(wt.item.link||wt.item.function||wt.item.disabled?-1:6),a.R7$(),a.vxM(wt.item.disabled?7:-1))},dependencies:[T.YU,N.Wk,N.wQ,I.uc,I.oV,T.T3,A.Cn,A.fb,S.m_,S.An],encapsulation:2,changeDetection:0})}}return Y})(),$n=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,K.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation-divider-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper","divider",3,"ngClass"]],template:function(Xe,wt){1&Xe&&a.nrm(0,"div",0),2&Xe&&a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return Y})();const bn=["matMenu"],Qe=(Y,je)=>({"angor-horizontal-navigation-menu-active":Y,"angor-horizontal-navigation-menu-active-forced":je}),bt=Y=>({$implicit:Y}),Ge=(Y,je)=>({"angor-horizontal-navigation-item-disabled":Y,"angor-horizontal-navigation-item-active-forced":je});function Fe(Y,je){1&Y&&a.eu8(0)}function Ft(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"div",6,2),a.bIt("onMenuOpen",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.triggerChangeDetection())})("onMenuClose",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.triggerChangeDetection())}),a.DNE(2,Fe,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.sdS(1),Xe=a.XpG(),wt=a.sdS(2),Ln=a.sdS(6);a.Y8G("ngClass",a.l_i(4,Qe,re.menuOpen,Xe.item.active))("matMenuTriggerFor",wt),a.R7$(2),a.Y8G("ngTemplateOutlet",Ln)("ngTemplateOutletContext",a.eq3(7,bt,Xe.item))}}function ze(Y,je){if(1&Y&&(a.j41(0,"div",8),a.nrm(1,"angor-horizontal-navigation-basic-item",11),a.k0s()),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("disabled",re.disabled),a.R7$(),a.Y8G("item",re)("name",Xe.name)}}function dt(Y,je){1&Y&&a.eu8(0)}function Ke(Y,je){if(1&Y&&(a.j41(0,"div",9),a.DNE(1,dt,1,0,"ng-container",7),a.nrm(2,"angor-horizontal-navigation-branch-item",12,3),a.k0s()),2&Y){const re=a.sdS(3),Xe=a.XpG(2).$implicit,wt=a.XpG(),Ln=a.sdS(6);a.Y8G("disabled",Xe.disabled)("matMenuTriggerFor",re.matMenu),a.R7$(),a.Y8G("ngTemplateOutlet",Ln)("ngTemplateOutletContext",a.eq3(7,bt,Xe)),a.R7$(),a.Y8G("child",!0)("item",Xe)("name",wt.name)}}function He(Y,je){if(1&Y&&(a.j41(0,"div",10),a.nrm(1,"angor-horizontal-navigation-divider-item",11),a.k0s()),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.R7$(),a.Y8G("item",re)("name",Xe.name)}}function mt(Y,je){if(1&Y&&a.DNE(0,ze,2,3,"div",8)(1,Ke,4,9,"div",9)(2,He,2,2,"div",10),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("aside"===re.type||"collapsable"===re.type||"group"===re.type?1:-1),a.R7$(),a.vxM("divider"===re.type?2:-1)}}function se(Y,je){if(1&Y&&a.DNE(0,mt,3,3),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function Ze(Y,je){if(1&Y&&a.nrm(0,"mat-icon",15),2&Y){const re=a.XpG().$implicit;a.Y8G("ngClass",null==re.classes?null:re.classes.icon)("svgIcon",re.icon)}}function Rt(Y,je){if(1&Y&&(a.j41(0,"div",19)(1,"span",18),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG().$implicit;a.R7$(),a.Y8G("ngClass",null==re.classes?null:re.classes.subtitle),a.R7$(),a.SpI(" ",re.subtitle," ")}}function Jt(Y,je){if(1&Y&&(a.j41(0,"div",20)(1,"div",21),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG().$implicit;a.R7$(),a.Y8G("ngClass",re.badge.classes),a.R7$(),a.SpI(" ",re.badge.title," ")}}function fn(Y,je){if(1&Y&&(a.j41(0,"div",13)(1,"div",14),a.DNE(2,Ze,1,2,"mat-icon",15),a.j41(3,"div",16)(4,"div",17)(5,"span",18),a.EFF(6),a.k0s()(),a.DNE(7,Rt,3,2,"div",19),a.k0s(),a.DNE(8,Jt,3,2,"div",20),a.k0s()()),2&Y){const re=je.$implicit;a.AVh("angor-horizontal-navigation-item-has-subtitle",!!re.subtitle),a.Y8G("ngClass",null==re.classes?null:re.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.l_i(10,Ge,re.disabled,re.active))("matTooltip",re.tooltip||""),a.R7$(),a.vxM(re.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==re.classes?null:re.classes.title),a.R7$(),a.SpI(" ",re.title," "),a.R7$(),a.vxM(re.subtitle?7:-1),a.R7$(),a.vxM(re.badge?8:-1)}}let Kn=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this.child=!1,this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,K.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}triggerChangeDetection(){this._changeDetectorRef.markForCheck()}trackByFn(re,Xe){return Xe.id||re}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation-branch-item"]],viewQuery:function(Xe,wt){if(1&Xe&&a.GBs(bn,7),2&Xe){let Ln;a.mGM(Ln=a.lsd())&&(wt.matMenu=Ln.first)}},inputs:{child:"child",item:"item",name:"name"},decls:7,vars:2,consts:[["matMenu","matMenu"],["itemTemplate",""],["trigger","matMenuTrigger"],["branch",""],[3,"ngClass","matMenuTriggerFor"],[1,"angor-horizontal-navigation-menu-panel",3,"overlapTrigger"],[3,"onMenuOpen","onMenuClose","ngClass","matMenuTriggerFor"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item",3,"disabled"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item"],[3,"item","name"],[3,"child","item","name"],[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"],[1,"angor-horizontal-navigation-item",3,"ngClass","matTooltip"],[1,"angor-horizontal-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-horizontal-navigation-item-title-wrapper"],[1,"angor-horizontal-navigation-item-title"],[3,"ngClass"],[1,"angor-horizontal-navigation-item-subtitle","text-hint"],[1,"angor-horizontal-navigation-item-badge"],[1,"angor-horizontal-navigation-item-badge-content",3,"ngClass"]],template:function(Xe,wt){1&Xe&&(a.DNE(0,Ft,3,9,"div",4),a.j41(1,"mat-menu",5,0),a.Z7z(3,se,1,1,null,null,wt.trackByFn,!0),a.k0s(),a.DNE(5,fn,9,13,"ng-template",null,1,a.C5r)),2&Xe&&(a.vxM(wt.child?-1:0),a.R7$(),a.Y8G("overlapTrigger",!1),a.R7$(2),a.Dyx(wt.item.children))},dependencies:()=>[Y,T.YU,A.Cn,A.kk,A.fb,A.Cp,T.T3,yn,$n,I.uc,I.oV,S.m_,S.An],encapsulation:2,changeDetection:0})}}return Y})(),Nt=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,K.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation-spacer-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"]],template:function(Xe,wt){1&Xe&&a.nrm(0,"div",0),2&Xe&&a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return Y})();function Qt(Y,je){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-basic-item",1),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function an(Y,je){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-branch-item",1),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function Xn(Y,je){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-spacer-item",1),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function En(Y,je){if(1&Y&&a.DNE(0,Qt,1,2,"angor-horizontal-navigation-basic-item",1)(1,an,1,2,"angor-horizontal-navigation-branch-item",1)(2,Xn,1,2,"angor-horizontal-navigation-spacer-item",1),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("aside"===re.type||"collapsable"===re.type||"group"===re.type?1:-1),a.R7$(),a.vxM("spacer"===re.type?2:-1)}}function Kt(Y,je){if(1&Y&&a.DNE(0,En,3,3),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}let At=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.name=this._angorUtilsService.randomId(),this.onRefreshed=new w.m(1),this._unsubscribeAll=new C.B}ngOnChanges(re){"navigation"in re&&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(re,Xe){return Xe.id||re}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation"]],inputs:{name:"name",navigation:"navigation"},exportAs:["angorHorizontalNavigation"],features:[a.OA$],decls:3,vars:0,consts:[[1,"angor-horizontal-navigation-wrapper"],[1,"angor-horizontal-navigation-menu-item",3,"item","name"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",0),a.Z7z(1,Kt,1,1,null,null,wt.trackByFn,!0),a.k0s()),2&Xe&&(a.R7$(),a.Dyx(wt.navigation))},dependencies:[yn,Kn,Nt],styles:["angor-horizontal-navigation .angor-horizontal-navigation-wrapper{display:flex;align-items:center}@media (min-width: 600px){angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item:hover .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item:hover .angor-horizontal-navigation-item-wrapper{background-color:var(--angor-bg-hover)}}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper{border-radius:4px;overflow:hidden}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item{padding:0 16px;cursor:pointer;-webkit-user-select:none;user-select:none}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-icon,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-icon{margin-right:12px}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-title,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-title{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))!important}.dark angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.dark angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-icon,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-menu-active .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-menu-active-forced .angor-horizontal-navigation-item-wrapper{background-color:var(--angor-bg-hover)}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-spacer-item{margin:12px 0}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item{height:auto;min-height:0;line-height:normal;white-space:normal}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item,.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-branch-item,.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item{display:flex;flex:1 1 auto}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item{margin:8px -16px}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item .angor-horizontal-navigation-item-wrapper{height:1px;box-shadow:0 1px}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-title,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-title{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))!important}.dark .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.dark .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1))!important}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-icon,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper{width:100%}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper.angor-horizontal-navigation-item-has-subtitle .angor-horizontal-navigation-item{min-height:56px}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item{position:relative;display:flex;align-items:center;justify-content:flex-start;min-height:48px;width:100%;font-size:13px;font-weight:500;text-decoration:none}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-title-wrapper .angor-horizontal-navigation-item-subtitle{font-size:12px}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-badge{margin-left:auto}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-badge .angor-horizontal-navigation-item-badge-content{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;white-space:nowrap;height:20px}\n"],encapsulation:2,data:{animation:i.F},changeDetection:0})}}return Y})();const zt=Y=>({"angor-vertical-navigation-item-active-forced":Y}),xn=Y=>[Y];function Yn(Y,je){1&Y&&a.eu8(0)}function tt(Y,je){if(1&Y&&(a.j41(0,"a",2),a.DNE(1,Yn,1,0,"ng-container",6),a.k0s()),2&Y){let re,Xe,wt,Ln;const hn=a.XpG(),ur=a.sdS(9);a.Y8G("ngClass",a.eq3(10,zt,hn.item.active))("routerLink",a.eq3(12,xn,hn.item.link))("fragment",null!==(re=hn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Xe=hn.item.preserveFragment)&&void 0!==Xe&&Xe)("queryParams",null!==(wt=hn.item.queryParams)&&void 0!==wt?wt:null)("queryParamsHandling",null!==(Ln=hn.item.queryParamsHandling)&&void 0!==Ln?Ln:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",hn.isActiveMatchOptions)("matTooltip",hn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ur)}}function ke(Y,je){1&Y&&a.eu8(0)}function B(Y,je){if(1&Y&&(a.j41(0,"a",3),a.DNE(1,ke,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("href",re.item.link,a.B4B)("target",re.item.target||"_self")("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function k(Y,je){1&Y&&a.eu8(0)}function j(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"div",7),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,k,1,0,"ng-container",6),a.k0s()}if(2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,zt,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function De(Y,je){1&Y&&a.eu8(0)}function it(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"a",8),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,De,1,0,"ng-container",6),a.k0s()}if(2&Y){let re,Xe,wt,Ln;const hn=a.XpG(),ur=a.sdS(9);a.Y8G("ngClass",a.eq3(10,zt,hn.item.active))("routerLink",a.eq3(12,xn,hn.item.link))("fragment",null!==(re=hn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Xe=hn.item.preserveFragment)&&void 0!==Xe&&Xe)("queryParams",null!==(wt=hn.item.queryParams)&&void 0!==wt?wt:null)("queryParamsHandling",null!==(Ln=hn.item.queryParamsHandling)&&void 0!==Ln?Ln:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",hn.isActiveMatchOptions)("matTooltip",hn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ur)}}function ot(Y,je){1&Y&&a.eu8(0)}function Tt(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"a",9),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,ot,1,0,"ng-container",6),a.k0s()}if(2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("href",re.item.link,a.B4B)("target",re.item.target||"_self")("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function In(Y,je){1&Y&&a.eu8(0)}function Vt(Y,je){if(1&Y&&(a.j41(0,"div",4),a.DNE(1,In,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,zt,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function dn(Y,je){1&Y&&a.eu8(0)}function Pn(Y,je){if(1&Y&&(a.j41(0,"div",5),a.DNE(1,dn,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function Fn(Y,je){if(1&Y&&a.nrm(0,"mat-icon",10),2&Y){const re=a.XpG(2);a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function Bn(Y,je){if(1&Y&&(a.j41(0,"div",14)(1,"span",13),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG(2);a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function cr(Y,je){if(1&Y&&(a.j41(0,"div",15)(1,"div",16),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG(2);a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function Jr(Y,je){if(1&Y&&(a.DNE(0,Fn,1,2,"mat-icon",10),a.j41(1,"div",11)(2,"div",12)(3,"span",13),a.EFF(4),a.k0s()(),a.DNE(5,Bn,3,2,"div",14),a.k0s(),a.DNE(6,cr,3,2,"div",15)),2&Y){const re=a.XpG();a.vxM(re.item.icon?0:-1),a.R7$(3),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.title),a.R7$(),a.SpI(" ",re.item.title," "),a.R7$(),a.vxM(re.item.subtitle?5:-1),a.R7$(),a.vxM(re.item.badge?6:-1)}}let Xr=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new C.B}ngOnInit(){this.isActiveMatchOptions=this.item.isActiveMatchOptions??this.item.exactMatch?this._angorUtilsService.exactMatchOptions:this._angorUtilsService.subsetMatchOptions,this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._changeDetectorRef.markForCheck(),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,K.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-basic-item"]],inputs:{item:"item",name:"name"},decls:10,vars:10,consts:[["itemTemplate",""],[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-vertical-navigation-item",3,"href","target","matTooltip"],[1,"angor-vertical-navigation-item",3,"ngClass","matTooltip"],[1,"angor-vertical-navigation-item","angor-vertical-navigation-item-disabled",3,"matTooltip"],[4,"ngTemplateOutlet"],[1,"angor-vertical-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-vertical-navigation-item",3,"click","ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-vertical-navigation-item",3,"click","href","target","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",1),a.DNE(1,tt,2,14,"a",2)(2,B,2,4,"a",3)(3,j,2,5,"div",4)(4,it,2,14,"a",2)(5,Tt,2,4,"a",3)(6,Vt,2,5,"div",4)(7,Pn,2,2,"div",5),a.k0s(),a.DNE(8,Jr,7,5,"ng-template",null,0,a.C5r)),2&Xe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(),a.vxM(!wt.item.link||wt.item.externalLink||wt.item.function||wt.item.disabled?-1:1),a.R7$(),a.vxM(wt.item.link&&wt.item.externalLink&&!wt.item.function&&!wt.item.disabled?2:-1),a.R7$(),a.vxM(wt.item.link||!wt.item.function||wt.item.disabled?-1:3),a.R7$(),a.vxM(wt.item.link&&!wt.item.externalLink&&wt.item.function&&!wt.item.disabled?4:-1),a.R7$(),a.vxM(wt.item.link&&wt.item.externalLink&&wt.item.function&&!wt.item.disabled?5:-1),a.R7$(),a.vxM(wt.item.link||wt.item.function||wt.item.disabled?-1:6),a.R7$(),a.vxM(wt.item.disabled?7:-1))},dependencies:[T.YU,N.Wk,N.wQ,I.uc,I.oV,T.T3,S.m_,S.An],encapsulation:2,changeDetection:0})}}return Y})(),_t=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,K.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-divider-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper","divider",3,"ngClass"]],template:function(Xe,wt){1&Xe&&a.nrm(0,"div",0),2&Xe&&a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return Y})(),Bt=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,K.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-spacer-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"]],template:function(Xe,wt){1&Xe&&a.nrm(0,"div",0),2&Xe&&a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return Y})();function Ee(Y,je){if(1&Y&&a.nrm(0,"mat-icon",2),2&Y){const re=a.XpG();a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function lt(Y,je){if(1&Y&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function Pe(Y,je){if(1&Y&&(a.j41(0,"div",7)(1,"div",8),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function kt(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function ft(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function Pt(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function mn(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function or(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function Mr(Y,je){if(1&Y&&a.DNE(0,kt,1,2,"angor-vertical-navigation-basic-item",9)(1,ft,1,3,"angor-vertical-navigation-collapsable-item",10)(2,Pt,1,2,"angor-vertical-navigation-divider-item",9)(3,mn,1,2,"angor-vertical-navigation-group-item",9)(4,or,1,2,"angor-vertical-navigation-spacer-item",9),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("collapsable"===re.type?1:-1),a.R7$(),a.vxM("divider"===re.type?2:-1),a.R7$(),a.vxM("group"===re.type?3:-1),a.R7$(),a.vxM("spacer"===re.type?4:-1)}}function ii(Y,je){if(1&Y&&a.DNE(0,Mr,5,5),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}let ci=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,K.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(re,Xe){return Xe.id||re}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-group-item"]],inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},decls:11,vars:8,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,Ee,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,lt,3,2,"div",6),a.k0s(),a.DNE(8,Pe,3,2,"div",7),a.k0s()(),a.Z7z(9,ii,1,1,null,null,wt.trackByFn,!0)),2&Xe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(2),a.vxM(wt.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.title),a.R7$(),a.SpI(" ",wt.item.title," "),a.R7$(),a.vxM(wt.item.subtitle?7:-1),a.R7$(),a.vxM(wt.item.badge?8:-1),a.R7$(),a.Dyx(wt.item.children))},dependencies:()=>[Y,T.YU,S.m_,S.An,Xr,so,_t,Bt],encapsulation:2,changeDetection:0})}}return Y})();var Ai=r(5964);const rn=Y=>({"angor-vertical-navigation-item-disabled":Y});function St(Y,je){if(1&Y&&a.nrm(0,"mat-icon",2),2&Y){const re=a.XpG();a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function qe(Y,je){if(1&Y&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function Dt(Y,je){if(1&Y&&(a.j41(0,"div",7)(1,"div",10),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function Wt(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Hn(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",12),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function fr(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function uo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Oi(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Uo(Y,je){if(1&Y&&a.DNE(0,Wt,1,2,"angor-vertical-navigation-basic-item",11)(1,Hn,1,3,"angor-vertical-navigation-collapsable-item",12)(2,fr,1,2,"angor-vertical-navigation-divider-item",11)(3,uo,1,2,"angor-vertical-navigation-group-item",11)(4,Oi,1,2,"angor-vertical-navigation-spacer-item",11),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("collapsable"===re.type?1:-1),a.R7$(),a.vxM("divider"===re.type?2:-1),a.R7$(),a.vxM("group"===re.type?3:-1),a.R7$(),a.vxM("spacer"===re.type?4:-1)}}function oi(Y,je){if(1&Y&&a.DNE(0,Uo,5,5),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function ts(Y,je){if(1&Y&&(a.j41(0,"div",9),a.Z7z(1,oi,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&Y){const re=a.XpG();a.Y8G("@expandCollapse",void 0),a.R7$(),a.Dyx(re.item.children)}}let so=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._router=(0,a.WQX)(N.Ix),this._angorNavigationService=(0,a.WQX)(c),this.isCollapsed=!0,this.isExpanded=!1,this._unsubscribeAll=new C.B}get classList(){return{"angor-vertical-navigation-item-collapsed":this.isCollapsed,"angor-vertical-navigation-item-expanded":this.isExpanded}}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._hasActiveChild(this.item,this._router.url)?this.expand():this.autoCollapse&&this.collapse(),this._angorVerticalNavigationComponent.onCollapsableItemCollapsed.pipe((0,K.Q)(this._unsubscribeAll)).subscribe(re=>{null!==re&&this._isChildrenOf(re,this.item)&&this.collapse()}),this.autoCollapse&&this._angorVerticalNavigationComponent.onCollapsableItemExpanded.pipe((0,K.Q)(this._unsubscribeAll)).subscribe(re=>{null!==re&&(this._isChildrenOf(this.item,re)||this._hasActiveChild(this.item,this._router.url)||this.item!==re&&this.collapse())}),this._router.events.pipe((0,Ai.p)(re=>re instanceof N.wF),(0,K.Q)(this._unsubscribeAll)).subscribe(re=>{this._hasActiveChild(this.item,re.urlAfterRedirects)?this.expand():this.autoCollapse&&this.collapse()}),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,K.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(re,Xe){return Xe.id||re}_hasActiveChild(re,Xe){const wt=re.children;if(!wt)return!1;for(const Ln of wt)if(Ln.children&&this._hasActiveChild(Ln,Xe)||Ln.link&&this._router.isActive(Ln.link,Ln.exactMatch||!1))return!0;return!1}_isChildrenOf(re,Xe){const wt=re.children;if(!wt)return!1;if(wt.indexOf(Xe)>-1)return!0;for(const Ln of wt)if(Ln.children&&this._isChildrenOf(Ln,Xe))return!0;return!1}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-collapsable-item"]],hostVars:2,hostBindings:function(Xe,wt){2&Xe&&a.HbH(wt.classList)},inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},decls:11,vars:14,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-arrow","icon-size-4",3,"svgIcon"],[1,"angor-vertical-navigation-item-children"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",0)(1,"div",1),a.bIt("click",function(){return wt.toggleCollapsable()}),a.DNE(2,St,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,qe,3,2,"div",6),a.k0s(),a.DNE(8,Dt,3,2,"div",7),a.nrm(9,"mat-icon",8),a.k0s()(),a.DNE(10,ts,3,1,"div",9)),2&Xe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.eq3(12,rn,wt.item.disabled))("matTooltip",wt.item.tooltip||""),a.R7$(),a.vxM(wt.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.title),a.R7$(),a.SpI(" ",wt.item.title," "),a.R7$(),a.vxM(wt.item.subtitle?7:-1),a.R7$(),a.vxM(wt.item.badge?8:-1),a.R7$(),a.Y8G("svgIcon","heroicons_solid:chevron-right"),a.R7$(),a.vxM(wt.isCollapsed?-1:10))},dependencies:()=>[Y,T.YU,I.uc,I.oV,S.m_,S.An,Xr,_t,ci,Bt],encapsulation:2,data:{animation:i.F},changeDetection:0})}}return Y})();const bo=(Y,je,re)=>({"angor-vertical-navigation-item-active":Y,"angor-vertical-navigation-item-disabled":je,"angor-vertical-navigation-item-active-forced":re});function Xo(Y,je){if(1&Y&&a.nrm(0,"mat-icon",2),2&Y){const re=a.XpG();a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function Co(Y,je){if(1&Y&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function Is(Y,je){if(1&Y&&(a.j41(0,"div",7)(1,"div",9),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function eo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function oo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function Bi(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Mo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Je(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function ct(Y,je){if(1&Y&&a.DNE(0,eo,1,2,"angor-vertical-navigation-basic-item",10)(1,oo,1,3,"angor-vertical-navigation-collapsable-item",11)(2,Bi,1,2,"angor-vertical-navigation-divider-item",10)(3,Mo,1,2,"angor-vertical-navigation-group-item",10)(4,Je,1,2,"angor-vertical-navigation-spacer-item",10),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("collapsable"===re.type?1:-1),a.R7$(),a.vxM("divider"===re.type?2:-1),a.R7$(),a.vxM("group"===re.type?3:-1),a.R7$(),a.vxM("spacer"===re.type?4:-1)}}function Et(Y,je){if(1&Y&&a.DNE(0,ct,5,5),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function ve(Y,je){if(1&Y&&(a.j41(0,"div",8),a.Z7z(1,Et,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&Y){const re=a.XpG();a.R7$(),a.Dyx(re.item.children)}}let et=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._router=(0,a.WQX)(N.Ix),this._angorNavigationService=(0,a.WQX)(c),this.active=!1,this._unsubscribeAll=new C.B}ngOnChanges(re){"activeItemId"in re&&this._markIfActive(this._router.url)}ngOnInit(){this._markIfActive(this._router.url),this._router.events.pipe((0,Ai.p)(re=>re instanceof N.wF),(0,K.Q)(this._unsubscribeAll)).subscribe(re=>{this._markIfActive(re.urlAfterRedirects)}),this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,K.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(re,Xe){return Xe.id||re}_hasActiveChild(re,Xe){const wt=re.children;if(!wt)return!1;for(const Ln of wt){if(Ln.children&&this._hasActiveChild(Ln,Xe))return!0;if("basic"===Ln.type&&Ln.link&&this._router.isActive(Ln.link,Ln.exactMatch||!1))return!0}return!1}_markIfActive(re){this.active=this.activeItemId===this.item.id,this._hasActiveChild(this.item,re)&&(this.active=!0),this._changeDetectorRef.markForCheck()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-aside-item"]],inputs:{activeItemId:"activeItemId",autoCollapse:"autoCollapse",item:"item",name:"name",skipChildren:"skipChildren"},features:[a.OA$],decls:10,vars:15,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"ngClass","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-children"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,Xo,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,Co,3,2,"div",6),a.k0s(),a.DNE(8,Is,3,2,"div",7),a.k0s()(),a.DNE(9,ve,3,0,"div",8)),2&Xe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.sMw(11,bo,wt.active,wt.item.disabled,wt.item.active))("matTooltip",wt.item.tooltip||""),a.R7$(),a.vxM(wt.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.title),a.R7$(),a.SpI(" ",wt.item.title," "),a.R7$(),a.vxM(wt.item.subtitle?7:-1),a.R7$(),a.vxM(wt.item.badge?8:-1),a.R7$(),a.vxM(wt.skipChildren?-1:9))},dependencies:[T.YU,I.uc,I.oV,S.m_,S.An,Xr,so,_t,ci,Bt],encapsulation:2,changeDetection:0})}}return Y})();class Oe{constructor(je,re,Xe,wt){this.x=je,this.y=re,this.w=Xe,this.h=wt}}class pt{constructor(je,re){this.x=je,this.y=re}}var $t=r(4085),Mt=r(6860),un=r(2401);function Cn(Y){return getComputedStyle(Y)}function Sn(Y,je){for(var re in je){var Xe=je[re];"number"==typeof Xe&&(Xe+="px"),Y.style[re]=Xe}return Y}function kn(Y){var je=document.createElement("div");return je.className=Y,je}var Un=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Jn(Y,je){if(!Un)throw new Error("No element matching method supported");return Un.call(Y,je)}function sr(Y){Y.remove?Y.remove():Y.parentNode&&Y.parentNode.removeChild(Y)}function kr(Y,je){return Array.prototype.filter.call(Y.children,function(re){return Jn(re,je)})}var mr_element_thumb=function(Y){return"ps__thumb-"+Y},mr_element_rail=function(Y){return"ps__rail-"+Y},mr_element_consuming="ps__child--consume",mr_state_focus="ps--focus",mr_state_clicking="ps--clicking",mr_state_active=function(Y){return"ps--active-"+Y},mr_state_scrolling=function(Y){return"ps--scrolling-"+Y},bi={x:null,y:null};function si(Y,je){var re=Y.element.classList,Xe=mr_state_scrolling(je);re.contains(Xe)?clearTimeout(bi[je]):re.add(Xe)}function gr(Y,je){bi[je]=setTimeout(function(){return Y.isAlive&&Y.element.classList.remove(mr_state_scrolling(je))},Y.settings.scrollingThreshold)}var vo=function(je){this.element=je,this.handlers={}},$r={isEmpty:{configurable:!0}};vo.prototype.bind=function(je,re){typeof this.handlers[je]>"u"&&(this.handlers[je]=[]),this.handlers[je].push(re),this.element.addEventListener(je,re,!1)},vo.prototype.unbind=function(je,re){var Xe=this;this.handlers[je]=this.handlers[je].filter(function(wt){return!(!re||wt===re)||(Xe.element.removeEventListener(je,wt,!1),!1)})},vo.prototype.unbindAll=function(){for(var je in this.handlers)this.unbind(je)},$r.isEmpty.get=function(){var Y=this;return Object.keys(this.handlers).every(function(je){return 0===Y.handlers[je].length})},Object.defineProperties(vo.prototype,$r);var zi=function(){this.eventElements=[]};function cs(Y){if("function"==typeof window.CustomEvent)return new CustomEvent(Y);var je=document.createEvent("CustomEvent");return je.initCustomEvent(Y,!1,!1,void 0),je}function ws(Y,je,re,Xe,wt){var Ln;if(void 0===Xe&&(Xe=!0),void 0===wt&&(wt=!1),"top"===je)Ln=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==je)throw new Error("A proper axis should be provided");Ln=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function ia(Y,je,re,Xe,wt){var Ln=re[0],hn=re[1],ur=re[2],hr=re[3],zr=re[4],Gi=re[5];void 0===Xe&&(Xe=!0),void 0===wt&&(wt=!1);var Or=Y.element;Y.reach[hr]=null,Or[ur]<1&&(Y.reach[hr]="start"),Or[ur]>Y[Ln]-Y[hn]-1&&(Y.reach[hr]="end"),je&&(Or.dispatchEvent(cs("ps-scroll-"+hr)),je<0?Or.dispatchEvent(cs("ps-scroll-"+zr)):je>0&&Or.dispatchEvent(cs("ps-scroll-"+Gi)),Xe&&function ai(Y,je){si(Y,je),gr(Y,je)}(Y,hr)),Y.reach[hr]&&(je||wt)&&Or.dispatchEvent(cs("ps-"+hr+"-reach-"+Y.reach[hr]))}(Y,re,Ln,Xe,wt)}function Sr(Y){return parseInt(Y,10)||0}zi.prototype.eventElement=function(je){var re=this.eventElements.filter(function(Xe){return Xe.element===je})[0];return re||(re=new vo(je),this.eventElements.push(re)),re},zi.prototype.bind=function(je,re,Xe){this.eventElement(je).bind(re,Xe)},zi.prototype.unbind=function(je,re,Xe){var wt=this.eventElement(je);wt.unbind(re,Xe),wt.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(wt),1)},zi.prototype.unbindAll=function(){this.eventElements.forEach(function(je){return je.unbindAll()}),this.eventElements=[]},zi.prototype.once=function(je,re,Xe){var wt=this.eventElement(je),Ln=function(hn){wt.unbind(re,Ln),Xe(hn)};wt.bind(re,Ln)};var wo={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 Ls(Y){var je=Y.element,re=Math.floor(je.scrollTop),Xe=je.getBoundingClientRect();Y.containerWidth=Math.floor(Xe.width),Y.containerHeight=Math.floor(Xe.height),Y.contentWidth=je.scrollWidth,Y.contentHeight=je.scrollHeight,je.contains(Y.scrollbarXRail)||(kr(je,mr_element_rail("x")).forEach(function(wt){return sr(wt)}),je.appendChild(Y.scrollbarXRail)),je.contains(Y.scrollbarYRail)||(kr(je,mr_element_rail("y")).forEach(function(wt){return sr(wt)}),je.appendChild(Y.scrollbarYRail)),!Y.settings.suppressScrollX&&Y.containerWidth+Y.settings.scrollXMarginOffset=Y.railXWidth-Y.scrollbarXWidth&&(Y.scrollbarXLeft=Y.railXWidth-Y.scrollbarXWidth),Y.scrollbarYTop>=Y.railYHeight-Y.scrollbarYHeight&&(Y.scrollbarYTop=Y.railYHeight-Y.scrollbarYHeight),function Xs(Y,je){var re={width:je.railXWidth},Xe=Math.floor(Y.scrollTop);re.left=je.isRtl?je.negativeScrollAdjustment+Y.scrollLeft+je.containerWidth-je.contentWidth:Y.scrollLeft,je.isScrollbarXUsingBottom?re.bottom=je.scrollbarXBottom-Xe:re.top=je.scrollbarXTop+Xe,Sn(je.scrollbarXRail,re);var wt={top:Xe,height:je.railYHeight};je.isScrollbarYUsingRight?wt.right=je.isRtl?je.contentWidth-(je.negativeScrollAdjustment+Y.scrollLeft)-je.scrollbarYRight-je.scrollbarYOuterWidth-9:je.scrollbarYRight-Y.scrollLeft:wt.left=je.isRtl?je.negativeScrollAdjustment+Y.scrollLeft+2*je.containerWidth-je.contentWidth-je.scrollbarYLeft-je.scrollbarYOuterWidth:je.scrollbarYLeft+Y.scrollLeft,Sn(je.scrollbarYRail,wt),Sn(je.scrollbarX,{left:je.scrollbarXLeft,width:je.scrollbarXWidth-je.railBorderXWidth}),Sn(je.scrollbarY,{top:je.scrollbarYTop,height:je.scrollbarYHeight-je.railBorderYWidth})}(je,Y),Y.scrollbarXActive?je.classList.add(mr_state_active("x")):(je.classList.remove(mr_state_active("x")),Y.scrollbarXWidth=0,Y.scrollbarXLeft=0,je.scrollLeft=!0===Y.isRtl?Y.contentWidth:0),Y.scrollbarYActive?je.classList.add(mr_state_active("y")):(je.classList.remove(mr_state_active("y")),Y.scrollbarYHeight=0,Y.scrollbarYTop=0,je.scrollTop=0)}function Ps(Y,je){return Y.settings.minScrollbarLength&&(je=Math.max(je,Y.settings.minScrollbarLength)),Y.settings.maxScrollbarLength&&(je=Math.min(je,Y.settings.maxScrollbarLength)),je}var Ys=null;function Fs(Y,je){var re=je[0],Xe=je[1],wt=je[2],Ln=je[3],hn=je[4],ur=je[5],hr=je[6],zr=je[7],Gi=je[8],Or=Y.element,Dr=null,Ei=null,ui=null;function ho(Oo){Oo.touches&&Oo.touches[0]&&(Oo[wt]=Oo.touches[0]["page"+zr.toUpperCase()]),Ys===hn&&(Or[hr]=Dr+ui*(Oo[wt]-Ei),si(Y,zr),Ls(Y),Oo.stopPropagation(),Oo.preventDefault())}function lo(){gr(Y,zr),Y[Gi].classList.remove(mr_state_clicking),document.removeEventListener("mousemove",ho),document.removeEventListener("mouseup",lo),document.removeEventListener("touchmove",ho),document.removeEventListener("touchend",lo),Ys=null}function Ho(Oo){null===Ys&&(Ys=hn,Dr=Or[hr],Oo.touches&&(Oo[wt]=Oo.touches[0]["page"+zr.toUpperCase()]),Ei=Oo[wt],ui=(Y[Xe]-Y[re])/(Y[Ln]-Y[ur]),Oo.touches?(document.addEventListener("touchmove",ho,{passive:!1}),document.addEventListener("touchend",lo)):(document.addEventListener("mousemove",ho),document.addEventListener("mouseup",lo)),Y[Gi].classList.add(mr_state_clicking)),Oo.stopPropagation(),Oo.cancelable&&Oo.preventDefault()}Y[hn].addEventListener("mousedown",Ho),Y[hn].addEventListener("touchstart",Ho)}var to={"click-rail":function Ki(Y){Y.event.bind(Y.scrollbarY,"mousedown",function(je){return je.stopPropagation()}),Y.event.bind(Y.scrollbarYRail,"mousedown",function(je){var re=je.pageY-window.pageYOffset-Y.scrollbarYRail.getBoundingClientRect().top;Y.element.scrollTop+=(re>Y.scrollbarYTop?1:-1)*Y.containerHeight,Ls(Y),je.stopPropagation()}),Y.event.bind(Y.scrollbarX,"mousedown",function(je){return je.stopPropagation()}),Y.event.bind(Y.scrollbarXRail,"mousedown",function(je){var re=je.pageX-window.pageXOffset-Y.scrollbarXRail.getBoundingClientRect().left;Y.element.scrollLeft+=(re>Y.scrollbarXLeft?1:-1)*Y.containerWidth,Ls(Y),je.stopPropagation()})},"drag-thumb":function Ni(Y){Fs(Y,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),Fs(Y,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])},keyboard:function ns(Y){var je=Y.element;Y.event.bind(Y.ownerDocument,"keydown",function(Ln){if(!(Ln.isDefaultPrevented&&Ln.isDefaultPrevented()||Ln.defaultPrevented)&&(Jn(je,":hover")||Jn(Y.scrollbarX,":focus")||Jn(Y.scrollbarY,":focus"))){var hn=document.activeElement?document.activeElement:Y.ownerDocument.activeElement;if(hn){if("IFRAME"===hn.tagName)hn=hn.contentDocument.activeElement;else for(;hn.shadowRoot;)hn=hn.shadowRoot.activeElement;if(function oa(Y){return Jn(Y,"input,[contenteditable]")||Jn(Y,"select,[contenteditable]")||Jn(Y,"textarea,[contenteditable]")||Jn(Y,"button,[contenteditable]")}(hn))return}var ur=0,hr=0;switch(Ln.which){case 37:ur=Ln.metaKey?-Y.contentWidth:Ln.altKey?-Y.containerWidth:-30;break;case 38:hr=Ln.metaKey?Y.contentHeight:Ln.altKey?Y.containerHeight:30;break;case 39:ur=Ln.metaKey?Y.contentWidth:Ln.altKey?Y.containerWidth:30;break;case 40:hr=Ln.metaKey?-Y.contentHeight:Ln.altKey?-Y.containerHeight:-30;break;case 32:hr=Ln.shiftKey?Y.containerHeight:-Y.containerHeight;break;case 33:hr=Y.containerHeight;break;case 34:hr=-Y.containerHeight;break;case 36:hr=Y.contentHeight;break;case 35:hr=-Y.contentHeight;break;default:return}Y.settings.suppressScrollX&&0!==ur||Y.settings.suppressScrollY&&0!==hr||(je.scrollTop-=hr,je.scrollLeft+=ur,Ls(Y),function wt(Ln,hn){var ur=Math.floor(je.scrollTop);if(0===Ln){if(!Y.scrollbarYActive)return!1;if(0===ur&&hn>0||ur>=Y.contentHeight-Y.containerHeight&&hn<0)return!Y.settings.wheelPropagation}var hr=je.scrollLeft;if(0===hn){if(!Y.scrollbarXActive)return!1;if(0===hr&&Ln<0||hr>=Y.contentWidth-Y.containerWidth&&Ln>0)return!Y.settings.wheelPropagation}return!0}(ur,hr)&&Ln.preventDefault())}})},wheel:function qr(Y){var je=Y.element;function Ln(hn){var ur=function Xe(hn){var ur=hn.deltaX,hr=-1*hn.deltaY;return(typeof ur>"u"||typeof hr>"u")&&(ur=-1*hn.wheelDeltaX/6,hr=hn.wheelDeltaY/6),hn.deltaMode&&1===hn.deltaMode&&(ur*=10,hr*=10),ur!=ur&&hr!=hr&&(ur=0,hr=hn.wheelDelta),hn.shiftKey?[-hr,-ur]:[ur,hr]}(hn),hr=ur[0],zr=ur[1];if(!function wt(hn,ur,hr){if(!wo.isWebKit&&je.querySelector("select:focus"))return!0;if(!je.contains(hn))return!1;for(var zr=hn;zr&&zr!==je;){if(zr.classList.contains(mr_element_consuming))return!0;var Gi=Cn(zr);if(hr&&Gi.overflowY.match(/(scroll|auto)/)){var Or=zr.scrollHeight-zr.clientHeight;if(Or>0&&(zr.scrollTop>0&&hr<0||zr.scrollTop0))return!0}if(ur&&Gi.overflowX.match(/(scroll|auto)/)){var Dr=zr.scrollWidth-zr.clientWidth;if(Dr>0&&(zr.scrollLeft>0&&ur<0||zr.scrollLeft0))return!0}zr=zr.parentNode}return!1}(hn.target,hr,zr)){var Gi=!1;Y.settings.useBothWheelAxes?Y.scrollbarYActive&&!Y.scrollbarXActive?(zr?je.scrollTop-=zr*Y.settings.wheelSpeed:je.scrollTop+=hr*Y.settings.wheelSpeed,Gi=!0):Y.scrollbarXActive&&!Y.scrollbarYActive&&(hr?je.scrollLeft+=hr*Y.settings.wheelSpeed:je.scrollLeft-=zr*Y.settings.wheelSpeed,Gi=!0):(je.scrollTop-=zr*Y.settings.wheelSpeed,je.scrollLeft+=hr*Y.settings.wheelSpeed),Ls(Y),Gi=Gi||function re(hn,ur){var hr=Math.floor(je.scrollTop),zr=0===je.scrollTop,Gi=hr+je.offsetHeight===je.scrollHeight,Or=0===je.scrollLeft,Dr=je.scrollLeft+je.offsetWidth===je.scrollWidth;return!(Math.abs(ur)>Math.abs(hn)?zr||Gi:Or||Dr)||!Y.settings.wheelPropagation}(hr,zr),Gi&&!hn.ctrlKey&&(hn.stopPropagation(),hn.preventDefault())}}typeof window.onwheel<"u"?Y.event.bind(je,"wheel",Ln):typeof window.onmousewheel<"u"&&Y.event.bind(je,"mousewheel",Ln)},touch:function rs(Y){if(wo.supportsTouch||wo.supportsIePointer){var je=Y.element,re={startOffset:{},startTime:0,speed:{},easingLoop:null};wo.supportsTouch?(Y.event.bind(je,"touchstart",ur),Y.event.bind(je,"touchmove",zr),Y.event.bind(je,"touchend",Gi)):wo.supportsIePointer&&(window.PointerEvent?(Y.event.bind(je,"pointerdown",ur),Y.event.bind(je,"pointermove",zr),Y.event.bind(je,"pointerup",Gi)):window.MSPointerEvent&&(Y.event.bind(je,"MSPointerDown",ur),Y.event.bind(je,"MSPointerMove",zr),Y.event.bind(je,"MSPointerUp",Gi)))}function wt(Or,Dr){je.scrollTop-=Dr,je.scrollLeft-=Or,Ls(Y)}function Ln(Or){return Or.targetTouches?Or.targetTouches[0]:Or}function hn(Or){return!(Or.target===Y.scrollbarX||Or.target===Y.scrollbarY||Or.pointerType&&"pen"===Or.pointerType&&0===Or.buttons||!(Or.targetTouches&&1===Or.targetTouches.length||Or.pointerType&&"mouse"!==Or.pointerType&&Or.pointerType!==Or.MSPOINTER_TYPE_MOUSE))}function ur(Or){if(hn(Or)){var Dr=Ln(Or);re.startOffset.pageX=Dr.pageX,re.startOffset.pageY=Dr.pageY,re.startTime=(new Date).getTime(),null!==re.easingLoop&&clearInterval(re.easingLoop)}}function zr(Or){if(hn(Or)){var Dr=Ln(Or),Ei={pageX:Dr.pageX,pageY:Dr.pageY},ui=Ei.pageX-re.startOffset.pageX,ho=Ei.pageY-re.startOffset.pageY;if(function hr(Or,Dr,Ei){if(!je.contains(Or))return!1;for(var ui=Or;ui&&ui!==je;){if(ui.classList.contains(mr_element_consuming))return!0;var ho=Cn(ui);if(Ei&&ho.overflowY.match(/(scroll|auto)/)){var lo=ui.scrollHeight-ui.clientHeight;if(lo>0&&(ui.scrollTop>0&&Ei<0||ui.scrollTop0))return!0}if(Dr&&ho.overflowX.match(/(scroll|auto)/)){var Ho=ui.scrollWidth-ui.clientWidth;if(Ho>0&&(ui.scrollLeft>0&&Dr<0||ui.scrollLeft0))return!0}ui=ui.parentNode}return!1}(Or.target,ui,ho))return;wt(ui,ho),re.startOffset=Ei;var lo=(new Date).getTime(),Ho=lo-re.startTime;Ho>0&&(re.speed.x=ui/Ho,re.speed.y=ho/Ho,re.startTime=lo),function Xe(Or,Dr){var Ei=Math.floor(je.scrollTop),ui=je.scrollLeft,ho=Math.abs(Or),lo=Math.abs(Dr);if(lo>ho){if(Dr<0&&Ei===Y.contentHeight-Y.containerHeight||Dr>0&&0===Ei)return 0===window.scrollY&&Dr>0&&wo.isChrome}else if(ho>lo&&(Or<0&&ui===Y.contentWidth-Y.containerWidth||Or>0&&0===ui))return!0;return!0}(ui,ho)&&Or.cancelable&&Or.preventDefault()}}function Gi(){Y.settings.swipeEasing&&(clearInterval(re.easingLoop),re.easingLoop=setInterval(function(){Y.isInitialized?clearInterval(re.easingLoop):re.speed.x||re.speed.y?Math.abs(re.speed.x)<.01&&Math.abs(re.speed.y)<.01?clearInterval(re.easingLoop):(wt(30*re.speed.x,30*re.speed.y),re.speed.x*=.8,re.speed.y*=.8):clearInterval(re.easingLoop)},10))}}},Wi=function(je,re){var Xe=this;if(void 0===re&&(re={}),"string"==typeof je&&(je=document.querySelector(je)),!je||!je.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var wt in this.element=je,je.classList.add("ps"),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},re)this.settings[wt]=re[wt];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Gi,zr,Ln=function(){return je.classList.add(mr_state_focus)},hn=function(){return je.classList.remove(mr_state_focus)};this.isRtl="rtl"===Cn(je).direction,!0===this.isRtl&&je.classList.add("ps__rtl"),this.isNegativeScroll=(zr=je.scrollLeft,je.scrollLeft=-1,Gi=je.scrollLeft<0,je.scrollLeft=zr,Gi),this.negativeScrollAdjustment=this.isNegativeScroll?je.scrollWidth-je.clientWidth:0,this.event=new zi,this.ownerDocument=je.ownerDocument||document,this.scrollbarXRail=kn(mr_element_rail("x")),je.appendChild(this.scrollbarXRail),this.scrollbarX=kn(mr_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Ln),this.event.bind(this.scrollbarX,"blur",hn),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var ur=Cn(this.scrollbarXRail);this.scrollbarXBottom=parseInt(ur.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Sr(ur.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Sr(ur.borderLeftWidth)+Sr(ur.borderRightWidth),Sn(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Sr(ur.marginLeft)+Sr(ur.marginRight),Sn(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=kn(mr_element_rail("y")),je.appendChild(this.scrollbarYRail),this.scrollbarY=kn(mr_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Ln),this.event.bind(this.scrollbarY,"blur",hn),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var hr=Cn(this.scrollbarYRail);this.scrollbarYRight=parseInt(hr.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Sr(hr.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function ma(Y){var je=Cn(Y);return Sr(je.width)+Sr(je.paddingLeft)+Sr(je.paddingRight)+Sr(je.borderLeftWidth)+Sr(je.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Sr(hr.borderTopWidth)+Sr(hr.borderBottomWidth),Sn(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Sr(hr.marginTop)+Sr(hr.marginBottom),Sn(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:je.scrollLeft<=0?"start":je.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:je.scrollTop<=0?"start":je.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(zr){return to[zr](Xe)}),this.lastScrollTop=Math.floor(je.scrollTop),this.lastScrollLeft=je.scrollLeft,this.event.bind(this.element,"scroll",function(zr){return Xe.onScroll(zr)}),Ls(this)};Wi.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Sn(this.scrollbarXRail,{display:"block"}),Sn(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Sr(Cn(this.scrollbarXRail).marginLeft)+Sr(Cn(this.scrollbarXRail).marginRight),this.railYMarginHeight=Sr(Cn(this.scrollbarYRail).marginTop)+Sr(Cn(this.scrollbarYRail).marginBottom),Sn(this.scrollbarXRail,{display:"none"}),Sn(this.scrollbarYRail,{display:"none"}),Ls(this),ws(this,"top",0,!1,!0),ws(this,"left",0,!1,!0),Sn(this.scrollbarXRail,{display:""}),Sn(this.scrollbarYRail,{display:""}))},Wi.prototype.onScroll=function(je){this.isAlive&&(Ls(this),ws(this,"top",this.element.scrollTop-this.lastScrollTop),ws(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Wi.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),sr(this.scrollbarX),sr(this.scrollbarY),sr(this.scrollbarXRail),sr(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Wi.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(je){return!je.match(/^ps([-_].+|)$/)}).join(" ")};const Es=Wi;var Io=r(3726),ga=r(152);let tr=(()=>{class Y{constructor(){this._elementRef=(0,a.WQX)(a.aKT),this._platform=(0,a.WQX)(Mt.OD),this.angorScrollbar=!0,this._ps=null,this._unsubscribeAll=new C.B}get elementRef(){return this._elementRef}get ps(){return this._ps}ngOnChanges(re){"angorScrollbar"in re&&(this.angorScrollbar=(0,$t.he)(re.angorScrollbar.currentValue),this.angorScrollbar?this._initScrollbar():this._destroyScrollbar()),"angorScrollbarOptions"in re&&(this._options=(0,un.A)({},this._options,re.angorScrollbarOptions.currentValue),this._reinitializeScrollbar())}ngOnInit(){(0,Io.R)(window,"resize").pipe((0,K.Q)(this._unsubscribeAll),(0,ga.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(re="scroll"){return new Oe(this._elementRef.nativeElement[`${re}Left`],this._elementRef.nativeElement[`${re}Top`],this._elementRef.nativeElement[`${re}Width`],this._elementRef.nativeElement[`${re}Height`])}position(re=!1){return!re&&this._ps?new pt(this._ps.reach.x||0,this._ps.reach.y||0):new pt(this._elementRef.nativeElement.scrollLeft,this._elementRef.nativeElement.scrollTop)}scrollTo(re,Xe,wt){null==Xe&&null==wt?this.animateScrolling("scrollTop",re,wt):(null!=re&&this.scrollToX(re,wt),null!=Xe&&this.scrollToY(Xe,wt))}scrollToX(re,Xe){this.animateScrolling("scrollLeft",re,Xe)}scrollToY(re,Xe){this.animateScrolling("scrollTop",re,Xe)}scrollToTop(re=0,Xe){this.animateScrolling("scrollTop",re,Xe)}scrollToBottom(re=0,Xe){this.animateScrolling("scrollTop",this._elementRef.nativeElement.scrollHeight-this._elementRef.nativeElement.clientHeight-re,Xe)}scrollToLeft(re=0,Xe){this.animateScrolling("scrollLeft",re,Xe)}scrollToRight(re=0,Xe){this.animateScrolling("scrollLeft",this._elementRef.nativeElement.scrollWidth-this._elementRef.nativeElement.clientWidth-re,Xe)}scrollToElement(re,Xe=0,wt=!1,Ln){const hn=this._elementRef.nativeElement.querySelector(re);if(!hn)return;const ur=hn.getBoundingClientRect(),hr=this._elementRef.nativeElement.getBoundingClientRect();this._elementRef.nativeElement.classList.contains("ps--active-x")&&this._scrollToInAxis(ur.left,hr.left,"scrollLeft",Xe,wt,Ln),this._elementRef.nativeElement.classList.contains("ps--active-y")&&this._scrollToInAxis(ur.top,hr.top,"scrollTop",Xe,wt,Ln)}animateScrolling(re,Xe,wt){this._animation&&window.cancelAnimationFrame(this._animation),!wt||typeof window>"u"?this._elementRef.nativeElement[re]=Xe:Xe!==this._elementRef.nativeElement[re]&&this._smoothScroll(re,Xe,wt)}_initScrollbar(){this._ps||this._platform.ANDROID||this._platform.IOS||!this._platform.isBrowser||(this._ps=new Es(this._elementRef.nativeElement,{...this._options}))}_destroyScrollbar(){this._ps?.destroy(),this._ps=null}_reinitializeScrollbar(){setTimeout(()=>this._destroyScrollbar()),setTimeout(()=>this._initScrollbar())}_scrollToInAxis(re,Xe,wt,Ln,hn,ur){hn&&re<=Xe-Math.abs(Ln)||this.animateScrolling(wt,re-Xe+this._elementRef.nativeElement[wt]+Ln,ur)}_smoothScroll(re,Xe,wt){let Ln=0,hn=this._elementRef.nativeElement[re];const ur=(hn-Xe)/2;let hr=performance.now();const zr=Gi=>{Ln+=Math.PI/(wt/(Gi-hr));const Or=Math.round(Xe+ur+ur*Math.cos(Ln));this._elementRef.nativeElement[re]===hn&&(Ln>=Math.PI?this.animateScrolling(re,Xe,0):(this._elementRef.nativeElement[re]=Or,hn=this._elementRef.nativeElement[re],hr=Gi,this._animation=window.requestAnimationFrame(zr)))};window.requestAnimationFrame(zr)}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275dir=a.FsC({type:Y,selectors:[["","angorScrollbar",""]],inputs:{angorScrollbar:"angorScrollbar",angorScrollbarOptions:"angorScrollbarOptions"},exportAs:["angorScrollbar"],features:[a.OA$]})}}return Y})();var Eo=r(9969),os=r(6969),ks=r(7786),Bs=r(1986);const va=["navigationContent"],Yo=[[["","angorVerticalNavigationHeader",""]],[["","angorVerticalNavigationContentHeader",""]],[["","angorVerticalNavigationFooter",""]]],Ti=["[angorVerticalNavigationHeader]","[angorVerticalNavigationContentHeader]","[angorVerticalNavigationFooter]"],sa=Y=>({wheelPropagation:Y,suppressScrollX:!0}),yl=()=>({wheelPropagation:!1,suppressScrollX:!0});function Qo(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"angor-vertical-navigation-aside-item",10),a.bIt("click",function(){a.eBV(re);const wt=a.XpG(2).$implicit,Ln=a.XpG();return a.Njj(Ln.toggleAside(wt))}),a.k0s()}if(2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)("activeItemId",Xe.activeAsideItemId)("autoCollapse",Xe.autoCollapse)("skipChildren",!0)}}function aa(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",8),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function ao(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function ss(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",8),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function _o(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function Zo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",8),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function _i(Y,je){if(1&Y&&a.DNE(0,Qo,1,5,"angor-vertical-navigation-aside-item",7)(1,aa,1,2,"angor-vertical-navigation-basic-item",8)(2,ao,1,3,"angor-vertical-navigation-collapsable-item",9)(3,ss,1,2,"angor-vertical-navigation-divider-item",8)(4,_o,1,3,"angor-vertical-navigation-group-item",9)(5,Zo,1,2,"angor-vertical-navigation-spacer-item",8),2&Y){const re=a.XpG().$implicit;a.vxM("aside"===re.type?0:-1),a.R7$(),a.vxM("basic"===re.type?1:-1),a.R7$(),a.vxM("collapsable"===re.type?2:-1),a.R7$(),a.vxM("divider"===re.type?3:-1),a.R7$(),a.vxM("group"===re.type?4:-1),a.R7$(),a.vxM("spacer"===re.type?5:-1)}}function Fa(Y,je){if(1&Y&&a.DNE(0,_i,6,6),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function ko(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-aside-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function Qs(Y,je){if(1&Y&&a.DNE(0,ko,1,3,"angor-vertical-navigation-aside-item",9),2&Y){const re=a.XpG().$implicit,Xe=a.XpG(2);a.vxM("aside"===re.type&&re.id===Xe.activeAsideItemId?0:-1)}}function bl(Y,je){if(1&Y&&a.DNE(0,Qs,1,1),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function Xa(Y,je){if(1&Y&&(a.j41(0,"div",6),a.Z7z(1,bl,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&Y){const re=a.XpG();a.Y8G("angorScrollbarOptions",a.lJ4(5,yl))("@fadeInLeft","left"===re.position)("@fadeInRight","right"===re.position)("@fadeOutLeft","left"===re.position)("@fadeOutRight","right"===re.position),a.R7$(),a.Dyx(re.navigation)}}let Ya=(()=>{class Y{constructor(){this._animationBuilder=(0,a.WQX)(Eo.S6),this._changeDetectorRef=(0,a.WQX)(a.gRc),this._document=(0,a.WQX)(T.qQ),this._elementRef=(0,a.WQX)(a.aKT),this._renderer2=(0,a.WQX)(a.sFG),this._router=(0,a.WQX)(N.Ix),this._scrollStrategyOptions=(0,a.WQX)(os.Tv),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.appearance="default",this.autoCollapse=!0,this.inner=!1,this.mode="side",this.name=this._angorUtilsService.randomId(),this.opened=!0,this.position="left",this.transparentOverlay=!1,this.appearanceChanged=new a.bkB,this.modeChanged=new a.bkB,this.openedChanged=new a.bkB,this.positionChanged=new a.bkB,this.activeAsideItemId=null,this.onCollapsableItemCollapsed=new w.m(1),this.onCollapsableItemExpanded=new w.m(1),this.onRefreshed=new w.m(1),this._animationsEnabled=!1,this._hovered=!1,this._scrollStrategy=this._scrollStrategyOptions.block(),this._unsubscribeAll=new C.B,this._handleAsideOverlayClick=()=>{this.closeAside()},this._handleOverlayClick=()=>{this.close()}}get classList(){return{"angor-vertical-navigation-animations-enabled":this._animationsEnabled,[`angor-vertical-navigation-appearance-${this.appearance}`]:!0,"angor-vertical-navigation-hover":this._hovered,"angor-vertical-navigation-inner":this.inner,"angor-vertical-navigation-mode-over":"over"===this.mode,"angor-vertical-navigation-mode-side":"side"===this.mode,"angor-vertical-navigation-opened":this.opened,"angor-vertical-navigation-position-left":"left"===this.position,"angor-vertical-navigation-position-right":"right"===this.position}}get styleList(){return{visibility:this.opened?"visible":"hidden"}}set angorScrollbarDirectives(re){this._angorScrollbarDirectives=re,0!==re.length&&(this._angorScrollbarDirectivesSubscription&&this._angorScrollbarDirectivesSubscription.unsubscribe(),this._angorScrollbarDirectivesSubscription=(0,ks.h)(this.onCollapsableItemCollapsed,this.onCollapsableItemExpanded).pipe((0,K.Q)(this._unsubscribeAll),(0,Bs.c)(250)).subscribe(()=>{re.forEach(Xe=>{Xe.update()})}))}_onMouseenter(){this._enableAnimations(),this._hovered=!0}_onMouseleave(){this._enableAnimations(),this._hovered=!1}ngOnChanges(re){if("appearance"in re&&this.appearanceChanged.next(re.appearance.currentValue),"inner"in re&&(this.inner=(0,$t.he)(re.inner.currentValue)),"mode"in re){const Xe=re.mode.currentValue,wt=re.mode.previousValue;this._disableAnimations(),"over"===wt&&"side"===Xe&&this._hideOverlay(),"side"===wt&&"over"===Xe&&(this.closeAside(),this.opened&&this._showOverlay()),this.modeChanged.next(Xe),setTimeout(()=>{this._enableAnimations()},500)}"navigation"in re&&this._changeDetectorRef.markForCheck(),"opened"in re&&(this.opened=(0,$t.he)(re.opened.currentValue),this._toggleOpened(this.opened)),"position"in re&&this.positionChanged.next(re.position.currentValue),"transparentOverlay"in re&&(this.transparentOverlay=(0,$t.he)(re.transparentOverlay.currentValue))}ngOnInit(){""===this.name&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this),this._router.events.pipe((0,Ai.p)(re=>re instanceof N.wF),(0,K.Q)(this._unsubscribeAll)).subscribe(()=>{"over"===this.mode&&this.opened&&this.close(),"side"===this.mode&&this.activeAsideItemId&&this.closeAside()})}ngAfterViewInit(){this._mutationObserver=new MutationObserver(re=>{re.forEach(Xe=>{const wt=Xe.target;if("class"===Xe.attributeName)if(wt.classList.contains("cdk-global-scrollblock")){const Ln=parseInt(wt.style.top,10);this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",`${Math.abs(Ln)}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(re=>{re.isEnabled()&&re.scrollToElement(".angor-vertical-navigation-item-active",-120,!0)});else{const re=this._navigationContentEl.nativeElement.querySelector(".angor-vertical-navigation-item-active");re&&re.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(re){re.disabled||!re.id||(this.activeAsideItemId=re.id,this._showAsideOverlay(),this._changeDetectorRef.markForCheck())}closeAside(){this.activeAsideItemId=null,this._hideAsideOverlay(),this._changeDetectorRef.markForCheck()}toggleAside(re){this.activeAsideItemId===re.id?this.closeAside():this.openAside(re)}trackByFn(re,Xe){return Xe.id||re}_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,Eo.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,Eo.iF)({opacity:1}))]).create(this._overlay),this._player.play(),this._overlay.addEventListener("click",this._handleOverlayClick))}_hideOverlay(){this._overlay&&(this._player=this._animationBuilder.build([(0,Eo.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,Eo.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,Eo.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,Eo.iF)({opacity:1}))]).create(this._asideOverlay),this._player.play(),this._asideOverlay.addEventListener("click",this._handleAsideOverlayClick))}_hideAsideOverlay(){this._asideOverlay&&(this._player=this._animationBuilder.build([(0,Eo.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,Eo.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(re){this.opened=re,this._enableAnimations(),"over"===this.mode&&(this.opened?this._showOverlay():this._hideOverlay()),this.openedChanged.next(re)}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation"]],viewQuery:function(Xe,wt){if(1&Xe&&(a.GBs(va,5),a.GBs(tr,5)),2&Xe){let Ln;a.mGM(Ln=a.lsd())&&(wt._navigationContentEl=Ln.first),a.mGM(Ln=a.lsd())&&(wt.angorScrollbarDirectives=Ln)}},hostVars:4,hostBindings:function(Xe,wt){1&Xe&&a.bIt("mouseenter",function(){return wt._onMouseenter()})("mouseleave",function(){return wt._onMouseleave()}),2&Xe&&(a.Aen(wt.styleList),a.HbH(wt.classList))},inputs:{appearance:"appearance",autoCollapse:"autoCollapse",inner:"inner",mode:"mode",name:"name",navigation:"navigation",opened:"opened",position:"position",transparentOverlay:"transparentOverlay"},outputs:{appearanceChanged:"appearanceChanged",modeChanged:"modeChanged",openedChanged:"openedChanged",positionChanged:"positionChanged"},exportAs:["angorVerticalNavigation"],features:[a.OA$],ngContentSelectors:Ti,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(Xe,wt){1&Xe&&(a.NAR(Yo),a.j41(0,"div",1)(1,"div",2),a.SdG(2),a.k0s(),a.j41(3,"div",3,0)(5,"div",4),a.SdG(6,1),a.k0s(),a.Z7z(7,Fa,1,1,null,null,wt.trackByFn,!0),a.k0s(),a.j41(9,"div",5),a.SdG(10,2),a.k0s()(),a.DNE(11,Xa,3,6,"div",6)),2&Xe&&(a.R7$(3),a.Y8G("angorScrollbarOptions",a.eq3(2,sa,wt.inner)),a.R7$(4),a.Dyx(wt.navigation),a.R7$(4),a.vxM(wt.activeAsideItemId?11:-1))},dependencies:[tr,et,Xr,so,_t,ci,Bt],styles:[':root{--angor-vertical-navigation-width: 280px}angor-vertical-navigation{position:sticky;display:flex;flex-direction:column;flex:1 0 auto;top:0;width:var(--angor-vertical-navigation-width);min-width:var(--angor-vertical-navigation-width);max-width:var(--angor-vertical-navigation-width);height:100vh;min-height:100vh;max-height:100vh;z-index:200}angor-vertical-navigation.angor-vertical-navigation-animations-enabled{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:visibility,margin-left,margin-right,transform,width,max-width,min-width}angor-vertical-navigation.angor-vertical-navigation-animations-enabled .angor-vertical-navigation-wrapper{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:width,max-width,min-width}angor-vertical-navigation.angor-vertical-navigation-mode-over{position:fixed;top:0;bottom:0}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-over{left:0;transform:translate3d(-100%,0,0)}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-over.angor-vertical-navigation-opened{transform:translateZ(0)}angor-vertical-navigation.angor-vertical-navigation-position-left .angor-vertical-navigation-wrapper{left:0}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-over{right:0;transform:translate3d(100%,0,0)}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-over.angor-vertical-navigation-opened{transform:translateZ(0)}angor-vertical-navigation.angor-vertical-navigation-position-right .angor-vertical-navigation-wrapper{right:0}angor-vertical-navigation.angor-vertical-navigation-inner{position:relative;width:auto;min-width:0;max-width:none;height:auto;min-height:0;max-height:none;box-shadow:none}angor-vertical-navigation.angor-vertical-navigation-inner .angor-vertical-navigation-wrapper{position:relative;overflow:visible;height:auto}angor-vertical-navigation.angor-vertical-navigation-inner .angor-vertical-navigation-wrapper .angor-vertical-navigation-content{overflow:visible!important}angor-vertical-navigation .angor-vertical-navigation-wrapper{position:absolute;display:flex;flex:1 1 auto;flex-direction:column;top:0;bottom:0;width:100%;height:100%;overflow:hidden;z-index:10;background:inherit;box-shadow:inset -1px 0 0 var(--angor-border)}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content{flex:1 1 auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-divider-item{margin:24px 0}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-group-item{margin-top:24px}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper{position:absolute;display:flex;flex:1 1 auto;flex-direction:column;top:0;bottom:0;left:var(--angor-vertical-navigation-width);width:var(--angor-vertical-navigation-width);height:100%;z-index:5;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;transition-duration:.4s;transition-property:left,right;transition-timing-function:cubic-bezier(.25,.8,.25,1);background:inherit}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper>angor-vertical-navigation-aside-item{padding:24px 0}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper>angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper{display:none!important}angor-vertical-navigation.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-width)}angor-vertical-navigation angor-vertical-navigation-aside-item,angor-vertical-navigation angor-vertical-navigation-basic-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item,angor-vertical-navigation angor-vertical-navigation-divider-item,angor-vertical-navigation angor-vertical-navigation-group-item,angor-vertical-navigation angor-vertical-navigation-spacer-item{display:flex;flex-direction:column;flex:1 0 auto;-webkit-user-select:none;user-select:none}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{position:relative;display:flex;align-items:center;justify-content:flex-start;padding:10px 16px;font-size:13px;font-weight:500;line-height:20px;text-decoration:none;border-radius:6px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled{cursor:default;opacity:.4}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin-right:16px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{font-size:11px;line-height:1.5}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge{margin-left:auto}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;white-space:nowrap;height:20px}angor-vertical-navigation angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{margin:0 12px}angor-vertical-navigation angor-vertical-navigation-aside-item,angor-vertical-navigation angor-vertical-navigation-basic-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item{margin-bottom:4px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item{cursor:pointer}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge+.angor-vertical-navigation-item-arrow{margin-left:8px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{height:20px;line-height:20px;margin-left:auto;transition:transform .3s cubic-bezier(.25,.8,.25,1),color 375ms cubic-bezier(.25,.8,.25,1)}angor-vertical-navigation angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{transform:rotate(90deg)}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:first-child{margin-top:6px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:last-child{padding-bottom:6px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:last-child>.angor-vertical-navigation-item-children>*:last-child{padding-bottom:0}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding:10px 16px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children{overflow:hidden}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:56px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:72px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:88px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:104px}angor-vertical-navigation angor-vertical-navigation-divider-item{margin:12px 0}angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper{height:1px;box-shadow:0 1px}angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{display:none!important}angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}angor-vertical-navigation angor-vertical-navigation-spacer-item{margin:6px 0}.angor-vertical-navigation-overlay{position:absolute;inset:0;z-index:170;opacity:0;background-color:#0009}.angor-vertical-navigation-overlay+.angor-vertical-navigation-aside-overlay{background-color:transparent}.angor-vertical-navigation-aside-overlay{position:absolute;inset:0;z-index:169;opacity:0;background-color:#0000004d}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{color:currentColor}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{color:currentColor;opacity:.6}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{color:currentColor;opacity:.8}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{color:currentColor;opacity:.5}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced{background-color:rgb(3 33 40 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .05}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *){background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .12}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover{background-color:rgb(3 33 40 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .05}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *){background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .12}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{--tw-text-opacity: 1;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1));opacity:1}angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title:is(.dark *){--tw-text-opacity: 1;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))}:root{--angor-vertical-navigation-compact-width: 112px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact{width:var(--angor-vertical-navigation-compact-width);min-width:var(--angor-vertical-navigation-compact-width);max-width:var(--angor-vertical-navigation-compact-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-compact-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-compact-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-compact-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper{margin:4px 8px 0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{flex-direction:column;justify-content:center;padding:12px;border-radius:6px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{margin-top:8px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{font-size:12px;font-weight:500;text-align:center;line-height:16px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{display:none!important}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge{position:absolute;top:12px;left:64px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item>angor-vertical-navigation-collapsable-item,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item>angor-vertical-navigation-collapsable-item{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-compact-width)}:root{--angor-vertical-navigation-width: 280px;--angor-vertical-navigation-dense-width: 80px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over){width:var(--angor-vertical-navigation-dense-width);min-width:var(--angor-vertical-navigation-dense-width);max-width:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-dense-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-dense-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-hover .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{width:calc(var(--angor-vertical-navigation-dense-width) - 24px);min-width:calc(var(--angor-vertical-navigation-dense-width) - 24px);max-width:calc(var(--angor-vertical-navigation-dense-width) - 24px)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item:first-of-type{margin-top:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{padding:10px 16px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{white-space:nowrap;opacity:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:before{content:"";position:absolute;top:20px;width:23px;border-top-width:2px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper{width:var(--angor-vertical-navigation-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{width:calc(var(--angor-vertical-navigation-width) - 24px);min-width:calc(var(--angor-vertical-navigation-width) - 24px);max-width:calc(var(--angor-vertical-navigation-width) - 24px)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{white-space:nowrap;animation:removeWhiteSpaceNoWrap 1ms linear .35s;animation-fill-mode:forwards}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-width)}@keyframes removeWhiteSpaceNoWrap{0%{white-space:nowrap}99%{white-space:nowrap}to{white-space:normal}}:root{--angor-vertical-navigation-thin-width: 80px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin{width:var(--angor-vertical-navigation-thin-width);min-width:var(--angor-vertical-navigation-thin-width);max-width:var(--angor-vertical-navigation-thin-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-thin-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-thin-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-thin-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item{flex-direction:column;justify-content:center;height:64px;min-height:64px;max-height:64px;padding:0 16px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper{display:flex;align-items:center;justify-content:center}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{justify-content:center;padding:12px;border-radius:4px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge-content,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge-content,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-collapsable-item{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-thin-width)}\n'],encapsulation:2,data:{animation:i.F},changeDetection:0})}}return Y})()},9097:(o,s,r)=>{"use strict";r.d(s,{t:()=>a});const a=new(r(4438).nKC)("ANGOR_APP_CONFIG")},881:(o,s,r)=>{"use strict";r.d(s,{P:()=>w});var i=r(9097),a=r(4438),c=r(2401),y=r(4412);let w=(()=>{class C{constructor(){this._defaultConfig=(0,a.WQX)(i.t),this._configSubject=new y.t(this._defaultConfig)}get config$(){return this._configSubject.asObservable()}set config(S){const A=(0,c.A)({},this._configSubject.getValue(),S);this._configSubject.next(A)}reset(){this._configSubject.next(this._defaultConfig)}static{this.\u0275fac=function(A){return new(A||C)}}static{this.\u0275prov=a.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},9979:(o,s,r)=>{"use strict";r.d(s,{m:()=>pe});var i=r(177),a=r(4438),c=r(8834),y=r(5351),w=r(9213);const C=(Te,xe,Re,Me,Ce,le,ae,Ie)=>({"bg-primary-100 text-primary-600 dark:bg-primary-600 dark:text-primary-50":Te,"bg-accent-100 text-accent-600 dark:bg-accent-600 dark:text-accent-50":xe,"bg-warn-100 text-warn-600 dark:bg-warn-600 dark:text-warn-50":Re,"bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-50":Me,"bg-blue-100 text-blue-600 dark:bg-blue-600 dark:text-blue-50":Ce,"bg-green-100 text-green-500 dark:bg-green-500 dark:text-green-50":le,"bg-amber-100 text-amber-500 dark:bg-amber-500 dark:text-amber-50":ae,"bg-red-100 text-red-600 dark:bg-red-600 dark:text-red-50":Ie});function T(Te,xe){1&Te&&(a.j41(0,"div",1)(1,"button",6),a.nrm(2,"mat-icon",7),a.k0s()()),2&Te&&(a.R7$(),a.Y8G("matDialogClose",void 0),a.R7$(),a.Y8G("svgIcon","heroicons_outline:x-mark"))}function S(Te,xe){if(1&Te&&(a.j41(0,"div",3),a.nrm(1,"mat-icon",8),a.k0s()),2&Te){const Re=a.XpG();a.Y8G("ngClass",a.lV(2,C,"primary"===Re.data.icon.color,"accent"===Re.data.icon.color,"warn"===Re.data.icon.color,"basic"===Re.data.icon.color,"info"===Re.data.icon.color,"success"===Re.data.icon.color,"warning"===Re.data.icon.color,"error"===Re.data.icon.color)),a.R7$(),a.Y8G("svgIcon",Re.data.icon.name)}}function A(Te,xe){if(1&Te&&a.nrm(0,"div",9),2&Te){const Re=a.XpG(2);a.Y8G("innerHTML",Re.data.title,a.npT)}}function I(Te,xe){if(1&Te&&a.nrm(0,"div",10),2&Te){const Re=a.XpG(2);a.Y8G("innerHTML",Re.data.message,a.npT)}}function N(Te,xe){if(1&Te&&(a.j41(0,"div",4),a.DNE(1,A,1,1,"div",9)(2,I,1,1,"div",10),a.k0s()),2&Te){const Re=a.XpG();a.R7$(),a.vxM(Re.data.title?1:-1),a.R7$(),a.vxM(Re.data.message?2:-1)}}function K(Te,xe){if(1&Te&&(a.j41(0,"button",11),a.EFF(1),a.k0s()),2&Te){const Re=a.XpG(2);a.Y8G("matDialogClose","cancelled"),a.R7$(),a.SpI(" ",Re.data.actions.cancel.label," ")}}function Z(Te,xe){if(1&Te&&(a.j41(0,"button",12),a.EFF(1),a.k0s()),2&Te){const Re=a.XpG(2);a.Y8G("color",Re.data.actions.confirm.color)("matDialogClose","confirmed"),a.R7$(),a.SpI(" ",Re.data.actions.confirm.label," ")}}function ne(Te,xe){if(1&Te&&(a.j41(0,"div",5),a.DNE(1,K,2,2,"button",11)(2,Z,2,3,"button",12),a.k0s()),2&Te){const Re=a.XpG();a.R7$(),a.vxM(Re.data.actions.cancel.show?1:-1),a.R7$(),a.vxM(Re.data.actions.confirm.show?2:-1)}}let be=(()=>{class Te{constructor(){this.data=(0,a.WQX)(y.Vh)}static{this.\u0275fac=function(Me){return new(Me||Te)}}static{this.\u0275cmp=a.VBU({type:Te,selectors:[["angor-confirmation-dialog"]],decls:6,vars:4,consts:[[1,"relative","flex","h-full","w-full","flex-col"],[1,"absolute","right-0","top-0","pr-4","pt-4"],[1,"flex","flex-auto","flex-col","items-center","p-8","pb-6","sm:flex-row","sm:items-start","sm:pb-8"],[1,"flex","h-10","w-10","flex-0","items-center","justify-center","rounded-full","sm:mr-4",3,"ngClass"],[1,"mt-4","flex","flex-col","items-center","space-y-1","text-center","sm:mt-0","sm:items-start","sm:pr-8","sm:text-left"],[1,"flex","items-center","justify-center","space-x-3","bg-gray-50","px-6","py-4","dark:bg-black","dark:bg-opacity-10","sm:justify-end"],["mat-icon-button","",3,"matDialogClose"],[1,"text-secondary",3,"svgIcon"],[1,"text-current",3,"svgIcon"],[1,"text-xl","font-medium","leading-6",3,"innerHTML"],[1,"text-secondary",3,"innerHTML"],["mat-stroked-button","",3,"matDialogClose"],["mat-flat-button","",3,"color","matDialogClose"]],template:function(Me,Ce){1&Me&&(a.j41(0,"div",0),a.DNE(1,T,3,2,"div",1),a.j41(2,"div",2),a.DNE(3,S,2,11,"div",3)(4,N,3,2,"div",4),a.k0s(),a.DNE(5,ne,3,2,"div",5),a.k0s()),2&Me&&(a.R7$(),a.vxM(Ce.data.dismissible?1:-1),a.R7$(2),a.vxM(Ce.data.icon.show?3:-1),a.R7$(),a.vxM(Ce.data.title||Ce.data.message?4:-1),a.R7$(),a.vxM(Ce.data.actions.confirm.show||Ce.data.actions.cancel.show?5:-1))},dependencies:[c.Hl,c.$z,c.iY,y.hM,y.tx,w.m_,w.An,i.YU],styles:["@media (min-width: 960px){.angor-confirmation-dialog-panel{width:32rem}}.angor-confirmation-dialog-panel .mat-mdc-dialog-container .mat-mdc-dialog-surface{padding:0!important}\n"],encapsulation:2})}}return Te})();var me=r(2401);let pe=(()=>{class Te{constructor(){this._matDialog=(0,a.WQX)(y.bZ),this._defaultConfig={title:"Confirm action",message:"Are you sure you want to confirm this action?",icon:{show:!0,name:"heroicons_outline:exclamation-triangle",color:"warn"},actions:{confirm:{show:!0,label:"Confirm",color:"warn"},cancel:{show:!0,label:"Cancel"}},dismissible:!1}}open(Re={}){const Me=(0,me.A)({},this._defaultConfig,Re);return this._matDialog.open(be,{autoFocus:!1,disableClose:!Me.dismissible,data:Me,panelClass:"angor-confirmation-dialog-panel"})}static{this.\u0275fac=function(Me){return new(Me||Te)}}static{this.\u0275prov=a.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})()},4977:(o,s,r)=>{"use strict";r.d(s,{l:()=>S});var i=r(881),a=r(9327),c=r(4438),y=r(7680),w=r(2771),C=r(6354),T=r(5558);let S=(()=>{class A{constructor(){this._breakpointObserver=(0,c.WQX)(a.QP),this._angorConfigService=(0,c.WQX)(i.P),this._onMediaChange=new w.m(1),this._angorConfigService.config$.pipe((0,C.T)(N=>(0,y.A)(Object.entries(N.screens).map(([K,Z])=>[K,`(min-width: ${Z})`]))),(0,T.n)(N=>this._breakpointObserver.observe(Object.values(N)).pipe((0,C.T)(K=>{const Z=[],ne={},be=Object.entries(K.breakpoints).filter(([me,pe])=>pe)??[];for(const[me]of be){const pe=Object.entries(N).find(([Te,xe])=>xe===me)[0];pe&&(Z.push(pe),ne[pe]=me)}this._onMediaChange.next({matchingAliases:Z,matchingQueries:ne})})))).subscribe()}get onMediaChange$(){return this._onMediaChange.asObservable()}onMediaQueryChange$(N){return this._breakpointObserver.observe(N)}static{this.\u0275fac=function(K){return new(K||A)}}static{this.\u0275prov=c.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},7209:(o,s,r)=>{"use strict";r.d(s,{Q:()=>a});var i=r(4438);let a=(()=>{class c{get exactMatchOptions(){return{paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"}}get subsetMatchOptions(){return{paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"}}randomId(w=10){let T="";for(let S=0;S<10;S++)T+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return T}static{this.\u0275fac=function(C){return new(C||c)}}static{this.\u0275prov=i.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},2332:(o,s,r)=>{"use strict";r.d(s,{v:()=>y});var i=r(5373),a=r(1413),c=r(4438);let y=(()=>{class w{constructor(){this.publicKeySubject=new a.B,this.previousPublicKey=null,this.initializeNostrLogin(),this.setupEventListeners()}initializeNostrLogin(){(0,i.Ts)({theme:"ocean",noBanner:!0,title:"Angor Hub",onAuth:(T,S)=>{this.handleAuthSuccess(T,S)}})}setupEventListeners(){document.addEventListener("nlAuth",this.handleNlAuthEvent.bind(this)),document.addEventListener("nlLogout",this.handleNlLogoutEvent.bind(this)),document.addEventListener("nlDarkMode",this.handleNlDarkModeEvent.bind(this)),document.addEventListener("nlLaunch",this.handleNlLaunchEvent.bind(this))}handleNlLogoutEvent(){console.log("Logout event detected"),this.handleLogout()}handleNlAuthEvent(T){const{type:S,pubkey:A,options:I}=T.detail;switch(S){case"login":console.log("User logged in:",A),this.handleAuthSuccess(A,I);break;case"signup":console.log("User signed up:",A),this.handleSignupSuccess(A,I);break;case"logout":console.log("User logged out"),this.handleLogout();break;case"switch-account":console.log("User switched account:",A),this.handleAccountSwitch(A,I);break;default:console.warn("Unknown nlAuth event type:",S)}this.previousPublicKey&&this.previousPublicKey!==A&&(console.log("Account switched to:",A),this.handleAccountSwitch(A,I)),this.previousPublicKey=A}handleAuthSuccess(T,S){console.log("Authenticated successfully with public key:",T),this.publicKeySubject.next(T)}handleSignupSuccess(T,S){console.log("Signup successful with public key:",T),this.publicKeySubject.next(T)}handleAccountSwitch(T,S){console.log("Account switched to:",T),this.publicKeySubject.next(T),window.location.reload()}handleLogout(){console.log("Logged out"),this.publicKeySubject.next("")}handleNlDarkModeEvent(T){const S=T.detail;console.log("Dark mode changed to:",S?"enabled":"disabled"),this.updateDarkMode(S)}handleNlLaunchEvent(T){const S=T.detail||"welcome";console.log(`Launching Nostr login screen: ${S}`),this.launchScreen(S)}launchScreen(T){(0,i.ql)(T)}updateDarkMode(T){document.body.classList.toggle("dark-mode",T),console.log("Dark mode is now "+(T?"enabled":"disabled"))}getPublicKeyObservable(){return this.publicKeySubject.asObservable()}launchWelcomeScreen(){(0,i.ql)("welcome")}launchSignupScreen(){(0,i.ql)("welcome-signup")}launchLoginScreen(){(0,i.ql)("welcome-login")}switchAccount(){document.dispatchEvent(new CustomEvent("nlLaunch",{detail:"switch-account"}))}logout(){document.dispatchEvent(new Event("nlLogout"))}toggleDarkMode(T){document.dispatchEvent(new CustomEvent("nlDarkMode",{detail:T}))}static{this.\u0275fac=function(S){return new(S||w)}}static{this.\u0275prov=c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}}return w})()},6231:(o,s,r)=>{"use strict";r.d(s,{b:()=>T});var i=r(467),a=r(4438),c=r(5462),y=r(4412),w=r(1413),C=r(177);let T=(()=>{class S{constructor(I,N){this.document=I,this.platformId=N,this.pool=new c.lo,this.relays=[],this.maxRetries=10,this.retryDelay=15e3,this.eventSubject=new y.t(null),this.relaysSubject=new y.t([]),this.destroy$=new w.B,this.initializeRelays(),this.setupVisibilityHandling()}initializeRelays(){this.relays=this.loadRelaysFromLocalStorage(),this.connectToRelays(),this.relaysSubject.next(this.relays)}loadRelaysFromLocalStorage(){const I=JSON.parse(localStorage.getItem("nostrRelays")||"[]");return I.length>0?I.map(K=>({...K,connected:!1,retries:0,retryTimeout:null,ws:void 0})):[{url:"wss://relay.primal.net",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://nos.lol",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay2.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"}]}saveRelaysToLocalStorage(){const I=this.relays.map(N=>({url:N.url,accessType:N.accessType,connected:N.connected,retries:N.retries,retryTimeout:N.retryTimeout}));localStorage.setItem("nostrRelays",JSON.stringify(I)),this.relaysSubject.next(this.relays)}connectToRelay(I){I.connected||(I.ws=new WebSocket(I.url),I.ws.onopen=()=>{I.connected=!0,I.retries=0,clearTimeout(I.retryTimeout),this.saveRelaysToLocalStorage()},I.ws.onerror=()=>this.handleRelayError(I),I.ws.onclose=()=>{I.connected=!1,this.handleRelayError(I)},I.ws.onmessage=({data:N})=>{try{const K=JSON.parse("string"==typeof N?N:N.toString("utf-8"));this.eventSubject.next(K)}catch(K){console.warn("Error parsing WebSocket message:",K)}})}handleRelayError(I){I.retries>=this.maxRetries?console.warn(`Max retries reached for relay: ${I.url}. No further attempts will be made.`):(I.retries++,I.retryTimeout=setTimeout(()=>this.connectToRelay(I),this.retryDelay*I.retries))}connectToRelays(){this.relays.forEach(I=>!I.connected&&this.connectToRelay(I))}ensureConnectedRelays(){var I=this;return(0,i.A)(function*(){return I.connectToRelays(),new Promise(N=>{const K=setInterval(()=>{I.getConnectedRelays().length>0&&(clearInterval(K),N())},1e3)})})()}setupVisibilityHandling(){(0,C.UE)(this.platformId)&&(this.document.addEventListener("visibilitychange",()=>{"visible"===this.document.visibilityState&&this.connectToRelays()}),window.addEventListener("beforeunload",()=>{this.relays.forEach(I=>I.ws?.close())}))}getConnectedRelays(){return this.relays.filter(I=>I.connected).map(I=>I.url)}getRelays(){return this.relaysSubject.asObservable()}publishEventToWriteRelays(I){var N=this;return(0,i.A)(function*(){const K=N.relays.filter(Z=>["write","read-write"].includes(Z.accessType)&&Z.connected);if(!K.length)throw new Error("No connected write relays available");try{return yield Promise.any(K.map(Z=>N.pool.publish([Z.url],I))),N.eventSubject.next(I),I}catch(Z){throw console.error("Failed to publish event to relays:",Z),Z}})()}addRelay(I,N="read-write"){if(!this.relays.some(K=>K.url===I)){const K={url:I,connected:!1,retries:0,retryTimeout:null,accessType:N};this.relays.push(K),this.connectToRelay(K),this.saveRelaysToLocalStorage()}}removeRelay(I){const N=this.relays.find(K=>K.url===I);N&&(N.ws?.close(),clearTimeout(N.retryTimeout)),this.relays=this.relays.filter(K=>K.url!==I),this.saveRelaysToLocalStorage()}removeAllCustomRelays(){const I=["wss://relay.angor.io","wss://relay2.angor.io"];this.relays.forEach(N=>{I.includes(N.url)||(N.ws?.close(),clearTimeout(N.retryTimeout))}),this.relays=this.relays.filter(N=>I.includes(N.url)),this.saveRelaysToLocalStorage()}updateRelayAccessType(I,N){const K=this.relays.find(Z=>Z.url===I);K&&(K.accessType=N,this.saveRelaysToLocalStorage())}getPool(){return this.pool}getEventStream(){return this.eventSubject.asObservable()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.relays.forEach(I=>I.ws?.close())}static{this.\u0275fac=function(N){return new(N||S)(a.KVO(C.qQ,8),a.KVO(a.Agw))}}static{this.\u0275prov=a.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},6324:(o,s,r)=>{"use strict";r.d(s,{A:()=>Wa});var i={};r.r(i),r.d(i,{OG:()=>Va,My:()=>xa,Ph:()=>Ar,lX:()=>So,Id:()=>Fr,fg:()=>Di,qj:()=>Po,aT:()=>Gn,lq:()=>no,z:()=>$o,Q5:()=>ca});var a=r(467),c=r(5766),y=r(7292),w=r(3838),C=r(5462);function A(R){if(!Number.isSafeInteger(R)||R<0)throw new Error(`Wrong positive integer: ${R}`)}function K(R,...U){if(!function N(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name}(R))throw new Error("Expected Uint8Array");if(U.length>0&&!U.includes(R.length))throw new Error(`Expected Uint8Array of length ${U}, not of length=${R.length}`)}function Z(R){if("function"!=typeof R||"function"!=typeof R.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");A(R.outputLen),A(R.blockLen)}function ne(R,U=!0){if(R.destroyed)throw new Error("Hash instance has been destroyed");if(U&&R.finished)throw new Error("Hash#digest() has already been called")}r(6391),"abandon\nability\nable\nabout\nabove\nabsent\nabsorb\nabstract\nabsurd\nabuse\naccess\naccident\naccount\naccuse\nachieve\nacid\nacoustic\nacquire\nacross\nact\naction\nactor\nactress\nactual\nadapt\nadd\naddict\naddress\nadjust\nadmit\nadult\nadvance\nadvice\naerobic\naffair\nafford\nafraid\nagain\nage\nagent\nagree\nahead\naim\nair\nairport\naisle\nalarm\nalbum\nalcohol\nalert\nalien\nall\nalley\nallow\nalmost\nalone\nalpha\nalready\nalso\nalter\nalways\namateur\namazing\namong\namount\namused\nanalyst\nanchor\nancient\nanger\nangle\nangry\nanimal\nankle\nannounce\nannual\nanother\nanswer\nantenna\nantique\nanxiety\nany\napart\napology\nappear\napple\napprove\napril\narch\narctic\narea\narena\nargue\narm\narmed\narmor\narmy\naround\narrange\narrest\narrive\narrow\nart\nartefact\nartist\nartwork\nask\naspect\nassault\nasset\nassist\nassume\nasthma\nathlete\natom\nattack\nattend\nattitude\nattract\nauction\naudit\naugust\naunt\nauthor\nauto\nautumn\naverage\navocado\navoid\nawake\naware\naway\nawesome\nawful\nawkward\naxis\nbaby\nbachelor\nbacon\nbadge\nbag\nbalance\nbalcony\nball\nbamboo\nbanana\nbanner\nbar\nbarely\nbargain\nbarrel\nbase\nbasic\nbasket\nbattle\nbeach\nbean\nbeauty\nbecause\nbecome\nbeef\nbefore\nbegin\nbehave\nbehind\nbelieve\nbelow\nbelt\nbench\nbenefit\nbest\nbetray\nbetter\nbetween\nbeyond\nbicycle\nbid\nbike\nbind\nbiology\nbird\nbirth\nbitter\nblack\nblade\nblame\nblanket\nblast\nbleak\nbless\nblind\nblood\nblossom\nblouse\nblue\nblur\nblush\nboard\nboat\nbody\nboil\nbomb\nbone\nbonus\nbook\nboost\nborder\nboring\nborrow\nboss\nbottom\nbounce\nbox\nboy\nbracket\nbrain\nbrand\nbrass\nbrave\nbread\nbreeze\nbrick\nbridge\nbrief\nbright\nbring\nbrisk\nbroccoli\nbroken\nbronze\nbroom\nbrother\nbrown\nbrush\nbubble\nbuddy\nbudget\nbuffalo\nbuild\nbulb\nbulk\nbullet\nbundle\nbunker\nburden\nburger\nburst\nbus\nbusiness\nbusy\nbutter\nbuyer\nbuzz\ncabbage\ncabin\ncable\ncactus\ncage\ncake\ncall\ncalm\ncamera\ncamp\ncan\ncanal\ncancel\ncandy\ncannon\ncanoe\ncanvas\ncanyon\ncapable\ncapital\ncaptain\ncar\ncarbon\ncard\ncargo\ncarpet\ncarry\ncart\ncase\ncash\ncasino\ncastle\ncasual\ncat\ncatalog\ncatch\ncategory\ncattle\ncaught\ncause\ncaution\ncave\nceiling\ncelery\ncement\ncensus\ncentury\ncereal\ncertain\nchair\nchalk\nchampion\nchange\nchaos\nchapter\ncharge\nchase\nchat\ncheap\ncheck\ncheese\nchef\ncherry\nchest\nchicken\nchief\nchild\nchimney\nchoice\nchoose\nchronic\nchuckle\nchunk\nchurn\ncigar\ncinnamon\ncircle\ncitizen\ncity\ncivil\nclaim\nclap\nclarify\nclaw\nclay\nclean\nclerk\nclever\nclick\nclient\ncliff\nclimb\nclinic\nclip\nclock\nclog\nclose\ncloth\ncloud\nclown\nclub\nclump\ncluster\nclutch\ncoach\ncoast\ncoconut\ncode\ncoffee\ncoil\ncoin\ncollect\ncolor\ncolumn\ncombine\ncome\ncomfort\ncomic\ncommon\ncompany\nconcert\nconduct\nconfirm\ncongress\nconnect\nconsider\ncontrol\nconvince\ncook\ncool\ncopper\ncopy\ncoral\ncore\ncorn\ncorrect\ncost\ncotton\ncouch\ncountry\ncouple\ncourse\ncousin\ncover\ncoyote\ncrack\ncradle\ncraft\ncram\ncrane\ncrash\ncrater\ncrawl\ncrazy\ncream\ncredit\ncreek\ncrew\ncricket\ncrime\ncrisp\ncritic\ncrop\ncross\ncrouch\ncrowd\ncrucial\ncruel\ncruise\ncrumble\ncrunch\ncrush\ncry\ncrystal\ncube\nculture\ncup\ncupboard\ncurious\ncurrent\ncurtain\ncurve\ncushion\ncustom\ncute\ncycle\ndad\ndamage\ndamp\ndance\ndanger\ndaring\ndash\ndaughter\ndawn\nday\ndeal\ndebate\ndebris\ndecade\ndecember\ndecide\ndecline\ndecorate\ndecrease\ndeer\ndefense\ndefine\ndefy\ndegree\ndelay\ndeliver\ndemand\ndemise\ndenial\ndentist\ndeny\ndepart\ndepend\ndeposit\ndepth\ndeputy\nderive\ndescribe\ndesert\ndesign\ndesk\ndespair\ndestroy\ndetail\ndetect\ndevelop\ndevice\ndevote\ndiagram\ndial\ndiamond\ndiary\ndice\ndiesel\ndiet\ndiffer\ndigital\ndignity\ndilemma\ndinner\ndinosaur\ndirect\ndirt\ndisagree\ndiscover\ndisease\ndish\ndismiss\ndisorder\ndisplay\ndistance\ndivert\ndivide\ndivorce\ndizzy\ndoctor\ndocument\ndog\ndoll\ndolphin\ndomain\ndonate\ndonkey\ndonor\ndoor\ndose\ndouble\ndove\ndraft\ndragon\ndrama\ndrastic\ndraw\ndream\ndress\ndrift\ndrill\ndrink\ndrip\ndrive\ndrop\ndrum\ndry\nduck\ndumb\ndune\nduring\ndust\ndutch\nduty\ndwarf\ndynamic\neager\neagle\nearly\nearn\nearth\neasily\neast\neasy\necho\necology\neconomy\nedge\nedit\neducate\neffort\negg\neight\neither\nelbow\nelder\nelectric\nelegant\nelement\nelephant\nelevator\nelite\nelse\nembark\nembody\nembrace\nemerge\nemotion\nemploy\nempower\nempty\nenable\nenact\nend\nendless\nendorse\nenemy\nenergy\nenforce\nengage\nengine\nenhance\nenjoy\nenlist\nenough\nenrich\nenroll\nensure\nenter\nentire\nentry\nenvelope\nepisode\nequal\nequip\nera\nerase\nerode\nerosion\nerror\nerupt\nescape\nessay\nessence\nestate\neternal\nethics\nevidence\nevil\nevoke\nevolve\nexact\nexample\nexcess\nexchange\nexcite\nexclude\nexcuse\nexecute\nexercise\nexhaust\nexhibit\nexile\nexist\nexit\nexotic\nexpand\nexpect\nexpire\nexplain\nexpose\nexpress\nextend\nextra\neye\neyebrow\nfabric\nface\nfaculty\nfade\nfaint\nfaith\nfall\nfalse\nfame\nfamily\nfamous\nfan\nfancy\nfantasy\nfarm\nfashion\nfat\nfatal\nfather\nfatigue\nfault\nfavorite\nfeature\nfebruary\nfederal\nfee\nfeed\nfeel\nfemale\nfence\nfestival\nfetch\nfever\nfew\nfiber\nfiction\nfield\nfigure\nfile\nfilm\nfilter\nfinal\nfind\nfine\nfinger\nfinish\nfire\nfirm\nfirst\nfiscal\nfish\nfit\nfitness\nfix\nflag\nflame\nflash\nflat\nflavor\nflee\nflight\nflip\nfloat\nflock\nfloor\nflower\nfluid\nflush\nfly\nfoam\nfocus\nfog\nfoil\nfold\nfollow\nfood\nfoot\nforce\nforest\nforget\nfork\nfortune\nforum\nforward\nfossil\nfoster\nfound\nfox\nfragile\nframe\nfrequent\nfresh\nfriend\nfringe\nfrog\nfront\nfrost\nfrown\nfrozen\nfruit\nfuel\nfun\nfunny\nfurnace\nfury\nfuture\ngadget\ngain\ngalaxy\ngallery\ngame\ngap\ngarage\ngarbage\ngarden\ngarlic\ngarment\ngas\ngasp\ngate\ngather\ngauge\ngaze\ngeneral\ngenius\ngenre\ngentle\ngenuine\ngesture\nghost\ngiant\ngift\ngiggle\nginger\ngiraffe\ngirl\ngive\nglad\nglance\nglare\nglass\nglide\nglimpse\nglobe\ngloom\nglory\nglove\nglow\nglue\ngoat\ngoddess\ngold\ngood\ngoose\ngorilla\ngospel\ngossip\ngovern\ngown\ngrab\ngrace\ngrain\ngrant\ngrape\ngrass\ngravity\ngreat\ngreen\ngrid\ngrief\ngrit\ngrocery\ngroup\ngrow\ngrunt\nguard\nguess\nguide\nguilt\nguitar\ngun\ngym\nhabit\nhair\nhalf\nhammer\nhamster\nhand\nhappy\nharbor\nhard\nharsh\nharvest\nhat\nhave\nhawk\nhazard\nhead\nhealth\nheart\nheavy\nhedgehog\nheight\nhello\nhelmet\nhelp\nhen\nhero\nhidden\nhigh\nhill\nhint\nhip\nhire\nhistory\nhobby\nhockey\nhold\nhole\nholiday\nhollow\nhome\nhoney\nhood\nhope\nhorn\nhorror\nhorse\nhospital\nhost\nhotel\nhour\nhover\nhub\nhuge\nhuman\nhumble\nhumor\nhundred\nhungry\nhunt\nhurdle\nhurry\nhurt\nhusband\nhybrid\nice\nicon\nidea\nidentify\nidle\nignore\nill\nillegal\nillness\nimage\nimitate\nimmense\nimmune\nimpact\nimpose\nimprove\nimpulse\ninch\ninclude\nincome\nincrease\nindex\nindicate\nindoor\nindustry\ninfant\ninflict\ninform\ninhale\ninherit\ninitial\ninject\ninjury\ninmate\ninner\ninnocent\ninput\ninquiry\ninsane\ninsect\ninside\ninspire\ninstall\nintact\ninterest\ninto\ninvest\ninvite\ninvolve\niron\nisland\nisolate\nissue\nitem\nivory\njacket\njaguar\njar\njazz\njealous\njeans\njelly\njewel\njob\njoin\njoke\njourney\njoy\njudge\njuice\njump\njungle\njunior\njunk\njust\nkangaroo\nkeen\nkeep\nketchup\nkey\nkick\nkid\nkidney\nkind\nkingdom\nkiss\nkit\nkitchen\nkite\nkitten\nkiwi\nknee\nknife\nknock\nknow\nlab\nlabel\nlabor\nladder\nlady\nlake\nlamp\nlanguage\nlaptop\nlarge\nlater\nlatin\nlaugh\nlaundry\nlava\nlaw\nlawn\nlawsuit\nlayer\nlazy\nleader\nleaf\nlearn\nleave\nlecture\nleft\nleg\nlegal\nlegend\nleisure\nlemon\nlend\nlength\nlens\nleopard\nlesson\nletter\nlevel\nliar\nliberty\nlibrary\nlicense\nlife\nlift\nlight\nlike\nlimb\nlimit\nlink\nlion\nliquid\nlist\nlittle\nlive\nlizard\nload\nloan\nlobster\nlocal\nlock\nlogic\nlonely\nlong\nloop\nlottery\nloud\nlounge\nlove\nloyal\nlucky\nluggage\nlumber\nlunar\nlunch\nluxury\nlyrics\nmachine\nmad\nmagic\nmagnet\nmaid\nmail\nmain\nmajor\nmake\nmammal\nman\nmanage\nmandate\nmango\nmansion\nmanual\nmaple\nmarble\nmarch\nmargin\nmarine\nmarket\nmarriage\nmask\nmass\nmaster\nmatch\nmaterial\nmath\nmatrix\nmatter\nmaximum\nmaze\nmeadow\nmean\nmeasure\nmeat\nmechanic\nmedal\nmedia\nmelody\nmelt\nmember\nmemory\nmention\nmenu\nmercy\nmerge\nmerit\nmerry\nmesh\nmessage\nmetal\nmethod\nmiddle\nmidnight\nmilk\nmillion\nmimic\nmind\nminimum\nminor\nminute\nmiracle\nmirror\nmisery\nmiss\nmistake\nmix\nmixed\nmixture\nmobile\nmodel\nmodify\nmom\nmoment\nmonitor\nmonkey\nmonster\nmonth\nmoon\nmoral\nmore\nmorning\nmosquito\nmother\nmotion\nmotor\nmountain\nmouse\nmove\nmovie\nmuch\nmuffin\nmule\nmultiply\nmuscle\nmuseum\nmushroom\nmusic\nmust\nmutual\nmyself\nmystery\nmyth\nnaive\nname\nnapkin\nnarrow\nnasty\nnation\nnature\nnear\nneck\nneed\nnegative\nneglect\nneither\nnephew\nnerve\nnest\nnet\nnetwork\nneutral\nnever\nnews\nnext\nnice\nnight\nnoble\nnoise\nnominee\nnoodle\nnormal\nnorth\nnose\nnotable\nnote\nnothing\nnotice\nnovel\nnow\nnuclear\nnumber\nnurse\nnut\noak\nobey\nobject\noblige\nobscure\nobserve\nobtain\nobvious\noccur\nocean\noctober\nodor\noff\noffer\noffice\noften\noil\nokay\nold\nolive\nolympic\nomit\nonce\none\nonion\nonline\nonly\nopen\nopera\nopinion\noppose\noption\norange\norbit\norchard\norder\nordinary\norgan\norient\noriginal\norphan\nostrich\nother\noutdoor\nouter\noutput\noutside\noval\noven\nover\nown\nowner\noxygen\noyster\nozone\npact\npaddle\npage\npair\npalace\npalm\npanda\npanel\npanic\npanther\npaper\nparade\nparent\npark\nparrot\nparty\npass\npatch\npath\npatient\npatrol\npattern\npause\npave\npayment\npeace\npeanut\npear\npeasant\npelican\npen\npenalty\npencil\npeople\npepper\nperfect\npermit\nperson\npet\nphone\nphoto\nphrase\nphysical\npiano\npicnic\npicture\npiece\npig\npigeon\npill\npilot\npink\npioneer\npipe\npistol\npitch\npizza\nplace\nplanet\nplastic\nplate\nplay\nplease\npledge\npluck\nplug\nplunge\npoem\npoet\npoint\npolar\npole\npolice\npond\npony\npool\npopular\nportion\nposition\npossible\npost\npotato\npottery\npoverty\npowder\npower\npractice\npraise\npredict\nprefer\nprepare\npresent\npretty\nprevent\nprice\npride\nprimary\nprint\npriority\nprison\nprivate\nprize\nproblem\nprocess\nproduce\nprofit\nprogram\nproject\npromote\nproof\nproperty\nprosper\nprotect\nproud\nprovide\npublic\npudding\npull\npulp\npulse\npumpkin\npunch\npupil\npuppy\npurchase\npurity\npurpose\npurse\npush\nput\npuzzle\npyramid\nquality\nquantum\nquarter\nquestion\nquick\nquit\nquiz\nquote\nrabbit\nraccoon\nrace\nrack\nradar\nradio\nrail\nrain\nraise\nrally\nramp\nranch\nrandom\nrange\nrapid\nrare\nrate\nrather\nraven\nraw\nrazor\nready\nreal\nreason\nrebel\nrebuild\nrecall\nreceive\nrecipe\nrecord\nrecycle\nreduce\nreflect\nreform\nrefuse\nregion\nregret\nregular\nreject\nrelax\nrelease\nrelief\nrely\nremain\nremember\nremind\nremove\nrender\nrenew\nrent\nreopen\nrepair\nrepeat\nreplace\nreport\nrequire\nrescue\nresemble\nresist\nresource\nresponse\nresult\nretire\nretreat\nreturn\nreunion\nreveal\nreview\nreward\nrhythm\nrib\nribbon\nrice\nrich\nride\nridge\nrifle\nright\nrigid\nring\nriot\nripple\nrisk\nritual\nrival\nriver\nroad\nroast\nrobot\nrobust\nrocket\nromance\nroof\nrookie\nroom\nrose\nrotate\nrough\nround\nroute\nroyal\nrubber\nrude\nrug\nrule\nrun\nrunway\nrural\nsad\nsaddle\nsadness\nsafe\nsail\nsalad\nsalmon\nsalon\nsalt\nsalute\nsame\nsample\nsand\nsatisfy\nsatoshi\nsauce\nsausage\nsave\nsay\nscale\nscan\nscare\nscatter\nscene\nscheme\nschool\nscience\nscissors\nscorpion\nscout\nscrap\nscreen\nscript\nscrub\nsea\nsearch\nseason\nseat\nsecond\nsecret\nsection\nsecurity\nseed\nseek\nsegment\nselect\nsell\nseminar\nsenior\nsense\nsentence\nseries\nservice\nsession\nsettle\nsetup\nseven\nshadow\nshaft\nshallow\nshare\nshed\nshell\nsheriff\nshield\nshift\nshine\nship\nshiver\nshock\nshoe\nshoot\nshop\nshort\nshoulder\nshove\nshrimp\nshrug\nshuffle\nshy\nsibling\nsick\nside\nsiege\nsight\nsign\nsilent\nsilk\nsilly\nsilver\nsimilar\nsimple\nsince\nsing\nsiren\nsister\nsituate\nsix\nsize\nskate\nsketch\nski\nskill\nskin\nskirt\nskull\nslab\nslam\nsleep\nslender\nslice\nslide\nslight\nslim\nslogan\nslot\nslow\nslush\nsmall\nsmart\nsmile\nsmoke\nsmooth\nsnack\nsnake\nsnap\nsniff\nsnow\nsoap\nsoccer\nsocial\nsock\nsoda\nsoft\nsolar\nsoldier\nsolid\nsolution\nsolve\nsomeone\nsong\nsoon\nsorry\nsort\nsoul\nsound\nsoup\nsource\nsouth\nspace\nspare\nspatial\nspawn\nspeak\nspecial\nspeed\nspell\nspend\nsphere\nspice\nspider\nspike\nspin\nspirit\nsplit\nspoil\nsponsor\nspoon\nsport\nspot\nspray\nspread\nspring\nspy\nsquare\nsqueeze\nsquirrel\nstable\nstadium\nstaff\nstage\nstairs\nstamp\nstand\nstart\nstate\nstay\nsteak\nsteel\nstem\nstep\nstereo\nstick\nstill\nsting\nstock\nstomach\nstone\nstool\nstory\nstove\nstrategy\nstreet\nstrike\nstrong\nstruggle\nstudent\nstuff\nstumble\nstyle\nsubject\nsubmit\nsubway\nsuccess\nsuch\nsudden\nsuffer\nsugar\nsuggest\nsuit\nsummer\nsun\nsunny\nsunset\nsuper\nsupply\nsupreme\nsure\nsurface\nsurge\nsurprise\nsurround\nsurvey\nsuspect\nsustain\nswallow\nswamp\nswap\nswarm\nswear\nsweet\nswift\nswim\nswing\nswitch\nsword\nsymbol\nsymptom\nsyrup\nsystem\ntable\ntackle\ntag\ntail\ntalent\ntalk\ntank\ntape\ntarget\ntask\ntaste\ntattoo\ntaxi\nteach\nteam\ntell\nten\ntenant\ntennis\ntent\nterm\ntest\ntext\nthank\nthat\ntheme\nthen\ntheory\nthere\nthey\nthing\nthis\nthought\nthree\nthrive\nthrow\nthumb\nthunder\nticket\ntide\ntiger\ntilt\ntimber\ntime\ntiny\ntip\ntired\ntissue\ntitle\ntoast\ntobacco\ntoday\ntoddler\ntoe\ntogether\ntoilet\ntoken\ntomato\ntomorrow\ntone\ntongue\ntonight\ntool\ntooth\ntop\ntopic\ntopple\ntorch\ntornado\ntortoise\ntoss\ntotal\ntourist\ntoward\ntower\ntown\ntoy\ntrack\ntrade\ntraffic\ntragic\ntrain\ntransfer\ntrap\ntrash\ntravel\ntray\ntreat\ntree\ntrend\ntrial\ntribe\ntrick\ntrigger\ntrim\ntrip\ntrophy\ntrouble\ntruck\ntrue\ntruly\ntrumpet\ntrust\ntruth\ntry\ntube\ntuition\ntumble\ntuna\ntunnel\nturkey\nturn\nturtle\ntwelve\ntwenty\ntwice\ntwin\ntwist\ntwo\ntype\ntypical\nugly\numbrella\nunable\nunaware\nuncle\nuncover\nunder\nundo\nunfair\nunfold\nunhappy\nuniform\nunique\nunit\nuniverse\nunknown\nunlock\nuntil\nunusual\nunveil\nupdate\nupgrade\nuphold\nupon\nupper\nupset\nurban\nurge\nusage\nuse\nused\nuseful\nuseless\nusual\nutility\nvacant\nvacuum\nvague\nvalid\nvalley\nvalve\nvan\nvanish\nvapor\nvarious\nvast\nvault\nvehicle\nvelvet\nvendor\nventure\nvenue\nverb\nverify\nversion\nvery\nvessel\nveteran\nviable\nvibrant\nvicious\nvictory\nvideo\nview\nvillage\nvintage\nviolin\nvirtual\nvirus\nvisa\nvisit\nvisual\nvital\nvivid\nvocal\nvoice\nvoid\nvolcano\nvolume\nvote\nvoyage\nwage\nwagon\nwait\nwalk\nwall\nwalnut\nwant\nwarfare\nwarm\nwarrior\nwash\nwasp\nwaste\nwater\nwave\nway\nwealth\nweapon\nwear\nweasel\nweather\nweb\nwedding\nweekend\nweird\nwelcome\nwest\nwet\nwhale\nwhat\nwheat\nwheel\nwhen\nwhere\nwhip\nwhisper\nwide\nwidth\nwife\nwild\nwill\nwin\nwindow\nwine\nwing\nwink\nwinner\nwinter\nwire\nwisdom\nwise\nwish\nwitness\nwolf\nwoman\nwonder\nwood\nwool\nword\nwork\nworld\nworry\nworth\nwrap\nwreck\nwrestle\nwrist\nwrite\nwrong\nyard\nyear\nyellow\nyou\nyoung\nyouth\nzebra\nzero\nzone\nzoo".split("\n");const Me=R=>new DataView(R.buffer,R.byteOffset,R.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function yn(R){if("string"==typeof R&&(R=function ln(R){if("string"!=typeof R)throw new Error("utf8ToBytes expected string, got "+typeof R);return new Uint8Array((new TextEncoder).encode(R))}(R)),!function Re(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name}(R))throw new Error("expected Uint8Array, got "+typeof R);return R}class bn{clone(){return this._cloneInto()}}const Qe={}.toString;function Ge(R){const U=oe=>R().update(yn(oe)).digest(),V=R();return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=()=>R(),U}class dt extends bn{constructor(U,V){super(),this.finished=!1,this.destroyed=!1,Z(U);const oe=yn(V);if(this.iHash=U.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 Ae=this.blockLen,Be=new Uint8Array(Ae);Be.set(oe.length>Ae?U.create().update(oe).digest():oe);for(let gt=0;gtnew dt(R,U).update(V).digest();Ke.create=(R,U)=>new dt(R,U);class fn extends bn{constructor(U,V,oe,Ae){super(),this.blockLen=U,this.outputLen=V,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(U),this.view=Me(this.buffer)}update(U){ne(this);const{view:V,buffer:oe,blockLen:Ae}=this,Be=(U=yn(U)).length;for(let gt=0;gtAe-gt&&(this.process(oe,0),gt=0);for(let Zt=gt;Zt>Ae&Be),It=Number(V&Be),on=oe?0:4;R.setUint32(U+(oe?4:0),gt,oe),R.setUint32(U+on,It,oe)})(oe,Ae-8,BigInt(8*this.length),Be),this.process(oe,0);const It=Me(U),Ht=this.outputLen;if(Ht%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const on=Ht/4,An=this.get();if(on>An.length)throw new Error("_sha2: outputLen bigger than state");for(let Zt=0;Zt>Nt&Kn)}:{h:0|Number(R>>Nt&Kn),l:0|Number(R&Kn)}}const Bn_split=function an(R,U=!1){let V=new Uint32Array(R.length),oe=new Uint32Array(R.length);for(let Ae=0;AeR>>>V,Bn_shrSL=(R,U,V)=>R<<32-V|U>>>V,Bn_rotrSH=(R,U,V)=>R>>>V|U<<32-V,Bn_rotrSL=(R,U,V)=>R<<32-V|U>>>V,Bn_rotrBH=(R,U,V)=>R<<64-V|U>>>V-32,Bn_rotrBL=(R,U,V)=>R>>>V-32|U<<64-V,Bn_add=function it(R,U,V,oe){const Ae=(U>>>0)+(oe>>>0);return{h:R+V+(Ae/2**32|0)|0,l:0|Ae}},Bn_add3L=(R,U,V)=>(R>>>0)+(U>>>0)+(V>>>0),Bn_add3H=(R,U,V,oe)=>U+V+oe+(R/2**32|0)|0,Bn_add4L=(R,U,V,oe)=>(R>>>0)+(U>>>0)+(V>>>0)+(oe>>>0),Bn_add4H=(R,U,V,oe,Ae)=>U+V+oe+Ae+(R/2**32|0)|0,Bn_add5H=(R,U,V,oe,Ae,Be)=>U+V+oe+Ae+Be+(R/2**32|0)|0,Bn_add5L=(R,U,V,oe,Ae)=>(R>>>0)+(U>>>0)+(V>>>0)+(oe>>>0)+(Ae>>>0),[cr,Jr]=Bn_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(R=>BigInt(R))),Xr=new Uint32Array(80),_t=new Uint32Array(80);class Bt extends fn{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:U,Al:V,Bh:oe,Bl:Ae,Ch:Be,Cl:gt,Dh:It,Dl:Ht,Eh:on,El:An,Fh:Zt,Fl:zn,Gh:Wn,Gl:nr,Hh:Mn,Hl:jn}=this;return[U,V,oe,Ae,Be,gt,It,Ht,on,An,Zt,zn,Wn,nr,Mn,jn]}set(U,V,oe,Ae,Be,gt,It,Ht,on,An,Zt,zn,Wn,nr,Mn,jn){this.Ah=0|U,this.Al=0|V,this.Bh=0|oe,this.Bl=0|Ae,this.Ch=0|Be,this.Cl=0|gt,this.Dh=0|It,this.Dl=0|Ht,this.Eh=0|on,this.El=0|An,this.Fh=0|Zt,this.Fl=0|zn,this.Gh=0|Wn,this.Gl=0|nr,this.Hh=0|Mn,this.Hl=0|jn}process(U,V){for(let Vn=0;Vn<16;Vn++,V+=4)Xr[Vn]=U.getUint32(V),_t[Vn]=U.getUint32(V+=4);for(let Vn=16;Vn<80;Vn++){const dr=0|Xr[Vn-15],Pr=0|_t[Vn-15],Ir=Bn_rotrSH(dr,Pr,1)^Bn_rotrSH(dr,Pr,8)^Bn_shrSH(dr,Pr,7),Gr=Bn_rotrSL(dr,Pr,1)^Bn_rotrSL(dr,Pr,8)^Bn_shrSL(dr,Pr,7),Ur=0|Xr[Vn-2],Yi=0|_t[Vn-2],Qi=Bn_rotrSH(Ur,Yi,19)^Bn_rotrBH(Ur,Yi,61)^Bn_shrSH(Ur,Yi,6),Ii=Bn_rotrSL(Ur,Yi,19)^Bn_rotrBL(Ur,Yi,61)^Bn_shrSL(Ur,Yi,6),Zi=Bn_add4L(Gr,Ii,_t[Vn-7],_t[Vn-16]),Bo=Bn_add4H(Zi,Ir,Qi,Xr[Vn-7],Xr[Vn-16]);Xr[Vn]=0|Bo,_t[Vn]=0|Zi}let{Ah:oe,Al:Ae,Bh:Be,Bl:gt,Ch:It,Cl:Ht,Dh:on,Dl:An,Eh:Zt,El:zn,Fh:Wn,Fl:nr,Gh:Mn,Gl:jn,Hh:Qn,Hl:ir}=this;for(let Vn=0;Vn<80;Vn++){const dr=Bn_rotrSH(Zt,zn,14)^Bn_rotrSH(Zt,zn,18)^Bn_rotrBH(Zt,zn,41),Pr=Bn_rotrSL(Zt,zn,14)^Bn_rotrSL(Zt,zn,18)^Bn_rotrBL(Zt,zn,41),Ir=Zt&Wn^~Zt&Mn,Ur=Bn_add5L(ir,Pr,zn&nr^~zn&jn,Jr[Vn],_t[Vn]),Yi=Bn_add5H(Ur,Qn,dr,Ir,cr[Vn],Xr[Vn]),Qi=0|Ur,Ii=Bn_rotrSH(oe,Ae,28)^Bn_rotrBH(oe,Ae,34)^Bn_rotrBH(oe,Ae,39),Zi=Bn_rotrSL(oe,Ae,28)^Bn_rotrBL(oe,Ae,34)^Bn_rotrBL(oe,Ae,39),Bo=oe&Be^oe&It^Be&It,Ds=Ae>^Ae&Ht^gt&Ht;Qn=0|Mn,ir=0|jn,Mn=0|Wn,jn=0|nr,Wn=0|Zt,nr=0|zn,({h:Zt,l:zn}=Bn_add(0|on,0|An,0|Yi,0|Qi)),on=0|It,An=0|Ht,It=0|Be,Ht=0|gt,Be=0|oe,gt=0|Ae;const yr=Bn_add3L(Qi,Zi,Ds);oe=Bn_add3H(yr,Yi,Ii,Bo),Ae=0|yr}({h:oe,l:Ae}=Bn_add(0|this.Ah,0|this.Al,0|oe,0|Ae)),({h:Be,l:gt}=Bn_add(0|this.Bh,0|this.Bl,0|Be,0|gt)),({h:It,l:Ht}=Bn_add(0|this.Ch,0|this.Cl,0|It,0|Ht)),({h:on,l:An}=Bn_add(0|this.Dh,0|this.Dl,0|on,0|An)),({h:Zt,l:zn}=Bn_add(0|this.Eh,0|this.El,0|Zt,0|zn)),({h:Wn,l:nr}=Bn_add(0|this.Fh,0|this.Fl,0|Wn,0|nr)),({h:Mn,l:jn}=Bn_add(0|this.Gh,0|this.Gl,0|Mn,0|jn)),({h:Qn,l:ir}=Bn_add(0|this.Hh,0|this.Hl,0|Qn,0|ir)),this.set(oe,Ae,Be,gt,It,Ht,on,An,Zt,zn,Wn,nr,Mn,jn,Qn,ir)}roundClean(){Xr.fill(0),_t.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 kt=Ge(()=>new Bt);var or=r(3813);function ii(R){if("string"!=typeof R)throw new TypeError("Invalid mnemonic type: "+typeof R);return R.normalize("NFKD")}function Oi(R,U=""){return function se(R,U,V,oe){const{c:Ae,dkLen:Be,DK:gt,PRF:It,PRFSalt:Ht}=function He(R,U,V,oe){Z(R);const Ae=function bt(R,U){if(void 0!==U&&"[object Object]"!==Qe.call(U))throw new Error("Options should be object or undefined");return Object.assign(R,U)}({dkLen:32,asyncTick:10},oe),{c:Be,dkLen:gt,asyncTick:It}=Ae;if(A(Be),A(gt),A(It),Be<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const Ht=yn(U),on=yn(V),An=new Uint8Array(gt),Zt=Ke.create(R,Ht),zn=Zt._cloneInto().update(on);return{c:Be,dkLen:gt,asyncTick:It,DK:An,PRF:Zt,PRFSalt:zn}}(R,U,V,oe);let on;const An=new Uint8Array(4),Zt=Me(An),zn=new Uint8Array(It.outputLen);for(let Wn=1,nr=0;nrii(`mnemonic${R}`))(U),{c:2048,dkLen:64})}function Uo(R){if(!Number.isSafeInteger(R)||R<0)throw new Error(`Wrong positive integer: ${R}`)}function so(R,...U){if(!function ts(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name}(R))throw new Error("Expected Uint8Array");if(U.length>0&&!U.includes(R.length))throw new Error(`Expected Uint8Array of length ${U}, not of length=${R.length}`)}function Xo(R,U=!0){if(R.destroyed)throw new Error("Hash instance has been destroyed");if(U&&R.finished)throw new Error("Hash#digest() has already been called")}function Mo(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name}const Je=R=>new DataView(R.buffer,R.byteOffset,R.byteLength),ct=(R,U)=>R<<32-U|R>>>U;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const ve=Array.from({length:256},(R,U)=>U.toString(16).padStart(2,"0"));function pt(R){return R>=48&&R<=57?R-48:R>=65&&R<=70?R-55:R>=97&&R<=102?R-87:void 0}function Sn(R){if("string"!=typeof R)throw new Error("utf8ToBytes expected string, got "+typeof R);return new Uint8Array((new TextEncoder).encode(R))}function kn(R){if("string"==typeof R&&(R=Sn(R)),!Mo(R))throw new Error("expected Uint8Array, got "+typeof R);return R}function Un(...R){let U=0;for(let oe=0;oeR().update(kn(oe)).digest(),V=R();return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=()=>R(),U}class ai extends Jn{constructor(U,V){super(),this.finished=!1,this.destroyed=!1,function bo(R){if("function"!=typeof R||"function"!=typeof R.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Uo(R.outputLen),Uo(R.blockLen)}(U);const oe=kn(V);if(this.iHash=U.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 Ae=this.blockLen,Be=new Uint8Array(Ae);Be.set(oe.length>Ae?U.create().update(oe).digest():oe);for(let gt=0;gtnew ai(R,U).update(V).digest();vo.create=(R,U)=>new ai(R,U);class zi extends Jn{constructor(U,V,oe,Ae){super(),this.blockLen=U,this.outputLen=V,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(U),this.view=Je(this.buffer)}update(U){Xo(this);const{view:V,buffer:oe,blockLen:Ae}=this,Be=(U=kn(U)).length;for(let gt=0;gtAe-gt&&(this.process(oe,0),gt=0);for(let Zt=gt;Zt>Ae&Be),It=Number(V&Be),on=oe?0:4;R.setUint32(U+(oe?4:0),gt,oe),R.setUint32(U+on,It,oe)})(oe,Ae-8,BigInt(8*this.length),Be),this.process(oe,0);const It=Je(U),Ht=this.outputLen;if(Ht%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const on=Ht/4,An=this.get();if(on>An.length)throw new Error("_sha2: outputLen bigger than state");for(let Zt=0;ZtU);let Sr=[ws],oa=[ws.map(R=>(9*R+5)%16)];for(let R=0;R<4;R++)for(let U of[Sr,oa])U.push(U[R].map(V=>cs[V]));const ma=[[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(R=>new Uint8Array(R)),wo=Sr.map((R,U)=>R.map(V=>ma[U][V])),Ls=oa.map((R,U)=>R.map(V=>ma[U][V])),Ps=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Xs=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),Ki=(R,U)=>R<>>32-U;function Ys(R,U,V,oe){return 0===R?U^V^oe:1===R?U&V|~U&oe:2===R?(U|~V)^oe:3===R?U&oe|V&~oe:U^(V|~oe)}const Ni=new Uint32Array(16);class Fs extends zi{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:U,h1:V,h2:oe,h3:Ae,h4:Be}=this;return[U,V,oe,Ae,Be]}set(U,V,oe,Ae,Be){this.h0=0|U,this.h1=0|V,this.h2=0|oe,this.h3=0|Ae,this.h4=0|Be}process(U,V){for(let Wn=0;Wn<16;Wn++,V+=4)Ni[Wn]=U.getUint32(V,!0);let oe=0|this.h0,Ae=oe,Be=0|this.h1,gt=Be,It=0|this.h2,Ht=It,on=0|this.h3,An=on,Zt=0|this.h4,zn=Zt;for(let Wn=0;Wn<5;Wn++){const nr=4-Wn,Mn=Ps[Wn],jn=Xs[Wn],Qn=Sr[Wn],ir=oa[Wn],Vn=wo[Wn],dr=Ls[Wn];for(let Pr=0;Pr<16;Pr++){const Ir=Ki(oe+Ys(Wn,Be,It,on)+Ni[Qn[Pr]]+Mn,Vn[Pr])+Zt|0;oe=Zt,Zt=on,on=0|Ki(It,10),It=Be,Be=Ir}for(let Pr=0;Pr<16;Pr++){const Ir=Ki(Ae+Ys(nr,gt,Ht,An)+Ni[ir[Pr]]+jn,dr[Pr])+zn|0;Ae=zn,zn=An,An=0|Ki(Ht,10),Ht=gt,gt=Ir}}this.set(this.h1+It+An|0,this.h2+on+zn|0,this.h3+Zt+Ae|0,this.h4+oe+gt|0,this.h0+Be+Ht|0)}roundClean(){Ni.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const ns=mr(()=>new Fs),qr=(R,U,V)=>R&U^~R&V,rs=(R,U,V)=>R&U^R&V^U&V,is=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]),to=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Wi=new Uint32Array(64);class Es extends zi{constructor(){super(64,32,8,!1),this.A=0|to[0],this.B=0|to[1],this.C=0|to[2],this.D=0|to[3],this.E=0|to[4],this.F=0|to[5],this.G=0|to[6],this.H=0|to[7]}get(){const{A:U,B:V,C:oe,D:Ae,E:Be,F:gt,G:It,H:Ht}=this;return[U,V,oe,Ae,Be,gt,It,Ht]}set(U,V,oe,Ae,Be,gt,It,Ht){this.A=0|U,this.B=0|V,this.C=0|oe,this.D=0|Ae,this.E=0|Be,this.F=0|gt,this.G=0|It,this.H=0|Ht}process(U,V){for(let Zt=0;Zt<16;Zt++,V+=4)Wi[Zt]=U.getUint32(V,!1);for(let Zt=16;Zt<64;Zt++){const zn=Wi[Zt-15],Wn=Wi[Zt-2],nr=ct(zn,7)^ct(zn,18)^zn>>>3,Mn=ct(Wn,17)^ct(Wn,19)^Wn>>>10;Wi[Zt]=Mn+Wi[Zt-7]+nr+Wi[Zt-16]|0}let{A:oe,B:Ae,C:Be,D:gt,E:It,F:Ht,G:on,H:An}=this;for(let Zt=0;Zt<64;Zt++){const Wn=An+(ct(It,6)^ct(It,11)^ct(It,25))+qr(It,Ht,on)+is[Zt]+Wi[Zt]|0,Mn=(ct(oe,2)^ct(oe,13)^ct(oe,22))+rs(oe,Ae,Be)|0;An=on,on=Ht,Ht=It,It=gt+Wn|0,gt=Be,Be=Ae,Ae=oe,oe=Wn+Mn|0}oe=oe+this.A|0,Ae=Ae+this.B|0,Be=Be+this.C|0,gt=gt+this.D|0,It=It+this.E|0,Ht=Ht+this.F|0,on=on+this.G|0,An=An+this.H|0,this.set(oe,Ae,Be,gt,It,Ht,on,An)}roundClean(){Wi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const ga=mr(()=>new Es),Eo=BigInt(2**32-1),os=BigInt(32);function ks(R,U=!1){return U?{h:Number(R&Eo),l:Number(R>>os&Eo)}:{h:0|Number(R>>os&Eo),l:0|Number(R&Eo)}}const Xe_split=function Bs(R,U=!1){let V=new Uint32Array(R.length),oe=new Uint32Array(R.length);for(let Ae=0;AeR>>>V,Xe_shrSL=(R,U,V)=>R<<32-V|U>>>V,Xe_rotrSH=(R,U,V)=>R>>>V|U<<32-V,Xe_rotrSL=(R,U,V)=>R<<32-V|U>>>V,Xe_rotrBH=(R,U,V)=>R<<64-V|U>>>V-32,Xe_rotrBL=(R,U,V)=>R>>>V-32|U<<64-V,Xe_add=function ko(R,U,V,oe){const Ae=(U>>>0)+(oe>>>0);return{h:R+V+(Ae/2**32|0)|0,l:0|Ae}},Xe_add3L=(R,U,V)=>(R>>>0)+(U>>>0)+(V>>>0),Xe_add3H=(R,U,V,oe)=>U+V+oe+(R/2**32|0)|0,Xe_add4L=(R,U,V,oe)=>(R>>>0)+(U>>>0)+(V>>>0)+(oe>>>0),Xe_add4H=(R,U,V,oe,Ae)=>U+V+oe+Ae+(R/2**32|0)|0,Xe_add5H=(R,U,V,oe,Ae,Be)=>U+V+oe+Ae+Be+(R/2**32|0)|0,Xe_add5L=(R,U,V,oe,Ae)=>(R>>>0)+(U>>>0)+(V>>>0)+(oe>>>0)+(Ae>>>0),[wt,Ln]=Xe_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(R=>BigInt(R))),hn=new Uint32Array(80),ur=new Uint32Array(80);class hr extends zi{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:U,Al:V,Bh:oe,Bl:Ae,Ch:Be,Cl:gt,Dh:It,Dl:Ht,Eh:on,El:An,Fh:Zt,Fl:zn,Gh:Wn,Gl:nr,Hh:Mn,Hl:jn}=this;return[U,V,oe,Ae,Be,gt,It,Ht,on,An,Zt,zn,Wn,nr,Mn,jn]}set(U,V,oe,Ae,Be,gt,It,Ht,on,An,Zt,zn,Wn,nr,Mn,jn){this.Ah=0|U,this.Al=0|V,this.Bh=0|oe,this.Bl=0|Ae,this.Ch=0|Be,this.Cl=0|gt,this.Dh=0|It,this.Dl=0|Ht,this.Eh=0|on,this.El=0|An,this.Fh=0|Zt,this.Fl=0|zn,this.Gh=0|Wn,this.Gl=0|nr,this.Hh=0|Mn,this.Hl=0|jn}process(U,V){for(let Vn=0;Vn<16;Vn++,V+=4)hn[Vn]=U.getUint32(V),ur[Vn]=U.getUint32(V+=4);for(let Vn=16;Vn<80;Vn++){const dr=0|hn[Vn-15],Pr=0|ur[Vn-15],Ir=Xe_rotrSH(dr,Pr,1)^Xe_rotrSH(dr,Pr,8)^Xe_shrSH(dr,Pr,7),Gr=Xe_rotrSL(dr,Pr,1)^Xe_rotrSL(dr,Pr,8)^Xe_shrSL(dr,Pr,7),Ur=0|hn[Vn-2],Yi=0|ur[Vn-2],Qi=Xe_rotrSH(Ur,Yi,19)^Xe_rotrBH(Ur,Yi,61)^Xe_shrSH(Ur,Yi,6),Ii=Xe_rotrSL(Ur,Yi,19)^Xe_rotrBL(Ur,Yi,61)^Xe_shrSL(Ur,Yi,6),Zi=Xe_add4L(Gr,Ii,ur[Vn-7],ur[Vn-16]),Bo=Xe_add4H(Zi,Ir,Qi,hn[Vn-7],hn[Vn-16]);hn[Vn]=0|Bo,ur[Vn]=0|Zi}let{Ah:oe,Al:Ae,Bh:Be,Bl:gt,Ch:It,Cl:Ht,Dh:on,Dl:An,Eh:Zt,El:zn,Fh:Wn,Fl:nr,Gh:Mn,Gl:jn,Hh:Qn,Hl:ir}=this;for(let Vn=0;Vn<80;Vn++){const dr=Xe_rotrSH(Zt,zn,14)^Xe_rotrSH(Zt,zn,18)^Xe_rotrBH(Zt,zn,41),Pr=Xe_rotrSL(Zt,zn,14)^Xe_rotrSL(Zt,zn,18)^Xe_rotrBL(Zt,zn,41),Ir=Zt&Wn^~Zt&Mn,Ur=Xe_add5L(ir,Pr,zn&nr^~zn&jn,Ln[Vn],ur[Vn]),Yi=Xe_add5H(Ur,Qn,dr,Ir,wt[Vn],hn[Vn]),Qi=0|Ur,Ii=Xe_rotrSH(oe,Ae,28)^Xe_rotrBH(oe,Ae,34)^Xe_rotrBH(oe,Ae,39),Zi=Xe_rotrSL(oe,Ae,28)^Xe_rotrBL(oe,Ae,34)^Xe_rotrBL(oe,Ae,39),Bo=oe&Be^oe&It^Be&It,Ds=Ae>^Ae&Ht^gt&Ht;Qn=0|Mn,ir=0|jn,Mn=0|Wn,jn=0|nr,Wn=0|Zt,nr=0|zn,({h:Zt,l:zn}=Xe_add(0|on,0|An,0|Yi,0|Qi)),on=0|It,An=0|Ht,It=0|Be,Ht=0|gt,Be=0|oe,gt=0|Ae;const yr=Xe_add3L(Qi,Zi,Ds);oe=Xe_add3H(yr,Yi,Ii,Bo),Ae=0|yr}({h:oe,l:Ae}=Xe_add(0|this.Ah,0|this.Al,0|oe,0|Ae)),({h:Be,l:gt}=Xe_add(0|this.Bh,0|this.Bl,0|Be,0|gt)),({h:It,l:Ht}=Xe_add(0|this.Ch,0|this.Cl,0|It,0|Ht)),({h:on,l:An}=Xe_add(0|this.Dh,0|this.Dl,0|on,0|An)),({h:Zt,l:zn}=Xe_add(0|this.Eh,0|this.El,0|Zt,0|zn)),({h:Wn,l:nr}=Xe_add(0|this.Fh,0|this.Fl,0|Wn,0|nr)),({h:Mn,l:jn}=Xe_add(0|this.Gh,0|this.Gl,0|Mn,0|jn)),({h:Qn,l:ir}=Xe_add(0|this.Hh,0|this.Hl,0|Qn,0|ir)),this.set(oe,Ae,Be,gt,It,Ht,on,An,Zt,zn,Wn,nr,Mn,jn,Qn,ir)}roundClean(){hn.fill(0),ur.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 Dr=mr(()=>new hr);function lo(R){if(!Number.isSafeInteger(R)||R<0)throw new Error(`Wrong positive integer: ${R}`)}function Oo(R,...U){if(!(R instanceof Uint8Array))throw new Error("Expected Uint8Array");if(U.length>0&&!U.includes(R.length))throw new Error(`Expected Uint8Array of length ${U}, not of length=${R.length}`)}const ce={number:lo,bool:function Ho(R){if("boolean"!=typeof R)throw new Error(`Expected boolean, not ${R}`)},bytes:Oo,hash:function Hl(R){if("function"!=typeof R||"function"!=typeof R.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");lo(R.outputLen),lo(R.blockLen)},exists:function Qa(R,U=!0){if(R.destroyed)throw new Error("Hash instance has been destroyed");if(U&&R.finished)throw new Error("Hash#digest() has already been called")},output:function ya(R,U){Oo(R);const V=U.outputLen;if(R.lengthR instanceof Uint8Array,ni=R=>new DataView(R.buffer,R.byteOffset,R.byteLength),Do=(R,U)=>R<<32-U|R>>>U;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Lo(R){if("string"==typeof R&&(R=function Ua(R){if("string"!=typeof R)throw new Error("utf8ToBytes expected string, got "+typeof R);return new Uint8Array((new TextEncoder).encode(R))}(R)),!Le(R))throw new Error("expected Uint8Array, got "+typeof R);return R}Array.from({length:256},(R,U)=>U.toString(16).padStart(2,"0"));class El{clone(){return this._cloneInto()}}function $a(R){const U=oe=>R().update(Lo(oe)).digest(),V=R();return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=()=>R(),U}function rc(R=32){if(Q&&"function"==typeof Q.getRandomValues)return Q.getRandomValues(new Uint8Array(R));throw new Error("crypto.getRandomValues must be defined")}class Wl extends El{constructor(U,V,oe,Ae){super(),this.blockLen=U,this.outputLen=V,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(U),this.view=ni(this.buffer)}update(U){ce.exists(this);const{view:V,buffer:oe,blockLen:Ae}=this,Be=(U=Lo(U)).length;for(let gt=0;gtAe-gt&&(this.process(oe,0),gt=0);for(let Zt=gt;Zt>Ae&Be),It=Number(V&Be),on=oe?0:4;R.setUint32(U+(oe?4:0),gt,oe),R.setUint32(U+on,It,oe)})(oe,Ae-8,BigInt(8*this.length),Be),this.process(oe,0);const It=ni(U),Ht=this.outputLen;if(Ht%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const on=Ht/4,An=this.get();if(on>An.length)throw new Error("_sha2: outputLen bigger than state");for(let Zt=0;ZtR&U^~R&V,qa=(R,U,V)=>R&U^R&V^U&V,Cl=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]),Ro=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),co=new Uint32Array(64);class wa extends Wl{constructor(){super(64,32,8,!1),this.A=0|Ro[0],this.B=0|Ro[1],this.C=0|Ro[2],this.D=0|Ro[3],this.E=0|Ro[4],this.F=0|Ro[5],this.G=0|Ro[6],this.H=0|Ro[7]}get(){const{A:U,B:V,C:oe,D:Ae,E:Be,F:gt,G:It,H:Ht}=this;return[U,V,oe,Ae,Be,gt,It,Ht]}set(U,V,oe,Ae,Be,gt,It,Ht){this.A=0|U,this.B=0|V,this.C=0|oe,this.D=0|Ae,this.E=0|Be,this.F=0|gt,this.G=0|It,this.H=0|Ht}process(U,V){for(let Zt=0;Zt<16;Zt++,V+=4)co[Zt]=U.getUint32(V,!1);for(let Zt=16;Zt<64;Zt++){const zn=co[Zt-15],Wn=co[Zt-2],nr=Do(zn,7)^Do(zn,18)^zn>>>3,Mn=Do(Wn,17)^Do(Wn,19)^Wn>>>10;co[Zt]=Mn+co[Zt-7]+nr+co[Zt-16]|0}let{A:oe,B:Ae,C:Be,D:gt,E:It,F:Ht,G:on,H:An}=this;for(let Zt=0;Zt<64;Zt++){const Wn=An+(Do(It,6)^Do(It,11)^Do(It,25))+ba(It,Ht,on)+Cl[Zt]+co[Zt]|0,Mn=(Do(oe,2)^Do(oe,13)^Do(oe,22))+qa(oe,Ae,Be)|0;An=on,on=Ht,Ht=It,It=gt+Wn|0,gt=Be,Be=Ae,Ae=oe,oe=Wn+Mn|0}oe=oe+this.A|0,Ae=Ae+this.B|0,Be=Be+this.C|0,gt=gt+this.D|0,It=It+this.E|0,Ht=Ht+this.F|0,on=on+this.G|0,An=An+this.H|0,this.set(oe,Ae,Be,gt,It,Ht,on,An)}roundClean(){co.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class Ea extends wa{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 Jo=$a(()=>new wa),Dl=($a(()=>new Ea),BigInt(0),BigInt(1)),Gl=BigInt(2),Sl=R=>R instanceof Uint8Array,zl=Array.from({length:256},(R,U)=>U.toString(16).padStart(2,"0"));function xa(R){if(!Sl(R))throw new Error("Uint8Array expected");let U="";for(let V=0;Voe+Ae.length,0));let V=0;return R.forEach(oe=>{if(!Sl(oe))throw new Error("Uint8Array expected");U.set(oe,V),V+=oe.length}),U}const Va=R=>(Gl<new Uint8Array(R),Ha=R=>Uint8Array.from(R);function Di(R,U,V){if("number"!=typeof R||R<2)throw new Error("hashLen must be a number");if("number"!=typeof U||U<2)throw new Error("qByteLen must be a number");if("function"!=typeof V)throw new Error("hmacFn must be a function");let oe=ro(R),Ae=ro(R),Be=0;const gt=()=>{oe.fill(1),Ae.fill(0),Be=0},It=(...Zt)=>V(Ae,oe,...Zt),Ht=(Zt=ro())=>{Ae=It(Ha([0]),Zt),oe=It(),0!==Zt.length&&(Ae=It(Ha([1]),Zt),oe=It())},on=()=>{if(Be++>=1e3)throw new Error("drbg: tried 1000 values");let Zt=0;const zn=[];for(;Zt{let Wn;for(gt(),Ht(Zt);!(Wn=zn(on()));)Ht();return gt(),Wn}}const $s={bigint:R=>"bigint"==typeof R,function:R=>"function"==typeof R,boolean:R=>"boolean"==typeof R,string:R=>"string"==typeof R,isSafeInteger:R=>Number.isSafeInteger(R),array:R=>Array.isArray(R),field:(R,U)=>U.Fp.isValid(R),hash:R=>"function"==typeof R&&Number.isSafeInteger(R.outputLen)};function ca(R,U,V={}){const oe=(Ae,Be,gt)=>{const It=$s[Be];if("function"!=typeof It)throw new Error(`Invalid validator "${Be}", expected function`);const Ht=R[Ae];if(!(gt&&void 0===Ht||It(Ht,R)))throw new Error(`Invalid param ${String(Ae)}=${Ht} (${typeof Ht}), expected ${Be}`)};for(const[Ae,Be]of Object.entries(U))oe(Ae,Be,!1);for(const[Ae,Be]of Object.entries(V))oe(Ae,Be,!0);return R}const No=BigInt(0),$=BigInt(1),de=BigInt(2),q=BigInt(3),_e=BigInt(4),nt=BigInt(5),_n=BigInt(8);function Yr(R,U){const V=R%U;return V>=No?V:U+V}function Li(R,U,V){if(V<=No||U 0");if(V===$)return No;let oe=$;for(;U>No;)U&$&&(oe=oe*R%V),R=R*R%V,U>>=$;return oe}function Hr(R,U,V){let oe=R;for(;U-- >No;)oe*=oe,oe%=V;return oe}function xi(R,U){if(R===No||U<=No)throw new Error(`invert: expected positive integers, got n=${R} mod=${U}`);let V=Yr(R,U),oe=U,Ae=No,Be=$,gt=$,It=No;for(;V!==No;){const on=oe/V,An=oe%V,Zt=Ae-gt*on,zn=Be-It*on;oe=V,V=An,Ae=gt,Be=It,gt=Zt,It=zn}if(oe!==$)throw new Error("invert: does not exist");return Yr(Ae,U)}BigInt(9),BigInt(16);const Wo=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Zs(R,U){const V=void 0!==U?U:R.toString(2).length;return{nBitLength:V,nByteLength:Math.ceil(V/8)}}const ua=BigInt(0),Xl=BigInt(1);function sd(R){return function hs(R){ca(R,Wo.reduce((oe,Ae)=>(oe[Ae]="function",oe),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(R.Fp),ca(R,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Zs(R.n,R.nBitLength),...R,p:R.Fp.ORDER})}const{Ph:Ao,aT:Ja}=i,el={Err:class extends Error{constructor(U=""){super(U)}},_parseInt(R){const{Err:U}=el;if(R.length<2||2!==R[0])throw new U("Invalid signature integer tag");const V=R[1],oe=R.subarray(2,V+2);if(!V||oe.length!==V)throw new U("Invalid signature integer: wrong length");if(128&oe[0])throw new U("Invalid signature integer: negative");if(0===oe[0]&&!(128&oe[1]))throw new U("Invalid signature integer: unnecessary leading zero");return{d:Ao(oe),l:R.subarray(V+2)}},toSig(R){const{Err:U}=el,V="string"==typeof R?Ja(R):R;if(!(V instanceof Uint8Array))throw new Error("ui8a expected");let oe=V.length;if(oe<2||48!=V[0])throw new U("Invalid signature tag");if(V[1]!==oe-2)throw new U("Invalid signature: incorrect length");const{d:Ae,l:Be}=el._parseInt(V.subarray(2)),{d:gt,l:It}=el._parseInt(Be);if(It.length)throw new U("Invalid signature: left bytes after parsing");return{r:Ae,s:gt}},hexFromSig(R){const U=on=>8&Number.parseInt(on[0],16)?"00"+on:on,V=on=>{const An=on.toString(16);return 1&An.length?`0${An}`:An},oe=U(V(R.s)),Ae=U(V(R.r)),Be=oe.length/2,gt=Ae.length/2,It=V(Be),Ht=V(gt);return`30${V(gt+Be+4)}02${Ht}${Ae}02${It}${oe}`}},qs=BigInt(0),Go=BigInt(1),Ns=(BigInt(2),BigInt(3));function ad(R){const U=function th(R){const U=sd(R);return ca(U,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...U})}(R),{Fp:V,n:oe}=U,Ae=V.BYTES+1,Be=2*V.BYTES+1;function It(yr){return Yr(yr,oe)}function Ht(yr){return xi(yr,oe)}const{ProjectivePoint:on,normPrivateKeyToScalar:An,weierstrassEquation:Zt,isWithinCurveOrder:zn}=function yc(R){const U=function oc(R){const U=sd(R);ca(U,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:V,Fp:oe,a:Ae}=U;if(V){if(!oe.eql(Ae,oe.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof V||"bigint"!=typeof V.beta||"function"!=typeof V.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...U})}(R),{Fp:V}=U,oe=U.toBytes||((nr,Mn,jn)=>{const Qn=Mn.toAffine();return Fr(Uint8Array.from([4]),V.toBytes(Qn.x),V.toBytes(Qn.y))}),Ae=U.fromBytes||(nr=>{const Mn=nr.subarray(1);return{x:V.fromBytes(Mn.subarray(0,V.BYTES)),y:V.fromBytes(Mn.subarray(V.BYTES,2*V.BYTES))}});function Be(nr){const{a:Mn,b:jn}=U,Qn=V.sqr(nr),ir=V.mul(Qn,nr);return V.add(V.add(ir,V.mul(nr,Mn)),jn)}if(!V.eql(V.sqr(U.Gy),Be(U.Gx)))throw new Error("bad generator point: equation left != right");function gt(nr){return"bigint"==typeof nr&&qsV.eql(Vn,V.ZERO);return ir(jn)&&ir(Qn)?Zt.ZERO:new Zt(jn,Qn,V.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Mn){const jn=V.invertBatch(Mn.map(Qn=>Qn.pz));return Mn.map((Qn,ir)=>Qn.toAffine(jn[ir])).map(Zt.fromAffine)}static fromHex(Mn){const jn=Zt.fromAffine(Ae(Po("pointHex",Mn)));return jn.assertValidity(),jn}static fromPrivateKey(Mn){return Zt.BASE.multiply(Ht(Mn))}_setWindowSize(Mn){this._WINDOW_SIZE=Mn,on.delete(this)}assertValidity(){if(this.is0()){if(U.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:Mn,y:jn}=this.toAffine();if(!V.isValid(Mn)||!V.isValid(jn))throw new Error("bad point: x or y not FE");const Qn=V.sqr(jn),ir=Be(Mn);if(!V.eql(Qn,ir))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Mn}=this.toAffine();if(V.isOdd)return!V.isOdd(Mn);throw new Error("Field doesn't support isOdd")}equals(Mn){An(Mn);const{px:jn,py:Qn,pz:ir}=this,{px:Vn,py:dr,pz:Pr}=Mn,Ir=V.eql(V.mul(jn,Pr),V.mul(Vn,ir)),Gr=V.eql(V.mul(Qn,Pr),V.mul(dr,ir));return Ir&&Gr}negate(){return new Zt(this.px,V.neg(this.py),this.pz)}double(){const{a:Mn,b:jn}=U,Qn=V.mul(jn,Ns),{px:ir,py:Vn,pz:dr}=this;let Pr=V.ZERO,Ir=V.ZERO,Gr=V.ZERO,Ur=V.mul(ir,ir),Yi=V.mul(Vn,Vn),Qi=V.mul(dr,dr),Ii=V.mul(ir,Vn);return Ii=V.add(Ii,Ii),Gr=V.mul(ir,dr),Gr=V.add(Gr,Gr),Pr=V.mul(Mn,Gr),Ir=V.mul(Qn,Qi),Ir=V.add(Pr,Ir),Pr=V.sub(Yi,Ir),Ir=V.add(Yi,Ir),Ir=V.mul(Pr,Ir),Pr=V.mul(Ii,Pr),Gr=V.mul(Qn,Gr),Qi=V.mul(Mn,Qi),Ii=V.sub(Ur,Qi),Ii=V.mul(Mn,Ii),Ii=V.add(Ii,Gr),Gr=V.add(Ur,Ur),Ur=V.add(Gr,Ur),Ur=V.add(Ur,Qi),Ur=V.mul(Ur,Ii),Ir=V.add(Ir,Ur),Qi=V.mul(Vn,dr),Qi=V.add(Qi,Qi),Ur=V.mul(Qi,Ii),Pr=V.sub(Pr,Ur),Gr=V.mul(Qi,Yi),Gr=V.add(Gr,Gr),Gr=V.add(Gr,Gr),new Zt(Pr,Ir,Gr)}add(Mn){An(Mn);const{px:jn,py:Qn,pz:ir}=this,{px:Vn,py:dr,pz:Pr}=Mn;let Ir=V.ZERO,Gr=V.ZERO,Ur=V.ZERO;const Yi=U.a,Qi=V.mul(U.b,Ns);let Ii=V.mul(jn,Vn),Zi=V.mul(Qn,dr),Bo=V.mul(ir,Pr),Ds=V.add(jn,Qn),yr=V.add(Vn,dr);Ds=V.mul(Ds,yr),yr=V.add(Ii,Zi),Ds=V.sub(Ds,yr),yr=V.add(jn,ir);let jr=V.add(Vn,Pr);return yr=V.mul(yr,jr),jr=V.add(Ii,Bo),yr=V.sub(yr,jr),jr=V.add(Qn,ir),Ir=V.add(dr,Pr),jr=V.mul(jr,Ir),Ir=V.add(Zi,Bo),jr=V.sub(jr,Ir),Ur=V.mul(Yi,yr),Ir=V.mul(Qi,Bo),Ur=V.add(Ir,Ur),Ir=V.sub(Zi,Ur),Ur=V.add(Zi,Ur),Gr=V.mul(Ir,Ur),Zi=V.add(Ii,Ii),Zi=V.add(Zi,Ii),Bo=V.mul(Yi,Bo),yr=V.mul(Qi,yr),Zi=V.add(Zi,Bo),Bo=V.sub(Ii,Bo),Bo=V.mul(Yi,Bo),yr=V.add(yr,Bo),Ii=V.mul(Zi,yr),Gr=V.add(Gr,Ii),Ii=V.mul(jr,yr),Ir=V.mul(Ds,Ir),Ir=V.sub(Ir,Ii),Ii=V.mul(Ds,Zi),Ur=V.mul(jr,Ur),Ur=V.add(Ur,Ii),new Zt(Ir,Gr,Ur)}subtract(Mn){return this.add(Mn.negate())}is0(){return this.equals(Zt.ZERO)}wNAF(Mn){return Wn.wNAFCached(this,on,Mn,jn=>{const Qn=V.invertBatch(jn.map(ir=>ir.pz));return jn.map((ir,Vn)=>ir.toAffine(Qn[Vn])).map(Zt.fromAffine)})}multiplyUnsafe(Mn){const jn=Zt.ZERO;if(Mn===qs)return jn;if(It(Mn),Mn===Go)return this;const{endo:Qn}=U;if(!Qn)return Wn.unsafeLadder(this,Mn);let{k1neg:ir,k1:Vn,k2neg:dr,k2:Pr}=Qn.splitScalar(Mn),Ir=jn,Gr=jn,Ur=this;for(;Vn>qs||Pr>qs;)Vn&Go&&(Ir=Ir.add(Ur)),Pr&Go&&(Gr=Gr.add(Ur)),Ur=Ur.double(),Vn>>=Go,Pr>>=Go;return ir&&(Ir=Ir.negate()),dr&&(Gr=Gr.negate()),Gr=new Zt(V.mul(Gr.px,Qn.beta),Gr.py,Gr.pz),Ir.add(Gr)}multiply(Mn){It(Mn);let Qn,ir,jn=Mn;const{endo:Vn}=U;if(Vn){const{k1neg:dr,k1:Pr,k2neg:Ir,k2:Gr}=Vn.splitScalar(jn);let{p:Ur,f:Yi}=this.wNAF(Pr),{p:Qi,f:Ii}=this.wNAF(Gr);Ur=Wn.constTimeNegate(dr,Ur),Qi=Wn.constTimeNegate(Ir,Qi),Qi=new Zt(V.mul(Qi.px,Vn.beta),Qi.py,Qi.pz),Qn=Ur.add(Qi),ir=Yi.add(Ii)}else{const{p:dr,f:Pr}=this.wNAF(jn);Qn=dr,ir=Pr}return Zt.normalizeZ([Qn,ir])[0]}multiplyAndAddUnsafe(Mn,jn,Qn){const ir=Zt.BASE,Vn=(Pr,Ir)=>Ir!==qs&&Ir!==Go&&Pr.equals(ir)?Pr.multiply(Ir):Pr.multiplyUnsafe(Ir),dr=Vn(this,jn).add(Vn(Mn,Qn));return dr.is0()?void 0:dr}toAffine(Mn){const{px:jn,py:Qn,pz:ir}=this,Vn=this.is0();null==Mn&&(Mn=Vn?V.ONE:V.inv(ir));const dr=V.mul(jn,Mn),Pr=V.mul(Qn,Mn),Ir=V.mul(ir,Mn);if(Vn)return{x:V.ZERO,y:V.ZERO};if(!V.eql(Ir,V.ONE))throw new Error("invZ was invalid");return{x:dr,y:Pr}}isTorsionFree(){const{h:Mn,isTorsionFree:jn}=U;if(Mn===Go)return!0;if(jn)return jn(Zt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Mn,clearCofactor:jn}=U;return Mn===Go?this:jn?jn(Zt,this):this.multiplyUnsafe(U.h)}toRawBytes(Mn=!0){return this.assertValidity(),oe(Zt,this,Mn)}toHex(Mn=!0){return xa(this.toRawBytes(Mn))}}Zt.BASE=new Zt(U.Gx,U.Gy,V.ONE),Zt.ZERO=new Zt(V.ZERO,V.ONE,V.ZERO);const zn=U.nBitLength,Wn=function Fc(R,U){const V=(Ae,Be)=>{const gt=Be.negate();return Ae?gt:Be},oe=Ae=>({windows:Math.ceil(U/Ae)+1,windowSize:2**(Ae-1)});return{constTimeNegate:V,unsafeLadder(Ae,Be){let gt=R.ZERO,It=Ae;for(;Be>ua;)Be&Xl&&(gt=gt.add(It)),It=It.double(),Be>>=Xl;return gt},precomputeWindow(Ae,Be){const{windows:gt,windowSize:It}=oe(Be),Ht=[];let on=Ae,An=on;for(let Zt=0;Zt>=Wn,jn>Ht&&(jn-=zn,gt+=Xl);const Qn=Mn,ir=Mn+Math.abs(jn)-1,dr=jn<0;0===jn?An=An.add(V(nr%2!=0,Be[Qn])):on=on.add(V(dr,Be[ir]))}return{p:on,f:An}},wNAFCached(Ae,Be,gt,It){const Ht=Ae._WINDOW_SIZE||1;let on=Be.get(Ae);return on||(on=this.precomputeWindow(Ae,Ht),1!==Ht&&Be.set(Ae,It(on))),this.wNAF(Ht,on,gt)}}}(Zt,U.endo?Math.ceil(zn/2):zn);return{CURVE:U,ProjectivePoint:Zt,normPrivateKeyToScalar:Ht,weierstrassEquation:Be,isWithinCurveOrder:gt}}({...U,toBytes(yr,jr,Fi){const $i=jr.toAffine(),mo=V.toBytes($i.x),ps=Fr;return Fi?ps(Uint8Array.from([jr.hasEvenY()?2:3]),mo):ps(Uint8Array.from([4]),mo,V.toBytes($i.y))},fromBytes(yr){const jr=yr.length,Fi=yr[0],$i=yr.subarray(1);if(jr!==Ae||2!==Fi&&3!==Fi){if(jr===Be&&4===Fi)return{x:V.fromBytes($i.subarray(0,V.BYTES)),y:V.fromBytes($i.subarray(V.BYTES,2*V.BYTES))};throw new Error(`Point of length ${jr} was invalid. Expected ${Ae} compressed bytes or ${Be} uncompressed bytes`)}{const mo=Ar($i);if(!function gt(yr){return qsxa(no(yr,U.nByteLength));function nr(yr){return yr>oe>>Go}const jn=(yr,jr,Fi)=>Ar(yr.slice(jr,Fi));class Qn{constructor(jr,Fi,$i){this.r=jr,this.s=Fi,this.recovery=$i,this.assertValidity()}static fromCompact(jr){const Fi=U.nByteLength;return jr=Po("compactSignature",jr,2*Fi),new Qn(jn(jr,0,Fi),jn(jr,Fi,2*Fi))}static fromDER(jr){const{r:Fi,s:$i}=el.toSig(Po("DER",jr));return new Qn(Fi,$i)}assertValidity(){if(!zn(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!zn(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(jr){return new Qn(this.r,this.s,jr)}recoverPublicKey(jr){const{r:Fi,s:$i,recovery:mo}=this,ps=Gr(Po("msgHash",jr));if(null==mo||![0,1,2,3].includes(mo))throw new Error("recovery id invalid");const gs=2===mo||3===mo?Fi+U.n:Fi;if(gs>=V.ORDER)throw new Error("recovery id 2 or 3 invalid");const lc=on.fromHex((1&mo?"03":"02")+Wn(gs)),nl=Ht(gs),cc=It(-ps*nl),Vc=It($i*nl),uc=on.BASE.multiplyAndAddUnsafe(lc,cc,Vc);if(!uc)throw new Error("point at infinify");return uc.assertValidity(),uc}hasHighS(){return nr(this.s)}normalizeS(){return this.hasHighS()?new Qn(this.r,It(-this.s),this.recovery):this}toDERRawBytes(){return Gn(this.toDERHex())}toDERHex(){return el.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Gn(this.toCompactHex())}toCompactHex(){return Wn(this.r)+Wn(this.s)}}const ir={isValidPrivateKey(yr){try{return An(yr),!0}catch{return!1}},normPrivateKeyToScalar:An,randomPrivateKey:()=>{const jr=function cl(R,U,V=!1){const oe=(R=Po("privateHash",R)).length,Ae=Zs(U).nByteLength+8;if(Ae<24||oe1024)throw new Error(`hashToPrivateScalar: expected ${Ae}-1024 bytes of input, got ${oe}`);return Yr(V?So(R):Ar(R),U-$)+$}(U.randomBytes(V.BYTES+8),oe);return no(jr,U.nByteLength)},precompute:(yr=8,jr=on.BASE)=>(jr._setWindowSize(yr),jr.multiply(BigInt(3)),jr)};function dr(yr){const jr=yr instanceof Uint8Array,Fi="string"==typeof yr,$i=(jr||Fi)&&yr.length;return jr?$i===Ae||$i===Be:Fi?$i===2*Ae||$i===2*Be:yr instanceof on}const Ir=U.bits2int||function(yr){const jr=Ar(yr),Fi=8*yr.length-U.nBitLength;return Fi>0?jr>>BigInt(Fi):jr},Gr=U.bits2int_modN||function(yr){return It(Ir(yr))},Ur=Va(U.nBitLength);function Yi(yr){if("bigint"!=typeof yr)throw new Error("bigint expected");if(!(qs<=yr&&yrdc in Fi))throw new Error("sign() legacy options not supported");const{hash:$i,randomBytes:mo}=U;let{lowS:ps,prehash:gs,extraEntropy:Ss}=Fi;null==ps&&(ps=!0),yr=Po("msgHash",yr),gs&&(yr=Po("prehashed msgHash",$i(yr)));const lc=Gr(yr),nl=An(jr),cc=[Yi(nl),Yi(lc)];if(null!=Ss){const dc=!0===Ss?mo(V.BYTES):Ss;cc.push(Po("extraEntropy",dc,V.BYTES))}const Vc=Fr(...cc),uc=lc;return{seed:Vc,k2sig:function Cc(dc){const Hc=Ir(dc);if(!zn(Hc))return;const Wc=Ht(Hc),fa=on.BASE.multiply(Hc).toAffine(),Ga=It(fa.x);if(Ga===qs)return;const fl=It(Wc*It(uc+Ga*nl));if(fl===qs)return;let cu=(fa.x===Ga?0:2)|Number(fa.y&Go),Ql=fl;return ps&&nr(fl)&&(Ql=function Mn(yr){return nr(yr)?It(-yr):yr}(fl),cu^=1),new Qn(Ga,Ql,cu)}}}(yr,jr,Fi);return Di(U.hash.outputLen,U.nByteLength,U.hmac)($i,mo)},verify:function Ds(yr,jr,Fi,$i=Zi){const mo=yr;if(jr=Po("msgHash",jr),Fi=Po("publicKey",Fi),"strict"in $i)throw new Error("options.strict was renamed to lowS");const{lowS:ps,prehash:gs}=$i;let Ss,lc;try{if("string"==typeof mo||mo instanceof Uint8Array)try{Ss=Qn.fromDER(mo)}catch(fa){if(!(fa instanceof el.Err))throw fa;Ss=Qn.fromCompact(mo)}else{if("object"!=typeof mo||"bigint"!=typeof mo.r||"bigint"!=typeof mo.s)throw new Error("PARSE");{const{r:fa,s:Ga}=mo;Ss=new Qn(fa,Ga)}}lc=on.fromHex(Fi)}catch(fa){if("PARSE"===fa.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(ps&&Ss.hasHighS())return!1;gs&&(jr=U.hash(jr));const{r:nl,s:cc}=Ss,Vc=Gr(jr),uc=Ht(cc),Cc=It(Vc*uc),dc=It(nl*uc),Hc=on.BASE.multiplyAndAddUnsafe(lc,Cc,dc)?.toAffine();return!!Hc&&It(Hc.x)===nl},ProjectivePoint:on,Signature:Qn,utils:ir}}BigInt(4);class wc extends El{constructor(U,V){super(),this.finished=!1,this.destroyed=!1,ce.hash(U);const oe=Lo(V);if(this.iHash=U.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 Ae=this.blockLen,Be=new Uint8Array(Ae);Be.set(oe.length>Ae?U.create().update(oe).digest():oe);for(let gt=0;gtnew wc(R,U).update(V).digest();function Xi(R){return{hash:R,hmac:(U,...V)=>su(R,U,function Za(...R){const U=new Uint8Array(R.reduce((oe,Ae)=>oe+Ae.length,0));let V=0;return R.forEach(oe=>{if(!Le(oe))throw new Error("Uint8Array expected");U.set(oe,V),V+=oe.length}),U}(...V)),randomBytes:rc}}su.create=(R,U)=>new wc(R,U);const Tr=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),xs=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),$c=BigInt(1),L=BigInt(2),z=(R,U)=>(R+U/L)/U;const X=function Da(R,U,V=!1,oe={}){if(R<=No)throw new Error(`Expected Fp ORDER > 0, got ${R}`);const{nBitLength:Ae,nByteLength:Be}=Zs(R,U);if(Be>2048)throw new Error("Field lengths over 2048 bytes are not supported");const gt=function di(R){if(R%_e===q){const U=(R+$)/_e;return function(oe,Ae){const Be=oe.pow(Ae,U);if(!oe.eql(oe.sqr(Be),Ae))throw new Error("Cannot find square root");return Be}}if(R%_n===nt){const U=(R-nt)/_n;return function(oe,Ae){const Be=oe.mul(Ae,de),gt=oe.pow(Be,U),It=oe.mul(Ae,gt),Ht=oe.mul(oe.mul(It,de),gt),on=oe.mul(It,oe.sub(Ht,oe.ONE));if(!oe.eql(oe.sqr(on),Ae))throw new Error("Cannot find square root");return on}}return function Qr(R){const U=(R-$)/de;let V,oe,Ae;for(V=R-$,oe=0;V%de===No;V/=de,oe++);for(Ae=de;AeYr(Ht,R),isValid:Ht=>{if("bigint"!=typeof Ht)throw new Error("Invalid field element: expected bigint, got "+typeof Ht);return No<=Ht&&HtHt===No,isOdd:Ht=>(Ht&$)===$,neg:Ht=>Yr(-Ht,R),eql:(Ht,on)=>Ht===on,sqr:Ht=>Yr(Ht*Ht,R),add:(Ht,on)=>Yr(Ht+on,R),sub:(Ht,on)=>Yr(Ht-on,R),mul:(Ht,on)=>Yr(Ht*on,R),pow:(Ht,on)=>function jo(R,U,V){if(V 0");if(V===No)return R.ONE;if(V===$)return U;let oe=R.ONE,Ae=U;for(;V>No;)V&$&&(oe=R.mul(oe,Ae)),Ae=R.sqr(Ae),V>>=$;return oe}(It,Ht,on),div:(Ht,on)=>Yr(Ht*xi(on,R),R),sqrN:Ht=>Ht*Ht,addN:(Ht,on)=>Ht+on,subN:(Ht,on)=>Ht-on,mulN:(Ht,on)=>Ht*on,inv:Ht=>xi(Ht,R),sqrt:oe.sqrt||(Ht=>gt(It,Ht)),invertBatch:Ht=>function Rs(R,U){const V=new Array(U.length),oe=U.reduce((Be,gt,It)=>R.is0(gt)?Be:(V[It]=Be,R.mul(Be,gt)),R.ONE),Ae=R.inv(oe);return U.reduceRight((Be,gt,It)=>R.is0(gt)?Be:(V[It]=R.mul(Be,V[It]),R.mul(Be,gt)),Ae),V}(It,Ht),cmov:(Ht,on,An)=>An?on:Ht,toBytes:Ht=>V?$o(Ht,Be):no(Ht,Be),fromBytes:Ht=>{if(Ht.length!==Be)throw new Error(`Fp.fromBytes: expected ${Be}, got ${Ht.length}`);return V?So(Ht):Ar(Ht)}});return Object.freeze(It)}(Tr,void 0,void 0,{sqrt:function P(R){const U=Tr,V=BigInt(3),oe=BigInt(6),Ae=BigInt(11),Be=BigInt(22),gt=BigInt(23),It=BigInt(44),Ht=BigInt(88),on=R*R*R%U,An=on*on*R%U,Zt=Hr(An,V,U)*An%U,zn=Hr(Zt,V,U)*An%U,Wn=Hr(zn,L,U)*on%U,nr=Hr(Wn,Ae,U)*Wn%U,Mn=Hr(nr,Be,U)*nr%U,jn=Hr(Mn,It,U)*Mn%U,Qn=Hr(jn,Ht,U)*jn%U,ir=Hr(Qn,It,U)*Mn%U,Vn=Hr(ir,V,U)*An%U,dr=Hr(Vn,gt,U)*nr%U,Pr=Hr(dr,oe,U)*on%U,Ir=Hr(Pr,L,U);if(!X.eql(X.sqr(Ir),R))throw new Error("Cannot find square root");return Ir}}),he=function Nu(R,U){const V=oe=>ad({...R,...Xi(oe)});return Object.freeze({...V(U),create:V})}({a:BigInt(0),b:BigInt(7),Fp:X,n:xs,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:R=>{const U=xs,V=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),oe=-$c*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),Ae=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),Be=V,gt=BigInt("0x100000000000000000000000000000000"),It=z(Be*R,U),Ht=z(-oe*R,U);let on=Yr(R-It*V-Ht*Ae,U),An=Yr(-It*oe-Ht*Be,U);const Zt=on>gt,zn=An>gt;if(Zt&&(on=U-on),zn&&(An=U-An),on>gt||An>gt)throw new Error("splitScalar: Endomorphism failed, k="+R);return{k1neg:Zt,k1:on,k2neg:zn,k2:An}}}},Jo);BigInt(0);const au=he.ProjectivePoint,Lu=(0,or.Tq)(ga);function ld(R){return BigInt(`0x${function et(R){if(!Mo(R))throw new Error("Uint8Array expected");let U="";for(let V=0;V{if(!Number.isSafeInteger(R)||R<0||R>2**32-1)throw new Error(`Invalid number=${R}. Should be from 0 to 2 ** 32 - 1`);const U=new Uint8Array(4);return Je(U).setUint32(0,R,!1),U};class fs{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return Je(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 U=this.privateKey;if(!U)throw new Error("No private key");return Lu.encode(this.serialize(this.versions.private,Un(new Uint8Array([0]),U)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return Lu.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(U,V=Pu){if(so(U),8*U.length<128||8*U.length>512)throw new Error(`HDKey: wrong seed length=${U.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const oe=vo(Dr,gi,U);return new fs({versions:V,chainCode:oe.slice(32),privateKey:oe.slice(0,32)})}static fromExtendedKey(U,V=Pu){const oe=Lu.decode(U),Ae=Je(oe),Be=Ae.getUint32(0,!1),gt={versions:V,depth:oe[4],parentFingerprint:Ae.getUint32(5,!1),index:Ae.getUint32(9,!1),chainCode:oe.slice(13,45)},It=oe.slice(45),Ht=0===It[0];if(Be!==V[Ht?"private":"public"])throw new Error("Version mismatch");return new fs(Ht?{...gt,privateKey:It.slice(1)}:{...gt,publicKey:It})}static fromJSON(U){return fs.fromExtendedKey(U.xpriv)}constructor(U){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!U||"object"!=typeof U)throw new Error("HDKey.constructor must not be called directly");if(this.versions=U.versions||Pu,this.depth=U.depth||0,this.chainCode=U.chainCode,this.index=U.index||0,this.parentFingerprint=U.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(U.publicKey&&U.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(U.privateKey){if(!he.utils.isValidPrivateKey(U.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof U.privateKey?U.privateKey:ld(U.privateKey),this.privKeyBytes=function wn(R){return function $t(R){if("string"!=typeof R)throw new Error("hex string expected, got "+typeof R);const U=R.length,V=U/2;if(U%2)throw new Error("padded hex string expected, got unpadded hex of length "+U);const oe=new Uint8Array(V);for(let Ae=0,Be=0;Ae=lu)throw new Error("Invalid index");"'"===Be[2]&&(gt+=lu),oe=oe.deriveChild(gt)}return oe}deriveChild(U){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let V=Il(U);if(U>=lu){const It=this.privateKey;if(!It)throw new Error("Could not derive hardened child key");V=Un(new Uint8Array([0]),It,V)}else V=Un(this.pubKey,V);const oe=vo(Dr,this.chainCode,V),Ae=ld(oe.slice(0,32)),Be=oe.slice(32);if(!he.utils.isValidPrivateKey(Ae))throw new Error("Tweak bigger than curve order");const gt={versions:this.versions,chainCode:Be,depth:this.depth+1,parentFingerprint:this.fingerprint,index:U};try{if(this.privateKey){const It=Yr(this.privKey+Ae,he.CURVE.n);if(!he.utils.isValidPrivateKey(It))throw new Error("The tweak was out of range or the resulted private key is invalid");gt.privateKey=It}else{const It=au.fromHex(this.pubKey).add(au.fromPrivateKey(Ae));if(It.equals(au.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");gt.publicKey=It.toRawBytes(!0)}return new fs(gt)}catch{return this.deriveChild(U+1)}}sign(U){if(!this.privateKey)throw new Error("No privateKey set!");return so(U,32),he.sign(U,this.privKey).toCompactRawBytes()}verify(U,V){if(so(U,32),so(V,64),!this.publicKey)throw new Error("No publicKey set!");let oe;try{oe=he.Signature.fromCompact(V)}catch{return!1}return he.verify(oe,U,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(U,V){if(!this.chainCode)throw new Error("No chainCode set");return so(V,33),Un(Il(U),new Uint8Array([this.depth]),Il(this.parentFingerprint),Il(this.index),this.chainCode,V)}}var ea=r(4438);let js=(()=>{class R{constructor(){this.encoder=new TextEncoder,this.decoder=new TextDecoder}getPasswordKey(V){var oe=this;return(0,a.A)(function*(){return window.crypto.subtle.importKey("raw",oe.encoder.encode(V),"PBKDF2",!1,["deriveKey"])})()}deriveKey(V,oe,Ae){return(0,a.A)(function*(){return window.crypto.subtle.deriveKey({name:"PBKDF2",salt:oe,iterations:25e4,hash:"SHA-256"},V,{name:"AES-GCM",length:256},!1,Ae)})()}encryptData(V,oe){var Ae=this;return(0,a.A)(function*(){try{const Be=window.crypto.getRandomValues(new Uint8Array(16)),gt=window.crypto.getRandomValues(new Uint8Array(12)),It=yield Ae.getPasswordKey(oe),Ht=yield Ae.deriveKey(It,Be,["encrypt"]),on=new Uint8Array(yield window.crypto.subtle.encrypt({name:"AES-GCM",iv:gt},Ht,Ae.encoder.encode(V))),An=new Uint8Array(Be.length+gt.length+on.length);return An.set(Be,0),An.set(gt,Be.length),An.set(on,Be.length+gt.length),or.K3.encode(An)}catch(Be){throw console.error("Encryption failed:",Be),new Error("Failed to encrypt data.")}})()}decryptData(V,oe){var Ae=this;return(0,a.A)(function*(){try{const Be=or.K3.decode(V),gt=Be.slice(0,16),It=Be.slice(16,28),Ht=Be.slice(28),on=yield Ae.getPasswordKey(oe),An=yield Ae.deriveKey(on,gt,["decrypt"]),Zt=yield window.crypto.subtle.decrypt({name:"AES-GCM",iv:It},An,Ht);return Ae.decoder.decode(Zt)}catch(Be){throw console.error("Decryption failed:",Be),new Error("Failed to decrypt data.")}})()}static{this.\u0275fac=function(oe){return new(oe||R)}}static{this.\u0275prov=ea.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})();var kl=r(5351),Bu=r(2332);let Wa=(()=>{class R{constructor(V,oe,Ae){this.securityService=V,this.dialog=oe,this._nostrLoginService=Ae,this.localStorageSecretKeyName="secretKey",this.localStoragePublicKeyName="publicKey",this.localStorageNpubName="npub",this.localStorageNsecName="nsec",this.storageKey="userPassword"}savePassword(V,oe){const Ae=Date.now()+60*oe*1e3;sessionStorage.setItem(this.storageKey,JSON.stringify({password:V,expirationTime:Ae}))}getPassword(){const V=sessionStorage.getItem(this.storageKey);if(!V)return null;const{password:oe,expirationTime:Ae}=JSON.parse(V);return Date.now()>Ae?(this.clearPassword(),null):oe}clearPassword(){sessionStorage.removeItem(this.storageKey)}changePassword(V,oe,Ae){var Be=this;return(0,a.A)(function*(){try{const gt=yield Be.getSecretKey(V);if(!gt)throw new Error("Incorrect current password.");yield Be.setSecretKey(gt,oe);const It=yield Be.getNsec(V);return It&&(yield Be.setNsec(It,oe)),Be.clearPassword(),Ae&&Be.savePassword(oe,60),!0}catch(gt){return console.error("Failed to change password: ",gt),!1}})()}getUsername(V){return V.startsWith("npub")&&(V=C.Qe.decode(V).data.toString()),`@${localStorage.getItem(`${V}`)||C.Qe.npubEncode(V)}`}npub(){let V=this.getPublicKey();return C.Qe.npubEncode(V)}requestPassword(){var V=this;return(0,a.A)(function*(){return V.dialog.open(y.b,{width:"300px",disableClose:!0}).afterClosed().toPromise()})()}nsec(V){var oe=this;return(0,a.A)(function*(){if(oe.usingSecretKey()){let Ae=yield oe.getSecretKey(V);const Be=Uint8Array.from(w.hp.from(Ae,"hex"));return C.Qe.nsecEncode(Be)}return""})()}pubkey(V){return C.Qe.decode(V).data.toString()}setPublicKey(V){const oe=C.Qe.npubEncode(V);window.localStorage.setItem(this.localStoragePublicKeyName,V),window.localStorage.setItem(this.localStorageNpubName,oe)}getPublicKey(){const V=localStorage.getItem("__nostrlogin_nip46");if(V)try{return JSON.parse(V).pubkey||""}catch(oe){console.error("Error parsing nostr login data:",oe)}return localStorage.getItem(this.localStoragePublicKeyName)||""}setNpub(V){localStorage.setItem(this.localStorageNpubName,V)}getNpub(){return window.localStorage.getItem(this.localStorageNpubName)||""}setSecretKey(V,oe=""){var Ae=this;return(0,a.A)(function*(){if(""===oe)localStorage.setItem(Ae.localStorageSecretKeyName,V),localStorage.setItem("usePassword","false");else{const Be=yield Ae.securityService.encryptData(V,oe);localStorage.setItem(Ae.localStorageSecretKeyName,Be),localStorage.setItem("usePassword","true")}})()}getSecretKey(V=""){var oe=this;return(0,a.A)(function*(){const Ae=localStorage.getItem(oe.localStorageSecretKeyName),Be="true"===localStorage.getItem("usePassword");return Ae?Be?yield oe.securityService.decryptData(Ae,V):Ae:null})()}getDecryptedSecretKey(){var V=this;return(0,a.A)(function*(){try{if("true"!==localStorage.getItem("usePassword"))return V.getSecretKey();const Ae=V.getPassword();if(Ae)return yield V.getSecretKey(Ae);const Be=yield V.requestPassword();if(Be?.password){const gt=yield V.getSecretKey(Be.password);return 0!==Be.duration&&V.savePassword(Be.password,Be.duration),gt}return console.error("Password not provided"),null}catch(oe){return console.error("Error decrypting private key:",oe),null}})()}setNsec(V,oe=""){var Ae=this;return(0,a.A)(function*(){if(""===oe)localStorage.setItem(Ae.localStorageNsecName,V),localStorage.setItem("usePassword","false");else{const Be=yield Ae.securityService.encryptData(V,oe);localStorage.setItem(Ae.localStorageNsecName,Be),localStorage.setItem("usePassword","true")}})()}getNsec(V=""){var oe=this;return(0,a.A)(function*(){const Ae=localStorage.getItem(oe.localStorageNsecName),Be="true"===localStorage.getItem("usePassword");return Ae?Be?yield oe.securityService.decryptData(Ae,V):Ae:null})()}setPublicKeyFromExtension(V){this.setPublicKey(V)}handleLoginWithKey(V,oe=""){let Ae,Be,gt,It;try{if(V.startsWith(this.localStorageNsecName)){const on=C.Qe.decode(V);if(on.type!==this.localStorageNsecName)throw new Error("Invalid nsec key.");Ae=w.hp.from(on.data).toString("hex")}else{if(!/^[0-9a-fA-F]{64}$/.test(V))throw new Error("Invalid key format. Must be either nsec or hex.");Ae=V}const Ht=new Uint8Array(w.hp.from(Ae,"hex"));return Be=(0,C.lG)(Ht),It=C.Qe.npubEncode(Be),gt=C.Qe.nsecEncode(Ht),this.setSecretKey(Ae,oe),this.setNsec(It,oe),this.setPublicKey(Be),this.setNpub(It),!0}catch(Ht){return console.error("Error during key handling: ",Ht),!1}}handleLoginWithMnemonic(V,oe="",Ae=""){try{const gt=function jc(R,U,V=0){let Ae=fs.fromMasterSeed(Oi(R,U)).derive(`m/44'/1237'/${V}'/0/0`).privateKey;if(!Ae)throw new Error("could not derive private key");return Ae}(V,oe,0),It=(0,c.My)(gt),Ht=(0,C.lG)(gt),on=C.Qe.npubEncode(Ht),An=C.Qe.nsecEncode(gt);return this.setSecretKey(It,Ae),this.setNsec(An,Ae),this.setPublicKey(Ht),this.setNpub(on),window.localStorage.setItem(this.localStorageNsecName,An),!0}catch(Be){return console.error("Error during login with mnemonic:",Be),!1}}logout(){window.localStorage.removeItem(this.localStorageSecretKeyName),window.localStorage.removeItem(this.localStoragePublicKeyName),window.localStorage.removeItem(this.localStorageNpubName),window.localStorage.removeItem(this.localStorageNsecName),this._nostrLoginService.logout()}usingNostrBrowserExtension(){return!this.usingSecretKey()&&!!globalThis.nostr}usingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}generateAndStoreKeys(V=""){try{const oe=(0,C.Bq)(),Ae=w.hp.from(oe).toString("hex"),Be=(0,C.lG)(oe),gt=C.Qe.npubEncode(Be),It=C.Qe.nsecEncode(oe);return this.setSecretKey(Ae,V),this.setNsec(It,V),this.setPublicKey(Be),this.setNpub(gt),{secretKey:Ae,pubkey:Be,npub:gt,nsec:It}}catch(oe){return console.error("Error during key generation:",oe),null}}handleLoginWithExtension(){var V=this;return(0,a.A)(function*(){const oe=globalThis;if(!oe.nostr)return!1;try{const Ae=yield oe.nostr.getPublicKey();if(!Ae)throw new Error("Public key not available from Nostr extension.");return V.setPublicKeyFromExtension(Ae),!0}catch(Ae){return console.error("Failed to connect to Nostr extension:",Ae),!1}})()}encryptMessage(V,oe,Ae){return(0,a.A)(function*(){console.log(Ae);try{return yield C.sh.encrypt(V,oe,Ae)}catch(Be){throw console.error("Error encrypting message:",Be),Be}})()}encryptMessageWithExtension(V,oe){return(0,a.A)(function*(){return yield globalThis.nostr.nip04.encrypt(oe,V)})()}decryptMessageWithExtension(V,oe){return(0,a.A)(function*(){const Ae=globalThis;if(Ae.nostr&&"function"==typeof Ae.nostr.nip04?.decrypt)try{return yield Ae.nostr.nip04.decrypt(V,oe)}catch(Be){return console.error("Decryption failed:",Be),"*Failed to decrypt content: "+Be.message+"*"}return console.warn("Nostr extension or decrypt method is unavailable"),"Attempted Nostr Window decryption and failed."})()}decryptMessage(V,oe,Ae){return(0,a.A)(function*(){try{if(!V||!oe||!Ae)throw new Error("Private key, public key, or encrypted message is missing or undefined.");const Be=yield C.sh.decrypt(V,oe,Ae);if(!Be)throw new Error("Decryption returned an empty message.");return Be}catch(Be){throw Be}})()}getUnsignedEvent(V,oe,Ae){return{kind:V,pubkey:this.getPublicKey(),tags:oe,content:Ae,created_at:Math.floor(Date.now()/1e3)}}getSignedEvent(V,oe){const Ae=(0,c.aT)(oe);return(0,C.pC)(V,Ae)}getMuteList(){return(localStorage.getItem("muteList")||"").split(",")}setMuteListFromTags(V){let oe=[];V.forEach(Ae=>{oe.push(Ae[1])}),this.setMuteList(oe)}setMuteList(V){if(0===V.length)localStorage.setItem("muteList","");else{let oe=Array.from(new Set(V));localStorage.setItem("muteList",oe.filter(Ae=>Ae).join(","))}}signEventWithExtension(V){return(0,a.A)(function*(){const oe=globalThis;if(oe.nostr)return yield oe.nostr.signEvent(V);throw new Error("Tried to sign event with extension but failed")})()}signDMWithExtension(V,oe){return(0,a.A)(function*(){const Ae=globalThis;if(Ae.nostr&&Ae.nostr.nip04?.encrypt)return yield Ae.nostr.nip04.encrypt(V,oe);throw new Error("Failed to Sign with extension")})()}isUsingExtension(){var V=this;return(0,a.A)(function*(){const oe=globalThis;if(oe.nostr&&oe.nostr.getPublicKey)try{return!localStorage.getItem(V.localStorageSecretKeyName)}catch(Ae){return console.error("Failed to check Nostr extension:",Ae),!1}return!1})()}isUsingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}getNpubFromPubkey(V){try{return C.Qe.npubEncode(V)}catch(oe){return console.error("Error converting hex to npub:",oe),""}}getNsecFromSeckey(V){try{const oe=Uint8Array.from(w.hp.from(V,"hex"));return C.Qe.nsecEncode(oe)}catch(oe){return console.error("Error converting hex to nsec:",oe),""}}getHexFromNpub(V){try{const oe=C.Qe.decode(V);if("npub"!==oe.type)throw new Error("Invalid npub format.");return oe.data.toString()}catch(oe){return console.error("Error converting npub to hex:",oe),""}}processKey(V){try{if(V.startsWith("npub")){const oe=this.getHexFromNpub(V);if(!oe)throw new Error("Failed to convert npub to hex.");return oe}if(/^[0-9a-fA-F]{64}$/.test(V))return V;throw new Error("Invalid key format. Must be either hex or npub.")}catch(oe){return console.error("Error processing key:",oe),""}}static{this.\u0275fac=function(oe){return new(oe||R)(ea.KVO(js),ea.KVO(kl.bZ),ea.KVO(Bu.v))}}static{this.\u0275prov=ea.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})()},2083:(o,s,r)=>{"use strict";r.d(s,{d:()=>C});var i=r(467),a=r(8418),c=r(4438),y=r(5645),w=r(7291);let C=(()=>{class T{constructor(A,I){this.subscriptionService=A,this.storageService=I,this.isProfileLoaded=!1}loadUserProfile(A){var I=this;return(0,i.A)(function*(){I.isProfileLoaded||(yield I.subscribeToUserProfile(A),yield I.subscribeToUserChats(A),yield I.subscribeToUserPosts(A),yield I.subscribeToMyLikes(A),I.isProfileLoaded=!0)})()}subscribeToUserProfile(A){var I=this;return(0,i.A)(function*(){const N=yield I.storageService.getLastUpdateDate("users"),K={kinds:[0],authors:[A],limit:1};N&&(K.since=parseInt(N,10)),I.subscriptionService.addSubscriptions([K],Z=>{const ne=I.parseMetadataEvent(Z);I.storageService.saveProfile(A,ne)})})()}subscribeToUserChats(A){var I=this;return(0,i.A)(function*(){const N=yield I.storageService.getLastUpdateDate("chats"),K=[{kinds:[a.rV],authors:[A],limit:300},{kinds:[a.rV],"#p":[A],limit:300}];if(N){const Z=parseInt(N,10);K.forEach(ne=>ne.since=Z)}else I.storageService.removeAllChats();I.subscriptionService.addSubscriptions(K,Z=>{const ne=I.parseChatEvent(Z);I.storageService.saveChatEvent(ne)})})()}subscribeToUserPosts(A){var I=this;return(0,i.A)(function*(){const N=yield I.storageService.getLastUpdateDate("posts"),K={kinds:[a.av],authors:[A]};N&&(K.since=parseInt(N,10)),I.subscriptionService.addSubscriptions([K],Z=>{I.isReply(Z)||I.storageService.savePost(Z)})})()}isReply(A){return A.tags.filter(N=>"e"===N[0]||"p"===N[0]).length>0}subscribeToMyLikes(A){var I=this;return(0,i.A)(function*(){const N=yield I.storageService.getLastUpdateDate("myLikes"),K={kinds:[a.qT],authors:[A]};N&&(K.since=parseInt(N,10)),I.subscriptionService.addSubscriptions([K],Z=>{I.storageService.saveLike(Z)})})()}parseMetadataEvent(A){try{return JSON.parse(A.content)}catch(I){return console.error("Error parsing metadata event:",I),null}}parseChatEvent(A){try{const I=A.content.split("?iv=");return{id:A.id,kind:A.kind,pubkey:A.pubkey,created_at:A.created_at,tags:A.tags,content:I[0],iv:I[1],IsRead:!1}}catch(I){return console.error("Error parsing chat event:",I),null}}static{this.\u0275fac=function(I){return new(I||T)(c.KVO(y.n),c.KVO(w.n))}}static{this.\u0275prov=c.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},7291:(o,s,r)=>{"use strict";r.d(s,{n:()=>C});var i=r(467),a=r(119),c=r.n(a),y=r(4412),w=r(4438);let C=(()=>{class T{constructor(){this.profileSubject=new y.t(null),this.projectsSubject=new y.t([]),this.projectStatsSubject=new y.t({}),this.chatEventsSubject=new y.t([]),this.unreadChatCountSubject=new y.t(0),this.contactsSubject=new y.t({pubKey:"",contacts:[]}),this.postsSubject=new y.t(null),this.myLikesSubject=new y.t([]),this.notificationsSubject=new y.t([]),this.contactStatsSubject=new y.t({totalContacts:0,followersCount:0,followingCount:0}),this.investorsSubject=new y.t([]),this.projectDetailsSubject=new y.t([]),this.contactStatsMap={},this.profileStore=this.createStore("profiles"),this.updateHistoryStore=this.createStore("updateHistory"),this.contactsStore=this.createStore("contacts"),this.chatsStore=this.createStore("chats"),this.postsStore=this.createStore("posts"),this.myLikesStore=this.createStore("myLikes"),this.notificationsStore=this.createStore("notifications"),this.projectsStore=this.createStore("projects"),this.projectDetailsStore=this.createStore("projectDetails"),this.projectStatsStore=this.createStore("projectStatistics"),this.investorsStore=this.createStore("investors"),this.loadAllProjectsFromDB(),this.loadAllProjectDetailsFromDB(),this.loadAllProjectStatsFromDB(),this.loadAllInvestorsFromDB(),this.loadAllContactsFromDB(),this.loadAllChatEventsFromDB(),this.loadAllMyLikesFromDB(),this.loadAllNotificationsFromDB(),this.calculateAndStoreAllContactStats()}createStore(A){return c().createInstance({driver:c().INDEXEDDB,name:"angor-hub",version:1,storeName:A})}get profile$(){return this.profileSubject.asObservable()}get projects$(){return this.projectsSubject.asObservable()}get projectStats$(){return this.projectStatsSubject.asObservable()}get chatEvents$(){return this.chatEventsSubject.asObservable()}get unreadChatCount$(){return this.unreadChatCountSubject.asObservable()}get contacts$(){return this.contactsSubject.asObservable()}get posts$(){return this.postsSubject.asObservable()}get contactStats$(){return this.contactStatsSubject.asObservable()}get myLikes$(){return this.myLikesSubject.asObservable()}get notifications$(){return this.notificationsSubject.asObservable()}get investors$(){return this.investorsSubject.asObservable()}get projectDetails$(){return this.projectDetailsSubject.asObservable()}saveInvestor(A){var I=this;return(0,i.A)(function*(){try{const N=`${A.projectIdentifier}-${A.investorPublicKey}`;yield I.investorsStore.setItem(N,A);const Z=[...I.investorsSubject.value.filter(ne=>ne.projectIdentifier!==A.projectIdentifier||ne.investorPublicKey!==A.investorPublicKey),A];I.investorsSubject.next(Z),console.log("Investor saved successfully:",A)}catch(N){console.error("Error saving investor:",N)}})()}getInvestor(A,I){var N=this;return(0,i.A)(function*(){try{const K=`${A}-${I}`;return(yield N.investorsStore.getItem(K))||null}catch(K){return console.error("Error retrieving investor:",K),null}})()}getAllInvestors(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.investorsStore.iterate(N=>{I.push(N)}),console.log("Retrieved all investors:",I),I}catch(I){return console.error("Error retrieving all investors:",I),[]}})()}saveProjectDetails(A){var I=this;return(0,i.A)(function*(){try{const N=A.projectIdentifier;yield I.projectDetailsStore.setItem(N,A);const Z=[...I.projectDetailsSubject.value.filter(ne=>ne.projectIdentifier!==A.projectIdentifier),A];I.projectDetailsSubject.next(Z),console.log("Project details saved successfully:",A)}catch(N){console.error("Error saving project details:",N)}})()}getProjectDetails(A){var I=this;return(0,i.A)(function*(){try{return(yield I.projectDetailsStore.getItem(A))||null}catch(N){return console.error("Error retrieving project details:",N),null}})()}getAllProjectDetails(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.projectDetailsStore.iterate(N=>{I.push(N)}),console.log("Retrieved all project details:",I),I}catch(I){return console.error("Error retrieving all project details:",I),[]}})()}saveContacts(A,I){var N=this;return(0,i.A)(function*(){try{const K=[];for(const Z of I){const ne=`${A}:${Z.id}`;yield N.contactsStore.setItem(ne,Z),K.push(Z)}N.contactsSubject.next({pubKey:A,contacts:K}),yield N.calculateAndStoreAllContactStats(),yield N.setUpdateHistory("contacts")}catch(K){console.error("Error saving contacts:",K)}})()}calculateAndStoreAllContactStats(){var A=this;return(0,i.A)(function*(){try{const I={};yield A.contactsStore.iterate((N,K)=>{const[Z]=K.split(":");I[Z]||(I[Z]={totalContacts:0,followersCount:0,followingCount:0}),I[Z].totalContacts++,N.isFollower?I[Z].followersCount++:I[Z].followingCount++});for(const N in I)A.contactStatsMap[N]||(A.contactStatsMap[N]=new y.t({pubKey:N,totalContacts:0,followersCount:0,followingCount:0})),A.contactStatsMap[N].next({pubKey:N,totalContacts:I[N].totalContacts,followersCount:I[N].followersCount,followingCount:I[N].followingCount})}catch(I){console.error("Error calculating and storing contact stats:",I)}})()}getContactStats$(A){return this.contactStatsMap[A]||(this.contactStatsMap[A]=new y.t({pubKey:A,totalContacts:0,followersCount:0,followingCount:0}),this.calculateAndStoreAllContactStats()),this.contactStatsMap[A].asObservable()}getAllContactsPaginated(A,I,N){var K=this;return(0,i.A)(function*(){try{const Z=[];yield K.contactsStore.iterate((pe,Te)=>{const[xe]=Te.split(":");xe===A&&Z.push(pe)});const ne=Z.length,be=(I-1)*N;return{contacts:Z.slice(be,be+N),totalCount:ne}}catch(Z){return console.error("Error retrieving paginated contacts for pubKey:",Z),{contacts:[],totalCount:0}}})()}getAllContacts(A=""){var I=this;return(0,i.A)(function*(){try{const N=[];return yield I.contactsStore.iterate((K,Z)=>{const[ne,be]=Z.split(":");(""===A||ne===A)&&N.push({pubKey:ne,contact:K})}),N}catch(N){return console.error("Error retrieving contacts:",N),[]}})()}getContactStats(A){var I=this;return(0,i.A)(function*(){try{let N=0,K=0,Z=0;return yield I.contactsStore.iterate((ne,be)=>{const[me,pe]=be.split(":");me===A&&(N++,ne.isFollower?K++:Z++)}),{totalContacts:N,followersCount:K,followingCount:Z}}catch(N){return console.error("Error retrieving contact stats for pubKey:",N),{totalContacts:0,followersCount:0,followingCount:0}}})()}removeAllContacts(A){var I=this;return(0,i.A)(function*(){try{const N=[];yield I.contactsStore.iterate((K,Z)=>{const[ne]=Z.split(":");ne===A&&N.push(Z)});for(const K of N)yield I.contactsStore.removeItem(K);yield I.contactsStore.clear(),I.contactStatsSubject.next({totalContacts:0,followersCount:0,followingCount:0}),I.contactsSubject.next({pubKey:A,contacts:[]}),yield I.setUpdateHistory("contacts")}catch(N){console.error("Error removing all contacts for pubKey:",N)}})()}saveProfile(A,I){var N=this;return(0,i.A)(function*(){try{if(!A||!I)return void console.error("Invalid pubKey or metadata:",A,I);I.pubKey=A,yield N.profileStore.setItem(A,I),N.profileSubject.next({pubKey:A,metadata:I}),yield N.setUpdateHistory("profiles")}catch(K){console.error("Error saving profile",K)}})()}getProfile(A){var I=this;return(0,i.A)(function*(){try{return(yield I.profileStore.getItem(A))||null}catch(N){return console.error("Error retrieving profile metadata:",N),null}})()}getAllProfiles(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.profileStore.iterate(N=>{I.push(N)}),I}catch(I){return console.error("Error retrieving all Profile:",I),[]}})()}searchProfile(A){var I=this;return(0,i.A)(function*(){try{const N=[],K=A.toLowerCase();return yield I.profileStore.iterate((Z,ne)=>{JSON.stringify(Z).toLowerCase().includes(K)&&N.push({pubKey:ne,profile:Z})}),N}catch(N){return console.error("Error searching profiles by metadata:",N),[]}})()}getLastUpdateDate(A){var I=this;return(0,i.A)(function*(){try{return(yield I.updateHistoryStore.getItem(A))||null}catch(N){return console.error("Error retrieving last update date:",N),null}})()}saveProject(A){var I=this;return(0,i.A)(function*(){try{yield I.projectsStore.setItem(A.projectIdentifier,A);const N=yield I.getAllProjects();I.projectsSubject.next(N),yield I.setUpdateHistory("projects")}catch(N){console.error("Error saving project:",N)}})()}getProjectsByNostrPubKeys(A){var I=this;return(0,i.A)(function*(){if(!A||0===A.length)return[];const N=[],K=yield I.projectDetailsStore.keys();for(const Z of K){const ne=yield I.projectDetailsStore.getItem(Z);ne&&A.includes(ne.nostrPubKey)&&N.push(ne)}return N})()}getAllProjects(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.projectsStore.iterate(N=>{I.push(N)}),I}catch(I){return console.error("Error retrieving all projects:",I),[]}})()}getProjectStats(A){var I=this;return(0,i.A)(function*(){try{return(yield I.projectStatsStore.getItem(A))||null}catch(N){return console.error("Error retrieving project stats:",N),null}})()}saveProjectStats(A,I){var N=this;return(0,i.A)(function*(){try{yield N.projectStatsStore.setItem(A,I);const K=yield N.getAllProjectStats();N.projectStatsSubject.next(K),yield N.setUpdateHistory("projectStats")}catch(K){console.error("Error saving project stats:",K)}})()}getAllProjectStats(){var A=this;return(0,i.A)(function*(){try{const I={};return yield A.projectStatsStore.iterate((N,K)=>{I[K]=N}),I}catch(I){return console.error("Error retrieving all project stats:",I),{}}})()}savePost(A){var I=this;return(0,i.A)(function*(){try{yield I.postsStore.setItem(A.id,A),yield I.setUpdateHistory("posts"),I.postsSubject.next(A)}catch(N){console.error("Error saving event type 1 and sending it to clients:",N)}})()}getPostsByPubKey(A){var I=this;return(0,i.A)(function*(){try{const N=[];return yield I.postsStore.iterate(K=>{K.pubkey===A&&1===K.kind&&N.push(K)}),N.sort((K,Z)=>Z.createdAt-K.createdAt)}catch(N){return console.error("Error retrieving events for pubKey:",N),[]}})()}getPostById(A){var I=this;return(0,i.A)(function*(){try{let N=null;return yield I.postsStore.iterate(K=>{if(K.id===A&&1===K.kind)return N=K,N}),N}catch(N){return console.error("Error retrieving post by ID:",N),null}})()}getAllPostsWithPagination(A,I=10){var N=this;return(0,i.A)(function*(){try{const K=[],Z=(A-1)*I;return yield N.postsStore.iterate(ne=>{1===ne.kind&&K.push(ne)}),K.sort((ne,be)=>be.created_at-ne.created_at).slice(Z,Z+I)}catch(K){return console.error("Error retrieving all posts with pagination:",K),[]}})()}getPostsByPubKeysWithPagination(A,I,N=10){var K=this;return(0,i.A)(function*(){try{const Z=[],ne=(I-1)*N;return yield K.postsStore.iterate(be=>{A.includes(be.pubkey)&&1===be.kind&&Z.push(be)}),Z.sort((be,me)=>me.created_at-be.created_at).slice(ne,ne+N)}catch(Z){return console.error("Error retrieving events for pubKeys with pagination:",Z),[]}})()}saveLike(A){var I=this;return(0,i.A)(function*(){try{yield I.myLikesStore.setItem(A.id,A);const N=yield I.getAllMyLikes();I.myLikesSubject.next(N),yield I.setUpdateHistory("myLikes")}catch(N){console.error("Error saving like:",N)}})()}getAllMyLikes(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.myLikesStore.iterate(N=>{try{const K=N.tags.find(Z=>"e"===Z[0]);K&&I.push(K[1])}catch(K){console.warn("Error parsing like:",N,K)}}),I}catch(I){return console.error("Error retrieving all likes:",I),[]}})()}saveNotification(A){var I=this;return(0,i.A)(function*(){try{yield I.notificationsStore.setItem(A.id,A);const N=yield I.getAllNotifications();I.notificationsSubject.next(N),yield I.setUpdateHistory("notifications")}catch(N){console.error("Error saving notification:",N)}})()}getAllNotifications(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.notificationsStore.iterate(N=>{I.push(N)}),I}catch(I){return console.error("Error retrieving all notifications:",I),[]}})()}saveChatEvent(A){var I=this;return(0,i.A)(function*(){try{yield I.chatsStore.setItem(A.id,A),yield I.setUpdateHistory("chats");const N=yield I.getAllChatEvents();I.chatEventsSubject.next(N),I.updateUnreadChatCount(N)}catch(N){console.error("Error saving chat event:",N)}})()}getAllChatEvents(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.chatsStore.iterate(N=>{I.push(N)}),I}catch(I){return console.error("Error retrieving all chat events:",I),[]}})()}getChatEventsByPubKey(A){var I=this;return(0,i.A)(function*(){try{const N=[];return yield I.chatsStore.iterate(K=>{const Z=I.getReceiverPubKeyFromTags(K.tags);(K.pubkey===A||Z===A)&&N.push(K)}),N}catch(N){return console.error("Error retrieving chat events by pubkey:",N),[]}})()}updateChatEventReadStatus(A,I){var N=this;return(0,i.A)(function*(){try{const K=yield N.chatsStore.getItem(A);if(K){K.IsRead=I,yield N.chatsStore.setItem(A,K);const Z=yield N.getAllChatEvents();N.chatEventsSubject.next(Z),N.updateUnreadChatCount(Z)}}catch(K){console.error("Error updating chat event read status:",K)}})()}markAllChatEventsAsRead(A){var I=this;return(0,i.A)(function*(){try{yield I.chatsStore.iterate(function(){var K=(0,i.A)(function*(Z,ne){const be=I.getReceiverPubKeyFromTags(Z.tags);(Z.pubkey===A||be===A)&&!Z.IsRead&&(Z.IsRead=!0,yield I.chatsStore.setItem(ne,Z))});return function(Z,ne){return K.apply(this,arguments)}}());const N=yield I.getAllChatEvents();I.chatEventsSubject.next(N),I.updateUnreadChatCount(N)}catch(N){console.error("Error marking all chat events as read:",N)}})()}getReceiverPubKeyFromTags(A){for(const I of A)if("p"===I[0]&&I[1])return I[1];return null}updateUnreadChatCount(A){const I=A.filter(N=>!N.IsRead).length;this.unreadChatCountSubject.next(I)}removeAllChats(){var A=this;return(0,i.A)(function*(){try{yield A.chatsStore.clear(),A.chatEventsSubject.next([]),A.unreadChatCountSubject.next(0),console.log("All chat events have been removed successfully.")}catch(I){console.error("Error removing all chat events:",I)}})()}setUpdateHistory(A){var I=this;return(0,i.A)(function*(){try{const N=Math.floor(Date.now()/1e3);yield I.updateHistoryStore.setItem(A,N)}catch(N){console.error("Error updating history:",N)}})()}loadAllProjectsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllProjects();A.projectsSubject.next(I)}catch(I){console.error("Error loading projects from DB:",I)}})()}loadAllProjectStatsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllProjectStats();A.projectStatsSubject.next(I)}catch(I){console.error("Error loading project stats from DB:",I)}})()}loadAllContactsFromDB(A=""){var I=this;return(0,i.A)(function*(){try{const N=yield I.getAllContacts(A);if(N.length>0){const K={};for(const Z of N)K[Z.pubKey]||(K[Z.pubKey]=[]),K[Z.pubKey].push(Z.contact);for(const Z in K)I.contactsSubject.next({pubKey:Z,contacts:K[Z]})}}catch(N){console.error("Error loading contacts from DB:",N)}})()}loadAllChatEventsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllChatEvents();A.chatEventsSubject.next(I)}catch(I){console.error("Error loading chat events from DB:",I)}})()}loadPostsFromDB(A,I=10,N=0){var K=this;return(0,i.A)(function*(){try{const Z=[];return yield K.postsStore.iterate(ne=>{A.includes(ne.pubkey)&&Z.push(ne)}),Z.sort((ne,be)=>be.created_at-ne.created_at).slice(N,N+I)}catch(Z){return console.error("Error retrieving events from DB:",Z),[]}})()}loadPosts(A,I){var N=this;return(0,i.A)(function*(){const Z=10*(I-1),ne=yield N.loadPostsFromDB(A,10,Z);ne.length>0&&ne.forEach(be=>{N.postsSubject.next(be)})})()}loadAllMyLikesFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllMyLikes();A.myLikesSubject.next(I)}catch(I){console.error("Error loading likes from DB:",I)}})()}loadAllNotificationsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllNotifications();A.notificationsSubject.next(I)}catch(I){console.error("Error loading notifications from DB:",I)}})()}loadContactStatsFromDB(){var A=this;return(0,i.A)(function*(){try{let I=0,N=0,K=0;yield A.contactsStore.iterate((Z,ne)=>{const[be]=ne.split(":");I++,Z.isFollower?N++:K++}),A.contactStatsSubject.next({totalContacts:I,followersCount:N,followingCount:K})}catch(I){console.error("Error loading contact stats from DB:",I)}})()}loadAllInvestorsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=[];yield A.investorsStore.iterate(N=>{I.push(N)}),console.log("Loaded Investors:",I),A.investorsSubject.next(I)}catch(I){console.error("Error loading investors from DB:",I)}})()}loadAllProjectDetailsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=[];yield A.projectDetailsStore.iterate(N=>{I.push(N)}),console.log("Loaded Project Details:",I),A.projectDetailsSubject.next(I)}catch(I){console.error("Error loading project details from DB:",I)}})()}static{this.\u0275fac=function(I){return new(I||T)}}static{this.\u0275prov=w.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},5645:(o,s,r)=>{"use strict";r.d(s,{n:()=>me});var a,i=r(4412),c=new Uint8Array(16);function y(){if(!a&&!(a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(c)}const w=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var S=[],A=0;A<256;++A)S.push((A+256).toString(16).substr(1));const N=function I(pe){var Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,xe=(S[pe[Te+0]]+S[pe[Te+1]]+S[pe[Te+2]]+S[pe[Te+3]]+"-"+S[pe[Te+4]]+S[pe[Te+5]]+"-"+S[pe[Te+6]]+S[pe[Te+7]]+"-"+S[pe[Te+8]]+S[pe[Te+9]]+"-"+S[pe[Te+10]]+S[pe[Te+11]]+S[pe[Te+12]]+S[pe[Te+13]]+S[pe[Te+14]]+S[pe[Te+15]]).toLowerCase();if(!function C(pe){return"string"==typeof pe&&w.test(pe)}(xe))throw TypeError("Stringified UUID is invalid");return xe},Z=function K(pe,Te,xe){var Re=(pe=pe||{}).random||(pe.rng||y)();if(Re[6]=15&Re[6]|64,Re[8]=63&Re[8]|128,Te){xe=xe||0;for(var Me=0;Me<16;++Me)Te[xe+Me]=Re[Me];return Te}return N(Re)};var ne=r(4438),be=r(6231);let me=(()=>{class pe{constructor(xe){this.relayService=xe,this.subscriptions=new Map,this.activeRelays=[],this.pendingSubscriptions=new Map,this.subscriptionsSubject=new i.t(new Map),this.subscriptions$=this.subscriptionsSubject.asObservable(),this.subscriptionQueue=[],this.isProcessingQueue=!1,this.queueInterval=1e3,this.maxSubscriptionsPerBatch=5,this.debounceInterval=1e3,this.lastActionTimestamp=new Map,this.connectToAllRelays(),this.processSubscriptionQueue()}addSubscriptions(xe,Re,Me){const Ce=this.findExistingSubscription(xe);if(Ce)return Ce.callbacks.push(Re),Ce.id;const le=Z();this.lastActionTimestamp.set(le,Date.now());const ae={filter:xe,callbacks:[Re],id:le};return this.subscriptions.set(ae.id,ae),this.subscriptionsSubject.next(this.subscriptions),this.addToQueue(ae),ae.id}findExistingSubscription(xe){return Array.from(this.subscriptions.values()).find(Re=>JSON.stringify(Re.filter)===JSON.stringify(xe))}removeSubscriptionById(xe){const Re=Date.now(),Me=this.lastActionTimestamp.get(xe);Me&&Re-Me{this.subscriptionQueue.length>0&&this.subscriptionQueue.splice(0,this.maxSubscriptionsPerBatch).forEach(Me=>this.subscribeToRelays(Me.filter,Me))},this.queueInterval))}subscribeToRelays(xe,Re){0!==this.activeRelays.length?this.relayService.ensureConnectedRelays().then(()=>{const Me=this.relayService.getConnectedRelays();this.relayService.getPool().subscribeMany(Me,xe,{onevent:Ce=>{Re.callbacks.forEach(le=>le(Ce))},onclose:()=>console.log("Subscription closed")})}).catch(Me=>{console.error("Error subscribing to relays:",Me)}):this.pendingSubscriptions.set(Re.id,Re)}subscribeToAllRelays(){this.pendingSubscriptions.forEach(xe=>{this.subscribeToRelays(xe.filter,xe)}),this.pendingSubscriptions.clear()}connectToAllRelays(){this.relayService.ensureConnectedRelays().then(()=>{this.activeRelays=this.relayService.getConnectedRelays(),this.subscribeToAllRelays()}).catch(xe=>{console.error("Error connecting to relays:",xe)})}clearAllSubscriptions(){this.subscriptions.clear(),this.pendingSubscriptions.clear(),this.subscriptionsSubject.next(new Map)}getSubscriptions(){return Array.from(this.subscriptions.values())}static{this.\u0275fac=function(Re){return new(Re||pe)(ne.KVO(be.b))}}static{this.\u0275prov=ne.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}}return pe})()},7292:(o,s,r)=>{"use strict";r.d(s,{b:()=>Z});var i=r(177),a=r(9417),c=r(8834),y=r(3),w=r(5351),C=r(2408),T=r(9213),S=r(9042),A=r(7250),I=r(882),N=r(4438);function K(ne,be){1&ne&&(N.j41(0,"mat-error"),N.EFF(1," Password is required "),N.k0s())}let Z=(()=>{class ne{constructor(me,pe,Te){this.fb=me,this.dialogRef=pe,this.data=Te,this.passwordForm=this.fb.group({password:["",a.k0.required],duration:["0",a.k0.required]})}onCancel(){this.dialogRef.close()}onSubmit(){this.dialogRef.close(this.passwordForm.value)}static{this.\u0275fac=function(pe){return new(pe||ne)(N.rXU(a.ok),N.rXU(w.CP),N.rXU(w.Vh))}}static{this.\u0275cmp=N.VBU({type:ne,selectors:[["password-dialog"]],decls:30,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"formGroup"],[1,"w-full",3,"subscriptSizing"],["matPrefix",""],["matInput","","type","password",3,"formControlName"],[4,"ngIf"],[1,"mt-5","w-full"],["formControlName","duration"],["value","0"],["value","1"],["value","5"],["value","10"],["value","60"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(pe,Te){1&pe&&(N.j41(0,"h1",0),N.EFF(1,"Enter Password"),N.k0s(),N.j41(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),N.EFF(6,"Password"),N.k0s(),N.j41(7,"mat-icon",4),N.EFF(8,"lock"),N.k0s(),N.nrm(9,"input",5),N.DNE(10,K,2,0,"mat-error",6),N.k0s(),N.j41(11,"mat-form-field",7)(12,"mat-label"),N.EFF(13,"Duration"),N.k0s(),N.j41(14,"mat-select",8)(15,"mat-option",9),N.EFF(16,"0 Minute"),N.k0s(),N.j41(17,"mat-option",10),N.EFF(18,"1 Minute"),N.k0s(),N.j41(19,"mat-option",11),N.EFF(20,"5 Minutes"),N.k0s(),N.j41(21,"mat-option",12),N.EFF(22,"10 Minutes"),N.k0s(),N.j41(23,"mat-option",13),N.EFF(24,"1 Hour"),N.k0s()()()()(),N.j41(25,"div",14)(26,"button",15),N.bIt("click",function(){return Te.onCancel()}),N.EFF(27,"Cancel"),N.k0s(),N.j41(28,"button",16),N.bIt("click",function(){return Te.onSubmit()}),N.EFF(29," Submit "),N.k0s()()),2&pe&&(N.R7$(3),N.Y8G("formGroup",Te.passwordForm),N.R7$(),N.Y8G("subscriptSizing","dynamic"),N.R7$(5),N.Y8G("formControlName","password"),N.R7$(),N.Y8G("ngIf",Te.passwordForm.get("password").hasError("required")),N.R7$(18),N.Y8G("disabled",Te.passwordForm.invalid))},dependencies:[I.vg,c.Hl,c.$z,T.m_,T.An,a.YN,a.qT,a.me,a.BC,a.cb,y.wT,C.nJ,C.rl,a.X1,a.j4,a.JD,i.MD,i.bT,A.Ve,C.TL,C.JW,A.VO,C.RG,S.fS,S.fg],styles:[".full-width[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}}return ne})()},4626:(o,s,r)=>{"use strict";var i=r(345),a=r(5245),c=r(4438);let y=(()=>{class _{constructor(){}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["app-root"]],decls:1,vars:0,template:function(v,D){1&v&&c.nrm(0,"router-outlet")},dependencies:[a.n3],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto;width:100%;height:100%}"]})}}return _})();var w=r(467);const C=new c.nKC("ANGOR_MOCK_API_DEFAULT_DELAY");var T=r(8810),S=r(1985),A=r(6697),I=r(7673);class N{constructor(m,d){this.url=m,this.delay=d,this._replyCount=0,this._replied=0}get response(){if(this._replyCount>0&&this._replyCount<=this._replied)return(0,T.$)(()=>new Error("Execution limit has been reached!"));if(!this._reply)return(0,T.$)(()=>new Error("Response callback function does not exist!"));if(!this.request)return(0,T.$)(()=>new Error("Request does not exist!"));this._replied++;const m=this._reply({request:this.request,urlParams:this.urlParams});return m instanceof S.c?m.pipe((0,A.s)(1)):(0,I.of)(m).pipe((0,A.s)(1))}reply(m){this._reply=m}replyCount(m){this._replyCount=m}}var K=r(7680);let Z=(()=>{class _{constructor(){this._handlers={get:new Map,post:new Map,patch:new Map,delete:new Map,put:new Map,head:new Map,jsonp:new Map,options:new Map}}findHandler(d,v){const D={handler:void 0,urlParams:{}},W=v.split("/"),te=this._handlers[d.toLowerCase()];for(const[we,Ye]of te){const yt=we.split("/");if(W.length===yt.length&&yt.every((pn,Er)=>pn.startsWith(":")||pn===W[Er])){D.handler=Ye,D.urlParams=(0,K.A)(yt.map((pn,Er)=>pn.startsWith(":")?[pn.substring(1),W[Er]]:void 0).filter(Boolean));break}}return D}onGet(d,v){return this._registerHandler("get",d,v)}onPost(d,v){return this._registerHandler("post",d,v)}onPatch(d,v){return this._registerHandler("patch",d,v)}onDelete(d,v){return this._registerHandler("delete",d,v)}onPut(d,v){return this._registerHandler("put",d,v)}onHead(d,v){return this._registerHandler("head",d,v)}onJsonp(d,v){return this._registerHandler("jsonp",d,v)}onOptions(d,v){return this._registerHandler("options",d,v)}_registerHandler(d,v,D){const W=new N(v,D);return this._handlers[d].set(v,W),W}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var ne=r(1626),be=r(1986),me=r(5558);const pe=(_,m)=>{const d=(0,c.WQX)(C),v=(0,c.WQX)(Z),{handler:D,urlParams:W}=v.findHandler(_.method.toUpperCase(),_.url);return D?(D.request=_,D.urlParams=W,D.response.pipe((0,be.c)(D.delay??d??0),(0,me.n)(te=>{if(!te)return(0,T.$)(()=>new ne.yz({error:"NOT FOUND",status:404,statusText:"NOT FOUND"}));const we={status:te[0],body:te[1]};return we.status>=200&&we.status<300?(0,I.of)(new ne.cS({body:we.body,status:we.status,statusText:"OK"})):(0,T.$)(()=>new ne.yz({error:we.body?.error,status:we.status,statusText:"ERROR"}))}))):m(_)};var Te=r(9097),xe=r(9979),Re=r(4412);let Me=(()=>{class _{constructor(){this._auto$=new Re.t(!0),this._mode$=new Re.t("indeterminate"),this._progress$=new Re.t(0),this._show$=new Re.t(!1),this._urlMap=new Map}get auto$(){return this._auto$.asObservable()}get mode$(){return this._mode$.asObservable()}get progress$(){return this._progress$.asObservable()}get show$(){return this._show$.asObservable()}show(){this._show$.next(!0)}hide(){this._show$.next(!1)}setAutoMode(d){this._auto$.next(d)}setMode(d){this._mode$.next(d)}setProgress(d){d<0||d>100?console.error("Progress value must be between 0 and 100!"):this._progress$.next(d)}_setLoadingStatus(d,v){v?(!0===d?(this._urlMap.set(v,d),this._show$.next(!0)):!1===d&&this._urlMap.has(v)&&this._urlMap.delete(v),0===this._urlMap.size&&this._show$.next(!1)):console.error("The request URL must be provided!")}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var Ce=r(980);const le=(_,m)=>{const d=(0,c.WQX)(Me);let v=!1;return d.auto$.pipe((0,A.s)(1)).subscribe(D=>{v=D}),v?(d._setLoadingStatus(!0,_.url),m(_).pipe((0,Ce.j)(()=>{d._setLoadingStatus(!1,_.url)}))):m(_)};var ae=r(4977),Ie=r(6860);let $e=(()=>{class _{constructor(){this._platform=(0,c.WQX)(Ie.OD),this.osName="os-unknown",this._platform.isBrowser&&(navigator.userAgent.includes("Win")&&(this.osName="os-windows"),navigator.userAgent.includes("Mac")&&(this.osName="os-mac"),navigator.userAgent.includes("X11")&&(this.osName="os-unix"),navigator.userAgent.includes("Linux")&&(this.osName="os-linux"),this._platform.IOS&&(this.osName="os-ios"),this._platform.ANDROID&&(this.osName="os-android"))}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var st=r(177),ht=r(5964);let vt=(()=>{class _{constructor(){this._document=(0,c.WQX)(st.qQ),this._router=(0,c.WQX)(a.Ix),this._router.events.pipe((0,ht.p)(d=>d instanceof a.wF),(0,A.s)(1)).subscribe(()=>{this.hide()})}show(){this._document.body.classList.remove("angor-splash-screen-hidden")}hide(){this._document.body.classList.add("angor-splash-screen-hidden")}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var at=r(7209),Xt=r(3),ln=r(5351),yn=r(2408);class bn extends Error{}class Qe extends bn{constructor(m){super(`Invalid DateTime: ${m.toMessage()}`)}}class bt extends bn{constructor(m){super(`Invalid Interval: ${m.toMessage()}`)}}class Ge extends bn{constructor(m){super(`Invalid Duration: ${m.toMessage()}`)}}class Fe extends bn{}class Ft extends bn{constructor(m){super(`Invalid unit ${m}`)}}class ze extends bn{}class dt extends bn{constructor(){super("Zone is an abstract class")}}const Ke="numeric",He="short",mt="long",se={year:Ke,month:Ke,day:Ke},Ze={year:Ke,month:He,day:Ke},Rt={year:Ke,month:He,day:Ke,weekday:He},Jt={year:Ke,month:mt,day:Ke},fn={year:Ke,month:mt,day:Ke,weekday:mt},Kn={hour:Ke,minute:Ke},Nt={hour:Ke,minute:Ke,second:Ke},Qt={hour:Ke,minute:Ke,second:Ke,timeZoneName:He},an={hour:Ke,minute:Ke,second:Ke,timeZoneName:mt},Xn={hour:Ke,minute:Ke,hourCycle:"h23"},En={hour:Ke,minute:Ke,second:Ke,hourCycle:"h23"},Kt={hour:Ke,minute:Ke,second:Ke,hourCycle:"h23",timeZoneName:He},At={hour:Ke,minute:Ke,second:Ke,hourCycle:"h23",timeZoneName:mt},zt={year:Ke,month:Ke,day:Ke,hour:Ke,minute:Ke},xn={year:Ke,month:Ke,day:Ke,hour:Ke,minute:Ke,second:Ke},Yn={year:Ke,month:He,day:Ke,hour:Ke,minute:Ke},tt={year:Ke,month:He,day:Ke,hour:Ke,minute:Ke,second:Ke},ke={year:Ke,month:He,day:Ke,weekday:He,hour:Ke,minute:Ke},B={year:Ke,month:mt,day:Ke,hour:Ke,minute:Ke,timeZoneName:He},k={year:Ke,month:mt,day:Ke,hour:Ke,minute:Ke,second:Ke,timeZoneName:He},j={year:Ke,month:mt,day:Ke,weekday:mt,hour:Ke,minute:Ke,timeZoneName:mt},De={year:Ke,month:mt,day:Ke,weekday:mt,hour:Ke,minute:Ke,second:Ke,timeZoneName:mt};class it{get type(){throw new dt}get name(){throw new dt}get ianaName(){return this.name}get isUniversal(){throw new dt}offsetName(m,d){throw new dt}formatOffset(m,d){throw new dt}offset(m){throw new dt}equals(m){throw new dt}get isValid(){throw new dt}}let ot=null;class Tt extends it{static get instance(){return null===ot&&(ot=new Tt),ot}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(m,{format:d,locale:v}){return Eo(m,d,v)}formatOffset(m,d){return va(this.offset(m),d)}offset(m){return-new Date(m).getTimezoneOffset()}equals(m){return"system"===m.type}get isValid(){return!0}}let In={};const dn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Bn={};class cr extends it{static create(m){return Bn[m]||(Bn[m]=new cr(m)),Bn[m]}static resetCache(){Bn={},In={}}static isValidSpecifier(m){return this.isValidZone(m)}static isValidZone(m){if(!m)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:m}).format(),!0}catch{return!1}}constructor(m){super(),this.zoneName=m,this.valid=cr.isValidZone(m)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(m,{format:d,locale:v}){return Eo(m,d,v,this.name)}formatOffset(m,d){return va(this.offset(m),d)}offset(m){const d=new Date(m);if(isNaN(d))return NaN;const v=function Vt(_){return In[_]||(In[_]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:_,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),In[_]}(this.name);let[D,W,te,we,Ye,yt,sn]=v.formatToParts?function Fn(_,m){const d=_.formatToParts(m),v=[];for(let D=0;D=0?_r:1e3+_r,(Es({year:D,month:W,day:te,hour:24===Ye?0:Ye,minute:yt,second:sn,millisecond:0})-Zn)/6e4}equals(m){return"iana"===m.type&&m.name===this.name}get isValid(){return this.valid}}let Jr={},_t={};function Bt(_,m={}){const d=JSON.stringify([_,m]);let v=_t[d];return v||(v=new Intl.DateTimeFormat(_,m),_t[d]=v),v}let Ee={},Pe={},ft=null,mn={};function rn(_,m,d,v){const D=_.listingMode();return"error"===D?null:"en"===D?d(m):v(m)}class qe{constructor(m,d,v){this.padTo=v.padTo||0,this.floor=v.floor||!1;const{padTo:D,floor:W,...te}=v;if(!d||Object.keys(te).length>0){const we={useGrouping:!1,...v};v.padTo>0&&(we.minimumIntegerDigits=v.padTo),this.inf=function lt(_,m={}){const d=JSON.stringify([_,m]);let v=Ee[d];return v||(v=new Intl.NumberFormat(_,m),Ee[d]=v),v}(m,we)}}format(m){if(this.inf){const d=this.floor?Math.floor(m):m;return this.inf.format(d)}return Ni(this.floor?Math.floor(m):rs(m,3),this.padTo)}}class Dt{constructor(m,d,v){let D;if(this.opts=v,this.originalZone=void 0,this.opts.timeZone)this.dt=m;else if("fixed"===m.zone.type){const te=m.offset/60*-1,we=te>=0?`Etc/GMT+${te}`:`Etc/GMT${te}`;0!==m.offset&&cr.create(we).valid?(D=we,this.dt=m):(D="UTC",this.dt=0===m.offset?m:m.setZone("UTC").plus({minutes:m.offset}),this.originalZone=m.zone)}else"system"===m.zone.type?this.dt=m:"iana"===m.zone.type?(this.dt=m,D=m.zone.name):(D="UTC",this.dt=m.setZone("UTC").plus({minutes:m.offset}),this.originalZone=m.zone);const W={...this.opts};W.timeZone=W.timeZone||D,this.dtf=Bt(d,W)}format(){return this.originalZone?this.formatToParts().map(({value:m})=>m).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const m=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?m.map(d=>{if("timeZoneName"===d.type){const v=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...d,value:v}}return d}):m}resolvedOptions(){return this.dtf.resolvedOptions()}}class Wt{constructor(m,d,v){this.opts={style:"long",...v},!d&&Sr()&&(this.rtf=function kt(_,m={}){const{base:d,...v}=m,D=JSON.stringify([_,v]);let W=Pe[D];return W||(W=new Intl.RelativeTimeFormat(_,m),Pe[D]=W),W}(m,v))}format(m,d){return this.rtf?this.rtf.format(m,d):function re(_,m,d="always",v=!1){const D={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},W=-1===["hours","minutes","seconds"].indexOf(_);if("auto"===d&&W){const pn="days"===_;switch(m){case 1:return pn?"tomorrow":`next ${D[_][0]}`;case-1:return pn?"yesterday":`last ${D[_][0]}`;case 0:return pn?"today":`this ${D[_][0]}`}}const te=Object.is(m,-0)||m<0,we=Math.abs(m),Ye=1===we,yt=D[_],sn=v?Ye?yt[1]:yt[2]||yt[1]:Ye?D[_][0]:_;return te?`${we} ${sn} ago`:`in ${we} ${sn}`}(d,m,this.opts.numeric,"long"!==this.opts.style)}formatToParts(m,d){return this.rtf?this.rtf.formatToParts(m,d):[]}}const Hn={firstDay:1,minimalDays:4,weekend:[6,7]};class fr{static fromOpts(m){return fr.create(m.locale,m.numberingSystem,m.outputCalendar,m.weekSettings,m.defaultToEN)}static create(m,d,v,D,W=!1){const te=m||Oe.defaultLocale,we=te||(W?"en-US":function Pt(){return ft||(ft=(new Intl.DateTimeFormat).resolvedOptions().locale,ft)}()),Ye=d||Oe.defaultNumberingSystem,yt=v||Oe.defaultOutputCalendar,sn=Xs(D)||Oe.defaultWeekSettings;return new fr(we,Ye,yt,sn,te)}static resetCache(){ft=null,_t={},Ee={},Pe={}}static fromObject({locale:m,numberingSystem:d,outputCalendar:v,weekSettings:D}={}){return fr.create(m,d,v,D)}constructor(m,d,v,D,W){const[te,we,Ye]=function Mr(_){const m=_.indexOf("-x-");-1!==m&&(_=_.substring(0,m));const d=_.indexOf("-u-");if(-1===d)return[_];{let v,D;try{v=Bt(_).resolvedOptions(),D=_}catch{const Ye=_.substring(0,d);v=Bt(Ye).resolvedOptions(),D=Ye}const{numberingSystem:W,calendar:te}=v;return[D,W,te]}}(m);this.locale=te,this.numberingSystem=d||we||null,this.outputCalendar=v||Ye||null,this.weekSettings=D,this.intl=function ii(_,m,d){return(d||m)&&(_.includes("-u-")||(_+="-u"),d&&(_+=`-ca-${d}`),m&&(_+=`-nu-${m}`)),_}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=W,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function St(_){return(!_.numberingSystem||"latn"===_.numberingSystem)&&("latn"===_.numberingSystem||!_.locale||_.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(_.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(m){return m&&0!==Object.getOwnPropertyNames(m).length?fr.create(m.locale||this.specifiedLocale,m.numberingSystem||this.numberingSystem,m.outputCalendar||this.outputCalendar,Xs(m.weekSettings)||this.weekSettings,m.defaultToEN||!1):this}redefaultToEN(m={}){return this.clone({...m,defaultToEN:!0})}redefaultToSystem(m={}){return this.clone({...m,defaultToEN:!1})}months(m,d=!1){return rn(this,m,aa,()=>{const v=d?{month:m,day:"numeric"}:{month:m},D=d?"format":"standalone";return this.monthsCache[D][m]||(this.monthsCache[D][m]=function ci(_){const m=[];for(let d=1;d<=12;d++){const v=Lr.utc(2009,d,1);m.push(_(v))}return m}(W=>this.extract(W,v,"month"))),this.monthsCache[D][m]})}weekdays(m,d=!1){return rn(this,m,Zo,()=>{const v=d?{weekday:m,year:"numeric",month:"long",day:"numeric"}:{weekday:m},D=d?"format":"standalone";return this.weekdaysCache[D][m]||(this.weekdaysCache[D][m]=function Ai(_){const m=[];for(let d=1;d<=7;d++){const v=Lr.utc(2016,11,13+d);m.push(_(v))}return m}(W=>this.extract(W,v,"weekday"))),this.weekdaysCache[D][m]})}meridiems(){return rn(this,void 0,()=>_i,()=>{if(!this.meridiemCache){const m={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Lr.utc(2016,11,13,9),Lr.utc(2016,11,13,19)].map(d=>this.extract(d,m,"dayperiod"))}return this.meridiemCache})}eras(m){return rn(this,m,bl,()=>{const d={era:m};return this.eraCache[m]||(this.eraCache[m]=[Lr.utc(-40,1,1),Lr.utc(2017,1,1)].map(v=>this.extract(v,d,"era"))),this.eraCache[m]})}extract(m,d,v){const te=this.dtFormatter(m,d).formatToParts().find(we=>we.type.toLowerCase()===v);return te?te.value:null}numberFormatter(m={}){return new qe(this.intl,m.forceSimple||this.fastNumbers,m)}dtFormatter(m,d={}){return new Dt(m,this.intl,d)}relFormatter(m={}){return new Wt(this.intl,this.isEnglish(),m)}listFormatter(m={}){return function Xr(_,m={}){const d=JSON.stringify([_,m]);let v=Jr[d];return v||(v=new Intl.ListFormat(_,m),Jr[d]=v),v}(this.intl,m)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:oa()?function or(_){let m=mn[_];if(!m){const d=new Intl.Locale(_);m="getWeekInfo"in d?d.getWeekInfo():d.weekInfo,mn[_]=m}return m}(this.locale):Hn}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(m){return this.locale===m.locale&&this.numberingSystem===m.numberingSystem&&this.outputCalendar===m.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let uo=null;class Oi extends it{static get utcInstance(){return null===uo&&(uo=new Oi(0)),uo}static instance(m){return 0===m?Oi.utcInstance:new Oi(m)}static parseSpecifier(m){if(m){const d=m.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(d)return new Oi(os(d[1],d[2]))}return null}constructor(m){super(),this.fixed=m}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${va(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${va(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(m,d){return va(this.fixed,d)}get isUniversal(){return!0}offset(){return this.fixed}equals(m){return"fixed"===m.type&&m.fixed===this.fixed}get isValid(){return!0}}class Uo extends it{constructor(m){super(),this.zoneName=m}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function oi(_,m){if($r(_)||null===_)return m;if(_ instanceof it)return _;if(function ws(_){return"string"==typeof _}(_)){const v=_.toLowerCase();return"default"===v?m:"local"===v||"system"===v?Tt.instance:"utc"===v||"gmt"===v?Oi.utcInstance:Oi.parseSpecifier(v)||cr.create(_)}return zi(_)?Oi.instance(_):"object"==typeof _&&"offset"in _&&"function"==typeof _.offset?_:new Uo(_)}const ts={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"},so={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]},bo=ts.hanidec.replace(/[\[|\]]/g,"").split("");let Co={};function eo({numberingSystem:_},m=""){const d=_||"latn";return Co[d]||(Co[d]={}),Co[d][m]||(Co[d][m]=new RegExp(`${ts[d]}${m}`)),Co[d][m]}let ve,oo=()=>Date.now(),Bi="system",Mo=null,Je=null,ct=null,Et=60,et=null;class Oe{static get now(){return oo}static set now(m){oo=m}static set defaultZone(m){Bi=m}static get defaultZone(){return oi(Bi,Tt.instance)}static get defaultLocale(){return Mo}static set defaultLocale(m){Mo=m}static get defaultNumberingSystem(){return Je}static set defaultNumberingSystem(m){Je=m}static get defaultOutputCalendar(){return ct}static set defaultOutputCalendar(m){ct=m}static get defaultWeekSettings(){return et}static set defaultWeekSettings(m){et=Xs(m)}static get twoDigitCutoffYear(){return Et}static set twoDigitCutoffYear(m){Et=m%100}static get throwOnInvalid(){return ve}static set throwOnInvalid(m){ve=m}static resetCaches(){fr.resetCache(),cr.resetCache(),Lr.resetCache(),function Is(){Co={}}()}}class pt{constructor(m,d){this.reason=m,this.explanation=d}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const $t=[0,31,59,90,120,151,181,212,243,273,304,334],Mt=[0,31,60,91,121,152,182,213,244,274,305,335];function un(_,m){return new pt("unit out of range",`you specified ${m} (of type ${typeof m}) as a ${_}, which is invalid`)}function Cn(_,m,d){const v=new Date(Date.UTC(_,m-1,d));_<100&&_>=0&&v.setUTCFullYear(v.getUTCFullYear()-1900);const D=v.getUTCDay();return 0===D?7:D}function Sn(_,m,d){return d+(is(_)?Mt:$t)[m-1]}function kn(_,m){const d=is(_)?Mt:$t,v=d.findIndex(W=>Wga(v,m,d)?(yt=v+1,Ye=1):yt=v,{weekYear:yt,weekNumber:Ye,weekday:we,...Yo(_)}}function sr(_,m=4,d=1){const{weekYear:v,weekNumber:D,weekday:W}=_,te=Un(Cn(v,1,m),d),we=to(v);let yt,Ye=7*D+W-te-7+m;Ye<1?(yt=v-1,Ye+=to(yt)):Ye>we?(yt=v+1,Ye-=to(v)):yt=v;const{month:sn,day:pn}=kn(yt,Ye);return{year:yt,month:sn,day:pn,...Yo(_)}}function kr(_){const{year:m,month:d,day:v}=_;return{year:m,ordinal:Sn(m,d,v),...Yo(_)}}function mr(_){const{year:m,ordinal:d}=_,{month:v,day:D}=kn(m,d);return{year:m,month:v,day:D,...Yo(_)}}function bi(_,m){if($r(_.localWeekday)&&$r(_.localWeekNumber)&&$r(_.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!$r(_.weekday)||!$r(_.weekNumber)||!$r(_.weekYear))throw new Fe("Cannot mix locale-based week fields with ISO-based week fields");return $r(_.localWeekday)||(_.weekday=_.localWeekday),$r(_.localWeekNumber)||(_.weekNumber=_.localWeekNumber),$r(_.localWeekYear)||(_.weekYear=_.localWeekYear),delete _.localWeekday,delete _.localWeekNumber,delete _.localWeekYear,{minDaysInFirstWeek:m.getMinDaysInFirstWeek(),startOfWeek:m.getStartOfWeek()}}function ai(_){const m=cs(_.year),d=Ki(_.month,1,12),v=Ki(_.day,1,Wi(_.year,_.month));return m?d?!v&&un("day",_.day):un("month",_.month):un("year",_.year)}function vo(_){const{hour:m,minute:d,second:v,millisecond:D}=_,W=Ki(m,0,23)||24===m&&0===d&&0===v&&0===D,te=Ki(d,0,59),we=Ki(v,0,59),Ye=Ki(D,0,999);return W?te?we?!Ye&&un("millisecond",D):un("second",v):un("minute",d):un("hour",m)}function $r(_){return typeof _>"u"}function zi(_){return"number"==typeof _}function cs(_){return"number"==typeof _&&_%1==0}function Sr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function oa(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function wo(_,m,d){if(0!==_.length)return _.reduce((v,D)=>{const W=[m(D),D];return v&&d(v[0],W[0])===v[0]?v:W},null)[1]}function Ps(_,m){return Object.prototype.hasOwnProperty.call(_,m)}function Xs(_){if(null==_)return null;if("object"!=typeof _)throw new ze("Week settings must be an object");if(!Ki(_.firstDay,1,7)||!Ki(_.minimalDays,1,7)||!Array.isArray(_.weekend)||_.weekend.some(m=>!Ki(m,1,7)))throw new ze("Invalid week settings");return{firstDay:_.firstDay,minimalDays:_.minimalDays,weekend:Array.from(_.weekend)}}function Ki(_,m,d){return cs(_)&&_>=m&&_<=d}function Ni(_,m=2){let v;return v=_<0?"-"+(""+-_).padStart(m,"0"):(""+_).padStart(m,"0"),v}function Fs(_){if(!$r(_)&&null!==_&&""!==_)return parseInt(_,10)}function ns(_){if(!$r(_)&&null!==_&&""!==_)return parseFloat(_)}function qr(_){if(!$r(_)&&null!==_&&""!==_){const m=1e3*parseFloat("0."+_);return Math.floor(m)}}function rs(_,m,d=!1){const v=10**m;return(d?Math.trunc:Math.round)(_*v)/v}function is(_){return _%4==0&&(_%100!=0||_%400==0)}function to(_){return is(_)?366:365}function Wi(_,m){const d=function Ys(_,m){return _-m*Math.floor(_/m)}(m-1,12)+1;return 2===d?is(_+(m-d)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][d-1]}function Es(_){let m=Date.UTC(_.year,_.month-1,_.day,_.hour,_.minute,_.second,_.millisecond);return _.year<100&&_.year>=0&&(m=new Date(m),m.setUTCFullYear(_.year,_.month-1,_.day)),+m}function Io(_,m,d){return-Un(Cn(_,1,m),d)+m-1}function ga(_,m=4,d=1){const v=Io(_,m,d),D=Io(_+1,m,d);return(to(_)-v+D)/7}function tr(_){return _>99?_:_>Oe.twoDigitCutoffYear?1900+_:2e3+_}function Eo(_,m,d,v=null){const D=new Date(_),W={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};v&&(W.timeZone=v);const te={timeZoneName:m,...W},we=new Intl.DateTimeFormat(d,te).formatToParts(D).find(Ye=>"timezonename"===Ye.type.toLowerCase());return we?we.value:null}function os(_,m){let d=parseInt(_,10);Number.isNaN(d)&&(d=0);const v=parseInt(m,10)||0;return 60*d+(d<0||Object.is(d,-0)?-v:v)}function ks(_){const m=Number(_);if("boolean"==typeof _||""===_||Number.isNaN(m))throw new ze(`Invalid unit value ${_}`);return m}function Bs(_,m){const d={};for(const v in _)if(Ps(_,v)){const D=_[v];if(null==D)continue;d[m(v)]=ks(D)}return d}function va(_,m){const d=Math.trunc(Math.abs(_/60)),v=Math.trunc(Math.abs(_%60)),D=_>=0?"+":"-";switch(m){case"short":return`${D}${Ni(d,2)}:${Ni(v,2)}`;case"narrow":return`${D}${d}${v>0?`:${v}`:""}`;case"techie":return`${D}${Ni(d,2)}${Ni(v,2)}`;default:throw new RangeError(`Value format ${m} is out of range for property format`)}}function Yo(_){return function Ls(_,m){return m.reduce((d,v)=>(d[v]=_[v],d),{})}(_,["hour","minute","second","millisecond"])}const sa=["January","February","March","April","May","June","July","August","September","October","November","December"],yl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Qo=["J","F","M","A","M","J","J","A","S","O","N","D"];function aa(_){switch(_){case"narrow":return[...Qo];case"short":return[...yl];case"long":return[...sa];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 ao=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ss=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],_o=["M","T","W","T","F","S","S"];function Zo(_){switch(_){case"narrow":return[..._o];case"short":return[...ss];case"long":return[...ao];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const _i=["AM","PM"],Fa=["Before Christ","Anno Domini"],ko=["BC","AD"],Qs=["B","A"];function bl(_){switch(_){case"narrow":return[...Qs];case"short":return[...ko];case"long":return[...Fa];default:return null}}function wt(_,m){let d="";for(const v of _)d+=v.literal?v.val:m(v.val);return d}const Ln={D:se,DD:Ze,DDD:Jt,DDDD:fn,t:Kn,tt:Nt,ttt:Qt,tttt:an,T:Xn,TT:En,TTT:Kt,TTTT:At,f:zt,ff:Yn,fff:B,ffff:j,F:xn,FF:tt,FFF:k,FFFF:De};class hn{static create(m,d={}){return new hn(m,d)}static parseFormat(m){let d=null,v="",D=!1;const W=[];for(let te=0;te0&&W.push({literal:D||/^\s+$/.test(v),val:v}),d=null,v="",D=!D):D||we===d?v+=we:(v.length>0&&W.push({literal:/^\s+$/.test(v),val:v}),v=we,d=we)}return v.length>0&&W.push({literal:D||/^\s+$/.test(v),val:v}),W}static macroTokenToFormatOpts(m){return Ln[m]}constructor(m,d){this.opts=d,this.loc=m,this.systemLoc=null}formatWithSystemDefault(m,d){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(m,{...this.opts,...d}).format()}dtFormatter(m,d={}){return this.loc.dtFormatter(m,{...this.opts,...d})}formatDateTime(m,d){return this.dtFormatter(m,d).format()}formatDateTimeParts(m,d){return this.dtFormatter(m,d).formatToParts()}formatInterval(m,d){return this.dtFormatter(m.start,d).dtf.formatRange(m.start.toJSDate(),m.end.toJSDate())}resolvedOptions(m,d){return this.dtFormatter(m,d).resolvedOptions()}num(m,d=0){if(this.opts.forceSimple)return Ni(m,d);const v={...this.opts};return d>0&&(v.padTo=d),this.loc.numberFormatter(v).format(m)}formatDateTimeFromString(m,d){const v="en"===this.loc.listingMode(),D=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,W=(Zn,_r)=>this.loc.extract(m,Zn,_r),te=Zn=>m.isOffsetFixed&&0===m.offset&&Zn.allowZ?"Z":m.isValid?m.zone.formatOffset(m.ts,Zn.format):"",Ye=(Zn,_r)=>v?function Y(_,m){return aa(m)[_.month-1]}(m,Zn):W(_r?{month:Zn}:{month:Zn,day:"numeric"},"month"),yt=(Zn,_r)=>v?function Ya(_,m){return Zo(m)[_.weekday-1]}(m,Zn):W(_r?{weekday:Zn}:{weekday:Zn,month:"long",day:"numeric"},"weekday"),sn=Zn=>{const _r=hn.macroTokenToFormatOpts(Zn);return _r?this.formatWithSystemDefault(m,_r):Zn},pn=Zn=>v?function je(_,m){return bl(m)[_.year<0?0:1]}(m,Zn):W({era:Zn},"era");return wt(hn.parseFormat(d),Zn=>{switch(Zn){case"S":return this.num(m.millisecond);case"u":case"SSS":return this.num(m.millisecond,3);case"s":return this.num(m.second);case"ss":return this.num(m.second,2);case"uu":return this.num(Math.floor(m.millisecond/10),2);case"uuu":return this.num(Math.floor(m.millisecond/100));case"m":return this.num(m.minute);case"mm":return this.num(m.minute,2);case"h":return this.num(m.hour%12==0?12:m.hour%12);case"hh":return this.num(m.hour%12==0?12:m.hour%12,2);case"H":return this.num(m.hour);case"HH":return this.num(m.hour,2);case"Z":return te({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return te({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return te({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return m.zone.offsetName(m.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return m.zone.offsetName(m.ts,{format:"long",locale:this.loc.locale});case"z":return m.zoneName;case"a":return v?function Xa(_){return _i[_.hour<12?0:1]}(m):W({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return D?W({day:"numeric"},"day"):this.num(m.day);case"dd":return D?W({day:"2-digit"},"day"):this.num(m.day,2);case"c":case"E":return this.num(m.weekday);case"ccc":return yt("short",!0);case"cccc":return yt("long",!0);case"ccccc":return yt("narrow",!0);case"EEE":return yt("short",!1);case"EEEE":return yt("long",!1);case"EEEEE":return yt("narrow",!1);case"L":return D?W({month:"numeric",day:"numeric"},"month"):this.num(m.month);case"LL":return D?W({month:"2-digit",day:"numeric"},"month"):this.num(m.month,2);case"LLL":return Ye("short",!0);case"LLLL":return Ye("long",!0);case"LLLLL":return Ye("narrow",!0);case"M":return D?W({month:"numeric"},"month"):this.num(m.month);case"MM":return D?W({month:"2-digit"},"month"):this.num(m.month,2);case"MMM":return Ye("short",!1);case"MMMM":return Ye("long",!1);case"MMMMM":return Ye("narrow",!1);case"y":return D?W({year:"numeric"},"year"):this.num(m.year);case"yy":return D?W({year:"2-digit"},"year"):this.num(m.year.toString().slice(-2),2);case"yyyy":return D?W({year:"numeric"},"year"):this.num(m.year,4);case"yyyyyy":return D?W({year:"numeric"},"year"):this.num(m.year,6);case"G":return pn("short");case"GG":return pn("long");case"GGGGG":return pn("narrow");case"kk":return this.num(m.weekYear.toString().slice(-2),2);case"kkkk":return this.num(m.weekYear,4);case"W":return this.num(m.weekNumber);case"WW":return this.num(m.weekNumber,2);case"n":return this.num(m.localWeekNumber);case"nn":return this.num(m.localWeekNumber,2);case"ii":return this.num(m.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(m.localWeekYear,4);case"o":return this.num(m.ordinal);case"ooo":return this.num(m.ordinal,3);case"q":return this.num(m.quarter);case"qq":return this.num(m.quarter,2);case"X":return this.num(Math.floor(m.ts/1e3));case"x":return this.num(m.ts);default:return sn(Zn)}})}formatDurationFromString(m,d){const v=Ye=>{switch(Ye[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},W=hn.parseFormat(d),te=W.reduce((Ye,{literal:yt,val:sn})=>yt?Ye:Ye.concat(sn),[]);return wt(W,(Ye=>yt=>{const sn=v(yt);return sn?this.num(Ye.get(sn),yt.length):yt})(m.shiftTo(...te.map(v).filter(Ye=>Ye))))}}const ur=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function hr(..._){const m=_.reduce((d,v)=>d+v.source,"");return RegExp(`^${m}$`)}function zr(..._){return m=>_.reduce(([d,v,D],W)=>{const[te,we,Ye]=W(m,D);return[{...d,...te},we||v,Ye]},[{},null,1]).slice(0,2)}function Gi(_,...m){if(null==_)return[null,null];for(const[d,v]of m){const D=d.exec(_);if(D)return v(D)}return[null,null]}function Or(..._){return(m,d)=>{const v={};let D;for(D=0;D<_.length;D++)v[_[D]]=Fs(m[d+D]);return[v,null,d+D]}}const Dr=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,ui=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ho=RegExp(`${ui.source}(?:${Dr.source}?(?:\\[(${ur.source})\\])?)?`),lo=RegExp(`(?:T${ho.source})?`),Qa=Or("weekYear","weekNumber","weekDay"),ya=Or("year","ordinal"),ce=RegExp(`${ui.source} ?(?:${Dr.source}|(${ur.source}))?`),Q=RegExp(`(?: ${ce.source})?`);function Le(_,m,d){const v=_[m];return $r(v)?d:Fs(v)}function vr(_,m){return[{hours:Le(_,m,0),minutes:Le(_,m+1,0),seconds:Le(_,m+2,0),milliseconds:qr(_[m+3])},null,m+4]}function ni(_,m){const d=!_[m]&&!_[m+1],v=os(_[m+1],_[m+2]);return[{},d?null:Oi.instance(v),m+3]}function Do(_,m){return[{},_[m]?cr.create(_[m]):null,m+1]}const qo=RegExp(`^T?${ui.source}$`),Ba=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ku(_){const[m,d,v,D,W,te,we,Ye,yt]=_,sn="-"===m[0],pn=Ye&&"-"===Ye[0],Er=(Zn,_r=!1)=>void 0!==Zn&&(_r||Zn&&sn)?-Zn:Zn;return[{years:Er(ns(d)),months:Er(ns(v)),weeks:Er(ns(D)),days:Er(ns(W)),hours:Er(ns(te)),minutes:Er(ns(we)),seconds:Er(ns(Ye),"-0"===Ye),milliseconds:Er(qr(yt),pn)}]}const nc={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wl(_,m,d,v,D,W,te){const we={year:2===m.length?tr(Fs(m)):Fs(m),month:yl.indexOf(d)+1,day:Fs(v),hour:Fs(D),minute:Fs(W)};return te&&(we.second=Fs(te)),_&&(we.weekday=_.length>3?ao.indexOf(_)+1:ss.indexOf(_)+1),we}const us=/^(?:(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 Us(_){const[,m,d,v,D,W,te,we,Ye,yt,sn,pn]=_,Er=wl(m,D,v,d,W,te,we);let Zn;return Zn=Ye?nc[Ye]:yt?0:os(sn,pn),[Er,new Oi(Zn)]}const Lo=/^(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$/,Za=/^(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$/,El=/^(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 xl(_){const[,m,d,v,D,W,te,we]=_;return[wl(m,D,v,d,W,te,we),Oi.utcInstance]}function la(_){const[,m,d,v,D,W,te,we]=_;return[wl(m,we,d,v,D,W,te),Oi.utcInstance]}const $a=hr(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,lo),vc=hr(/(\d{4})-?W(\d\d)(?:-?(\d))?/,lo),Ou=hr(/(\d{4})-?(\d{3})/,lo),rc=hr(ho),ja=zr(function Ut(_,m){return[{year:Le(_,m),month:Le(_,m+1,1),day:Le(_,m+2,1)},null,m+3]},vr,ni,Do),Wl=zr(Qa,vr,ni,Do),ba=zr(ya,vr,ni,Do),qa=zr(vr,ni,Do),Ea=zr(vr),_c=hr(/(\d{4})-(\d\d)-(\d\d)/,Q),al=hr(ce),Dl=zr(vr,ni,Do),Sl="Invalid Duration",zl={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}},xa={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},...zl},ds=365.2425,Ui=30.436875,Gn={years:{quarters:4,months:12,weeks:ds/7,days:ds,hours:24*ds,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:ds/28,days:ds/4,hours:24*ds/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:Ui/7,days:Ui,hours:24*Ui,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...zl},Ar=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],So=Ar.slice(0).reverse();function no(_,m,d=!1){const v={values:d?m.values:{..._.values,...m.values||{}},loc:_.loc.clone(m.loc),conversionAccuracy:m.conversionAccuracy||_.conversionAccuracy,matrix:m.matrix||_.matrix};return new Fr(v)}function $o(_,m){let d=m.milliseconds??0;for(const v of So.slice(1))m[v]&&(d+=m[v]*_[v].milliseconds);return d}function es(_,m){const d=$o(_,m)<0?-1:1;Ar.reduceRight((v,D)=>{if($r(m[D]))return v;if(v){const te=_[D][v],we=Math.floor(m[v]*d/te);m[D]+=we*d,m[v]-=we*te*d}return D},null),Ar.reduce((v,D)=>{if($r(m[D]))return v;if(v){const W=m[v]%1;m[v]-=W,m[D]+=W*_[v][D]}return D},null)}class Fr{constructor(m){const d="longterm"===m.conversionAccuracy||!1;let v=d?Gn:xa;m.matrix&&(v=m.matrix),this.values=m.values,this.loc=m.loc||fr.create(),this.conversionAccuracy=d?"longterm":"casual",this.invalid=m.invalid||null,this.matrix=v,this.isLuxonDuration=!0}static fromMillis(m,d){return Fr.fromObject({milliseconds:m},d)}static fromObject(m,d={}){if(null==m||"object"!=typeof m)throw new ze("Duration.fromObject: argument expected to be an object, got "+(null===m?"null":typeof m));return new Fr({values:Bs(m,Fr.normalizeUnit),loc:fr.fromObject(d),conversionAccuracy:d.conversionAccuracy,matrix:d.matrix})}static fromDurationLike(m){if(zi(m))return Fr.fromMillis(m);if(Fr.isDuration(m))return m;if("object"==typeof m)return Fr.fromObject(m);throw new ze(`Unknown duration argument ${m} of type ${typeof m}`)}static fromISO(m,d){const[v]=function wa(_){return Gi(_,[Ba,ku])}(m);return v?Fr.fromObject(v,d):Fr.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static fromISOTime(m,d){const[v]=function Jo(_){return Gi(_,[qo,Ea])}(m);return v?Fr.fromObject(v,d):Fr.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static invalid(m,d=null){if(!m)throw new ze("need to specify a reason the Duration is invalid");const v=m instanceof pt?m:new pt(m,d);if(Oe.throwOnInvalid)throw new Ge(v);return new Fr({invalid:v})}static normalizeUnit(m){const d={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[m&&m.toLowerCase()];if(!d)throw new Ft(m);return d}static isDuration(m){return m&&m.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(m,d={}){const v={...d,floor:!1!==d.round&&!1!==d.floor};return this.isValid?hn.create(this.loc,v).formatDurationFromString(this,m):Sl}toHuman(m={}){if(!this.isValid)return Sl;const d=Ar.map(v=>{const D=this.values[v];return $r(D)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...m,unit:v.slice(0,-1)}).format(D)}).filter(v=>v);return this.loc.listFormatter({type:"conjunction",style:m.listStyle||"narrow",...m}).format(d)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let m="P";return 0!==this.years&&(m+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(m+=this.months+3*this.quarters+"M"),0!==this.weeks&&(m+=this.weeks+"W"),0!==this.days&&(m+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(m+="T"),0!==this.hours&&(m+=this.hours+"H"),0!==this.minutes&&(m+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(m+=rs(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===m&&(m+="T0S"),m}toISOTime(m={}){if(!this.isValid)return null;const d=this.toMillis();return d<0||d>=864e5?null:(m={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...m,includeOffset:!1},Lr.fromMillis(d,{zone:"UTC"}).toISOTime(m))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?$o(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(m){if(!this.isValid)return this;const d=Fr.fromDurationLike(m),v={};for(const D of Ar)(Ps(d.values,D)||Ps(this.values,D))&&(v[D]=d.get(D)+this.get(D));return no(this,{values:v},!0)}minus(m){if(!this.isValid)return this;const d=Fr.fromDurationLike(m);return this.plus(d.negate())}mapUnits(m){if(!this.isValid)return this;const d={};for(const v of Object.keys(this.values))d[v]=ks(m(this.values[v],v));return no(this,{values:d},!0)}get(m){return this[Fr.normalizeUnit(m)]}set(m){return this.isValid?no(this,{values:{...this.values,...Bs(m,Fr.normalizeUnit)}}):this}reconfigure({locale:m,numberingSystem:d,conversionAccuracy:v,matrix:D}={}){return no(this,{loc:this.loc.clone({locale:m,numberingSystem:d}),matrix:D,conversionAccuracy:v})}as(m){return this.isValid?this.shiftTo(m).get(m):NaN}normalize(){if(!this.isValid)return this;const m=this.toObject();return es(this.matrix,m),no(this,{values:m},!0)}rescale(){return this.isValid?no(this,{values:function Po(_){const m={};for(const[d,v]of Object.entries(_))0!==v&&(m[d]=v);return m}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...m){if(!this.isValid)return this;if(0===m.length)return this;m=m.map(te=>Fr.normalizeUnit(te));const d={},v={},D=this.toObject();let W;for(const te of Ar)if(m.indexOf(te)>=0){W=te;let we=0;for(const yt in v)we+=this.matrix[yt][te]*v[yt],v[yt]=0;zi(D[te])&&(we+=D[te]);const Ye=Math.trunc(we);d[te]=Ye,v[te]=(1e3*we-1e3*Ye)/1e3}else zi(D[te])&&(v[te]=D[te]);for(const te in v)0!==v[te]&&(d[W]+=te===W?v[te]:v[te]/this.matrix[W][te]);return es(this.matrix,d),no(this,{values:d},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const m={};for(const d of Object.keys(this.values))m[d]=0===this.values[d]?0:-this.values[d];return no(this,{values:m},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(m){if(!this.isValid||!m.isValid||!this.loc.equals(m.loc))return!1;function d(v,D){return void 0===v||0===v?void 0===D||0===D:v===D}for(const v of Ar)if(!d(this.values[v],m.values[v]))return!1;return!0}}const fo="Invalid Interval";class Rr{constructor(m){this.s=m.start,this.e=m.end,this.invalid=m.invalid||null,this.isLuxonInterval=!0}static invalid(m,d=null){if(!m)throw new ze("need to specify a reason the Interval is invalid");const v=m instanceof pt?m:new pt(m,d);if(Oe.throwOnInvalid)throw new bt(v);return new Rr({invalid:v})}static fromDateTimes(m,d){const v=tl(m),D=tl(d),W=function Os(_,m){return _&&_.isValid?m&&m.isValid?m<_?Rr.invalid("end before start",`The end of an interval must be after its start, but you had start=${_.toISO()} and end=${m.toISO()}`):null:Rr.invalid("missing or invalid end"):Rr.invalid("missing or invalid start")}(v,D);return W??new Rr({start:v,end:D})}static after(m,d){const v=Fr.fromDurationLike(d),D=tl(m);return Rr.fromDateTimes(D,D.plus(v))}static before(m,d){const v=Fr.fromDurationLike(d),D=tl(m);return Rr.fromDateTimes(D.minus(v),D)}static fromISO(m,d){const[v,D]=(m||"").split("/",2);if(v&&D){let W,te,we,Ye;try{W=Lr.fromISO(v,d),te=W.isValid}catch{te=!1}try{we=Lr.fromISO(D,d),Ye=we.isValid}catch{Ye=!1}if(te&&Ye)return Rr.fromDateTimes(W,we);if(te){const yt=Fr.fromISO(D,d);if(yt.isValid)return Rr.after(W,yt)}else if(Ye){const yt=Fr.fromISO(v,d);if(yt.isValid)return Rr.before(we,yt)}}return Rr.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static isInterval(m){return m&&m.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(m="milliseconds"){return this.isValid?this.toDuration(m).get(m):NaN}count(m="milliseconds",d){if(!this.isValid)return NaN;const v=this.start.startOf(m,d);let D;return D=d?.useLocaleWeeks?this.end.reconfigure({locale:v.locale}):this.end,D=D.startOf(m,d),Math.floor(D.diff(v,m).get(m))+(D.valueOf()!==this.end.valueOf())}hasSame(m){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,m))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(m){return!!this.isValid&&this.s>m}isBefore(m){return!!this.isValid&&this.e<=m}contains(m){return!!this.isValid&&this.s<=m&&this.e>m}set({start:m,end:d}={}){return this.isValid?Rr.fromDateTimes(m||this.s,d||this.e):this}splitAt(...m){if(!this.isValid)return[];const d=m.map(tl).filter(te=>this.contains(te)).sort((te,we)=>te.toMillis()-we.toMillis()),v=[];let{s:D}=this,W=0;for(;D+this.e?this.e:te;v.push(Rr.fromDateTimes(D,we)),D=we,W+=1}return v}splitBy(m){const d=Fr.fromDurationLike(m);if(!this.isValid||!d.isValid||0===d.as("milliseconds"))return[];let W,{s:v}=this,D=1;const te=[];for(;vYe*D));W=+we>+this.e?this.e:we,te.push(Rr.fromDateTimes(v,W)),v=W,D+=1}return te}divideEqually(m){return this.isValid?this.splitBy(this.length()/m).slice(0,m):[]}overlaps(m){return this.e>m.s&&this.s=m.e}equals(m){return!(!this.isValid||!m.isValid)&&this.s.equals(m.s)&&this.e.equals(m.e)}intersection(m){if(!this.isValid)return this;const d=this.s>m.s?this.s:m.s,v=this.e=v?null:Rr.fromDateTimes(d,v)}union(m){return this.isValid?Rr.fromDateTimes(this.sm.e?this.e:m.e):this}static merge(m){const[d,v]=m.sort((D,W)=>D.s-W.s).reduce(([D,W],te)=>W?W.overlaps(te)||W.abutsStart(te)?[D,W.union(te)]:[D.concat([W]),te]:[D,te],[[],null]);return v&&d.push(v),d}static xor(m){let d=null,v=0;const D=[],W=m.map(Ye=>[{time:Ye.s,type:"s"},{time:Ye.e,type:"e"}]),we=Array.prototype.concat(...W).sort((Ye,yt)=>Ye.time-yt.time);for(const Ye of we)v+="s"===Ye.type?1:-1,1===v?d=Ye.time:(d&&+d!=+Ye.time&&D.push(Rr.fromDateTimes(d,Ye.time)),d=null);return Rr.merge(D)}difference(...m){return Rr.xor([this].concat(m)).map(d=>this.intersection(d)).filter(d=>d&&!d.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:fo}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(m=se,d={}){return this.isValid?hn.create(this.s.loc.clone(d),m).formatInterval(this):fo}toISO(m){return this.isValid?`${this.s.toISO(m)}/${this.e.toISO(m)}`:fo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:fo}toISOTime(m){return this.isValid?`${this.s.toISOTime(m)}/${this.e.toISOTime(m)}`:fo}toFormat(m,{separator:d=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(m)}${d}${this.e.toFormat(m)}`:fo}toDuration(m,d){return this.isValid?this.e.diff(this.s,m,d):Fr.invalid(this.invalidReason)}mapEndpoints(m){return Rr.fromDateTimes(m(this.s),m(this.e))}}class po{static hasDST(m=Oe.defaultZone){const d=Lr.now().setZone(m).set({month:12});return!m.isUniversal&&d.offset!==d.set({month:6}).offset}static isValidIANAZone(m){return cr.isValidZone(m)}static normalizeZone(m){return oi(m,Oe.defaultZone)}static getStartOfWeek({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getWeekendDays().slice()}static months(m="long",{locale:d=null,numberingSystem:v=null,locObj:D=null,outputCalendar:W="gregory"}={}){return(D||fr.create(d,v,W)).months(m)}static monthsFormat(m="long",{locale:d=null,numberingSystem:v=null,locObj:D=null,outputCalendar:W="gregory"}={}){return(D||fr.create(d,v,W)).months(m,!0)}static weekdays(m="long",{locale:d=null,numberingSystem:v=null,locObj:D=null}={}){return(D||fr.create(d,v,null)).weekdays(m)}static weekdaysFormat(m="long",{locale:d=null,numberingSystem:v=null,locObj:D=null}={}){return(D||fr.create(d,v,null)).weekdays(m,!0)}static meridiems({locale:m=null}={}){return fr.create(m).meridiems()}static eras(m="short",{locale:d=null}={}){return fr.create(d,null,"gregory").eras(m)}static features(){return{relative:Sr(),localeWeek:oa()}}}function ic(_,m){const d=D=>D.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),v=d(m)-d(_);return Math.floor(Fr.fromMillis(v).as("days"))}function Di(_,m=d=>d){return{regex:_,deser:([d])=>m(function Xo(_){let m=parseInt(_,10);if(isNaN(m)){m="";for(let d=0;d<_.length;d++){const v=_.charCodeAt(d);if(-1!==_[d].search(ts.hanidec))m+=bo.indexOf(_[d]);else for(const D in so){const[W,te]=so[D];v>=W&&v<=te&&(m+=v-W)}}return parseInt(m,10)}return m}(d))}}const No=new RegExp("[ \xa0]","g");function $(_){return _.replace(/\./g,"\\.?").replace(No,"[ \xa0]")}function de(_){return _.replace(/\./g,"").replace(No," ").toLowerCase()}function q(_,m){return null===_?null:{regex:RegExp(_.map($).join("|")),deser:([d])=>_.findIndex(v=>de(d)===de(v))+m}}function _e(_,m){return{regex:_,deser:([,d,v])=>os(d,v),groups:m}}function nt(_){return{regex:_,deser:([m])=>m}}function _n(_){return _.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const Cr={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 Qr=null;function Wo(_,m){return Array.prototype.concat(..._.map(d=>function Fo(_,m){if(_.literal)return _;const v=Al(hn.macroTokenToFormatOpts(_.val),m);return null==v||v.includes(void 0)?_:v}(d,m)))}class hs{constructor(m,d){if(this.locale=m,this.format=d,this.tokens=Wo(hn.parseFormat(d),m),this.units=this.tokens.map(v=>function On(_,m){const d=eo(m),v=eo(m,"{2}"),D=eo(m,"{3}"),W=eo(m,"{4}"),te=eo(m,"{6}"),we=eo(m,"{1,2}"),Ye=eo(m,"{1,3}"),yt=eo(m,"{1,6}"),sn=eo(m,"{1,9}"),pn=eo(m,"{2,4}"),Er=eo(m,"{4,6}"),Zn=yi=>({regex:RegExp(_n(yi.val)),deser:([go])=>go,literal:!0}),ti=(yi=>{if(_.literal)return Zn(yi);switch(yi.val){case"G":return q(m.eras("short"),0);case"GG":return q(m.eras("long"),0);case"y":return Di(yt);case"yy":case"kk":return Di(pn,tr);case"yyyy":case"kkkk":return Di(W);case"yyyyy":return Di(Er);case"yyyyyy":return Di(te);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Di(we);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Di(v);case"MMM":return q(m.months("short",!0),1);case"MMMM":return q(m.months("long",!0),1);case"LLL":return q(m.months("short",!1),1);case"LLLL":return q(m.months("long",!1),1);case"o":case"S":return Di(Ye);case"ooo":case"SSS":return Di(D);case"u":return nt(sn);case"uu":return nt(we);case"uuu":case"E":case"c":return Di(d);case"a":return q(m.meridiems(),0);case"EEE":return q(m.weekdays("short",!1),1);case"EEEE":return q(m.weekdays("long",!1),1);case"ccc":return q(m.weekdays("short",!0),1);case"cccc":return q(m.weekdays("long",!0),1);case"Z":case"ZZ":return _e(new RegExp(`([+-]${we.source})(?::(${v.source}))?`),2);case"ZZZ":return _e(new RegExp(`([+-]${we.source})(${v.source})?`),2);case"z":return nt(/[a-z_+-/]{1,256}?/i);case" ":return nt(/[^\S\n\r]/);default:return Zn(yi)}})(_)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return ti.token=_,ti}(v,m)),this.disqualifyingUnit=this.units.find(v=>v.invalidReason),!this.disqualifyingUnit){const[v,D]=function Li(_){return[`^${_.map(d=>d.regex).reduce((d,v)=>`${d}(${v.source})`,"")}$`,_]}(this.units);this.regex=RegExp(v,"i"),this.handlers=D}}explainFromTokens(m){if(this.isValid){const[d,v]=function Hr(_,m,d){const v=_.match(m);if(v){const D={};let W=1;for(const te in d)if(Ps(d,te)){const we=d[te],Ye=we.groups?we.groups+1:1;!we.literal&&we.token&&(D[we.token.val[0]]=we.deser(v.slice(W,W+Ye))),W+=Ye}return[v,D]}return[v,{}]}(m,this.regex,this.handlers),[D,W,te]=v?function xi(_){let v,d=null;return $r(_.z)||(d=cr.create(_.z)),$r(_.Z)||(d||(d=new Oi(_.Z)),v=_.Z),$r(_.q)||(_.M=3*(_.q-1)+1),$r(_.h)||(_.h<12&&1===_.a?_.h+=12:12===_.h&&0===_.a&&(_.h=0)),0===_.G&&_.y&&(_.y=-_.y),$r(_.u)||(_.S=qr(_.u)),[Object.keys(_).reduce((W,te)=>{const we=(W=>{switch(W){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(te);return we&&(W[we]=_[te]),W},{}),d,v]}(v):[null,null,void 0];if(Ps(v,"a")&&Ps(v,"H"))throw new Fe("Can't include meridiem when specifying 24-hour format");return{input:m,tokens:this.tokens,regex:this.regex,rawMatches:d,matches:v,result:D,zone:W,specificOffset:te}}return{input:m,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function jo(_,m,d){return new hs(_,d).explainFromTokens(m)}function Al(_,m){if(!_)return null;const v=hn.create(m,_).dtFormatter(function di(){return Qr||(Qr=Lr.fromMillis(1555555555555)),Qr}()),D=v.formatToParts(),W=v.resolvedOptions();return D.map(te=>function Yr(_,m,d){const{type:v,value:D}=_;if("literal"===v){const Ye=/^\s+$/.test(D);return{literal:!Ye,val:Ye?" ":D}}let te=v;"hour"===v&&(te=null!=m.hour12?m.hour12?"hour12":"hour24":null!=m.hourCycle?"h11"===m.hourCycle||"h12"===m.hourCycle?"hour12":"hour24":d.hour12?"hour12":"hour24");let we=Cr[te];if("object"==typeof we&&(we=we[m[v]]),we)return{literal:!1,val:we}}(te,_,W))}const Ca="Invalid DateTime",Zs=864e13;function Da(_){return new pt("unsupported zone",`the zone "${_.name}" is not supported`)}function ll(_){return null===_.weekData&&(_.weekData=Jn(_.c)),_.weekData}function Tl(_){return null===_.localWeekData&&(_.localWeekData=Jn(_.c,_.loc.getMinDaysInFirstWeek(),_.loc.getStartOfWeek())),_.localWeekData}function cl(_,m){const d={ts:_.ts,zone:_.zone,c:_.c,o:_.o,loc:_.loc,invalid:_.invalid};return new Lr({...d,...m,old:d})}function ua(_,m,d){let v=_-60*m*1e3;const D=d.offset(v);if(m===D)return[v,m];v-=60*(D-m)*1e3;const W=d.offset(v);return D===W?[v,D]:[_-60*Math.min(D,W)*1e3,Math.max(D,W)]}function Xl(_,m){const d=new Date(_+=60*m*1e3);return{year:d.getUTCFullYear(),month:d.getUTCMonth()+1,day:d.getUTCDate(),hour:d.getUTCHours(),minute:d.getUTCMinutes(),second:d.getUTCSeconds(),millisecond:d.getUTCMilliseconds()}}function Fc(_,m,d){return ua(Es(_),m,d)}function sd(_,m){const d=_.o,v=_.c.year+Math.trunc(m.years),D=_.c.month+Math.trunc(m.months)+3*Math.trunc(m.quarters),W={..._.c,year:v,month:D,day:Math.min(_.c.day,Wi(v,D))+Math.trunc(m.days)+7*Math.trunc(m.weeks)},te=Fr.fromObject({years:m.years-Math.trunc(m.years),quarters:m.quarters-Math.trunc(m.quarters),months:m.months-Math.trunc(m.months),weeks:m.weeks-Math.trunc(m.weeks),days:m.days-Math.trunc(m.days),hours:m.hours,minutes:m.minutes,seconds:m.seconds,milliseconds:m.milliseconds}).as("milliseconds"),we=Es(W);let[Ye,yt]=ua(we,d,_.zone);return 0!==te&&(Ye+=te,yt=_.zone.offset(Ye)),{ts:Ye,o:yt}}function oc(_,m,d,v,D,W){const{setZone:te,zone:we}=d;if(_&&0!==Object.keys(_).length||m){const Ye=m||we,yt=Lr.fromObject(_,{...d,zone:Ye,specificOffset:W});return te?yt:yt.setZone(we)}return Lr.invalid(new pt("unparsable",`the input "${D}" can't be parsed as ${v}`))}function Ao(_,m,d=!0){return _.isValid?hn.create(fr.create("en-US"),{allowZ:d,forceSimple:!0}).formatDateTimeFromString(_,m):null}function Ja(_,m){const d=_.c.year>9999||_.c.year<0;let v="";return d&&_.c.year>=0&&(v+="+"),v+=Ni(_.c.year,d?6:4),m?(v+="-",v+=Ni(_.c.month),v+="-",v+=Ni(_.c.day)):(v+=Ni(_.c.month),v+=Ni(_.c.day)),v}function el(_,m,d,v,D,W){let te=Ni(_.c.hour);return m?(te+=":",te+=Ni(_.c.minute),(0!==_.c.millisecond||0!==_.c.second||!d)&&(te+=":")):te+=Ni(_.c.minute),(0!==_.c.millisecond||0!==_.c.second||!d)&&(te+=Ni(_.c.second),(0!==_.c.millisecond||!v)&&(te+=".",te+=Ni(_.c.millisecond,3))),D&&(_.isOffsetFixed&&0===_.offset&&!W?te+="Z":_.o<0?(te+="-",te+=Ni(Math.trunc(-_.o/60)),te+=":",te+=Ni(Math.trunc(-_.o%60))):(te+="+",te+=Ni(Math.trunc(_.o/60)),te+=":",te+=Ni(Math.trunc(_.o%60)))),W&&(te+="["+_.zone.ianaName+"]"),te}const qs={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Go={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Yl={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ns=["year","month","day","hour","minute","second","millisecond"],Js=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],yc=["year","ordinal","hour","minute","second","millisecond"];function ad(_){switch(_.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function th(_){const m={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[_.toLowerCase()];if(!m)throw new Ft(_);return m}(_)}}function ou(_,m){const d=oi(m.zone,Oe.defaultZone);if(!d.isValid)return Lr.invalid(Da(d));const v=fr.fromObject(m);let D,W;if($r(_.year))D=Oe.now();else{for(const Ye of Ns)$r(_[Ye])&&(_[Ye]=qs[Ye]);const te=ai(_)||vo(_);if(te)return Lr.invalid(te);const we=function iu(_){return ul[_]||(void 0===da&&(da=Oe.now()),ul[_]=_.offset(da)),ul[_]}(d);[D,W]=Fc(_,we,d)}return new Lr({ts:D,zone:d,loc:v,o:W})}function Bc(_,m,d){const v=!!$r(d.round)||d.round,D=(te,we)=>(te=rs(te,v||d.calendary?0:2,!0),m.loc.clone(d).relFormatter(d).format(te,we)),W=te=>d.calendary?m.hasSame(_,te)?0:m.startOf(te).diff(_.startOf(te),te).get(te):m.diff(_,te).get(te);if(d.unit)return D(W(d.unit),d.unit);for(const te of d.units){const we=W(te);if(Math.abs(we)>=1)return D(we,te)}return D(_>m?-0:0,d.units[d.units.length-1])}function bc(_){let d,m={};return _.length>0&&"object"==typeof _[_.length-1]?(m=_[_.length-1],d=Array.from(_).slice(0,_.length-1)):d=Array.from(_),[m,d]}let da,ul={};class Lr{constructor(m){const d=m.zone||Oe.defaultZone;let v=m.invalid||(Number.isNaN(m.ts)?new pt("invalid input"):null)||(d.isValid?null:Da(d));this.ts=$r(m.ts)?Oe.now():m.ts;let D=null,W=null;if(!v)if(m.old&&m.old.ts===this.ts&&m.old.zone.equals(d))[D,W]=[m.old.c,m.old.o];else{const we=zi(m.o)&&!m.old?m.o:d.offset(this.ts);D=Xl(this.ts,we),v=Number.isNaN(D.year)?new pt("invalid input"):null,D=v?null:D,W=v?null:we}this._zone=d,this.loc=m.loc||fr.create(),this.invalid=v,this.weekData=null,this.localWeekData=null,this.c=D,this.o=W,this.isLuxonDateTime=!0}static now(){return new Lr({})}static local(){const[m,d]=bc(arguments),[v,D,W,te,we,Ye,yt]=d;return ou({year:v,month:D,day:W,hour:te,minute:we,second:Ye,millisecond:yt},m)}static utc(){const[m,d]=bc(arguments),[v,D,W,te,we,Ye,yt]=d;return m.zone=Oi.utcInstance,ou({year:v,month:D,day:W,hour:te,minute:we,second:Ye,millisecond:yt},m)}static fromJSDate(m,d={}){const v=function ia(_){return"[object Date]"===Object.prototype.toString.call(_)}(m)?m.valueOf():NaN;if(Number.isNaN(v))return Lr.invalid("invalid input");const D=oi(d.zone,Oe.defaultZone);return D.isValid?new Lr({ts:v,zone:D,loc:fr.fromObject(d)}):Lr.invalid(Da(D))}static fromMillis(m,d={}){if(zi(m))return m<-Zs||m>Zs?Lr.invalid("Timestamp out of range"):new Lr({ts:m,zone:oi(d.zone,Oe.defaultZone),loc:fr.fromObject(d)});throw new ze(`fromMillis requires a numerical input, but received a ${typeof m} with value ${m}`)}static fromSeconds(m,d={}){if(zi(m))return new Lr({ts:1e3*m,zone:oi(d.zone,Oe.defaultZone),loc:fr.fromObject(d)});throw new ze("fromSeconds requires a numerical input")}static fromObject(m,d={}){m=m||{};const v=oi(d.zone,Oe.defaultZone);if(!v.isValid)return Lr.invalid(Da(v));const D=fr.fromObject(d),W=Bs(m,ad),{minDaysInFirstWeek:te,startOfWeek:we}=bi(W,D),Ye=Oe.now(),yt=$r(d.specificOffset)?v.offset(Ye):d.specificOffset,sn=!$r(W.ordinal),pn=!$r(W.year),Er=!$r(W.month)||!$r(W.day),Zn=pn||Er,_r=W.weekYear||W.weekNumber;if((Zn||sn)&&_r)throw new Fe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Er&&sn)throw new Fe("Can't mix ordinal dates with month/day");const ti=_r||W.weekday&&!Zn;let yi,go,ls=Xl(Ye,yt);ti?(yi=Js,go=Go,ls=Jn(ls,te,we)):sn?(yi=yc,go=Yl,ls=kr(ls)):(yi=Ns,go=qs);let To=!1;for(const Jl of yi)$r(W[Jl])?W[Jl]=To?go[Jl]:ls[Jl]:To=!0;const ta=ti?function si(_,m=4,d=1){const v=cs(_.weekYear),D=Ki(_.weekNumber,1,ga(_.weekYear,m,d)),W=Ki(_.weekday,1,7);return v?D?!W&&un("weekday",_.weekday):un("week",_.weekNumber):un("weekYear",_.weekYear)}(W,te,we):sn?function gr(_){const m=cs(_.year),d=Ki(_.ordinal,1,to(_.year));return m?!d&&un("ordinal",_.ordinal):un("year",_.year)}(W):ai(W),eu=ta||vo(W);if(eu)return Lr.invalid(eu);const gc=ti?sr(W,te,we):sn?mr(W):W,[na,Ra]=Fc(gc,yt,v),jl=new Lr({ts:na,zone:v,o:Ra,loc:D});return W.weekday&&Zn&&m.weekday!==jl.weekday?Lr.invalid("mismatched weekday",`you can't specify both a weekday of ${W.weekday} and a date of ${jl.toISO()}`):jl.isValid?jl:Lr.invalid(jl.invalid)}static fromISO(m,d={}){const[v,D]=function Cl(_){return Gi(_,[$a,ja],[vc,Wl],[Ou,ba],[rc,qa])}(m);return oc(v,D,d,"ISO 8601",m)}static fromRFC2822(m,d={}){const[v,D]=function Ro(_){return Gi(function Ua(_){return _.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(_),[us,Us])}(m);return oc(v,D,d,"RFC 2822",m)}static fromHTTP(m,d={}){const[v,D]=function co(_){return Gi(_,[Lo,xl],[Za,xl],[El,la])}(m);return oc(v,D,d,"HTTP",d)}static fromFormat(m,d,v={}){if($r(m)||$r(d))throw new ze("fromFormat requires an input string and a format");const{locale:D=null,numberingSystem:W=null}=v,te=fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0}),[we,Ye,yt,sn]=function Rs(_,m,d){const{result:v,zone:D,specificOffset:W,invalidReason:te}=jo(_,m,d);return[v,D,W,te]}(te,m,d);return sn?Lr.invalid(sn):oc(we,Ye,v,`format ${d}`,m,yt)}static fromString(m,d,v={}){return Lr.fromFormat(m,d,v)}static fromSQL(m,d={}){const[v,D]=function Gl(_){return Gi(_,[_c,ja],[al,Dl])}(m);return oc(v,D,d,"SQL",m)}static invalid(m,d=null){if(!m)throw new ze("need to specify a reason the DateTime is invalid");const v=m instanceof pt?m:new pt(m,d);if(Oe.throwOnInvalid)throw new Qe(v);return new Lr({invalid:v})}static isDateTime(m){return m&&m.isLuxonDateTime||!1}static parseFormatForOpts(m,d={}){const v=Al(m,fr.fromObject(d));return v?v.map(D=>D?D.val:null).join(""):null}static expandFormat(m,d={}){return Wo(hn.parseFormat(m),fr.fromObject(d)).map(D=>D.val).join("")}static resetCache(){da=void 0,ul={}}get(m){return this[m]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ll(this).weekYear:NaN}get weekNumber(){return this.isValid?ll(this).weekNumber:NaN}get weekday(){return this.isValid?ll(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Tl(this).weekday:NaN}get localWeekNumber(){return this.isValid?Tl(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Tl(this).weekYear:NaN}get ordinal(){return this.isValid?kr(this.c).ordinal:NaN}get monthShort(){return this.isValid?po.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?po.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?po.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?po.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const m=864e5,d=6e4,v=Es(this.c),D=this.zone.offset(v-m),W=this.zone.offset(v+m),te=this.zone.offset(v-D*d),we=this.zone.offset(v-W*d);if(te===we)return[this];const Ye=v-te*d,yt=v-we*d,sn=Xl(Ye,te),pn=Xl(yt,we);return sn.hour===pn.hour&&sn.minute===pn.minute&&sn.second===pn.second&&sn.millisecond===pn.millisecond?[cl(this,{ts:Ye}),cl(this,{ts:yt})]:[this]}get isInLeapYear(){return is(this.year)}get daysInMonth(){return Wi(this.year,this.month)}get daysInYear(){return this.isValid?to(this.year):NaN}get weeksInWeekYear(){return this.isValid?ga(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ga(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(m={}){const{locale:d,numberingSystem:v,calendar:D}=hn.create(this.loc.clone(m),m).resolvedOptions(this);return{locale:d,numberingSystem:v,outputCalendar:D}}toUTC(m=0,d={}){return this.setZone(Oi.instance(m),d)}toLocal(){return this.setZone(Oe.defaultZone)}setZone(m,{keepLocalTime:d=!1,keepCalendarTime:v=!1}={}){if((m=oi(m,Oe.defaultZone)).equals(this.zone))return this;if(m.isValid){let D=this.ts;if(d||v){const W=m.offset(this.ts),te=this.toObject();[D]=Fc(te,W,m)}return cl(this,{ts:D,zone:m})}return Lr.invalid(Da(m))}reconfigure({locale:m,numberingSystem:d,outputCalendar:v}={}){return cl(this,{loc:this.loc.clone({locale:m,numberingSystem:d,outputCalendar:v})})}setLocale(m){return this.reconfigure({locale:m})}set(m){if(!this.isValid)return this;const d=Bs(m,ad),{minDaysInFirstWeek:v,startOfWeek:D}=bi(d,this.loc),W=!$r(d.weekYear)||!$r(d.weekNumber)||!$r(d.weekday),te=!$r(d.ordinal),we=!$r(d.year),Ye=!$r(d.month)||!$r(d.day);if((we||Ye||te)&&(d.weekYear||d.weekNumber))throw new Fe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Ye&&te)throw new Fe("Can't mix ordinal dates with month/day");let pn;W?pn=sr({...Jn(this.c,v,D),...d},v,D):$r(d.ordinal)?(pn={...this.toObject(),...d},$r(d.day)&&(pn.day=Math.min(Wi(pn.year,pn.month),pn.day))):pn=mr({...kr(this.c),...d});const[Er,Zn]=Fc(pn,this.o,this.zone);return cl(this,{ts:Er,o:Zn})}plus(m){return this.isValid?cl(this,sd(this,Fr.fromDurationLike(m))):this}minus(m){return this.isValid?cl(this,sd(this,Fr.fromDurationLike(m).negate())):this}startOf(m,{useLocaleWeeks:d=!1}={}){if(!this.isValid)return this;const v={},D=Fr.normalizeUnit(m);switch(D){case"years":v.month=1;case"quarters":case"months":v.day=1;case"weeks":case"days":v.hour=0;case"hours":v.minute=0;case"minutes":v.second=0;case"seconds":v.millisecond=0}if("weeks"===D)if(d){const W=this.loc.getStartOfWeek(),{weekday:te}=this;tethis.valueOf(),yt=function ro(_,m,d,v){let[D,W,te,we]=function Va(_,m,d){const v=[["years",(Ye,yt)=>yt.year-Ye.year],["quarters",(Ye,yt)=>yt.quarter-Ye.quarter+4*(yt.year-Ye.year)],["months",(Ye,yt)=>yt.month-Ye.month+12*(yt.year-Ye.year)],["weeks",(Ye,yt)=>{const sn=ic(Ye,yt);return(sn-sn%7)/7}],["days",ic]],D={},W=_;let te,we;for(const[Ye,yt]of v)d.indexOf(Ye)>=0&&(te=Ye,D[Ye]=yt(_,m),we=W.plus(D),we>m?(D[Ye]--,(_=W.plus(D))>m&&(we=_,D[Ye]--,_=W.plus(D))):_=we);return[_,D,we,te]}(_,m,d);const Ye=m-D,yt=d.filter(pn=>["hours","minutes","seconds","milliseconds"].indexOf(pn)>=0);0===yt.length&&(te0?Fr.fromMillis(Ye,v).shiftTo(...yt).plus(sn):sn}(te?this:m,te?m:this,W,D);return te?yt.negate():yt}diffNow(m="milliseconds",d={}){return this.diff(Lr.now(),m,d)}until(m){return this.isValid?Rr.fromDateTimes(this,m):this}hasSame(m,d,v){if(!this.isValid)return!1;const D=m.valueOf(),W=this.setZone(m.zone,{keepLocalTime:!0});return W.startOf(d,v)<=D&&D<=W.endOf(d,v)}equals(m){return this.isValid&&m.isValid&&this.valueOf()===m.valueOf()&&this.zone.equals(m.zone)&&this.loc.equals(m.loc)}toRelative(m={}){if(!this.isValid)return null;const d=m.base||Lr.fromObject({},{zone:this.zone}),v=m.padding?thisd.valueOf(),Math.min)}static max(...m){if(!m.every(Lr.isDateTime))throw new ze("max requires all arguments be DateTimes");return wo(m,d=>d.valueOf(),Math.max)}static fromFormatExplain(m,d,v={}){const{locale:D=null,numberingSystem:W=null}=v;return jo(fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0}),m,d)}static fromStringExplain(m,d,v={}){return Lr.fromFormatExplain(m,d,v)}static buildFormatParser(m,d={}){const{locale:v=null,numberingSystem:D=null}=d,W=fr.fromOpts({locale:v,numberingSystem:D,defaultToEN:!0});return new hs(W,m)}static fromFormatParser(m,d,v={}){if($r(m)||$r(d))throw new ze("fromFormatParser requires an input string and a format parser");const{locale:D=null,numberingSystem:W=null}=v,te=fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0});if(!te.equals(d.locale))throw new ze(`fromFormatParser called with a locale of ${te}, but the format parser was created for ${d.locale}`);const{result:we,zone:Ye,specificOffset:yt,invalidReason:sn}=d.explainFromTokens(m);return sn?Lr.invalid(sn):oc(we,Ye,v,`format ${d.format}`,m,yt)}static get DATE_SHORT(){return se}static get DATE_MED(){return Ze}static get DATE_MED_WITH_WEEKDAY(){return Rt}static get DATE_FULL(){return Jt}static get DATE_HUGE(){return fn}static get TIME_SIMPLE(){return Kn}static get TIME_WITH_SECONDS(){return Nt}static get TIME_WITH_SHORT_OFFSET(){return Qt}static get TIME_WITH_LONG_OFFSET(){return an}static get TIME_24_SIMPLE(){return Xn}static get TIME_24_WITH_SECONDS(){return En}static get TIME_24_WITH_SHORT_OFFSET(){return Kt}static get TIME_24_WITH_LONG_OFFSET(){return At}static get DATETIME_SHORT(){return zt}static get DATETIME_SHORT_WITH_SECONDS(){return xn}static get DATETIME_MED(){return Yn}static get DATETIME_MED_WITH_SECONDS(){return tt}static get DATETIME_MED_WITH_WEEKDAY(){return ke}static get DATETIME_FULL(){return B}static get DATETIME_FULL_WITH_SECONDS(){return k}static get DATETIME_HUGE(){return j}static get DATETIME_HUGE_WITH_SECONDS(){return De}}function tl(_){if(Lr.isDateTime(_))return _;if(_&&_.valueOf&&zi(_.valueOf()))return Lr.fromJSDate(_);if(_&&"object"==typeof _)return Lr.fromObject(_);throw new ze(`Unknown datetime argument: ${_}, of type ${typeof _}`)}const ha=new c.nKC("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function dl(){return{useUtc:!1,firstDayOfWeek:0,defaultOutputCalendar:"gregory"}}});let Sa=(()=>{class _ extends Xt.MJ{_useUTC;_firstDayOfWeek;_defaultOutputCalendar;constructor(){super();const d=(0,c.WQX)(Xt.Ju,{optional:!0}),v=(0,c.WQX)(ha,{optional:!0});this._useUTC=!!v?.useUtc,this._firstDayOfWeek=v?.firstDayOfWeek||0,this._defaultOutputCalendar=v?.defaultOutputCalendar||"gregory",this.setLocale(d||Lr.local().locale)}getYear(d){return d.year}getMonth(d){return d.month-1}getDate(d){return d.day}getDayOfWeek(d){return d.weekday}getMonthNames(d){return po.months(d,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){const d=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return function Ru(_,m){const d=Array(_);for(let v=0;v<_;v++)d[v]=m(v);return d}(31,v=>d.format(Lr.utc(2017,1,v+1).toJSDate()))}getDayOfWeekNames(d){const v=po.weekdays(d,{locale:this.locale});return v.unshift(v.pop()),v}getYearName(d){return d.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(d){return d.daysInMonth}clone(d){return Lr.fromObject(d.toObject(),this._getOptions())}createDate(d,v,D){const W=this._getOptions();if(v<0||v>11)throw Error(`Invalid month index "${v}". Month index has to be between 0 and 11.`);if(D<1)throw Error(`Invalid date "${D}". Date has to be greater than 0.`);const te=this._useUTC?Lr.utc(d,v+1,D,W):Lr.local(d,v+1,D,W);if(!this.isValid(te))throw Error(`Invalid date "${D}". Reason: "${te.invalidReason}".`);return te}today(){const d=this._getOptions();return this._useUTC?Lr.utc(d):Lr.local(d)}parse(d,v){const D=this._getOptions();if("string"==typeof d&&d.length>0){const W=Lr.fromISO(d,D);if(this.isValid(W))return W;const te=Array.isArray(v)?v:[v];if(!v.length)throw Error("Formats array must not be empty.");for(const we of te){const Ye=Lr.fromFormat(d,we,D);if(this.isValid(Ye))return Ye}return this.invalid()}return"number"==typeof d?Lr.fromMillis(d,D):d instanceof Date?Lr.fromJSDate(d,D):d instanceof Lr?Lr.fromMillis(d.toMillis(),D):null}format(d,v){if(!this.isValid(d))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?d.setLocale(this.locale).setZone("utc").toFormat(v):d.setLocale(this.locale).toFormat(v)}addCalendarYears(d,v){return d.reconfigure(this._getOptions()).plus({years:v})}addCalendarMonths(d,v){return d.reconfigure(this._getOptions()).plus({months:v})}addCalendarDays(d,v){return d.reconfigure(this._getOptions()).plus({days:v})}toIso8601(d){return d.toISO()}deserialize(d){const v=this._getOptions();let D;if(d instanceof Date&&(D=Lr.fromJSDate(d,v)),"string"==typeof d){if(!d)return null;D=Lr.fromISO(d,v)}return D&&this.isValid(D)?D:super.deserialize(d)}isDateInstance(d){return d instanceof Lr}isValid(d){return d.isValid}invalid(){return Lr.invalid("Invalid Luxon DateTime object.")}setTime(d,v,D,W){return this.clone(d).set({hour:v,minute:D,second:W,millisecond:0})}getHours(d){return d.hour}getMinutes(d){return d.minute}getSeconds(d){return d.second}parseTime(d,v){const D=this.parse(d,v);return(!D||!this.isValid(D))&&"string"==typeof d&&this.parse(d.replace(/[^0-9:(AM|PM)]/gi,""),v)||D}addSeconds(d,v){return d.reconfigure(this._getOptions()).plus({seconds:v})}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}static \u0275fac=function(v){return new(v||_)};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();var Tr=r(9969);function $c(_){return new c.wOt(3e3,!1)}function Ml(_){switch(_.length){case 0:return new Tr.sf;case 1:return _[0];default:return new Tr.ui(_)}}function Il(_,m,d=new Map,v=new Map){const D=[],W=[];let te=-1,we=null;if(m.forEach(Ye=>{const yt=Ye.get("offset"),sn=yt==te,pn=sn&&we||new Map;Ye.forEach((Er,Zn)=>{let _r=Zn,ti=Er;if("offset"!==Zn)switch(_r=_.normalizePropertyName(_r,D),ti){case Tr.FX:ti=d.get(Zn);break;case Tr.kp:ti=v.get(Zn);break;default:ti=_.normalizeStyleValue(Zn,_r,ti,D)}pn.set(_r,ti)}),sn||W.push(pn),we=pn,te=yt}),D.length)throw function cf(){return new c.wOt(3502,!1)}();return W}function fs(_,m,d,v){switch(m){case"start":_.onStart(()=>v(d&&ac(d,"start",_)));break;case"done":_.onDone(()=>v(d&&ac(d,"done",_)));break;case"destroy":_.onDestroy(()=>v(d&&ac(d,"destroy",_)))}}function ac(_,m,d){const W=jc(_.element,_.triggerName,_.fromState,_.toState,m||_.phaseName,d.totalTime??_.totalTime,!!d.disabled),te=_._data;return null!=te&&(W._data=te),W}function jc(_,m,d,v,D="",W=0,te){return{element:_,triggerName:m,fromState:d,toState:v,phaseName:D,totalTime:W,disabled:!!te}}function Aa(_,m,d){let v=_.get(m);return v||_.set(m,v=d),v}function hf(_){const m=_.indexOf(":");return[_.substring(1,m),_.slice(m+1)]}const Rp=typeof document>"u"?null:document.documentElement;function Fu(_){const m=_.parentNode||_.host||null;return m===Rp?null:m}let ea=null,js=!1;function R(_,m){for(;m;){if(m===_)return!0;m=Fu(m)}return!1}function U(_,m,d){if(d)return Array.from(_.querySelectorAll(m));const v=_.querySelector(m);return v?[v]:[]}let oe=(()=>{class _{validateStyleProperty(d){return function kl(_){ea||(ea=function Wa(){return typeof document<"u"?document.body:null}()||{},js=!!ea.style&&"WebkitAppearance"in ea.style);let m=!0;return ea.style&&!function cd(_){return"ebkit"==_.substring(1,6)}(_)&&(m=_ in ea.style,!m&&js&&(m="Webkit"+_.charAt(0).toUpperCase()+_.slice(1)in ea.style)),m}(d)}containsElement(d,v){return R(d,v)}getParentElement(d){return Fu(d)}query(d,v,D){return U(d,v,D)}computeStyle(d,v,D){return D||""}animate(d,v,D,W,te,we=[],Ye){return new Tr.sf(D,W)}static \u0275fac=function(v){return new(v||_)};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();class Ae{static NOOP=new oe}class Be{}const An="ng-enter",Zt="ng-leave",zn="ng-trigger",Wn=".ng-trigger",nr="ng-animating",Mn=".ng-animating";function jn(_){if("number"==typeof _)return _;const m=_.match(/^(-?[\.\d]+)(m?s)/);return!m||m.length<2?0:Qn(parseFloat(m[1]),m[2])}function Qn(_,m){return"s"===m?1e3*_:_}function ir(_,m,d){return _.hasOwnProperty("duration")?_:function Vn(_,m,d){let D,W=0,te="";if("string"==typeof _){const we=_.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===we)return m.push($c()),{duration:0,delay:0,easing:""};D=Qn(parseFloat(we[1]),we[2]);const Ye=we[3];null!=Ye&&(W=Qn(parseFloat(Ye),we[4]));const yt=we[5];yt&&(te=yt)}else D=_;if(!d){let we=!1,Ye=m.length;D<0&&(m.push(function L(){return new c.wOt(3100,!1)}()),we=!0),W<0&&(m.push(function z(){return new c.wOt(3101,!1)}()),we=!0),we&&m.splice(Ye,0,$c())}return{duration:D,delay:W,easing:te}}(_,m,d)}function Ir(_,m,d){m.forEach((v,D)=>{const W=Ds(D);d&&!d.has(D)&&d.set(D,_.style[W]),_.style[W]=v})}function Gr(_,m){m.forEach((d,v)=>{const D=Ds(v);_.style[D]=""})}function Ur(_){return Array.isArray(_)?1==_.length?_[0]:(0,Tr.K2)(_):_}const Qi=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ii(_){let m=[];if("string"==typeof _){let d;for(;d=Qi.exec(_);)m.push(d[1]);Qi.lastIndex=0}return m}function Zi(_,m,d){const v=`${_}`,D=v.replace(Qi,(W,te)=>{let we=m[te];return null==we&&(d.push(function X(){return new c.wOt(3003,!1)}()),we=""),we.toString()});return D==v?_:D}const Bo=/-+([a-z0-9])/g;function Ds(_){return _.replace(Bo,(...m)=>m[1].toUpperCase())}function $i(_,m,d){switch(m.type){case Tr.If.Trigger:return _.visitTrigger(m,d);case Tr.If.State:return _.visitState(m,d);case Tr.If.Transition:return _.visitTransition(m,d);case Tr.If.Sequence:return _.visitSequence(m,d);case Tr.If.Group:return _.visitGroup(m,d);case Tr.If.Animate:return _.visitAnimate(m,d);case Tr.If.Keyframes:return _.visitKeyframes(m,d);case Tr.If.Style:return _.visitStyle(m,d);case Tr.If.Reference:return _.visitReference(m,d);case Tr.If.AnimateChild:return _.visitAnimateChild(m,d);case Tr.If.AnimateRef:return _.visitAnimateRef(m,d);case Tr.If.Query:return _.visitQuery(m,d);case Tr.If.Stagger:return _.visitStagger(m,d);default:throw function he(){return new c.wOt(3004,!1)}()}}function mo(_,m){return window.getComputedStyle(_)[m]}const ps=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 gs extends Be{normalizePropertyName(m,d){return Ds(m)}normalizeStyleValue(m,d,v,D){let W="";const te=v.toString().trim();if(ps.has(d)&&0!==v&&"0"!==v)if("number"==typeof v)W="px";else{const we=v.match(/^[+-]?[\d\.]+([a-z]*)$/);we&&0==we[1].length&&D.push(function We(){return new c.wOt(3005,!1)}())}return te+W}}const fa=new Set(["true","1"]),Ga=new Set(["false","0"]);function fl(_,m){const d=fa.has(_)||Ga.has(_),v=fa.has(m)||Ga.has(m);return(D,W)=>{let te="*"==_||_==D,we="*"==m||m==W;return!te&&d&&"boolean"==typeof D&&(te=D?fa.has(_):Ga.has(_)),!we&&v&&"boolean"==typeof W&&(we=W?fa.has(m):Ga.has(m)),te&&we}}const Ql=new RegExp("s*:selfs*,?","g");function Ol(_,m,d,v){return new Uu(_).build(m,d,v)}class Uu{_driver;constructor(m){this._driver=m}build(m,d,v){const D=new dd(d);return this._resetContextStyleTimingState(D),$i(this,Ur(m),D)}_resetContextStyleTimingState(m){m.currentQuerySelector="",m.collectedStyles=new Map,m.collectedStyles.set("",new Map),m.currentTime=0}visitTrigger(m,d){let v=d.queryCount=0,D=d.depCount=0;const W=[],te=[];return"@"==m.name.charAt(0)&&d.errors.push(function Ct(){return new c.wOt(3006,!1)}()),m.definitions.forEach(we=>{if(this._resetContextStyleTimingState(d),we.type==Tr.If.State){const Ye=we,yt=Ye.name;yt.toString().split(/\s*,\s*/).forEach(sn=>{Ye.name=sn,W.push(this.visitState(Ye,d))}),Ye.name=yt}else if(we.type==Tr.If.Transition){const Ye=this.visitTransition(we,d);v+=Ye.queryCount,D+=Ye.depCount,te.push(Ye)}else d.errors.push(function vn(){return new c.wOt(3007,!1)}())}),{type:Tr.If.Trigger,name:m.name,states:W,transitions:te,queryCount:v,depCount:D,options:null}}visitState(m,d){const v=this.visitStyle(m.styles,d),D=m.options&&m.options.params||null;if(v.containsDynamicStyles){const W=new Set,te=D||{};v.styles.forEach(we=>{we instanceof Map&&we.forEach(Ye=>{Ii(Ye).forEach(yt=>{te.hasOwnProperty(yt)||W.add(yt)})})}),W.size&&d.errors.push(function nn(){return new c.wOt(3008,!1)}(0,W.values()))}return{type:Tr.If.State,name:m.name,style:v,options:D?{params:D}:null}}visitTransition(m,d){d.queryCount=0,d.depCount=0;const v=$i(this,Ur(m.animation),d),D=function dc(_,m){const d=[];return"string"==typeof _?_.split(/\s*,\s*/).forEach(v=>function Hc(_,m,d){if(":"==_[0]){const Ye=function Wc(_,m){switch(_){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(d,v)=>parseFloat(v)>parseFloat(d);case":decrement":return(d,v)=>parseFloat(v) *"}}(_,d);if("function"==typeof Ye)return void m.push(Ye);_=Ye}const v=_.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return d.push(function Ec(){return new c.wOt(3015,!1)}()),m;const D=v[1],W=v[2],te=v[3];m.push(fl(D,te)),"<"==W[0]&&("*"!=D||"*"!=te)&&m.push(fl(te,D))}(v,d,m)):d.push(_),d}(m.expr,d.errors);return{type:Tr.If.Transition,matchers:D,animation:v,queryCount:d.queryCount,depCount:d.depCount,options:uu(m.options)}}visitSequence(m,d){return{type:Tr.If.Sequence,steps:m.steps.map(v=>$i(this,v,d)),options:uu(m.options)}}visitGroup(m,d){const v=d.currentTime;let D=0;const W=m.steps.map(te=>{d.currentTime=v;const we=$i(this,te,d);return D=Math.max(D,d.currentTime),we});return d.currentTime=D,{type:Tr.If.Group,steps:W,options:uu(m.options)}}visitAnimate(m,d){const v=function hd(_,m){if(_.hasOwnProperty("duration"))return _;if("number"==typeof _)return du(ir(_,m).duration,0,"");const d=_;if(d.split(/\s+/).some(W=>"{"==W.charAt(0)&&"{"==W.charAt(1))){const W=du(0,0,"");return W.dynamic=!0,W.strValue=d,W}const D=ir(d,m);return du(D.duration,D.delay,D.easing)}(m.timings,d.errors);d.currentAnimateTimings=v;let D,W=m.styles?m.styles:(0,Tr.iF)({});if(W.type==Tr.If.Keyframes)D=this.visitKeyframes(W,d);else{let te=m.styles,we=!1;if(!te){we=!0;const yt={};v.easing&&(yt.easing=v.easing),te=(0,Tr.iF)(yt)}d.currentTime+=v.duration+v.delay;const Ye=this.visitStyle(te,d);Ye.isEmptyStep=we,D=Ye}return d.currentAnimateTimings=null,{type:Tr.If.Animate,timings:v,style:D,options:null}}visitStyle(m,d){const v=this._makeStyleAst(m,d);return this._validateStyleAst(v,d),v}_makeStyleAst(m,d){const v=[],D=Array.isArray(m.styles)?m.styles:[m.styles];for(let we of D)"string"==typeof we?we===Tr.kp?v.push(we):d.errors.push(new c.wOt(3002,!1)):v.push(new Map(Object.entries(we)));let W=!1,te=null;return v.forEach(we=>{if(we instanceof Map&&(we.has("easing")&&(te=we.get("easing"),we.delete("easing")),!W))for(let Ye of we.values())if(Ye.toString().indexOf("{{")>=0){W=!0;break}}),{type:Tr.If.Style,styles:v,easing:te,offset:m.offset,containsDynamicStyles:W,options:null}}_validateStyleAst(m,d){const v=d.currentAnimateTimings;let D=d.currentTime,W=d.currentTime;v&&W>0&&(W-=v.duration+v.delay),m.styles.forEach(te=>{"string"!=typeof te&&te.forEach((we,Ye)=>{const yt=d.collectedStyles.get(d.currentQuerySelector),sn=yt.get(Ye);let pn=!0;sn&&(W!=D&&W>=sn.startTime&&D<=sn.endTime&&(d.errors.push(function hi(){return new c.wOt(3010,!1)}()),pn=!1),W=sn.startTime),pn&&yt.set(Ye,{startTime:W,endTime:D}),d.options&&function Yi(_,m,d){const v=m.params||{},D=Ii(_);D.length&&D.forEach(W=>{v.hasOwnProperty(W)||d.push(function P(){return new c.wOt(3001,!1)}())})}(we,d.options,d.errors)})})}visitKeyframes(m,d){const v={type:Tr.If.Keyframes,styles:[],options:null};if(!d.currentAnimateTimings)return d.errors.push(function io(){return new c.wOt(3011,!1)}()),v;let W=0;const te=[];let we=!1,Ye=!1,yt=0;const sn=m.steps.map(go=>{const ls=this._makeStyleAst(go,d);let To=null!=ls.offset?ls.offset:function ih(_){if("string"==typeof _)return null;let m=null;if(Array.isArray(_))_.forEach(d=>{if(d instanceof Map&&d.has("offset")){const v=d;m=parseFloat(v.get("offset")),v.delete("offset")}});else if(_ instanceof Map&&_.has("offset")){const d=_;m=parseFloat(d.get("offset")),d.delete("offset")}return m}(ls.styles),ta=0;return null!=To&&(W++,ta=ls.offset=To),Ye=Ye||ta<0||ta>1,we=we||ta0&&W{const To=Er>0?ls==Zn?1:Er*ls:te[ls],ta=To*yi;d.currentTime=_r+ti.delay+ta,ti.duration=ta,this._validateStyleAst(go,d),go.offset=To,v.styles.push(go)}),v}visitReference(m,d){return{type:Tr.If.Reference,animation:$i(this,Ur(m.animation),d),options:uu(m.options)}}visitAnimateChild(m,d){return d.depCount++,{type:Tr.If.AnimateChild,options:uu(m.options)}}visitAnimateRef(m,d){return{type:Tr.If.AnimateRef,animation:this.visitReference(m.animation,d),options:uu(m.options)}}visitQuery(m,d){const v=d.currentQuerySelector,D=m.options||{};d.queryCount++,d.currentQuery=m;const[W,te]=function Np(_){const m=!!_.split(/\s*,\s*/).find(d=>":self"==d);return m&&(_=_.replace(Ql,"")),_=_.replace(/@\*/g,Wn).replace(/@\w+/g,d=>Wn+"-"+d.slice(1)).replace(/:animating/g,Mn),[_,m]}(m.selector);d.currentQuerySelector=v.length?v+" "+W:W,Aa(d.collectedStyles,d.currentQuerySelector,new Map);const we=$i(this,Ur(m.animation),d);return d.currentQuery=null,d.currentQuerySelector=v,{type:Tr.If.Query,selector:W,limit:D.limit||0,optional:!!D.optional,includeSelf:te,animation:we,originalSelector:m.selector,options:uu(m.options)}}visitStagger(m,d){d.currentQuery||d.errors.push(function Wr(){return new c.wOt(3013,!1)}());const v="full"===m.timings?{duration:0,delay:0,easing:"full"}:ir(m.timings,d.errors,!0);return{type:Tr.If.Stagger,animation:$i(this,Ur(m.animation),d),timings:v,options:null}}}class dd{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(m){this.errors=m}}function uu(_){return _?(_={..._}).params&&(_.params=function Dc(_){return _?{..._}:null}(_.params)):_={},_}function du(_,m,d){return{duration:_,delay:m,easing:d}}function fd(_,m,d,v,D,W,te=null,we=!1){return{type:1,element:_,keyframes:m,preStyleProps:d,postStyleProps:v,duration:D,delay:W,totalTime:D+W,easing:te,subTimeline:we}}class oh{_map=new Map;get(m){return this._map.get(m)||[]}append(m,d){let v=this._map.get(m);v||this._map.set(m,v=[]),v.push(...d)}has(m){return this._map.has(m)}clear(){this._map.clear()}}const hu=new RegExp(":enter","g"),pd=new RegExp(":leave","g");function Gc(_,m,d,v,D,W=new Map,te=new Map,we,Ye,yt=[]){return(new ah).buildKeyframes(_,m,d,v,D,W,te,we,Ye,yt)}class ah{buildKeyframes(m,d,v,D,W,te,we,Ye,yt,sn=[]){yt=yt||new oh;const pn=new md(m,d,yt,D,W,sn,[]);pn.options=Ye;const Er=Ye.delay?jn(Ye.delay):0;pn.currentTimeline.delayNextStep(Er),pn.currentTimeline.setStyles([te],null,pn.errors,Ye),$i(this,v,pn);const Zn=pn.timelines.filter(_r=>_r.containsAnimation());if(Zn.length&&we.size){let _r;for(let ti=Zn.length-1;ti>=0;ti--){const yi=Zn[ti];if(yi.element===d){_r=yi;break}}_r&&!_r.allowOnlyTimelineStyles()&&_r.setStyles([we],null,pn.errors,Ye)}return Zn.length?Zn.map(_r=>_r.buildKeyframes()):[fd(d,[],[],[],0,Er,"",!1)]}visitTrigger(m,d){}visitState(m,d){}visitTransition(m,d){}visitAnimateChild(m,d){const v=d.subInstructions.get(d.element);if(v){const D=d.createSubContext(m.options),W=d.currentTimeline.currentTime,te=this._visitSubInstructions(v,D,D.options);W!=te&&d.transformIntoNewTimeline(te)}d.previousNode=m}visitAnimateRef(m,d){const v=d.createSubContext(m.options);v.transformIntoNewTimeline(),this._applyAnimationRefDelays([m.options,m.animation.options],d,v),this.visitReference(m.animation,v),d.transformIntoNewTimeline(v.currentTimeline.currentTime),d.previousNode=m}_applyAnimationRefDelays(m,d,v){for(const D of m){const W=D?.delay;if(W){const te="number"==typeof W?W:jn(Zi(W,D?.params??{},d.errors));v.delayNextStep(te)}}}_visitSubInstructions(m,d,v){let W=d.currentTimeline.currentTime;const te=null!=v.duration?jn(v.duration):null,we=null!=v.delay?jn(v.delay):null;return 0!==te&&m.forEach(Ye=>{const yt=d.appendInstructionToTimeline(Ye,te,we);W=Math.max(W,yt.duration+yt.delay)}),W}visitReference(m,d){d.updateOptions(m.options,!0),$i(this,m.animation,d),d.previousNode=m}visitSequence(m,d){const v=d.subContextCount;let D=d;const W=m.options;if(W&&(W.params||W.delay)&&(D=d.createSubContext(W),D.transformIntoNewTimeline(),null!=W.delay)){D.previousNode.type==Tr.If.Style&&(D.currentTimeline.snapshotCurrentStyles(),D.previousNode=fu);const te=jn(W.delay);D.delayNextStep(te)}m.steps.length&&(m.steps.forEach(te=>$i(this,te,D)),D.currentTimeline.applyStylesToKeyframe(),D.subContextCount>v&&D.transformIntoNewTimeline()),d.previousNode=m}visitGroup(m,d){const v=[];let D=d.currentTimeline.currentTime;const W=m.options&&m.options.delay?jn(m.options.delay):0;m.steps.forEach(te=>{const we=d.createSubContext(m.options);W&&we.delayNextStep(W),$i(this,te,we),D=Math.max(D,we.currentTimeline.currentTime),v.push(we.currentTimeline)}),v.forEach(te=>d.currentTimeline.mergeTimelineCollectedStyles(te)),d.transformIntoNewTimeline(D),d.previousNode=m}_visitTiming(m,d){if(m.dynamic){const v=m.strValue;return ir(d.params?Zi(v,d.params,d.errors):v,d.errors)}return{duration:m.duration,delay:m.delay,easing:m.easing}}visitAnimate(m,d){const v=d.currentAnimateTimings=this._visitTiming(m.timings,d),D=d.currentTimeline;v.delay&&(d.incrementTime(v.delay),D.snapshotCurrentStyles());const W=m.style;W.type==Tr.If.Keyframes?this.visitKeyframes(W,d):(d.incrementTime(v.duration),this.visitStyle(W,d),D.applyStylesToKeyframe()),d.currentAnimateTimings=null,d.previousNode=m}visitStyle(m,d){const v=d.currentTimeline,D=d.currentAnimateTimings;!D&&v.hasCurrentStyleProperties()&&v.forwardFrame();const W=D&&D.easing||m.easing;m.isEmptyStep?v.applyEmptyStep(W):v.setStyles(m.styles,W,d.errors,d.options),d.previousNode=m}visitKeyframes(m,d){const v=d.currentAnimateTimings,D=d.currentTimeline.duration,W=v.duration,we=d.createSubContext().currentTimeline;we.easing=v.easing,m.styles.forEach(Ye=>{we.forwardTime((Ye.offset||0)*W),we.setStyles(Ye.styles,Ye.easing,d.errors,d.options),we.applyStylesToKeyframe()}),d.currentTimeline.mergeTimelineCollectedStyles(we),d.transformIntoNewTimeline(D+W),d.previousNode=m}visitQuery(m,d){const v=d.currentTimeline.currentTime,D=m.options||{},W=D.delay?jn(D.delay):0;W&&(d.previousNode.type===Tr.If.Style||0==v&&d.currentTimeline.hasCurrentStyleProperties())&&(d.currentTimeline.snapshotCurrentStyles(),d.previousNode=fu);let te=v;const we=d.invokeQuery(m.selector,m.originalSelector,m.limit,m.includeSelf,!!D.optional,d.errors);d.currentQueryTotal=we.length;let Ye=null;we.forEach((yt,sn)=>{d.currentQueryIndex=sn;const pn=d.createSubContext(m.options,yt);W&&pn.delayNextStep(W),yt===d.element&&(Ye=pn.currentTimeline),$i(this,m.animation,pn),pn.currentTimeline.applyStylesToKeyframe(),te=Math.max(te,pn.currentTimeline.currentTime)}),d.currentQueryIndex=0,d.currentQueryTotal=0,d.transformIntoNewTimeline(te),Ye&&(d.currentTimeline.mergeTimelineCollectedStyles(Ye),d.currentTimeline.snapshotCurrentStyles()),d.previousNode=m}visitStagger(m,d){const v=d.parentContext,D=d.currentTimeline,W=m.timings,te=Math.abs(W.duration),we=te*(d.currentQueryTotal-1);let Ye=te*d.currentQueryIndex;switch(W.duration<0?"reverse":W.easing){case"reverse":Ye=we-Ye;break;case"full":Ye=v.currentStaggerTime}const sn=d.currentTimeline;Ye&&sn.delayNextStep(Ye);const pn=sn.currentTime;$i(this,m.animation,d),d.previousNode=m,v.currentStaggerTime=D.currentTime-pn+(D.startTime-v.currentTimeline.startTime)}}const fu={};class md{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=fu;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(m,d,v,D,W,te,we,Ye){this._driver=m,this.element=d,this.subInstructions=v,this._enterClassName=D,this._leaveClassName=W,this.errors=te,this.timelines=we,this.currentTimeline=Ye||new Sc(this._driver,d,0),we.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(m,d){if(!m)return;const v=m;let D=this.options;null!=v.duration&&(D.duration=jn(v.duration)),null!=v.delay&&(D.delay=jn(v.delay));const W=v.params;if(W){let te=D.params;te||(te=this.options.params={}),Object.keys(W).forEach(we=>{(!d||!te.hasOwnProperty(we))&&(te[we]=Zi(W[we],te,this.errors))})}}_copyOptions(){const m={};if(this.options){const d=this.options.params;if(d){const v=m.params={};Object.keys(d).forEach(D=>{v[D]=d[D]})}}return m}createSubContext(m=null,d,v){const D=d||this.element,W=new md(this._driver,D,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(D,v||0));return W.previousNode=this.previousNode,W.currentAnimateTimings=this.currentAnimateTimings,W.options=this._copyOptions(),W.updateOptions(m),W.currentQueryIndex=this.currentQueryIndex,W.currentQueryTotal=this.currentQueryTotal,W.parentContext=this,this.subContextCount++,W}transformIntoNewTimeline(m){return this.previousNode=fu,this.currentTimeline=this.currentTimeline.fork(this.element,m),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(m,d,v){const D={duration:d??m.duration,delay:this.currentTimeline.currentTime+(v??0)+m.delay,easing:""},W=new pf(this._driver,m.element,m.keyframes,m.preStyleProps,m.postStyleProps,D,m.stretchStartingKeyframe);return this.timelines.push(W),D}incrementTime(m){this.currentTimeline.forwardTime(this.currentTimeline.duration+m)}delayNextStep(m){m>0&&this.currentTimeline.delayNextStep(m)}invokeQuery(m,d,v,D,W,te){let we=[];if(D&&we.push(this.element),m.length>0){m=(m=m.replace(hu,"."+this._enterClassName)).replace(pd,"."+this._leaveClassName);let yt=this._driver.query(this.element,m,1!=v);0!==v&&(yt=v<0?yt.slice(yt.length+v,yt.length):yt.slice(0,v)),we.push(...yt)}return!W&&0==we.length&&te.push(function hl(){return new c.wOt(3014,!1)}()),we}}class Sc{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(m,d,v,D){this._driver=m,this.element=d,this.startTime=v,this._elementTimelineStylesLookup=D,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(d),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(d,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(m){const d=1===this._keyframes.size&&this._pendingStyles.size;this.duration||d?(this.forwardTime(this.currentTime+m),d&&this.snapshotCurrentStyles()):this.startTime+=m}fork(m,d){return this.applyStylesToKeyframe(),new Sc(this._driver,m,d||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(m){this.applyStylesToKeyframe(),this.duration=m,this._loadKeyframe()}_updateStyle(m,d){this._localTimelineStyles.set(m,d),this._globalTimelineStyles.set(m,d),this._styleSummary.set(m,{time:this.currentTime,value:d})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(m){m&&this._previousKeyframe.set("easing",m);for(let[d,v]of this._globalTimelineStyles)this._backFill.set(d,v||Tr.kp),this._currentKeyframe.set(d,Tr.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(m,d,v,D){d&&this._previousKeyframe.set("easing",d);const W=D&&D.params||{},te=function ch(_,m){const d=new Map;let v;return _.forEach(D=>{if("*"===D){v??=m.keys();for(let W of v)d.set(W,Tr.kp)}else for(let[W,te]of D)d.set(W,te)}),d}(m,this._globalTimelineStyles);for(let[we,Ye]of te){const yt=Zi(Ye,W,v);this._pendingStyles.set(we,yt),this._localTimelineStyles.has(we)||this._backFill.set(we,this._globalTimelineStyles.get(we)??Tr.kp),this._updateStyle(we,yt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((m,d)=>{this._currentKeyframe.set(d,m)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((m,d)=>{this._currentKeyframe.has(d)||this._currentKeyframe.set(d,m)}))}snapshotCurrentStyles(){for(let[m,d]of this._localTimelineStyles)this._pendingStyles.set(m,d),this._updateStyle(m,d)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const m=[];for(let d in this._currentKeyframe)m.push(d);return m}mergeTimelineCollectedStyles(m){m._styleSummary.forEach((d,v)=>{const D=this._styleSummary.get(v);(!D||d.time>D.time)&&this._updateStyle(v,d.value)})}buildKeyframes(){this.applyStylesToKeyframe();const m=new Set,d=new Set,v=1===this._keyframes.size&&0===this.duration;let D=[];this._keyframes.forEach((we,Ye)=>{const yt=new Map([...this._backFill,...we]);yt.forEach((sn,pn)=>{sn===Tr.FX?m.add(pn):sn===Tr.kp&&d.add(pn)}),v||yt.set("offset",Ye/this.duration),D.push(yt)});const W=[...m.values()],te=[...d.values()];if(v){const we=D[0],Ye=new Map(we);we.set("offset",0),Ye.set("offset",1),D=[we,Ye]}return fd(this.element,D,W,te,this.duration,this.startTime,this.easing,!1)}}class pf extends Sc{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(m,d,v,D,W,te,we=!1){super(m,d,te.delay),this.keyframes=v,this.preStyleProps=D,this.postStyleProps=W,this._stretchStartingKeyframe=we,this.timings={duration:te.duration,delay:te.delay,easing:te.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let m=this.keyframes,{delay:d,duration:v,easing:D}=this.timings;if(this._stretchStartingKeyframe&&d){const W=[],te=v+d,we=d/te,Ye=new Map(m[0]);Ye.set("offset",0),W.push(Ye);const yt=new Map(m[0]);yt.set("offset",lh(we)),W.push(yt);const sn=m.length-1;for(let pn=1;pn<=sn;pn++){let Er=new Map(m[pn]);const Zn=Er.get("offset");Er.set("offset",lh((d+Zn*v)/te)),W.push(Er)}v=te,d=0,D="",m=W}return fd(this.element,m,this.preStyleProps,this.postStyleProps,v,d,D,!0)}}function lh(_,m=3){const d=Math.pow(10,m-1);return Math.round(_*d)/d}function pu(_,m,d,v,D,W,te,we,Ye,yt,sn,pn,Er){return{type:0,element:_,triggerName:m,isRemovalTransition:D,fromState:d,fromStyles:W,toState:v,toStyles:te,timelines:we,queriedElements:Ye,preStyleProps:yt,postStyleProps:sn,totalTime:pn,errors:Er}}const Nl={};class mf{_triggerName;ast;_stateStyles;constructor(m,d,v){this._triggerName=m,this.ast=d,this._stateStyles=v}match(m,d,v,D){return function gf(_,m,d,v,D){return _.some(W=>W(m,d,v,D))}(this.ast.matchers,m,d,v,D)}buildStyles(m,d,v){let D=this._stateStyles.get("*");return void 0!==m&&(D=this._stateStyles.get(m?.toString())||D),D?D.buildStyles(d,v):new Map}build(m,d,v,D,W,te,we,Ye,yt,sn){const pn=[],Er=this.ast.options&&this.ast.options.params||Nl,_r=this.buildStyles(v,we&&we.params||Nl,pn),ti=Ye&&Ye.params||Nl,yi=this.buildStyles(D,ti,pn),go=new Set,ls=new Map,To=new Map,ta="void"===D,eu={params:zc(ti,Er),delay:this.ast.options?.delay},gc=sn?[]:Gc(m,d,this.ast.animation,W,te,_r,yi,eu,yt,pn);let na=0;return gc.forEach(Ra=>{na=Math.max(Ra.duration+Ra.delay,na)}),pn.length?pu(d,this._triggerName,v,D,ta,_r,yi,[],[],ls,To,na,pn):(gc.forEach(Ra=>{const jl=Ra.element,Jl=Aa(ls,jl,new Set);Ra.preStyleProps.forEach(Tu=>Jl.add(Tu));const op=Aa(To,jl,new Set);Ra.postStyleProps.forEach(Tu=>op.add(Tu)),jl!==d&&go.add(jl)}),pu(d,this._triggerName,v,D,ta,_r,yi,gc,[...go.values()],ls,To,na))}}function zc(_,m){const d={...m};return Object.entries(_).forEach(([v,D])=>{null!=D&&(d[v]=D)}),d}class mu{styles;defaultParams;normalizer;constructor(m,d,v){this.styles=m,this.defaultParams=d,this.normalizer=v}buildStyles(m,d){const v=new Map,D=zc(m,this.defaultParams);return this.styles.styles.forEach(W=>{"string"!=typeof W&&W.forEach((te,we)=>{te&&(te=Zi(te,D,d));const Ye=this.normalizer.normalizePropertyName(we,d);te=this.normalizer.normalizeStyleValue(we,Ye,te,d),v.set(we,te)})}),v}}class Lp{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(m,d,v){this.name=m,this.ast=d,this._normalizer=v,d.states.forEach(D=>{this.states.set(D.name,new mu(D.style,D.options&&D.options.params||{},v))}),gu(this.states,"true","1"),gu(this.states,"false","0"),d.transitions.forEach(D=>{this.transitionFactories.push(new mf(m,D,this.states))}),this.fallbackTransition=function vf(_,m){return new mf(_,{type:Tr.If.Transition,animation:{type:Tr.If.Sequence,steps:[],options:null},matchers:[(te,we)=>!0],options:null,queryCount:0,depCount:0},m)}(m,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(m,d,v,D){return this.transitionFactories.find(te=>te.match(m,d,v,D))||null}matchStyles(m,d,v){return this.fallbackTransition.buildStyles(m,d,v)}}function gu(_,m,d){_.has(m)?_.has(d)||_.set(d,_.get(m)):_.has(d)&&_.set(m,_.get(d))}const Pp=new oh;class dh{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(m,d,v){this.bodyNode=m,this._driver=d,this._normalizer=v}register(m,d){const v=[],W=Ol(this._driver,d,v,[]);if(v.length)throw function rh(){return new c.wOt(3503,!1)}();this._animations.set(m,W)}_buildPlayer(m,d,v){const D=m.element,W=Il(this._normalizer,m.keyframes,d,v);return this._driver.animate(D,W,m.duration,m.delay,m.easing,[],!0)}create(m,d,v={}){const D=[],W=this._animations.get(m);let te;const we=new Map;if(W?(te=Gc(this._driver,d,W,An,Zt,new Map,new Map,v,Pp,D),te.forEach(sn=>{const pn=Aa(we,sn.element,new Map);sn.postStyleProps.forEach(Er=>pn.set(Er,null))})):(D.push(function xc(){return new c.wOt(3300,!1)}()),te=[]),D.length)throw function uf(){return new c.wOt(3504,!1)}();we.forEach((sn,pn)=>{sn.forEach((Er,Zn)=>{sn.set(Zn,this._driver.computeStyle(pn,Zn,Tr.kp))})});const yt=Ml(te.map(sn=>{const pn=we.get(sn.element);return this._buildPlayer(sn,new Map,pn)}));return this._playersById.set(m,yt),yt.onDestroy(()=>this.destroy(m)),this.players.push(yt),yt}destroy(m){const d=this._getPlayer(m);d.destroy(),this._playersById.delete(m);const v=this.players.indexOf(d);v>=0&&this.players.splice(v,1)}_getPlayer(m){const d=this._playersById.get(m);if(!d)throw function df(){return new c.wOt(3301,!1)}();return d}listen(m,d,v,D){const W=jc(d,"","","");return fs(this._getPlayer(m),v,W,D),()=>{}}command(m,d,v,D){if("register"==v)return void this.register(m,D[0]);if("create"==v)return void this.create(m,d,D[0]||{});const W=this._getPlayer(m);switch(v){case"play":W.play();break;case"pause":W.pause();break;case"reset":W.reset();break;case"restart":W.restart();break;case"finish":W.finish();break;case"init":W.init();break;case"setPosition":W.setPosition(parseFloat(D[0]));break;case"destroy":this.destroy(m)}}}const $u="ng-animate-queued",gd="ng-animate-disabled",Bp=[],Vu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Up={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},pl="__ng_removed";class fh{namespaceId;value;options;get params(){return this.options.params}constructor(m,d=""){this.namespaceId=d;const v=m&&m.hasOwnProperty("value");if(this.value=function Ts(_){return _??null}(v?m.value:m),v){const{value:W,...te}=m;this.options=te}else this.options={};this.options.params||(this.options.params={})}absorbOptions(m){const d=m.params;if(d){const v=this.options.params;Object.keys(d).forEach(D=>{null==v[D]&&(v[D]=d[D])})}}}const vu="void",ph=new fh(vu);class $p{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(m,d,v){this.id=m,this.hostElement=d,this._engine=v,this._hostClassName="ng-tns-"+m,rl(d,this._hostClassName)}listen(m,d,v,D){if(!this._triggers.has(d))throw function au(){return new c.wOt(3302,!1)}();if(null==v||0==v.length)throw function Lu(){return new c.wOt(3303,!1)}();if(!function jp(_){return"start"==_||"done"==_}(v))throw function ld(){return new c.wOt(3400,!1)}();const W=Aa(this._elementListeners,m,[]),te={name:d,phase:v,callback:D};W.push(te);const we=Aa(this._engine.statesByElement,m,new Map);return we.has(d)||(rl(m,zn),rl(m,zn+"-"+d),we.set(d,ph)),()=>{this._engine.afterFlush(()=>{const Ye=W.indexOf(te);Ye>=0&&W.splice(Ye,1),this._triggers.has(d)||we.delete(d)})}}register(m,d){return!this._triggers.has(m)&&(this._triggers.set(m,d),!0)}_getTrigger(m){const d=this._triggers.get(m);if(!d)throw function wn(){return new c.wOt(3401,!1)}();return d}trigger(m,d,v,D=!0){const W=this._getTrigger(d),te=new vd(this.id,d,m);let we=this._engine.statesByElement.get(m);we||(rl(m,zn),rl(m,zn+"-"+d),this._engine.statesByElement.set(m,we=new Map));let Ye=we.get(d);const yt=new fh(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&Ye&&yt.absorbOptions(Ye.options),we.set(d,yt),Ye||(Ye=ph),yt.value!==vu&&Ye.value===yt.value){if(!function Ef(_,m){const d=Object.keys(_),v=Object.keys(m);if(d.length!=v.length)return!1;for(let D=0;D{Gr(m,yi),Ir(m,go)})}return}const Er=Aa(this._engine.playersByElement,m,[]);Er.forEach(ti=>{ti.namespaceId==this.id&&ti.triggerName==d&&ti.queued&&ti.destroy()});let Zn=W.matchTransition(Ye.value,yt.value,m,yt.params),_r=!1;if(!Zn){if(!D)return;Zn=W.fallbackTransition,_r=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:m,triggerName:d,transition:Zn,fromState:Ye,toState:yt,player:te,isFallbackTransition:_r}),_r||(rl(m,$u),te.onStart(()=>{Kc(m,$u)})),te.onDone(()=>{let ti=this.players.indexOf(te);ti>=0&&this.players.splice(ti,1);const yi=this._engine.playersByElement.get(m);if(yi){let go=yi.indexOf(te);go>=0&&yi.splice(go,1)}}),this.players.push(te),Er.push(te),te}deregister(m){this._triggers.delete(m),this._engine.statesByElement.forEach(d=>d.delete(m)),this._elementListeners.forEach((d,v)=>{this._elementListeners.set(v,d.filter(D=>D.name!=m))})}clearElementCache(m){this._engine.statesByElement.delete(m),this._elementListeners.delete(m);const d=this._engine.playersByElement.get(m);d&&(d.forEach(v=>v.destroy()),this._engine.playersByElement.delete(m))}_signalRemovalForInnerTriggers(m,d){const v=this._engine.driver.query(m,Wn,!0);v.forEach(D=>{if(D[pl])return;const W=this._engine.fetchNamespacesByElement(D);W.size?W.forEach(te=>te.triggerLeaveAnimation(D,d,!1,!0)):this.clearElementCache(D)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(D=>this.clearElementCache(D)))}triggerLeaveAnimation(m,d,v,D){const W=this._engine.statesByElement.get(m),te=new Map;if(W){const we=[];if(W.forEach((Ye,yt)=>{if(te.set(yt,Ye.value),this._triggers.has(yt)){const sn=this.trigger(m,yt,vu,D);sn&&we.push(sn)}}),we.length)return this._engine.markElementAsRemoved(this.id,m,!0,d,te),v&&Ml(we).onDone(()=>this._engine.processLeaveNode(m)),!0}return!1}prepareLeaveAnimationListeners(m){const d=this._elementListeners.get(m),v=this._engine.statesByElement.get(m);if(d&&v){const D=new Set;d.forEach(W=>{const te=W.name;if(D.has(te))return;D.add(te);const Ye=this._triggers.get(te).fallbackTransition,yt=v.get(te)||ph,sn=new fh(vu),pn=new vd(this.id,te,m);this._engine.totalQueuedPlayers++,this._queue.push({element:m,triggerName:te,transition:Ye,fromState:yt,toState:sn,player:pn,isFallbackTransition:!0})})}}removeNode(m,d){const v=this._engine;if(m.childElementCount&&this._signalRemovalForInnerTriggers(m,d),this.triggerLeaveAnimation(m,d,!0))return;let D=!1;if(v.totalAnimations){const W=v.players.length?v.playersByQueriedElement.get(m):[];if(W&&W.length)D=!0;else{let te=m;for(;te=te.parentNode;)if(v.statesByElement.get(te)){D=!0;break}}}if(this.prepareLeaveAnimationListeners(m),D)v.markElementAsRemoved(this.id,m,!1,d);else{const W=m[pl];(!W||W===Vu)&&(v.afterFlush(()=>this.clearElementCache(m)),v.destroyInnerAnimations(m),v._onRemovalComplete(m,d))}}insertNode(m,d){rl(m,this._hostClassName)}drainQueuedTransitions(m){const d=[];return this._queue.forEach(v=>{const D=v.player;if(D.destroyed)return;const W=v.element,te=this._elementListeners.get(W);te&&te.forEach(we=>{if(we.name==v.triggerName){const Ye=jc(W,v.triggerName,v.fromState.value,v.toState.value);Ye._data=m,fs(v.player,we.phase,Ye,we.callback)}}),D.markedForDestroy?this._engine.afterFlush(()=>{D.destroy()}):d.push(v)}),this._queue=[],d.sort((v,D)=>{const W=v.transition.ast.depCount,te=D.transition.ast.depCount;return 0==W||0==te?W-te:this._engine.driver.containsElement(v.element,D.element)?1:-1})}destroy(m){this.players.forEach(d=>d.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,m)}}class bf{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(m,d)=>{};_onRemovalComplete(m,d){this.onRemovalComplete(m,d)}constructor(m,d,v){this.bodyNode=m,this.driver=d,this._normalizer=v}get queuedPlayers(){const m=[];return this._namespaceList.forEach(d=>{d.players.forEach(v=>{v.queued&&m.push(v)})}),m}createNamespace(m,d){const v=new $p(m,d,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,d)?this._balanceNamespaceList(v,d):(this.newHostElements.set(d,v),this.collectEnterElement(d)),this._namespaceLookup[m]=v}_balanceNamespaceList(m,d){const v=this._namespaceList,D=this.namespacesByHostElement;if(v.length-1>=0){let te=!1,we=this.driver.getParentElement(d);for(;we;){const Ye=D.get(we);if(Ye){const yt=v.indexOf(Ye);v.splice(yt+1,0,m),te=!0;break}we=this.driver.getParentElement(we)}te||v.unshift(m)}else v.push(m);return D.set(d,m),m}register(m,d){let v=this._namespaceLookup[m];return v||(v=this.createNamespace(m,d)),v}registerTrigger(m,d,v){let D=this._namespaceLookup[m];D&&D.register(d,v)&&this.totalAnimations++}destroy(m,d){m&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const v=this._fetchNamespace(m);this.namespacesByHostElement.delete(v.hostElement);const D=this._namespaceList.indexOf(v);D>=0&&this._namespaceList.splice(D,1),v.destroy(d),delete this._namespaceLookup[m]}))}_fetchNamespace(m){return this._namespaceLookup[m]}fetchNamespacesByElement(m){const d=new Set,v=this.statesByElement.get(m);if(v)for(let D of v.values())if(D.namespaceId){const W=this._fetchNamespace(D.namespaceId);W&&d.add(W)}return d}trigger(m,d,v,D){if(_d(d)){const W=this._fetchNamespace(m);if(W)return W.trigger(d,v,D),!0}return!1}insertNode(m,d,v,D){if(!_d(d))return;const W=d[pl];if(W&&W.setForRemoval){W.setForRemoval=!1,W.setForMove=!0;const te=this.collectedLeaveElements.indexOf(d);te>=0&&this.collectedLeaveElements.splice(te,1)}if(m){const te=this._fetchNamespace(m);te&&te.insertNode(d,v)}D&&this.collectEnterElement(d)}collectEnterElement(m){this.collectedEnterElements.push(m)}markElementAsDisabled(m,d){d?this.disabledNodes.has(m)||(this.disabledNodes.add(m),rl(m,gd)):this.disabledNodes.has(m)&&(this.disabledNodes.delete(m),Kc(m,gd))}removeNode(m,d,v){if(_d(d)){const D=m?this._fetchNamespace(m):null;D?D.removeNode(d,v):this.markElementAsRemoved(m,d,!1,v);const W=this.namespacesByHostElement.get(d);W&&W.id!==m&&W.removeNode(d,v)}else this._onRemovalComplete(d,v)}markElementAsRemoved(m,d,v,D,W){this.collectedLeaveElements.push(d),d[pl]={namespaceId:m,setForRemoval:D,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:W}}listen(m,d,v,D,W){return _d(d)?this._fetchNamespace(m).listen(d,v,D,W):()=>{}}_buildInstruction(m,d,v,D,W){return m.transition.build(this.driver,m.element,m.fromState.value,m.toState.value,v,D,m.fromState.options,m.toState.options,d,W)}destroyInnerAnimations(m){let d=this.driver.query(m,Wn,!0);d.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(d=this.driver.query(m,Mn,!0),d.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(m){const d=this.playersByElement.get(m);d&&d.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(m){const d=this.playersByQueriedElement.get(m);d&&d.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(m=>{if(this.players.length)return Ml(this.players).onDone(()=>m());m()})}processLeaveNode(m){const d=m[pl];if(d&&d.setForRemoval){if(m[pl]=Vu,d.namespaceId){this.destroyInnerAnimations(m);const v=this._fetchNamespace(d.namespaceId);v&&v.clearElementCache(m)}this._onRemovalComplete(m,d.setForRemoval)}m.classList?.contains(gd)&&this.markElementAsDisabled(m,!1),this.driver.query(m,".ng-animate-disabled",!0).forEach(v=>{this.markElementAsDisabled(v,!1)})}flush(m=-1){let d=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,D)=>this._balanceNamespaceList(v,D)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;vv()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],d.length?Ml(d).onDone(()=>{v.forEach(D=>D())}):v.forEach(D=>D())}}reportError(m){throw function gi(){return new c.wOt(3402,!1)}()}_flushAnimations(m,d){const v=new oh,D=[],W=new Map,te=[],we=new Map,Ye=new Map,yt=new Map,sn=new Set;this.disabledNodes.forEach(ei=>{sn.add(ei);const mi=this.driver.query(ei,".ng-animate-queued",!0);for(let wi=0;wi{const wi=An+ti++;_r.set(mi,wi),ei.forEach(yo=>rl(yo,wi))});const yi=[],go=new Set,ls=new Set;for(let ei=0;eigo.add(yo)):ls.add(mi))}const To=new Map,ta=hc(Er,Array.from(go));ta.forEach((ei,mi)=>{const wi=Zt+ti++;To.set(mi,wi),ei.forEach(yo=>rl(yo,wi))}),m.push(()=>{Zn.forEach((ei,mi)=>{const wi=_r.get(mi);ei.forEach(yo=>Kc(yo,wi))}),ta.forEach((ei,mi)=>{const wi=To.get(mi);ei.forEach(yo=>Kc(yo,wi))}),yi.forEach(ei=>{this.processLeaveNode(ei)})});const eu=[],gc=[];for(let ei=this._namespaceList.length-1;ei>=0;ei--)this._namespaceList[ei].drainQueuedTransitions(d).forEach(wi=>{const yo=wi.player,Gs=wi.element;if(eu.push(yo),this.collectedEnterElements.length){const Na=Gs[pl];if(Na&&Na.setForMove){if(Na.previousTriggersValues&&Na.previousTriggersValues.has(wi.triggerName)){const Nc=Na.previousTriggersValues.get(wi.triggerName),_l=this.statesByElement.get(wi.element);if(_l&&_l.has(wi.triggerName)){const Um=_l.get(wi.triggerName);Um.value=Nc,_l.set(wi.triggerName,Um)}}return void yo.destroy()}}const Oc=!pn||!this.driver.containsElement(pn,Gs),Ms=To.get(Gs),Rc=_r.get(Gs),bs=this._buildInstruction(wi,v,Rc,Ms,Oc);if(bs.errors&&bs.errors.length)return void gc.push(bs);if(Oc)return yo.onStart(()=>Gr(Gs,bs.fromStyles)),yo.onDestroy(()=>Ir(Gs,bs.toStyles)),void D.push(yo);if(wi.isFallbackTransition)return yo.onStart(()=>Gr(Gs,bs.fromStyles)),yo.onDestroy(()=>Ir(Gs,bs.toStyles)),void D.push(yo);const Kv=[];bs.timelines.forEach(Na=>{Na.stretchStartingKeyframe=!0,this.disabledNodes.has(Na.element)||Kv.push(Na)}),bs.timelines=Kv,v.append(Gs,bs.timelines),te.push({instruction:bs,player:yo,element:Gs}),bs.queriedElements.forEach(Na=>Aa(we,Na,[]).push(yo)),bs.preStyleProps.forEach((Na,Nc)=>{if(Na.size){let _l=Ye.get(Nc);_l||Ye.set(Nc,_l=new Set),Na.forEach((Um,ap)=>_l.add(ap))}}),bs.postStyleProps.forEach((Na,Nc)=>{let _l=yt.get(Nc);_l||yt.set(Nc,_l=new Set),Na.forEach((Um,ap)=>_l.add(ap))})});if(gc.length){const ei=[];gc.forEach(mi=>{ei.push(function lu(){return new c.wOt(3505,!1)}())}),eu.forEach(mi=>mi.destroy()),this.reportError(ei)}const na=new Map,Ra=new Map;te.forEach(ei=>{const mi=ei.element;v.has(mi)&&(Ra.set(mi,mi),this._beforeAnimationBuild(ei.player.namespaceId,ei.instruction,na))}),D.forEach(ei=>{const mi=ei.element;this._getPreviousPlayers(mi,!1,ei.namespaceId,ei.triggerName,null).forEach(yo=>{Aa(na,mi,[]).push(yo),yo.destroy()})});const jl=yi.filter(ei=>_u(ei,Ye,yt)),Jl=new Map;mh(Jl,this.driver,ls,yt,Tr.kp).forEach(ei=>{_u(ei,Ye,yt)&&jl.push(ei)});const Tu=new Map;Zn.forEach((ei,mi)=>{mh(Tu,this.driver,new Set(ei),Ye,Tr.FX)}),jl.forEach(ei=>{const mi=Jl.get(ei),wi=Tu.get(ei);Jl.set(ei,new Map([...mi?.entries()??[],...wi?.entries()??[]]))});const Bm=[],zv=[],sp={};te.forEach(ei=>{const{element:mi,player:wi,instruction:yo}=ei;if(v.has(mi)){if(sn.has(mi))return wi.onDestroy(()=>Ir(mi,yo.toStyles)),wi.disabled=!0,wi.overrideTotalTime(yo.totalTime),void D.push(wi);let Gs=sp;if(Ra.size>1){let Ms=mi;const Rc=[];for(;Ms=Ms.parentNode;){const bs=Ra.get(Ms);if(bs){Gs=bs;break}Rc.push(Ms)}Rc.forEach(bs=>Ra.set(bs,Gs))}const Oc=this._buildAnimation(wi.namespaceId,yo,na,W,Tu,Jl);if(wi.setRealPlayer(Oc),Gs===sp)Bm.push(wi);else{const Ms=this.playersByElement.get(Gs);Ms&&Ms.length&&(wi.parentPlayer=Ml(Ms)),D.push(wi)}}else Gr(mi,yo.fromStyles),wi.onDestroy(()=>Ir(mi,yo.toStyles)),zv.push(wi),sn.has(mi)&&D.push(wi)}),zv.forEach(ei=>{const mi=W.get(ei.element);if(mi&&mi.length){const wi=Ml(mi);ei.setRealPlayer(wi)}}),D.forEach(ei=>{ei.parentPlayer?ei.syncPlayerEvents(ei.parentPlayer):ei.destroy()});for(let ei=0;ei!Oc.destroyed);Gs.length?Ll(this,mi,Gs):this.processLeaveNode(mi)}return yi.length=0,Bm.forEach(ei=>{this.players.push(ei),ei.onDone(()=>{ei.destroy();const mi=this.players.indexOf(ei);this.players.splice(mi,1)}),ei.play()}),Bm}afterFlush(m){this._flushFns.push(m)}afterFlushAnimationsDone(m){this._whenQuietFns.push(m)}_getPreviousPlayers(m,d,v,D,W){let te=[];if(d){const we=this.playersByQueriedElement.get(m);we&&(te=we)}else{const we=this.playersByElement.get(m);if(we){const Ye=!W||W==vu;we.forEach(yt=>{yt.queued||!Ye&&yt.triggerName!=D||te.push(yt)})}}return(v||D)&&(te=te.filter(we=>!(v&&v!=we.namespaceId||D&&D!=we.triggerName))),te}_beforeAnimationBuild(m,d,v){const W=d.element,te=d.isRemovalTransition?void 0:m,we=d.isRemovalTransition?void 0:d.triggerName;for(const Ye of d.timelines){const yt=Ye.element,sn=yt!==W,pn=Aa(v,yt,[]);this._getPreviousPlayers(yt,sn,te,we,d.toState).forEach(Zn=>{const _r=Zn.getRealPlayer();_r.beforeDestroy&&_r.beforeDestroy(),Zn.destroy(),pn.push(Zn)})}Gr(W,d.fromStyles)}_buildAnimation(m,d,v,D,W,te){const we=d.triggerName,Ye=d.element,yt=[],sn=new Set,pn=new Set,Er=d.timelines.map(_r=>{const ti=_r.element;sn.add(ti);const yi=ti[pl];if(yi&&yi.removedBeforeQueried)return new Tr.sf(_r.duration,_r.delay);const go=ti!==Ye,ls=function Hu(_){const m=[];return Hp(_,m),m}((v.get(ti)||Bp).map(na=>na.getRealPlayer())).filter(na=>!!na.element&&na.element===ti),To=W.get(ti),ta=te.get(ti),eu=Il(this._normalizer,_r.keyframes,To,ta),gc=this._buildPlayer(_r,eu,ls);if(_r.subTimeline&&D&&pn.add(ti),go){const na=new vd(m,we,ti);na.setRealPlayer(gc),yt.push(na)}return gc});yt.forEach(_r=>{Aa(this.playersByQueriedElement,_r.element,[]).push(_r),_r.onDone(()=>function wf(_,m,d){let v=_.get(m);if(v){if(v.length){const D=v.indexOf(d);v.splice(D,1)}0==v.length&&_.delete(m)}return v}(this.playersByQueriedElement,_r.element,_r))}),sn.forEach(_r=>rl(_r,nr));const Zn=Ml(Er);return Zn.onDestroy(()=>{sn.forEach(_r=>Kc(_r,nr)),Ir(Ye,d.toStyles)}),pn.forEach(_r=>{Aa(D,_r,[]).push(Zn)}),Zn}_buildPlayer(m,d,v){return d.length>0?this.driver.animate(m.element,d,m.duration,m.delay,m.easing,v):new Tr.sf(m.duration,m.delay)}}class vd{namespaceId;triggerName;element;_player=new Tr.sf;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(m,d,v){this.namespaceId=m,this.triggerName=d,this.element=v}setRealPlayer(m){this._containsRealPlayer||(this._player=m,this._queuedCallbacks.forEach((d,v)=>{d.forEach(D=>fs(m,v,void 0,D))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(m.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(m){this.totalTime=m}syncPlayerEvents(m){const d=this._player;d.triggerCallback&&m.onStart(()=>d.triggerCallback("start")),m.onDone(()=>this.finish()),m.onDestroy(()=>this.destroy())}_queueEvent(m,d){Aa(this._queuedCallbacks,m,[]).push(d)}onDone(m){this.queued&&this._queueEvent("done",m),this._player.onDone(m)}onStart(m){this.queued&&this._queueEvent("start",m),this._player.onStart(m)}onDestroy(m){this.queued&&this._queueEvent("destroy",m),this._player.onDestroy(m)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(m){this.queued||this._player.setPosition(m)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(m){const d=this._player;d.triggerCallback&&d.triggerCallback(m)}}function _d(_){return _&&1===_.nodeType}function Vp(_,m){const d=_.style.display;return _.style.display=m??"none",d}function mh(_,m,d,v,D){const W=[];d.forEach(Ye=>W.push(Vp(Ye)));const te=[];v.forEach((Ye,yt)=>{const sn=new Map;Ye.forEach(pn=>{const Er=m.computeStyle(yt,pn,D);sn.set(pn,Er),(!Er||0==Er.length)&&(yt[pl]=Up,te.push(yt))}),_.set(yt,sn)});let we=0;return d.forEach(Ye=>Vp(Ye,W[we++])),te}function hc(_,m){const d=new Map;if(_.forEach(we=>d.set(we,[])),0==m.length)return d;const D=new Set(m),W=new Map;function te(we){if(!we)return 1;let Ye=W.get(we);if(Ye)return Ye;const yt=we.parentNode;return Ye=d.has(yt)?yt:D.has(yt)?1:te(yt),W.set(we,Ye),Ye}return m.forEach(we=>{const Ye=te(we);1!==Ye&&d.get(Ye).push(we)}),d}function rl(_,m){_.classList?.add(m)}function Kc(_,m){_.classList?.remove(m)}function Ll(_,m,d){Ml(d).onDone(()=>_.processLeaveNode(m))}function Hp(_,m){for(let d=0;d<_.length;d++){const v=_[d];v instanceof Tr.ui?Hp(v.players,m):m.push(v)}}function _u(_,m,d){const v=d.get(_);if(!v)return!1;let D=m.get(_);return D?v.forEach(W=>D.add(W)):m.set(_,v),d.delete(_),!0}class il{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(m,d)=>{};constructor(m,d,v){this._driver=d,this._normalizer=v,this._transitionEngine=new bf(m.body,d,v),this._timelineEngine=new dh(m.body,d,v),this._transitionEngine.onRemovalComplete=(D,W)=>this.onRemovalComplete(D,W)}registerTrigger(m,d,v,D,W){const te=m+"-"+D;let we=this._triggerCache[te];if(!we){const Ye=[],sn=Ol(this._driver,W,Ye,[]);if(Ye.length)throw function lf(){return new c.wOt(3404,!1)}();we=function As(_,m,d){return new Lp(_,m,d)}(D,sn,this._normalizer),this._triggerCache[te]=we}this._transitionEngine.registerTrigger(d,D,we)}register(m,d){this._transitionEngine.register(m,d)}destroy(m,d){this._transitionEngine.destroy(m,d)}onInsert(m,d,v,D){this._transitionEngine.insertNode(m,d,v,D)}onRemove(m,d,v){this._transitionEngine.removeNode(m,d,v)}disableAnimations(m,d){this._transitionEngine.markElementAsDisabled(m,d)}process(m,d,v,D){if("@"==v.charAt(0)){const[W,te]=hf(v);this._timelineEngine.command(W,d,te,D)}else this._transitionEngine.trigger(m,d,v,D)}listen(m,d,v,D,W){if("@"==v.charAt(0)){const[te,we]=hf(v);return this._timelineEngine.listen(te,d,we,W)}return this._transitionEngine.listen(m,d,v,D,W)}flush(m=-1){this._transitionEngine.flush(m)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(m){this._transitionEngine.afterFlushAnimationsDone(m)}}let gh=(()=>{class _{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(d,v,D){this._element=d,this._startStyles=v,this._endStyles=D;let W=_.initialStylesByElement.get(d);W||_.initialStylesByElement.set(d,W=new Map),this._initialStyles=W}start(){this._state<1&&(this._startStyles&&Ir(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ir(this._element,this._initialStyles),this._endStyles&&(Ir(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(_.initialStylesByElement.delete(this._element),this._startStyles&&(Gr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gr(this._element,this._endStyles),this._endStyles=null),Ir(this._element,this._initialStyles),this._state=3)}}return _})();function Pl(_){let m=null;return _.forEach((d,v)=>{(function yu(_){return"display"===_||"position"===_})(v)&&(m=m||new Map,m.set(v,d))}),m}class yd{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(m,d,v,D){this.element=m,this.keyframes=d,this.options=v,this._specialStyles=D,this._duration=v.duration,this._delay=v.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(m=>m()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const m=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,m,this.options),this._finalKeyframe=m.length?m[m.length-1]:new Map;const d=()=>this._onFinish();this.domPlayer.addEventListener("finish",d),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",d)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(m){const d=[];return m.forEach(v=>{d.push(Object.fromEntries(v))}),d}_triggerWebAnimation(m,d,v){return m.animate(this._convertKeyframesToObject(d),v)}onStart(m){this._originalOnStartFns.push(m),this._onStartFns.push(m)}onDone(m){this._originalOnDoneFns.push(m),this._onDoneFns.push(m)}onDestroy(m){this._onDestroyFns.push(m)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(m=>m()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(m=>m()),this._onDestroyFns=[])}setPosition(m){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=m*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const m=new Map;this.hasStarted()&&this._finalKeyframe.forEach((v,D)=>{"offset"!==D&&m.set(D,this._finished?v:mo(this.element,D))}),this.currentSnapshot=m}triggerCallback(m){const d="start"===m?this._onStartFns:this._onDoneFns;d.forEach(v=>v()),d.length=0}}class Wu{validateStyleProperty(m){return!0}validateAnimatableStyleProperty(m){return!0}containsElement(m,d){return R(m,d)}getParentElement(m){return Fu(m)}query(m,d,v){return U(m,d,v)}computeStyle(m,d,v){return mo(m,d)}animate(m,d,v,D,W,te=[]){const Ye={duration:v,delay:D,fill:0==D?"both":"forwards"};W&&(Ye.easing=W);const yt=new Map,sn=te.filter(Zn=>Zn instanceof yd);(function jr(_,m){return 0===_||0===m})(v,D)&&sn.forEach(Zn=>{Zn.currentSnapshot.forEach((_r,ti)=>yt.set(ti,_r))});let pn=function dr(_){return _.length?_[0]instanceof Map?_:_.map(m=>new Map(Object.entries(m))):[]}(d).map(Zn=>new Map(Zn));pn=function Fi(_,m,d){if(d.size&&m.length){let v=m[0],D=[];if(d.forEach((W,te)=>{v.has(te)||D.push(te),v.set(te,W)}),D.length)for(let W=1;Wte.set(we,mo(_,we)))}}return m}(m,pn,yt);const Er=function Wp(_,m){let d=null,v=null;return Array.isArray(m)&&m.length?(d=Pl(m[0]),m.length>1&&(v=Pl(m[m.length-1]))):m instanceof Map&&(d=Pl(m)),d||v?new gh(_,d,v):null}(m,pn);return new yd(m,pn,Ye,Er)}}const xf="@.disabled";class Vo{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(m,d,v,D){this.namespaceId=m,this.delegate=d,this.engine=v,this._onDestroy=D}get data(){return this.delegate.data}destroyNode(m){this.delegate.destroyNode?.(m)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(m,d){return this.delegate.createElement(m,d)}createComment(m){return this.delegate.createComment(m)}createText(m){return this.delegate.createText(m)}appendChild(m,d){this.delegate.appendChild(m,d),this.engine.onInsert(this.namespaceId,d,m,!1)}insertBefore(m,d,v,D=!0){this.delegate.insertBefore(m,d,v),this.engine.onInsert(this.namespaceId,d,m,D)}removeChild(m,d,v){this.parentNode(d)&&this.engine.onRemove(this.namespaceId,d,this.delegate)}selectRootElement(m,d){return this.delegate.selectRootElement(m,d)}parentNode(m){return this.delegate.parentNode(m)}nextSibling(m){return this.delegate.nextSibling(m)}setAttribute(m,d,v,D){this.delegate.setAttribute(m,d,v,D)}removeAttribute(m,d,v){this.delegate.removeAttribute(m,d,v)}addClass(m,d){this.delegate.addClass(m,d)}removeClass(m,d){this.delegate.removeClass(m,d)}setStyle(m,d,v,D){this.delegate.setStyle(m,d,v,D)}removeStyle(m,d,v){this.delegate.removeStyle(m,d,v)}setProperty(m,d,v){"@"==d.charAt(0)&&d==xf?this.disableAnimations(m,!!v):this.delegate.setProperty(m,d,v)}setValue(m,d){this.delegate.setValue(m,d)}listen(m,d,v){return this.delegate.listen(m,d,v)}disableAnimations(m,d){this.engine.disableAnimations(m,d)}}class Cf extends Vo{factory;constructor(m,d,v,D,W){super(d,v,D,W),this.factory=m,this.namespaceId=d}setProperty(m,d,v){"@"==d.charAt(0)?"."==d.charAt(1)&&d==xf?this.disableAnimations(m,v=void 0===v||!!v):this.engine.process(this.namespaceId,m,d.slice(1),v):this.delegate.setProperty(m,d,v)}listen(m,d,v){if("@"==d.charAt(0)){const D=function vh(_){switch(_){case"body":return document.body;case"document":return document;case"window":return window;default:return _}}(m);let W=d.slice(1),te="";return"@"!=W.charAt(0)&&([W,te]=function _h(_){const m=_.indexOf(".");return[_.substring(0,m),_.slice(m+1)]}(W)),this.engine.listen(this.namespaceId,D,W,te,we=>{this.factory.scheduleListenerCallback(we._data||-1,v,we)})}return this.delegate.listen(m,d,v)}}class yh{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(m,d,v){this.delegate=m,this.engine=d,this._zone=v,d.onRemovalComplete=(D,W)=>{W?.removeChild(null,D)}}createRenderer(m,d){const D=this.delegate.createRenderer(m,d);if(!m||!d?.data?.animation){const yt=this._rendererCache;let sn=yt.get(D);return sn||(sn=new Vo("",D,this.engine,()=>yt.delete(D)),yt.set(D,sn)),sn}const W=d.id,te=d.id+"-"+this._currentId;this._currentId++,this.engine.register(te,m);const we=yt=>{Array.isArray(yt)?yt.forEach(we):this.engine.registerTrigger(W,te,m,yt.name,yt)};return d.data.animation.forEach(we),new Cf(this,te,D,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(m,d,v){if(m>=0&&md(v));const D=this._animationCallbacksBuffer;0==D.length&&queueMicrotask(()=>{this._zone.run(()=>{D.forEach(W=>{const[te,we]=W;te(we)}),this._animationCallbacksBuffer=[]})}),D.push([d,v])}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 wd=[{provide:Be,useFactory:function Df(){return new gs}},{provide:il,useClass:(()=>{class _ extends il{constructor(d,v,D){super(d,v,D)}ngOnDestroy(){this.flush()}static \u0275fac=function(v){return new(v||_)(c.KVO(st.qQ),c.KVO(Ae),c.KVO(Be))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})()},{provide:c._9s,useFactory:function Sf(_,m,d){return new yh(_,m,d)},deps:[i.B7,il,c.SKi]}],wh=[{provide:Ae,useFactory:()=>new Wu},{provide:c.bc$,useValue:"BrowserAnimations"},...wd];var Ed=r(9030),xd=r(3726),bg=r(8793),za=r(1413),Kp=r(5343);const Yc=new S.c(Kp.l);var ml=r(7786),Tc=r(6648),Vs=r(6354),Tf=r(17),Cd=r(8071),bu=r(8750),xh=r(9974);const Dh={connector:()=>new za.B};function wu(_,m=Dh){const{connector:d}=m;return(0,xh.N)((v,D)=>{const W=d();(0,bu.Tg)(_(function Ch(_){return new S.c(m=>_.subscribe(m))}(W))).subscribe(D),D.add(v.subscribe(W))})}var Mc=r(8141);const Zl="Service workers are disabled or not supported by this browser";class Eu{serviceWorker;worker;registration;events;constructor(m){if(this.serviceWorker=m,m){const v=(0,xd.R)(m,"controllerchange").pipe((0,Vs.T)(()=>m.controller)),D=(0,Ed.v)(()=>(0,I.of)(m.controller)),W=(0,bg.x)(D,v);this.worker=W.pipe((0,ht.p)(sn=>!!sn)),this.registration=this.worker.pipe((0,me.n)(()=>m.getRegistration()));const yt=(0,xd.R)(m,"message").pipe((0,Vs.T)(sn=>sn.data)).pipe((0,ht.p)(sn=>sn&&sn.type)).pipe(function Sh(_){return _?m=>wu(_)(m):m=>function Gu(_,m){const d=(0,Cd.T)(_)?_:()=>_;return(0,Cd.T)(m)?wu(m,{connector:d}):v=>new Tf.G(v,d)}(new za.B)(m)}());yt.connect(),this.events=yt}else this.worker=this.events=this.registration=function Yp(_){return(0,Ed.v)(()=>(0,T.$)(new Error(_)))}(Zl)}postMessage(m,d){return this.worker.pipe((0,A.s)(1),(0,Mc.M)(v=>{v.postMessage({action:m,...d})})).toPromise().then(()=>{})}postMessageWithOperation(m,d,v){const D=this.waitForOperationCompleted(v),W=this.postMessage(m,d);return Promise.all([W,D]).then(([,te])=>te)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(m){let d;return d="string"==typeof m?v=>v.type===m:v=>m.includes(v.type),this.events.pipe((0,ht.p)(d))}nextEventOfType(m){return this.eventsOfType(m).pipe((0,A.s)(1))}waitForOperationCompleted(m){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,ht.p)(d=>d.nonce===m),(0,A.s)(1),(0,Vs.T)(d=>{if(void 0!==d.result)return d.result;throw new Error(d.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Mf=(()=>{class _{sw;messages;notificationClicks;subscription;get isEnabled(){return this.sw.isEnabled}pushManager=null;subscriptionChanges=new za.B;constructor(d){if(this.sw=d,!d.isEnabled)return this.messages=Yc,this.notificationClicks=Yc,void(this.subscription=Yc);this.messages=this.sw.eventsOfType("PUSH").pipe((0,Vs.T)(D=>D.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,Vs.T)(D=>D.data)),this.pushManager=this.sw.registration.pipe((0,Vs.T)(D=>D.pushManager));const v=this.pushManager.pipe((0,me.n)(D=>D.getSubscription()));this.subscription=(0,ml.h)(v,this.subscriptionChanges)}requestSubscription(d){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(Zl));const v={userVisibleOnly:!0};let D=this.decodeBase64(d.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),W=new Uint8Array(new ArrayBuffer(D.length));for(let te=0;tete.subscribe(v)),(0,A.s)(1)).toPromise().then(te=>(this.subscriptionChanges.next(te),te))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,A.s)(1),(0,me.n)(v=>{if(null===v)throw new Error("Not subscribed to push notifications.");return v.unsubscribe().then(D=>{if(!D)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Zl))}decodeBase64(d){return atob(d)}static \u0275fac=function(v){return new(v||_)(c.KVO(Eu))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})(),zu=(()=>{class _{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled}constructor(d){if(this.sw=d,!d.isEnabled)return this.versionUpdates=Yc,void(this.unrecoverable=Yc);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(Zl));const d=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:d},d)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Zl));const d=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:d},d)}static \u0275fac=function(v){return new(v||_)(c.KVO(Eu))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();const Ku=new c.nKC("");function If(_,m,d,v){return()=>{if(!(0,st.UE)(v)||!("serviceWorker"in navigator)||!1===d.enabled)return;const D=_.get(c.SKi),W=_.get(c.o8S);let te;if(D.runOutsideAngular(()=>{const we=navigator.serviceWorker,Ye=()=>we.controller?.postMessage({action:"INITIALIZE"});we.addEventListener("controllerchange",Ye),W.onDestroy(()=>{we.removeEventListener("controllerchange",Ye)})}),"function"==typeof d.registrationStrategy)te=d.registrationStrategy();else{const[we,...Ye]=(d.registrationStrategy||"registerWhenStable:30000").split(":");switch(we){case"registerImmediately":te=(0,I.of)(null);break;case"registerWithDelay":te=Ah(+Ye[0]||0);break;case"registerWhenStable":const yt=(0,Tc.H)(_.get(c.o8S).whenStable());te=Ye[0]?(0,ml.h)(yt,Ah(+Ye[0])):yt;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${d.registrationStrategy}`)}}D.runOutsideAngular(()=>te.pipe((0,A.s)(1)).subscribe(()=>navigator.serviceWorker.register(m,{scope:d.scope}).catch(we=>console.error("Service worker registration failed with:",we))))}}function Ah(_){return(0,I.of)(null).pipe((0,be.c)(_))}function Ta(_,m){return new Eu((0,st.UE)(m)&&!1!==_.enabled?navigator.serviceWorker:void 0)}class Qc{enabled;scope;registrationStrategy}var Xu=r(7468),b=r(2498),x=r(9437),M=r(4668),G=r(4572),J=r(983);function ye(_){return _&&_.constructor&&"function"==typeof _.constructor.isBuffer&&_.constructor.isBuffer(_)}function Ne(_){return _}function Ue(_,m){const d=(m=m||{}).delimiter||".",v=m.maxDepth,D=m.transformKey||Ne,W={};return function te(we,Ye,yt){yt=yt||1,Object.keys(we).forEach(function(sn){const pn=we[sn],Er=m.safe&&Array.isArray(pn),Zn=Object.prototype.toString.call(pn),_r=ye(pn),ti="[object Object]"===Zn||"[object Array]"===Zn,yi=Ye?Ye+d+D(sn):D(sn);if(!Er&&!_r&&ti&&Object.keys(pn).length&&(!m.maxDepth||yt0&&(Er=we(pn.shift()),Zn=we(pn[0]))}_r[Er]=rt(_[sn],m)}),W}class xt{translations;constructor(m){this.translations=m}getTranslation(m){return(0,I.of)(this.translations.get(m)||{})}}const Gt=new c.nKC("TRANSLOCO_LOADER");function jt(_,m){return _&&(Object.prototype.hasOwnProperty.call(_,m)?_[m]:m.split(".").reduce((d,v)=>d?.[v],_))}function gn(_){return _?Array.isArray(_)?_.length:Tn(_)?Object.keys(_).length:_?_.length:0:0}function qt(_){return"string"==typeof _}function Tn(_){return!!_&&"object"==typeof _&&!Array.isArray(_)}function br(_){return null==_}function Nr(_){return!1===br(_)}function Ci(_){return _&&"string"==typeof _.scope}function ji(_){return Ue(_,{safe:!0})}const qi=new c.nKC("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>er}),er={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};function wr(_={}){return{...er,..._,missingHandler:{...er.missingHandler,..._.missingHandler},flatten:{...er.flatten,..._.flatten}}}const Zr=new c.nKC("TRANSLOCO_TRANSPILER");let pi=(()=>{class _{interpolationMatcher;constructor(d){this.interpolationMatcher=function xr(_){const[m,d]=_.interpolation;return new RegExp(`${m}(.*?)${d}`,"g")}(d??er)}transpile(d,v={},D,W){return qt(d)?d.replace(this.interpolationMatcher,(te,we)=>(we=we.trim(),Nr(v[we])?v[we]:Nr(D[we])?this.transpile(D[we],v,D,W):"")):(v&&(Tn(d)?d=this.handleObject(d,v,D,W):Array.isArray(d)&&(d=this.handleArray(d,v,D,W))),d)}handleObject(d,v={},D,W){let te=d;return Object.keys(v).forEach(we=>{const Ye=jt(te,we),yt=jt(v,we),sn=this.transpile(Ye,yt,D,W);te=function cn(_,m,d){_={..._};const v=m.split("."),D=v.length-1;return v.reduce((W,te,we)=>(W[te]=we===D?d:Array.isArray(W[te])?W[te].slice():{...W[te]},W&&W[te]),_),_}(te,we,sn)}),te}handleArray(d,v={},D,W){return d.map(te=>this.transpile(te,v,D,W))}static \u0275fac=function(v){return new(v||_)(c.KVO(qi,8))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();const Ri=new c.nKC("TRANSLOCO_MISSING_HANDLER");let Hs=(()=>{class _{handle(d,v){return v.missingHandler.logMissingKey&&!v.prodMode&&console.warn(`%c Missing translation for '${d}'`,"font-size: 12px; color: red"),d}static \u0275fac=function(v){return new(v||_)};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();const Ws=new c.nKC("TRANSLOCO_INTERCEPTOR");let Ma=(()=>{class _{preSaveTranslation(d){return d}preSaveTranslationKey(d,v){return v}static \u0275fac=function(v){return new(v||_)};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();const gl=new c.nKC("TRANSLOCO_FALLBACK_STRATEGY");let Ad,Ia=(()=>{class _{userConfig;constructor(d){this.userConfig=d}getNextLangs(){const d=this.userConfig.fallbackLang;if(!d)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(d)?d:[d]}static \u0275fac=function(v){return new(v||_)(c.KVO(qi))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();function Ka(_){if(!_)return"";const m=_.split("/");return m.pop(),m.join("/")}function vs(_){return _?_.split("/").pop():""}function Cu(_){return{scope:Ka(_)||null,langName:vs(_)}}function Yu(_){const{path:m,inlineLoader:d,mainLoader:v,data:D}=_;if(d){if(!1===function Yt(_){return"function"==typeof _}(d[m]))throw`You're using an inline loader but didn't provide a loader for ${m}`;return d[m]().then(te=>te.default?te.default:te)}return v.getTranslation(m,D)}let Td=(()=>{class _{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 za.B;events$=this.events.asObservable();config;constructor(d,v,D,W,te,we){this.loader=d,this.parser=v,this.missingHandler=D,this.interceptor=W,this.fallbackStrategy=we,this.loader||(this.loader=new xt(this.translations)),Ad=this,this.config=JSON.parse(JSON.stringify(te)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new Re.t(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.subscription=this.events$.subscribe(Ye=>{"translationLoadSuccess"===Ye.type&&Ye.wasFailure&&this.setActiveLang(Ye.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(d){this.defaultLang=d}getActiveLang(){return this.lang.getValue()}setActiveLang(d){return this.parser.onLangChanged?.(d),this.lang.next(d),this.events.next({type:"langChanged",payload:Cu(d)}),this}setAvailableLangs(d){this.availableLangs=d}getAvailableLangs(){return this.availableLangs}load(d,v={}){const D=this.cache.get(d);if(D)return D;let W;const te=this._isLangScoped(d);let we;te&&(we=Ka(d));const Ye={path:d,mainLoader:this.loader,inlineLoader:v.inlineLoader,data:te?{scope:we}:void 0};if(this.useFallbackTranslation(d)){const sn=te?`${we}/${this.firstFallbackLang}`:this.firstFallbackLang,pn=function Sd({mainLoader:_,path:m,data:d,fallbackPath:v,inlineLoader:D}){return(v?[m,v]:[m]).map(te=>{const we=Yu({path:te,mainLoader:_,inlineLoader:D,data:d});return(0,Tc.H)(we).pipe((0,Vs.T)(Ye=>({translation:Ye,lang:te})))})}({...Ye,fallbackPath:sn});W=(0,Xu.p)(pn)}else{const sn=Yu(Ye);W=(0,Tc.H)(sn)}const yt=W.pipe((0,b.L)(this.config.failedRetries),(0,Mc.M)(sn=>{Array.isArray(sn)?sn.forEach(pn=>{this.handleSuccess(pn.lang,pn.translation),pn.lang!==d&&this.cache.set(pn.lang,(0,I.of)({}))}):this.handleSuccess(d,sn)}),(0,x.W)(sn=>(this.config.prodMode||console.error(`Error while trying to load "${d}"`,sn),this.handleFailure(d,v))),(0,M.t)(1));return this.cache.set(d,yt),yt}translate(d,v={},D=this.getActiveLang()){if(!d)return d;const{scope:W,resolveLang:te}=this.resolveLangAndScope(D);if(Array.isArray(d))return d.map(yt=>this.translate(W?`${W}.${yt}`:yt,v,te));d=W?`${W}.${d}`:d;const we=this.getTranslation(te),Ye=we[d];return Ye?this.parser.transpile(Ye,v,we,d):this._handleMissingKey(d,Ye,v)}selectTranslate(d,v,D,W=!1){let te;const we=(yt,sn)=>this.load(yt,sn).pipe((0,Vs.T)(()=>W?this.translateObject(d,v,yt):this.translate(d,v,yt)));if(br(D))return this.langChanges$.pipe((0,me.n)(yt=>we(yt)));if(function fi(_){return Array.isArray(_)&&_.every(Ci)}(D)||Ci(D)){const yt=Array.isArray(D)?D[0]:D;D=yt.scope,te=function xu(_,m){return function li(_){return _&&Tn(_.loader)}(_)?function Bl(_,m){return Object.keys(_).reduce((d,v)=>(d[`${m}/${v}`]=_[v],d),{})}(_.loader,m):void 0}(yt,yt.scope)}if(this.isLang(D)||this.isScopeWithLang(D))return we(D);const Ye=D;return this.langChanges$.pipe((0,me.n)(yt=>we(`${Ye}/${yt}`,{inlineLoader:te})))}isScopeWithLang(d){return this.isLang(vs(d))}translateObject(d,v={},D=this.getActiveLang()){if(qt(d)||Array.isArray(d)){const{resolveLang:te,scope:we}=this.resolveLangAndScope(D);if(Array.isArray(d))return d.map(sn=>this.translateObject(we?`${we}.${sn}`:sn,v,te));const Ye=this.getTranslation(te),yt=function Ji(_){return rt(_)}(this.getObjectByKey(Ye,d=we?`${we}.${d}`:d));return function tn(_){return 0===gn(_)}(yt)?this.translate(d,v,D):this.parser.transpile(yt,v,Ye,d)}const W=[];for(const[te,we]of this.getEntries(d))W.push(this.translateObject(te,we,D));return W}selectTranslateObject(d,v,D){if(qt(d)||Array.isArray(d))return this.selectTranslate(d,v,D,!0);const[[W,te],...we]=this.getEntries(d);return this.selectTranslateObject(W,te,D).pipe((0,Vs.T)(Ye=>{const yt=[Ye];for(const[sn,pn]of we)yt.push(this.translateObject(sn,pn,D));return yt}))}getTranslation(d){if(d){if(this.isLang(d))return this.translations.get(d)||{};{const{scope:v,resolveLang:D}=this.resolveLangAndScope(d),W=this.translations.get(D)||{};return this.getObjectByKey(W,v)}}return this.translations}selectTranslation(d){let v=this.langChanges$;if(d){const D=vs(d)!==d;v=this.isLang(d)||D?(0,I.of)(d):this.langChanges$.pipe((0,Vs.T)(W=>`${d}/${W}`))}return v.pipe((0,me.n)(D=>this.load(D).pipe((0,Vs.T)(()=>this.getTranslation(D)))))}setTranslation(d,v=this.getActiveLang(),D={}){const te={merge:!0,emitChange:!0,...D},we=Ka(v);let Ye=d;if(we){const Zn=this.getMappedScope(we);Ye=ji({[Zn]:d})}const yt=we?vs(v):v,sn={...te.merge&&this.getTranslation(yt),...Ye},pn=this.config.flatten.aot?sn:ji(sn),Er=this.interceptor.preSaveTranslation(pn,yt);this.translations.set(yt,Er),te.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(d,v,D=this.getActiveLang(),W={}){const te=this.interceptor.preSaveTranslationKey(d,v,D);this.setTranslation({[d]:te},D,{...W,merge:!0})}setFallbackLangForMissingTranslation({fallbackLang:d}){const v=Array.isArray(d)?d[0]:d;d&&this.useFallbackTranslation(v)&&(this.firstFallbackLang=v)}_handleMissingKey(d,v,D){if(this.config.missingHandler.allowEmpty&&""===v)return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;const W=this.translate(d,D,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,W}return this.missingHandler.handle(d,this.getMissingHandlerData(),D)}_isLangScoped(d){return-1===this.getAvailableLangsIds().indexOf(d)}isLang(d){return-1!==this.getAvailableLangsIds().indexOf(d)}_loadDependencies(d,v){const D=vs(d);return this._isLangScoped(d)&&!this.isLoadedTranslation(D)?(0,G.z)([this.load(D),this.load(d,{inlineLoader:v})]):this.load(d,{inlineLoader:v})}_completeScopeWithLang(d){return this._isLangScoped(d)&&!this.isLang(vs(d))?`${d}/${this.getActiveLang()}`:d}_setScopeAlias(d,v){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[d]=v}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.cache.clear()}isLoadedTranslation(d){return gn(this.getTranslation(d))}getAvailableLangsIds(){return qt(this.getAvailableLangs()[0])?this.getAvailableLangs():this.getAvailableLangs().map(v=>v.id)}getMissingHandlerData(){return{...this.config,activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang}}useFallbackTranslation(d){return this.config.missingHandler.useFallbackTranslation&&d!==this.firstFallbackLang}handleSuccess(d,v){this.setTranslation(v,d,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:Cu(d)}),this.failedLangs.forEach(D=>this.cache.delete(D)),this.failedLangs.clear()}handleFailure(d,v){br(v.failedCounter)&&(v.failedCounter=0,v.fallbackLangs||(v.fallbackLangs=this.fallbackStrategy.getNextLangs(d)));const D=d.split("/"),te=v.fallbackLangs[v.failedCounter];if(this.failedLangs.add(d),this.cache.has(te))return this.handleSuccess(te,this.getTranslation(te)),J.w;if(!te||te===D[D.length-1]){let yt="Unable to load translation and all the fallback languages";throw D.length>1&&(yt+=", did you misspelled the scope name?"),new Error(yt)}let Ye=te;return D.length>1&&(D[D.length-1]=te,Ye=D.join("/")),v.failedCounter++,this.events.next({type:"translationLoadFailure",payload:Cu(d)}),this.load(Ye,v)}getMappedScope(d){const{scopeMapping:v={}}=this.config;return v[d]||function ar(_){return _.replace(/(?:^\w|[A-Z]|\b\w)/g,(m,d)=>0==d?m.toLowerCase():m.toUpperCase()).replace(/\s+|_|-|\//g,"")}(d)}resolveLangAndScope(d){let D,v=d;if(this._isLangScoped(d)){const W=vs(d),te=this.isLang(W);v=te?W:this.getActiveLang(),D=this.getMappedScope(te?Ka(d):d)}return{scope:D,resolveLang:v}}getObjectByKey(d,v){const D={},W=`${v}.`;for(const te in d)te.startsWith(W)&&(D[te.replace(W,"")]=d[te]);return D}getEntries(d){return d instanceof Map?d.entries():Object.entries(d)}static \u0275fac=function(v){return new(v||_)(c.KVO(Gt,8),c.KVO(Zr),c.KVO(Ri),c.KVO(Ws),c.KVO(qi),c.KVO(gl))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})();function Ag(_){return(0,c.EmA)([{provide:Zr,useClass:_,deps:[qi]}])}function Zp(_){return(0,c.EmA)([{provide:gl,useClass:_,deps:[qi]}])}function qp(_){return(0,c.EmA)([{provide:Ri,useClass:_}])}function Oh(_){return(0,c.EmA)([{provide:Ws,useClass:_}])}new c.nKC("TRANSLOCO_LANG"),new c.nKC("TRANSLOCO_LOADING_TEMPLATE"),new c.nKC("TRANSLOCO_SCOPE"),new c.nKC("TRANSLOCO_TEST_LANGS - Available testing languages"),new c.nKC("TRANSLOCO_TEST_OPTIONS - Testing options");var Ig=r(2771);let Qu=(()=>{class _{constructor(){this._httpClient=(0,c.WQX)(ne.Qq),this._navigation=new Ig.m(1)}get navigation$(){return this._navigation.asObservable()}get(){return this._httpClient.get("api/navigation").pipe((0,Mc.M)(d=>{this._navigation.next(d)}))}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})(),Q_=(()=>{class _{constructor(d){this._httpClient=d,this._chat=new Re.t(null),this._chats=new Re.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,Mc.M)(d=>{this._chats.next(d)}))}getChatById(d){return this._httpClient.get("api/apps/chat/chat",{params:{id:d}}).pipe((0,Vs.T)(v=>(this._chat.next(v),v)),(0,me.n)(v=>v?(0,I.of)(v):(0,T.$)("Could not found chat with id of "+d+"!")))}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(ne.Qq))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();const _s=new class mw{constructor(m){this.version=m,this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}("0.0.13").full;var vl=r(6977),Z_=r(4085),ys=r(7575);function Rh(_,m){if(1&_&&c.nrm(0,"mat-progress-bar",0),2&_){const d=c.XpG();c.Y8G("mode",d.mode)("value",d.progress)}}let Su=(()=>{class _{constructor(){this._angorLoadingService=(0,c.WQX)(Me),this.autoMode=!0,this.progress=0,this.show=!1,this._unsubscribeAll=new za.B}ngOnChanges(d){"autoMode"in d&&this._angorLoadingService.setAutoMode((0,Z_.he)(d.autoMode.currentValue))}ngOnInit(){this._angorLoadingService.mode$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.mode=d}),this._angorLoadingService.progress$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.progress=d}),this._angorLoadingService.show$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.show=d})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["angor-loading-bar"]],inputs:{autoMode:"autoMode"},exportAs:["angorLoadingBar"],features:[c.OA$],decls:1,vars:1,consts:[[3,"mode","value"]],template:function(v,D){1&v&&c.DNE(0,Rh,1,2,"mat-progress-bar",0),2&v&&c.vxM(D.show?0:-1)},dependencies:[ys.PO,ys.HM],styles:["angor-loading-bar{position:fixed;top:0;z-index:999;width:100%;height:6px}\n"],encapsulation:2})}}return _})();function Zu(_,m){1&_&&c.nrm(0,"router-outlet")}let Nh=(()=>{class _{constructor(){this._unsubscribeAll=new za.B}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["empty-layout"]],decls:4,vars:1,consts:[[1,"flex","w-full","flex-auto","flex-col"],[1,"flex","flex-auto","flex-col"]],template:function(v,D){1&v&&(c.nrm(0,"angor-loading-bar"),c.j41(1,"div",0)(2,"div",1),c.DNE(3,Zu,1,0,"router-outlet"),c.k0s()()),2&v&&(c.R7$(3),c.vxM(3))},dependencies:[Su,a.n3],encapsulation:2})}}return _})();var ka=r(8834),ol=r(9213),Rd=r(4823);function Nf(_,m){1&_&&c.nrm(0,"mat-icon",3)}let Og=(()=>{class _{constructor(){this._document=(0,c.WQX)(st.qQ)}toggleFullscreen(){this._document.fullscreenEnabled?this._document.fullscreenElement?this._document.exitFullscreen():this._document.documentElement.requestFullscreen().catch(()=>{console.error("Entering fullscreen mode failed.")}):console.log("Fullscreen is not available in this browser.")}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["angor-fullscreen"]],inputs:{iconTpl:"iconTpl",tooltip:"tooltip"},exportAs:["angorFullscreen"],decls:4,vars:2,consts:[["defaultIconTpl",""],["mat-icon-button","",3,"click","matTooltip"],[3,"ngTemplateOutlet"],["svgIcon","heroicons_outline:arrows-pointing-out"]],template:function(v,D){if(1&v){const W=c.RV6();c.j41(0,"button",1),c.bIt("click",function(){return c.eBV(W),c.Njj(D.toggleFullscreen())}),c.eu8(1,2),c.k0s(),c.DNE(2,Nf,1,0,"ng-template",null,0,c.C5r)}if(2&v){const W=c.sdS(3);c.Y8G("matTooltip",D.tooltip||"Toggle Fullscreen"),c.R7$(),c.Y8G("ngTemplateOutlet",D.iconTpl||W)}},dependencies:[ka.Hl,ka.iY,Rd.uc,Rd.oV,st.T3,ol.m_,ol.An],encapsulation:2,changeDetection:0})}}return _})();var kc=r(7857),Nd=r(6969),Jp=r(6939),Lh=r(6231);let Lf=(()=>{class _{constructor(d){this.relayService=d,this.notificationSubject=new Re.t([]),this.notificationCount=new Re.t(0),this.lastNotificationTimestamp=null,this.initializeNotificationData()}initializeNotificationData(){this.notificationCount.next(this.loadCountFromLocalStorage()),this.lastNotificationTimestamp=this.loadTimestampFromLocalStorage()}loadCountFromLocalStorage(){const d=localStorage.getItem("notificationCount");return d?parseInt(d,10):0}loadTimestampFromLocalStorage(){const d=localStorage.getItem("lastNotificationTimestamp");return d?parseInt(d,10):null}saveNotificationData(d,v){localStorage.setItem("notificationCount",d.toString()),localStorage.setItem("lastNotificationTimestamp",v.toString())}getNotificationObservable(){return this.notificationSubject.asObservable()}getNotificationCount(){return this.notificationCount.asObservable()}loadFilterPreferences(){const d=localStorage.getItem("notificationSettings");return d?JSON.parse(d):[1,3,4,7,9735]}subscribeToNotifications(d){var v=this;return(0,w.A)(function*(){yield v.relayService.ensureConnectedRelays();const D=v.relayService.getPool(),W=v.relayService.getConnectedRelays();if(0===W.length)throw new Error("No connected relays");const te=v.loadTimestampFromLocalStorage(),we=v.loadFilterPreferences();0===we.length&&we.push(1,3,4,7,9735);const Ye={kinds:we,"#p":[d],limit:50,since:te||void 0};return new Promise(yt=>{D.subscribeMany(W,[Ye],{onevent:pn=>v.handleNotificationEvent(pn,d),oneose(){yt()}})})})()}handleNotificationEvent(d,v){if(this.isNotificationEvent(d,v)){const W=new Date(1e3*d.created_at);let te="",we="",Ye="";switch(d.kind){case 1:te="Mention",we="Mentioned you in an event.",Ye="heroicons_outline:at-symbol";break;case 4:te="Private Message",we="Sent a private message.",Ye="heroicons_outline:envelope-open";break;case 9735:te="Zap",we="Received a zap event.",Ye="feather:zap";break;case 3:te="New Follower",we="You have a new follower.",Ye="heroicons_outline:user-plus";break;case 7:te="New Like",we="You have a new Like.",Ye="heroicons_outline:hand-thumb-up";break;default:te="Notification",Ye="heroicons_outline:bell"}const pn=[{id:d.id,icon:Ye,title:te,description:we,time:W,kind:d.kind,read:!1},...this.notificationSubject.value].slice(0,50);this.notificationSubject.next(pn),this.incrementNotificationCount(d.created_at)}}incrementNotificationCount(d){const v=this.notificationCount.value+1;this.notificationCount.next(v),this.saveNotificationData(v,d)}markAllAsRead(){this.notificationSubject.value.map(D=>({...D,read:!0})),this.notificationSubject.next([]),this.notificationCount.next(0);const v=Math.floor(Date.now()/1e3);this.saveNotificationData(0,v)}isNotificationEvent(d,v){return d.tags.some(D=>"p"===D[0]&&D[1]===v)}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(Lh.b))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var qu=r(6324);const Rg=["notificationsOrigin"],Ph=["notificationsPanel"],Ul=_=>({unread:_});function q_(_,m){if(1&_&&(c.j41(0,"span",4)(1,"span",6),c.EFF(2),c.k0s()()),2&_){const d=c.XpG();c.R7$(2),c.SpI(" ",d.unreadCount()," ")}}function Oa(_,m){1&_&&c.eu8(0)}function J_(_,m){if(1&_&&(c.j41(0,"a",18),c.DNE(1,Oa,1,0,"ng-container",20),c.k0s()),2&_){const d=c.XpG(2).$implicit,v=c.sdS(4);c.Y8G("href",d.link,c.B4B),c.R7$(),c.Y8G("ngTemplateOutlet",v)}}function ey(_,m){1&_&&c.eu8(0)}function em(_,m){if(1&_&&(c.j41(0,"a",19),c.DNE(1,ey,1,0,"ng-container",20),c.k0s()),2&_){const d=c.XpG(2).$implicit,v=c.sdS(4);c.Y8G("routerLink",d.link),c.R7$(),c.Y8G("ngTemplateOutlet",v)}}function Ng(_,m){if(1&_&&c.DNE(0,J_,2,2,"a",18)(1,em,2,2,"a",19),2&_){const d=c.XpG().$implicit;c.vxM(d.useRouter?-1:0),c.R7$(),c.vxM(d.useRouter?1:-1)}}function Lg(_,m){1&_&&c.eu8(0)}function ty(_,m){if(1&_&&(c.j41(0,"div",17),c.DNE(1,Lg,1,0,"ng-container",20),c.k0s()),2&_){c.XpG();const d=c.sdS(4);c.R7$(),c.Y8G("ngTemplateOutlet",d)}}function gw(_,m){if(1&_&&(c.j41(0,"div",21),c.nrm(1,"mat-icon",27),c.k0s()),2&_){const d=c.XpG(2).$implicit;c.R7$(),c.Y8G("svgIcon",d.icon)}}function Pg(_,m){if(1&_&&c.nrm(0,"img",22),2&_){const d=c.XpG(2).$implicit;c.Y8G("src",d.image,c.B4B)("alt","Notification image")}}function ny(_,m){if(1&_&&c.nrm(0,"div",24),2&_){const d=c.XpG(2).$implicit;c.Y8G("innerHTML",d.title,c.npT)}}function Pf(_,m){if(1&_&&c.nrm(0,"div",25),2&_){const d=c.XpG(2).$implicit;c.Y8G("innerHTML",d.description,c.npT)}}function tm(_,m){if(1&_&&(c.DNE(0,gw,2,1,"div",21)(1,Pg,1,2,"img",22),c.j41(2,"div",23),c.DNE(3,ny,1,1,"div",24)(4,Pf,1,1,"div",25),c.j41(5,"div",26),c.EFF(6),c.nI1(7,"date"),c.k0s()()),2&_){const d=c.XpG().$implicit;c.vxM(d.icon&&!d.image?0:-1),c.R7$(),c.vxM(d.image?1:-1),c.R7$(2),c.vxM(d.title?3:-1),c.R7$(),c.vxM(d.description?4:-1),c.R7$(2),c.SpI(" ",c.i5U(7,5,d.time,"MMM dd, h:mm a")," ")}}function nm(_,m){if(1&_&&(c.j41(0,"div",16),c.DNE(1,Ng,2,2)(2,ty,2,1,"div",17),c.k0s(),c.DNE(3,tm,8,8,"ng-template",null,2,c.C5r)),2&_){const d=m.$implicit;c.Y8G("ngClass",c.eq3(3,Ul,!d.read)),c.R7$(),c.vxM(d.link?1:-1),c.R7$(),c.vxM(d.link?-1:2)}}function Ld(_,m){1&_&&(c.j41(0,"div",15)(1,"div",28),c.nrm(2,"mat-icon",29),c.k0s(),c.j41(3,"div",30),c.EFF(4," No notifications "),c.k0s(),c.j41(5,"div",31),c.EFF(6," When you have notifications, they will appear here. "),c.k0s()()),2&_&&(c.R7$(2),c.Y8G("svgIcon","heroicons_outline:bell"))}function Ff(_,m){if(1&_){const d=c.RV6();c.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"button",3),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.closePanel())}),c.nrm(4,"mat-icon",10),c.k0s()(),c.j41(5,"div",11),c.EFF(6,"Notifications"),c.k0s(),c.j41(7,"div",12)(8,"button",13),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.markAllAsRead())}),c.nrm(9,"mat-icon",10),c.k0s()()(),c.j41(10,"div",14),c.Z7z(11,nm,5,5,null,null,c.BUC().trackByFn,!0),c.DNE(13,Ld,7,1,"div",15),c.k0s()()}if(2&_){const d=c.XpG();c.R7$(4),c.Y8G("svgIcon","heroicons_solid:x-mark"),c.R7$(4),c.Y8G("matTooltip","Mark all as read")("disabled",0===d.unreadCount()),c.R7$(),c.Y8G("svgIcon","heroicons_solid:envelope-open"),c.R7$(2),c.Dyx(d.notifications()),c.R7$(2),c.vxM(d.notifications()&&d.notifications().length?-1:13)}}let Fh=(()=>{class _{constructor(){this.notifications=(0,c.vPA)([]),this.unreadCount=(0,c.vPA)(0),this._unsubscribeAll=new za.B,this._notificationService=(0,c.WQX)(Lf),this._changeDetectorRef=(0,c.WQX)(c.gRc),this._overlay=(0,c.WQX)(Nd.hJ),this._viewContainerRef=(0,c.WQX)(c.c1b),this._signerService=(0,c.WQX)(qu.A)}ngOnInit(){const d=this._signerService.getPublicKey();this._notificationService.subscribeToNotifications(d).then(()=>{this._notificationService.getNotificationObservable().pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(v=>{this.notifications.set(v),this._changeDetectorRef.markForCheck()}),this._notificationService.getNotificationCount().pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(v=>{this.unreadCount.set(v),this._changeDetectorRef.markForCheck()})})}deleteNotification(d){throw new Error("Method not implemented.")}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openPanel(){!this._notificationsPanel||!this._notificationsOrigin||(this._overlayRef||this._createOverlay(),this._overlayRef.attach(new Jp.VA(this._notificationsPanel,this._viewContainerRef)))}closePanel(){this._overlayRef&&this._overlayRef.detach()}markAllAsRead(){this._notificationService.markAllAsRead(),this.notifications.set([]),this._changeDetectorRef.markForCheck()}trackByFn(d,v){return v.id}_createOverlay(){this._overlayRef=this._overlay.create({hasBackdrop:!0,backdropClass:"angor-backdrop-on-mobile",scrollStrategy:this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().flexibleConnectedTo(this._notificationsOrigin._elementRef.nativeElement).withLockedPosition(!0).withPush(!0).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"}])}),this._overlayRef.backdropClick().subscribe(()=>{this._overlayRef.detach()})}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["notifications"]],viewQuery:function(v,D){if(1&v&&(c.GBs(Rg,5),c.GBs(Ph,5)),2&v){let W;c.mGM(W=c.lsd())&&(D._notificationsOrigin=W.first),c.mGM(W=c.lsd())&&(D._notificationsPanel=W.first)}},exportAs:["notifications"],decls:6,vars:2,consts:[["notificationsOrigin",""],["notificationsPanel",""],["notificationContent",""],["mat-icon-button","",3,"click"],[1,"absolute","left-0","right-0","top-0","flex","h-3","items-center","justify-center"],[3,"svgIcon"],[1,"ml-4","mt-2.5","flex","h-4","min-w-4","shrink-0","items-center","justify-center","rounded-full","bg-teal-600","px-1","text-xs","font-medium","text-indigo-50"],[1,"fixed","inset-0","flex","flex-col","overflow-hidden","shadow-lg","sm:static","sm:inset-auto","sm:w-90","sm:min-w-90","sm:rounded-2xl"],[1,"flex","shrink-0","items-center","bg-primary","py-4","pl-6","pr-4","text-on-primary"],[1,"-ml-1","mr-3","sm:hidden"],[1,"text-current","icon-size-5",3,"svgIcon"],[1,"text-lg","font-medium","leading-10"],[1,"ml-auto"],["mat-icon-button","",1,"dark:text-white",3,"click","matTooltip","disabled"],[1,"bg-card","relative","flex","flex-auto","flex-col","divide-y","overflow-y-auto","sm:max-h-120"],[1,"flex","flex-auto","flex-col","items-center","justify-center","px-8","py-12","sm:justify-start"],[1,"group","flex","hover:bg-gray-50","dark:hover:bg-black","dark:hover:bg-opacity-5",3,"ngClass"],[1,"flex","flex-auto","py-5","pl-6"],[1,"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(v,D){if(1&v){const W=c.RV6();c.j41(0,"button",3,0),c.bIt("click",function(){return c.eBV(W),c.Njj(D.openPanel())}),c.DNE(2,q_,3,1,"span",4),c.nrm(3,"mat-icon",5),c.k0s(),c.DNE(4,Ff,14,5,"ng-template",null,1,c.C5r)}2&v&&(c.R7$(2),c.vxM(D.unreadCount()>0?2:-1),c.R7$(),c.Y8G("svgIcon","heroicons_outline:bell"))},dependencies:[ka.Hl,ka.iY,ol.m_,ol.An,Rd.uc,Rd.oV,st.YU,st.T3,a.Wk,st.vh],encapsulation:2,changeDetection:0})}}return _})();var fc=r(9417),Bf=r(5542),Zc=r(9888),Uf=r(8359),Fg=r(8203),ql=r(7336),Bg=r(9327),ry=r(9172);const Pd=["panel"],Bh=["*"];function vw(_,m){if(1&_){const d=c.RV6();c.j41(0,"div",1,0),c.bIt("@panelAnimation.done",function(D){c.eBV(d);const W=c.XpG();return c.Njj(W._animationDone.next(D))}),c.SdG(2),c.k0s()}if(2&_){const d=m.id,v=c.XpG();c.HbH(v._classList),c.AVh("mat-mdc-autocomplete-visible",v.showPanel)("mat-mdc-autocomplete-hidden",!v.showPanel)("mat-primary","primary"===v._color)("mat-accent","accent"===v._color)("mat-warn","warn"===v._color),c.Y8G("id",v.id)("@panelAnimation",v.isOpen?"visible":"hidden"),c.BMQ("aria-label",v.ariaLabel||null)("aria-labelledby",v._getPanelAriaLabelledby(d))}}const Ug=(0,Tr.hZ)("panelAnimation",[(0,Tr.wk)("void, hidden",(0,Tr.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,Tr.kY)(":enter, hidden => visible",[(0,Tr.Os)([(0,Tr.i0)("0.03s linear",(0,Tr.iF)({opacity:1})),(0,Tr.i0)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,Tr.iF)({transform:"scaleY(1)"}))])]),(0,Tr.kY)(":leave, visible => hidden",[(0,Tr.i0)("0.075s linear",(0,Tr.iF)({opacity:0}))])]);class iy{source;option;constructor(m,d){this.source=m,this.option=d}}const rm=new c.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function _w(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let $g=(()=>{class _{_changeDetectorRef=(0,c.WQX)(c.gRc);_elementRef=(0,c.WQX)(c.aKT);_defaults=(0,c.WQX)(rm);_activeOptionChanges=Uf.yU.EMPTY;_animationDone=new c.bkB;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(d){this._color=d,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new c.bkB;opened=new c.bkB;closed=new c.bkB;optionActivated=new c.bkB;set classList(d){this._classList=d,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(d){this._hideSingleSelectionIndicator=d,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(const d of this.options)d._changeDetectorRef.markForCheck()}id=(0,c.WQX)(Zc.g7).getId("mat-autocomplete-");inertGroups;constructor(){const d=(0,c.WQX)(Ie.OD);this.inertGroups=d?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Zc.Au(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(d=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[d]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(d){this.panel&&(this.panel.nativeElement.scrollTop=d)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(d){const v=new iy(this,d);this.optionSelected.emit(v)}_getPanelAriaLabelledby(d){return this.ariaLabel?null:this.ariaLabelledby?(d?d+" ":"")+this.ariaLabelledby:d}_skipPredicate(){return!1}static \u0275fac=function(v){return new(v||_)};static \u0275cmp=c.VBU({type:_,selectors:[["mat-autocomplete"]],contentQueries:function(v,D,W){if(1&v&&(c.wni(W,Xt.wT,5),c.wni(W,Xt.QC,5)),2&v){let te;c.mGM(te=c.lsd())&&(D.options=te),c.mGM(te=c.lsd())&&(D.optionGroups=te)}},viewQuery:function(v,D){if(1&v&&(c.GBs(c.C4Q,7),c.GBs(Pd,5)),2&v){let W;c.mGM(W=c.lsd())&&(D.template=W.first),c.mGM(W=c.lsd())&&(D.panel=W.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",c.L39],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",c.L39],requireSelection:[2,"requireSelection","requireSelection",c.L39],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",c.L39],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",c.L39]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[c.Jv_([{provide:Xt.is,useExisting:_}]),c.GFd],ngContentSelectors:Bh,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(v,D){1&v&&(c.NAR(),c.DNE(0,vw,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Ug]},changeDetection:0})}return _})();const jg={provide:fc.kq,useExisting:(0,c.Rfq)(()=>oy),multi:!0},Vg=new c.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const _=(0,c.WQX)(Nd.hJ);return()=>_.scrollStrategies.reposition()}}),im={provide:Vg,deps:[Nd.hJ],useFactory:function bw(_){return()=>_.scrollStrategies.reposition()}};let oy=(()=>{class _{_element=(0,c.WQX)(c.aKT);_overlay=(0,c.WQX)(Nd.hJ);_viewContainerRef=(0,c.WQX)(c.c1b);_zone=(0,c.WQX)(c.SKi);_changeDetectorRef=(0,c.WQX)(c.gRc);_dir=(0,c.WQX)(Fg.dS,{optional:!0});_formField=(0,c.WQX)(yn.xb,{optional:!0,host:!0});_document=(0,c.WQX)(st.qQ);_viewportRuler=(0,c.WQX)(Bf.Xj);_defaults=(0,c.WQX)(rm,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_scrollStrategy=(0,c.WQX)(Vg);_keydownSubscription;_outsideClickSubscription;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Uf.yU.EMPTY;_breakpointObserver=(0,c.WQX)(Bg.QP);_handsetLandscapeSubscription=Uf.yU.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new za.B;_windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;_initialized=new za.B;_injector=(0,c.WQX)(c.zZn);constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete();const d=this._getWindow();typeof d<"u"&&this._zone.runOutsideAngular(()=>d.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(d){d.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const d=this._getWindow();typeof d<"u"&&d.removeEventListener("blur",this._windowBlurHandler),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&(0,Zc.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,ml.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ht.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ht.p)(()=>this._overlayAttached)):(0,I.of)()).pipe((0,Vs.T)(d=>d instanceof Xt.MI?d:null))}optionSelections=(0,Ed.v)(()=>{const d=this.autocomplete?this.autocomplete.options:null;return d?d.changes.pipe((0,ry.Z)(d),(0,me.n)(()=>(0,ml.h)(...d.map(v=>v.onSelectionChange)))):this._initialized.pipe((0,me.n)(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,ml.h)((0,xd.R)(this._document,"click"),(0,xd.R)(this._document,"auxclick"),(0,xd.R)(this._document,"touchend")).pipe((0,ht.p)(d=>{const v=(0,Ie.Fb)(d),D=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,W=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&v!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!D||!D.contains(v))&&(!W||!W.contains(v))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(v)}))}writeValue(d){Promise.resolve(null).then(()=>this._assignOptionValue(d))}registerOnChange(d){this._onChange=d}registerOnTouched(d){this._onTouched=d}setDisabledState(d){this._element.nativeElement.disabled=d}_handleKeydown(d){const v=d.keyCode,D=(0,ql.rp)(d);if(v===ql._f&&!D&&d.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&v===ql.Fm&&this.panelOpen&&!D)this.activeOption._selectViaInteraction(),this._resetActiveItem(),d.preventDefault();else if(this.autocomplete){const W=this.autocomplete._keyManager.activeItem,te=v===ql.i7||v===ql.n6;v===ql.wn||te&&!D&&this.panelOpen?this.autocomplete._keyManager.onKeydown(d):te&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(te||this.autocomplete._keyManager.activeItem!==W)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(d){let v=d.target,D=v.value;if("number"===v.type&&(D=""==D?null:parseFloat(D)),this._previousValue!==D){if(this._previousValue=D,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(D),D){if(this.panelOpen&&!this.autocomplete.requireSelection){const W=this.autocomplete.options?.find(te=>te.selected);W&&D!==this._getDisplayValue(W.value)&&W.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===d.target){const W=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(W)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(d=!1){this._formField&&"auto"===this._formField.floatLabel&&(d?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const d=new S.c(D=>{(0,c.mal)(()=>{D.next()},{injector:this._injector})}),v=this.autocomplete.options.changes.pipe((0,Mc.M)(()=>this._positionStrategy.reapplyLastPosition()),(0,be.c)(0));return(0,ml.h)(d,v).pipe((0,me.n)(()=>this._zone.run(()=>{const D=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),D!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),(0,A.s)(1)).subscribe(D=>this._setValueAndClose(D))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(d){const v=this.autocomplete;return v&&v.displayWith?v.displayWith(d):d}_assignOptionValue(d){const v=this._getDisplayValue(d);null==d&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(v??"")}_updateNativeInputValue(d){this._formField?this._formField._control.value=d:this._element.nativeElement.value=d,this._previousValue=d}_setValueAndClose(d){const v=this.autocomplete,D=d?d.source:this._pendingAutoselectedOption;D?(this._clearPreviousSelectedOption(D),this._assignOptionValue(D.value),this._onChange(D.value),v._emitSelectEvent(D),this._element.nativeElement.focus()):v.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),v._animationDone?v._animationDone.pipe((0,A.s)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(d,v){this.autocomplete?.options?.forEach(D=>{D!==d&&D.selected&&D.deselect(v)})}_openPanelInternal(d=this._element.nativeElement.value){this._attachOverlay(d),this._floatLabel(),this._trackedModal&&(0,Zc.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(d){let v=this._overlayRef;v?(this._positionStrategy.setOrigin(this._getConnectedElement()),v.updateSize({width:this._getPanelWidth()})):(this._portal=new Jp.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),v=this._overlay.create(this._getOverlayConfig()),this._overlayRef=v,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&v&&v.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(Bg.Rp.HandsetLandscape).subscribe(W=>{W.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),v&&!v.hasAttached()&&(v.attach(this._portal),this._valueOnAttach=d,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const D=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&D!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=d=>{(d.keyCode===ql._f&&!(0,ql.rp)(d)||d.keyCode===ql.i7&&(0,ql.rp)(d,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),d.stopPropagation(),d.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const d=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=d.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=d.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Nd.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const d=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(d),this._positionStrategy=d,d}_setStrategyPositions(d){const v=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],D=this._aboveClass,W=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:D},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:D}];let te;te="above"===this.position?W:"below"===this.position?v:[...v,...W],d.withPositions(te)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const d=this.autocomplete;if(d.autoActiveFirstOption){let v=-1;for(let D=0;D .cdk-overlay-container [aria-modal="true"]');if(!d)return;const v=this.autocomplete.id;this._trackedModal&&(0,Zc.Ae)(this._trackedModal,"aria-owns",v),(0,Zc.px)(d,"aria-owns",v),this._trackedModal=d}_clearFromModal(){this._trackedModal&&((0,Zc.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static \u0275fac=function(v){return new(v||_)};static \u0275dir=c.FsC({type:_,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(v,D){1&v&&c.bIt("focusin",function(){return D._handleFocus()})("blur",function(){return D._onTouched()})("input",function(te){return D._handleInput(te)})("keydown",function(te){return D._handleKeydown(te)})("click",function(){return D._handleClick()}),2&v&&c.BMQ("autocomplete",D.autocompleteAttribute)("role",D.autocompleteDisabled?null:"combobox")("aria-autocomplete",D.autocompleteDisabled?null:"list")("aria-activedescendant",D.panelOpen&&D.activeOption?D.activeOption.id:null)("aria-expanded",D.autocompleteDisabled?null:D.panelOpen.toString())("aria-controls",D.autocompleteDisabled||!D.panelOpen||null==D.autocomplete?null:D.autocomplete.id)("aria-haspopup",D.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",c.L39]},exportAs:["matAutocompleteTrigger"],features:[c.Jv_([jg]),c.GFd,c.OA$]})}return _})(),$f=(()=>{class _{static \u0275fac=function(v){return new(v||_)};static \u0275mod=c.$C({type:_});static \u0275inj=c.G2t({providers:[im],imports:[Nd.z_,Xt.Sy,Xt.yE,Bf.Gj,Xt.Sy,Xt.yE]})}return _})();var Uh=r(9042),Hg=r(7291),Wg=r(152);const sy=["barSearchInput"],ay=["matAutocomplete"],jf=(_,m)=>m.id;function Gg(_,m){if(1&_){const d=c.RV6();c.j41(0,"button",4),c.bIt("click",function(){c.eBV(d);const D=c.XpG(2);return c.Njj(D.open())}),c.nrm(1,"mat-icon",5),c.k0s()}2&_&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:magnifying-glass"))}function ly(_,m){1&_&&(c.j41(0,"mat-option",9),c.EFF(1," No results found! "),c.k0s())}function cy(_,m){if(1&_){const d=c.RV6();c.j41(0,"img",19),c.bIt("error",function(D){c.eBV(d);const W=c.XpG(5);return c.Njj(W.handleImageError(D))}),c.k0s()}if(2&_){const d=c.XpG().$implicit;c.FS9("alt",d.name),c.Y8G("src",d.avatar,c.B4B)}}function $h(_,m){1&_&&c.nrm(0,"mat-icon",15),2&_&&c.Y8G("svgIcon","heroicons_outline:user-circle")}function zg(_,m){if(1&_&&(c.j41(0,"div",18),c.EFF(1),c.k0s()),2&_){const d=c.XpG().$implicit;c.R7$(),c.JRh(d.about)}}function om(_,m){if(1&_&&(c.j41(0,"mat-option",11)(1,"div",12)(2,"div",13),c.DNE(3,cy,1,2,"img",14)(4,$h,1,1,"mat-icon",15),c.k0s(),c.j41(5,"div",16)(6,"span",17),c.EFF(7),c.k0s(),c.DNE(8,zg,2,1,"div",18),c.k0s()()()),2&_){const d=m.$implicit;c.Y8G("routerLink",d.link)("value",d.name),c.R7$(3),c.vxM(d.avatar?3:4),c.R7$(4),c.JRh(d.name),c.R7$(),c.vxM(d.about?8:-1)}}function uy(_,m){1&_&&c.Z7z(0,om,9,5,"mat-option",11,jf),2&_&&c.Dyx(m.$implicit.results)}function ww(_,m){if(1&_){const d=c.RV6();c.j41(0,"div",3),c.nrm(1,"mat-icon",6),c.j41(2,"input",7,0),c.bIt("keydown",function(D){c.eBV(d);const W=c.XpG(2);return c.Njj(W.onKeydown(D))}),c.k0s(),c.j41(4,"mat-autocomplete",8,1),c.DNE(6,ly,2,0,"mat-option",9),c.Z7z(7,uy,2,0,null,null,jf),c.k0s(),c.j41(9,"button",10),c.bIt("click",function(){c.eBV(d);const D=c.XpG(2);return c.Njj(D.close())}),c.nrm(10,"mat-icon",5),c.k0s()()}if(2&_){let d;const v=c.sdS(5),D=c.XpG(2);c.R7$(),c.Y8G("svgIcon","heroicons_outline:magnifying-glass"),c.R7$(),c.Y8G("formControl",D.searchControl)("matAutocomplete",v),c.R7$(4),c.vxM(0===(null==(d=D.resultSets())?null:d.length)?6:-1),c.R7$(),c.Dyx(D.resultSets()),c.R7$(3),c.Y8G("svgIcon","heroicons_outline:x-mark")}}function Ew(_,m){if(1&_&&c.DNE(0,Gg,2,1,"button",2)(1,ww,11,5,"div",3),2&_){const d=c.XpG();c.vxM(d.opened()?-1:0),c.R7$(),c.vxM(d.opened()?1:-1)}}let Bd=(()=>{class _{constructor(){this.appearance="basic",this.debounce=300,this.minLength=2,this.search=new c.bkB,this.searchControl=new fc.hs,this.resultSets=(0,c.vPA)([]),this.opened=(0,c.vPA)(!1),this.unsubscribeAll=new za.B,this.storageService=(0,c.WQX)(Hg.n)}ngOnInit(){this.initializeSearch()}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}initializeSearch(){var d=this;this.searchControl.valueChanges.pipe((0,Wg.B)(this.debounce),(0,vl.Q)(this.unsubscribeAll),(0,Vs.T)(v=>((!v||v.lengthv&&v.length>=this.minLength)).subscribe(function(){var v=(0,w.A)(function*(D){const te=(yield d.storageService.searchProfile(D)).map(we=>({label:"Project",results:[{name:we.profile.name||we.profile.displayName||we.pubKey,pubkey:we.pubKey,about:we.profile.about?.replace(/<\/?[^>]+(>|$)/g,"")||"",avatar:we.profile.picture||null,link:`/profile/${we.pubKey}`}]}));d.resultSets.set(te),d.search.emit(te)});return function(D){return v.apply(this,arguments)}}())}onKeydown(d){"Escape"===d.key&&this.close()}open(){this.opened()||this.opened.set(!0)}close(){this.opened()&&(this.searchControl.setValue(""),this.opened.set(!1))}handleImageError(d){const v=d.target;v.onerror=null,v.src="images/avatars/avatar-placeholder.png"}trackByFn(d,v){return v.id||d}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["search"]],viewQuery:function(v,D){if(1&v&&(c.GBs(sy,5),c.GBs(ay,5)),2&v){let W;c.mGM(W=c.lsd())&&(D.barSearchInput=W.first),c.mGM(W=c.lsd())&&(D.matAutocomplete=W.first)}},inputs:{appearance:"appearance",debounce:"debounce",minLength:"minLength"},outputs:{search:"search"},decls:2,vars:1,consts:[["barSearchInput",""],["matAutocomplete","matAutocomplete"],["mat-icon-button",""],[1,"bg-card","absolute","inset-0","z-99","flex","items-center"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"absolute","ml-6","sm:ml-8",3,"svgIcon"],["placeholder","Search...",1,"h-full","w-full","px-16","sm:px-18",3,"keydown","formControl","matAutocomplete"],[1,"max-h-128","rounded-b","border-t","shadow-md"],[1,"text-secondary","pointer-events-none"],["mat-icon-button","",1,"absolute","right-5","top-1/2","-mt-5",3,"click"],[3,"routerLink","value"],[1,"flex","items-center"],[1,"h-8","w-8","rounded-full","bg-primary-100","dark:bg-primary-800"],[1,"h-full","w-full","object-cover",3,"src","alt"],[1,"m-0","text-primary",3,"svgIcon"],[1,"ml-3","truncate"],[1,"font-semibold"],[1,"text-sm","text-gray-500"],[1,"h-full","w-full","object-cover",3,"error","src","alt"]],template:function(v,D){1&v&&(c.j41(0,"div"),c.DNE(1,Ew,2,2),c.k0s()),2&v&&(c.R7$(),c.vxM("bar"===D.appearance?1:-1))},dependencies:[ka.Hl,ka.iY,ol.m_,ol.An,fc.X1,fc.me,fc.BC,fc.l_,$f,$g,Xt.wT,oy,Xt.Sy,a.Wk,yn.RG,Uh.fS,st.MD],encapsulation:2})}}return _})();var Kg=r(881),jh=r(1997),Ud=r(9115),Vf=r(2332);let Xg=(()=>{class _{constructor(){this.signerService=(0,c.WQX)(qu.A),this.router=(0,c.WQX)(a.Ix),this.angorConfirmationService=(0,c.WQX)(xe.m)}isLoggedIn(){return!!this.signerService.getPublicKey()}promptLogin(){this.angorConfirmationService.open({title:"Login",message:"Would you like to login now?",icon:{show:!0,name:"heroicons_solid:user",color:"primary"},actions:{confirm:{show:!0,label:"Yes, Login",color:"primary"},cancel:{show:!0,label:"No, Thanks"}},dismissible:!0}).afterClosed().subscribe(v=>{"confirmed"===v&&this.router.navigate(["/login"])})}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();const xw=()=>["/settings"];function Yg(_,m){if(1&_&&c.nrm(0,"img",5),2&_){let d;const v=c.XpG();c.Y8G("src",v.getSafeUrl(null==(d=v.user())?null:d.picture),c.B4B)}}function dy(_,m){1&_&&c.nrm(0,"mat-icon",6),2&_&&c.Y8G("svgIcon","heroicons_outline:user-circle")}function Qg(_,m){if(1&_){const d=c.RV6();c.qex(0),c.j41(1,"button",9),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.Switch())}),c.nrm(2,"mat-icon",6),c.j41(3,"span"),c.EFF(4,"Switch account"),c.k0s()(),c.j41(5,"button",9),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.profile())}),c.nrm(6,"mat-icon",6),c.j41(7,"span"),c.EFF(8,"Profile"),c.k0s()(),c.j41(9,"button",11),c.nrm(10,"mat-icon",6),c.j41(11,"span"),c.EFF(12,"Options"),c.k0s()(),c.nrm(13,"mat-divider",12),c.j41(14,"button",9),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.logout())}),c.nrm(15,"mat-icon",6),c.j41(16,"span"),c.EFF(17,"logout"),c.k0s()(),c.bVm()}if(2&_){c.XpG();const d=c.sdS(10);c.R7$(2),c.Y8G("svgIcon","heroicons_outline:user-circle"),c.R7$(4),c.Y8G("svgIcon","heroicons_outline:user-circle"),c.R7$(3),c.Y8G("matMenuTriggerFor",d),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cog-8-tooth"),c.R7$(5),c.Y8G("svgIcon","heroicons_outline:arrow-right-on-rectangle")}}function sm(_,m){if(1&_){const d=c.RV6();c.j41(0,"button",9),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.authService.promptLogin())}),c.nrm(1,"mat-icon",6),c.j41(2,"span"),c.EFF(3,"Login"),c.k0s()()}2&_&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:login"))}let am=(()=>{class _{constructor(){this.user=(0,c.vPA)(null),this.config=(0,c.vPA)(null),this.userPubKey=(0,c.vPA)(""),this.signerService=(0,c.WQX)(qu.A),this.storageService=(0,c.WQX)(Hg.n),this.angorConfigService=(0,c.WQX)(Kg.P),this.router=(0,c.WQX)(a.Ix),this.sanitizer=(0,c.WQX)(i.up),this.nostrLoginService=(0,c.WQX)(Vf.v),this.authService=(0,c.WQX)(Xg),this.userPubKey.set(this.signerService.getPublicKey()),this.authService.isLoggedIn()&&this.loadUserProfile(),(0,c.QZP)(()=>{this.config.set(this.angorConfigService.config),this.config()&&localStorage.setItem("angorConfig",JSON.stringify(this.config()))}),this.storageService.profile$.subscribe(d=>{d&&d.pubKey===this.userPubKey()&&this.user.set(d.metadata||{})})}loadUserProfile(){this.storageService.getProfile(this.userPubKey()).then(d=>{this.user.set(d||{})})}logout(){this.router.navigate(["/logout"])}Switch(){this.nostrLoginService.switchAccount()}profile(){this.router.navigate(["/profile"])}setScheme(d){this.angorConfigService.config={scheme:d}}setTheme(d){this.angorConfigService.config={theme:d}}getSafeUrl(d){return this.sanitizer.bypassSecurityTrustUrl(d)}switchAccount(){this.nostrLoginService.switchAccount()}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["user"]],decls:28,vars:11,consts:[["userActions","matMenu"],["loginMenu",""],["settingsMenu","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"relative"],["alt","","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-7","w-7","rounded-full","object-cover",3,"src"],[3,"svgIcon"],[3,"xPosition"],[4,"ngIf","ngIfElse"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"matMenuTriggerFor"],[1,"my-2"]],template:function(v,D){if(1&v){const W=c.RV6();c.j41(0,"button",3)(1,"span",4),c.DNE(2,Yg,1,1,"img",5)(3,dy,1,1,"mat-icon",6),c.k0s()(),c.j41(4,"mat-menu",7,0),c.DNE(6,Qg,18,5,"ng-container",8)(7,sm,4,1,"ng-template",null,1,c.C5r),c.k0s(),c.j41(9,"mat-menu",null,2)(11,"button",9),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("auto"))}),c.nrm(12,"mat-icon",6),c.j41(13,"span"),c.EFF(14,"Auto Theme"),c.k0s()(),c.j41(15,"button",9),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("light"))}),c.nrm(16,"mat-icon",6),c.j41(17,"span"),c.EFF(18,"Light Theme"),c.k0s()(),c.j41(19,"button",9),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("dark"))}),c.nrm(20,"mat-icon",6),c.j41(21,"span"),c.EFF(22,"Dark Theme"),c.k0s()(),c.nrm(23,"mat-divider"),c.j41(24,"button",10),c.nrm(25,"mat-icon",6),c.j41(26,"span"),c.EFF(27,"Settings"),c.k0s()()()}if(2&v){let W;const te=c.sdS(5),we=c.sdS(8);c.Y8G("matMenuTriggerFor",te),c.R7$(2),c.vxM(null!=(W=D.user())&&W.picture?2:3),c.R7$(2),c.Y8G("xPosition","before"),c.R7$(2),c.Y8G("ngIf",D.authService.isLoggedIn())("ngIfElse",we),c.R7$(6),c.Y8G("svgIcon","heroicons_solid:bolt"),c.R7$(4),c.Y8G("svgIcon","heroicons_solid:sun"),c.R7$(4),c.Y8G("svgIcon","heroicons_solid:moon"),c.R7$(4),c.Y8G("routerLink",c.lJ4(10,xw)),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cog-8-tooth")}},dependencies:[ka.Hl,ka.iY,Ud.Cn,Ud.kk,Ud.fb,Ud.Cp,ol.m_,ol.An,jh.w,jh.q,st.MD,st.bT,a.iI,a.Wk],encapsulation:2,changeDetection:0})}}return _})();var Ju=r(605);let Zg=(()=>{class _{constructor(d,v){this.swUpdate=d,this.zone=v,this.newVersionAvailableSubject=new Re.t(!1),this.isNewVersionAvailable$=this.newVersionAvailableSubject.asObservable(),this.intervalSource=(0,Ju.Y)(9e5),this.checkForUpdateOnLoad(),this.checkForUpdateOnInterval()}applyUpdate(){this.swUpdate.activateUpdate().then(()=>document.location.reload()).catch(d=>console.error("Failed to apply updates:",d))}checkForUpdateOnInterval(){var d=this;this.unsubscribeInterval(),this.swUpdate.isEnabled&&this.zone.runOutsideAngular(()=>{this.intervalSubscription=this.intervalSource.subscribe((0,w.A)(function*(){try{(yield d.swUpdate.checkForUpdate())&&d.newVersionAvailableSubject.next(!0)}catch(v){console.error("Failed to check for updates:",v)}}))})}checkForUpdateOnLoad(){this.unsubscribeNewVersion(),this.swUpdate.isEnabled&&(this.newVersionSubscription=this.swUpdate.versionUpdates.subscribe(d=>{switch(d.type){case"VERSION_DETECTED":break;case"VERSION_READY":this.newVersionAvailableSubject.next(!0);break;case"VERSION_INSTALLATION_FAILED":console.error(`Failed to install app version '${d.version.hash}': ${d.error}`)}}))}unsubscribeInterval(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}unsubscribeNewVersion(){this.newVersionSubscription&&this.newVersionSubscription.unsubscribe()}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(zu),c.KVO(c.SKi))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();function hy(_,m){if(1&_){const d=c.RV6();c.j41(0,"button",1),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.applyUpdate())}),c.nrm(1,"mat-icon",2),c.k0s()}if(2&_){const d=c.XpG();c.Y8G("matTooltip",d.tooltip()),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cloud-arrow-down")}}let qg=(()=>{class _{constructor(){this.tooltip=(0,c.vPA)("Update App"),this.isNewVersionAvailable=(0,c.vPA)(!1),this.updateService=(0,c.WQX)(Zg),this.updateService.isNewVersionAvailable$.subscribe(d=>{this.isNewVersionAvailable.set(d)})}applyUpdate(){this.updateService.applyUpdate()}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["update"]],decls:1,vars:1,consts:[["mat-icon-button","",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(v,D){1&v&&c.DNE(0,hy,2,2,"button",0),2&v&&c.vxM(D.isNewVersionAvailable()?0:-1)},dependencies:[st.MD,ka.Hl,ka.iY,ol.m_,ol.An,Rd.uc,Rd.oV],encapsulation:2,changeDetection:0})}}return _})();function fy(_,m){if(1&_&&(c.j41(0,"angor-vertical-navigation",0),c.qex(1,10),c.j41(2,"div",11),c.nrm(3,"img",12),c.k0s(),c.bVm(),c.k0s()),2&_){const d=c.XpG();c.Y8G("mode","over")("name","mainNavigation")("navigation",d.navigation.default)("opened",!1)}}function py(_,m){if(1&_&&(c.j41(0,"div",13)(1,"div",14),c.nrm(2,"img",15)(3,"img",16),c.k0s(),c.nrm(4,"img",17),c.k0s(),c.nrm(5,"angor-horizontal-navigation",18)),2&_){const d=c.XpG();c.R7$(5),c.Y8G("name","mainNavigation")("navigation",d.navigation.horizontal)}}function Jg(_,m){if(1&_){const d=c.RV6();c.j41(0,"button",19),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.toggleNavigation("mainNavigation"))}),c.nrm(1,"mat-icon",20),c.k0s()}2&_&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:bars-3"))}function my(_,m){1&_&&c.nrm(0,"router-outlet")}let gy=(()=>{class _{constructor(d,v,D,W,te){this._activatedRoute=d,this._router=v,this._navigationService=D,this._angorMediaWatcherService=W,this._angorNavigationService=te,this._unsubscribeAll=new za.B,this.version=_s}ngOnInit(){this._navigationService.navigation$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.navigation=d}),this._angorMediaWatcherService.onMediaChange$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:d})=>{this.isScreenSmall=!d.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(d){const v=this._angorNavigationService.getComponent(d);v&&v.toggle()}static{this.\u0275fac=function(v){return new(v||_)(c.rXU(a.nX),c.rXU(a.Ix),c.rXU(Qu),c.rXU(ae.l),c.rXU(kc.lX))}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["modern-layout"]],decls:17,vars:6,consts:[[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","sm:h-20","md:px-6","print:hidden"],["mat-icon-button",""],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],[1,"flex","w-full","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","border-t","px-4","dark:bg-transparent","sm:h-20","md:px-6","print:hidden"],[1,"text-secondary","font-medium"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","px-8","pt-6"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"h-10","w-24"],[1,"mx-2","flex","items-center","lg:mr-8"],[1,"hidden","lg:flex"],["src","images/logo/logo-text.svg",1,"h-10","w-24","dark:hidden"],["src","images/logo/logo-text-on-dark.svg",1,"hidden","h-10","w-24","dark:flex"],["src","images/logo/logo.svg",1,"flex","w-8","lg:hidden"],[1,"mr-2",3,"name","navigation"],["mat-icon-button","",3,"click"],[3,"svgIcon"]],template:function(v,D){1&v&&(c.nrm(0,"angor-loading-bar"),c.DNE(1,fy,4,4,"angor-vertical-navigation",0),c.j41(2,"div",1)(3,"div",2),c.DNE(4,py,6,2)(5,Jg,2,1,"button",3),c.j41(6,"div",4),c.nrm(7,"update")(8,"angor-fullscreen",5)(9,"search",6)(10,"notifications")(11,"user"),c.k0s()(),c.j41(12,"div",7),c.DNE(13,my,1,0,"router-outlet"),c.k0s(),c.j41(14,"div",8)(15,"span",9),c.EFF(16),c.k0s()()()),2&v&&(c.R7$(),c.vxM(D.isScreenSmall?1:-1),c.R7$(3),c.vxM(D.isScreenSmall?-1:4),c.R7$(),c.vxM(D.isScreenSmall?5:-1),c.R7$(4),c.Y8G("appearance","bar"),c.R7$(4),c.vxM(13),c.R7$(3),c.SpI("Angor Hub - version ",D.version,""))},dependencies:[Su,kc.Tv,kc.$w,ka.Hl,ka.iY,ol.m_,ol.An,Og,Bd,Fh,am,a.n3,qg],encapsulation:2})}}return _})();function vy(_,m){1&_&&c.nrm(0,"router-outlet")}let _y=(()=>{class _{constructor(d,v,D,W,te){this._activatedRoute=d,this._router=v,this._navigationService=D,this._angorMediaWatcherService=W,this._angorNavigationService=te,this._unsubscribeAll=new za.B,this.version=_s}ngOnInit(){this._navigationService.navigation$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.navigation=d}),this._angorMediaWatcherService.onMediaChange$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:d})=>{this.isScreenSmall=!d.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(d){const v=this._angorNavigationService.getComponent(d);v&&v.toggle()}static{this.\u0275fac=function(v){return new(v||_)(c.rXU(a.nX),c.rXU(a.Ix),c.rXU(Qu),c.rXU(ae.l),c.rXU(kc.lX))}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["classic-layout"]],decls:21,vars:8,consts:[[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","p-6"],["src","images/logo/logo-text.svg","alt","Angor Hub",1,"w-30","dark:hidden"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"hidden","w-30","dark:flex"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","md:px-6","print:hidden"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],[1,"flex","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","justify-start","border-t","px-4","dark:bg-transparent","md:px-6","print:hidden"],[1,"text-secondary","font-medium"]],template:function(v,D){1&v&&(c.nrm(0,"angor-loading-bar"),c.j41(1,"angor-vertical-navigation",0),c.qex(2,1),c.j41(3,"div",2),c.nrm(4,"img",3)(5,"img",4),c.k0s(),c.bVm(),c.k0s(),c.j41(6,"div",5)(7,"div",6)(8,"button",7),c.bIt("click",function(){return D.toggleNavigation("mainNavigation")}),c.nrm(9,"mat-icon",8),c.k0s(),c.j41(10,"div",9),c.nrm(11,"update")(12,"angor-fullscreen",10)(13,"search",11)(14,"notifications")(15,"user"),c.k0s()(),c.j41(16,"div",12),c.DNE(17,vy,1,0,"router-outlet"),c.k0s(),c.j41(18,"div",13)(19,"span",14),c.EFF(20),c.k0s()()()),2&v&&(c.R7$(),c.Y8G("mode",D.isScreenSmall?"over":"side")("name","mainNavigation")("navigation",D.navigation.default)("opened",!D.isScreenSmall),c.R7$(8),c.Y8G("svgIcon","heroicons_outline:bars-3"),c.R7$(4),c.Y8G("appearance","bar"),c.R7$(4),c.vxM(17),c.R7$(3),c.SpI("Angor Hub - version ",D.version,""))},dependencies:[Su,kc.Tv,ka.Hl,ka.iY,ol.m_,ol.An,Og,Bd,Fh,am,a.n3,qg],encapsulation:2})}}return _})();function yy(_,m){1&_&&c.nrm(0,"empty-layout")}function lm(_,m){1&_&&c.nrm(0,"modern-layout")}function by(_,m){1&_&&c.nrm(0,"classic-layout")}let cm=(()=>{class _{constructor(d,v,D,W,te,we,Ye){this._activatedRoute=d,this._document=v,this._renderer2=D,this._router=W,this._angorConfigService=te,this._angorMediaWatcherService=we,this._angorPlatformService=Ye,this._unsubscribeAll=new za.B}ngOnInit(){(0,G.z)([this._angorConfigService.config$,this._angorMediaWatcherService.onMediaQueryChange$(["(prefers-color-scheme: dark)","(prefers-color-scheme: light)"])]).pipe((0,vl.Q)(this._unsubscribeAll),(0,Vs.T)(([d,v])=>{const D={scheme:d.scheme,theme:d.theme};return"auto"===d.scheme&&(D.scheme=v.breakpoints["(prefers-color-scheme: dark)"]?"dark":"light"),D})).subscribe(d=>{this.scheme=d.scheme,this.theme=d.theme,this._updateScheme(),this._updateTheme()}),this._angorConfigService.config$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.config=d,this._updateLayout()}),this._router.events.pipe((0,ht.p)(d=>d instanceof a.wF),(0,vl.Q)(this._unsubscribeAll)).subscribe(()=>{this._updateLayout()}),this._renderer2.setAttribute(this._document.querySelector("[ng-version]"),"angor-version",_s),this._renderer2.addClass(this._document.body,this._angorPlatformService.osName)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_updateLayout(){let d=this._activatedRoute;for(;d.firstChild;)d=d.firstChild;this.layout=this.config.layout;const v=d.snapshot.queryParamMap.get("layout");v&&(this.layout=v,this.config&&(this.config.layout=v)),d.pathFromRoot.forEach(W=>{W.routeConfig&&W.routeConfig.data&&W.routeConfig.data.layout&&(this.layout=W.routeConfig.data.layout)})}_updateScheme(){this._document.body.classList.remove("light","dark"),this._document.body.classList.add(this.scheme)}_updateTheme(){this._document.body.classList.forEach(d=>{d.startsWith("theme-")&&this._document.body.classList.remove(d,d.split("-")[1])}),this._document.body.classList.add(this.theme)}static{this.\u0275fac=function(v){return new(v||_)(c.rXU(a.nX),c.rXU(st.qQ),c.rXU(c.sFG),c.rXU(a.Ix),c.rXU(Kg.P),c.rXU(ae.l),c.rXU($e))}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["layout"]],decls:3,vars:3,template:function(v,D){1&v&&c.DNE(0,yy,1,0,"empty-layout")(1,lm,1,0,"modern-layout")(2,by,1,0,"classic-layout"),2&v&&(c.vxM("empty"===D.layout?0:-1),c.R7$(),c.vxM("modern"===D.layout?1:-1),c.R7$(),c.vxM("classic"===D.layout?2:-1))},dependencies:[Nh,gy,_y],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 _})();const pc=()=>((0,c.WQX)(qu.A),!0),Hf=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"project/:pubkey",pathMatch:"full",redirectTo:"explore"},{path:"login-redirect",pathMatch:"full",redirectTo:"explore"},{path:"",component:cm,data:{layout:"empty"},children:[{path:"login",loadChildren:()=>Promise.all([r.e(588),r.e(770)]).then(r.bind(r,770))},{path:"create",loadChildren:()=>Promise.all([r.e(588),r.e(408)]).then(r.bind(r,1408))}]},{path:"",canActivate:[pc],canActivateChild:[pc],component:cm,data:{layout:"empty"},children:[{path:"logout",loadChildren:()=>r.e(514).then(r.bind(r,1514))}]},{path:"",canActivate:[pc],canActivateChild:[pc],component:cm,resolve:{initialData:()=>{const _=(0,c.WQX)(Qu);return(0,c.WQX)(Q_),(0,Xu.p)([_.get()])}},children:[{path:"home",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(888),r.e(541)]).then(r.bind(r,5541))},{path:"explore",loadChildren:()=>Promise.all([r.e(735),r.e(450),r.e(76),r.e(468)]).then(r.bind(r,5468))},{path:"zap",loadChildren:()=>Promise.all([r.e(416),r.e(551)]).then(r.bind(r,8551))},{path:"bookmark",loadChildren:()=>Promise.all([r.e(735),r.e(450),r.e(76),r.e(524)]).then(r.bind(r,8364))},{path:"profile",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(450),r.e(865),r.e(888),r.e(790)]).then(r.bind(r,6790))},{path:"profile/:pubkey",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(450),r.e(865),r.e(888),r.e(790)]).then(r.bind(r,6790))},{path:"profile/:pubkey/:project",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(450),r.e(865),r.e(888),r.e(790)]).then(r.bind(r,6790))},{path:"post",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(865),r.e(888),r.e(218)]).then(r.bind(r,2218))},{path:"post/:id",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(865),r.e(888),r.e(218)]).then(r.bind(r,2218))},{path:"settings",loadChildren:()=>Promise.all([r.e(416),r.e(450),r.e(740)]).then(r.bind(r,1740))},{path:"settings/:id",loadChildren:()=>Promise.all([r.e(416),r.e(450),r.e(740)]).then(r.bind(r,1740))},{path:"chat",loadChildren:()=>Promise.all([r.e(416),r.e(861),r.e(865),r.e(307)]).then(r.bind(r,6307))},{path:"404-not-found",pathMatch:"full",loadChildren:()=>r.e(258).then(r.bind(r,5258))},{path:"**",redirectTo:"404-not-found"}]}];let um=(()=>{class _{constructor(){const d=(0,c.WQX)(i.up),v=(0,c.WQX)(ol.tp);v.addSvgIconSet(d.bypassSecurityTrustResourceUrl("icons/material-twotone.svg")),v.addSvgIconSetInNamespace("mat_outline",d.bypassSecurityTrustResourceUrl("icons/material-outline.svg")),v.addSvgIconSetInNamespace("mat_solid",d.bypassSecurityTrustResourceUrl("icons/material-solid.svg")),v.addSvgIconSetInNamespace("feather",d.bypassSecurityTrustResourceUrl("icons/feather.svg")),v.addSvgIconSetInNamespace("heroicons_outline",d.bypassSecurityTrustResourceUrl("icons/heroicons-outline.svg")),v.addSvgIconSetInNamespace("heroicons_solid",d.bypassSecurityTrustResourceUrl("icons/heroicons-solid.svg")),v.addSvgIconSetInNamespace("heroicons_mini",d.bypassSecurityTrustResourceUrl("icons/heroicons-mini.svg"))}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var wy=r(9350),Ey=r(7707);let Wf=(()=>{class _{constructor(d){this.httpClient=d}getTranslation(d){return this.httpClient.get(`./i18n/${d}.json`)}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(ne.Qq))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();const dm=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"bookmark",title:"Bookmark",type:"basic",icon:"heroicons_outline:bookmark",link:"/bookmark",requiresLogin:!0},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat",badge:{title:"0",classes:"px-2 bg-[#086c81] text-white rounded-full"},requiresLogin:!0},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile",requiresLogin:!0},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings",requiresLogin:!0}],ev=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"bookmark",title:"Bookmark",type:"basic",icon:"heroicons_outline:bookmark",link:"/bookmark",requiresLogin:!0},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat",badge:{title:"27",classes:"px-2 bg-[#086c81] text-white rounded-full"},requiresLogin:!0},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile",requiresLogin:!0},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings",requiresLogin:!0}];var tv=r(7730);var xy=r(1984),Gf=r(7517),Cy=r(6726),Dy=r(5776);const jd=(0,r(8992).A)(Object.keys,Object);var Ty=Object.prototype.hasOwnProperty;var ky=r(1287);const zf=function Oy(_){return(0,ky.A)(_)?(0,Cy.A)(_):function My(_){if(!(0,Dy.A)(_))return jd(_);var m=[];for(var d in Object(_))Ty.call(_,d)&&"constructor"!=d&&m.push(d);return m}(_)};var hm=r(133);var Jc=r(9933),Vh=r(4528);const Py=function ov(){return[]};var Sw=Object.prototype.propertyIsEnumerable,Xf=Object.getOwnPropertySymbols;const sv=Xf?function(_){return null==_?[]:(_=Object(_),function rv(_,m){for(var d=-1,v=null==_?0:_.length,D=0,W=[];++d{class _{constructor(d,v){this._angorMockApiService=d,this._authService=v,this._defaultNavigation=dm,this._horizontalNavigation=ev,this.registerHandlers()}registerHandlers(){this._angorMockApiService.onGet("api/navigation").reply(()=>{const d=this._authService.isLoggedIn(),v=this._defaultNavigation.filter(W=>!W.requiresLogin||d),D=this._horizontalNavigation.filter(W=>!W.requiresLogin||d);return this._horizontalNavigation.forEach(W=>{this._defaultNavigation.forEach(te=>{te.id===W.id&&(W.children=Si(te.children))})}),[200,{default:Si(v),horizontal:Si(D)}]})}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(Z),c.KVO(Xg))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})(),Xg];let Kd=(()=>{class _{constructor(d){this.http=d,this.timestamp=null,this.ngswFilePath="/ngsw.json"}load(){var d=this;return(0,w.A)(function*(){try{const v=yield d.http.get(d.ngswFilePath).toPromise();v&&v.timestamp?(d.timestamp=v.timestamp,console.log("Timestamp successfully loaded:",d.timestamp)):console.error("Invalid data format in ngsw.json")}catch(v){console.error("Error loading ngsw.json:",v)}})()}getTimestamp(){return this.timestamp}loadHash(){return this.http.get(this.ngswFilePath).pipe((0,Vs.T)(d=>d.timestamp||null),(0,x.W)(d=>(console.error("Error fetching ngsw.json hash:",d),(0,T.$)(()=>new Error("Failed to load hash.")))))}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(ne.Qq))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var Pm=r(2083),Gv=r(5373);const Fm={providers:[function zp(){return(0,c.ngT)("NgEagerAnimations"),[...wh]}(),(0,ne.$R)(),function Th(_,m={}){return(0,c.EmA)([Mf,zu,{provide:Ku,useValue:_},{provide:Qc,useValue:m},{provide:Eu,useFactory:Ta,deps:[Qc,c.Agw]},{provide:c.hnV,useFactory:If,deps:[c.zZn,Ku,Qc,c.Agw],multi:!0}])}("ngsw-worker.js",{enabled:!(0,c.naY)(),registrationStrategy:"registerWhenStable:30000"}),{provide:c.hnV,useFactory:function id(_){return()=>_.load()},deps:[Kd,qu.A,Pm.d],multi:!0},{provide:c.hnV,useFactory:function vb(_,m){return(0,w.A)(function*(){const d=_.getPublicKey();d&&(yield m.loadUserProfile(d))})},deps:[qu.A,Pm.d],multi:!0},{provide:c.hnV,useFactory:function Zh(){return()=>{(0,Gv.Ts)({theme:"ocean",noBanner:!0,title:"Angor Hub",onAuth:(_,m)=>{}})}},multi:!0},(0,a.lh)(Hf,(0,a.oH)({scrollPositionRestoration:"enabled"})),{provide:Xt.MJ,useClass:Sa},{provide:Xt.de,useValue:{parse:{dateInput:"D"},display:{dateInput:"DDD",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy"}}},function xg(_){const m=[Ag(pi),qp(Hs),Oh(Ma),Zp(Ia)];return _.config&&m.push(function Cg(_){return(0,c.EmA)([{provide:qi,useValue:wr(_)}])}(_.config)),_.loader&&m.push(function Dg(_){return(0,c.EmA)([{provide:Gt,useClass:_}])}(_.loader)),m}({config:{availableLangs:[{id:"en",label:"English"}],defaultLang:"en",fallbackLang:"en",reRenderOnLangChange:!0,prodMode:!0},loader:Wf}),{provide:c.hnV,useFactory:()=>{const _=(0,c.WQX)(Td),m=_.getDefaultLang();return _.setActiveLang(m),()=>function Cw(_,m){const d="object"==typeof m;return new Promise((v,D)=>{const W=new Ey.Ms({next:te=>{v(te),W.unsubscribe()},error:D,complete:()=>{d?v(m.defaultValue):D(new wy.G)}});_.subscribe(W)})}(_.load(m))},multi:!0},[{provide:c.Z63,useValue:()=>(0,c.WQX)(um),multi:!0}],(_=>{const m=[{provide:Xt.N,useValue:{doctype:!0,theme:!1,version:!0}},{provide:yn.U$,useValue:{appearance:"fill"}},{provide:C,useValue:_?.mockApi?.delay??0},{provide:Te.t,useValue:_?.angor??{}},(0,c.oKB)(ln.hM),{provide:c.Z63,useValue:()=>(0,c.WQX)(xe.m),multi:!0},(0,ne.$R)((0,ne.b$)([le])),{provide:c.Z63,useValue:()=>(0,c.WQX)(Me),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(ae.l),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)($e),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(vt),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(at.Q),multi:!0}];return _?.mockApi?.services&&m.push((0,ne.$R)((0,ne.b$)([pe])),{provide:c.hnV,deps:[..._.mockApi.services],useFactory:()=>()=>null,multi:!0}),m})({mockApi:{delay:0,services:Wv},angor:JSON.parse(localStorage.getItem("angorConfig"))??{layout:"classic",scheme:"light",screens:{sm:"600px",md:"960px",lg:"1280px",xl:"1440px"},theme:"theme-brand",themes:[{id:"theme-brand",name:"Brand"},{id:"theme-default",name:"Default"},{id:"theme-teal",name:"Teal"},{id:"theme-rose",name:"Rose"},{id:"theme-purple",name:"Purple"},{id:"theme-amber",name:"Amber"}]}})]};(0,i.B8)(y,Fm).catch(_=>console.error(_))},3981:(o,s)=>{"use strict";s.byteLength=function T(Z){var ne=C(Z),me=ne[1];return 3*(ne[0]+me)/4-me},s.toByteArray=function A(Z){var ne,Me,be=C(Z),me=be[0],pe=be[1],Te=new a(function S(Z,ne,be){return 3*(ne+be)/4-be}(0,me,pe)),xe=0,Re=pe>0?me-4:me;for(Me=0;Me>16&255,Te[xe++]=ne>>8&255,Te[xe++]=255≠return 2===pe&&(ne=i[Z.charCodeAt(Me)]<<2|i[Z.charCodeAt(Me+1)]>>4,Te[xe++]=255&ne),1===pe&&(ne=i[Z.charCodeAt(Me)]<<10|i[Z.charCodeAt(Me+1)]<<4|i[Z.charCodeAt(Me+2)]>>2,Te[xe++]=ne>>8&255,Te[xe++]=255&ne),Te},s.fromByteArray=function K(Z){for(var ne,be=Z.length,me=be%3,pe=[],xe=0,Re=be-me;xeRe?Re:xe+16383));return 1===me?pe.push(r[(ne=Z[be-1])>>2]+r[ne<<4&63]+"=="):2===me&&pe.push(r[(ne=(Z[be-2]<<8)+Z[be-1])>>10]+r[ne>>4&63]+r[ne<<2&63]+"="),pe.join("")};for(var r=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0;y<64;++y)r[y]=c[y],i[c.charCodeAt(y)]=y;function C(Z){var ne=Z.length;if(ne%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var be=Z.indexOf("=");return-1===be&&(be=ne),[be,be===ne?0:4-be%4]}function I(Z){return r[Z>>18&63]+r[Z>>12&63]+r[Z>>6&63]+r[63&Z]}function N(Z,ne,be){for(var pe=[],Te=ne;Te{"use strict";const a=r(3981),c=r(2020),y="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;s.hp=S,s.IS=50;const w=2147483647;function T(B){if(B>w)throw new RangeError('The value "'+B+'" is invalid for option "size"');const k=new Uint8Array(B);return Object.setPrototypeOf(k,S.prototype),k}function S(B,k,j){if("number"==typeof B){if("string"==typeof k)throw new TypeError('The "string" argument must be of type string. Received type number');return K(B)}return A(B,k,j)}function A(B,k,j){if("string"==typeof B)return function Z(B,k){if(("string"!=typeof k||""===k)&&(k="utf8"),!S.isEncoding(k))throw new TypeError("Unknown encoding: "+k);const j=0|Re(B,k);let De=T(j);const it=De.write(B,k);return it!==j&&(De=De.slice(0,it)),De}(B,k);if(ArrayBuffer.isView(B))return function be(B){if(zt(B,Uint8Array)){const k=new Uint8Array(B);return me(k.buffer,k.byteOffset,k.byteLength)}return ne(B)}(B);if(null==B)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(zt(B,ArrayBuffer)||B&&zt(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(zt(B,SharedArrayBuffer)||B&&zt(B.buffer,SharedArrayBuffer)))return me(B,k,j);if("number"==typeof B)throw new TypeError('The "value" argument must not be of type number. Received type number');const De=B.valueOf&&B.valueOf();if(null!=De&&De!==B)return S.from(De,k,j);const it=function pe(B){if(S.isBuffer(B)){const k=0|Te(B.length),j=T(k);return 0===j.length||B.copy(j,0,0,k),j}return void 0!==B.length?"number"!=typeof B.length||xn(B.length)?T(0):ne(B):"Buffer"===B.type&&Array.isArray(B.data)?ne(B.data):void 0}(B);if(it)return it;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof B[Symbol.toPrimitive])return S.from(B[Symbol.toPrimitive]("string"),k,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}function I(B){if("number"!=typeof B)throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function K(B){return I(B),T(B<0?0:0|Te(B))}function ne(B){const k=B.length<0?0:0|Te(B.length),j=T(k);for(let De=0;De=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return 0|B}function Re(B,k){if(S.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||zt(B,ArrayBuffer))return B.byteLength;if("string"!=typeof B)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const j=B.length,De=arguments.length>2&&!0===arguments[2];if(!De&&0===j)return 0;let it=!1;for(;;)switch(k){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return an(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*j;case"hex":return j>>>1;case"base64":return Kt(B).length;default:if(it)return De?-1:an(B).length;k=(""+k).toLowerCase(),it=!0}}function Me(B,k,j){let De=!1;if((void 0===k||k<0)&&(k=0),k>this.length||((void 0===j||j>this.length)&&(j=this.length),j<=0)||(j>>>=0)<=(k>>>=0))return"";for(B||(B="utf8");;)switch(B){case"hex":return Qe(this,k,j);case"utf8":case"utf-8":return Xt(this,k,j);case"ascii":return $n(this,k,j);case"latin1":case"binary":return bn(this,k,j);case"base64":return at(this,k,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,k,j);default:if(De)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),De=!0}}function Ce(B,k,j){const De=B[k];B[k]=B[j],B[j]=De}function le(B,k,j,De,it){if(0===B.length)return-1;if("string"==typeof j?(De=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),xn(j=+j)&&(j=it?0:B.length-1),j<0&&(j=B.length+j),j>=B.length){if(it)return-1;j=B.length-1}else if(j<0){if(!it)return-1;j=0}if("string"==typeof k&&(k=S.from(k,De)),S.isBuffer(k))return 0===k.length?-1:ae(B,k,j,De,it);if("number"==typeof k)return k&=255,"function"==typeof Uint8Array.prototype.indexOf?it?Uint8Array.prototype.indexOf.call(B,k,j):Uint8Array.prototype.lastIndexOf.call(B,k,j):ae(B,[k],j,De,it);throw new TypeError("val must be string, number or Buffer")}function ae(B,k,j,De,it){let dn,ot=1,Tt=B.length,In=k.length;if(void 0!==De&&("ucs2"===(De=String(De).toLowerCase())||"ucs-2"===De||"utf16le"===De||"utf-16le"===De)){if(B.length<2||k.length<2)return-1;ot=2,Tt/=2,In/=2,j/=2}function Vt(Pn,Fn){return 1===ot?Pn[Fn]:Pn.readUInt16BE(Fn*ot)}if(it){let Pn=-1;for(dn=j;dnTt&&(j=Tt-In),dn=j;dn>=0;dn--){let Pn=!0;for(let Fn=0;Fnit&&(De=it):De=it;const ot=k.length;let Tt;for(De>ot/2&&(De=ot/2),Tt=0;Tt>8,it=j%256,ot.push(it),ot.push(De);return ot}(k,B.length-j),B,j,De)}function at(B,k,j){return a.fromByteArray(0===k&&j===B.length?B:B.slice(k,j))}function Xt(B,k,j){j=Math.min(B.length,j);const De=[];let it=k;for(;it239?4:ot>223?3:ot>191?2:1;if(it+In<=j){let Vt,dn,Pn,Fn;switch(In){case 1:ot<128&&(Tt=ot);break;case 2:Vt=B[it+1],128==(192&Vt)&&(Fn=(31&ot)<<6|63&Vt,Fn>127&&(Tt=Fn));break;case 3:Vt=B[it+1],dn=B[it+2],128==(192&Vt)&&128==(192&dn)&&(Fn=(15&ot)<<12|(63&Vt)<<6|63&dn,Fn>2047&&(Fn<55296||Fn>57343)&&(Tt=Fn));break;case 4:Vt=B[it+1],dn=B[it+2],Pn=B[it+3],128==(192&Vt)&&128==(192&dn)&&128==(192&Pn)&&(Fn=(15&ot)<<18|(63&Vt)<<12|(63&dn)<<6|63&Pn,Fn>65535&&Fn<1114112&&(Tt=Fn))}}null===Tt?(Tt=65533,In=1):Tt>65535&&(Tt-=65536,De.push(Tt>>>10&1023|55296),Tt=56320|1023&Tt),De.push(Tt),it+=In}return function yn(B){const k=B.length;if(k<=ln)return String.fromCharCode.apply(String,B);let j="",De=0;for(;Deit.length?(S.isBuffer(Tt)||(Tt=S.from(Tt)),Tt.copy(it,ot)):Uint8Array.prototype.set.call(it,Tt,ot);else{if(!S.isBuffer(Tt))throw new TypeError('"list" argument must be an Array of Buffers');Tt.copy(it,ot)}ot+=Tt.length}return it},S.byteLength=Re,S.prototype._isBuffer=!0,S.prototype.swap16=function(){const k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;jj&&(k+=" ... "),""},y&&(S.prototype[y]=S.prototype.inspect),S.prototype.compare=function(k,j,De,it,ot){if(zt(k,Uint8Array)&&(k=S.from(k,k.offset,k.byteLength)),!S.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(void 0===j&&(j=0),void 0===De&&(De=k?k.length:0),void 0===it&&(it=0),void 0===ot&&(ot=this.length),j<0||De>k.length||it<0||ot>this.length)throw new RangeError("out of range index");if(it>=ot&&j>=De)return 0;if(it>=ot)return-1;if(j>=De)return 1;if(this===k)return 0;let Tt=(ot>>>=0)-(it>>>=0),In=(De>>>=0)-(j>>>=0);const Vt=Math.min(Tt,In),dn=this.slice(it,ot),Pn=k.slice(j,De);for(let Fn=0;Fn>>=0,isFinite(De)?(De>>>=0,void 0===it&&(it="utf8")):(it=De,De=void 0)}const ot=this.length-j;if((void 0===De||De>ot)&&(De=ot),k.length>0&&(De<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");it||(it="utf8");let Tt=!1;for(;;)switch(it){case"hex":return Ie(this,k,j,De);case"utf8":case"utf-8":return $e(this,k,j,De);case"ascii":case"latin1":case"binary":return st(this,k,j,De);case"base64":return ht(this,k,j,De);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vt(this,k,j,De);default:if(Tt)throw new TypeError("Unknown encoding: "+it);it=(""+it).toLowerCase(),Tt=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const ln=4096;function $n(B,k,j){let De="";j=Math.min(B.length,j);for(let it=k;itDe)&&(j=De);let it="";for(let ot=k;otj)throw new RangeError("Trying to access beyond buffer length")}function Fe(B,k,j,De,it,ot){if(!S.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>it||kB.length)throw new RangeError("Index out of range")}function Ft(B,k,j,De,it){Jt(k,De,it,B,j,7);let ot=Number(k&BigInt(4294967295));B[j++]=ot,ot>>=8,B[j++]=ot,ot>>=8,B[j++]=ot,ot>>=8,B[j++]=ot;let Tt=Number(k>>BigInt(32)&BigInt(4294967295));return B[j++]=Tt,Tt>>=8,B[j++]=Tt,Tt>>=8,B[j++]=Tt,Tt>>=8,B[j++]=Tt,j}function ze(B,k,j,De,it){Jt(k,De,it,B,j,7);let ot=Number(k&BigInt(4294967295));B[j+7]=ot,ot>>=8,B[j+6]=ot,ot>>=8,B[j+5]=ot,ot>>=8,B[j+4]=ot;let Tt=Number(k>>BigInt(32)&BigInt(4294967295));return B[j+3]=Tt,Tt>>=8,B[j+2]=Tt,Tt>>=8,B[j+1]=Tt,Tt>>=8,B[j]=Tt,j+8}function dt(B,k,j,De,it,ot){if(j+De>B.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function Ke(B,k,j,De,it){return k=+k,j>>>=0,it||dt(B,0,j,4),c.write(B,k,j,De,23,4),j+4}function He(B,k,j,De,it){return k=+k,j>>>=0,it||dt(B,0,j,8),c.write(B,k,j,De,52,8),j+8}S.prototype.slice=function(k,j){const De=this.length;(k=~~k)<0?(k+=De)<0&&(k=0):k>De&&(k=De),(j=void 0===j?De:~~j)<0?(j+=De)<0&&(j=0):j>De&&(j=De),j>>=0,j>>>=0,De||Ge(k,j,this.length);let it=this[k],ot=1,Tt=0;for(;++Tt>>=0,j>>>=0,De||Ge(k,j,this.length);let it=this[k+--j],ot=1;for(;j>0&&(ot*=256);)it+=this[k+--j]*ot;return it},S.prototype.readUint8=S.prototype.readUInt8=function(k,j){return k>>>=0,j||Ge(k,1,this.length),this[k]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(k,j){return k>>>=0,j||Ge(k,2,this.length),this[k]|this[k+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(k,j){return k>>>=0,j||Ge(k,2,this.length),this[k]<<8|this[k+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function(k,j){return k>>>=0,j||Ge(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},S.prototype.readUint32BE=S.prototype.readUInt32BE=function(k,j){return k>>>=0,j||Ge(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},S.prototype.readBigUInt64LE=tt(function(k){fn(k>>>=0,"offset");const j=this[k],De=this[k+7];(void 0===j||void 0===De)&&Kn(k,this.length-8);const it=j+256*this[++k]+65536*this[++k]+this[++k]*2**24,ot=this[++k]+256*this[++k]+65536*this[++k]+De*2**24;return BigInt(it)+(BigInt(ot)<>>=0,"offset");const j=this[k],De=this[k+7];(void 0===j||void 0===De)&&Kn(k,this.length-8);const it=j*2**24+65536*this[++k]+256*this[++k]+this[++k],ot=this[++k]*2**24+65536*this[++k]+256*this[++k]+De;return(BigInt(it)<>>=0,j>>>=0,De||Ge(k,j,this.length);let it=this[k],ot=1,Tt=0;for(;++Tt=ot&&(it-=Math.pow(2,8*j)),it},S.prototype.readIntBE=function(k,j,De){k>>>=0,j>>>=0,De||Ge(k,j,this.length);let it=j,ot=1,Tt=this[k+--it];for(;it>0&&(ot*=256);)Tt+=this[k+--it]*ot;return ot*=128,Tt>=ot&&(Tt-=Math.pow(2,8*j)),Tt},S.prototype.readInt8=function(k,j){return k>>>=0,j||Ge(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},S.prototype.readInt16LE=function(k,j){k>>>=0,j||Ge(k,2,this.length);const De=this[k]|this[k+1]<<8;return 32768&De?4294901760|De:De},S.prototype.readInt16BE=function(k,j){k>>>=0,j||Ge(k,2,this.length);const De=this[k+1]|this[k]<<8;return 32768&De?4294901760|De:De},S.prototype.readInt32LE=function(k,j){return k>>>=0,j||Ge(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},S.prototype.readInt32BE=function(k,j){return k>>>=0,j||Ge(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},S.prototype.readBigInt64LE=tt(function(k){fn(k>>>=0,"offset");const j=this[k],De=this[k+7];return(void 0===j||void 0===De)&&Kn(k,this.length-8),(BigInt(this[k+4]+256*this[k+5]+65536*this[k+6]+(De<<24))<>>=0,"offset");const j=this[k],De=this[k+7];(void 0===j||void 0===De)&&Kn(k,this.length-8);const it=(j<<24)+65536*this[++k]+256*this[++k]+this[++k];return(BigInt(it)<>>=0,j||Ge(k,4,this.length),c.read(this,k,!0,23,4)},S.prototype.readFloatBE=function(k,j){return k>>>=0,j||Ge(k,4,this.length),c.read(this,k,!1,23,4)},S.prototype.readDoubleLE=function(k,j){return k>>>=0,j||Ge(k,8,this.length),c.read(this,k,!0,52,8)},S.prototype.readDoubleBE=function(k,j){return k>>>=0,j||Ge(k,8,this.length),c.read(this,k,!1,52,8)},S.prototype.writeUintLE=S.prototype.writeUIntLE=function(k,j,De,it){k=+k,j>>>=0,De>>>=0,it||Fe(this,k,j,De,Math.pow(2,8*De)-1,0);let ot=1,Tt=0;for(this[j]=255&k;++Tt>>=0,De>>>=0,it||Fe(this,k,j,De,Math.pow(2,8*De)-1,0);let ot=De-1,Tt=1;for(this[j+ot]=255&k;--ot>=0&&(Tt*=256);)this[j+ot]=k/Tt&255;return j+De},S.prototype.writeUint8=S.prototype.writeUInt8=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,1,255,0),this[j]=255&k,j+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,2,65535,0),this[j]=255&k,this[j+1]=k>>>8,j+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,2,65535,0),this[j]=k>>>8,this[j+1]=255&k,j+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,4,4294967295,0),this[j+3]=k>>>24,this[j+2]=k>>>16,this[j+1]=k>>>8,this[j]=255&k,j+4},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,4,4294967295,0),this[j]=k>>>24,this[j+1]=k>>>16,this[j+2]=k>>>8,this[j+3]=255&k,j+4},S.prototype.writeBigUInt64LE=tt(function(k,j=0){return Ft(this,k,j,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeBigUInt64BE=tt(function(k,j=0){return ze(this,k,j,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeIntLE=function(k,j,De,it){if(k=+k,j>>>=0,!it){const Vt=Math.pow(2,8*De-1);Fe(this,k,j,De,Vt-1,-Vt)}let ot=0,Tt=1,In=0;for(this[j]=255&k;++ot>>=0,!it){const Vt=Math.pow(2,8*De-1);Fe(this,k,j,De,Vt-1,-Vt)}let ot=De-1,Tt=1,In=0;for(this[j+ot]=255&k;--ot>=0&&(Tt*=256);)k<0&&0===In&&0!==this[j+ot+1]&&(In=1),this[j+ot]=(k/Tt|0)-In&255;return j+De},S.prototype.writeInt8=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,1,127,-128),k<0&&(k=255+k+1),this[j]=255&k,j+1},S.prototype.writeInt16LE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,2,32767,-32768),this[j]=255&k,this[j+1]=k>>>8,j+2},S.prototype.writeInt16BE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,2,32767,-32768),this[j]=k>>>8,this[j+1]=255&k,j+2},S.prototype.writeInt32LE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,4,2147483647,-2147483648),this[j]=255&k,this[j+1]=k>>>8,this[j+2]=k>>>16,this[j+3]=k>>>24,j+4},S.prototype.writeInt32BE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[j]=k>>>24,this[j+1]=k>>>16,this[j+2]=k>>>8,this[j+3]=255&k,j+4},S.prototype.writeBigInt64LE=tt(function(k,j=0){return Ft(this,k,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeBigInt64BE=tt(function(k,j=0){return ze(this,k,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeFloatLE=function(k,j,De){return Ke(this,k,j,!0,De)},S.prototype.writeFloatBE=function(k,j,De){return Ke(this,k,j,!1,De)},S.prototype.writeDoubleLE=function(k,j,De){return He(this,k,j,!0,De)},S.prototype.writeDoubleBE=function(k,j,De){return He(this,k,j,!1,De)},S.prototype.copy=function(k,j,De,it){if(!S.isBuffer(k))throw new TypeError("argument should be a Buffer");if(De||(De=0),!it&&0!==it&&(it=this.length),j>=k.length&&(j=k.length),j||(j=0),it>0&&it=this.length)throw new RangeError("Index out of range");if(it<0)throw new RangeError("sourceEnd out of bounds");it>this.length&&(it=this.length),k.length-j>>=0,De=void 0===De?this.length:De>>>0,k||(k=0),"number"==typeof k)for(ot=j;ot=De+4;j-=3)k=`_${B.slice(j-3,j)}${k}`;return`${B.slice(0,j)}${k}`}function Jt(B,k,j,De,it,ot){if(B>j||B3?0===k||k===BigInt(0)?`>= 0${Tt} and < 2${Tt} ** ${8*(ot+1)}${Tt}`:`>= -(2${Tt} ** ${8*(ot+1)-1}${Tt}) and < 2 ** ${8*(ot+1)-1}${Tt}`:`>= ${k}${Tt} and <= ${j}${Tt}`,new mt.ERR_OUT_OF_RANGE("value",In,B)}!function Rt(B,k,j){fn(k,"offset"),(void 0===B[k]||void 0===B[k+j])&&Kn(k,B.length-(j+1))}(De,it,ot)}function fn(B,k){if("number"!=typeof B)throw new mt.ERR_INVALID_ARG_TYPE(k,"number",B)}function Kn(B,k,j){throw Math.floor(B)!==B?(fn(B,j),new mt.ERR_OUT_OF_RANGE(j||"offset","an integer",B)):k<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE(j||"offset",`>= ${j?1:0} and <= ${k}`,B)}se("ERR_BUFFER_OUT_OF_BOUNDS",function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),se("ERR_INVALID_ARG_TYPE",function(B,k){return`The "${B}" argument must be of type number. Received type ${typeof k}`},TypeError),se("ERR_OUT_OF_RANGE",function(B,k,j){let De=`The value of "${B}" is out of range.`,it=j;return Number.isInteger(j)&&Math.abs(j)>2**32?it=Ze(String(j)):"bigint"==typeof j&&(it=String(j),(j>BigInt(2)**BigInt(32)||j<-(BigInt(2)**BigInt(32)))&&(it=Ze(it)),it+="n"),De+=` It must be ${k}. Received ${it}`,De},RangeError);const Nt=/[^+/0-9A-Za-z-_]/g;function an(B,k){let j;k=k||1/0;const De=B.length;let it=null;const ot=[];for(let Tt=0;Tt55295&&j<57344){if(!it){if(j>56319){(k-=3)>-1&&ot.push(239,191,189);continue}if(Tt+1===De){(k-=3)>-1&&ot.push(239,191,189);continue}it=j;continue}if(j<56320){(k-=3)>-1&&ot.push(239,191,189),it=j;continue}j=65536+(it-55296<<10|j-56320)}else it&&(k-=3)>-1&&ot.push(239,191,189);if(it=null,j<128){if((k-=1)<0)break;ot.push(j)}else if(j<2048){if((k-=2)<0)break;ot.push(j>>6|192,63&j|128)}else if(j<65536){if((k-=3)<0)break;ot.push(j>>12|224,j>>6&63|128,63&j|128)}else{if(!(j<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;ot.push(j>>18|240,j>>12&63|128,j>>6&63|128,63&j|128)}}return ot}function Kt(B){return a.toByteArray(function Qt(B){if((B=(B=B.split("=")[0]).trim().replace(Nt,"")).length<2)return"";for(;B.length%4!=0;)B+="=";return B}(B))}function At(B,k,j,De){let it;for(it=0;it=k.length||it>=B.length);++it)k[it+j]=B[it];return it}function zt(B,k){return B instanceof k||null!=B&&null!=B.constructor&&null!=B.constructor.name&&B.constructor.name===k.name}function xn(B){return B!=B}const Yn=function(){const B="0123456789abcdef",k=new Array(256);for(let j=0;j<16;++j){const De=16*j;for(let it=0;it<16;++it)k[De+it]=B[j]+B[it]}return k}();function tt(B){return typeof BigInt>"u"?ke:B}function ke(){throw new Error("BigInt not supported")}},2020:(o,s)=>{s.read=function(r,i,a,c,y){var w,C,T=8*y-c-1,S=(1<>1,I=-7,N=a?y-1:0,K=a?-1:1,Z=r[i+N];for(N+=K,w=Z&(1<<-I)-1,Z>>=-I,I+=T;I>0;w=256*w+r[i+N],N+=K,I-=8);for(C=w&(1<<-I)-1,w>>=-I,I+=c;I>0;C=256*C+r[i+N],N+=K,I-=8);if(0===w)w=1-A;else{if(w===S)return C?NaN:1/0*(Z?-1:1);C+=Math.pow(2,c),w-=A}return(Z?-1:1)*C*Math.pow(2,w-c)},s.write=function(r,i,a,c,y,w){var C,T,S,A=8*w-y-1,I=(1<>1,K=23===y?Math.pow(2,-24)-Math.pow(2,-77):0,Z=c?0:w-1,ne=c?1:-1,be=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(T=isNaN(i)?1:0,C=I):(C=Math.floor(Math.log(i)/Math.LN2),i*(S=Math.pow(2,-C))<1&&(C--,S*=2),(i+=C+N>=1?K/S:K*Math.pow(2,1-N))*S>=2&&(C++,S/=2),C+N>=I?(T=0,C=I):C+N>=1?(T=(i*S-1)*Math.pow(2,y),C+=N):(T=i*Math.pow(2,N-1)*Math.pow(2,y),C=0));y>=8;r[a+Z]=255&T,Z+=ne,T/=256,y-=8);for(C=C<0;r[a+Z]=255&C,Z+=ne,C/=256,A-=8);r[a+Z-ne]|=128*be}},119:o=>{o.exports=function a(c,y,w){function C(A,I){if(!y[A]){if(!c[A]){if(T)return T(A,!0);var K=new Error("Cannot find module '"+A+"'");throw K.code="MODULE_NOT_FOUND",K}var Z=y[A]={exports:{}};c[A][0].call(Z.exports,function(ne){return C(c[A][1][ne]||ne)},Z,Z.exports,a,c,y,w)}return y[A].exports}for(var T=void 0,S=0;S"u"&&a(3);var N=Promise;function K(ve,et){et&&ve.then(function(Oe){et(null,Oe)},function(Oe){et(Oe)})}function Z(ve,et,Oe){"function"==typeof et&&ve.then(et),"function"==typeof Oe&&ve.catch(Oe)}function ne(ve){return"string"!=typeof ve&&(console.warn(ve+" used as a key, but it is not a string."),ve=String(ve)),ve}function be(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var me="local-forage-detect-blob-support",pe=void 0,Te={},xe=Object.prototype.toString,Re="readonly",Me="readwrite";function Ce(ve){for(var et=ve.length,Oe=new ArrayBuffer(et),pt=new Uint8Array(Oe),$t=0;$t=43)}}).catch(function(){return!1})}(ve).then(function(et){return pe=et})}function Ie(ve){var et=Te[ve.name],Oe={};Oe.promise=new N(function(pt,$t){Oe.resolve=pt,Oe.reject=$t}),et.deferredOperations.push(Oe),et.dbReady=et.dbReady?et.dbReady.then(function(){return Oe.promise}):Oe.promise}function $e(ve){var Oe=Te[ve.name].deferredOperations.pop();if(Oe)return Oe.resolve(),Oe.promise}function st(ve,et){var pt=Te[ve.name].deferredOperations.pop();if(pt)return pt.reject(et),pt.promise}function ht(ve,et){return new N(function(Oe,pt){if(Te[ve.name]=Te[ve.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},ve.db){if(!et)return Oe(ve.db);Ie(ve),ve.db.close()}var $t=[ve.name];et&&$t.push(ve.version);var Mt=S.open.apply(S,$t);et&&(Mt.onupgradeneeded=function(un){var Cn=Mt.result;try{Cn.createObjectStore(ve.storeName),un.oldVersion<=1&&Cn.createObjectStore(me)}catch(Sn){if("ConstraintError"!==Sn.name)throw Sn;console.warn('The database "'+ve.name+'" has been upgraded from version '+un.oldVersion+" to version "+un.newVersion+', but the storage "'+ve.storeName+'" already exists.')}}),Mt.onerror=function(un){un.preventDefault(),pt(Mt.error)},Mt.onsuccess=function(){var un=Mt.result;un.onversionchange=function(Cn){Cn.target.close()},Oe(un),$e(ve)}})}function vt(ve){return ht(ve,!1)}function at(ve){return ht(ve,!0)}function Xt(ve,et){if(!ve.db)return!0;var Oe=!ve.db.objectStoreNames.contains(ve.storeName),$t=ve.version>ve.db.version;if(ve.versionve.version&&(ve.version=Mt)}return!0}return!1}function yn(ve){return I([Ce(atob(ve.data))],{type:ve.type})}function $n(ve){return ve&&ve.__local_forage_encoded_blob}function bn(ve){var et=this,Oe=et._initReady().then(function(){var pt=Te[et._dbInfo.name];if(pt&&pt.dbReady)return pt.dbReady});return Z(Oe,ve,ve),Oe}function bt(ve,et,Oe,pt){void 0===pt&&(pt=1);try{var $t=ve.db.transaction(ve.storeName,et);Oe(null,$t)}catch(Mt){if(pt>0&&(!ve.db||"InvalidStateError"===Mt.name||"NotFoundError"===Mt.name))return N.resolve().then(function(){if(!ve.db||"NotFoundError"===Mt.name&&!ve.db.objectStoreNames.contains(ve.storeName)&&ve.version<=ve.db.version)return ve.db&&(ve.version=ve.db.version+1),at(ve)}).then(function(){return function Qe(ve){Ie(ve);for(var et=Te[ve.name],Oe=et.forages,pt=0;pt>4,Un[$t++]=(15&un)<<4|Cn>>2,Un[$t++]=(3&Cn)<<6|63&Sn;return kn}function Tt(ve){var pt,et=new Uint8Array(ve),Oe="";for(pt=0;pt>2],Oe+=Kn[(3&et[pt])<<4|et[pt+1]>>4],Oe+=Kn[(15&et[pt+1])<<2|et[pt+2]>>6],Oe+=Kn[63&et[pt+2]];return et.length%3==2?Oe=Oe.substring(0,Oe.length-1)+"=":et.length%3==1&&(Oe=Oe.substring(0,Oe.length-2)+"=="),Oe}var dn={serialize:function In(ve,et){var Oe="";if(ve&&(Oe=it.call(ve)),ve&&("[object ArrayBuffer]"===Oe||ve.buffer&&"[object ArrayBuffer]"===it.call(ve.buffer))){var pt,$t=an;ve instanceof ArrayBuffer?(pt=ve,$t+=En):(pt=ve.buffer,"[object Int8Array]"===Oe?$t+="si08":"[object Uint8Array]"===Oe?$t+="ui08":"[object Uint8ClampedArray]"===Oe?$t+="uic8":"[object Int16Array]"===Oe?$t+="si16":"[object Uint16Array]"===Oe?$t+="ur16":"[object Int32Array]"===Oe?$t+="si32":"[object Uint32Array]"===Oe?$t+=B:"[object Float32Array]"===Oe?$t+=k:"[object Float64Array]"===Oe?$t+=j:et(new Error("Failed to get type for BinaryArray"))),et($t+Tt(pt))}else if("[object Blob]"===Oe){var Mt=new FileReader;Mt.onload=function(){var un="~~local_forage_type~"+ve.type+"~"+Tt(this.result);et(an+Kt+un)},Mt.readAsArrayBuffer(ve)}else try{et(JSON.stringify(ve))}catch(un){console.error("Couldn't convert value into a JSON string: ",ve),et(null,un)}},deserialize:function Vt(ve){if(ve.substring(0,9)!==an)return JSON.parse(ve);var pt,et=ve.substring(13),Oe=ve.substring(9,13);if(Oe===Kt&&Qt.test(et)){var $t=et.match(Qt);pt=$t[1],et=et.substring($t[0].length)}var Mt=ot(et);switch(Oe){case En:return Mt;case Kt:return I([Mt],{type:pt});case"si08":return new Int8Array(Mt);case"ui08":return new Uint8Array(Mt);case"uic8":return new Uint8ClampedArray(Mt);case"si16":return new Int16Array(Mt);case"ur16":return new Uint16Array(Mt);case"si32":return new Int32Array(Mt);case B:return new Uint32Array(Mt);case k:return new Float32Array(Mt);case j:return new Float64Array(Mt);default:throw new Error("Unkown type: "+Oe)}},stringToBuffer:ot,bufferToString:Tt};function Pn(ve,et,Oe,pt){ve.executeSql("CREATE TABLE IF NOT EXISTS "+et.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Oe,pt)}function Bn(ve,et,Oe,pt,$t,Mt){ve.executeSql(Oe,pt,$t,function(un,Cn){Cn.code===Cn.SYNTAX_ERR?un.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[et.storeName],function(Sn,kn){kn.rows.length?Mt(Sn,Cn):Pn(Sn,et,function(){Sn.executeSql(Oe,pt,$t,Mt)},Mt)},Mt):Mt(un,Cn)},Mt)}function Xr(ve,et,Oe,pt){var $t=this;ve=ne(ve);var Mt=new N(function(un,Cn){$t.ready().then(function(){void 0===et&&(et=null);var Sn=et,kn=$t._dbInfo;kn.serializer.serialize(et,function(Un,Jn){Jn?Cn(Jn):kn.db.transaction(function(sr){Bn(sr,kn,"INSERT OR REPLACE INTO "+kn.storeName+" (key, value) VALUES (?, ?)",[ve,Un],function(){un(Sn)},function(kr,mr){Cn(mr)})},function(sr){if(sr.code===sr.QUOTA_ERR){if(pt>0)return void un(Xr.apply($t,[ve,Sn,Oe,pt-1]));Cn(sr)}})})}).catch(Cn)});return K(Mt,Oe),Mt}var mn={_driver:"webSQLStorage",_initStorage:function Fn(ve){var et=this,Oe={db:null};if(ve)for(var pt in ve)Oe[pt]="string"!=typeof ve[pt]?ve[pt].toString():ve[pt];var $t=new N(function(Mt,un){try{Oe.db=openDatabase(Oe.name,String(Oe.version),Oe.description,Oe.size)}catch(Cn){return un(Cn)}Oe.db.transaction(function(Cn){Pn(Cn,Oe,function(){et._dbInfo=Oe,Mt()},function(Sn,kn){un(kn)})},un)});return Oe.serializer=dn,$t},_support:function fn(){return"function"==typeof openDatabase}(),iterate:function Jr(ve,et){var Oe=this,pt=new N(function($t,Mt){Oe.ready().then(function(){var un=Oe._dbInfo;un.db.transaction(function(Cn){Bn(Cn,un,"SELECT * FROM "+un.storeName,[],function(Sn,kn){for(var Un=kn.rows,Jn=Un.length,sr=0;sr '__WebKitDatabaseInfoTable__'",[],function($t,Mt){for(var un=[],Cn=0;Cn0}var Uo={_driver:"localStorageWrapper",_initStorage:function Ai(ve){var Oe={};if(ve)for(var pt in ve)Oe[pt]=ve[pt];return Oe.keyPrefix=Mr(ve,this._defaultConfig),ci()?(this._dbInfo=Oe,Oe.serializer=dn,N.resolve()):N.reject()},_support:function or(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function qe(ve,et){var Oe=this,pt=Oe.ready().then(function(){for(var $t=Oe._dbInfo,Mt=$t.keyPrefix,un=Mt.length,Cn=localStorage.length,Sn=1,kn=0;kn=0;$t--){var Mt=localStorage.key($t);0===Mt.indexOf(pt)&&localStorage.removeItem(Mt)}});return K(Oe,ve),Oe},length:function Hn(ve){var Oe=this.keys().then(function(pt){return pt.length});return K(Oe,ve),Oe},key:function Dt(ve,et){var Oe=this,pt=Oe.ready().then(function(){var Mt,$t=Oe._dbInfo;try{Mt=localStorage.key(ve)}catch{Mt=null}return Mt&&(Mt=Mt.substring($t.keyPrefix.length)),Mt});return K(pt,et),pt},keys:function Wt(ve){var et=this,Oe=et.ready().then(function(){for(var pt=et._dbInfo,$t=localStorage.length,Mt=[],un=0;un<$t;un++){var Cn=localStorage.key(un);0===Cn.indexOf(pt.keyPrefix)&&Mt.push(Cn.substring(pt.keyPrefix.length))}return Mt});return K(Oe,ve),Oe},dropInstance:function Oi(ve,et){if(et=be.apply(this,arguments),!(ve="function"!=typeof ve&&ve||{}).name){var Oe=this.config();ve.name=ve.name||Oe.name,ve.storeName=ve.storeName||Oe.storeName}var $t,pt=this;return K($t=ve.name?new N(function(Mt){Mt(ve.storeName?Mr(ve,pt._defaultConfig):ve.name+"/")}).then(function(Mt){for(var un=localStorage.length-1;un>=0;un--){var Cn=localStorage.key(un);0===Cn.indexOf(Mt)&&localStorage.removeItem(Cn)}}):N.reject("Invalid arguments"),et),$t}},oi=function(et,Oe){return et===Oe||"number"==typeof et&&"number"==typeof Oe&&isNaN(et)&&isNaN(Oe)},ts=function(et,Oe){for(var pt=et.length,$t=0;$t"u"?"undefined":w(Oe))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var pt in Oe){if("storeName"===pt&&(Oe[pt]=Oe[pt].replace(/\W/g,"_")),"version"===pt&&"number"!=typeof Oe[pt])return new Error("Database version must be a number.");this._config[pt]=Oe[pt]}return!("driver"in Oe)||!Oe.driver||this.setDriver(this._config.driver)}return"string"==typeof Oe?this._config[Oe]:this._config},ve.prototype.defineDriver=function(Oe,pt,$t){var Mt=new N(function(un,Cn){try{var Sn=Oe._driver,kn=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!Oe._driver)return void Cn(kn);for(var Un=oo.concat("_initStorage"),Jn=0,sr=Un.length;Jn{"use strict";r.d(s,{t:()=>a});var i=r(1413);class a extends i.B{constructor(y){super(),this._value=y}get value(){return this.getValue()}_subscribe(y){const w=super._subscribe(y);return!w.closed&&y.next(this._value),w}getValue(){const{hasError:y,thrownError:w,_value:C}=this;if(y)throw w;return this._throwIfClosed(),C}next(y){super.next(this._value=y)}}},1985:(o,s,r)=>{"use strict";r.d(s,{c:()=>S});var i=r(7707),a=r(8359),c=r(3494),y=r(1203),w=r(1026),C=r(8071),T=r(9786);let S=(()=>{class K{constructor(ne){ne&&(this._subscribe=ne)}lift(ne){const be=new K;return be.source=this,be.operator=ne,be}subscribe(ne,be,me){const pe=function N(K){return K&&K instanceof i.vU||function I(K){return K&&(0,C.T)(K.next)&&(0,C.T)(K.error)&&(0,C.T)(K.complete)}(K)&&(0,a.Uv)(K)}(ne)?ne:new i.Ms(ne,be,me);return(0,T.Y)(()=>{const{operator:Te,source:xe}=this;pe.add(Te?Te.call(pe,xe):xe?this._subscribe(pe):this._trySubscribe(pe))}),pe}_trySubscribe(ne){try{return this._subscribe(ne)}catch(be){ne.error(be)}}forEach(ne,be){return new(be=A(be))((me,pe)=>{const Te=new i.Ms({next:xe=>{try{ne(xe)}catch(Re){pe(Re),Te.unsubscribe()}},error:pe,complete:me});this.subscribe(Te)})}_subscribe(ne){var be;return null===(be=this.source)||void 0===be?void 0:be.subscribe(ne)}[c.s](){return this}pipe(...ne){return(0,y.m)(ne)(this)}toPromise(ne){return new(ne=A(ne))((be,me)=>{let pe;this.subscribe(Te=>pe=Te,Te=>me(Te),()=>be(pe))})}}return K.create=Z=>new K(Z),K})();function A(K){var Z;return null!==(Z=K??w.$.Promise)&&void 0!==Z?Z:Promise}},2771:(o,s,r)=>{"use strict";r.d(s,{m:()=>c});var i=r(1413),a=r(6129);class c extends i.B{constructor(w=1/0,C=1/0,T=a.U){super(),this._bufferSize=w,this._windowTime=C,this._timestampProvider=T,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=C===1/0,this._bufferSize=Math.max(1,w),this._windowTime=Math.max(1,C)}next(w){const{isStopped:C,_buffer:T,_infiniteTimeWindow:S,_timestampProvider:A,_windowTime:I}=this;C||(T.push(w),!S&&T.push(A.now()+I)),this._trimBuffer(),super.next(w)}_subscribe(w){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(w),{_infiniteTimeWindow:T,_buffer:S}=this,A=S.slice();for(let I=0;I{"use strict";r.d(s,{B:()=>T});var i=r(1985),a=r(8359);const y=(0,r(1853).L)(A=>function(){A(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var w=r(7908),C=r(9786);let T=(()=>{class A extends i.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(N){const K=new S(this,this);return K.operator=N,K}_throwIfClosed(){if(this.closed)throw new y}next(N){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const K of this.currentObservers)K.next(N)}})}error(N){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=N;const{observers:K}=this;for(;K.length;)K.shift().error(N)}})}complete(){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:N}=this;for(;N.length;)N.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var N;return(null===(N=this.observers)||void 0===N?void 0:N.length)>0}_trySubscribe(N){return this._throwIfClosed(),super._trySubscribe(N)}_subscribe(N){return this._throwIfClosed(),this._checkFinalizedStatuses(N),this._innerSubscribe(N)}_innerSubscribe(N){const{hasError:K,isStopped:Z,observers:ne}=this;return K||Z?a.Kn:(this.currentObservers=null,ne.push(N),new a.yU(()=>{this.currentObservers=null,(0,w.o)(ne,N)}))}_checkFinalizedStatuses(N){const{hasError:K,thrownError:Z,isStopped:ne}=this;K?N.error(Z):ne&&N.complete()}asObservable(){const N=new i.c;return N.source=this,N}}return A.create=(I,N)=>new S(I,N),A})();class S extends T{constructor(I,N){super(),this.destination=I,this.source=N}next(I){var N,K;null===(K=null===(N=this.destination)||void 0===N?void 0:N.next)||void 0===K||K.call(N,I)}error(I){var N,K;null===(K=null===(N=this.destination)||void 0===N?void 0:N.error)||void 0===K||K.call(N,I)}complete(){var I,N;null===(N=null===(I=this.destination)||void 0===I?void 0:I.complete)||void 0===N||N.call(I)}_subscribe(I){var N,K;return null!==(K=null===(N=this.source)||void 0===N?void 0:N.subscribe(I))&&void 0!==K?K:a.Kn}}},7707:(o,s,r)=>{"use strict";r.d(s,{Ms:()=>me,vU:()=>K});var i=r(8071),a=r(8359),c=r(1026),y=r(5334),w=r(5343);const C=A("C",void 0,void 0);function A(Me,Ce,le){return{kind:Me,value:Ce,error:le}}var I=r(9270),N=r(9786);class K extends a.yU{constructor(Ce){super(),this.isStopped=!1,Ce?(this.destination=Ce,(0,a.Uv)(Ce)&&Ce.add(this)):this.destination=Re}static create(Ce,le,ae){return new me(Ce,le,ae)}next(Ce){this.isStopped?xe(function S(Me){return A("N",Me,void 0)}(Ce),this):this._next(Ce)}error(Ce){this.isStopped?xe(function T(Me){return A("E",void 0,Me)}(Ce),this):(this.isStopped=!0,this._error(Ce))}complete(){this.isStopped?xe(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ce){this.destination.next(Ce)}_error(Ce){try{this.destination.error(Ce)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Z=Function.prototype.bind;function ne(Me,Ce){return Z.call(Me,Ce)}class be{constructor(Ce){this.partialObserver=Ce}next(Ce){const{partialObserver:le}=this;if(le.next)try{le.next(Ce)}catch(ae){pe(ae)}}error(Ce){const{partialObserver:le}=this;if(le.error)try{le.error(Ce)}catch(ae){pe(ae)}else pe(Ce)}complete(){const{partialObserver:Ce}=this;if(Ce.complete)try{Ce.complete()}catch(le){pe(le)}}}class me extends K{constructor(Ce,le,ae){let Ie;if(super(),(0,i.T)(Ce)||!Ce)Ie={next:Ce??void 0,error:le??void 0,complete:ae??void 0};else{let $e;this&&c.$.useDeprecatedNextContext?($e=Object.create(Ce),$e.unsubscribe=()=>this.unsubscribe(),Ie={next:Ce.next&&ne(Ce.next,$e),error:Ce.error&&ne(Ce.error,$e),complete:Ce.complete&&ne(Ce.complete,$e)}):Ie=Ce}this.destination=new be(Ie)}}function pe(Me){c.$.useDeprecatedSynchronousErrorHandling?(0,N.l)(Me):(0,y.m)(Me)}function xe(Me,Ce){const{onStoppedNotification:le}=c.$;le&&I.f.setTimeout(()=>le(Me,Ce))}const Re={closed:!0,next:w.l,error:function Te(Me){throw Me},complete:w.l}},8359:(o,s,r)=>{"use strict";r.d(s,{Kn:()=>C,yU:()=>w,Uv:()=>T});var i=r(8071);const c=(0,r(1853).L)(A=>function(N){A(this),this.message=N?`${N.length} errors occurred during unsubscription:\n${N.map((K,Z)=>`${Z+1}) ${K.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=N});var y=r(7908);class w{constructor(I){this.initialTeardown=I,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let I;if(!this.closed){this.closed=!0;const{_parentage:N}=this;if(N)if(this._parentage=null,Array.isArray(N))for(const ne of N)ne.remove(this);else N.remove(this);const{initialTeardown:K}=this;if((0,i.T)(K))try{K()}catch(ne){I=ne instanceof c?ne.errors:[ne]}const{_finalizers:Z}=this;if(Z){this._finalizers=null;for(const ne of Z)try{S(ne)}catch(be){I=I??[],be instanceof c?I=[...I,...be.errors]:I.push(be)}}if(I)throw new c(I)}}add(I){var N;if(I&&I!==this)if(this.closed)S(I);else{if(I instanceof w){if(I.closed||I._hasParent(this))return;I._addParent(this)}(this._finalizers=null!==(N=this._finalizers)&&void 0!==N?N:[]).push(I)}}_hasParent(I){const{_parentage:N}=this;return N===I||Array.isArray(N)&&N.includes(I)}_addParent(I){const{_parentage:N}=this;this._parentage=Array.isArray(N)?(N.push(I),N):N?[N,I]:I}_removeParent(I){const{_parentage:N}=this;N===I?this._parentage=null:Array.isArray(N)&&(0,y.o)(N,I)}remove(I){const{_finalizers:N}=this;N&&(0,y.o)(N,I),I instanceof w&&I._removeParent(this)}}w.EMPTY=(()=>{const A=new w;return A.closed=!0,A})();const C=w.EMPTY;function T(A){return A instanceof w||A&&"closed"in A&&(0,i.T)(A.remove)&&(0,i.T)(A.add)&&(0,i.T)(A.unsubscribe)}function S(A){(0,i.T)(A)?A():A.unsubscribe()}},1026:(o,s,r)=>{"use strict";r.d(s,{$:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(o,s,r)=>{"use strict";r.d(s,{G:()=>C});var i=r(1985),a=r(8359),c=r(9898),y=r(4360),w=r(9974);class C extends i.c{constructor(S,A){super(),this.source=S,this.subjectFactory=A,this._subject=null,this._refCount=0,this._connection=null,(0,w.S)(S)&&(this.lift=S.lift)}_subscribe(S){return this.getSubject().subscribe(S)}getSubject(){const S=this._subject;return(!S||S.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:S}=this;this._subject=this._connection=null,S?.unsubscribe()}connect(){let S=this._connection;if(!S){S=this._connection=new a.yU;const A=this.getSubject();S.add(this.source.subscribe((0,y._)(A,void 0,()=>{this._teardown(),A.complete()},I=>{this._teardown(),A.error(I)},()=>this._teardown()))),S.closed&&(this._connection=null,S=a.yU.EMPTY)}return S}refCount(){return(0,c.B)()(this)}}},4572:(o,s,r)=>{"use strict";r.d(s,{z:()=>I});var i=r(1985),a=r(3073),c=r(6648),y=r(3669),w=r(6450),C=r(9326),T=r(8496),S=r(4360),A=r(5225);function I(...Z){const ne=(0,C.lI)(Z),be=(0,C.ms)(Z),{args:me,keys:pe}=(0,a.D)(Z);if(0===me.length)return(0,c.H)([],ne);const Te=new i.c(function N(Z,ne,be=y.D){return me=>{K(ne,()=>{const{length:pe}=Z,Te=new Array(pe);let xe=pe,Re=pe;for(let Me=0;Me{const Ce=(0,c.H)(Z[Me],ne);let le=!1;Ce.subscribe((0,S._)(me,ae=>{Te[Me]=ae,le||(le=!0,Re--),Re||me.next(be(Te.slice()))},()=>{--xe||me.complete()}))},me)},me)}}(me,ne,pe?xe=>(0,T.e)(pe,xe):y.D));return be?Te.pipe((0,w.I)(be)):Te}function K(Z,ne,be){Z?(0,A.N)(be,Z,ne):ne()}},8793:(o,s,r)=>{"use strict";r.d(s,{x:()=>w});var i=r(6365),c=r(9326),y=r(6648);function w(...C){return function a(){return(0,i.U)(1)}()((0,y.H)(C,(0,c.lI)(C)))}},9030:(o,s,r)=>{"use strict";r.d(s,{v:()=>c});var i=r(1985),a=r(8750);function c(y){return new i.c(w=>{(0,a.Tg)(y()).subscribe(w)})}},983:(o,s,r)=>{"use strict";r.d(s,{w:()=>a});const a=new(r(1985).c)(w=>w.complete())},7468:(o,s,r)=>{"use strict";r.d(s,{p:()=>S});var i=r(1985),a=r(3073),c=r(8750),y=r(9326),w=r(4360),C=r(6450),T=r(8496);function S(...A){const I=(0,y.ms)(A),{args:N,keys:K}=(0,a.D)(A),Z=new i.c(ne=>{const{length:be}=N;if(!be)return void ne.complete();const me=new Array(be);let pe=be,Te=be;for(let xe=0;xe{Re||(Re=!0,Te--),me[xe]=Me},()=>pe--,void 0,()=>{(!pe||!Re)&&(Te||ne.next(K?(0,T.e)(K,me):me),ne.complete())}))}});return I?Z.pipe((0,C.I)(I)):Z}},6648:(o,s,r)=>{"use strict";r.d(s,{H:()=>ae});var i=r(8750),a=r(5225),c=r(9974),y=r(4360);function w(Ie,$e=0){return(0,c.N)((st,ht)=>{st.subscribe((0,y._)(ht,vt=>(0,a.N)(ht,Ie,()=>ht.next(vt),$e),()=>(0,a.N)(ht,Ie,()=>ht.complete(),$e),vt=>(0,a.N)(ht,Ie,()=>ht.error(vt),$e)))})}function C(Ie,$e=0){return(0,c.N)((st,ht)=>{ht.add(Ie.schedule(()=>st.subscribe(ht),$e))})}var A=r(1985),N=r(4761),K=r(8071);function ne(Ie,$e){if(!Ie)throw new Error("Iterable cannot be null");return new A.c(st=>{(0,a.N)(st,$e,()=>{const ht=Ie[Symbol.asyncIterator]();(0,a.N)(st,$e,()=>{ht.next().then(vt=>{vt.done?st.complete():st.next(vt.value)})},0,!0)})})}var be=r(5055),me=r(9858),pe=r(7441),Te=r(5397),xe=r(7953),Re=r(591),Me=r(5196);function ae(Ie,$e){return $e?function le(Ie,$e){if(null!=Ie){if((0,be.l)(Ie))return function T(Ie,$e){return(0,i.Tg)(Ie).pipe(C($e),w($e))}(Ie,$e);if((0,pe.X)(Ie))return function I(Ie,$e){return new A.c(st=>{let ht=0;return $e.schedule(function(){ht===Ie.length?st.complete():(st.next(Ie[ht++]),st.closed||this.schedule())})})}(Ie,$e);if((0,me.y)(Ie))return function S(Ie,$e){return(0,i.Tg)(Ie).pipe(C($e),w($e))}(Ie,$e);if((0,xe.T)(Ie))return ne(Ie,$e);if((0,Te.x)(Ie))return function Z(Ie,$e){return new A.c(st=>{let ht;return(0,a.N)(st,$e,()=>{ht=Ie[N.l](),(0,a.N)(st,$e,()=>{let vt,at;try{({value:vt,done:at}=ht.next())}catch(Xt){return void st.error(Xt)}at?st.complete():st.next(vt)},0,!0)}),()=>(0,K.T)(ht?.return)&&ht.return()})}(Ie,$e);if((0,Me.U)(Ie))return function Ce(Ie,$e){return ne((0,Me.C)(Ie),$e)}(Ie,$e)}throw(0,Re.L)(Ie)}(Ie,$e):(0,i.Tg)(Ie)}},3726:(o,s,r)=>{"use strict";r.d(s,{R:()=>I});var i=r(8750),a=r(1985),c=r(1397),y=r(7441),w=r(8071),C=r(6450);const T=["addListener","removeListener"],S=["addEventListener","removeEventListener"],A=["on","off"];function I(be,me,pe,Te){if((0,w.T)(pe)&&(Te=pe,pe=void 0),Te)return I(be,me,pe).pipe((0,C.I)(Te));const[xe,Re]=function ne(be){return(0,w.T)(be.addEventListener)&&(0,w.T)(be.removeEventListener)}(be)?S.map(Me=>Ce=>be[Me](me,Ce,pe)):function K(be){return(0,w.T)(be.addListener)&&(0,w.T)(be.removeListener)}(be)?T.map(N(be,me)):function Z(be){return(0,w.T)(be.on)&&(0,w.T)(be.off)}(be)?A.map(N(be,me)):[];if(!xe&&(0,y.X)(be))return(0,c.Z)(Me=>I(Me,me,pe))((0,i.Tg)(be));if(!xe)throw new TypeError("Invalid event target");return new a.c(Me=>{const Ce=(...le)=>Me.next(1Re(Ce)})}function N(be,me){return pe=>Te=>be[pe](me,Te)}},8750:(o,s,r)=>{"use strict";r.d(s,{Tg:()=>Z});var i=r(1635),a=r(7441),c=r(9858),y=r(1985),w=r(5055),C=r(7953),T=r(591),S=r(5397),A=r(5196),I=r(8071),N=r(5334),K=r(3494);function Z(Me){if(Me instanceof y.c)return Me;if(null!=Me){if((0,w.l)(Me))return function ne(Me){return new y.c(Ce=>{const le=Me[K.s]();if((0,I.T)(le.subscribe))return le.subscribe(Ce);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Me);if((0,a.X)(Me))return function be(Me){return new y.c(Ce=>{for(let le=0;le{Me.then(le=>{Ce.closed||(Ce.next(le),Ce.complete())},le=>Ce.error(le)).then(null,N.m)})}(Me);if((0,C.T)(Me))return Te(Me);if((0,S.x)(Me))return function pe(Me){return new y.c(Ce=>{for(const le of Me)if(Ce.next(le),Ce.closed)return;Ce.complete()})}(Me);if((0,A.U)(Me))return function xe(Me){return Te((0,A.C)(Me))}(Me)}throw(0,T.L)(Me)}function Te(Me){return new y.c(Ce=>{(function Re(Me,Ce){var le,ae,Ie,$e;return(0,i.sH)(this,void 0,void 0,function*(){try{for(le=(0,i.xN)(Me);!(ae=yield le.next()).done;)if(Ce.next(ae.value),Ce.closed)return}catch(st){Ie={error:st}}finally{try{ae&&!ae.done&&($e=le.return)&&(yield $e.call(le))}finally{if(Ie)throw Ie.error}}Ce.complete()})})(Me,Ce).catch(le=>Ce.error(le))})}},605:(o,s,r)=>{"use strict";r.d(s,{Y:()=>c});var i=r(3236),a=r(1584);function c(y=0,w=i.E){return y<0&&(y=0),(0,a.O)(y,y,w)}},7786:(o,s,r)=>{"use strict";r.d(s,{h:()=>C});var i=r(6365),a=r(8750),c=r(983),y=r(9326),w=r(6648);function C(...T){const S=(0,y.lI)(T),A=(0,y.R0)(T,1/0),I=T;return I.length?1===I.length?(0,a.Tg)(I[0]):(0,i.U)(A)((0,w.H)(I,S)):c.w}},7673:(o,s,r)=>{"use strict";r.d(s,{of:()=>c});var i=r(9326),a=r(6648);function c(...y){const w=(0,i.lI)(y);return(0,a.H)(y,w)}},8810:(o,s,r)=>{"use strict";r.d(s,{$:()=>c});var i=r(1985),a=r(8071);function c(y,w){const C=(0,a.T)(y)?y:()=>y,T=S=>S.error(C());return new i.c(w?S=>w.schedule(T,0,S):T)}},1584:(o,s,r)=>{"use strict";r.d(s,{O:()=>w});var i=r(1985),a=r(3236),c=r(9470);function w(C=0,T,S=a.b){let A=-1;return null!=T&&((0,c.m)(T)?S=T:A=T),new i.c(I=>{let N=function y(C){return C instanceof Date&&!isNaN(C)}(C)?+C-S.now():C;N<0&&(N=0);let K=0;return S.schedule(function(){I.closed||(I.next(K++),0<=A?this.schedule(void 0,A):I.complete())},N)})}},4360:(o,s,r)=>{"use strict";r.d(s,{_:()=>a});var i=r(7707);function a(y,w,C,T,S){return new c(y,w,C,T,S)}class c extends i.vU{constructor(w,C,T,S,A,I){super(w),this.onFinalize=A,this.shouldUnsubscribe=I,this._next=C?function(N){try{C(N)}catch(K){w.error(K)}}:super._next,this._error=S?function(N){try{S(N)}catch(K){w.error(K)}finally{this.unsubscribe()}}:super._error,this._complete=T?function(){try{T()}catch(N){w.error(N)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var w;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(w=this.onFinalize)||void 0===w||w.call(this))}}}},3798:(o,s,r)=>{"use strict";r.d(s,{Z:()=>T});var i=r(3236),a=r(9974),c=r(8750),y=r(4360),C=r(1584);function T(S,A=i.E){return function w(S){return(0,a.N)((A,I)=>{let N=!1,K=null,Z=null,ne=!1;const be=()=>{if(Z?.unsubscribe(),Z=null,N){N=!1;const pe=K;K=null,I.next(pe)}ne&&I.complete()},me=()=>{Z=null,ne&&I.complete()};A.subscribe((0,y._)(I,pe=>{N=!0,K=pe,Z||(0,c.Tg)(S(pe)).subscribe(Z=(0,y._)(I,be,me))},()=>{ne=!0,(!N||!Z||Z.closed)&&I.complete()}))})}(()=>(0,C.O)(S,A))}},9437:(o,s,r)=>{"use strict";r.d(s,{W:()=>y});var i=r(8750),a=r(4360),c=r(9974);function y(w){return(0,c.N)((C,T)=>{let I,S=null,A=!1;S=C.subscribe((0,a._)(T,void 0,void 0,N=>{I=(0,i.Tg)(w(N,y(w)(C))),S?(S.unsubscribe(),S=null,I.subscribe(T)):A=!0})),A&&(S.unsubscribe(),S=null,I.subscribe(T))})}},274:(o,s,r)=>{"use strict";r.d(s,{H:()=>c});var i=r(1397),a=r(8071);function c(y,w){return(0,a.T)(w)?(0,i.Z)(y,w,1):(0,i.Z)(y,1)}},152:(o,s,r)=>{"use strict";r.d(s,{B:()=>y});var i=r(3236),a=r(9974),c=r(4360);function y(w,C=i.E){return(0,a.N)((T,S)=>{let A=null,I=null,N=null;const K=()=>{if(A){A.unsubscribe(),A=null;const ne=I;I=null,S.next(ne)}};function Z(){const ne=N+w,be=C.now();if(be{I=ne,N=C.now(),A||(A=C.schedule(Z,w),S.add(A))},()=>{K(),S.complete()},void 0,()=>{I=A=null}))})}},1986:(o,s,r)=>{"use strict";r.d(s,{c:()=>Z});var i=r(3236),a=r(8793),c=r(6697),y=r(9974),w=r(4360),C=r(5343),S=r(3703),A=r(1397),I=r(8750);function N(ne,be){return be?me=>(0,a.x)(be.pipe((0,c.s)(1),function T(){return(0,y.N)((ne,be)=>{ne.subscribe((0,w._)(be,C.l))})}()),me.pipe(N(ne))):(0,A.Z)((me,pe)=>(0,I.Tg)(ne(me,pe)).pipe((0,c.s)(1),(0,S.u)(me)))}var K=r(1584);function Z(ne,be=i.E){const me=(0,K.O)(ne,be);return N(()=>me)}},3294:(o,s,r)=>{"use strict";r.d(s,{F:()=>y});var i=r(3669),a=r(9974),c=r(4360);function y(C,T=i.D){return C=C??w,(0,a.N)((S,A)=>{let I,N=!0;S.subscribe((0,c._)(A,K=>{const Z=T(K);(N||!C(I,Z))&&(N=!1,I=Z,A.next(K))}))})}function w(C,T){return C===T}},5964:(o,s,r)=>{"use strict";r.d(s,{p:()=>c});var i=r(9974),a=r(4360);function c(y,w){return(0,i.N)((C,T)=>{let S=0;C.subscribe((0,a._)(T,A=>y.call(w,A,S++)&&T.next(A)))})}},980:(o,s,r)=>{"use strict";r.d(s,{j:()=>a});var i=r(9974);function a(c){return(0,i.N)((y,w)=>{try{y.subscribe(w)}finally{w.add(c)}})}},6354:(o,s,r)=>{"use strict";r.d(s,{T:()=>c});var i=r(9974),a=r(4360);function c(y,w){return(0,i.N)((C,T)=>{let S=0;C.subscribe((0,a._)(T,A=>{T.next(y.call(w,A,S++))}))})}},3703:(o,s,r)=>{"use strict";r.d(s,{u:()=>a});var i=r(6354);function a(c){return(0,i.T)(()=>c)}},6365:(o,s,r)=>{"use strict";r.d(s,{U:()=>c});var i=r(1397),a=r(3669);function c(y=1/0){return(0,i.Z)(a.D,y)}},1397:(o,s,r)=>{"use strict";r.d(s,{Z:()=>S});var i=r(6354),a=r(8750),c=r(9974),y=r(5225),w=r(4360),T=r(8071);function S(A,I,N=1/0){return(0,T.T)(I)?S((K,Z)=>(0,i.T)((ne,be)=>I(K,ne,Z,be))((0,a.Tg)(A(K,Z))),N):("number"==typeof I&&(N=I),(0,c.N)((K,Z)=>function C(A,I,N,K,Z,ne,be,me){const pe=[];let Te=0,xe=0,Re=!1;const Me=()=>{Re&&!pe.length&&!Te&&I.complete()},Ce=ae=>Te{ne&&I.next(ae),Te++;let Ie=!1;(0,a.Tg)(N(ae,xe++)).subscribe((0,w._)(I,$e=>{Z?.($e),ne?Ce($e):I.next($e)},()=>{Ie=!0},void 0,()=>{if(Ie)try{for(Te--;pe.length&&Tele($e)):le($e)}Me()}catch($e){I.error($e)}}))};return A.subscribe((0,w._)(I,Ce,()=>{Re=!0,Me()})),()=>{me?.()}}(K,Z,A,N)))}},9898:(o,s,r)=>{"use strict";r.d(s,{B:()=>c});var i=r(9974),a=r(4360);function c(){return(0,i.N)((y,w)=>{let C=null;y._refCount++;const T=(0,a._)(w,void 0,void 0,void 0,()=>{if(!y||y._refCount<=0||0<--y._refCount)return void(C=null);const S=y._connection,A=C;C=null,S&&(!A||S===A)&&S.unsubscribe(),w.unsubscribe()});y.subscribe(T),T.closed||(C=y.connect())})}},2498:(o,s,r)=>{"use strict";r.d(s,{L:()=>C});var i=r(9974),a=r(4360),c=r(3669),y=r(1584),w=r(8750);function C(T=1/0){let S;S=T&&"object"==typeof T?T:{count:T};const{count:A=1/0,delay:I,resetOnSuccess:N=!1}=S;return A<=0?c.D:(0,i.N)((K,Z)=>{let be,ne=0;const me=()=>{let pe=!1;be=K.subscribe((0,a._)(Z,Te=>{N&&(ne=0),Z.next(Te)},void 0,Te=>{if(ne++{be?(be.unsubscribe(),be=null,me()):pe=!0};if(null!=I){const Re="number"==typeof I?(0,y.O)(I):(0,w.Tg)(I(Te,ne)),Me=(0,a._)(Z,()=>{Me.unsubscribe(),xe()},()=>{Z.complete()});Re.subscribe(Me)}else xe()}else Z.error(Te)})),pe&&(be.unsubscribe(),be=null,me())};me()})}},6649:(o,s,r)=>{"use strict";r.d(s,{S:()=>a});var i=r(4360);function a(c,y,w,C,T){return(S,A)=>{let I=w,N=y,K=0;S.subscribe((0,i._)(A,Z=>{const ne=K++;N=I?c(N,Z,ne):(I=!0,Z),C&&A.next(N)},T&&(()=>{I&&A.next(N),A.complete()})))}}},7647:(o,s,r)=>{"use strict";r.d(s,{u:()=>w});var i=r(8750),a=r(1413),c=r(7707),y=r(9974);function w(T={}){const{connector:S=()=>new a.B,resetOnError:A=!0,resetOnComplete:I=!0,resetOnRefCountZero:N=!0}=T;return K=>{let Z,ne,be,me=0,pe=!1,Te=!1;const xe=()=>{ne?.unsubscribe(),ne=void 0},Re=()=>{xe(),Z=be=void 0,pe=Te=!1},Me=()=>{const Ce=Z;Re(),Ce?.unsubscribe()};return(0,y.N)((Ce,le)=>{me++,!Te&&!pe&&xe();const ae=be=be??S();le.add(()=>{me--,0===me&&!Te&&!pe&&(ne=C(Me,N))}),ae.subscribe(le),!Z&&me>0&&(Z=new c.Ms({next:Ie=>ae.next(Ie),error:Ie=>{Te=!0,xe(),ne=C(Re,A,Ie),ae.error(Ie)},complete:()=>{pe=!0,xe(),ne=C(Re,I),ae.complete()}}),(0,i.Tg)(Ce).subscribe(Z))})(K)}}function C(T,S,...A){if(!0===S)return void T();if(!1===S)return;const I=new c.Ms({next:()=>{I.unsubscribe(),T()}});return(0,i.Tg)(S(...A)).subscribe(I)}},4668:(o,s,r)=>{"use strict";r.d(s,{t:()=>c});var i=r(2771),a=r(7647);function c(y,w,C){let T,S=!1;return y&&"object"==typeof y?({bufferSize:T=1/0,windowTime:w=1/0,refCount:S=!1,scheduler:C}=y):T=y??1/0,(0,a.u)({connector:()=>new i.m(T,w,C),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:S})}},7626:(o,s,r)=>{"use strict";r.d(s,{i:()=>a});var i=r(5964);function a(c){return(0,i.p)((y,w)=>c<=w)}},9172:(o,s,r)=>{"use strict";r.d(s,{Z:()=>y});var i=r(8793),a=r(9326),c=r(9974);function y(...w){const C=(0,a.lI)(w);return(0,c.N)((T,S)=>{(C?(0,i.x)(w,T,C):(0,i.x)(w,T)).subscribe(S)})}},5558:(o,s,r)=>{"use strict";r.d(s,{n:()=>y});var i=r(8750),a=r(9974),c=r(4360);function y(w,C){return(0,a.N)((T,S)=>{let A=null,I=0,N=!1;const K=()=>N&&!A&&S.complete();T.subscribe((0,c._)(S,Z=>{A?.unsubscribe();let ne=0;const be=I++;(0,i.Tg)(w(Z,be)).subscribe(A=(0,c._)(S,me=>S.next(C?C(Z,me,be,ne++):me),()=>{A=null,K()}))},()=>{N=!0,K()}))})}},6697:(o,s,r)=>{"use strict";r.d(s,{s:()=>y});var i=r(983),a=r(9974),c=r(4360);function y(w){return w<=0?()=>i.w:(0,a.N)((C,T)=>{let S=0;C.subscribe((0,c._)(T,A=>{++S<=w&&(T.next(A),w<=S&&T.complete())}))})}},6977:(o,s,r)=>{"use strict";r.d(s,{Q:()=>w});var i=r(9974),a=r(4360),c=r(8750),y=r(5343);function w(C){return(0,i.N)((T,S)=>{(0,c.Tg)(C).subscribe((0,a._)(S,()=>S.complete(),y.l)),!S.closed&&T.subscribe(S)})}},8141:(o,s,r)=>{"use strict";r.d(s,{M:()=>w});var i=r(8071),a=r(9974),c=r(4360),y=r(3669);function w(C,T,S){const A=(0,i.T)(C)||T||S?{next:C,error:T,complete:S}:C;return A?(0,a.N)((I,N)=>{var K;null===(K=A.subscribe)||void 0===K||K.call(A);let Z=!0;I.subscribe((0,c._)(N,ne=>{var be;null===(be=A.next)||void 0===be||be.call(A,ne),N.next(ne)},()=>{var ne;Z=!1,null===(ne=A.complete)||void 0===ne||ne.call(A),N.complete()},ne=>{var be;Z=!1,null===(be=A.error)||void 0===be||be.call(A,ne),N.error(ne)},()=>{var ne,be;Z&&(null===(ne=A.unsubscribe)||void 0===ne||ne.call(A)),null===(be=A.finalize)||void 0===be||be.call(A)}))}):y.D}},6780:(o,s,r)=>{"use strict";r.d(s,{R:()=>w});var i=r(8359);class a extends i.yU{constructor(T,S){super()}schedule(T,S=0){return this}}const c={setInterval(C,T,...S){const{delegate:A}=c;return A?.setInterval?A.setInterval(C,T,...S):setInterval(C,T,...S)},clearInterval(C){const{delegate:T}=c;return(T?.clearInterval||clearInterval)(C)},delegate:void 0};var y=r(7908);class w extends a{constructor(T,S){super(T,S),this.scheduler=T,this.work=S,this.pending=!1}schedule(T,S=0){var A;if(this.closed)return this;this.state=T;const I=this.id,N=this.scheduler;return null!=I&&(this.id=this.recycleAsyncId(N,I,S)),this.pending=!0,this.delay=S,this.id=null!==(A=this.id)&&void 0!==A?A:this.requestAsyncId(N,this.id,S),this}requestAsyncId(T,S,A=0){return c.setInterval(T.flush.bind(T,this),A)}recycleAsyncId(T,S,A=0){if(null!=A&&this.delay===A&&!1===this.pending)return S;null!=S&&c.clearInterval(S)}execute(T,S){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const A=this._execute(T,S);if(A)return A;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(T,S){let I,A=!1;try{this.work(T)}catch(N){A=!0,I=N||new Error("Scheduled action threw falsy error")}if(A)return this.unsubscribe(),I}unsubscribe(){if(!this.closed){const{id:T,scheduler:S}=this,{actions:A}=S;this.work=this.state=this.scheduler=null,this.pending=!1,(0,y.o)(A,this),null!=T&&(this.id=this.recycleAsyncId(S,T,null)),this.delay=null,super.unsubscribe()}}}},9687:(o,s,r)=>{"use strict";r.d(s,{q:()=>c});var i=r(6129);class a{constructor(w,C=a.now){this.schedulerActionCtor=w,this.now=C}schedule(w,C=0,T){return new this.schedulerActionCtor(this,w).schedule(T,C)}}a.now=i.U.now;class c extends a{constructor(w,C=a.now){super(w,C),this.actions=[],this._active=!1}flush(w){const{actions:C}=this;if(this._active)return void C.push(w);let T;this._active=!0;do{if(T=w.execute(w.state,w.delay))break}while(w=C.shift());if(this._active=!1,T){for(;w=C.shift();)w.unsubscribe();throw T}}}},5007:(o,s,r)=>{"use strict";r.d(s,{$:()=>ne});var i=r(6780);let c,a=1;const y={};function w(me){return me in y&&(delete y[me],!0)}const C={setImmediate(me){const pe=a++;return y[pe]=!0,c||(c=Promise.resolve()),c.then(()=>w(pe)&&me()),pe},clearImmediate(me){w(me)}},{setImmediate:S,clearImmediate:A}=C,I={setImmediate(...me){const{delegate:pe}=I;return(pe?.setImmediate||S)(...me)},clearImmediate(me){const{delegate:pe}=I;return(pe?.clearImmediate||A)(me)},delegate:void 0};var K=r(9687);const ne=new class Z extends K.q{flush(pe){this._active=!0;const Te=this._scheduled;this._scheduled=void 0;const{actions:xe}=this;let Re;pe=pe||xe.shift();do{if(Re=pe.execute(pe.state,pe.delay))break}while((pe=xe[0])&&pe.id===Te&&xe.shift());if(this._active=!1,Re){for(;(pe=xe[0])&&pe.id===Te&&xe.shift();)pe.unsubscribe();throw Re}}}(class N extends i.R{constructor(pe,Te){super(pe,Te),this.scheduler=pe,this.work=Te}requestAsyncId(pe,Te,xe=0){return null!==xe&&xe>0?super.requestAsyncId(pe,Te,xe):(pe.actions.push(this),pe._scheduled||(pe._scheduled=I.setImmediate(pe.flush.bind(pe,void 0))))}recycleAsyncId(pe,Te,xe=0){var Re;if(null!=xe?xe>0:this.delay>0)return super.recycleAsyncId(pe,Te,xe);const{actions:Me}=pe;null!=Te&&(null===(Re=Me[Me.length-1])||void 0===Re?void 0:Re.id)!==Te&&(I.clearImmediate(Te),pe._scheduled===Te&&(pe._scheduled=void 0))}})},3236:(o,s,r)=>{"use strict";r.d(s,{E:()=>c,b:()=>y});var i=r(6780);const c=new(r(9687).q)(i.R),y=c},6129:(o,s,r)=>{"use strict";r.d(s,{U:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},9270:(o,s,r)=>{"use strict";r.d(s,{f:()=>i});const i={setTimeout(a,c,...y){const{delegate:w}=i;return w?.setTimeout?w.setTimeout(a,c,...y):setTimeout(a,c,...y)},clearTimeout(a){const{delegate:c}=i;return(c?.clearTimeout||clearTimeout)(a)},delegate:void 0}},4761:(o,s,r)=>{"use strict";r.d(s,{l:()=>a});const a=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(o,s,r)=>{"use strict";r.d(s,{s:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(o,s,r)=>{"use strict";r.d(s,{G:()=>a});const a=(0,r(1853).L)(c=>function(){c(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(o,s,r)=>{"use strict";r.d(s,{R0:()=>C,lI:()=>w,ms:()=>y});var i=r(8071),a=r(9470);function c(T){return T[T.length-1]}function y(T){return(0,i.T)(c(T))?T.pop():void 0}function w(T){return(0,a.m)(c(T))?T.pop():void 0}function C(T,S){return"number"==typeof c(T)?T.pop():S}},3073:(o,s,r)=>{"use strict";r.d(s,{D:()=>w});const{isArray:i}=Array,{getPrototypeOf:a,prototype:c,keys:y}=Object;function w(T){if(1===T.length){const S=T[0];if(i(S))return{args:S,keys:null};if(function C(T){return T&&"object"==typeof T&&a(T)===c}(S)){const A=y(S);return{args:A.map(I=>S[I]),keys:A}}}return{args:T,keys:null}}},7908:(o,s,r)=>{"use strict";function i(a,c){if(a){const y=a.indexOf(c);0<=y&&a.splice(y,1)}}r.d(s,{o:()=>i})},1853:(o,s,r)=>{"use strict";function i(a){const y=a(w=>{Error.call(w),w.stack=(new Error).stack});return y.prototype=Object.create(Error.prototype),y.prototype.constructor=y,y}r.d(s,{L:()=>i})},8496:(o,s,r)=>{"use strict";function i(a,c){return a.reduce((y,w,C)=>(y[w]=c[C],y),{})}r.d(s,{e:()=>i})},9786:(o,s,r)=>{"use strict";r.d(s,{Y:()=>c,l:()=>y});var i=r(1026);let a=null;function c(w){if(i.$.useDeprecatedSynchronousErrorHandling){const C=!a;if(C&&(a={errorThrown:!1,error:null}),w(),C){const{errorThrown:T,error:S}=a;if(a=null,T)throw S}}else w()}function y(w){i.$.useDeprecatedSynchronousErrorHandling&&a&&(a.errorThrown=!0,a.error=w)}},5225:(o,s,r)=>{"use strict";function i(a,c,y,w=0,C=!1){const T=c.schedule(function(){y(),C?a.add(this.schedule(null,w)):this.unsubscribe()},w);if(a.add(T),!C)return T}r.d(s,{N:()=>i})},3669:(o,s,r)=>{"use strict";function i(a){return a}r.d(s,{D:()=>i})},7441:(o,s,r)=>{"use strict";r.d(s,{X:()=>i});const i=a=>a&&"number"==typeof a.length&&"function"!=typeof a},7953:(o,s,r)=>{"use strict";r.d(s,{T:()=>a});var i=r(8071);function a(c){return Symbol.asyncIterator&&(0,i.T)(c?.[Symbol.asyncIterator])}},8071:(o,s,r)=>{"use strict";function i(a){return"function"==typeof a}r.d(s,{T:()=>i})},5055:(o,s,r)=>{"use strict";r.d(s,{l:()=>c});var i=r(3494),a=r(8071);function c(y){return(0,a.T)(y[i.s])}},5397:(o,s,r)=>{"use strict";r.d(s,{x:()=>c});var i=r(4761),a=r(8071);function c(y){return(0,a.T)(y?.[i.l])}},4402:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(1985),a=r(8071);function c(y){return!!y&&(y instanceof i.c||(0,a.T)(y.lift)&&(0,a.T)(y.subscribe))}},9858:(o,s,r)=>{"use strict";r.d(s,{y:()=>a});var i=r(8071);function a(c){return(0,i.T)(c?.then)}},5196:(o,s,r)=>{"use strict";r.d(s,{C:()=>c,U:()=>y});var i=r(1635),a=r(8071);function c(w){return(0,i.AQ)(this,arguments,function*(){const T=w.getReader();try{for(;;){const{value:S,done:A}=yield(0,i.N3)(T.read());if(A)return yield(0,i.N3)(void 0);yield yield(0,i.N3)(S)}}finally{T.releaseLock()}})}function y(w){return(0,a.T)(w?.getReader)}},9470:(o,s,r)=>{"use strict";r.d(s,{m:()=>a});var i=r(8071);function a(c){return c&&(0,i.T)(c.schedule)}},9974:(o,s,r)=>{"use strict";r.d(s,{N:()=>c,S:()=>a});var i=r(8071);function a(y){return(0,i.T)(y?.lift)}function c(y){return w=>{if(a(w))return w.lift(function(C){try{return y(C,this)}catch(T){this.error(T)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(o,s,r)=>{"use strict";r.d(s,{I:()=>y});var i=r(6354);const{isArray:a}=Array;function y(w){return(0,i.T)(C=>function c(w,C){return a(C)?w(...C):w(C)}(w,C))}},5343:(o,s,r)=>{"use strict";function i(){}r.d(s,{l:()=>i})},1203:(o,s,r)=>{"use strict";r.d(s,{F:()=>a,m:()=>c});var i=r(3669);function a(...y){return c(y)}function c(y){return 0===y.length?i.D:1===y.length?y[0]:function(C){return y.reduce((T,S)=>S(T),C)}}},5334:(o,s,r)=>{"use strict";r.d(s,{m:()=>c});var i=r(1026),a=r(9270);function c(y){a.f.setTimeout(()=>{const{onUnhandledError:w}=i.$;if(!w)throw y;w(y)})}},591:(o,s,r)=>{"use strict";function i(a){return new TypeError(`You provided ${null!==a&&"object"==typeof a?"an invalid object":`'${a}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}r.d(s,{L:()=>i})},9969:(o,s,r)=>{"use strict";r.d(s,{FX:()=>ht,If:()=>c,K2:()=>S,MA:()=>ne,Os:()=>T,P:()=>me,S6:()=>Te,hZ:()=>w,i0:()=>C,i7:()=>N,iF:()=>A,kY:()=>K,kp:()=>y,sf:()=>$e,ui:()=>st,wk:()=>I});var i=r(177),a=r(4438),c=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}(c||{});const y="*";function w(vt,at){return{type:c.Trigger,name:vt,definitions:at,options:{}}}function C(vt,at=null){return{type:c.Animate,styles:at,timings:vt}}function T(vt,at=null){return{type:c.Group,steps:vt,options:at}}function S(vt,at=null){return{type:c.Sequence,steps:vt,options:at}}function A(vt){return{type:c.Style,styles:vt,offset:null}}function I(vt,at,Xt){return{type:c.State,name:vt,styles:at,options:Xt}}function N(vt){return{type:c.Keyframes,steps:vt}}function K(vt,at,Xt=null){return{type:c.Transition,expr:vt,animation:at,options:Xt}}function ne(vt=null){return{type:c.AnimateChild,options:vt}}function me(vt,at,Xt=null){return{type:c.Query,selector:vt,animation:at,options:Xt}}let Te=(()=>{class vt{static \u0275fac=function(ln){return new(ln||vt)};static \u0275prov=a.jDH({token:vt,factory:()=>(0,a.WQX)(Re),providedIn:"root"})}return vt})();class xe{}let Re=(()=>{class vt extends Te{animationModuleType=(0,a.WQX)(a.bc$,{optional:!0});_nextAnimationId=0;_renderer;constructor(Xt,ln){if(super(),this._renderer=Xt.createRenderer(ln.body,{id:"0",encapsulation:a.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function Ie(vt){const at=vt.\u0275type;return 0===at||1===at}(this._renderer))throw new a.wOt(3600,!1)}build(Xt){const ln=this._nextAnimationId;this._nextAnimationId++;const yn=Array.isArray(Xt)?S(Xt):Xt;return le(this._renderer,null,ln,"register",[yn]),new Me(ln,this._renderer)}static \u0275fac=function(ln){return new(ln||vt)(a.KVO(a._9s),a.KVO(i.qQ))};static \u0275prov=a.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})();class Me extends xe{_id;_renderer;constructor(at,Xt){super(),this._id=at,this._renderer=Xt}create(at,Xt){return new Ce(this._id,at,Xt||{},this._renderer)}}class Ce{id;element;_renderer;parentPlayer=null;_started=!1;constructor(at,Xt,ln,yn){this.id=at,this.element=Xt,this._renderer=yn,this._command("create",ln)}_listen(at,Xt){return this._renderer.listen(this.element,`@@${this.id}:${at}`,Xt)}_command(at,...Xt){le(this._renderer,this.element,this.id,at,Xt)}onDone(at){this._listen("done",at)}onStart(at){this._listen("start",at)}onDestroy(at){this._listen("destroy",at)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(at){this._command("setPosition",at)}getPosition(){return function ae(vt){const at=vt.\u0275type;return 0===at?vt:1===at?vt.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}totalTime=0}function le(vt,at,Xt,ln,yn){vt.setProperty(at,`@@${Xt}:${ln}`,yn)}class $e{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(at=0,Xt=0){this.totalTime=at+Xt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(at=>at()),this._onDoneFns=[])}onStart(at){this._originalOnStartFns.push(at),this._onStartFns.push(at)}onDone(at){this._originalOnDoneFns.push(at),this._onDoneFns.push(at)}onDestroy(at){this._onDestroyFns.push(at)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(at=>at()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(at=>at()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(at){this._position=this.totalTime?at*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(at){const Xt="start"==at?this._onStartFns:this._onDoneFns;Xt.forEach(ln=>ln()),Xt.length=0}}class st{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(at){this.players=at;let Xt=0,ln=0,yn=0;const $n=this.players.length;0==$n?queueMicrotask(()=>this._onFinish()):this.players.forEach(bn=>{bn.onDone(()=>{++Xt==$n&&this._onFinish()}),bn.onDestroy(()=>{++ln==$n&&this._onDestroy()}),bn.onStart(()=>{++yn==$n&&this._onStart()})}),this.totalTime=this.players.reduce((bn,Qe)=>Math.max(bn,Qe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(at=>at()),this._onDoneFns=[])}init(){this.players.forEach(at=>at.init())}onStart(at){this._onStartFns.push(at)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(at=>at()),this._onStartFns=[])}onDone(at){this._onDoneFns.push(at)}onDestroy(at){this._onDestroyFns.push(at)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(at=>at.play())}pause(){this.players.forEach(at=>at.pause())}restart(){this.players.forEach(at=>at.restart())}finish(){this._onFinish(),this.players.forEach(at=>at.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(at=>at.destroy()),this._onDestroyFns.forEach(at=>at()),this._onDestroyFns=[])}reset(){this.players.forEach(at=>at.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(at){const Xt=at*this.totalTime;this.players.forEach(ln=>{const yn=ln.totalTime?Math.min(1,Xt/ln.totalTime):1;ln.setPosition(yn)})}getPosition(){const at=this.players.reduce((Xt,ln)=>null===Xt||ln.totalTime>Xt.totalTime?ln:Xt,null);return null!=at?at.getPosition():0}beforeDestroy(){this.players.forEach(at=>{at.beforeDestroy&&at.beforeDestroy()})}triggerCallback(at){const Xt="start"==at?this._onStartFns:this._onDoneFns;Xt.forEach(ln=>ln()),Xt.length=0}}const ht="!"},9888:(o,s,r)=>{"use strict";r.d(s,{Pd:()=>ii,Au:()=>bt,vr:()=>Xt,Bu:()=>Ge,FN:()=>Pe,GX:()=>Yn,Q_:()=>Mr,Z7:()=>Ze,Ai:()=>Xr,g7:()=>Ai,px:()=>ae,_G:()=>it,w6:()=>ot,Ae:()=>Ie});var i=r(177),a=r(4438),c=r(6860),y=r(9046),w=r(7336),C=r(1413),T=r(8359),A=(r(4402),r(7673)),I=r(4412),N=r(8141),K=r(152),Z=r(5964),ne=r(6354),me=(r(6697),r(7626)),pe=r(3294),Te=r(6977),Re=r(2318),Me=r(4085),Ce=r(9327);const le=" ";function ae(rn,St,qe){const Dt=$e(rn,St);qe=qe.trim(),!Dt.some(Wt=>Wt.trim()===qe)&&(Dt.push(qe),rn.setAttribute(St,Dt.join(le)))}function Ie(rn,St,qe){const Dt=$e(rn,St);qe=qe.trim();const Wt=Dt.filter(Hn=>Hn!==qe);Wt.length?rn.setAttribute(St,Wt.join(le)):rn.removeAttribute(St)}function $e(rn,St){return rn.getAttribute(St)?.match(/\S+/g)??[]}const ht="cdk-describedby-message",vt="cdk-describedby-host";let at=0,Xt=(()=>{class rn{_platform=(0,a.WQX)(c.OD);_document=(0,a.WQX)(i.qQ);_messageRegistry=new Map;_messagesContainer=null;_id=""+at++;constructor(){(0,a.WQX)(y.l).load(y.Y),this._id=(0,a.WQX)(a.sZ2)+"-"+at++}describe(qe,Dt,Wt){if(!this._canBeDescribed(qe,Dt))return;const Hn=ln(Dt,Wt);"string"!=typeof Dt?(yn(Dt,this._id),this._messageRegistry.set(Hn,{messageElement:Dt,referenceCount:0})):this._messageRegistry.has(Hn)||this._createMessageElement(Dt,Wt),this._isElementDescribedByMessage(qe,Hn)||this._addMessageReference(qe,Hn)}removeDescription(qe,Dt,Wt){if(!Dt||!this._isElementNode(qe))return;const Hn=ln(Dt,Wt);if(this._isElementDescribedByMessage(qe,Hn)&&this._removeMessageReference(qe,Hn),"string"==typeof Dt){const fr=this._messageRegistry.get(Hn);fr&&0===fr.referenceCount&&this._deleteMessageElement(Hn)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const qe=this._document.querySelectorAll(`[${vt}="${this._id}"]`);for(let Dt=0;Dt0!=Wt.indexOf(ht));qe.setAttribute("aria-describedby",Dt.join(" "))}_addMessageReference(qe,Dt){const Wt=this._messageRegistry.get(Dt);ae(qe,"aria-describedby",Wt.messageElement.id),qe.setAttribute(vt,this._id),Wt.referenceCount++}_removeMessageReference(qe,Dt){const Wt=this._messageRegistry.get(Dt);Wt.referenceCount--,Ie(qe,"aria-describedby",Wt.messageElement.id),qe.removeAttribute(vt)}_isElementDescribedByMessage(qe,Dt){const Wt=$e(qe,"aria-describedby"),Hn=this._messageRegistry.get(Dt),fr=Hn&&Hn.messageElement.id;return!!fr&&-1!=Wt.indexOf(fr)}_canBeDescribed(qe,Dt){if(!this._isElementNode(qe))return!1;if(Dt&&"object"==typeof Dt)return!0;const Wt=null==Dt?"":`${Dt}`.trim(),Hn=qe.getAttribute("aria-label");return!(!Wt||Hn&&Hn.trim()===Wt)}_isElementNode(qe){return qe.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})();function ln(rn,St){return"string"==typeof rn?`${St||""}/${rn}`:rn}function yn(rn,St){rn.id||(rn.id=`${ht}-${St}-${at++}`)}class bn{_letterKeyStream=new C.B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new C.B;selectedItem=this._selectedItem;constructor(St,qe){const Dt="number"==typeof qe?.debounceInterval?qe.debounceInterval:200;qe?.skipPredicate&&(this._skipPredicateFn=qe.skipPredicate),this.setItems(St),this._setupKeyHandler(Dt)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(St){this._selectedItemIndex=St}setItems(St){this._items=St}handleKey(St){const qe=St.keyCode;St.key&&1===St.key.length?this._letterKeyStream.next(St.key.toLocaleUpperCase()):(qe>=w.A&&qe<=w.Z||qe>=w.f2&&qe<=w.bn)&&this._letterKeyStream.next(String.fromCharCode(qe))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(St){this._letterKeyStream.pipe((0,N.M)(qe=>this._pressedLetters.push(qe)),(0,K.B)(St),(0,Z.p)(()=>this._pressedLetters.length>0),(0,ne.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(qe=>{for(let Dt=1;DtSt.disabled;constructor(St,qe){this._items=St,St instanceof a.rOR?this._itemChangesSubscription=St.changes.subscribe(Dt=>this._itemsChanged(Dt.toArray())):(0,a.Hps)(St)&&(this._effectRef=(0,a.QZP)(()=>this._itemsChanged(St()),{injector:qe}))}tabOut=new C.B;change=new C.B;skipPredicate(St){return this._skipPredicateFn=St,this}withWrap(St=!0){return this._wrap=St,this}withVerticalOrientation(St=!0){return this._vertical=St,this}withHorizontalOrientation(St){return this._horizontal=St,this}withAllowedModifierKeys(St){return this._allowedModifierKeys=St,this}withTypeAhead(St=200){this._typeaheadSubscription.unsubscribe();const qe=this._getItemsArray();return this._typeahead=new bn(qe,{debounceInterval:"number"==typeof St?St:void 0,skipPredicate:Dt=>this._skipPredicateFn(Dt)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(Dt=>{this.setActiveItem(Dt)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(St=!0){return this._homeAndEnd=St,this}withPageUpDown(St=!0,qe=10){return this._pageUpAndDown={enabled:St,delta:qe},this}setActiveItem(St){const qe=this._activeItem();this.updateActiveItem(St),this._activeItem()!==qe&&this.change.next(this._activeItemIndex)}onKeydown(St){const qe=St.keyCode,Wt=["altKey","ctrlKey","metaKey","shiftKey"].every(Hn=>!St[Hn]||this._allowedModifierKeys.indexOf(Hn)>-1);switch(qe){case w.wn:return void this.tabOut.next();case w.n6:if(this._vertical&&Wt){this.setNextItemActive();break}return;case w.i7:if(this._vertical&&Wt){this.setPreviousItemActive();break}return;case w.LE:if(this._horizontal&&Wt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.UQ:if(this._horizontal&&Wt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.yZ:if(this._homeAndEnd&&Wt){this.setFirstItemActive();break}return;case w.Kp:if(this._homeAndEnd&&Wt){this.setLastItemActive();break}return;case w.w_:if(this._pageUpAndDown.enabled&&Wt){const Hn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Hn>0?Hn:0,1);break}return;case w.dB:if(this._pageUpAndDown.enabled&&Wt){const Hn=this._activeItemIndex+this._pageUpAndDown.delta,fr=this._getItemsArray().length;this._setActiveItemByIndex(Hn-1&&Dt!==this._activeItemIndex&&(this._activeItemIndex=Dt,this._typeahead?.setCurrentSelectedItemIndex(Dt))}}}class bt extends Qe{setActiveItem(St){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(St),this.activeItem&&this.activeItem.setActiveStyles()}}class Ge extends Qe{_origin="program";setFocusOrigin(St){return this._origin=St,this}setActiveItem(St){super.setActiveItem(St),this.activeItem&&this.activeItem.focus(this._origin)}}let Ze=(()=>{class rn{_platform=(0,a.WQX)(c.OD);constructor(){}isDisabled(qe){return qe.hasAttribute("disabled")}isVisible(qe){return function Jt(rn){return!!(rn.offsetWidth||rn.offsetHeight||"function"==typeof rn.getClientRects&&rn.getClientRects().length)}(qe)&&"visible"===getComputedStyle(qe).visibility}isTabbable(qe){if(!this._platform.isBrowser)return!1;const Dt=function Rt(rn){try{return rn.frameElement}catch{return null}}(function zt(rn){return rn.ownerDocument&&rn.ownerDocument.defaultView||window}(qe));if(Dt&&(-1===En(Dt)||!this.isVisible(Dt)))return!1;let Wt=qe.nodeName.toLowerCase(),Hn=En(qe);return qe.hasAttribute("contenteditable")?-1!==Hn:!("iframe"===Wt||"object"===Wt||this._platform.WEBKIT&&this._platform.IOS&&!function Kt(rn){let St=rn.nodeName.toLowerCase(),qe="input"===St&&rn.type;return"text"===qe||"password"===qe||"select"===St||"textarea"===St}(qe))&&("audio"===Wt?!!qe.hasAttribute("controls")&&-1!==Hn:"video"===Wt?-1!==Hn&&(null!==Hn||this._platform.FIREFOX||qe.hasAttribute("controls")):qe.tabIndex>=0)}isFocusable(qe,Dt){return function At(rn){return!function Kn(rn){return function Qt(rn){return"input"==rn.nodeName.toLowerCase()}(rn)&&"hidden"==rn.type}(rn)&&(function fn(rn){let St=rn.nodeName.toLowerCase();return"input"===St||"select"===St||"button"===St||"textarea"===St}(rn)||function Nt(rn){return function an(rn){return"a"==rn.nodeName.toLowerCase()}(rn)&&rn.hasAttribute("href")}(rn)||rn.hasAttribute("contenteditable")||Xn(rn))}(qe)&&!this.isDisabled(qe)&&(Dt?.ignoreVisibility||this.isVisible(qe))}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})();function Xn(rn){if(!rn.hasAttribute("tabindex")||void 0===rn.tabIndex)return!1;let St=rn.getAttribute("tabindex");return!(!St||isNaN(parseInt(St,10)))}function En(rn){if(!Xn(rn))return null;const St=parseInt(rn.getAttribute("tabindex")||"",10);return isNaN(St)?-1:St}class xn{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(St){this._enabled=St,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(St,this._startAnchor),this._toggleAnchorTabIndex(St,this._endAnchor))}_enabled=!0;constructor(St,qe,Dt,Wt,Hn=!1,fr){this._element=St,this._checker=qe,this._ngZone=Dt,this._document=Wt,this._injector=fr,Hn||this.attachAnchors()}destroy(){const St=this._startAnchor,qe=this._endAnchor;St&&(St.removeEventListener("focus",this.startAnchorListener),St.remove()),qe&&(qe.removeEventListener("focus",this.endAnchorListener),qe.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(St){return new Promise(qe=>{this._executeOnStable(()=>qe(this.focusInitialElement(St)))})}focusFirstTabbableElementWhenReady(St){return new Promise(qe=>{this._executeOnStable(()=>qe(this.focusFirstTabbableElement(St)))})}focusLastTabbableElementWhenReady(St){return new Promise(qe=>{this._executeOnStable(()=>qe(this.focusLastTabbableElement(St)))})}_getRegionBoundary(St){const qe=this._element.querySelectorAll(`[cdk-focus-region-${St}], [cdkFocusRegion${St}], [cdk-focus-${St}]`);return"start"==St?qe.length?qe[0]:this._getFirstTabbableElement(this._element):qe.length?qe[qe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(St){const qe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(qe){if(!this._checker.isFocusable(qe)){const Dt=this._getFirstTabbableElement(qe);return Dt?.focus(St),!!Dt}return qe.focus(St),!0}return this.focusFirstTabbableElement(St)}focusFirstTabbableElement(St){const qe=this._getRegionBoundary("start");return qe&&qe.focus(St),!!qe}focusLastTabbableElement(St){const qe=this._getRegionBoundary("end");return qe&&qe.focus(St),!!qe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(St){if(this._checker.isFocusable(St)&&this._checker.isTabbable(St))return St;const qe=St.children;for(let Dt=0;Dt=0;Dt--){const Wt=qe[Dt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(qe[Dt]):null;if(Wt)return Wt}return null}_createAnchor(){const St=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,St),St.classList.add("cdk-visually-hidden"),St.classList.add("cdk-focus-trap-anchor"),St.setAttribute("aria-hidden","true"),St}_toggleAnchorTabIndex(St,qe){St?qe.setAttribute("tabindex","0"):qe.removeAttribute("tabindex")}toggleAnchors(St){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(St,this._startAnchor),this._toggleAnchorTabIndex(St,this._endAnchor))}_executeOnStable(St){this._injector?(0,a.mal)(St,{injector:this._injector}):setTimeout(St)}}let Yn=(()=>{class rn{_checker=(0,a.WQX)(Ze);_ngZone=(0,a.WQX)(a.SKi);_document=(0,a.WQX)(i.qQ);_injector=(0,a.WQX)(a.zZn);constructor(){(0,a.WQX)(y.l).load(y.Y)}create(qe,Dt=!1){return new xn(qe,this._checker,this._ngZone,this._document,Dt,this._injector)}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})();function it(rn){return 0===rn.buttons||0===rn.detail}function ot(rn){const St=rn.touches&&rn.touches[0]||rn.changedTouches&&rn.changedTouches[0];return!(!St||-1!==St.identifier||null!=St.radiusX&&1!==St.radiusX||null!=St.radiusY&&1!==St.radiusY)}const Tt=new a.nKC("cdk-input-modality-detector-options"),In={ignoreKeys:[w.A$,w.W3,w.eg,w.Ge,w.FX]},dn=(0,c.BQ)({passive:!0,capture:!0});let Pn=(()=>{class rn{_platform=(0,a.WQX)(c.OD);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new I.t(null);_options;_lastTouchMs=0;_onKeydown=qe=>{this._options?.ignoreKeys?.some(Dt=>Dt===qe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,c.Fb)(qe))};_onMousedown=qe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(it(qe)?"keyboard":"mouse"),this._mostRecentTarget=(0,c.Fb)(qe))};_onTouchstart=qe=>{ot(qe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,c.Fb)(qe))};constructor(){const qe=(0,a.WQX)(a.SKi),Dt=(0,a.WQX)(i.qQ),Wt=(0,a.WQX)(Tt,{optional:!0});this._options={...In,...Wt},this.modalityDetected=this._modality.pipe((0,me.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,pe.F)()),this._platform.isBrowser&&qe.runOutsideAngular(()=>{Dt.addEventListener("keydown",this._onKeydown,dn),Dt.addEventListener("mousedown",this._onMousedown,dn),Dt.addEventListener("touchstart",this._onTouchstart,dn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,dn),document.removeEventListener("mousedown",this._onMousedown,dn),document.removeEventListener("touchstart",this._onTouchstart,dn))}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})();const Fn=new a.nKC("liveAnnouncerElement",{providedIn:"root",factory:function Bn(){return null}}),cr=new a.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Jr=0,Xr=(()=>{class rn{_ngZone=(0,a.WQX)(a.SKi);_defaultOptions=(0,a.WQX)(cr,{optional:!0});_liveElement;_document=(0,a.WQX)(i.qQ);_previousTimeout;_currentPromise;_currentResolve;constructor(){const qe=(0,a.WQX)(Fn,{optional:!0});this._liveElement=qe||this._createLiveElement()}announce(qe,...Dt){const Wt=this._defaultOptions;let Hn,fr;return 1===Dt.length&&"number"==typeof Dt[0]?fr=Dt[0]:[Hn,fr]=Dt,this.clear(),clearTimeout(this._previousTimeout),Hn||(Hn=Wt&&Wt.politeness?Wt.politeness:"polite"),null==fr&&Wt&&(fr=Wt.duration),this._liveElement.setAttribute("aria-live",Hn),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(uo=>this._currentResolve=uo)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=qe,"number"==typeof fr&&(this._previousTimeout=setTimeout(()=>this.clear(),fr)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const qe="cdk-live-announcer-element",Dt=this._document.getElementsByClassName(qe),Wt=this._document.createElement("div");for(let Hn=0;Hn .cdk-overlay-container [aria-modal="true"]');for(let Wt=0;Wt{class rn{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(c.OD);_inputModalityDetector=(0,a.WQX)(Pn);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=(0,a.WQX)(i.qQ,{optional:!0});_stopInputModalityDetector=new C.B;constructor(){const qe=(0,a.WQX)(Ee,{optional:!0});this._detectionMode=qe?.detectionMode||Bt.IMMEDIATE}_rootNodeFocusAndBlurListener=qe=>{for(let Wt=(0,c.Fb)(qe);Wt;Wt=Wt.parentElement)"focus"===qe.type?this._onFocus(qe,Wt):this._onBlur(qe,Wt)};monitor(qe,Dt=!1){const Wt=(0,Me.i8)(qe);if(!this._platform.isBrowser||1!==Wt.nodeType)return(0,A.of)();const Hn=(0,c.KT)(Wt)||this._getDocument(),fr=this._elementInfo.get(Wt);if(fr)return Dt&&(fr.checkChildren=!0),fr.subject;const uo={checkChildren:Dt,subject:new C.B,rootNode:Hn};return this._elementInfo.set(Wt,uo),this._registerGlobalListeners(uo),uo.subject}stopMonitoring(qe){const Dt=(0,Me.i8)(qe),Wt=this._elementInfo.get(Dt);Wt&&(Wt.subject.complete(),this._setClasses(Dt),this._elementInfo.delete(Dt),this._removeGlobalListeners(Wt))}focusVia(qe,Dt,Wt){const Hn=(0,Me.i8)(qe);Hn===this._getDocument().activeElement?this._getClosestElementsInfo(Hn).forEach(([uo,Oi])=>this._originChanged(uo,Dt,Oi)):(this._setOrigin(Dt),"function"==typeof Hn.focus&&Hn.focus(Wt))}ngOnDestroy(){this._elementInfo.forEach((qe,Dt)=>this.stopMonitoring(Dt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(qe){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(qe)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:qe&&this._isLastInteractionFromInputLabel(qe)?"mouse":"program"}_shouldBeAttributedToTouch(qe){return this._detectionMode===Bt.EVENTUAL||!!qe?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(qe,Dt){qe.classList.toggle("cdk-focused",!!Dt),qe.classList.toggle("cdk-touch-focused","touch"===Dt),qe.classList.toggle("cdk-keyboard-focused","keyboard"===Dt),qe.classList.toggle("cdk-mouse-focused","mouse"===Dt),qe.classList.toggle("cdk-program-focused","program"===Dt)}_setOrigin(qe,Dt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=qe,this._originFromTouchInteraction="touch"===qe&&Dt,this._detectionMode===Bt.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(qe,Dt){const Wt=this._elementInfo.get(Dt),Hn=(0,c.Fb)(qe);!Wt||!Wt.checkChildren&&Dt!==Hn||this._originChanged(Dt,this._getFocusOrigin(Hn),Wt)}_onBlur(qe,Dt){const Wt=this._elementInfo.get(Dt);!Wt||Wt.checkChildren&&qe.relatedTarget instanceof Node&&Dt.contains(qe.relatedTarget)||(this._setClasses(Dt),this._emitOrigin(Wt,null))}_emitOrigin(qe,Dt){qe.subject.observers.length&&this._ngZone.run(()=>qe.subject.next(Dt))}_registerGlobalListeners(qe){if(!this._platform.isBrowser)return;const Dt=qe.rootNode,Wt=this._rootNodeFocusListenerCount.get(Dt)||0;Wt||this._ngZone.runOutsideAngular(()=>{Dt.addEventListener("focus",this._rootNodeFocusAndBlurListener,lt),Dt.addEventListener("blur",this._rootNodeFocusAndBlurListener,lt)}),this._rootNodeFocusListenerCount.set(Dt,Wt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Te.Q)(this._stopInputModalityDetector)).subscribe(Hn=>{this._setOrigin(Hn,!0)}))}_removeGlobalListeners(qe){const Dt=qe.rootNode;if(this._rootNodeFocusListenerCount.has(Dt)){const Wt=this._rootNodeFocusListenerCount.get(Dt);Wt>1?this._rootNodeFocusListenerCount.set(Dt,Wt-1):(Dt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,lt),Dt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,lt),this._rootNodeFocusListenerCount.delete(Dt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(qe,Dt,Wt){this._setClasses(qe,Dt),this._emitOrigin(Wt,Dt),this._lastFocusOrigin=Dt}_getClosestElementsInfo(qe){const Dt=[];return this._elementInfo.forEach((Wt,Hn)=>{(Hn===qe||Wt.checkChildren&&Hn.contains(qe))&&Dt.push([Hn,Wt])}),Dt}_isLastInteractionFromInputLabel(qe){const{_mostRecentTarget:Dt,mostRecentModality:Wt}=this._inputModalityDetector;if("mouse"!==Wt||!Dt||Dt===qe||"INPUT"!==qe.nodeName&&"TEXTAREA"!==qe.nodeName||qe.disabled)return!1;const Hn=qe.labels;if(Hn)for(let fr=0;fr{class rn{_platform=(0,a.WQX)(c.OD);_hasCheckedHighContrastMode;_document=(0,a.WQX)(i.qQ);_breakpointSubscription;constructor(){this._breakpointSubscription=(0,a.WQX)(Ce.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return ft.NONE;const qe=this._document.createElement("div");qe.style.backgroundColor="rgb(1,2,3)",qe.style.position="absolute",this._document.body.appendChild(qe);const Dt=this._document.defaultView||window,Wt=Dt&&Dt.getComputedStyle?Dt.getComputedStyle(qe):null,Hn=(Wt&&Wt.backgroundColor||"").replace(/ /g,"");switch(qe.remove(),Hn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return ft.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return ft.BLACK_ON_WHITE}return ft.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const qe=this._document.body.classList;qe.remove(or,Pt,mn),this._hasCheckedHighContrastMode=!0;const Dt=this.getHighContrastMode();Dt===ft.BLACK_ON_WHITE?qe.add(or,Pt):Dt===ft.WHITE_ON_BLACK&&qe.add(or,mn)}}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})(),ii=(()=>{class rn{constructor(){(0,a.WQX)(Mr)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275mod=a.$C({type:rn});static \u0275inj=a.G2t({imports:[Re.w5]})}return rn})();const ci={};let Ai=(()=>{class rn{_appId=(0,a.WQX)(a.sZ2);getId(qe){return"ng"!==this._appId&&(qe+=this._appId),ci.hasOwnProperty(qe)||(ci[qe]=0),`${qe}${ci[qe]++}`}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})()},8203:(o,s,r)=>{"use strict";r.d(s,{dS:()=>T,jI:()=>A});var i=r(4438),a=r(177);const c=new i.nKC("cdk-dir-doc",{providedIn:"root",factory:function y(){return(0,i.WQX)(a.qQ)}}),w=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let T=(()=>{class I{value="ltr";change=new i.bkB;constructor(){const K=(0,i.WQX)(c,{optional:!0});K&&(this.value=function C(I){const N=I?.toLowerCase()||"";return"auto"===N&&typeof navigator<"u"&&navigator?.language?w.test(navigator.language)?"rtl":"ltr":"rtl"===N?"rtl":"ltr"}((K.body?K.body.dir:null)||(K.documentElement?K.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(Z){return new(Z||I)};static \u0275prov=i.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})(),A=(()=>{class I{static \u0275fac=function(Z){return new(Z||I)};static \u0275mod=i.$C({type:I});static \u0275inj=i.G2t({})}return I})()},4085:(o,s,r)=>{"use strict";r.d(s,{FG:()=>w,OE:()=>c,a1:()=>C,he:()=>a,i8:()=>T});var i=r(4438);function a(A){return null!=A&&"false"!=`${A}`}function c(A,I=0){return function y(A){return!isNaN(parseFloat(A))&&!isNaN(Number(A))}(A)?Number(A):2===arguments.length?I:0}function w(A){return Array.isArray(A)?A:[A]}function C(A){return null==A?"":"string"==typeof A?A:`${A}px`}function T(A){return A instanceof i.aKT?A.nativeElement:A}},7336:(o,s,r)=>{"use strict";r.d(s,{A:()=>Fe,A$:()=>S,FX:()=>C,Fm:()=>w,Ge:()=>k,Kp:()=>be,LE:()=>xe,UQ:()=>pe,W3:()=>T,Z:()=>B,_f:()=>N,bn:()=>$n,dB:()=>ne,eg:()=>et,f2:()=>Ie,i7:()=>Te,n6:()=>Re,rp:()=>Oe,t6:()=>K,w_:()=>Z,wn:()=>c,yZ:()=>me});const c=9,w=13,C=16,T=17,S=18,N=27,K=32,Z=33,ne=34,be=35,me=36,pe=37,Te=38,xe=39,Re=40,Ie=48,$n=57,Fe=65,B=90,k=91,et=224;function Oe(pt,...$t){return $t.length?$t.some(Mt=>pt[Mt]):pt.altKey||pt.shiftKey||pt.ctrlKey||pt.metaKey}},9327:(o,s,r)=>{"use strict";r.d(s,{QP:()=>Re,Rp:()=>Ce});var i=r(4438),a=r(4085),c=r(1413),y=r(4572),w=r(8793),C=r(1985),T=r(6697),S=r(7626),A=r(152),I=r(6354),N=r(9172),K=r(6977),Z=r(6860);const be=new Set;let me,pe=(()=>{class le{_platform=(0,i.WQX)(Z.OD);_nonce=(0,i.WQX)(i.BIS,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):xe}matchMedia(Ie){return(this._platform.WEBKIT||this._platform.BLINK)&&function Te(le,ae){if(!be.has(le))try{me||(me=document.createElement("style"),ae&&me.setAttribute("nonce",ae),me.setAttribute("type","text/css"),document.head.appendChild(me)),me.sheet&&(me.sheet.insertRule(`@media ${le} {body{ }}`,0),be.add(le))}catch(Ie){console.error(Ie)}}(Ie,this._nonce),this._matchMedia(Ie)}static \u0275fac=function($e){return new($e||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();function xe(le){return{matches:"all"===le||""===le,media:le,addListener:()=>{},removeListener:()=>{}}}let Re=(()=>{class le{_mediaMatcher=(0,i.WQX)(pe);_zone=(0,i.WQX)(i.SKi);_queries=new Map;_destroySubject=new c.B;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Ie){return Me((0,a.FG)(Ie)).some(st=>this._registerQuery(st).mql.matches)}observe(Ie){const st=Me((0,a.FG)(Ie)).map(vt=>this._registerQuery(vt).observable);let ht=(0,y.z)(st);return ht=(0,w.x)(ht.pipe((0,T.s)(1)),ht.pipe((0,S.i)(1),(0,A.B)(0))),ht.pipe((0,I.T)(vt=>{const at={matches:!1,breakpoints:{}};return vt.forEach(({matches:Xt,query:ln})=>{at.matches=at.matches||Xt,at.breakpoints[ln]=Xt}),at}))}_registerQuery(Ie){if(this._queries.has(Ie))return this._queries.get(Ie);const $e=this._mediaMatcher.matchMedia(Ie),ht={observable:new C.c(vt=>{const at=Xt=>this._zone.run(()=>vt.next(Xt));return $e.addListener(at),()=>{$e.removeListener(at)}}).pipe((0,N.Z)($e),(0,I.T)(({matches:vt})=>({query:Ie,matches:vt})),(0,K.Q)(this._destroySubject)),mql:$e};return this._queries.set(Ie,ht),ht}static \u0275fac=function($e){return new($e||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();function Me(le){return le.map(ae=>ae.split(",")).reduce((ae,Ie)=>ae.concat(Ie)).map(ae=>ae.trim())}const Ce={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:(o,s,r)=>{"use strict";r.d(s,{w5:()=>C});var i=r(4438);let c=(()=>{class T{create(A){return typeof MutationObserver>"u"?null:new MutationObserver(A)}static \u0275fac=function(I){return new(I||T)};static \u0275prov=i.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})(),C=(()=>{class T{static \u0275fac=function(I){return new(I||T)};static \u0275mod=i.$C({type:T});static \u0275inj=i.G2t({providers:[c]})}return T})()},6969:(o,s,r)=>{"use strict";r.d(s,{WB:()=>Kt,$Q:()=>En,hJ:()=>Qt,rR:()=>ht,Sf:()=>Fe,z_:()=>xn,yY:()=>Ft,Tv:()=>st});var i=r(5542),a=r(177),c=r(4438),y=r(4085),w=r(6860),C=r(5964),T=r(6977),S=r(9974),A=r(4360),N=r(8203),K=r(6939),Z=r(9888),ne=r(9046),be=r(1413),me=r(8359),pe=r(7786),Te=r(7336);const xe=(0,w.CZ)();class Re{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(ke,B){this._viewportRuler=ke,this._document=B}attach(){}enable(){if(this._canBeEnabled()){const ke=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ke.style.left||"",this._previousHTMLStyles.top=ke.style.top||"",ke.style.left=(0,y.a1)(-this._previousScrollPosition.left),ke.style.top=(0,y.a1)(-this._previousScrollPosition.top),ke.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ke=this._document.documentElement,k=ke.style,j=this._document.body.style,De=k.scrollBehavior||"",it=j.scrollBehavior||"";this._isEnabled=!1,k.left=this._previousHTMLStyles.left,k.top=this._previousHTMLStyles.top,ke.classList.remove("cdk-global-scrollblock"),xe&&(k.scrollBehavior=j.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),xe&&(k.scrollBehavior=De,j.scrollBehavior=it)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const B=this._document.body,k=this._viewportRuler.getViewportSize();return B.scrollHeight>k.height||B.scrollWidth>k.width}}class Ce{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(ke,B,k,j){this._scrollDispatcher=ke,this._ngZone=B,this._viewportRuler=k,this._config=j}attach(ke){this._overlayRef=ke}enable(){if(this._scrollSubscription)return;const ke=this._scrollDispatcher.scrolled(0).pipe((0,C.p)(B=>!B||!this._overlayRef.overlayElement.contains(B.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ke.subscribe(()=>{const B=this._viewportRuler.getViewportScrollPosition().top;Math.abs(B-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ke.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class le{enable(){}disable(){}attach(){}}function ae(tt,ke){return ke.some(B=>tt.bottomB.bottom||tt.rightB.right)}function Ie(tt,ke){return ke.some(B=>tt.topB.bottom||tt.leftB.right)}class $e{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(ke,B,k,j){this._scrollDispatcher=ke,this._viewportRuler=B,this._ngZone=k,this._config=j}attach(ke){this._overlayRef=ke}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 B=this._overlayRef.overlayElement.getBoundingClientRect(),{width:k,height:j}=this._viewportRuler.getViewportSize();ae(B,[{width:k,height:j,bottom:j,right:k,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 st=(()=>{class tt{_scrollDispatcher=(0,c.WQX)(i.R);_viewportRuler=(0,c.WQX)(i.Xj);_ngZone=(0,c.WQX)(c.SKi);_document=(0,c.WQX)(a.qQ);constructor(){}noop=()=>new le;close=B=>new Ce(this._scrollDispatcher,this._ngZone,this._viewportRuler,B);block=()=>new Re(this._viewportRuler,this._document);reposition=B=>new $e(this._scrollDispatcher,this._viewportRuler,this._ngZone,B);static \u0275fac=function(k){return new(k||tt)};static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})();class ht{positionStrategy;scrollStrategy=new le;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(ke){if(ke){const B=Object.keys(ke);for(const k of B)void 0!==ke[k]&&(this[k]=ke[k])}}}class Xt{connectionPair;scrollableViewProperties;constructor(ke,B){this.connectionPair=ke,this.scrollableViewProperties=B}}let $n=(()=>{class tt{_attachedOverlays=[];_document=(0,c.WQX)(a.qQ);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(B){this.remove(B),this._attachedOverlays.push(B)}remove(B){const k=this._attachedOverlays.indexOf(B);k>-1&&this._attachedOverlays.splice(k,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})(),bn=(()=>{class tt extends $n{_ngZone=(0,c.WQX)(c.SKi,{optional:!0});add(B){super.add(B),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}_keydownListener=B=>{const k=this._attachedOverlays;for(let j=k.length-1;j>-1;j--)if(k[j]._keydownEvents.observers.length>0){const De=k[j]._keydownEvents;this._ngZone?this._ngZone.run(()=>De.next(B)):De.next(B);break}};static \u0275fac=(()=>{let B;return function(j){return(B||(B=c.xGo(tt)))(j||tt)}})();static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})(),Qe=(()=>{class tt extends $n{_platform=(0,c.WQX)(w.OD);_ngZone=(0,c.WQX)(c.SKi,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(B){if(super.add(B),!this._isAttached){const k=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(k)):this._addEventListeners(k),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=k.style.cursor,k.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const B=this._document.body;B.removeEventListener("pointerdown",this._pointerDownListener,!0),B.removeEventListener("click",this._clickListener,!0),B.removeEventListener("auxclick",this._clickListener,!0),B.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(B.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(B){B.addEventListener("pointerdown",this._pointerDownListener,!0),B.addEventListener("click",this._clickListener,!0),B.addEventListener("auxclick",this._clickListener,!0),B.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=B=>{this._pointerDownEventTarget=(0,w.Fb)(B)};_clickListener=B=>{const k=(0,w.Fb)(B),j="click"===B.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:k;this._pointerDownEventTarget=null;const De=this._attachedOverlays.slice();for(let it=De.length-1;it>-1;it--){const ot=De[it];if(ot._outsidePointerEvents.observers.length<1||!ot.hasAttached())continue;if(bt(ot.overlayElement,k)||bt(ot.overlayElement,j))break;const Tt=ot._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Tt.next(B)):Tt.next(B)}};static \u0275fac=(()=>{let B;return function(j){return(B||(B=c.xGo(tt)))(j||tt)}})();static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})();function bt(tt,ke){const B=typeof ShadowRoot<"u"&&ShadowRoot;let k=ke;for(;k;){if(k===tt)return!0;k=B&&k instanceof ShadowRoot?k.host:k.parentNode}return!1}let Ge=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275cmp=c.VBU({type:tt,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(k,j){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return tt})(),Fe=(()=>{class tt{_platform=(0,c.WQX)(w.OD);_containerElement;_document=(0,c.WQX)(a.qQ);_styleLoader=(0,c.WQX)(ne.l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const B="cdk-overlay-container";if(this._platform.isBrowser||(0,w.v8)()){const j=this._document.querySelectorAll(`.${B}[platform="server"], .${B}[platform="test"]`);for(let De=0;Dethis._backdropClick.next(ke);_backdropTransitionendHandler=ke=>{this._disposeBackdrop(ke.target)};_previousHostParent;_keydownEvents=new be.B;_outsidePointerEvents=new be.B;_renders=new be.B;_afterRenderRef;_afterNextRenderRef;constructor(ke,B,k,j,De,it,ot,Tt,In,Vt=!1,dn){this._portalOutlet=ke,this._host=B,this._pane=k,this._config=j,this._ngZone=De,this._keyboardDispatcher=it,this._document=ot,this._location=Tt,this._outsideClickDispatcher=In,this._animationsDisabled=Vt,this._injector=dn,j.scrollStrategy&&(this._scrollStrategy=j.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=j.positionStrategy,this._afterRenderRef=(0,c.O8t)(()=>(0,c.Tzd)(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ke){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const B=this._portalOutlet.attach(ke);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,c.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof B?.onDestroy&&B.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),B}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ke=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ke}dispose(){const ke=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,ke&&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(ke){ke!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ke,this.hasAttached()&&(ke.attach(this),this.updatePosition()))}updateSize(ke){this._config={...this._config,...ke},this._updateElementSize()}setDirection(ke){this._config={...this._config,direction:ke},this._updateElementDirection()}addPanelClass(ke){this._pane&&this._toggleClasses(this._pane,ke,!0)}removePanelClass(ke){this._pane&&this._toggleClasses(this._pane,ke,!1)}getDirection(){const ke=this._config.direction;return ke?"string"==typeof ke?ke:ke.value:"ltr"}updateScrollStrategy(ke){ke!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ke,this.hasAttached()&&(ke.attach(this),ke.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ke=this._pane.style;ke.width=(0,y.a1)(this._config.width),ke.height=(0,y.a1)(this._config.height),ke.minWidth=(0,y.a1)(this._config.minWidth),ke.minHeight=(0,y.a1)(this._config.minHeight),ke.maxWidth=(0,y.a1)(this._config.maxWidth),ke.maxHeight=(0,y.a1)(this._config.maxHeight)}_togglePointerEvents(ke){this._pane.style.pointerEvents=ke?"":"none"}_attachBackdrop(){const ke="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(ke)})}):this._backdropElement.classList.add(ke)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ke=this._backdropElement;if(ke){if(this._animationsDisabled)return void this._disposeBackdrop(ke);ke.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ke.addEventListener("transitionend",this._backdropTransitionendHandler)}),ke.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ke)},500))}}_toggleClasses(ke,B,k){const j=(0,y.FG)(B||[]).filter(De=>!!De);j.length&&(k?ke.classList.add(...j):ke.classList.remove(...j))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const ke=this._renders.pipe((0,T.Q)((0,pe.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()),ke.unsubscribe())})})}_disposeScrollStrategy(){const ke=this._scrollStrategy;ke&&(ke.disable(),ke.detach&&ke.detach())}_disposeBackdrop(ke){ke&&(ke.removeEventListener("click",this._backdropClickHandler),ke.removeEventListener("transitionend",this._backdropTransitionendHandler),ke.remove(),this._backdropElement===ke&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const ze="cdk-overlay-connected-position-bounding-box",dt=/([A-Za-z%]+)$/;class Ke{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new be.B;_resizeSubscription=me.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(ke,B,k,j,De){this._viewportRuler=B,this._document=k,this._platform=j,this._overlayContainer=De,this.setOrigin(ke)}attach(ke){this._validatePositions(),ke.hostElement.classList.add(ze),this._overlayRef=ke,this._boundingBox=ke.hostElement,this._pane=ke.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 ke=this._originRect,B=this._overlayRect,k=this._viewportRect,j=this._containerRect,De=[];let it;for(let ot of this._preferredPositions){let Tt=this._getOriginPoint(ke,j,ot),In=this._getOverlayPoint(Tt,B,ot),Vt=this._getOverlayFit(In,B,k,ot);if(Vt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ot,Tt);this._canFitWithFlexibleDimensions(Vt,In,k)?De.push({position:ot,origin:Tt,overlayRect:B,boundingBoxRect:this._calculateBoundingBoxRect(Tt,ot)}):(!it||it.overlayFit.visibleAreaTt&&(Tt=Vt,ot=In)}return this._isPushed=!1,void this._applyPosition(ot.position,ot.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(it.position,it.originPoint);this._applyPosition(it.position,it.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&He(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ze),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ke=this._lastPosition;if(ke){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const B=this._getOriginPoint(this._originRect,this._containerRect,ke);this._applyPosition(ke,B)}else this.apply()}withScrollableContainers(ke){return this._scrollables=ke,this}withPositions(ke){return this._preferredPositions=ke,-1===ke.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ke){return this._viewportMargin=ke,this}withFlexibleDimensions(ke=!0){return this._hasFlexibleDimensions=ke,this}withGrowAfterOpen(ke=!0){return this._growAfterOpen=ke,this}withPush(ke=!0){return this._canPush=ke,this}withLockedPosition(ke=!0){return this._positionLocked=ke,this}setOrigin(ke){return this._origin=ke,this}withDefaultOffsetX(ke){return this._offsetX=ke,this}withDefaultOffsetY(ke){return this._offsetY=ke,this}withTransformOriginOn(ke){return this._transformOriginSelector=ke,this}_getOriginPoint(ke,B,k){let j,De;if("center"==k.originX)j=ke.left+ke.width/2;else{const it=this._isRtl()?ke.right:ke.left,ot=this._isRtl()?ke.left:ke.right;j="start"==k.originX?it:ot}return B.left<0&&(j-=B.left),De="center"==k.originY?ke.top+ke.height/2:"top"==k.originY?ke.top:ke.bottom,B.top<0&&(De-=B.top),{x:j,y:De}}_getOverlayPoint(ke,B,k){let j,De;return j="center"==k.overlayX?-B.width/2:"start"===k.overlayX?this._isRtl()?-B.width:0:this._isRtl()?0:-B.width,De="center"==k.overlayY?-B.height/2:"top"==k.overlayY?0:-B.height,{x:ke.x+j,y:ke.y+De}}_getOverlayFit(ke,B,k,j){const De=se(B);let{x:it,y:ot}=ke,Tt=this._getOffset(j,"x"),In=this._getOffset(j,"y");Tt&&(it+=Tt),In&&(ot+=In);let Pn=0-ot,Fn=ot+De.height-k.height,Bn=this._subtractOverflows(De.width,0-it,it+De.width-k.width),cr=this._subtractOverflows(De.height,Pn,Fn),Jr=Bn*cr;return{visibleArea:Jr,isCompletelyWithinViewport:De.width*De.height===Jr,fitsInViewportVertically:cr===De.height,fitsInViewportHorizontally:Bn==De.width}}_canFitWithFlexibleDimensions(ke,B,k){if(this._hasFlexibleDimensions){const j=k.bottom-B.y,De=k.right-B.x,it=mt(this._overlayRef.getConfig().minHeight),ot=mt(this._overlayRef.getConfig().minWidth);return(ke.fitsInViewportVertically||null!=it&&it<=j)&&(ke.fitsInViewportHorizontally||null!=ot&&ot<=De)}return!1}_pushOverlayOnScreen(ke,B,k){if(this._previousPushAmount&&this._positionLocked)return{x:ke.x+this._previousPushAmount.x,y:ke.y+this._previousPushAmount.y};const j=se(B),De=this._viewportRect,it=Math.max(ke.x+j.width-De.width,0),ot=Math.max(ke.y+j.height-De.height,0),Tt=Math.max(De.top-k.top-ke.y,0),In=Math.max(De.left-k.left-ke.x,0);let Vt=0,dn=0;return Vt=j.width<=De.width?In||-it:ke.xBn&&!this._isInitialRender&&!this._growAfterOpen&&(it=ke.y-Bn/2)}if("end"===B.overlayX&&!j||"start"===B.overlayX&&j)Pn=k.width-ke.x+2*this._viewportMargin,Vt=ke.x-this._viewportMargin;else if("start"===B.overlayX&&!j||"end"===B.overlayX&&j)dn=ke.x,Vt=k.right-ke.x;else{const Fn=Math.min(k.right-ke.x+k.left,ke.x),Bn=this._lastBoundingBoxSize.width;Vt=2*Fn,dn=ke.x-Fn,Vt>Bn&&!this._isInitialRender&&!this._growAfterOpen&&(dn=ke.x-Bn/2)}return{top:it,left:dn,bottom:ot,right:Pn,width:Vt,height:De}}_setBoundingBoxStyles(ke,B){const k=this._calculateBoundingBoxRect(ke,B);!this._isInitialRender&&!this._growAfterOpen&&(k.height=Math.min(k.height,this._lastBoundingBoxSize.height),k.width=Math.min(k.width,this._lastBoundingBoxSize.width));const j={};if(this._hasExactPosition())j.top=j.left="0",j.bottom=j.right=j.maxHeight=j.maxWidth="",j.width=j.height="100%";else{const De=this._overlayRef.getConfig().maxHeight,it=this._overlayRef.getConfig().maxWidth;j.height=(0,y.a1)(k.height),j.top=(0,y.a1)(k.top),j.bottom=(0,y.a1)(k.bottom),j.width=(0,y.a1)(k.width),j.left=(0,y.a1)(k.left),j.right=(0,y.a1)(k.right),j.alignItems="center"===B.overlayX?"center":"end"===B.overlayX?"flex-end":"flex-start",j.justifyContent="center"===B.overlayY?"center":"bottom"===B.overlayY?"flex-end":"flex-start",De&&(j.maxHeight=(0,y.a1)(De)),it&&(j.maxWidth=(0,y.a1)(it))}this._lastBoundingBoxSize=k,He(this._boundingBox.style,j)}_resetBoundingBoxStyles(){He(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){He(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ke,B){const k={},j=this._hasExactPosition(),De=this._hasFlexibleDimensions,it=this._overlayRef.getConfig();if(j){const Vt=this._viewportRuler.getViewportScrollPosition();He(k,this._getExactOverlayY(B,ke,Vt)),He(k,this._getExactOverlayX(B,ke,Vt))}else k.position="static";let ot="",Tt=this._getOffset(B,"x"),In=this._getOffset(B,"y");Tt&&(ot+=`translateX(${Tt}px) `),In&&(ot+=`translateY(${In}px)`),k.transform=ot.trim(),it.maxHeight&&(j?k.maxHeight=(0,y.a1)(it.maxHeight):De&&(k.maxHeight="")),it.maxWidth&&(j?k.maxWidth=(0,y.a1)(it.maxWidth):De&&(k.maxWidth="")),He(this._pane.style,k)}_getExactOverlayY(ke,B,k){let j={top:"",bottom:""},De=this._getOverlayPoint(B,this._overlayRect,ke);return this._isPushed&&(De=this._pushOverlayOnScreen(De,this._overlayRect,k)),"bottom"===ke.overlayY?j.bottom=this._document.documentElement.clientHeight-(De.y+this._overlayRect.height)+"px":j.top=(0,y.a1)(De.y),j}_getExactOverlayX(ke,B,k){let it,j={left:"",right:""},De=this._getOverlayPoint(B,this._overlayRect,ke);return this._isPushed&&(De=this._pushOverlayOnScreen(De,this._overlayRect,k)),it=this._isRtl()?"end"===ke.overlayX?"left":"right":"end"===ke.overlayX?"right":"left","right"===it?j.right=this._document.documentElement.clientWidth-(De.x+this._overlayRect.width)+"px":j.left=(0,y.a1)(De.x),j}_getScrollVisibility(){const ke=this._getOriginRect(),B=this._pane.getBoundingClientRect(),k=this._scrollables.map(j=>j.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ie(ke,k),isOriginOutsideView:ae(ke,k),isOverlayClipped:Ie(B,k),isOverlayOutsideView:ae(B,k)}}_subtractOverflows(ke,...B){return B.reduce((k,j)=>k-Math.max(j,0),ke)}_getNarrowedViewportRect(){const ke=this._document.documentElement.clientWidth,B=this._document.documentElement.clientHeight,k=this._viewportRuler.getViewportScrollPosition();return{top:k.top+this._viewportMargin,left:k.left+this._viewportMargin,right:k.left+ke-this._viewportMargin,bottom:k.top+B-this._viewportMargin,width:ke-2*this._viewportMargin,height:B-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ke,B){return"x"===B?null==ke.offsetX?this._offsetX:ke.offsetX:null==ke.offsetY?this._offsetY:ke.offsetY}_validatePositions(){}_addPanelClasses(ke){this._pane&&(0,y.FG)(ke).forEach(B=>{""!==B&&-1===this._appliedPanelClasses.indexOf(B)&&(this._appliedPanelClasses.push(B),this._pane.classList.add(B))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ke=>{this._pane.classList.remove(ke)}),this._appliedPanelClasses=[])}_getOriginRect(){const ke=this._origin;if(ke instanceof c.aKT)return ke.nativeElement.getBoundingClientRect();if(ke instanceof Element)return ke.getBoundingClientRect();const B=ke.width||0,k=ke.height||0;return{top:ke.y,bottom:ke.y+k,left:ke.x,right:ke.x+B,height:k,width:B}}}function He(tt,ke){for(let B in ke)ke.hasOwnProperty(B)&&(tt[B]=ke[B]);return tt}function mt(tt){if("number"!=typeof tt&&null!=tt){const[ke,B]=tt.split(dt);return B&&"px"!==B?null:parseFloat(ke)}return tt||null}function se(tt){return{top:Math.floor(tt.top),right:Math.floor(tt.right),bottom:Math.floor(tt.bottom),left:Math.floor(tt.left),width:Math.floor(tt.width),height:Math.floor(tt.height)}}const fn="cdk-global-overlay-wrapper";class Kn{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(ke){const B=ke.getConfig();this._overlayRef=ke,this._width&&!B.width&&ke.updateSize({width:this._width}),this._height&&!B.height&&ke.updateSize({height:this._height}),ke.hostElement.classList.add(fn),this._isDisposed=!1}top(ke=""){return this._bottomOffset="",this._topOffset=ke,this._alignItems="flex-start",this}left(ke=""){return this._xOffset=ke,this._xPosition="left",this}bottom(ke=""){return this._topOffset="",this._bottomOffset=ke,this._alignItems="flex-end",this}right(ke=""){return this._xOffset=ke,this._xPosition="right",this}start(ke=""){return this._xOffset=ke,this._xPosition="start",this}end(ke=""){return this._xOffset=ke,this._xPosition="end",this}width(ke=""){return this._overlayRef?this._overlayRef.updateSize({width:ke}):this._width=ke,this}height(ke=""){return this._overlayRef?this._overlayRef.updateSize({height:ke}):this._height=ke,this}centerHorizontally(ke=""){return this.left(ke),this._xPosition="center",this}centerVertically(ke=""){return this.top(ke),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ke=this._overlayRef.overlayElement.style,B=this._overlayRef.hostElement.style,k=this._overlayRef.getConfig(),{width:j,height:De,maxWidth:it,maxHeight:ot}=k,Tt=!("100%"!==j&&"100vw"!==j||it&&"100%"!==it&&"100vw"!==it),In=!("100%"!==De&&"100vh"!==De||ot&&"100%"!==ot&&"100vh"!==ot),Vt=this._xPosition,dn=this._xOffset,Pn="rtl"===this._overlayRef.getConfig().direction;let Fn="",Bn="",cr="";Tt?cr="flex-start":"center"===Vt?(cr="center",Pn?Bn=dn:Fn=dn):Pn?"left"===Vt||"end"===Vt?(cr="flex-end",Fn=dn):("right"===Vt||"start"===Vt)&&(cr="flex-start",Bn=dn):"left"===Vt||"start"===Vt?(cr="flex-start",Fn=dn):("right"===Vt||"end"===Vt)&&(cr="flex-end",Bn=dn),ke.position=this._cssPosition,ke.marginLeft=Tt?"0":Fn,ke.marginTop=In?"0":this._topOffset,ke.marginBottom=this._bottomOffset,ke.marginRight=Tt?"0":Bn,B.justifyContent=cr,B.alignItems=In?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ke=this._overlayRef.overlayElement.style,B=this._overlayRef.hostElement,k=B.style;B.classList.remove(fn),k.justifyContent=k.alignItems=ke.marginTop=ke.marginBottom=ke.marginLeft=ke.marginRight=ke.position="",this._overlayRef=null,this._isDisposed=!0}}let Nt=(()=>{class tt{_viewportRuler=(0,c.WQX)(i.Xj);_document=(0,c.WQX)(a.qQ);_platform=(0,c.WQX)(w.OD);_overlayContainer=(0,c.WQX)(Fe);constructor(){}global(){return new Kn}flexibleConnectedTo(B){return new Ke(B,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})(),Qt=(()=>{class tt{scrollStrategies=(0,c.WQX)(st);_overlayContainer=(0,c.WQX)(Fe);_positionBuilder=(0,c.WQX)(Nt);_keyboardDispatcher=(0,c.WQX)(bn);_injector=(0,c.WQX)(c.zZn);_ngZone=(0,c.WQX)(c.SKi);_document=(0,c.WQX)(a.qQ);_directionality=(0,c.WQX)(N.dS);_location=(0,c.WQX)(a.aZ);_outsideClickDispatcher=(0,c.WQX)(Qe);_animationsModuleType=(0,c.WQX)(c.bc$,{optional:!0});_idGenerator=(0,c.WQX)(Z.g7);_appRef;_styleLoader=(0,c.WQX)(ne.l);constructor(){}create(B){this._styleLoader.load(Ge);const k=this._createHostElement(),j=this._createPaneElement(k),De=this._createPortalOutlet(j),it=new ht(B);return it.direction=it.direction||this._directionality.value,new Ft(De,k,j,it,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(c.uvJ))}position(){return this._positionBuilder}_createPaneElement(B){const k=this._document.createElement("div");return k.id=this._idGenerator.getId("cdk-overlay-"),k.classList.add("cdk-overlay-pane"),B.appendChild(k),k}_createHostElement(){const B=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(B),B}_createPortalOutlet(B){return this._appRef||(this._appRef=this._injector.get(c.o8S)),new K.aI(B,null,this._appRef,this._injector,this._document)}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})();const an=[{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"}],Xn=new c.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const tt=(0,c.WQX)(Qt);return()=>tt.scrollStrategies.reposition()}});let En=(()=>{class tt{elementRef=(0,c.WQX)(c.aKT);constructor(){}static \u0275fac=function(k){return new(k||tt)};static \u0275dir=c.FsC({type:tt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return tt})(),Kt=(()=>{class tt{_overlay=(0,c.WQX)(Qt);_dir=(0,c.WQX)(N.dS,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=me.yU.EMPTY;_attachSubscription=me.yU.EMPTY;_detachSubscription=me.yU.EMPTY;_positionSubscription=me.yU.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=(0,c.WQX)(Xn);_disposeOnNavigation=!1;_ngZone=(0,c.WQX)(c.SKi);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(B){this._offsetX=B,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(B){this._offsetY=B,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(B){this._disposeOnNavigation=B}backdropClick=new c.bkB;positionChange=new c.bkB;attach=new c.bkB;detach=new c.bkB;overlayKeydown=new c.bkB;overlayOutsideClick=new c.bkB;constructor(){const B=(0,c.WQX)(c.C4Q),k=(0,c.WQX)(c.c1b);this._templatePortal=new K.VA(B,k),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(B){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),B.origin&&this.open&&this._position.apply()),B.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=an);const B=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=B.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=B.detachments().subscribe(()=>this.detach.emit()),B.keydownEvents().subscribe(k=>{this.overlayKeydown.next(k),k.keyCode===Te._f&&!this.disableClose&&!(0,Te.rp)(k)&&(k.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(k=>{const j=this._getOriginElement(),De=(0,w.Fb)(k);(!j||j!==De&&!j.contains(De))&&this.overlayOutsideClick.next(k)})}_buildConfig(){const B=this._position=this.positionStrategy||this._createPositionStrategy(),k=new ht({direction:this._dir||"ltr",positionStrategy:B,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(k.width=this.width),(this.height||0===this.height)&&(k.height=this.height),(this.minWidth||0===this.minWidth)&&(k.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(k.minHeight=this.minHeight),this.backdropClass&&(k.backdropClass=this.backdropClass),this.panelClass&&(k.panelClass=this.panelClass),k}_updatePositionStrategy(B){const k=this.positions.map(j=>({originX:j.originX,originY:j.originY,overlayX:j.overlayX,overlayY:j.overlayY,offsetX:j.offsetX||this.offsetX,offsetY:j.offsetY||this.offsetY,panelClass:j.panelClass||void 0}));return B.setOrigin(this._getOrigin()).withPositions(k).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const B=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(B),B}_getOrigin(){return this.origin instanceof En?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof En?this.origin.elementRef.nativeElement:this.origin instanceof c.aKT?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(B=>{this.backdropClick.emit(B)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function I(tt,ke=!1){return(0,S.N)((B,k)=>{let j=0;B.subscribe((0,A._)(k,De=>{const it=tt(De,j++);(it||ke)&&k.next(De),!it&&k.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(B=>{this._ngZone.run(()=>this.positionChange.emit(B)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(k){return new(k||tt)};static \u0275dir=c.FsC({type:tt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",c.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",c.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",c.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",c.L39],push:[2,"cdkConnectedOverlayPush","push",c.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",c.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[c.GFd,c.OA$]})}return tt})();const zt={provide:Xn,deps:[Qt],useFactory:function At(tt){return()=>tt.scrollStrategies.reposition()}};let xn=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275mod=c.$C({type:tt});static \u0275inj=c.G2t({providers:[Qt,zt],imports:[N.jI,K.jc,i.E9,i.E9]})}return tt})()},6860:(o,s,r)=>{"use strict";r.d(s,{BD:()=>me,BQ:()=>N,CZ:()=>be,Fb:()=>Me,KT:()=>xe,MU:()=>S,OD:()=>y,r5:()=>K,v8:()=>Ce,vc:()=>Re});var i=r(4438),a=r(177);let c;try{c=typeof Intl<"u"&&Intl.v8BreakIterator}catch{c=!1}let C,y=(()=>{class le{_platformId=(0,i.WQX)(i.Agw);isBrowser=this._platformId?(0,a.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!c)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function($e){return new($e||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();const T=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function S(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(T),C;let le=document.createElement("input");return C=new Set(T.filter(ae=>(le.setAttribute("type",ae),le.type===ae))),C}let A;function N(le){return function I(){if(null==A&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>A=!0}))}finally{A=A||!1}return A}()?le:!!le.capture}var K=function(le){return le[le.NORMAL=0]="NORMAL",le[le.NEGATED=1]="NEGATED",le[le.INVERTED=2]="INVERTED",le}(K||{});let Z,ne,pe;function be(){if(null==ne){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ne=!1,ne;if("scrollBehavior"in document.documentElement.style)ne=!0;else{const le=Element.prototype.scrollTo;ne=!!le&&!/\{\s*\[native code\]\s*\}/.test(le.toString())}}return ne}function me(){if("object"!=typeof document||!document)return K.NORMAL;if(null==Z){const le=document.createElement("div"),ae=le.style;le.dir="rtl",ae.width="1px",ae.overflow="auto",ae.visibility="hidden",ae.pointerEvents="none",ae.position="absolute";const Ie=document.createElement("div"),$e=Ie.style;$e.width="2px",$e.height="1px",le.appendChild(Ie),document.body.appendChild(le),Z=K.NORMAL,0===le.scrollLeft&&(le.scrollLeft=1,Z=0===le.scrollLeft?K.NEGATED:K.INVERTED),le.remove()}return Z}function xe(le){if(function Te(){if(null==pe){const le=typeof document<"u"?document.head:null;pe=!(!le||!le.createShadowRoot&&!le.attachShadow)}return pe}()){const ae=le.getRootNode?le.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ae instanceof ShadowRoot)return ae}return null}function Re(){let le=typeof document<"u"&&document?document.activeElement:null;for(;le&&le.shadowRoot;){const ae=le.shadowRoot.activeElement;if(ae===le)break;le=ae}return le}function Me(le){return le.composedPath?le.composedPath()[0]:le.target}function Ce(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(o,s,r)=>{"use strict";r.d(s,{A8:()=>I,I3:()=>xe,VA:()=>N,aI:()=>be,jc:()=>Me,lb:()=>Z});var i=r(4438),a=r(177);class A{_attachedHost;attach(ae){return this._attachedHost=ae,ae.attach(this)}detach(){let ae=this._attachedHost;null!=ae&&(this._attachedHost=null,ae.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ae){this._attachedHost=ae}}class I extends A{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(ae,Ie,$e,st,ht){super(),this.component=ae,this.viewContainerRef=Ie,this.injector=$e,this.projectableNodes=ht}}class N extends A{templateRef;viewContainerRef;context;injector;constructor(ae,Ie,$e,st){super(),this.templateRef=ae,this.viewContainerRef=Ie,this.context=$e,this.injector=st}get origin(){return this.templateRef.elementRef}attach(ae,Ie=this.context){return this.context=Ie,super.attach(ae)}detach(){return this.context=void 0,super.detach()}}class K extends A{element;constructor(ae){super(),this.element=ae instanceof i.aKT?ae.nativeElement:ae}}class Z{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(ae){return ae instanceof I?(this._attachedPortal=ae,this.attachComponentPortal(ae)):ae instanceof N?(this._attachedPortal=ae,this.attachTemplatePortal(ae)):this.attachDomPortal&&ae instanceof K?(this._attachedPortal=ae,this.attachDomPortal(ae)):void 0}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(ae){this._disposeFn=ae}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class be extends Z{outletElement;_appRef;_defaultInjector;_document;constructor(ae,Ie,$e,st,ht){super(),this.outletElement=ae,this._appRef=$e,this._defaultInjector=st,this._document=ht}attachComponentPortal(ae){let Ie;if(ae.viewContainerRef){const $e=ae.injector||ae.viewContainerRef.injector,st=$e.get(i.Vns,null,{optional:!0})||void 0;Ie=ae.viewContainerRef.createComponent(ae.component,{index:ae.viewContainerRef.length,injector:$e,ngModuleRef:st,projectableNodes:ae.projectableNodes||void 0}),this.setDisposeFn(()=>Ie.destroy())}else Ie=(0,i.a0P)(ae.component,{elementInjector:ae.injector||this._defaultInjector||i.zZn.NULL,environmentInjector:this._appRef.injector,projectableNodes:ae.projectableNodes||void 0}),this._appRef.attachView(Ie.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Ie.hostView),Ie.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(Ie)),this._attachedPortal=ae,Ie}attachTemplatePortal(ae){let Ie=ae.viewContainerRef,$e=Ie.createEmbeddedView(ae.templateRef,ae.context,{injector:ae.injector});return $e.rootNodes.forEach(st=>this.outletElement.appendChild(st)),$e.detectChanges(),this.setDisposeFn(()=>{let st=Ie.indexOf($e);-1!==st&&Ie.remove(st)}),this._attachedPortal=ae,$e}attachDomPortal=ae=>{const Ie=ae.element,$e=this._document.createComment("dom-portal");Ie.parentNode.insertBefore($e,Ie),this.outletElement.appendChild(Ie),this._attachedPortal=ae,super.setDisposeFn(()=>{$e.parentNode&&$e.parentNode.replaceChild(Ie,$e)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ae){return ae.hostView.rootNodes[0]}}let xe=(()=>{class le extends Z{_moduleRef=(0,i.WQX)(i.Vns,{optional:!0});_document=(0,i.WQX)(a.qQ);_viewContainerRef=(0,i.WQX)(i.c1b);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(Ie){this.hasAttached()&&!Ie&&!this._isInitialized||(this.hasAttached()&&super.detach(),Ie&&super.attach(Ie),this._attachedPortal=Ie||null)}attached=new i.bkB;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(Ie){Ie.setAttachedHost(this);const $e=null!=Ie.viewContainerRef?Ie.viewContainerRef:this._viewContainerRef,st=$e.createComponent(Ie.component,{index:$e.length,injector:Ie.injector||$e.injector,projectableNodes:Ie.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return $e!==this._viewContainerRef&&this._getRootNode().appendChild(st.hostView.rootNodes[0]),super.setDisposeFn(()=>st.destroy()),this._attachedPortal=Ie,this._attachedRef=st,this.attached.emit(st),st}attachTemplatePortal(Ie){Ie.setAttachedHost(this);const $e=this._viewContainerRef.createEmbeddedView(Ie.templateRef,Ie.context,{injector:Ie.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Ie,this._attachedRef=$e,this.attached.emit($e),$e}attachDomPortal=Ie=>{const $e=Ie.element,st=this._document.createComment("dom-portal");Ie.setAttachedHost(this),$e.parentNode.insertBefore(st,$e),this._getRootNode().appendChild($e),this._attachedPortal=Ie,super.setDisposeFn(()=>{st.parentNode&&st.parentNode.replaceChild($e,st)})};_getRootNode(){const Ie=this._viewContainerRef.element.nativeElement;return Ie.nodeType===Ie.ELEMENT_NODE?Ie:Ie.parentNode}static \u0275fac=function($e){return new($e||le)};static \u0275dir=i.FsC({type:le,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Vt3]})}return le})(),Me=(()=>{class le{static \u0275fac=function($e){return new($e||le)};static \u0275mod=i.$C({type:le});static \u0275inj=i.G2t({})}return le})()},9046:(o,s,r)=>{"use strict";r.d(s,{Y:()=>y,l:()=>c});var i=r(4438);const a=new WeakMap;let c=(()=>{class w{_appRef;_injector=(0,i.WQX)(i.zZn);_environmentInjector=(0,i.WQX)(i.uvJ);load(T){const S=this._appRef=this._appRef||this._injector.get(i.o8S);let A=a.get(S);A||(A={loaders:new Set,refs:[]},a.set(S,A),S.onDestroy(()=>{a.get(S)?.refs.forEach(I=>I.destroy()),a.delete(S)})),A.loaders.has(T)||(A.loaders.add(T),A.refs.push((0,i.a0P)(T,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(S){return new(S||w)};static \u0275prov=i.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})(),y=(()=>{class w{static \u0275fac=function(S){return new(S||w)};static \u0275cmp=i.VBU({type:w,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(S,A){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return w})()},5542:(o,s,r)=>{"use strict";r.d(s,{uv:()=>at,Gj:()=>dt,R:()=>vt,E9:()=>Ke,Xj:()=>ln});var i=r(4085),a=r(4438),c=r(1413),y=r(7673),w=r(1985),C=r(3726),T=r(6780),S=r(8359);const A={schedule(He){let mt=requestAnimationFrame,se=cancelAnimationFrame;const{delegate:Ze}=A;Ze&&(mt=Ze.requestAnimationFrame,se=Ze.cancelAnimationFrame);const Rt=mt(Jt=>{se=void 0,He(Jt)});return new S.yU(()=>se?.(Rt))},requestAnimationFrame(...He){const{delegate:mt}=A;return(mt?.requestAnimationFrame||requestAnimationFrame)(...He)},cancelAnimationFrame(...He){const{delegate:mt}=A;return(mt?.cancelAnimationFrame||cancelAnimationFrame)(...He)},delegate:void 0};var N=r(9687);new class K extends N.q{flush(mt){this._active=!0;const se=this._scheduled;this._scheduled=void 0;const{actions:Ze}=this;let Rt;mt=mt||Ze.shift();do{if(Rt=mt.execute(mt.state,mt.delay))break}while((mt=Ze[0])&&mt.id===se&&Ze.shift());if(this._active=!1,Rt){for(;(mt=Ze[0])&&mt.id===se&&Ze.shift();)mt.unsubscribe();throw Rt}}}(class I extends T.R{constructor(mt,se){super(mt,se),this.scheduler=mt,this.work=se}requestAsyncId(mt,se,Ze=0){return null!==Ze&&Ze>0?super.requestAsyncId(mt,se,Ze):(mt.actions.push(this),mt._scheduled||(mt._scheduled=A.requestAnimationFrame(()=>mt.flush(void 0))))}recycleAsyncId(mt,se,Ze=0){var Rt;if(null!=Ze?Ze>0:this.delay>0)return super.recycleAsyncId(mt,se,Ze);const{actions:Jt}=mt;null!=se&&(null===(Rt=Jt[Jt.length-1])||void 0===Rt?void 0:Rt.id)!==se&&(A.cancelAnimationFrame(se),mt._scheduled=void 0)}});r(5007);var me=r(3798),pe=r(5964),Te=r(6977),xe=r(6860),Re=r(177),Me=r(8203);let vt=(()=>{class He{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(xe.OD);_document=(0,a.WQX)(Re.qQ,{optional:!0});constructor(){}_scrolled=new c.B;_globalSubscription=null;_scrolledCount=0;scrollContainers=new Map;register(se){this.scrollContainers.has(se)||this.scrollContainers.set(se,se.elementScrolled().subscribe(()=>this._scrolled.next(se)))}deregister(se){const Ze=this.scrollContainers.get(se);Ze&&(Ze.unsubscribe(),this.scrollContainers.delete(se))}scrolled(se=20){return this._platform.isBrowser?new w.c(Ze=>{this._globalSubscription||this._addGlobalListener();const Rt=se>0?this._scrolled.pipe((0,me.Z)(se)).subscribe(Ze):this._scrolled.subscribe(Ze);return this._scrolledCount++,()=>{Rt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,y.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((se,Ze)=>this.deregister(Ze)),this._scrolled.complete()}ancestorScrolled(se,Ze){const Rt=this.getAncestorScrollContainers(se);return this.scrolled(Ze).pipe((0,pe.p)(Jt=>!Jt||Rt.indexOf(Jt)>-1))}getAncestorScrollContainers(se){const Ze=[];return this.scrollContainers.forEach((Rt,Jt)=>{this._scrollableContainsElement(Jt,se)&&Ze.push(Jt)}),Ze}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(se,Ze){let Rt=(0,i.i8)(Ze),Jt=se.getElementRef().nativeElement;do{if(Rt==Jt)return!0}while(Rt=Rt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const se=this._getWindow();return(0,C.R)(se.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275prov=a.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}return He})(),at=(()=>{class He{elementRef=(0,a.WQX)(a.aKT);scrollDispatcher=(0,a.WQX)(vt);ngZone=(0,a.WQX)(a.SKi);dir=(0,a.WQX)(Me.dS,{optional:!0});_destroyed=new c.B;_elementScrolled=new w.c(se=>this.ngZone.runOutsideAngular(()=>(0,C.R)(this.elementRef.nativeElement,"scroll").pipe((0,Te.Q)(this._destroyed)).subscribe(se)));constructor(){}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(se){const Ze=this.elementRef.nativeElement,Rt=this.dir&&"rtl"==this.dir.value;null==se.left&&(se.left=Rt?se.end:se.start),null==se.right&&(se.right=Rt?se.start:se.end),null!=se.bottom&&(se.top=Ze.scrollHeight-Ze.clientHeight-se.bottom),Rt&&(0,xe.BD)()!=xe.r5.NORMAL?(null!=se.left&&(se.right=Ze.scrollWidth-Ze.clientWidth-se.left),(0,xe.BD)()==xe.r5.INVERTED?se.left=se.right:(0,xe.BD)()==xe.r5.NEGATED&&(se.left=se.right?-se.right:se.right)):null!=se.right&&(se.left=Ze.scrollWidth-Ze.clientWidth-se.right),this._applyScrollToOptions(se)}_applyScrollToOptions(se){const Ze=this.elementRef.nativeElement;(0,xe.CZ)()?Ze.scrollTo(se):(null!=se.top&&(Ze.scrollTop=se.top),null!=se.left&&(Ze.scrollLeft=se.left))}measureScrollOffset(se){const Ze="left",Jt=this.elementRef.nativeElement;if("top"==se)return Jt.scrollTop;if("bottom"==se)return Jt.scrollHeight-Jt.clientHeight-Jt.scrollTop;const fn=this.dir&&"rtl"==this.dir.value;return"start"==se?se=fn?"right":Ze:"end"==se&&(se=fn?Ze:"right"),fn&&(0,xe.BD)()==xe.r5.INVERTED?se==Ze?Jt.scrollWidth-Jt.clientWidth-Jt.scrollLeft:Jt.scrollLeft:fn&&(0,xe.BD)()==xe.r5.NEGATED?se==Ze?Jt.scrollLeft+Jt.scrollWidth-Jt.clientWidth:-Jt.scrollLeft:se==Ze?Jt.scrollLeft:Jt.scrollWidth-Jt.clientWidth-Jt.scrollLeft}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275dir=a.FsC({type:He,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return He})(),ln=(()=>{class He{_platform=(0,a.WQX)(xe.OD);_viewportSize;_change=new c.B;_changeListener=se=>{this._change.next(se)};_document=(0,a.WQX)(Re.qQ,{optional:!0});constructor(){(0,a.WQX)(a.SKi).runOutsideAngular(()=>{if(this._platform.isBrowser){const Ze=this._getWindow();Ze.addEventListener("resize",this._changeListener),Ze.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const se=this._getWindow();se.removeEventListener("resize",this._changeListener),se.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const se={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),se}getViewportRect(){const se=this.getViewportScrollPosition(),{width:Ze,height:Rt}=this.getViewportSize();return{top:se.top,left:se.left,bottom:se.top+Rt,right:se.left+Ze,height:Rt,width:Ze}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const se=this._document,Ze=this._getWindow(),Rt=se.documentElement,Jt=Rt.getBoundingClientRect();return{top:-Jt.top||se.body.scrollTop||Ze.scrollY||Rt.scrollTop||0,left:-Jt.left||se.body.scrollLeft||Ze.scrollX||Rt.scrollLeft||0}}change(se=20){return se>0?this._change.pipe((0,me.Z)(se)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const se=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:se.innerWidth,height:se.innerHeight}:{width:0,height:0}}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275prov=a.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}return He})(),dt=(()=>{class He{static \u0275fac=function(Ze){return new(Ze||He)};static \u0275mod=a.$C({type:He});static \u0275inj=a.G2t({})}return He})(),Ke=(()=>{class He{static \u0275fac=function(Ze){return new(Ze||He)};static \u0275mod=a.$C({type:He});static \u0275inj=a.G2t({imports:[Me.jI,dt,Me.jI,dt]})}return He})()},7403:(o,s,r)=>{"use strict";r.d(s,{EE:()=>me,P8:()=>Z,xb:()=>be});var i=r(6860),a=r(4438),c=r(9046),y=r(4085),w=r(983),C=r(1413),T=r(3726),S=r(177),A=r(3798),I=r(6977);let N=(()=>{class pe{static \u0275fac=function(Re){return new(Re||pe)};static \u0275cmp=a.VBU({type:pe,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(Re,Me){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}"],encapsulation:2,changeDetection:0})}return pe})();const K=(0,i.BQ)({passive:!0});let Z=(()=>{class pe{_platform=(0,a.WQX)(i.OD);_ngZone=(0,a.WQX)(a.SKi);_styleLoader=(0,a.WQX)(c.l);_monitoredElements=new Map;constructor(){}monitor(xe){if(!this._platform.isBrowser)return w.w;this._styleLoader.load(N);const Re=(0,y.i8)(xe),Me=this._monitoredElements.get(Re);if(Me)return Me.subject;const Ce=new C.B,le="cdk-text-field-autofilled",ae=Ie=>{"cdk-text-field-autofill-start"!==Ie.animationName||Re.classList.contains(le)?"cdk-text-field-autofill-end"===Ie.animationName&&Re.classList.contains(le)&&(Re.classList.remove(le),this._ngZone.run(()=>Ce.next({target:Ie.target,isAutofilled:!1}))):(Re.classList.add(le),this._ngZone.run(()=>Ce.next({target:Ie.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Re.addEventListener("animationstart",ae,K),Re.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Re,{subject:Ce,unlisten:()=>{Re.removeEventListener("animationstart",ae,K)}}),Ce}stopMonitoring(xe){const Re=(0,y.i8)(xe),Me=this._monitoredElements.get(Re);Me&&(Me.unlisten(),Me.subject.complete(),Re.classList.remove("cdk-text-field-autofill-monitored"),Re.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Re))}ngOnDestroy(){this._monitoredElements.forEach((xe,Re)=>this.stopMonitoring(Re))}static \u0275fac=function(Re){return new(Re||pe)};static \u0275prov=a.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})(),be=(()=>{class pe{_elementRef=(0,a.WQX)(a.aKT);_platform=(0,a.WQX)(i.OD);_ngZone=(0,a.WQX)(a.SKi);_previousValue;_initialHeight;_destroyed=new C.B;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(xe){this._minRows=(0,y.OE)(xe),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(xe){this._maxRows=(0,y.OE)(xe),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(xe){this._enabled!==xe&&((this._enabled=xe)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(xe){this._cachedPlaceholderHeight=void 0,xe?this._textareaElement.setAttribute("placeholder",xe):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=(0,a.WQX)(S.qQ,{optional:!0});_hasFocus;_isViewInited=!1;constructor(){(0,a.WQX)(c.l).load(N),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const xe=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;xe&&(this._textareaElement.style.minHeight=xe)}_setMaxHeight(){const xe=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;xe&&(this._textareaElement.style.maxHeight=xe)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const xe=this._getWindow();(0,T.R)(xe,"resize").pipe((0,A.Z)(16),(0,I.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 xe=this._textareaElement.cloneNode(!1);xe.rows=1,xe.style.position="absolute",xe.style.visibility="hidden",xe.style.border="none",xe.style.padding="0",xe.style.height="",xe.style.minHeight="",xe.style.maxHeight="",xe.style.overflow="hidden",this._textareaElement.parentNode.appendChild(xe),this._cachedLineHeight=xe.clientHeight,xe.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const xe=this._textareaElement,Re=xe.style.marginBottom||"",Me=this._platform.FIREFOX,Ce=Me&&this._hasFocus,le=Me?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Ce&&(xe.style.marginBottom=`${xe.clientHeight}px`),xe.classList.add(le);const ae=xe.scrollHeight-4;return xe.classList.remove(le),Ce&&(xe.style.marginBottom=Re),ae}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const xe=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=xe}_handleFocusEvent=xe=>{this._hasFocus="focus"===xe.type};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(xe=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Re=this._elementRef.nativeElement,Me=Re.value;if(!xe&&this._minRows===this._previousMinRows&&Me===this._previousValue)return;const Ce=this._measureScrollHeight(),le=Math.max(Ce,this._cachedPlaceholderHeight||0);Re.style.height=`${le}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(Re)):setTimeout(()=>this._scrollToCaretPosition(Re))}),this._previousValue=Me,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(xe){const{selectionStart:Re,selectionEnd:Me}=xe;!this._destroyed.isStopped&&this._hasFocus&&xe.setSelectionRange(Re,Me)}static \u0275fac=function(Re){return new(Re||pe)};static \u0275dir=a.FsC({type:pe,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(Re,Me){1&Re&&a.bIt("input",function(){return Me._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",a.L39],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"],features:[a.GFd]})}return pe})(),me=(()=>{class pe{static \u0275fac=function(Re){return new(Re||pe)};static \u0275mod=a.$C({type:pe});static \u0275inj=a.G2t({})}return pe})()},177:(o,s,r)=>{"use strict";r.d(s,{AJ:()=>Eo,B3:()=>mr,Jj:()=>cs,MD:()=>tr,N0:()=>Qo,PV:()=>Sr,QT:()=>y,QX:()=>rs,Sm:()=>pe,Sq:()=>ve,T3:()=>bi,UE:()=>ks,VF:()=>C,Vy:()=>Bs,Xr:()=>Yo,YU:()=>Mo,ZD:()=>w,_b:()=>eo,aZ:()=>xe,bT:()=>pt,fw:()=>Te,hb:()=>be,hj:()=>I,qQ:()=>S,vh:()=>Ps});var i=r(4438),a=r(1413);let c=null;function y(){return c}function w($){c??=$}class C{}const S=new i.nKC("");let A=(()=>{class ${historyGo(q){throw new Error("")}static \u0275fac=function(_e){return new(_e||$)};static \u0275prov=i.jDH({token:$,factory:()=>(0,i.WQX)(N),providedIn:"platform"})}return $})();const I=new i.nKC("");let N=(()=>{class $ extends A{_location;_history;_doc=(0,i.WQX)(S);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return y().getBaseHref(this._doc)}onPopState(q){const _e=y().getGlobalEventTarget(this._doc,"window");return _e.addEventListener("popstate",q,!1),()=>_e.removeEventListener("popstate",q)}onHashChange(q){const _e=y().getGlobalEventTarget(this._doc,"window");return _e.addEventListener("hashchange",q,!1),()=>_e.removeEventListener("hashchange",q)}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(q){this._location.pathname=q}pushState(q,_e,nt){this._history.pushState(q,_e,nt)}replaceState(q,_e,nt){this._history.replaceState(q,_e,nt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(q=0){this._history.go(q)}getState(){return this._history.state}static \u0275fac=function(_e){return new(_e||$)};static \u0275prov=i.jDH({token:$,factory:()=>new $,providedIn:"platform"})}return $})();function K($,de){if(0==$.length)return de;if(0==de.length)return $;let q=0;return $.endsWith("/")&&q++,de.startsWith("/")&&q++,2==q?$+de.substring(1):1==q?$+de:$+"/"+de}function Z($){const de=$.match(/#|\?|$/),q=de&&de.index||$.length;return $.slice(0,q-("/"===$[q-1]?1:0))+$.slice(q)}function ne($){return $&&"?"!==$[0]?"?"+$:$}let be=(()=>{class ${historyGo(q){throw new Error("")}static \u0275fac=function(_e){return new(_e||$)};static \u0275prov=i.jDH({token:$,factory:()=>(0,i.WQX)(pe),providedIn:"root"})}return $})();const me=new i.nKC("");let pe=(()=>{class $ extends be{_platformLocation;_baseHref;_removeListenerFns=[];constructor(q,_e){super(),this._platformLocation=q,this._baseHref=_e??this._platformLocation.getBaseHrefFromDOM()??(0,i.WQX)(S).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.onHashChange(q))}getBaseHref(){return this._baseHref}prepareExternalUrl(q){return K(this._baseHref,q)}path(q=!1){const _e=this._platformLocation.pathname+ne(this._platformLocation.search),nt=this._platformLocation.hash;return nt&&q?`${_e}${nt}`:_e}pushState(q,_e,nt,_n){const On=this.prepareExternalUrl(nt+ne(_n));this._platformLocation.pushState(q,_e,On)}replaceState(q,_e,nt,_n){const On=this.prepareExternalUrl(nt+ne(_n));this._platformLocation.replaceState(q,_e,On)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}static \u0275fac=function(_e){return new(_e||$)(i.KVO(A),i.KVO(me,8))};static \u0275prov=i.jDH({token:$,factory:$.\u0275fac,providedIn:"root"})}return $})(),Te=(()=>{class $ extends be{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(q,_e){super(),this._platformLocation=q,null!=_e&&(this._baseHref=_e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.onHashChange(q))}getBaseHref(){return this._baseHref}path(q=!1){const _e=this._platformLocation.hash??"#";return _e.length>0?_e.substring(1):_e}prepareExternalUrl(q){const _e=K(this._baseHref,q);return _e.length>0?"#"+_e:_e}pushState(q,_e,nt,_n){let On=this.prepareExternalUrl(nt+ne(_n));0==On.length&&(On=this._platformLocation.pathname),this._platformLocation.pushState(q,_e,On)}replaceState(q,_e,nt,_n){let On=this.prepareExternalUrl(nt+ne(_n));0==On.length&&(On=this._platformLocation.pathname),this._platformLocation.replaceState(q,_e,On)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}static \u0275fac=function(_e){return new(_e||$)(i.KVO(A),i.KVO(me,8))};static \u0275prov=i.jDH({token:$,factory:$.\u0275fac})}return $})(),xe=(()=>{class ${_subject=new a.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(q){this._locationStrategy=q;const _e=this._locationStrategy.getBaseHref();this._basePath=function le($){if(new RegExp("^(https?:)?//").test($)){const[,q]=$.split(/\/\/[^\/]+/);return q}return $}(Z(Ce(_e))),this._locationStrategy.onPopState(nt=>{this._subject.next({url:this.path(!0),pop:!0,state:nt.state,type:nt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(q=!1){return this.normalize(this._locationStrategy.path(q))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(q,_e=""){return this.path()==this.normalize(q+ne(_e))}normalize(q){return $.stripTrailingSlash(function Me($,de){if(!$||!de.startsWith($))return de;const q=de.substring($.length);return""===q||["/",";","?","#"].includes(q[0])?q:de}(this._basePath,Ce(q)))}prepareExternalUrl(q){return q&&"/"!==q[0]&&(q="/"+q),this._locationStrategy.prepareExternalUrl(q)}go(q,_e="",nt=null){this._locationStrategy.pushState(nt,"",q,_e),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+ne(_e)),nt)}replaceState(q,_e="",nt=null){this._locationStrategy.replaceState(nt,"",q,_e),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+ne(_e)),nt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(q=0){this._locationStrategy.historyGo?.(q)}onUrlChange(q){return this._urlChangeListeners.push(q),this._urlChangeSubscription??=this.subscribe(_e=>{this._notifyUrlChangeListeners(_e.url,_e.state)}),()=>{const _e=this._urlChangeListeners.indexOf(q);this._urlChangeListeners.splice(_e,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(q="",_e){this._urlChangeListeners.forEach(nt=>nt(q,_e))}subscribe(q,_e,nt){return this._subject.subscribe({next:q,error:_e??void 0,complete:nt??void 0})}static normalizeQueryParams=ne;static joinWithSlash=K;static stripTrailingSlash=Z;static \u0275fac=function(_e){return new(_e||$)(i.KVO(be))};static \u0275prov=i.jDH({token:$,factory:()=>function Re(){return new xe((0,i.KVO)(be))}(),providedIn:"root"})}return $})();function Ce($){return $.replace(/\/index.html$/,"")}var Ie=function($){return $[$.Decimal=0]="Decimal",$[$.Percent=1]="Percent",$[$.Currency=2]="Currency",$[$.Scientific=3]="Scientific",$}(Ie||{}),st=function($){return $[$.Format=0]="Format",$[$.Standalone=1]="Standalone",$}(st||{}),ht=function($){return $[$.Narrow=0]="Narrow",$[$.Abbreviated=1]="Abbreviated",$[$.Wide=2]="Wide",$[$.Short=3]="Short",$}(ht||{}),vt=function($){return $[$.Short=0]="Short",$[$.Medium=1]="Medium",$[$.Long=2]="Long",$[$.Full=3]="Full",$}(vt||{});function Fe($,de){return Qt((0,i.H5H)($)[i.KH2.DateFormat],de)}function Ft($,de){return Qt((0,i.H5H)($)[i.KH2.TimeFormat],de)}function ze($,de){return Qt((0,i.H5H)($)[i.KH2.DateTimeFormat],de)}function dt($,de){const q=(0,i.H5H)($),_e=q[i.KH2.NumberSymbols][de];if(typeof _e>"u"){if(12===de)return q[i.KH2.NumberSymbols][0];if(13===de)return q[i.KH2.NumberSymbols][1]}return _e}function Jt($){if(!$[i.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${$[i.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Qt($,de){for(let q=de;q>-1;q--)if(typeof $[q]<"u")return $[q];throw new Error("Locale data API: locale data undefined")}function an($){const[de,q]=$.split(":");return{hours:+de,minutes:+q}}const At=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,zt={},xn=/((?:[^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 Yn=function($){return $[$.Short=0]="Short",$[$.ShortGMT=1]="ShortGMT",$[$.Long=2]="Long",$[$.Extended=3]="Extended",$}(Yn||{}),tt=function($){return $[$.FullYear=0]="FullYear",$[$.Month=1]="Month",$[$.Date=2]="Date",$[$.Hours=3]="Hours",$[$.Minutes=4]="Minutes",$[$.Seconds=5]="Seconds",$[$.FractionalSeconds=6]="FractionalSeconds",$[$.Day=7]="Day",$}(tt||{}),ke=function($){return $[$.DayPeriods=0]="DayPeriods",$[$.Days=1]="Days",$[$.Months=2]="Months",$[$.Eras=3]="Eras",$}(ke||{});function B($,de,q,_e){let nt=function ft($){if(mn($))return $;if("number"==typeof $&&!isNaN($))return new Date($);if("string"==typeof $){if($=$.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test($)){const[nt,_n=1,On=1]=$.split("-").map(Cr=>+Cr);return k(nt,_n-1,On)}const q=parseFloat($);if(!isNaN($-q))return new Date(q);let _e;if(_e=$.match(At))return function Pt($){const de=new Date(0);let q=0,_e=0;const nt=$[8]?de.setUTCFullYear:de.setFullYear,_n=$[8]?de.setUTCHours:de.setHours;$[9]&&(q=Number($[9]+$[10]),_e=Number($[9]+$[11])),nt.call(de,Number($[1]),Number($[2])-1,Number($[3]));const On=Number($[4]||0)-q,Cr=Number($[5]||0)-_e,Yr=Number($[6]||0),Li=Math.floor(1e3*parseFloat("0."+($[7]||0)));return _n.call(de,On,Cr,Yr,Li),de}(_e)}const de=new Date($);if(!mn(de))throw new Error(`Unable to convert "${$}" into a date`);return de}($);de=j(q,de)||de;let Cr,On=[];for(;de;){if(Cr=xn.exec(de),!Cr){On.push(de);break}{On=On.concat(Cr.slice(1));const Hr=On.pop();if(!Hr)break;de=Hr}}let Yr=nt.getTimezoneOffset();_e&&(Yr=lt(_e,Yr),nt=function kt($,de,q){const _e=q?-1:1,nt=$.getTimezoneOffset();return function Pe($,de){return($=new Date($.getTime())).setMinutes($.getMinutes()+de),$}($,_e*(lt(de,nt)-nt))}(nt,_e,!0));let Li="";return On.forEach(Hr=>{const xi=function Ee($){if(Bt[$])return Bt[$];let de;switch($){case"G":case"GG":case"GGG":de=Vt(ke.Eras,ht.Abbreviated);break;case"GGGG":de=Vt(ke.Eras,ht.Wide);break;case"GGGGG":de=Vt(ke.Eras,ht.Narrow);break;case"y":de=Tt(tt.FullYear,1,0,!1,!0);break;case"yy":de=Tt(tt.FullYear,2,0,!0,!0);break;case"yyy":de=Tt(tt.FullYear,3,0,!1,!0);break;case"yyyy":de=Tt(tt.FullYear,4,0,!1,!0);break;case"Y":de=_t(1);break;case"YY":de=_t(2,!0);break;case"YYY":de=_t(3);break;case"YYYY":de=_t(4);break;case"M":case"L":de=Tt(tt.Month,1,1);break;case"MM":case"LL":de=Tt(tt.Month,2,1);break;case"MMM":de=Vt(ke.Months,ht.Abbreviated);break;case"MMMM":de=Vt(ke.Months,ht.Wide);break;case"MMMMM":de=Vt(ke.Months,ht.Narrow);break;case"LLL":de=Vt(ke.Months,ht.Abbreviated,st.Standalone);break;case"LLLL":de=Vt(ke.Months,ht.Wide,st.Standalone);break;case"LLLLL":de=Vt(ke.Months,ht.Narrow,st.Standalone);break;case"w":de=Xr(1);break;case"ww":de=Xr(2);break;case"W":de=Xr(1,!0);break;case"d":de=Tt(tt.Date,1);break;case"dd":de=Tt(tt.Date,2);break;case"c":case"cc":de=Tt(tt.Day,1);break;case"ccc":de=Vt(ke.Days,ht.Abbreviated,st.Standalone);break;case"cccc":de=Vt(ke.Days,ht.Wide,st.Standalone);break;case"ccccc":de=Vt(ke.Days,ht.Narrow,st.Standalone);break;case"cccccc":de=Vt(ke.Days,ht.Short,st.Standalone);break;case"E":case"EE":case"EEE":de=Vt(ke.Days,ht.Abbreviated);break;case"EEEE":de=Vt(ke.Days,ht.Wide);break;case"EEEEE":de=Vt(ke.Days,ht.Narrow);break;case"EEEEEE":de=Vt(ke.Days,ht.Short);break;case"a":case"aa":case"aaa":de=Vt(ke.DayPeriods,ht.Abbreviated);break;case"aaaa":de=Vt(ke.DayPeriods,ht.Wide);break;case"aaaaa":de=Vt(ke.DayPeriods,ht.Narrow);break;case"b":case"bb":case"bbb":de=Vt(ke.DayPeriods,ht.Abbreviated,st.Standalone,!0);break;case"bbbb":de=Vt(ke.DayPeriods,ht.Wide,st.Standalone,!0);break;case"bbbbb":de=Vt(ke.DayPeriods,ht.Narrow,st.Standalone,!0);break;case"B":case"BB":case"BBB":de=Vt(ke.DayPeriods,ht.Abbreviated,st.Format,!0);break;case"BBBB":de=Vt(ke.DayPeriods,ht.Wide,st.Format,!0);break;case"BBBBB":de=Vt(ke.DayPeriods,ht.Narrow,st.Format,!0);break;case"h":de=Tt(tt.Hours,1,-12);break;case"hh":de=Tt(tt.Hours,2,-12);break;case"H":de=Tt(tt.Hours,1);break;case"HH":de=Tt(tt.Hours,2);break;case"m":de=Tt(tt.Minutes,1);break;case"mm":de=Tt(tt.Minutes,2);break;case"s":de=Tt(tt.Seconds,1);break;case"ss":de=Tt(tt.Seconds,2);break;case"S":de=Tt(tt.FractionalSeconds,1);break;case"SS":de=Tt(tt.FractionalSeconds,2);break;case"SSS":de=Tt(tt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":de=Pn(Yn.Short);break;case"ZZZZZ":de=Pn(Yn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":de=Pn(Yn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":de=Pn(Yn.Long);break;default:return null}return Bt[$]=de,de}(Hr);Li+=xi?xi(nt,q,Yr):"''"===Hr?"'":Hr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Li}function k($,de,q){const _e=new Date(0);return _e.setFullYear($,de,q),_e.setHours(0,0,0),_e}function j($,de){const q=function ln($){return(0,i.H5H)($)[i.KH2.LocaleId]}($);if(zt[q]??={},zt[q][de])return zt[q][de];let _e="";switch(de){case"shortDate":_e=Fe($,vt.Short);break;case"mediumDate":_e=Fe($,vt.Medium);break;case"longDate":_e=Fe($,vt.Long);break;case"fullDate":_e=Fe($,vt.Full);break;case"shortTime":_e=Ft($,vt.Short);break;case"mediumTime":_e=Ft($,vt.Medium);break;case"longTime":_e=Ft($,vt.Long);break;case"fullTime":_e=Ft($,vt.Full);break;case"short":const nt=j($,"shortTime"),_n=j($,"shortDate");_e=De(ze($,vt.Short),[nt,_n]);break;case"medium":const On=j($,"mediumTime"),Cr=j($,"mediumDate");_e=De(ze($,vt.Medium),[On,Cr]);break;case"long":const Yr=j($,"longTime"),Li=j($,"longDate");_e=De(ze($,vt.Long),[Yr,Li]);break;case"full":const Hr=j($,"fullTime"),xi=j($,"fullDate");_e=De(ze($,vt.Full),[Hr,xi])}return _e&&(zt[q][de]=_e),_e}function De($,de){return de&&($=$.replace(/\{([^}]+)}/g,function(q,_e){return null!=de&&_e in de?de[_e]:q})),$}function it($,de,q="-",_e,nt){let _n="";($<0||nt&&$<=0)&&(nt?$=1-$:($=-$,_n=q));let On=String($);for(;On.length0||Cr>-q)&&(Cr+=q),$===tt.Hours)0===Cr&&-12===q&&(Cr=12);else if($===tt.FractionalSeconds)return function ot($,de){return it($,3).substring(0,de)}(Cr,de);const Yr=dt(On,5);return it(Cr,de,Yr,_e,nt)}}function Vt($,de,q=st.Format,_e=!1){return function(nt,_n){return function dn($,de,q,_e,nt,_n){switch(q){case ke.Months:return function bn($,de,q){const _e=(0,i.H5H)($),_n=Qt([_e[i.KH2.MonthsFormat],_e[i.KH2.MonthsStandalone]],de);return Qt(_n,q)}(de,nt,_e)[$.getMonth()];case ke.Days:return function $n($,de,q){const _e=(0,i.H5H)($),_n=Qt([_e[i.KH2.DaysFormat],_e[i.KH2.DaysStandalone]],de);return Qt(_n,q)}(de,nt,_e)[$.getDay()];case ke.DayPeriods:const On=$.getHours(),Cr=$.getMinutes();if(_n){const Li=function fn($){const de=(0,i.H5H)($);return Jt(de),(de[i.KH2.ExtraData][2]||[]).map(_e=>"string"==typeof _e?an(_e):[an(_e[0]),an(_e[1])])}(de),Hr=function Kn($,de,q){const _e=(0,i.H5H)($);Jt(_e);const _n=Qt([_e[i.KH2.ExtraData][0],_e[i.KH2.ExtraData][1]],de)||[];return Qt(_n,q)||[]}(de,nt,_e),xi=Li.findIndex(Qr=>{if(Array.isArray(Qr)){const[di,Fo]=Qr,Wo=On>=di.hours&&Cr>=di.minutes,hs=On0?Math.floor(nt/60):Math.ceil(nt/60);switch($){case Yn.Short:return(nt>=0?"+":"")+it(On,2,_n)+it(Math.abs(nt%60),2,_n);case Yn.ShortGMT:return"GMT"+(nt>=0?"+":"")+it(On,1,_n);case Yn.Long:return"GMT"+(nt>=0?"+":"")+it(On,2,_n)+":"+it(Math.abs(nt%60),2,_n);case Yn.Extended:return 0===_e?"Z":(nt>=0?"+":"")+it(On,2,_n)+":"+it(Math.abs(nt%60),2,_n);default:throw new Error(`Unknown zone width "${$}"`)}}}const Fn=0,Bn=4;function Jr($){const de=$.getDay(),q=0===de?-3:Bn-de;return k($.getFullYear(),$.getMonth(),$.getDate()+q)}function Xr($,de=!1){return function(q,_e){let nt;if(de){const _n=new Date(q.getFullYear(),q.getMonth(),1).getDay()-1,On=q.getDate();nt=1+Math.floor((On+_n)/7)}else{const _n=Jr(q),On=function cr($){const de=k($,Fn,1).getDay();return k($,0,1+(de<=Bn?Bn:Bn+7)-de)}(_n.getFullYear()),Cr=_n.getTime()-On.getTime();nt=1+Math.round(Cr/6048e5)}return it(nt,$,dt(_e,5))}}function _t($,de=!1){return function(q,_e){return it(Jr(q).getFullYear(),$,dt(_e,5),de)}}const Bt={};function lt($,de){$=$.replace(/:/g,"");const q=Date.parse("Jan 01, 1970 00:00:00 "+$)/6e4;return isNaN(q)?de:q}function mn($){return $ instanceof Date&&!isNaN($.valueOf())}const or=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function so($){const de=parseInt($);if(isNaN(de))throw new Error("Invalid integer literal when parsing "+$);return de}function eo($,de){de=encodeURIComponent(de);for(const q of $.split(";")){const _e=q.indexOf("="),[nt,_n]=-1==_e?[q,""]:[q.slice(0,_e),q.slice(_e+1)];if(nt.trim()===de)return decodeURIComponent(_n)}return null}const oo=/\s+/,Bi=[];let Mo=(()=>{class ${_ngEl;_renderer;initialClasses=Bi;rawClass;stateMap=new Map;constructor(q,_e){this._ngEl=q,this._renderer=_e}set klass(q){this.initialClasses=null!=q?q.trim().split(oo):Bi}set ngClass(q){this.rawClass="string"==typeof q?q.trim().split(oo):q}ngDoCheck(){for(const _e of this.initialClasses)this._updateState(_e,!0);const q=this.rawClass;if(Array.isArray(q)||q instanceof Set)for(const _e of q)this._updateState(_e,!0);else if(null!=q)for(const _e of Object.keys(q))this._updateState(_e,!!q[_e]);this._applyStateDiff()}_updateState(q,_e){const nt=this.stateMap.get(q);void 0!==nt?(nt.enabled!==_e&&(nt.changed=!0,nt.enabled=_e),nt.touched=!0):this.stateMap.set(q,{enabled:_e,changed:!0,touched:!0})}_applyStateDiff(){for(const q of this.stateMap){const _e=q[0],nt=q[1];nt.changed?(this._toggleClass(_e,nt.enabled),nt.changed=!1):nt.touched||(nt.enabled&&this._toggleClass(_e,!1),this.stateMap.delete(_e)),nt.touched=!1}}_toggleClass(q,_e){(q=q.trim()).length>0&&q.split(oo).forEach(nt=>{_e?this._renderer.addClass(this._ngEl.nativeElement,nt):this._renderer.removeClass(this._ngEl.nativeElement,nt)})}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.aKT),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:$,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return $})();class Et{$implicit;ngForOf;index;count;constructor(de,q,_e,nt){this.$implicit=de,this.ngForOf=q,this.index=_e,this.count=nt}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 ve=(()=>{class ${_viewContainer;_template;_differs;set ngForOf(q){this._ngForOf=q,this._ngForOfDirty=!0}set ngForTrackBy(q){this._trackByFn=q}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(q,_e,nt){this._viewContainer=q,this._template=_e,this._differs=nt}set ngForTemplate(q){q&&(this._template=q)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const q=this._ngForOf;!this._differ&&q&&(this._differ=this._differs.find(q).create(this.ngForTrackBy))}if(this._differ){const q=this._differ.diff(this._ngForOf);q&&this._applyChanges(q)}}_applyChanges(q){const _e=this._viewContainer;q.forEachOperation((nt,_n,On)=>{if(null==nt.previousIndex)_e.createEmbeddedView(this._template,new Et(nt.item,this._ngForOf,-1,-1),null===On?void 0:On);else if(null==On)_e.remove(null===_n?void 0:_n);else if(null!==_n){const Cr=_e.get(_n);_e.move(Cr,On),et(Cr,nt)}});for(let nt=0,_n=_e.length;nt<_n;nt++){const Cr=_e.get(nt).context;Cr.index=nt,Cr.count=_n,Cr.ngForOf=this._ngForOf}q.forEachIdentityChange(nt=>{et(_e.get(nt.currentIndex),nt)})}static ngTemplateContextGuard(q,_e){return!0}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.c1b),i.rXU(i.C4Q),i.rXU(i._q3))};static \u0275dir=i.FsC({type:$,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return $})();function et($,de){$.context.$implicit=de.item}let pt=(()=>{class ${_viewContainer;_context=new $t;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(q,_e){this._viewContainer=q,this._thenTemplateRef=_e}set ngIf(q){this._context.$implicit=this._context.ngIf=q,this._updateView()}set ngIfThen(q){Mt("ngIfThen",q),this._thenTemplateRef=q,this._thenViewRef=null,this._updateView()}set ngIfElse(q){Mt("ngIfElse",q),this._elseTemplateRef=q,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(q,_e){return!0}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.c1b),i.rXU(i.C4Q))};static \u0275dir=i.FsC({type:$,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return $})();class $t{$implicit=null;ngIf=null}function Mt($,de){if(de&&!de.createEmbeddedView)throw new Error(`${$} must be a TemplateRef, but received '${(0,i.Tbb)(de)}'.`)}let mr=(()=>{class ${_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(q,_e,nt){this._ngEl=q,this._differs=_e,this._renderer=nt}set ngStyle(q){this._ngStyle=q,!this._differ&&q&&(this._differ=this._differs.find(q).create())}ngDoCheck(){if(this._differ){const q=this._differ.diff(this._ngStyle);q&&this._applyChanges(q)}}_setStyle(q,_e){const[nt,_n]=q.split("."),On=-1===nt.indexOf("-")?void 0:i.czy.DashCase;null!=_e?this._renderer.setStyle(this._ngEl.nativeElement,nt,_n?`${_e}${_n}`:_e,On):this._renderer.removeStyle(this._ngEl.nativeElement,nt,On)}_applyChanges(q){q.forEachRemovedItem(_e=>this._setStyle(_e.key,null)),q.forEachAddedItem(_e=>this._setStyle(_e.key,_e.currentValue)),q.forEachChangedItem(_e=>this._setStyle(_e.key,_e.currentValue))}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.aKT),i.rXU(i.MKu),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:$,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return $})(),bi=(()=>{class ${_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(q){this._viewContainerRef=q}ngOnChanges(q){if(this._shouldRecreateView(q)){const _e=this._viewContainerRef;if(this._viewRef&&_e.remove(_e.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const nt=this._createContextForwardProxy();this._viewRef=_e.createEmbeddedView(this.ngTemplateOutlet,nt,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(q){return!!q.ngTemplateOutlet||!!q.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(q,_e,nt)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,_e,nt),get:(q,_e,nt)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,_e,nt)}})}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.c1b))};static \u0275dir=i.FsC({type:$,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[i.OA$]})}return $})();function gr($,de){return new i.wOt(2100,!1)}class ai{createSubscription(de,q){return(0,i.O8t)(()=>de.subscribe({next:q,error:_e=>{throw _e}}))}dispose(de){(0,i.O8t)(()=>de.unsubscribe())}}class vo{createSubscription(de,q){return de.then(q,_e=>{throw _e})}dispose(de){}}const $r=new vo,zi=new ai;let cs=(()=>{class ${_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(q){this._ref=q}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(q){if(!this._obj){if(q)try{this.markForCheckOnValueUpdate=!1,this._subscribe(q)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return q!==this._obj?(this._dispose(),this.transform(q)):this._latestValue}_subscribe(q){this._obj=q,this._strategy=this._selectStrategy(q),this._subscription=this._strategy.createSubscription(q,_e=>this._updateLatestValue(q,_e))}_selectStrategy(q){if((0,i.jNT)(q))return $r;if((0,i.zjR)(q))return zi;throw gr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(q,_e){q===this._obj&&(this._latestValue=_e,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.gRc,16))};static \u0275pipe=i.EJ8({name:"async",type:$,pure:!1})}return $})();const ia=/(?:[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 Sr=(()=>{class ${transform(q){if(null==q)return null;if("string"!=typeof q)throw gr();return q.replace(ia,_e=>_e[0].toUpperCase()+_e.slice(1).toLowerCase())}static \u0275fac=function(_e){return new(_e||$)};static \u0275pipe=i.EJ8({name:"titlecase",type:$,pure:!0})}return $})();const wo=new i.nKC(""),Ls=new i.nKC("");let Ps=(()=>{class ${locale;defaultTimezone;defaultOptions;constructor(q,_e,nt){this.locale=q,this.defaultTimezone=_e,this.defaultOptions=nt}transform(q,_e,nt,_n){if(null==q||""===q||q!=q)return null;try{return B(q,_e??this.defaultOptions?.dateFormat??"mediumDate",_n||this.locale,nt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(On){throw gr()}}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.xe9,16),i.rXU(wo,24),i.rXU(Ls,24))};static \u0275pipe=i.EJ8({name:"date",type:$,pure:!0})}return $})(),rs=(()=>{class ${_locale;constructor(q){this._locale=q}transform(q,_e,nt){if(!function Wi($){return!(null==$||""===$||$!=$)}(q))return null;nt||=this._locale;try{return function uo($,de,q){return function Wt($,de,q,_e,nt,_n,On=!1){let Cr="",Yr=!1;if(isFinite($)){let Li=function oi($){let _e,nt,_n,On,Cr,de=Math.abs($)+"",q=0;for((nt=de.indexOf("."))>-1&&(de=de.replace(".","")),(_n=de.search(/e/i))>0?(nt<0&&(nt=_n),nt+=+de.slice(_n+1),de=de.substring(0,_n)):nt<0&&(nt=de.length),_n=0;"0"===de.charAt(_n);_n++);if(_n===(Cr=de.length))_e=[0],nt=1;else{for(Cr--;"0"===de.charAt(Cr);)Cr--;for(nt-=_n,_e=[],On=0;_n<=Cr;_n++,On++)_e[On]=Number(de.charAt(_n))}return nt>22&&(_e=_e.splice(0,21),q=nt-1,nt=1),{digits:_e,exponent:q,integerLen:nt}}($);On&&(Li=function Uo($){if(0===$.digits[0])return $;const de=$.digits.length-$.integerLen;return $.exponent?$.exponent+=2:(0===de?$.digits.push(0,0):1===de&&$.digits.push(0),$.integerLen+=2),$}(Li));let Hr=de.minInt,xi=de.minFrac,Qr=de.maxFrac;if(_n){const Rs=_n.match(or);if(null===Rs)throw new Error(`${_n} is not a valid digit info`);const Al=Rs[1],Ca=Rs[3],Zs=Rs[5];null!=Al&&(Hr=so(Al)),null!=Ca&&(xi=so(Ca)),null!=Zs?Qr=so(Zs):null!=Ca&&xi>Qr&&(Qr=xi)}!function ts($,de,q){if(de>q)throw new Error(`The minimum number of digits after fraction (${de}) is higher than the maximum (${q}).`);let _e=$.digits,nt=_e.length-$.integerLen;const _n=Math.min(Math.max(de,nt),q);let On=_n+$.integerLen,Cr=_e[On];if(On>0){_e.splice(Math.max($.integerLen,On));for(let xi=On;xi<_e.length;xi++)_e[xi]=0}else{nt=Math.max(0,nt),$.integerLen=1,_e.length=Math.max(1,On=_n+1),_e[0]=0;for(let xi=1;xi=5)if(On-1<0){for(let xi=0;xi>On;xi--)_e.unshift(0),$.integerLen++;_e.unshift(1),$.integerLen++}else _e[On-1]++;for(;nt=Li?Fo.pop():Yr=!1),Qr>=10?1:0},0);Hr&&(_e.unshift(Hr),$.integerLen++)}(Li,xi,Qr);let di=Li.digits,Fo=Li.integerLen;const Wo=Li.exponent;let hs=[];for(Yr=di.every(Rs=>!Rs);Fo0?hs=di.splice(Fo,di.length):(hs=di,di=[0]);const jo=[];for(di.length>=de.lgSize&&jo.unshift(di.splice(-de.lgSize,di.length).join(""));di.length>de.gSize;)jo.unshift(di.splice(-de.gSize,di.length).join(""));di.length&&jo.unshift(di.join("")),Cr=jo.join(dt(q,_e)),hs.length&&(Cr+=dt(q,nt)+hs.join("")),Wo&&(Cr+=dt(q,6)+"+"+Wo)}else Cr=dt(q,9);return Cr=$<0&&!Yr?de.negPre+Cr+de.negSuf:de.posPre+Cr+de.posSuf,Cr}($,function Oi($,de="-"){const q={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},_e=$.split(";"),nt=_e[0],_n=_e[1],On=-1!==nt.indexOf(".")?nt.split("."):[nt.substring(0,nt.lastIndexOf("0")+1),nt.substring(nt.lastIndexOf("0")+1)],Cr=On[0],Yr=On[1]||"";q.posPre=Cr.substring(0,Cr.indexOf("#"));for(let Hr=0;Hr{class ${static \u0275fac=function(_e){return new(_e||$)};static \u0275mod=i.$C({type:$});static \u0275inj=i.G2t({})}return $})();const Eo="browser",os="server";function ks($){return $===Eo}function Bs($){return $===os}let Yo=(()=>{class ${static \u0275prov=(0,i.jDH)({token:$,providedIn:"root",factory:()=>ks((0,i.WQX)(i.Agw))?new Ti((0,i.WQX)(S),window):new yl})}return $})();class Ti{document;window;offset=()=>[0,0];constructor(de,q){this.document=de,this.window=q}setOffset(de){this.offset=Array.isArray(de)?()=>de:de}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(de){this.window.scrollTo(de[0],de[1])}scrollToAnchor(de){const q=function sa($,de){const q=$.getElementById(de)||$.getElementsByName(de)[0];if(q)return q;if("function"==typeof $.createTreeWalker&&$.body&&"function"==typeof $.body.attachShadow){const _e=$.createTreeWalker($.body,NodeFilter.SHOW_ELEMENT);let nt=_e.currentNode;for(;nt;){const _n=nt.shadowRoot;if(_n){const On=_n.getElementById(de)||_n.querySelector(`[name="${de}"]`);if(On)return On}nt=_e.nextNode()}}return null}(this.document,de);q&&(this.scrollToElement(q),q.focus())}setHistoryScrollRestoration(de){this.window.history.scrollRestoration=de}scrollToElement(de){const q=de.getBoundingClientRect(),_e=q.left+this.window.pageXOffset,nt=q.top+this.window.pageYOffset,_n=this.offset();this.window.scrollTo(_e-_n[0],nt-_n[1])}}class yl{setOffset(de){}getScrollPosition(){return[0,0]}scrollToPosition(de){}scrollToAnchor(de){}setHistoryScrollRestoration(de){}}class Qo{}},1626:(o,s,r)=>{"use strict";r.d(s,{$R:()=>Pe,Nl:()=>Ce,Qq:()=>Ft,b$:()=>kt,cS:()=>$n,yz:()=>bn});var i=r(467),a=r(4438),c=r(7673),y=r(1985),w=r(6648),C=r(274),T=r(5964),S=r(6354),A=r(980),I=r(5558),N=r(177);class K{}class Z{}class ne{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(ct){ct?"string"==typeof ct?this.lazyInit=()=>{this.headers=new Map,ct.split("\n").forEach(Et=>{const ve=Et.indexOf(":");if(ve>0){const et=Et.slice(0,ve),Oe=Et.slice(ve+1).trim();this.addHeaderEntry(et,Oe)}})}:typeof Headers<"u"&&ct instanceof Headers?(this.headers=new Map,ct.forEach((Et,ve)=>{this.addHeaderEntry(ve,Et)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(ct).forEach(([Et,ve])=>{this.setHeaderEntries(Et,ve)})}:this.headers=new Map}has(ct){return this.init(),this.headers.has(ct.toLowerCase())}get(ct){this.init();const Et=this.headers.get(ct.toLowerCase());return Et&&Et.length>0?Et[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ct){return this.init(),this.headers.get(ct.toLowerCase())||null}append(ct,Et){return this.clone({name:ct,value:Et,op:"a"})}set(ct,Et){return this.clone({name:ct,value:Et,op:"s"})}delete(ct,Et){return this.clone({name:ct,value:Et,op:"d"})}maybeSetNormalizedName(ct,Et){this.normalizedNames.has(Et)||this.normalizedNames.set(Et,ct)}init(){this.lazyInit&&(this.lazyInit instanceof ne?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ct=>this.applyUpdate(ct)),this.lazyUpdate=null))}copyFrom(ct){ct.init(),Array.from(ct.headers.keys()).forEach(Et=>{this.headers.set(Et,ct.headers.get(Et)),this.normalizedNames.set(Et,ct.normalizedNames.get(Et))})}clone(ct){const Et=new ne;return Et.lazyInit=this.lazyInit&&this.lazyInit instanceof ne?this.lazyInit:this,Et.lazyUpdate=(this.lazyUpdate||[]).concat([ct]),Et}applyUpdate(ct){const Et=ct.name.toLowerCase();switch(ct.op){case"a":case"s":let ve=ct.value;if("string"==typeof ve&&(ve=[ve]),0===ve.length)return;this.maybeSetNormalizedName(ct.name,Et);const et=("a"===ct.op?this.headers.get(Et):void 0)||[];et.push(...ve),this.headers.set(Et,et);break;case"d":const Oe=ct.value;if(Oe){let pt=this.headers.get(Et);if(!pt)return;pt=pt.filter($t=>-1===Oe.indexOf($t)),0===pt.length?(this.headers.delete(Et),this.normalizedNames.delete(Et)):this.headers.set(Et,pt)}else this.headers.delete(Et),this.normalizedNames.delete(Et)}}addHeaderEntry(ct,Et){const ve=ct.toLowerCase();this.maybeSetNormalizedName(ct,ve),this.headers.has(ve)?this.headers.get(ve).push(Et):this.headers.set(ve,[Et])}setHeaderEntries(ct,Et){const ve=(Array.isArray(Et)?Et:[Et]).map(Oe=>Oe.toString()),et=ct.toLowerCase();this.headers.set(et,ve),this.maybeSetNormalizedName(ct,et)}forEach(ct){this.init(),Array.from(this.normalizedNames.keys()).forEach(Et=>ct(this.normalizedNames.get(Et),this.headers.get(Et)))}}class me{encodeKey(ct){return Re(ct)}encodeValue(ct){return Re(ct)}decodeKey(ct){return decodeURIComponent(ct)}decodeValue(ct){return decodeURIComponent(ct)}}const Te=/%(\d[a-f0-9])/gi,xe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Re(Je){return encodeURIComponent(Je).replace(Te,(ct,Et)=>xe[Et]??ct)}function Me(Je){return`${Je}`}class Ce{map;encoder;updates=null;cloneFrom=null;constructor(ct={}){if(this.encoder=ct.encoder||new me,ct.fromString){if(ct.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function pe(Je,ct){const Et=new Map;return Je.length>0&&Je.replace(/^\?/,"").split("&").forEach(et=>{const Oe=et.indexOf("="),[pt,$t]=-1==Oe?[ct.decodeKey(et),""]:[ct.decodeKey(et.slice(0,Oe)),ct.decodeValue(et.slice(Oe+1))],Mt=Et.get(pt)||[];Mt.push($t),Et.set(pt,Mt)}),Et}(ct.fromString,this.encoder)}else ct.fromObject?(this.map=new Map,Object.keys(ct.fromObject).forEach(Et=>{const ve=ct.fromObject[Et],et=Array.isArray(ve)?ve.map(Me):[Me(ve)];this.map.set(Et,et)})):this.map=null}has(ct){return this.init(),this.map.has(ct)}get(ct){this.init();const Et=this.map.get(ct);return Et?Et[0]:null}getAll(ct){return this.init(),this.map.get(ct)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ct,Et){return this.clone({param:ct,value:Et,op:"a"})}appendAll(ct){const Et=[];return Object.keys(ct).forEach(ve=>{const et=ct[ve];Array.isArray(et)?et.forEach(Oe=>{Et.push({param:ve,value:Oe,op:"a"})}):Et.push({param:ve,value:et,op:"a"})}),this.clone(Et)}set(ct,Et){return this.clone({param:ct,value:Et,op:"s"})}delete(ct,Et){return this.clone({param:ct,value:Et,op:"d"})}toString(){return this.init(),this.keys().map(ct=>{const Et=this.encoder.encodeKey(ct);return this.map.get(ct).map(ve=>Et+"="+this.encoder.encodeValue(ve)).join("&")}).filter(ct=>""!==ct).join("&")}clone(ct){const Et=new Ce({encoder:this.encoder});return Et.cloneFrom=this.cloneFrom||this,Et.updates=(this.updates||[]).concat(ct),Et}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ct=>this.map.set(ct,this.cloneFrom.map.get(ct))),this.updates.forEach(ct=>{switch(ct.op){case"a":case"s":const Et=("a"===ct.op?this.map.get(ct.param):void 0)||[];Et.push(Me(ct.value)),this.map.set(ct.param,Et);break;case"d":if(void 0===ct.value){this.map.delete(ct.param);break}{let ve=this.map.get(ct.param)||[];const et=ve.indexOf(Me(ct.value));-1!==et&&ve.splice(et,1),ve.length>0?this.map.set(ct.param,ve):this.map.delete(ct.param)}}}),this.cloneFrom=this.updates=null)}}class ae{map=new Map;set(ct,Et){return this.map.set(ct,Et),this}get(ct){return this.map.has(ct)||this.map.set(ct,ct.defaultValue()),this.map.get(ct)}delete(ct){return this.map.delete(ct),this}has(ct){return this.map.has(ct)}keys(){return this.map.keys()}}function $e(Je){return typeof ArrayBuffer<"u"&&Je instanceof ArrayBuffer}function st(Je){return typeof Blob<"u"&&Je instanceof Blob}function ht(Je){return typeof FormData<"u"&&Je instanceof FormData}class at{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(ct,Et,ve,et){let Oe;if(this.url=Et,this.method=ct.toUpperCase(),function Ie(Je){switch(Je){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||et?(this.body=void 0!==ve?ve:null,Oe=et):Oe=ve,Oe&&(this.reportProgress=!!Oe.reportProgress,this.withCredentials=!!Oe.withCredentials,Oe.responseType&&(this.responseType=Oe.responseType),Oe.headers&&(this.headers=Oe.headers),Oe.context&&(this.context=Oe.context),Oe.params&&(this.params=Oe.params),this.transferCache=Oe.transferCache),this.headers??=new ne,this.context??=new ae,this.params){const pt=this.params.toString();if(0===pt.length)this.urlWithParams=Et;else{const $t=Et.indexOf("?");this.urlWithParams=Et+(-1===$t?"?":$tkn.set(Un,ct.setHeaders[Un]),un)),ct.setParams&&(Cn=Object.keys(ct.setParams).reduce((kn,Un)=>kn.set(Un,ct.setParams[Un]),Cn)),new at(Et,ve,pt,{params:Cn,headers:un,context:Sn,reportProgress:Mt,responseType:et,withCredentials:$t,transferCache:Oe})}}var Xt=function(Je){return Je[Je.Sent=0]="Sent",Je[Je.UploadProgress=1]="UploadProgress",Je[Je.ResponseHeader=2]="ResponseHeader",Je[Je.DownloadProgress=3]="DownloadProgress",Je[Je.Response=4]="Response",Je[Je.User=5]="User",Je}(Xt||{});class ln{headers;status;statusText;url;ok;type;constructor(ct,Et=200,ve="OK"){this.headers=ct.headers||new ne,this.status=void 0!==ct.status?ct.status:Et,this.statusText=ct.statusText||ve,this.url=ct.url||null,this.ok=this.status>=200&&this.status<300}}class yn extends ln{constructor(ct={}){super(ct)}type=Xt.ResponseHeader;clone(ct={}){return new yn({headers:ct.headers||this.headers,status:void 0!==ct.status?ct.status:this.status,statusText:ct.statusText||this.statusText,url:ct.url||this.url||void 0})}}class $n extends ln{body;constructor(ct={}){super(ct),this.body=void 0!==ct.body?ct.body:null}type=Xt.Response;clone(ct={}){return new $n({body:void 0!==ct.body?ct.body:this.body,headers:ct.headers||this.headers,status:void 0!==ct.status?ct.status:this.status,statusText:ct.statusText||this.statusText,url:ct.url||this.url||void 0})}}class bn extends ln{name="HttpErrorResponse";message;error;ok=!1;constructor(ct){super(ct,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ct.url||"(unknown url)"}`:`Http failure response for ${ct.url||"(unknown url)"}: ${ct.status} ${ct.statusText}`,this.error=ct.error||null}}function Fe(Je,ct){return{body:ct,headers:Je.headers,context:Je.context,observe:Je.observe,params:Je.params,reportProgress:Je.reportProgress,responseType:Je.responseType,withCredentials:Je.withCredentials,transferCache:Je.transferCache}}let Ft=(()=>{class Je{handler;constructor(Et){this.handler=Et}request(Et,ve,et={}){let Oe;if(Et instanceof at)Oe=Et;else{let Mt,un;Mt=et.headers instanceof ne?et.headers:new ne(et.headers),et.params&&(un=et.params instanceof Ce?et.params:new Ce({fromObject:et.params})),Oe=new at(Et,ve,void 0!==et.body?et.body:null,{headers:Mt,context:et.context,params:un,reportProgress:et.reportProgress,responseType:et.responseType||"json",withCredentials:et.withCredentials,transferCache:et.transferCache})}const pt=(0,c.of)(Oe).pipe((0,C.H)(Mt=>this.handler.handle(Mt)));if(Et instanceof at||"events"===et.observe)return pt;const $t=pt.pipe((0,T.p)(Mt=>Mt instanceof $n));switch(et.observe||"body"){case"body":switch(Oe.responseType){case"arraybuffer":return $t.pipe((0,S.T)(Mt=>{if(null!==Mt.body&&!(Mt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Mt.body}));case"blob":return $t.pipe((0,S.T)(Mt=>{if(null!==Mt.body&&!(Mt.body instanceof Blob))throw new Error("Response is not a Blob.");return Mt.body}));case"text":return $t.pipe((0,S.T)(Mt=>{if(null!==Mt.body&&"string"!=typeof Mt.body)throw new Error("Response is not a string.");return Mt.body}));default:return $t.pipe((0,S.T)(Mt=>Mt.body))}case"response":return $t;default:throw new Error(`Unreachable: unhandled observe type ${et.observe}}`)}}delete(Et,ve={}){return this.request("DELETE",Et,ve)}get(Et,ve={}){return this.request("GET",Et,ve)}head(Et,ve={}){return this.request("HEAD",Et,ve)}jsonp(Et,ve){return this.request("JSONP",Et,{params:(new Ce).append(ve,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Et,ve={}){return this.request("OPTIONS",Et,ve)}patch(Et,ve,et={}){return this.request("PATCH",Et,Fe(et,ve))}post(Et,ve,et={}){return this.request("POST",Et,Fe(et,ve))}put(Et,ve,et={}){return this.request("PUT",Et,Fe(et,ve))}static \u0275fac=function(ve){return new(ve||Je)(a.KVO(K))};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();const ze=/^\)\]\}',?\n/;function Ke(Je){if(Je.url)return Je.url;const ct="X-Request-URL".toLocaleLowerCase();return Je.headers.get(ct)}let He=(()=>{class Je{fetchImpl=(0,a.WQX)(mt,{optional:!0})?.fetch??((...Et)=>globalThis.fetch(...Et));ngZone=(0,a.WQX)(a.SKi);handle(Et){return new y.c(ve=>{const et=new AbortController;return this.doRequest(Et,et.signal,ve).then(se,Oe=>ve.error(new bn({error:Oe}))),()=>et.abort()})}doRequest(Et,ve,et){var Oe=this;return(0,i.A)(function*(){const pt=Oe.createRequestInit(Et);let $t;try{const Jn=Oe.ngZone.runOutsideAngular(()=>Oe.fetchImpl(Et.urlWithParams,{signal:ve,...pt}));(function Ze(Je){Je.then(se,se)})(Jn),et.next({type:Xt.Sent}),$t=yield Jn}catch(Jn){return void et.error(new bn({error:Jn,status:Jn.status??0,statusText:Jn.statusText,url:Et.urlWithParams,headers:Jn.headers}))}const Mt=new ne($t.headers),un=$t.statusText,Cn=Ke($t)??Et.urlWithParams;let Sn=$t.status,kn=null;if(Et.reportProgress&&et.next(new yn({headers:Mt,status:Sn,statusText:un,url:Cn})),$t.body){const Jn=$t.headers.get("content-length"),sr=[],kr=$t.body.getReader();let bi,si,mr=0;const gr=typeof Zone<"u"&&Zone.current;yield Oe.ngZone.runOutsideAngular((0,i.A)(function*(){for(;;){const{done:vo,value:$r}=yield kr.read();if(vo)break;if(sr.push($r),mr+=$r.length,Et.reportProgress){si="text"===Et.responseType?(si??"")+(bi??=new TextDecoder).decode($r,{stream:!0}):void 0;const zi=()=>et.next({type:Xt.DownloadProgress,total:Jn?+Jn:void 0,loaded:mr,partialText:si});gr?gr.run(zi):zi()}}}));const ai=Oe.concatChunks(sr,mr);try{const vo=$t.headers.get("Content-Type")??"";kn=Oe.parseBody(Et,ai,vo)}catch(vo){return void et.error(new bn({error:vo,headers:new ne($t.headers),status:$t.status,statusText:$t.statusText,url:Ke($t)??Et.urlWithParams}))}}0===Sn&&(Sn=kn?200:0),Sn>=200&&Sn<300?(et.next(new $n({body:kn,headers:Mt,status:Sn,statusText:un,url:Cn})),et.complete()):et.error(new bn({error:kn,headers:Mt,status:Sn,statusText:un,url:Cn}))})()}parseBody(Et,ve,et){switch(Et.responseType){case"json":const Oe=(new TextDecoder).decode(ve).replace(ze,"");return""===Oe?null:JSON.parse(Oe);case"text":return(new TextDecoder).decode(ve);case"blob":return new Blob([ve],{type:et});case"arraybuffer":return ve.buffer}}createRequestInit(Et){const ve={},et=Et.withCredentials?"include":void 0;if(Et.headers.forEach((Oe,pt)=>ve[Oe]=pt.join(",")),Et.headers.has("Accept")||(ve.Accept="application/json, text/plain, */*"),!Et.headers.has("Content-Type")){const Oe=Et.detectContentTypeHeader();null!==Oe&&(ve["Content-Type"]=Oe)}return{body:Et.serializeBody(),method:Et.method,headers:ve,credentials:et}}concatChunks(Et,ve){const et=new Uint8Array(ve);let Oe=0;for(const pt of Et)et.set(pt,Oe),Oe+=pt.length;return et}static \u0275fac=function(ve){return new(ve||Je)};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();class mt{}function se(){}function Rt(Je,ct){return ct(Je)}const Nt=new a.nKC(""),Qt=new a.nKC(""),an=new a.nKC("",{providedIn:"root",factory:()=>!0});let At=(()=>{class Je extends K{backend;injector;chain=null;pendingTasks=(0,a.WQX)(a.TgB);contributeToStability=(0,a.WQX)(an);constructor(Et,ve){super(),this.backend=Et,this.injector=ve}handle(Et){if(null===this.chain){const ve=Array.from(new Set([...this.injector.get(Nt),...this.injector.get(Qt,[])]));this.chain=ve.reduceRight((et,Oe)=>function fn(Je,ct,Et){return(ve,et)=>(0,a.N4e)(Et,()=>ct(ve,Oe=>Je(Oe,et)))}(et,Oe,this.injector),Rt)}if(this.contributeToStability){const ve=this.pendingTasks.add();return this.chain(Et,et=>this.backend.handle(et)).pipe((0,A.j)(()=>this.pendingTasks.remove(ve)))}return this.chain(Et,ve=>this.backend.handle(ve))}static \u0275fac=function(ve){return new(ve||Je)(a.KVO(Z),a.KVO(a.uvJ))};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();const Tt=/^\)\]\}',?\n/;let Vt=(()=>{class Je{xhrFactory;constructor(Et){this.xhrFactory=Et}handle(Et){if("JSONP"===Et.method)throw new a.wOt(-2800,!1);const ve=this.xhrFactory;return(ve.\u0275loadImpl?(0,w.H)(ve.\u0275loadImpl()):(0,c.of)(null)).pipe((0,I.n)(()=>new y.c(Oe=>{const pt=ve.build();if(pt.open(Et.method,Et.urlWithParams),Et.withCredentials&&(pt.withCredentials=!0),Et.headers.forEach((sr,kr)=>pt.setRequestHeader(sr,kr.join(","))),Et.headers.has("Accept")||pt.setRequestHeader("Accept","application/json, text/plain, */*"),!Et.headers.has("Content-Type")){const sr=Et.detectContentTypeHeader();null!==sr&&pt.setRequestHeader("Content-Type",sr)}if(Et.responseType){const sr=Et.responseType.toLowerCase();pt.responseType="json"!==sr?sr:"text"}const $t=Et.serializeBody();let Mt=null;const un=()=>{if(null!==Mt)return Mt;const sr=pt.statusText||"OK",kr=new ne(pt.getAllResponseHeaders()),mr=function In(Je){return"responseURL"in Je&&Je.responseURL?Je.responseURL:/^X-Request-URL:/m.test(Je.getAllResponseHeaders())?Je.getResponseHeader("X-Request-URL"):null}(pt)||Et.url;return Mt=new yn({headers:kr,status:pt.status,statusText:sr,url:mr}),Mt},Cn=()=>{let{headers:sr,status:kr,statusText:mr,url:bi}=un(),si=null;204!==kr&&(si=typeof pt.response>"u"?pt.responseText:pt.response),0===kr&&(kr=si?200:0);let gr=kr>=200&&kr<300;if("json"===Et.responseType&&"string"==typeof si){const ai=si;si=si.replace(Tt,"");try{si=""!==si?JSON.parse(si):null}catch(vo){si=ai,gr&&(gr=!1,si={error:vo,text:si})}}gr?(Oe.next(new $n({body:si,headers:sr,status:kr,statusText:mr,url:bi||void 0})),Oe.complete()):Oe.error(new bn({error:si,headers:sr,status:kr,statusText:mr,url:bi||void 0}))},Sn=sr=>{const{url:kr}=un(),mr=new bn({error:sr,status:pt.status||0,statusText:pt.statusText||"Unknown Error",url:kr||void 0});Oe.error(mr)};let kn=!1;const Un=sr=>{kn||(Oe.next(un()),kn=!0);let kr={type:Xt.DownloadProgress,loaded:sr.loaded};sr.lengthComputable&&(kr.total=sr.total),"text"===Et.responseType&&pt.responseText&&(kr.partialText=pt.responseText),Oe.next(kr)},Jn=sr=>{let kr={type:Xt.UploadProgress,loaded:sr.loaded};sr.lengthComputable&&(kr.total=sr.total),Oe.next(kr)};return pt.addEventListener("load",Cn),pt.addEventListener("error",Sn),pt.addEventListener("timeout",Sn),pt.addEventListener("abort",Sn),Et.reportProgress&&(pt.addEventListener("progress",Un),null!==$t&&pt.upload&&pt.upload.addEventListener("progress",Jn)),pt.send($t),Oe.next({type:Xt.Sent}),()=>{pt.removeEventListener("error",Sn),pt.removeEventListener("abort",Sn),pt.removeEventListener("load",Cn),pt.removeEventListener("timeout",Sn),Et.reportProgress&&(pt.removeEventListener("progress",Un),null!==$t&&pt.upload&&pt.upload.removeEventListener("progress",Jn)),pt.readyState!==pt.DONE&&pt.abort()}})))}static \u0275fac=function(ve){return new(ve||Je)(a.KVO(N.N0))};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();const dn=new a.nKC(""),Fn=new a.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),cr=new a.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Jr{}let Xr=(()=>{class Je{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(Et,ve,et){this.doc=Et,this.platform=ve,this.cookieName=et}getToken(){if("server"===this.platform)return null;const Et=this.doc.cookie||"";return Et!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,N._b)(Et,this.cookieName),this.lastCookieString=Et),this.lastToken}static \u0275fac=function(ve){return new(ve||Je)(a.KVO(N.qQ),a.KVO(a.Agw),a.KVO(Fn))};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();function _t(Je,ct){const Et=Je.url.toLowerCase();if(!(0,a.WQX)(dn)||"GET"===Je.method||"HEAD"===Je.method||Et.startsWith("http://")||Et.startsWith("https://"))return ct(Je);const ve=(0,a.WQX)(Jr).getToken(),et=(0,a.WQX)(cr);return null!=ve&&!Je.headers.has(et)&&(Je=Je.clone({headers:Je.headers.set(et,ve)})),ct(Je)}var Ee=function(Je){return Je[Je.Interceptors=0]="Interceptors",Je[Je.LegacyInterceptors=1]="LegacyInterceptors",Je[Je.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Je[Je.NoXsrfProtection=3]="NoXsrfProtection",Je[Je.JsonpSupport=4]="JsonpSupport",Je[Je.RequestsMadeViaParent=5]="RequestsMadeViaParent",Je[Je.Fetch=6]="Fetch",Je}(Ee||{});function Pe(...Je){const ct=[Ft,Vt,At,{provide:K,useExisting:At},{provide:Z,useFactory:()=>(0,a.WQX)(He,{optional:!0})??(0,a.WQX)(Vt)},{provide:Nt,useValue:_t,multi:!0},{provide:dn,useValue:!0},{provide:Jr,useClass:Xr}];for(const Et of Je)ct.push(...Et.\u0275providers);return(0,a.EmA)(ct)}function kt(Je){return function lt(Je,ct){return{\u0275kind:Je,\u0275providers:ct}}(Ee.Interceptors,Je.map(ct=>({provide:Nt,useValue:ct,multi:!0})))}},4438:(o,s,r)=>{"use strict";function a(e,t){return Object.is(e,t)}r.d(s,{bc$:()=>Ia,iLQ:()=>ig,sZ2:()=>Ri,hnV:()=>l0,wjH:()=>Od,o8S:()=>Pc,BIS:()=>Ka,gRc:()=>hD,Ql9:()=>Mk,Ocv:()=>Pk,Z63:()=>ur,aKT:()=>Tc,uvJ:()=>us,zcH:()=>Ac,bkB:()=>Pl,ES_:()=>_d,$GK:()=>Sr,nKC:()=>ct,zZn:()=>Ts,_q3:()=>ow,MKu:()=>sw,xe9:()=>J0,Co$:()=>z1,Vns:()=>ef,SKi:()=>Vo,Xx1:()=>sa,Agw:()=>Ma,PLl:()=>Ws,rOR:()=>Cd,sFG:()=>gS,_9s:()=>Rb,czy:()=>Jf,WPN:()=>td,kdw:()=>Qo,C4Q:()=>Hm,NYb:()=>iT,giA:()=>xE,RxE:()=>tD,c1b:()=>a_,gXe:()=>pc,mal:()=>Qu,Tzd:()=>Ig,L39:()=>UO,EWP:()=>uw,sbv:()=>WS,a0P:()=>uR,Ol2:()=>Qb,w6W:()=>JS,QZP:()=>hw,Rfq:()=>Bt,oKB:()=>Oo,WQX:()=>tr,hFB:()=>Yc,naY:()=>Gk,Hps:()=>Gb,QuC:()=>ho,EmA:()=>lo,Udg:()=>$O,HJs:()=>dR,N4e:()=>ja,vPA:()=>hp,O8t:()=>Ip,H3F:()=>mE,H8p:()=>qo,KH2:()=>Ap,TgB:()=>il,wOt:()=>Kt,WHO:()=>wE,e01:()=>EE,lNU:()=>En,h9k:()=>hv,$MX:()=>Kf,ZF7:()=>jd,Kcf:()=>Ty,e5t:()=>Oy,UyX:()=>Iy,cWb:()=>My,osQ:()=>ky,H5H:()=>T0,Zy3:()=>At,mq5:()=>px,JZv:()=>Vt,TL3:()=>gO,LfX:()=>Xo,plB:()=>Xd,jNT:()=>a0,zjR:()=>CE,ngT:()=>pa,hVU:()=>rT,TL$:()=>Vi,Tbb:()=>cr,rcV:()=>qc,nM4:()=>tE,Vt3:()=>qb,GFd:()=>sE,OA$:()=>bc,Jv_:()=>xC,R7$:()=>gb,BMQ:()=>h0,HbH:()=>YE,ZvI:()=>nx,AVh:()=>y0,BUC:()=>rx,vxM:()=>ax,wni:()=>Xx,C6U:()=>qx,VBU:()=>X1,FsC:()=>Q1,jDH:()=>oi,G2t:()=>so,$C:()=>Zb,EJ8:()=>Z1,rXU:()=>Kd,nrm:()=>C0,eu8:()=>D0,bVm:()=>C_,qex:()=>x_,k0s:()=>E_,j41:()=>w_,RV6:()=>fx,xGo:()=>vf,Mr5:()=>S0,KVO:()=>Io,kS0:()=>$u,QTQ:()=>Pm,bIt:()=>k0,lsd:()=>Zx,joV:()=>Gr,qSk:()=>Pr,XpG:()=>Fx,nI1:()=>PC,bMT:()=>FC,i5U:()=>BC,SdG:()=>Ux,NAR:()=>Bx,Y8G:()=>g0,FS9:()=>N0,lJ4:()=>DC,eq3:()=>SC,l_i:()=>AC,sMw:()=>TC,ziG:()=>MC,lV:()=>IC,NyB:()=>Jx,mGM:()=>Qx,sdS:()=>eC,Dyx:()=>ux,Z7z:()=>cx,Vm6:()=>lx,Njj:()=>lu,eBV:()=>Pu,npT:()=>Wh,f$h:()=>Gh,B4B:()=>gm,n$t:()=>Qf,Aen:()=>tu,xc7:()=>_0,Kam:()=>O0,zvX:()=>A0,DNE:()=>t0,C5r:()=>UC,EFF:()=>uC,JRh:()=>F0,SpI:()=>M_,Lme:()=>B0,DH7:()=>yC,mxI:()=>$0,R50:()=>U0,GBs:()=>Yx}),r(467);let c=null,y=!1,w=1;const C=Symbol("SIGNAL");function T(e){const t=c;return c=e,t}const N={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 K(e){if(y)throw new Error("");if(null===c)return;c.consumerOnSignalRead(e);const t=c.nextProducerIndex++;$e(c),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Me(e){$e(e);for(let t=0;t0}function $e(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function st(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function ht(e){return void 0!==e.producerNode}function vt(e){const t=Object.create(yn);t.computation=e;const n=()=>{if(ne(t),K(t),t.value===ln)throw t.error;return t.value};return n[C]=t,n}const at=Symbol("UNSET"),Xt=Symbol("COMPUTING"),ln=Symbol("ERRORED"),yn={...N,value:at,dirty:!0,error:null,equal:a,producerMustRecompute:e=>e.value===at||e.value===Xt,producerRecomputeValue(e){if(e.value===Xt)throw new Error("Detected cycle in computations.");const t=e.value;e.value=Xt;const n=xe(e);let l;try{l=e.computation()}catch(p){l=ln,e.error=p}finally{Re(e,n)}t!==at&&t!==ln&&l!==ln&&e.equal(t,l)?e.value=t:(e.value=l,e.version++)}};let bn=function $n(){throw new Error};function Qe(){bn()}let Ge=null;function dt(e,t){me()||Qe(),e.equal(e.value,t)||(e.value=t,function se(e){e.version++,function Z(){w++}(),be(e),Ge?.()}(e))}const mt={...N,equal:a,value:void 0};const Rt=()=>{},Jt={...N,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Rt};var Kn=r(4412),Nt=r(1413),Qt=r(8359),an=r(6354);const En="https://g.co/ng/security#xss";class Kt extends Error{code;constructor(t,n){super(At(t,n)),this.code=t}}function At(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}const zt=Symbol("InputSignalNode#UNSET"),xn={...mt,transformFn:void 0,applyValueToInputSignal(e,t){dt(e,t)}};function ke(e,t){const n=Object.create(xn);function l(){if(K(n),n.value===zt)throw new Kt(-950,!1);return n.value}return n.value=e,n.transformFn=t?.transform,l[C]=n,l}function B(e){return{toString:e}.toString()}const j="__parameters__";function Tt(e,t,n){return B(()=>{const l=function ot(e){return function(...n){if(e){const l=e(...n);for(const p in l)this[p]=l[p]}}}(t);function p(...g){if(this instanceof p)return l.apply(this,g),this;const E=new p(...g);return O.annotation=E,O;function O(F,ie,Se){const Ve=F.hasOwnProperty(j)?F[j]:Object.defineProperty(F,j,{value:[]})[j];for(;Ve.length<=Se;)Ve.push(null);return(Ve[Se]=Ve[Se]||[]).push(E),F}}return n&&(p.prototype=Object.create(n.prototype)),p.prototype.ngMetadataName=e,p.annotationCls=p,p})}const Vt=globalThis;function Fn(e){for(let t in e)if(e[t]===Fn)return t;throw Error("Could not find renamed property on target object.")}function Bn(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function cr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(cr).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Jr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const _t=Fn({__forward_ref__:Fn});function Bt(e){return e.__forward_ref__=Bt,e.toString=function(){return cr(this())},e}function Ee(e){return lt(e)?e():e}function lt(e){return"function"==typeof e&&e.hasOwnProperty(_t)&&e.__forward_ref__===Bt}function oi(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function so(e){return{providers:e.providers||[],imports:e.imports||[]}}function bo(e){return Co(e,oo)||Co(e,Mo)}function Xo(e){return null!==bo(e)}function Co(e,t){return e.hasOwnProperty(t)?e[t]:null}function eo(e){return e&&(e.hasOwnProperty(Bi)||e.hasOwnProperty(Je))?e[Bi]:null}const oo=Fn({\u0275prov:Fn}),Bi=Fn({\u0275inj:Fn}),Mo=Fn({ngInjectableDef:Fn}),Je=Fn({ngInjectorDef:Fn});class ct{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=oi({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function kn(e){return e&&!!e.\u0275providers}const Un=Fn({\u0275cmp:Fn}),Jn=Fn({\u0275dir:Fn}),sr=Fn({\u0275pipe:Fn}),kr=Fn({\u0275mod:Fn}),mr=Fn({\u0275fac:Fn}),bi=Fn({__NG_ELEMENT_ID__:Fn}),si=Fn({__NG_ENV_ID__:Fn});function gr(e){return"string"==typeof e?e:null==e?"":String(e)}function ia(e,t){throw new Kt(-201,!1)}var Sr=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}(Sr||{});let oa;function ma(){return oa}function wo(e){const t=oa;return oa=e,t}function Ls(e,t,n){const l=bo(e);return l&&"root"==l.providedIn?void 0===l.value?l.value=l.factory():l.value:n&Sr.Optional?null:void 0!==t?t:void ia()}const Ki={},Ys="__NG_DI_FLAG__",Ni="ngTempTokenPath",ns=/\n/gm,rs="__source";let is;function Wi(e){const t=is;return is=e,t}function Es(e,t=Sr.Default){if(void 0===is)throw new Kt(-203,!1);return null===is?Ls(e,void 0,t):is.get(e,t&Sr.Optional?null:void 0,t)}function Io(e,t=Sr.Default){return(ma()||Es)(Ee(e),t)}function tr(e,t=Sr.Default){return Io(e,Eo(t))}function Eo(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function os(e){const t=[];for(let n=0;nArray.isArray(n)?Zo(n,t):t(n))}function _i(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Fa(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Y(e,t,n){let l=re(e,t);return l>=0?e[1|l]=n:(l=~l,function Xa(e,t,n,l){let p=e.length;if(p==t)e.push(n,l);else if(1===p)e.push(l,e[0]),e[0]=n;else{for(p--,e.push(e[p-1],e[p]);p>t;)e[p]=e[p-2],p--;e[t]=n,e[t+1]=l}}(e,l,t,n)),l}function je(e,t){const n=re(e,t);if(n>=0)return e[1|n]}function re(e,t){return function wt(e,t,n){let l=0,p=e.length>>n;for(;p!==l;){const g=l+(p-l>>1),E=e[g<t?p=g:l=g+1}return~(p<{n.push(E)};return Zo(t,E=>{const O=E;ya(O,g,[],l)&&(p||=[],p.push(O))}),void 0!==p&&Qa(p,g),n}function Qa(e,t){for(let n=0;n{t(g,l)})}}function ya(e,t,n,l){if(!(e=Ee(e)))return!1;let p=null,g=eo(e);const E=!g&&Dr(e);if(g||E){if(E&&!E.standalone)return!1;p=e}else{const F=e.ngModule;if(g=eo(F),!g)return!1;p=F}const O=l.has(p);if(E){if(O)return!1;if(l.add(p),E.dependencies){const F="function"==typeof E.dependencies?E.dependencies():E.dependencies;for(const ie of F)ya(ie,t,n,l)}}else{if(!g)return!1;{if(null!=g.imports&&!O){let ie;l.add(p);try{Zo(g.imports,Se=>{ya(Se,t,n,l)&&(ie||=[],ie.push(Se))})}finally{}void 0!==ie&&Qa(ie,t)}if(!O){const ie=ao(p)||(()=>new p);t({provide:p,useFactory:ie,deps:hn},p),t({provide:zr,useValue:p,multi:!0},p),t({provide:ur,useValue:()=>Io(p),multi:!0},p)}const F=g.providers;if(null!=F&&!O){const ie=e;ce(F,Se=>{t(Se,ie)})}}}return p!==e&&void 0!==e.providers}function ce(e,t){for(let n of e)kn(n)&&(n=n.\u0275providers),Array.isArray(n)?ce(n,t):t(n)}const Q=Fn({provide:String,useValue:Fn});function Le(e){return null!==e&&"object"==typeof e&&Q in e}function ni(e){return"function"==typeof e}const qo=new ct(""),Ba={},ku={};let nc;function wl(){return void 0===nc&&(nc=new Gi),nc}class us{}class Us extends us{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,l,p){super(),this.parent=n,this.source=l,this.scopes=p,rc(t,E=>this.processProvider(E)),this.records.set(hr,la(void 0,this)),p.has("environment")&&this.records.set(us,la(void 0,this));const g=this.records.get(qo);null!=g&&"string"==typeof g.value&&this.scopes.add(g.value),this.injectorDefTypes=new Set(this.get(zr,hn,Sr.Self))}destroy(){xl(this),this._destroyed=!0;const t=T(null);try{for(const l of this._ngOnDestroyHooks)l.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const l of n)l()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),T(t)}}onDestroy(t){return xl(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){xl(this);const n=Wi(this),l=wo(void 0);try{return t()}finally{Wi(n),wo(l)}}get(t,n=Ki,l=Sr.Default){if(xl(this),t.hasOwnProperty(si))return t[si](this);l=Eo(l);const g=Wi(this),E=wo(void 0);try{if(!(l&Sr.SkipSelf)){let F=this.records.get(t);if(void 0===F){const ie=function Ou(e){return"function"==typeof e||"object"==typeof e&&e instanceof ct}(t)&&bo(t);F=ie&&this.injectableDefInScope(ie)?la(Ua(t),Ba):null,this.records.set(t,F)}if(null!=F)return this.hydrate(t,F)}return(l&Sr.Self?wl():this.parent).get(t,n=l&Sr.Optional&&n===Ki?null:n)}catch(O){if("NullInjectorError"===O.name){if((O[Ni]=O[Ni]||[]).unshift(cr(t)),g)throw O;return function va(e,t,n,l){const p=e[Ni];throw t[rs]&&p.unshift(t[rs]),e.message=function Yo(e,t,n,l=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let p=cr(t);if(Array.isArray(t))p=t.map(cr).join(" -> ");else if("object"==typeof t){let g=[];for(let E in t)if(t.hasOwnProperty(E)){let O=t[E];g.push(E+":"+("string"==typeof O?JSON.stringify(O):cr(O)))}p=`{${g.join(", ")}}`}return`${n}${l?"("+l+")":""}[${p}]: ${e.replace(ns,"\n ")}`}("\n"+e.message,p,n,l),e.ngTokenPath=p,e[Ni]=null,e}(O,t,"R3InjectorError",this.source)}throw O}finally{wo(E),Wi(g)}}resolveInjectorInitializers(){const t=T(null),n=Wi(this),l=wo(void 0);try{const g=this.get(ur,hn,Sr.Self);for(const E of g)E()}finally{Wi(n),wo(l),T(t)}}toString(){const t=[],n=this.records;for(const l of n.keys())t.push(cr(l));return`R3Injector[${t.join(", ")}]`}processProvider(t){let n=ni(t=Ee(t))?t:Ee(t&&t.provide);const l=function Za(e){return Le(e)?la(void 0,e.useValue):la(El(e),Ba)}(t);if(!ni(t)&&!0===t.multi){let p=this.records.get(n);p||(p=la(void 0,Ba,!0),p.factory=()=>os(p.multi),this.records.set(n,p)),n=t,p.multi.push(t)}this.records.set(n,l)}hydrate(t,n){const l=T(null);try{return n.value===Ba&&(n.value=ku,n.value=n.factory()),"object"==typeof n.value&&n.value&&function vc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(l)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Ee(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 Ua(e){const t=bo(e),n=null!==t?t.factory:ao(e);if(null!==n)return n;if(e instanceof ct)throw new Kt(204,!1);if(e instanceof Function)return function Lo(e){if(e.length>0)throw new Kt(204,!1);const n=function Is(e){return e&&(e[oo]||e[Mo])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Kt(204,!1)}function El(e,t,n){let l;if(ni(e)){const p=Ee(e);return ao(p)||Ua(p)}if(Le(e))l=()=>Ee(e.useValue);else if(function vr(e){return!(!e||!e.useFactory)}(e))l=()=>e.useFactory(...os(e.deps||[]));else if(function Ut(e){return!(!e||!e.useExisting)}(e))l=()=>Io(Ee(e.useExisting));else{const p=Ee(e&&(e.useClass||e.provide));if(!function $a(e){return!!e.deps}(e))return ao(p)||Ua(p);l=()=>new p(...os(e.deps))}return l}function xl(e){if(e.destroyed)throw new Kt(205,!1)}function la(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function rc(e,t){for(const n of e)Array.isArray(n)?rc(n,t):n&&kn(n)?rc(n.\u0275providers,t):t(n)}function ja(e,t){e instanceof Us&&xl(e);const l=Wi(e),p=wo(void 0);try{return t()}finally{Wi(l),wo(p)}}function Wl(){return void 0!==ma()||null!=function to(){return is}()}function ba(e){if(!Wl())throw new Kt(-203,!1)}const Ui=0,Gn=1,Ar=2,So=3,no=4,$o=5,es=6,Po=7,Fr=8,fo=9,Os=10,Rr=11,po=12,ic=13,Va=14,ro=15,Ha=16,Di=17,$s=18,ca=19,No=20,$=21,de=22,q=23,_e=24,nt=25,_n=1,Cr=7,Li=9,Hr=10;var xi=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(xi||{});function Qr(e){return Array.isArray(e)&&"object"==typeof e[_n]}function di(e){return Array.isArray(e)&&!0===e[_n]}function Fo(e){return!!(4&e.flags)}function Wo(e){return e.componentOffset>-1}function hs(e){return!(1&~e.flags)}function jo(e){return!!e.template}function Rs(e){return!!(512&e[Ar])}class ou{previousValue;currentValue;firstChange;constructor(t,n,l){this.previousValue=t,this.currentValue=n,this.firstChange=l}isFirstChange(){return this.firstChange}}function Bc(e,t,n,l){null!==t?t.applyValueToInputSignal(t,l):e[n]=l}const bc=(()=>{const e=()=>da;return e.ngInherit=!0,e})();function da(e){return e.type.prototype.ngOnChanges&&(e.setInput=Lr),ul}function ul(){const e=Uc(this),t=e?.current;if(t){const n=e.previous;if(n===Ln)e.previous=t;else for(let l in t)n[l]=t[l];e.current=null,this.ngOnChanges(t)}}function Lr(e,t,n,l,p){const g=this.declaredInputs[l],E=Uc(e)||function ha(e,t){return e[tl]=t}(e,{previous:Ln,current:null}),O=E.current||(E.current={}),F=E.previous,ie=F[g];O[g]=new ou(ie&&ie.currentValue,n,F===Ln),Bc(e,t,p,n)}const tl="__ngSimpleChanges__";function Uc(e){return e[tl]||null}const Sa=function(e,t,n){},wc="svg";function Xi(e){for(;Array.isArray(e);)e=e[Ui];return e}function Tr(e,t){return Xi(t[e])}function xs(e,t){return Xi(t[e.index])}function L(e,t){return e.data[t]}function z(e,t){return e[t]}function P(e,t){const n=t[e];return Qr(n)?n:n[Ui]}function he(e){return!(128&~e[Ar])}function Ct(e,t){return null==t?null:e[t]}function vn(e){e[Di]=0}function nn(e){1024&e[Ar]||(e[Ar]|=1024,he(e)&&io(e))}function ri(e){return!!(9216&e[Ar]||e[_e]?.dirty)}function hi(e){e[Os].changeDetectionScheduler?.notify(9),64&e[Ar]&&(e[Ar]|=1024),ri(e)&&io(e)}function io(e){e[Os].changeDetectionScheduler?.notify(0);let t=Cs(e);for(;null!==t&&!(8192&t[Ar])&&(t[Ar]|=8192,he(t));)t=Cs(t)}function as(e,t){if(!(256&~e[Ar]))throw new Kt(911,!1);null===e[$]&&(e[$]=[]),e[$].push(t)}function Cs(e){const t=e[So];return di(t)?t[So]:t}const Wr={lFrame:Wn(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let sc=!1;function rh(){return Wr.bindingsEnabled}function xc(){return null!==Wr.skipHydrationRootTNode}function wn(){return Wr.lFrame.lView}function gi(){return Wr.lFrame.tView}function Pu(e){return Wr.lFrame.contextLView=e,e[Fr]}function lu(e){return Wr.lFrame.contextLView=null,e}function Mi(){let e=Ml();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ml(){return Wr.lFrame.currentTNode}function fs(e,t){const n=Wr.lFrame;n.currentTNode=e,n.isParent=t}function ac(){return Wr.lFrame.isParent}function jc(){Wr.lFrame.isParent=!1}function cd(){return sc}function ea(e){const t=sc;return sc=e,t}function js(){const e=Wr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wa(){return Wr.lFrame.bindingIndex++}function R(e){const t=Wr.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function oe(e,t){const n=Wr.lFrame;n.bindingIndex=n.bindingRootIndex=e,Be(t)}function Be(e){Wr.lFrame.currentDirectiveIndex=e}function gt(e){const t=Wr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function It(){return Wr.lFrame.currentQueryIndex}function Ht(e){Wr.lFrame.currentQueryIndex=e}function on(e){const t=e[Gn];return 2===t.type?t.declTNode:1===t.type?e[$o]:null}function An(e,t,n){if(n&Sr.SkipSelf){let p=t,g=e;for(;!(p=p.parent,null!==p||n&Sr.Host||(p=on(g),null===p||(g=g[Va],10&p.type))););if(null===p)return!1;t=p,e=g}const l=Wr.lFrame=zn();return l.currentTNode=t,l.lView=e,!0}function Zt(e){const t=zn(),n=e[Gn];Wr.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function zn(){const e=Wr.lFrame,t=null===e?null:e.child;return null===t?Wn(e):t}function Wn(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 nr(){const e=Wr.lFrame;return Wr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Mn=nr;function jn(){const e=nr();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 ir(){return Wr.lFrame.selectedIndex}function Vn(e){Wr.lFrame.selectedIndex=e}function dr(){const e=Wr.lFrame;return L(e.tView,e.selectedIndex)}function Pr(){Wr.lFrame.currentNamespace=wc}function Gr(){!function Ur(){Wr.lFrame.currentNamespace=null}()}let Qi=!0;function Ii(){return Qi}function Zi(e){Qi=e}function Ds(e,t){for(let n=t.directiveStart,l=t.directiveEnd;n=l)break}else t[F]<0&&(e[Di]+=65536),(O>14>16&&(3&e[Ar])===t&&(e[Ar]+=16384,mo(O,g)):mo(O,g)}const gs=-1;class Ss{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,l){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=l}}function Wc(e,t,n){let l=0;for(;lt){E=g-1;break}}}for(;g>16}(e),l=t;for(;n>0;)l=l[Va],n--;return l}let ih=!0;function hd(e){const t=ih;return ih=e,t}const du=255,fd=5;let oh=0;const Rl={};function hu(e,t){const n=pd(e,t);if(-1!==n)return n;const l=t[Gn];l.firstCreatePass&&(e.injectorIndex=t.length,sh(l.data,e),sh(t,null),sh(l.blueprint,null));const p=Gc(e,t),g=e.injectorIndex;if(ud(p)){const E=Uu(p),O=Dc(p,t),F=O[Gn].data;for(let ie=0;ie<8;ie++)t[g+ie]=O[E+ie]|F[E+ie]}return t[g+8]=p,g}function sh(e,t){e.push(0,0,0,0,0,0,0,0,t)}function pd(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Gc(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,l=null,p=t;for(;null!==p;){if(l=dh(p),null===l)return gs;if(n++,p=p[Va],-1!==l.injectorIndex)return l.injectorIndex|n<<16}return gs}function ah(e,t,n){!function ff(e,t,n){let l;"string"==typeof n?l=n.charCodeAt(0)||0:n.hasOwnProperty(bi)&&(l=n[bi]),null==l&&(l=n[bi]=oh++);const p=l&du;t.data[e+(p>>fd)]|=1<=0?t&du:Lp:t}(n);if("function"==typeof g){if(!An(t,e,l))return l&Sr.Host?md(p,0,l):Sc(t,n,l,p);try{let E;if(E=g(l),null!=E||l&Sr.Optional)return E;ia()}finally{Mn()}}else if("number"==typeof g){let E=null,O=pd(e,t),F=gs,ie=l&Sr.Host?t[ro][$o]:null;for((-1===O||l&Sr.SkipSelf)&&(F=-1===O?Gc(e,t):t[O+8],F!==gs&&gf(l,!1)?(E=t[Gn],O=Uu(F),t=Dc(F,t)):O=-1);-1!==O;){const Se=t[Gn];if(uh(g,O,Se.data)){const Ve=ch(O,t,n,E,l,ie);if(Ve!==Rl)return Ve}F=t[O+8],F!==gs&&gf(l,t[Gn].data[O+8]===ie)&&uh(g,O,t)?(E=Se,O=Uu(F),t=Dc(F,t)):O=-1}}return p}function ch(e,t,n,l,p,g){const E=t[Gn],O=E.data[e+8],Se=pu(O,E,n,null==l?Wo(O)&&ih:l!=E&&!!(3&O.type),p&Sr.Host&&g===O);return null!==Se?Nl(t,E,Se,O):Rl}function pu(e,t,n,l,p){const g=e.providerIndexes,E=t.data,O=1048575&g,F=e.directiveStart,Se=g>>20,Ot=p?O+Se:e.directiveEnd;for(let Lt=l?O:O+Se;Lt=F&&en.type===n)return Lt}if(p){const Lt=E[F];if(Lt&&jo(Lt)&&Lt.type===n)return F}return null}function Nl(e,t,n,l){let p=e[n];const g=t.data;if(function lc(e){return e instanceof Ss}(p)){const E=p;E.resolving&&function zi(e,t){throw t&&t.join(" > "),new Kt(-200,e)}(function ai(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():gr(e)}(g[n]));const O=hd(E.canSeeViewProviders);E.resolving=!0;const ie=E.injectImpl?wo(E.injectImpl):null;An(e,l,Sr.Default);try{p=e[n]=E.factory(void 0,g,e,l),t.firstCreatePass&&n>=l.directiveStart&&function Bo(e,t,n){const{ngOnChanges:l,ngOnInit:p,ngDoCheck:g}=t.type.prototype;if(l){const E=da(t);(n.preOrderHooks??=[]).push(e,E),(n.preOrderCheckHooks??=[]).push(e,E)}p&&(n.preOrderHooks??=[]).push(0-e,p),g&&((n.preOrderHooks??=[]).push(e,g),(n.preOrderCheckHooks??=[]).push(e,g))}(n,g[n],t)}finally{null!==ie&&wo(ie),hd(O),E.resolving=!1,Mn()}}return p}function uh(e,t,n){return!!(n[t+(e>>fd)]&1<{const t=e.prototype.constructor,n=t[mr]||gu(t),l=Object.prototype;let p=Object.getPrototypeOf(e.prototype).constructor;for(;p&&p!==l;){const g=p[mr]||gu(p);if(g&&g!==n)return g;p=Object.getPrototypeOf(p)}return g=>new g})}function gu(e){return lt(e)?()=>{const t=gu(Ee(e));return t&&t()}:ao(e)}function dh(e){const t=e[Gn],n=t.type;return 2===n?t.declTNode:1===n?e[$o]:null}function $u(e){return function fu(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const l=n.length;let p=0;for(;pIo(hr)});static __NG_ELEMENT_ID__=-1}class _d{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>$u(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}new ct("").__NG_ELEMENT_ID__=e=>{const t=Mi();if(null===t)throw new Kt(204,!1);if(2&t.type)return t.value;if(e&Sr.Optional)return null;throw new Kt(204,!1)};const mh=!1;let hc=(()=>class e{static __NG_ELEMENT_ID__=Kc;static __NG_ENV_ID__=n=>n})();class rl extends hc{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return as(this._lView,t),()=>function zo(e,t){if(null===e[$])return;const n=e[$].indexOf(t);-1!==n&&e[$].splice(n,1)}(this._lView,t)}}function Kc(){return new rl(wn())}class Ll{}const Hu=new ct("",{providedIn:"root",factory:()=>!1}),Ef=new ct(""),_u=new ct("");let il=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Kn.t(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(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 \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();const Pl=class gh extends Nt.B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Wl()&&(this.destroyRef=tr(hc,{optional:!0})??void 0,this.pendingTasks=tr(il,{optional:!0})??void 0)}emit(t){const n=T(null);try{super.next(t)}finally{T(n)}}subscribe(t,n,l){let p=t,g=n||(()=>null),E=l;if(t&&"object"==typeof t){const F=t;p=F.next?.bind(F),g=F.error?.bind(F),E=F.complete?.bind(F)}this.__isAsync&&(g=this.wrapInTimeout(g),p&&(p=this.wrapInTimeout(p)),E&&(E=this.wrapInTimeout(E)));const O=super.subscribe({next:p,error:g,complete:E});return t instanceof Qt.yU&&t.add(O),O}wrapInTimeout(t){return n=>{const l=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==l&&this.pendingTasks?.remove(l)})}}};function yu(...e){}function yd(e){let t,n;function l(){e=yu;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),l()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),l()})),()=>l()}function Wu(e){return queueMicrotask(()=>e()),()=>{e=yu}}const bd="isAngularZone",Xc=bd+"_ID";let xf=0;class Vo{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Pl(!1);onMicrotaskEmpty=new Pl(!1);onStable=new Pl(!1);onError=new Pl(!1);constructor(t){const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:l=!1,shouldCoalesceRunChangeDetection:p=!1,scheduleInRootZone:g=mh}=t;if(typeof Zone>"u")throw new Kt(908,!1);Zone.assertZonePatched();const E=this;E._nesting=0,E._outer=E._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(E._inner=E._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(E._inner=E._inner.fork(Zone.longStackTraceZoneSpec)),E.shouldCoalesceEventChangeDetection=!p&&l,E.shouldCoalesceRunChangeDetection=p,E.callbackScheduled=!1,E.scheduleInRootZone=g,function yh(e){const t=()=>{!function _h(e){function t(){yd(()=>{e.callbackScheduled=!1,bh(e),e.isCheckStableRunning=!0,vh(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),bh(e))}(e)},n=xf++;e._inner=e._inner.fork({name:"angular",properties:{[bd]:!0,[Xc]:n,[Xc+n]:!0},onInvokeTask:(l,p,g,E,O,F)=>{if(function wh(e){return Eh(e,"__ignore_ng_zone__")}(F))return l.invokeTask(g,E,O,F);try{return Df(e),l.invokeTask(g,E,O,F)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===E.type||e.shouldCoalesceRunChangeDetection)&&t(),Sf(e)}},onInvoke:(l,p,g,E,O,F,ie)=>{try{return Df(e),l.invoke(g,E,O,F,ie)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function Gp(e){return Eh(e,"__scheduler_tick__")}(F)&&t(),Sf(e)}},onHasTask:(l,p,g,E)=>{l.hasTask(g,E),p===g&&("microTask"==E.change?(e._hasPendingMicrotasks=E.microTask,bh(e),vh(e)):"macroTask"==E.change&&(e.hasPendingMacrotasks=E.macroTask))},onHandleError:(l,p,g,E)=>(l.handleError(g,E),e.runOutsideAngular(()=>e.onError.emit(E)),!1)})}(E)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(bd)}static assertInAngularZone(){if(!Vo.isInAngularZone())throw new Kt(909,!1)}static assertNotInAngularZone(){if(Vo.isInAngularZone())throw new Kt(909,!1)}run(t,n,l){return this._inner.run(t,n,l)}runTask(t,n,l,p){const g=this._inner,E=g.scheduleEventTask("NgZoneEvent: "+p,t,Cf,yu,yu);try{return g.runTask(E,n,l)}finally{g.cancelTask(E)}}runGuarded(t,n,l){return this._inner.runGuarded(t,n,l)}runOutsideAngular(t){return this._outer.run(t)}}const Cf={};function vh(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 bh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Df(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Sf(e){e._nesting--,vh(e)}class wd{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Pl;onMicrotaskEmpty=new Pl;onStable=new Pl;onError=new Pl;run(t,n,l){return t.apply(n,l)}runGuarded(t,n,l){return t.apply(n,l)}runOutsideAngular(t){return t()}runTask(t,n,l,p){return t.apply(n,l)}}function Eh(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class Ac{_console=console;handleError(t){this._console.error("ERROR",t)}}const Af=new ct("",{providedIn:"root",factory:()=>{const e=tr(Vo),t=tr(Ac);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function za(e,t){return ke(e,t)}const Yc=(za.required=function Kp(e){return ke(zt,e)},za);function Xp(){return ml(Mi(),wn())}function ml(e,t){return new Tc(xs(e,t))}let Tc=(()=>class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Xp})();function Vs(e){return e instanceof Tc?e.nativeElement:e}function Tf(){return this._results[Symbol.iterator]()}class Cd{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Nt.B}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,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 l=function _o(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function ss(e,t,n){if(e.length!==t.length)return!1;for(let l=0;lHs}),Hs="ng",Ws=new ct(""),Ma=new ct("",{providedIn:"platform",factory:()=>"unknown"}),Ia=new ct(""),Ka=new ct("",{providedIn:"root",factory:()=>ki().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Cg=new ct("",{providedIn:"root",factory:()=>!1});var qp=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(qp||{});const Oh=new ct(""),K_=new Set;function pa(e){K_.has(e)||(K_.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Od=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Od||{});let Tg=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();const X_=[Od.EarlyRead,Od.Write,Od.MixedReadWrite,Od.Read];let Y_=(()=>{class e{ngZone=tr(Vo);scheduler=tr(Ll);errorHandler=tr(Ac,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){tr(Oh,{optional:!0})}execute(){this.executing=!0;for(const n of X_)for(const l of this.sequences)if(!l.erroredOrDestroyed&&l.hooks[n])try{l.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>l.hooks[n](l.pipelinedValue),l.snapshot))}catch(p){l.erroredOrDestroyed=!0,this.errorHandler?.handleError(p)}this.executing=!1;for(const n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(const n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(7))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,l){return l?.run(qp.AFTER_NEXT_RENDER,n)??n()}static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();class Mg{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,l,p,g=null){this.impl=t,this.hooks=n,this.once=l,this.snapshot=g,this.unregisterOnDestroy=p?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function Ig(e,t){!t?.injector&&ba();const n=t?.injector??tr(Ts);return pa("NgAfterRender"),kg(e,n,t,!1)}function Qu(e,t){!t?.injector&&ba();const n=t?.injector??tr(Ts);return pa("NgAfterNextRender"),kg(e,n,t,!0)}function kg(e,t,n,l){const p=t.get(Tg);p.impl??=t.get(Y_);const g=t.get(Oh,null,{optional:!0}),E=n?.phase??Od.MixedReadWrite,O=!0!==n?.manualCleanup?t.get(hc):null,F=new Mg(p.impl,function Q_(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,E),l,O,g?.snapshot(null));return p.impl.register(F),F}let Wg=()=>null;function jf(e,t,n=!1){return Wg(e,t,n)}var pc=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(pc||{});let Hf,Wf;function $d(e){return function um(){if(void 0===Hf&&(Hf=null,Vt.trustedTypes))try{Hf=Vt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Hf}()?.createHTML(e)||e}function dm(){if(void 0===Wf&&(Wf=null,Vt.trustedTypes))try{Wf=Vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Wf}function ev(e){return dm()?.createHTML(e)||e}function nv(e){return dm()?.createScriptURL(e)||e}class ed{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${En})`}}class xy extends ed{getTypeName(){return"HTML"}}class Gf extends ed{getTypeName(){return"Style"}}class Cy extends ed{getTypeName(){return"Script"}}class Dy extends ed{getTypeName(){return"URL"}}class Sy extends ed{getTypeName(){return"ResourceURL"}}function qc(e){return e instanceof ed?e.changingThisBreaksApplicationSecurity:e}function jd(e,t){const n=function Ay(e){return e instanceof ed&&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 ${En})`)}return n===t}function Ty(e){return new xy(e)}function My(e){return new Gf(e)}function Iy(e){return new Cy(e)}function ky(e){return new Dy(e)}function Oy(e){return new Sy(e)}class Ry{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString($d(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}}class Ny{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=$d(t),n}}const Ly=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Kf(e){return(e=String(e)).match(Ly)?e:"unsafe:"+e}function Jc(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Vh(...e){const t={};for(const n of e)for(const l in n)n.hasOwnProperty(l)&&(t[l]=!0);return t}const rv=Jc("area,br,col,hr,img,wbr"),iv=Jc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ov=Jc("rp,rt"),Xf=Vh(rv,Vh(iv,Jc("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")),Vh(ov,Jc("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")),Vh(ov,iv)),fm=Jc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),av=Vh(fm,Jc("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"),Jc("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")),Fy=Jc("script,style,template");class lv{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,l=!0,p=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?l=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,l&&n.firstChild)p.push(n),n=$y(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let g=Uy(n);if(g){n=g;break}n=p.pop()}return this.buf.join("")}startElement(t){const n=pm(t).toLowerCase();if(!Xf.hasOwnProperty(n))return this.sanitizedSomething=!0,!Fy.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const l=t.attributes;for(let p=0;p"),!0}endElement(t){const n=pm(t).toLowerCase();Xf.hasOwnProperty(n)&&!rv.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(dv(t))}}function Uy(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw cv(t);return t}function $y(e){const t=e.firstChild;if(t&&function By(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw cv(t);return t}function pm(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function cv(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const jy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,uv=/([^\#-~ |!])/g;function dv(e){return e.replace(/&/g,"&").replace(jy,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(uv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Hh;function hv(e,t){let n=null;try{Hh=Hh||function zf(e){const t=new Ny(e);return function hm(){try{return!!(new window.DOMParser).parseFromString($d(""),"text/html")}catch{return!1}}()?new Ry(t):t}(e);let l=t?String(t):"";n=Hh.getInertBodyElement(l);let p=5,g=l;do{if(0===p)throw new Error("Failed to sanitize html because the input is unstable");p--,l=g,g=n.innerHTML,n=Hh.getInertBodyElement(l)}while(l!==g);return $d((new lv).sanitizeChildren(mm(n)||n))}finally{if(n){const l=mm(n)||n;for(;l.firstChild;)l.firstChild.remove()}}}function mm(e){return"content"in e&&function Vy(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var td=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}(td||{});function Wh(e){const t=Vd();return t?ev(t.sanitize(td.HTML,e)||""):jd(e,"HTML")?ev(qc(e)):hv(ki(),gr(e))}function gm(e){const t=Vd();return t?t.sanitize(td.URL,e)||"":jd(e,"URL")?qc(e):Kf(gr(e))}function Gh(e){const t=Vd();if(t)return nv(t.sanitize(td.RESOURCE_URL,e)||"");if(jd(e,"ResourceURL"))return nv(qc(e));throw new Kt(904,!1)}function Qf(e,t,n){return function Wy(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Gh:gm}(t,n)(e)}function Vd(){const e=wn();return e&&e[Os].sanitizer}const Hd=/^>|^->||--!>|)/g;function $l(e){return e instanceof Function?e():e}var Au=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Au||{}),Jf=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Jf||{});let Em;function xm(e,t){return Em(e,t)}function zd(e,t,n,l,p){if(null!=l){let g,E=!1;di(l)?g=l:Qr(l)&&(E=!0,l=l[Ui]);const O=Xi(l);0===e&&null!==n?null==p?kv(t,n,O):nd(t,n,O,p||null,!0):1===e&&null!==n?nd(t,n,O,p||null,!0):2===e?function Qh(e,t,n){e.removeChild(null,t,n)}(t,O,E):3===e&&t.destroyNode(O),null!=g&&function rb(e,t,n,l,p){const g=n[Cr];g!==Xi(n)&&zd(t,e,l,g,p);for(let O=Hr;Ot.replace(pv,"\u200b$1\u200b"))}(t))}function ep(e,t,n){return e.createElement(t,n)}function Tv(e,t){t[Os].changeDetectionScheduler?.notify(10),rp(e,t,t[Rr],2,null,null)}function Sm(e,t){const n=e[Li],l=t[So];(Qr(l)||t[ro]!==l[So][ro])&&(e[Ar]|=xi.HasTransplantedViews),null===n?e[Li]=[t]:n.push(t)}function Am(e,t){const n=e[Li],l=n.indexOf(t);n.splice(l,1)}function Kh(e,t){if(e.length<=Hr)return;const n=Hr+t,l=e[n];if(l){const p=l[Ha];null!==p&&p!==e&&Am(p,l),t>0&&(e[n-1][no]=l[no]);const g=Fa(e,Hr+t);!function Av(e,t){Tv(e,t),t[Ui]=null,t[$o]=null}(l[Gn],l);const E=g[$s];null!==E&&E.detachView(g[Gn]),l[So]=null,l[no]=null,l[Ar]&=-129}return l}function Xh(e,t){if(!(256&t[Ar])){const n=t[Rr];n.destroyNode&&rp(e,t,n,3,null,null),function eb(e){let t=e[po];if(!t)return tp(e[Gn],e);for(;t;){let n=null;if(Qr(t))n=t[po];else{const l=t[Hr];l&&(n=l)}if(!n){for(;t&&!t[no]&&t!==e;)Qr(t)&&tp(t[Gn],t),t=t[So];null===t&&(t=e),Qr(t)&&tp(t[Gn],t),n=t&&t[no]}t=n}}(t)}}function tp(e,t){if(256&t[Ar])return;const n=T(null);try{t[Ar]&=-129,t[Ar]|=256,t[_e]&&Ce(t[_e]),function Mv(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let l=0;l=0?l[O]():l[-O].unsubscribe(),E+=2}else n[E].call(l[n[E+1]]);null!==l&&(t[Po]=null);const p=t[$];if(null!==p){t[$]=null;for(let E=0;E-1){const{encapsulation:g}=e.data[l.directiveStart+p];if(g===pc.None||g===pc.Emulated)return null}return xs(l,n)}}(e,t.parent,n)}function nd(e,t,n,l,p){e.insertBefore(t,n,l,p)}function kv(e,t,n){e.appendChild(t,n)}function Ov(e,t,n,l,p){null!==l?nd(e,t,n,l,p):kv(e,t,n)}function Mm(e,t){return e.parentNode(t)}function Nv(e,t,n){return Pv(e,t,n)}let Im,Pv=function Lv(e,t,n){return 40&e.type?xs(e,n):null};function Yh(e,t,n,l){const p=Tm(e,l,t),g=t[Rr],O=Nv(l.parent||t[$o],l,t);if(null!=p)if(Array.isArray(n))for(let F=0;F-1){let g;for(;++pg?"":p[Se+1].toLowerCase(),2&l&&ie!==Ve){if(mc(l))return!1;E=!0}}}}else{if(!E&&!mc(l)&&!mc(F))return!1;if(E&&mc(F))continue;E=!1,l=F|1&l}}return mc(l)||E}function mc(e){return!(1&e)}function ub(e,t,n,l){if(null===t)return-1;let p=0;if(l||!n){let g=!1;for(;p-1)for(n++;n0?'="'+O+'"':"")+"]"}else 8&l?p+="."+E:4&l&&(p+=" "+E);else""!==p&&!mc(E)&&(t+=Hv(g,p),p=""),l=E,g=g||!mc(l);n++}return""!==p&&(t+=Hv(g,p)),t}const Si={};function gb(e=1){Wv(gi(),wn(),ir()+e,!1)}function Wv(e,t,n,l){if(!l)if(3&~t[Ar]){const g=e.preOrderHooks;null!==g&&jr(t,g,0,n)}else{const g=e.preOrderCheckHooks;null!==g&&yr(t,g,n)}Vn(n)}function Kd(e,t=Sr.Default){const n=wn();return null===n?Io(e,t):pf(Mi(),n,Ee(e),t)}function Pm(){throw new Error("invalid")}function Gv(e,t,n,l,p,g){const E=T(null);try{let O=null;p&Au.SignalBased&&(O=t[l][C]),null!==O&&void 0!==O.transformFn&&(g=O.transformFn(g)),p&Au.HasDecoratorInputTransform&&(g=e.inputTransforms[l].call(t,g)),null!==e.setInput?e.setInput(t,O,g,n,l):Bc(t,O,l,g)}finally{T(E)}}function Zh(e,t,n,l,p,g,E,O,F,ie,Se){const Ve=t.blueprint.slice();return Ve[Ui]=p,Ve[Ar]=1228|l,(null!==ie||e&&2048&e[Ar])&&(Ve[Ar]|=2048),vn(Ve),Ve[So]=Ve[Va]=e,Ve[Fr]=n,Ve[Os]=E||e&&e[Os],Ve[Rr]=O||e&&e[Rr],Ve[fo]=F||e&&e[fo]||null,Ve[$o]=g,Ve[ca]=function Eu(){return Yp++}(),Ve[es]=Se,Ve[No]=ie,Ve[ro]=2==t.type?e[ro]:Ve,Ve}function id(e,t,n,l,p){let g=e.data[t];if(null===g)g=function Fm(e,t,n,l,p){const g=Ml(),E=ac(),F=e.data[t]=function _r(e,t,n,l,p,g){let E=t?t.injectorIndex:-1,O=0;return xc()&&(O|=128),{type:n,index:l,insertBeforeIndex:null,injectorIndex:E,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:O,providerIndexes:0,value:p,attrs:g,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,E?g:g&&g.parent,n,t,l,p);return null===e.firstChild&&(e.firstChild=F),null!==g&&(E?null==g.child&&null!==F.parent&&(g.child=F):null===g.next&&(g.next=F,F.prev=g)),F}(e,t,n,l,p),function U(){return Wr.lFrame.inI18n}()&&(g.flags|=32);else if(64&g.type){g.type=n,g.value=l,g.attrs=p;const E=function Il(){const e=Wr.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();g.injectorIndex=null===E?-1:E.injectorIndex}return fs(g,!0),g}function _(e,t,n,l){if(0===n)return-1;const p=t.length;for(let g=0;gnt&&Wv(e,t,nt,!1),Sa(E?2:0,p),n(l,p)}finally{Vn(g),Sa(E?3:1,p)}}function d(e,t,n){if(Fo(t)){const l=T(null);try{const g=t.directiveEnd;for(let E=t.directiveStart;Enull;function ti(e,t,n,l,p){for(let g in t){if(!t.hasOwnProperty(g))continue;const E=t[g];if(void 0===E)continue;l??={};let O,F=Au.None;Array.isArray(E)?(O=E[0],F=E[1]):O=E;let ie=g;if(null!==p){if(!p.hasOwnProperty(g))continue;ie=p[g]}0===e?yi(l,n,ie,O,F):yi(l,n,ie,O)}return l}function yi(e,t,n,l,p){let g;e.hasOwnProperty(n)?(g=e[n]).push(t,l):g=e[n]=[t,l],void 0!==p&&g.push(p)}function To(e,t,n,l,p,g,E,O){const F=xs(t,n);let Se,ie=t.inputs;!O&&null!=ie&&(Se=ie[l])?(_b(e,n,Se,l,p),Wo(t)&&function ta(e,t){const n=P(t,e);16&n[Ar]||(n[Ar]|=64)}(n,t.index)):3&t.type&&(l=function ls(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(l),p=null!=E?E(p,t.value||"",l):p,g.setProperty(F,l,p))}function na(e,t,n,l){if(rh()){const p=null===l?null:{"":-1},g=function zv(e,t){const n=e.directiveRegistry;let l=null,p=null;if(n)for(let g=0;g0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(E)!=O&&E.push(O),E.push(n,l,g)}}(e,t,l,_(e,n,p.hostVars,Si),p)}function Gs(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Ms(e,t,n,l,p,g){const E=xs(e,t);!function Rc(e,t,n,l,p,g,E){if(null==g)e.removeAttribute(t,p,n);else{const O=null==E?gr(g):E(g,l||"",p);e.setAttribute(t,p,O,n)}}(t[Rr],E,g,e.value,n,l,p)}function bs(e,t,n,l,p,g){const E=g[t];if(null!==E)for(let O=0;O0&&(n[p-1][no]=t),l{io(e.lView)},consumerOnSignalRead(){this.lView[_e]=this}},f2={...N,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Cs(e.lView);for(;t&&!Vw(t[Gn]);)t=Cs(t);t&&nn(t)},consumerOnSignalRead(){this.lView[_e]=this}};function Vw(e){return 2!==e.type}function Hw(e){if(null===e[q])return;let t=!0;for(;t;){let n=!1;for(const l of e[q])l.dirty&&(n=!0,null===l.zone||Zone.current===l.zone?l.run():l.zone.run(()=>l.run()));t=n&&!!(8192&e[Ar])}}function Zv(e,t=!0,n=0){const p=e[Os].rendererFactory;p.begin?.();try{!function m2(e,t){const n=cd();try{ea(!0),wb(e,t);let l=0;for(;ri(e);){if(100===l)throw new Kt(103,!1);l++,wb(e,1)}}finally{ea(n)}}(e,n)}catch(E){throw t&&Yv(e,E),E}finally{p.end?.()}}function Gw(e,t,n,l){const p=t[Ar];if(!(256&~p))return;Zt(t);let O=!0,F=null,ie=null;Vw(e)?(ie=function l2(e){return e[_e]??function c2(e){const t=jw.pop()??Object.create(d2);return t.lView=e,t}(e)}(t),F=xe(ie)):null===function S(){return c}()?(O=!1,ie=function h2(e){const t=e[_e]??Object.create(f2);return t.lView=e,t}(t),F=xe(ie)):t[_e]&&(Ce(t[_e]),t[_e]=null);try{vn(t),function Bu(e){return Wr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&m(e,t,n,2,l);const Se=!(3&~p);if(Se){const Lt=e.preOrderCheckHooks;null!==Lt&&yr(t,Lt,null)}else{const Lt=e.preOrderHooks;null!==Lt&&jr(t,Lt,0,null),Fi(t,0)}if(function g2(e){for(let t=Yt(e);null!==t;t=qt(t)){if(!(t[Ar]&xi.HasTransplantedViews))continue;const n=t[Li];for(let l=0;l-1&&(Kh(t,l),Fa(n,l))}this._attachedToViewContainer=!1}Xh(this._lView[Gn],this._lView)}onDestroy(t){as(this._lView,t)}markForCheck(){jm(this._cdRefInjectingView||this._lView,4)}markForRefresh(){nn(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ar]&=-129}reattach(){hi(this._lView),this._lView[Ar]|=128}detectChanges(){this._lView[Ar]|=1024,Zv(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Kt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=Rs(this._lView),n=this._lView[Ha];null!==n&&!t&&Am(n,this._lView),Tv(this._lView[Gn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Kt(902,!1);this._appRef=t;const n=Rs(this._lView),l=this._lView[Ha];null!==l&&!n&&Sm(l,this._lView),hi(this._lView)}}let Hm=(()=>class e{static __NG_ELEMENT_ID__=b2})();const _2=Hm,y2=class extends _2{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,l){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=l}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,l){const p=lp(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:l});return new Vm(p)}};function b2(){return qv(Mi(),wn())}function qv(e,t){return 4&e.type?new y2(t,e,ml(e,t)):null}let m1=()=>null;function dp(e,t){return m1(e,t)}class pS{}class g1{}class mS{resolveComponentFactory(t){throw Error(`No component factory found for ${cr(t)}.`)}}class i_{static NULL=new mS}class Rb{}let gS=(()=>class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>function vS(){const e=wn(),n=P(Mi().index,e);return(Qr(n)?n:e)[Rr]}()})(),_S=(()=>{class e{static \u0275prov=oi({token:e,providedIn:"root",factory:()=>null})}return e})();function Xd(e){return!!Or(e)}function s_(e,t,n){let l=n?e.styles:null,p=n?e.classes:null,g=0;if(null!==t)for(let E=0;E0&&Uv(e,n,g.join(" "))}}(Ot,ra,en,l),void 0!==n&&function TS(e,t,n){const l=e.projection=[];for(let p=0;pclass e{static __NG_ELEMENT_ID__=IS})();function IS(){return x1(Mi(),wn())}const kS=a_,w1=class extends kS{_lContainer;_hostTNode;_hostLView;constructor(t,n,l){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=l}get element(){return ml(this._hostTNode,this._hostLView)}get injector(){return new As(this._hostTNode,this._hostLView)}get parentInjector(){const t=Gc(this._hostTNode,this._hostLView);if(ud(t)){const n=Dc(t,this._hostLView),l=Uu(t);return new As(n[Gn].data[l+8],n)}return new As(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=E1(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Hr}createEmbeddedView(t,n,l){let p,g;"number"==typeof l?p=l:null!=l&&(p=l.index,g=l.injector);const E=dp(this._lContainer,t.ssrId),O=t.createEmbeddedViewImpl(n||{},g,E);return this.insertImpl(O,p,qh(this._hostTNode,E)),O}createComponent(t,n,l,p,g){const E=t&&!function Jo(e){return"function"==typeof e}(t);let O;if(E)O=n;else{const en=n||{};O=en.index,l=en.injector,p=en.projectableNodes,g=en.environmentInjector||en.ngModuleRef}const F=E?t:new Jm(Dr(t)),ie=l||this.parentInjector;if(!g&&null==F.ngModule){const Rn=(E?ie:this.parentInjector).get(us,null);Rn&&(g=Rn)}const Se=Dr(F.componentType??{}),Ve=dp(this._lContainer,Se?.id??null),Lt=F.create(ie,p,Ve?.firstChild??null,g);return this.insertImpl(Lt.hostView,O,qh(this._hostTNode,Ve)),Lt}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,l){const p=t._lView;if(function We(e){return di(e[So])}(p)){const O=this.indexOf(t);if(-1!==O)this.detach(O);else{const F=p[So],ie=new w1(F,F[$o],F[So]);ie.detach(ie.indexOf(t))}}const g=this._adjustIndex(n),E=this._lContainer;return cp(E,p,g,l),t.attachToViewContainerRef(),_i(Pb(E),g,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=E1(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),l=Kh(this._lContainer,n);l&&(Fa(Pb(this._lContainer),n),Xh(l[Gn],l))}detach(t){const n=this._adjustIndex(t,-1),l=Kh(this._lContainer,n);return l&&null!=Fa(Pb(this._lContainer),n)?new Vm(l):null}_adjustIndex(t,n=0){return t??this.length+n}};function E1(e){return e[8]}function Pb(e){return e[8]||(e[8]=[])}function x1(e,t){let n;const l=t[e.index];return di(l)?n=l:(n=Xv(l,t,null,e),t[e.index]=n,Nc(t,n)),C1(n,t,e,l),new w1(n,e,t)}let C1=function S1(e,t,n,l){if(e[Cr])return;let p;p=8&n.type?Xi(l):function OS(e,t){const n=e[Rr],l=n.createComment(""),p=xs(t,e);return nd(n,Mm(n,p),l,function Rv(e,t){return e.nextSibling(t)}(n,p),!1),l}(t,n),e[Cr]=p},Fb=()=>!1;class Bb{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new Bb(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ub{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const l=null!==t.contentQueries?t.contentQueries[0]:n.length,p=[];for(let g=0;gt.trim())}(t):t}}class $b{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let l=0;l0)l.push(E[O/2]);else{const ie=g[O+1],Se=t[-F];for(let Ve=Hr;Ve(K(t),t.value);return n[C]=t,n}(e),l=n[C];return t?.equal&&(l.equal=t.equal),n.set=p=>dt(l,p),n.update=p=>function Ke(e,t){me()||Qe(),dt(e,t(e.value))}(l,p),n.asReadonly=zb.bind(n),n}function zb(){const e=this[C];if(void 0===e.readonlyFn){const t=()=>this();t[C]=e,e.readonlyFn=t}return e.readonlyFn}function N1(e){return Gb(e)&&"function"==typeof e.set}function Kb(e,t,n){let l;const p=vt(()=>{l._dirtyCounter();const g=function VS(e,t){const n=e._lView,l=e._queryIndex;if(void 0===n||void 0===l||4&n[Ar])return t?void 0:hn;const p=Hb(n,l),g=R1(n,l);return p.reset(g,Vs),t?p.first:p._changesDetected||void 0===e._flatValue?e._flatValue=p.toArray():e._flatValue}(l,e);if(t&&void 0===g)throw new Kt(-951,!1);return g});return l=p[C],l._dirtyCounter=hp(0),l._flatValue=void 0,p}function U1(e,t){return function L1(e){return Kb(!0,!1)}()}const WS=(U1.required=function HS(e,t){return function P1(e){return Kb(!0,!0)}()},U1);class ef{}class z1{}function JS(e,t){return new Xb(e,t??null,[])}class Xb extends ef{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new y1(this);constructor(t,n,l,p=!0){super(),this.ngModuleType=t,this._parent=n;const g=Or(t);this._bootstrapComponents=$l(g.bootstrap),this._r3Injector=wf(t,n,[{provide:ef,useValue:this},{provide:i_,useValue:this.componentFactoryResolver},...l],cr(t),new Set(["environment"])),p&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Yb extends z1{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Xb(this.moduleType,t,[])}}class K1 extends ef{injector;componentFactoryResolver=new y1(this);instance=null;constructor(t){super();const n=new Us([...t.providers,{provide:ef,useValue:this},{provide:i_,useValue:this.componentFactoryResolver}],t.parent||wl(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Qb(e,t,n=null){return new K1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let tA=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const l=Hl(0,n.type),p=l.length>0?Qb([l],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,p)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=oi({token:e,providedIn:"environment",factory:()=>new e(Io(us))})}return e})();function X1(e){return B(()=>{const t=q1(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Mc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?p=>p.get(tA).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||pc.Emulated,styles:e.styles||hn,_:null,schemas:e.schemas||null,tView:null,id:""};t.standalone&&pa("NgStandalone"),J1(n);const l=e.dependencies;return n.directiveDefs=c_(l,!1),n.pipeDefs=c_(l,!0),n.id=function oA(e){let t=0;const l=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,"function"==typeof e.consts?"":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];for(const g of l.join("|"))t=Math.imul(31,t)+g.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function nA(e){return Dr(e)||Ei(e)}function rA(e){return null!==e}function Zb(e){return B(()=>({type:e.type,bootstrap:e.bootstrap||hn,declarations:e.declarations||hn,imports:e.imports||hn,exports:e.exports||hn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Y1(e,t){if(null==e)return Ln;const n={};for(const l in e)if(e.hasOwnProperty(l)){const p=e[l];let g,E,O=Au.None;Array.isArray(p)?(O=p[0],g=p[1],E=p[2]??g):(g=p,E=p),t?(n[g]=O!==Au.None?[l,O]:l,t[g]=E):n[g]=l}return n}function Q1(e){return B(()=>{const t=q1(e);return J1(t),t})}function Z1(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function q1(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||Ln,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||hn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Y1(e.inputs,t),outputs:Y1(e.outputs),debugInfo:null}}function J1(e){e.features?.forEach(t=>t(e))}function c_(e,t){if(!e)return null;const n=t?ui:nA;return()=>("function"==typeof e?e():e).map(l=>n(l)).filter(rA)}function qb(e){let t=function eE(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const l=[e];for(;t;){let p;if(jo(e))p=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Kt(903,!1);p=t.\u0275dir}if(p){if(n){l.push(p);const E=e;E.inputs=u_(e.inputs),E.inputTransforms=u_(e.inputTransforms),E.declaredInputs=u_(e.declaredInputs),E.outputs=u_(e.outputs);const O=p.hostBindings;O&&uA(e,O);const F=p.viewQuery,ie=p.contentQueries;if(F&&lA(e,F),ie&&cA(e,ie),sA(e,p),Bn(e.outputs,p.outputs),jo(p)&&p.data.animation){const Se=e.data;Se.animation=(Se.animation||[]).concat(p.data.animation)}}const g=p.features;if(g)for(let E=0;E=0;l--){const p=e[l];p.hostVars=t+=p.hostVars,p.hostAttrs=fl(p.hostAttrs,n=fl(n,p.hostAttrs))}}(l)}function sA(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const l=t.inputs[n];if(void 0!==l&&(e.inputs[n]=l,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const p=Array.isArray(l)?l[0]:l;if(!t.inputTransforms.hasOwnProperty(p))continue;e.inputTransforms??={},e.inputTransforms[p]=t.inputTransforms[p]}}}function u_(e){return e===Ln?{}:e===hn?[]:e}function lA(e,t){const n=e.viewQuery;e.viewQuery=n?(l,p)=>{t(l,p),n(l,p)}:t}function cA(e,t){const n=e.contentQueries;e.contentQueries=n?(l,p,g)=>{t(l,p,g),n(l,p,g)}:t}function uA(e,t){const n=e.hostBindings;e.hostBindings=n?(l,p)=>{t(l,p),n(l,p)}:t}function tE(e){const t=n=>{const l=Array.isArray(e);null===n.hostDirectives?(n.findHostDirectiveDefs=nE,n.hostDirectives=l?e.map(Jb):[e]):l?n.hostDirectives.unshift(...e.map(Jb)):n.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function nE(e,t,n){if(null!==e.hostDirectives)for(const l of e.hostDirectives)if("function"==typeof l){const p=l();for(const g of p)rE(Jb(g),t,n)}else rE(l,t,n)}function rE(e,t,n){const l=Ei(e.directive);(function pA(e,t){for(const n in t)t.hasOwnProperty(n)&&(e[t[n]]=e[n])})(l.declaredInputs,e.inputs),nE(l,t,n),n.set(l,e),t.push(l)}function Jb(e){return"function"==typeof e?{directive:Ee(e),inputs:Ln,outputs:Ln}:{directive:Ee(e.directive),inputs:iE(e.inputs),outputs:iE(e.outputs)}}function iE(e){if(void 0===e||0===e.length)return Ln;const t={};for(let n=0;n{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const _E="ng";function rT(e,t){!function bE(e,t){if(typeof COMPILED>"u"||!COMPILED){const n=Vt;n[_E]??={},n[_E][e]=t}}(e,t)}const wE=new ct(""),EE=new ct("");let s0,iT=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(n,l,p){this._ngZone=n,this.registry=l,s0||(function oT(e){s0=e}(p),p.addToWindow(l)),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:()=>{Vo.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(l=>!l.updateCb||!l.updateCb(n)||(clearTimeout(l.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,l,p){let g=-1;l&&l>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(E=>E.timeoutId!==g),n()},l)),this._callbacks.push({doneCb:n,timeoutId:g,updateCb:p})}whenStable(n,l,p){if(p&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,l,p),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,l,p){return[]}static \u0275fac=function(l){return new(l||e)(Io(Vo),Io(xE),Io(EE))};static \u0275prov=oi({token:e,factory:e.\u0275fac})}return e})(),xE=(()=>{class e{_applications=new Map;registerApplication(n,l){this._applications.set(n,l)}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,l=!0){return s0?.findTestabilityInTree(this,n,l)??null}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function a0(e){return!!e&&"function"==typeof e.then}function CE(e){return!!e&&"function"==typeof e.subscribe}const l0=new ct("");let DE=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,l)=>{this.resolve=n,this.reject=l});appInits=tr(l0,{optional:!0})??[];injector=tr(Ts);constructor(){}runInitializers(){if(this.initialized)return;const n=[];for(const p of this.appInits){const g=ja(this.injector,p);if(a0(g))n.push(g);else if(CE(g)){const E=new Promise((O,F)=>{g.subscribe({complete:O,error:F})});n.push(E)}}const l=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{l()}).catch(p=>{this.reject(p)}),0===n.length&&l(),this.initialized=!0}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),c0=(()=>{class e{static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new SE})}return e})();class SE{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){const n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);const l=this.queues.get(n);l.has(t)||(this.queuedEffectCount++,l.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()}}const ig=new ct("");let Pc=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=tr(Af);afterRenderManager=tr(Tg);zonelessEnabled=tr(Hu);rootEffectScheduler=tr(c0);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Nt.B;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=tr(il).hasPendingTasks.pipe((0,an.T)(n=>!n));constructor(){tr(Oh,{optional:!0})}whenStable(){let n;return new Promise(l=>{n=this.isStable.subscribe({next:p=>{p&&l()}})}).finally(()=>{n.unsubscribe()})}_injector=tr(us);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,l){const p=n instanceof g1;if(!this._injector.get(DE).done)throw!p&&ho(n),new Kt(405,!1);let E;E=p?n:this._injector.get(i_).resolveComponentFactory(n),this.componentTypes.push(E.componentType);const O=function sT(e){return e.isBoundToModule}(E)?void 0:this._injector.get(ef),ie=E.create(Ts.NULL,[],l||E.selector,O),Se=ie.location.nativeElement,Ve=ie.injector.get(wE,null);return Ve?.registerApplication(Se),ie.onDestroy(()=>{this.detachView(ie.hostView),v_(this.components,ie),Ve?.unregisterApplication(Se)}),this._loadComponent(ie),ie}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(null!==this.tracingSnapshot){const l=this.tracingSnapshot;return this.tracingSnapshot=null,l.run(qp.CHANGE_DETECTION,this._tick),void l.dispose()}if(this._runningTick)throw new Kt(101,!1);const n=T(null);try{this._runningTick=!0,this.synchronize()}catch(l){this.internalErrorHandler(l)}finally{this._runningTick=!1,T(n),this.afterTick.next()}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Rb,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;0!==this.dirtyFlags&&n++<10;)this.synchronizeOnce()}synchronizeOnce(){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const n=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:l,notifyErrorHandler:p}of this.allViews)cT(l,p,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:n})=>ri(n))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(n){const l=n;this._views.push(l),l.attachToAppRef(this)}detachView(n){const l=n;v_(this._views,l),l.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(ig,[]).forEach(p=>p(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._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>v_(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Kt(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function v_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function cT(e,t,n,l){(n||ri(e))&&Zv(e,t,n&&!l?0:1)}function h0(e,t,n,l){const p=wn();return zs(p,Wa(),t)&&(gi(),Ms(dr(),p,e,t,n,l)),h0}function vp(e,t,n,l){return zs(e,Wa(),n)?t+gr(n)+l:Si}function _p(e,t,n,l,p,g){const O=tf(e,function kl(){return Wr.lFrame.bindingIndex}(),n,p);return R(2),O?t+gr(n)+l+gr(p)+g:Si}function __(e,t){return e<<17|t<<2}function Jd(e){return e>>17&32767}function f0(e){return 2|e}function rf(e){return(131068&e)>>2}function p0(e,t){return-131069&e|t<<2}function m0(e){return 1|e}function VE(e,t,n,l){const p=e[n+1],g=null===t;let E=l?Jd(p):rf(p),O=!1;for(;0!==E&&(!1===O||g);){const ie=e[E+1];XT(e[E],t)&&(O=!0,e[E+1]=l?m0(ie):f0(ie)),E=l?Jd(ie):rf(ie)}O&&(e[n+1]=l?f0(p):m0(p))}function XT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&re(e,t)>=0}const La={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function HE(e){return e.substring(La.key,La.keyEnd)}function YT(e){return e.substring(La.value,La.valueEnd)}function WE(e,t){const n=La.textEnd;return n===t?-1:(t=La.keyEnd=function qT(e,t,n){for(;t32;)t++;return t}(e,La.key=t,n),Dp(e,t,n))}function GE(e,t){const n=La.textEnd;let l=La.key=Dp(e,t,n);return n===l?-1:(l=La.keyEnd=function JT(e,t,n){let l;for(;t=65&&(-33&l)<=90||l>=48&&l<=57);)t++;return t}(e,l,n),l=KE(e,l,n),l=La.value=Dp(e,l,n),l=La.valueEnd=function eM(e,t,n){let l=-1,p=-1,g=-1,E=t,O=E;for(;E32&&(O=E),g=p,p=l,l=-33&F}return O}(e,l,n),KE(e,l,n))}function zE(e){La.key=0,La.keyEnd=0,La.value=0,La.valueEnd=0,La.textEnd=e.length}function Dp(e,t,n){for(;t=0;n=GE(t,n))qE(e,HE(t),YT(t))}function YE(e){ru(aM,Iu,e,!0)}function Iu(e,t){for(let n=function QT(e){return zE(e),WE(e,Dp(e,0,La.textEnd))}(t);n>=0;n=WE(t,n))Y(e,HE(t),!0)}function nu(e,t,n,l){const p=wn(),g=gi(),E=R(2);g.firstUpdatePass&&ZE(g,e,E,l),t!==Si&&zs(p,E,t)&&JE(g,g.data[ir()],p,p[Rr],e,p[E+1]=function cM(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=cr(qc(e)))),e}(t,n),l,E)}function ru(e,t,n,l){const p=gi(),g=R(2);p.firstUpdatePass&&ZE(p,null,g,l);const E=wn();if(n!==Si&&zs(E,g,n)){const O=p.data[ir()];if(tx(O,l)&&!QE(p,g)){let F=l?O.classesWithoutHost:O.stylesWithoutHost;null!==F&&(n=Jr(F,n||"")),v0(p,O,E,n,l)}else!function lM(e,t,n,l,p,g,E,O){p===Si&&(p=hn);let F=0,ie=0,Se=0=e.expandoStartIndex}function ZE(e,t,n,l){const p=e.data;if(null===p[n+1]){const g=p[ir()],E=QE(e,n);tx(g,l)&&null===t&&!E&&(t=!1),t=function nM(e,t,n,l){const p=gt(e);let g=l?t.residualClasses:t.residualStyles;if(null===p)0===(l?t.classBindings:t.styleBindings)&&(n=sg(n=b0(null,e,t,n,l),t.attrs,l),g=null);else{const E=t.directiveStylingLast;if(-1===E||e[E]!==p)if(n=b0(p,e,t,n,l),null===g){let F=function rM(e,t,n){const l=n?t.classBindings:t.styleBindings;if(0!==rf(l))return e[Jd(l)]}(e,t,l);void 0!==F&&Array.isArray(F)&&(F=b0(null,e,t,F[1],l),F=sg(F,t.attrs,l),function iM(e,t,n,l){e[Jd(n?t.classBindings:t.styleBindings)]=l}(e,t,l,F))}else g=function oM(e,t,n){let l;const p=t.directiveEnd;for(let g=1+t.directiveStylingLast;g0)&&(ie=!0)):Se=n,p)if(0!==F){const Ot=Jd(e[O+1]);e[l+1]=__(Ot,O),0!==Ot&&(e[Ot+1]=p0(e[Ot+1],l)),e[O+1]=function WT(e,t){return 131071&e|t<<17}(e[O+1],l)}else e[l+1]=__(O,0),0!==O&&(e[O+1]=p0(e[O+1],l)),O=l;else e[l+1]=__(F,0),0===O?O=l:e[F+1]=p0(e[F+1],l),F=l;ie&&(e[l+1]=f0(e[l+1])),VE(e,Se,l,!0),VE(e,Se,l,!1),function KT(e,t,n,l,p){const g=p?e.residualClasses:e.residualStyles;null!=g&&"string"==typeof t&&re(g,t)>=0&&(n[l+1]=m0(n[l+1]))}(t,Se,e,l,g),E=__(O,F),g?t.classBindings=E:t.styleBindings=E}(p,g,t,n,E,l)}}function b0(e,t,n,l,p){let g=null;const E=n.directiveEnd;let O=n.directiveStylingLast;for(-1===O?O=n.directiveStart:O++;O0;){const F=e[p],ie=Array.isArray(F),Se=ie?F[1]:F,Ve=null===Se;let Ot=n[p+1];Ot===Si&&(Ot=Ve?hn:void 0);let Lt=Ve?je(Ot,l):Se===l?Ot:void 0;if(ie&&!y_(Lt)&&(Lt=je(F,l)),y_(Lt)&&(O=Lt,E))return O;const en=e[p+1];p=E?Jd(en):rf(en)}if(null!==t){let F=g?t.residualClasses:t.residualStyles;null!=F&&(O=je(F,l))}return O}function y_(e){return void 0!==e}function tx(e,t){return!!(e.flags&(t?8:16))}function nx(e,t,n){ru(Y,Iu,vp(wn(),e,t,n),!0)}function rx(){return wn()[ro][Fr]}class _M{destroy(t){}updateValue(t,n){}swap(t,n){const l=Math.min(t,n),p=Math.max(t,n),g=this.detach(p);if(p-l>1){const E=this.detach(l);this.attach(l,g),this.attach(p,E)}else this.attach(l,g)}move(t,n){this.attach(n,this.detach(t))}}function w0(e,t,n,l,p){return e===n&&Object.is(t,l)?1:Object.is(p(e,t),p(n,l))?-1:0}function E0(e,t,n,l){return!(void 0===t||!t.has(l)||(e.attach(n,t.get(l)),t.delete(l),0))}function ix(e,t,n,l,p){if(E0(e,t,l,n(l,p)))e.updateValue(l,p);else{const g=e.create(l,p);e.attach(l,g)}}function ox(e,t,n,l){const p=new Set;for(let g=t;g<=n;g++)p.add(l(g,e.at(g)));return p}class sx{kvMap=new Map;_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 l=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const p=this._vMap;for(;p.has(l);)l=p.get(l);p.set(l,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,l]of this.kvMap)if(t(l,n),void 0!==this._vMap){const p=this._vMap;for(;p.has(l);)l=p.get(l),t(l,n)}}}function ax(e,t){pa("NgControlFlow");const n=wn(),l=Wa(),p=n[l]!==Si?n[l]:-1,g=-1!==p?b_(n,nt+p):void 0;if(zs(n,l,e)){const O=T(null);try{if(void 0!==g&&yb(g,0),-1!==e){const F=nt+e,ie=b_(n,F),Se=x0(n[Gn],F),Ve=dp(ie,Se.tView.ssrId);cp(ie,lp(n,Se,t,{dehydratedView:Ve}),0,qh(Se,Ve))}}finally{T(O)}}else if(void 0!==g){const O=$w(g,0);void 0!==O&&(O[Fr]=t)}}class bM{lContainer;$implicit;$index;constructor(t,n,l){this.lContainer=t,this.$implicit=n,this.$index=l}get $count(){return this.lContainer.length-Hr}}function lx(e){return e}class EM{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,l){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=l}}function cx(e,t,n,l,p,g,E,O,F,ie,Se,Ve,Ot){pa("NgControlFlow");const Lt=wn(),en=gi(),Rn=void 0!==F,qn=wn(),lr=O?E.bind(qn[ro][Fr]):E,Nn=new EM(Rn,lr);qn[nt+e]=Nn,ng(Lt,en,e+1,t,n,l,p,Ct(en.consts,g)),Rn&&ng(Lt,en,e+2,F,ie,Se,Ve,Ct(en.consts,Ot))}class xM extends _M{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,l){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=l}get length(){return this.lContainer.length-Hr}at(t){return this.getLView(t)[Fr].$implicit}attach(t,n){const l=n[es];this.needsIndexUpdate||=t!==this.length,cp(this.lContainer,n,t,qh(this.templateTNode,l))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function CM(e,t){return Kh(e,t)}(this.lContainer,t)}create(t,n){const l=dp(this.lContainer,this.templateTNode.tView.ssrId),p=lp(this.hostLView,this.templateTNode,new bM(this.lContainer,n,t),{dehydratedView:l});return this.operationsCounter?.recordCreate(),p}destroy(t){Xh(t[Gn],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Fr].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(F)})}(F,e,g.trackByFn),F.updateIndexes(),g.hasEmptyBlock){const ie=Wa(),Se=0===F.length;if(zs(l,ie,Se)){const Ve=n+2,Ot=b_(l,Ve);if(Se){const Lt=x0(p,Ve),en=dp(Ot,Lt.tView.ssrId);cp(Ot,lp(l,Lt,void 0,{dehydratedView:en}),0,qh(Lt,en))}else yb(Ot,0)}}}finally{T(t)}}function b_(e,t){return e[t]}function x0(e,t){return L(e,t)}function w_(e,t,n,l){const p=wn(),g=gi(),E=nt+e,O=p[Rr],F=g.firstCreatePass?function SM(e,t,n,l,p,g){const E=t.consts,F=id(t,e,2,l,Ct(E,p));return na(t,n,F,Ct(E,g)),null!==F.attrs&&s_(F,F.attrs,!1),null!==F.mergedAttrs&&s_(F,F.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,F),F}(E,g,p,t,n,l):g.data[E],ie=dx(g,p,F,O,t,e);p[E]=ie;const Se=hs(F);return fs(F,!0),$v(O,ie,F),!function pp(e){return!(32&~e.flags)}(F)&&Ii()&&Yh(g,p,ie,F),0===function nh(){return Wr.lFrame.elementDepthCount}()&&x(ie,p),function lf(){Wr.lFrame.elementDepthCount++}(),Se&&(v(g,p,F),d(g,F,p)),null!==l&&D(p,F),w_}function E_(){let e=Mi();ac()?jc():(e=e.parent,fs(e,!1));const t=e;(function uf(e){return Wr.skipHydrationRootTNode===e})(t)&&function ld(){Wr.skipHydrationRootTNode=null}(),function cf(){Wr.lFrame.elementDepthCount--}();const n=gi();return n.firstCreatePass&&(Ds(n,e),Fo(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function uc(e){return!!(8&e.flags)}(t)&&v0(n,t,wn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Cc(e){return!!(16&e.flags)}(t)&&v0(n,t,wn(),t.stylesWithoutHost,!1),E_}function C0(e,t,n,l){return w_(e,t,n,l),E_(),C0}let dx=(e,t,n,l,p,g)=>(Zi(!0),ep(l,p,function Yi(){return Wr.lFrame.currentNamespace}()));function x_(e,t,n){const l=wn(),p=gi(),g=e+nt,E=p.firstCreatePass?function MM(e,t,n,l,p){const g=t.consts,E=Ct(g,l),O=id(t,e,8,"ng-container",E);return null!==E&&s_(O,E,!0),na(t,n,O,Ct(g,p)),null!==t.queries&&t.queries.elementStart(t,O),O}(g,p,l,t,n):p.data[g];fs(E,!0);const O=hx(p,l,E,e);return l[g]=O,Ii()&&Yh(p,l,O,E),x(O,l),hs(E)&&(v(p,l,E),d(p,E,l)),null!=n&&D(l,E),x_}function C_(){let e=Mi();const t=gi();return ac()?jc():(e=e.parent,fs(e,!1)),t.firstCreatePass&&(Ds(t,e),Fo(e)&&t.queries.elementEnd(e)),C_}function D0(e,t,n){return x_(e,t,n),C_(),D0}let hx=(e,t,n,l)=>(Zi(!0),Dm(t[Rr],""));function fx(){return wn()}function S0(e,t,n){const l=wn();return zs(l,Wa(),t)&&To(gi(),dr(),l,e,t,l[Rr],n,!0),S0}function A0(e,t,n){const l=wn();if(zs(l,Wa(),t)){const g=gi(),E=dr();To(g,E,l,e,t,Uw(gt(g.data),E,l),n,!0)}return A0}const sf=void 0;var RM=["en",[["a","p"],["AM","PM"],sf],[["AM","PM"],sf,sf],[["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"]],sf,[["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"]],sf,[["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}",sf,"{1} 'at' {0}",sf],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function OM(e){const n=Math.floor(Math.abs(e)),l=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===l?1:5}];let Sp={};function T0(e){const t=function NM(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=mx(t);if(n)return n;const l=t.split("-")[0];if(n=mx(l),n)return n;if("en"===l)return RM;throw new Kt(701,!1)}function px(e){return T0(e)[Ap.PluralCase]}function mx(e){return e in Sp||(Sp[e]=Vt.ng&&Vt.ng.common&&Vt.ng.common.locales&&Vt.ng.common.locales[e]),Sp[e]}var Ap=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}(Ap||{});const D_="en-US";let gx=D_,Nx=(e,t,n)=>{};function k0(e,t,n,l){const p=wn(),g=gi(),E=Mi();return R0(g,p,p[Rr],E,e,t,l),k0}function O0(e,t){const n=Mi(),l=wn(),p=gi();return R0(p,l,Uw(gt(p.data),n,l),n,e,t),O0}function R0(e,t,n,l,p,g,E){const O=hs(l),ie=e.firstCreatePass&&Bw(e),Se=t[Fr],Ve=ap(t);let Ot=!0;if(3&l.type||E){const Rn=xs(l,t),qn=E?E(Rn):Rn,lr=Ve.length,Nn=E?Hi=>E(Xi(Hi[l.index])):l.index;let vi=null;if(!E&&O&&(vi=function xI(e,t,n,l){const p=e.cleanup;if(null!=p)for(let g=0;gF?O[F]:null}"string"==typeof E&&(g+=2)}return null}(e,t,p,l.index)),null!==vi)(vi.__ngLastListenerFn__||vi).__ngNextListenerFn__=g,vi.__ngLastListenerFn__=g,Ot=!1;else{g=Px(l,t,Se,g),Nx(Rn,p,g);const Hi=n.listen(qn,p,g);Ve.push(g,Hi),ie&&ie.push(p,Nn,lr,lr+1)}}else g=Px(l,t,Se,g);const Lt=l.outputs;let en;if(Ot&&null!==Lt&&(en=Lt[p])){const Rn=en.length;if(Rn)for(let qn=0;qn-1?P(e.index,t):t,5);let O=Lx(t,n,l,g),F=p.__ngNextListenerFn__;for(;F;)O=Lx(t,n,F,g)&&O,F=F.__ngNextListenerFn__;return O}}function Fx(e=1){return function Qn(e){return(Wr.lFrame.contextLView=function pr(e,t){for(;e>0;)t=t[Va],e--;return t}(e,Wr.lFrame.contextLView))[Fr]}(e)}function CI(e,t){let n=null;const l=function db(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 p=0;pn._dirtyCounter.update(l=>l+1))}(t,k1(e,n,l,p))}function Jx(e=1){Ht(It()+e)}function eC(e){return z(function Aa(){return Wr.lFrame.contextLView}(),nt+e)}function uC(e,t=""){const n=wn(),l=gi(),p=e+nt,g=l.firstCreatePass?id(l,p,1,t,null):l.data[p],E=dC(l,n,g,t,e);n[p]=E,Ii()&&Yh(l,n,E,g),fs(g,!1)}let dC=(e,t,n,l,p)=>(Zi(!0),function Cm(e,t){return e.createText(t)}(t[Rr],l));function F0(e){return M_("",e,""),F0}function M_(e,t,n){const l=wn(),p=vp(l,e,t,n);return p!==Si&&od(l,ir(),p),M_}function B0(e,t,n,l,p){const g=wn(),E=_p(g,e,t,n,l,p);return E!==Si&&od(g,ir(),E),B0}function U0(e,t,n){N1(t)&&(t=t());const l=wn();return zs(l,Wa(),t)&&To(gi(),dr(),l,e,t,l[Rr],n,!1),U0}function yC(e,t){const n=N1(e);return n&&e.set(t),n}function $0(e,t){const n=wn(),l=gi(),p=Mi();return R0(l,n,n[Rr],p,e,t),$0}function j0(e,t,n,l,p){if(e=Ee(e),Array.isArray(e))for(let g=0;g>20;if(ni(e)||!e.multi){const Lt=new Ss(ie,p,Kd),en=H0(F,t,p?Se:Se+Ot,Ve);-1===en?(ah(hu(O,E),g,F),V0(g,e,t.length),t.push(F),O.directiveStart++,O.directiveEnd++,p&&(O.providerIndexes+=1048576),n.push(Lt),E.push(Lt)):(n[en]=Lt,E[en]=Lt)}else{const Lt=H0(F,t,Se+Ot,Ve),en=H0(F,t,Se,Se+Ot),qn=en>=0&&n[en];if(p&&!qn||!p&&!(Lt>=0&&n[Lt])){ah(hu(O,E),g,F);const lr=function HI(e,t,n,l,p){const g=new Ss(e,n,Kd);return g.multi=[],g.index=t,g.componentProviders=0,EC(g,p,l&&!n),g}(p?VI:jI,n.length,p,l,ie);!p&&qn&&(n[en].providerFactory=lr),V0(g,e,t.length,0),t.push(F),O.directiveStart++,O.directiveEnd++,p&&(O.providerIndexes+=1048576),n.push(lr),E.push(lr)}else V0(g,e,Lt>-1?Lt:en,EC(n[p?en:Lt],ie,!p&&l));!p&&l&&qn&&n[en].componentProviders++}}}function V0(e,t,n,l){const p=ni(t),g=function Do(e){return!!e.useClass}(t);if(p||g){const F=(g?Ee(t.useClass):t).prototype.ngOnDestroy;if(F){const ie=e.destroyHooks||(e.destroyHooks=[]);if(!p&&t.multi){const Se=ie.indexOf(n);-1===Se?ie.push(n,[l,F]):ie[Se+1].push(l,F)}else ie.push(n,F)}}}function EC(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function H0(e,t,n,l){for(let p=n;p{n.providersResolver=(l,p)=>function $I(e,t,n){const l=gi();if(l.firstCreatePass){const p=jo(e);j0(n,l.data,l.blueprint,p,!0),j0(t,l.data,l.blueprint,p,!1)}}(l,p?p(e):e,t)}}function DC(e,t,n){const l=js()+e,p=wn();return p[l]===Si?Mu(p,l,n?t.call(n):t()):tg(p,l)}function SC(e,t,n,l){return kC(wn(),js(),e,t,n,l)}function AC(e,t,n,l,p){return OC(wn(),js(),e,t,n,l,p)}function TC(e,t,n,l,p,g){return function RC(e,t,n,l,p,g,E,O){const F=t+n;return function h_(e,t,n,l,p){const g=tf(e,t,n,l);return zs(e,t+2,p)||g}(e,F,p,g,E)?Mu(e,F+3,O?l.call(O,p,g,E):l(p,g,E)):hg(e,F+3)}(wn(),js(),e,t,n,l,p,g)}function MC(e,t,n,l,p,g,E){return function NC(e,t,n,l,p,g,E,O,F){const ie=t+n;return Lc(e,ie,p,g,E,O)?Mu(e,ie+4,F?l.call(F,p,g,E,O):l(p,g,E,O)):hg(e,ie+4)}(wn(),js(),e,t,n,l,p,g,E)}function IC(e,t,n,l,p,g,E,O,F,ie,Se){const Ve=js()+e,Ot=wn(),Lt=Lc(Ot,Ve,n,l,p,g);return Lc(Ot,Ve+4,E,O,F,ie)||Lt?Mu(Ot,Ve+8,Se?t.call(Se,n,l,p,g,E,O,F,ie):t(n,l,p,g,E,O,F,ie)):tg(Ot,Ve+8)}function hg(e,t){const n=e[t];return n===Si?void 0:n}function kC(e,t,n,l,p,g){const E=t+n;return zs(e,E,p)?Mu(e,E+1,g?l.call(g,p):l(p)):hg(e,E+1)}function OC(e,t,n,l,p,g,E){const O=t+n;return tf(e,O,p,g)?Mu(e,O+2,E?l.call(E,p,g):l(p,g)):hg(e,O+2)}function PC(e,t){const n=gi();let l;const p=e+nt;n.firstCreatePass?(l=function ZI(e,t){if(t)for(let n=t.length-1;n>=0;n--){const l=t[n];if(e===l.name)return l}}(t,n.pipeRegistry),n.data[p]=l,l.onDestroy&&(n.destroyHooks??=[]).push(p,l.onDestroy)):l=n.data[p];const g=l.factory||(l.factory=ao(l.type)),O=wo(Kd);try{const F=hd(!1),ie=g();return hd(F),function P0(e,t,n,l){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=l}(n,wn(),p,ie),ie}finally{wo(O)}}function FC(e,t,n){const l=e+nt,p=wn(),g=z(p,l);return fg(p,l)?kC(p,js(),t,g.transform,n,g):g.transform(n)}function BC(e,t,n,l){const p=e+nt,g=wn(),E=z(g,p);return fg(g,p)?OC(g,js(),t,E.transform,n,l,E):E.transform(n,l)}function fg(e,t){return e[Gn].data[t].pure}function UC(e,t){return qv(e,t)}class tD{full;major;minor;patch;constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}class Tk{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Mk=(()=>{class e{compileModuleSync(n){return new Yb(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const l=this.compileModuleSync(n),g=$l(Or(n).declarations).reduce((E,O)=>{const F=Dr(O);return F&&E.push(new Jm(F)),E},[]);return new Tk(l,g)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ok=(()=>{class e{zone=tr(Vo);changeDetectionScheduler=tr(Ll);applicationRef=tr(Pc);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Q0({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Vo({...Z0(),scheduleInRootZone:n}),[{provide:Vo,useFactory:e},{provide:ur,multi:!0,useFactory:()=>{const l=tr(Ok,{optional:!0});return()=>l.initialize()}},{provide:ur,multi:!0,useFactory:()=>{const l=tr(Nk);return()=>{l.initialize()}}},!0===t?{provide:Ef,useValue:!0}:[],{provide:_u,useValue:n??mh}]}function Z0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let Nk=(()=>{class e{subscription=new Qt.yU;initialized=!1;zone=tr(Vo);pendingTasks=tr(il);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(()=>{Vo.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Vo.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),mg=(()=>{class e{appRef=tr(Pc);taskService=tr(il);ngZone=tr(Vo);zonelessEnabled=tr(Hu);tracing=tr(Oh,{optional:!0});disableScheduling=tr(Ef,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Qt.yU;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Xc):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(tr(_u,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof wd||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&5===n)return;let l=!1;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 8:this.appRef.deferredDirtyFlags|=8;break;case 6:case 14:this.appRef.dirtyFlags|=2,l=!0;break;case 13:this.appRef.dirtyFlags|=16,l=!0;break;case 12:l=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(l))return;const p=this.useMicrotaskScheduler?Wu:yd;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>p(()=>this.tick())):this.ngZone.runOutsideAngular(()=>p(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Xc+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(l){throw this.taskService.remove(n),l}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Wu(()=>{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 \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const J0=new ct("",{providedIn:"root",factory:()=>tr(J0,Sr.Optional|Sr.SkipSelf)||function Lk(){return typeof $localize<"u"&&$localize.locale||D_}()}),Pk=new ct("",{providedIn:"root",factory:()=>"USD"}),O_=new ct("");function R_(e){return!e.moduleRef}let eh=null;function Gk(){return!1}let hD=(()=>class e{static __NG_ELEMENT_ID__=zk})();function zk(e){return function Kk(e,t,n){if(Wo(e)&&!n){const l=P(e.index,t);return new Vm(l,l)}return 175&e.type?new Vm(t[ro],t):null}(Mi(),wn(),!(16&~e))}class gD{constructor(){}supports(t){return d_(t)}create(t){return new qk(t)}}const Zk=(e,t)=>t;class qk{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||Zk}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,l=this._removalsHead,p=0,g=null;for(;n||l;){const E=!l||n&&n.currentIndex<_D(l,p,g)?n:l,O=_D(E,p,g),F=E.currentIndex;if(E===l)p--,l=l._nextRemoved;else if(n=n._next,null==E.previousIndex)p++;else{g||(g=[]);const ie=O-p,Se=F-p;if(ie!=Se){for(let Ot=0;Ot{E=this._trackByFn(p,O),null!==n&&Object.is(n.trackById,E)?(l&&(n=this._verifyReinsertion(n,O,E,p)),Object.is(n.item,O)||this._addIdentityChange(n,O)):(n=this._mismatch(n,O,E,p),l=!0),n=n._next,p++}),this.length=p;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,l,p){let g;return null===t?g=this._itTail:(g=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,g,p)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(l,p))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,g,p)):t=this._addAfter(new Jk(n,l),g,p),t}_verifyReinsertion(t,n,l,p){let g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null);return null!==g?t=this._reinsertAfter(g,t._prev,p):t.currentIndex!=p&&(t.currentIndex=p,this._addToMoves(t,p)),t}_truncate(t){for(;null!==t;){const 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,l){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const p=t._prevRemoved,g=t._nextRemoved;return null===p?this._removalsHead=g:p._nextRemoved=g,null===g?this._removalsTail=p:g._prevRemoved=p,this._insertAfter(t,n,l),this._addToMoves(t,l),t}_moveAfter(t,n,l){return this._unlink(t),this._insertAfter(t,n,l),this._addToMoves(t,l),t}_addAfter(t,n,l){return this._insertAfter(t,n,l),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,l){const p=null===n?this._itHead:n._next;return t._next=p,t._prev=n,null===p?this._itTail=t:p._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new vD),this._linkedRecords.put(t),t.currentIndex=l,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,l=t._next;return null===n?this._itHead=l:n._next=l,null===l?this._itTail=n:l._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 vD),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 Jk{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}}class eO{_head=null;_tail=null;add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let l;for(l=this._head;null!==l;l=l._nextDup)if((null===n||n<=l.currentIndex)&&Object.is(l.trackById,t))return l;return null}remove(t){const n=t._prevDup,l=t._nextDup;return null===n?this._head=l:n._nextDup=l,null===l?this._tail=n:l._prevDup=n,null===this._head}}class vD{map=new Map;put(t){const n=t.trackById;let l=this.map.get(n);l||(l=new eO,this.map.set(n,l)),l.add(t)}get(t,n){const p=this.map.get(t);return p?p.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 _D(e,t,n){const l=e.previousIndex;if(null===l)return l;let p=0;return n&&l{if(n&&n.key===p)this._maybeAddToChanges(n,l),this._appendAfter=n,n=n._next;else{const g=this._getOrCreateRecordForKey(p,l);n=this._insertBeforeOrAppend(n,g)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let l=n;null!==l;l=l._nextRemoved)l===this._mapHead&&(this._mapHead=null),this._records.delete(l.key),l._nextRemoved=l._next,l.previousValue=l.currentValue,l.currentValue=null,l._prev=null,l._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const l=t._prev;return n._next=t,n._prev=l,t._prev=n,l&&(l._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 p=this._records.get(t);this._maybeAddToChanges(p,n);const g=p._prev,E=p._next;return g&&(g._next=E),E&&(E._prev=g),p._next=null,p._prev=null,p}const l=new nO(t);return this._records.set(t,l),l.currentValue=n,this._addToAdditions(l),l}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,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(l=>n(t[l],l))}}class nO{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t}}function bD(){return new ow([new gD])}let ow=(()=>{class e{factories;static \u0275prov=oi({token:e,providedIn:"root",factory:bD});constructor(n){this.factories=n}static create(n,l){if(null!=l){const p=l.factories.slice();n=n.concat(p)}return new e(n)}static extend(n){return{provide:e,useFactory:l=>e.create(n,l||bD()),deps:[[e,new Qo,new sa]]}}find(n){const l=this.factories.find(p=>p.supports(n));if(null!=l)return l;throw new Kt(901,!1)}}return e})();function wD(){return new sw([new yD])}let sw=(()=>{class e{static \u0275prov=oi({token:e,providedIn:"root",factory:wD});factories;constructor(n){this.factories=n}static create(n,l){if(l){const p=l.factories.slice();n=n.concat(p)}return new e(n)}static extend(n){return{provide:e,useFactory:l=>e.create(n,l||wD()),deps:[[e,new Qo,new sa]]}}find(n){const l=this.factories.find(p=>p.supports(n));if(l)return l;throw new Kt(901,!1)}}return e})();function gO(e){try{const{rootComponent:t,appProviders:n,platformProviders:l}=e,p=function Wk(e=[]){if(eh)return eh;const t=function cD(e=[],t){return Ts.create({name:t,providers:[{provide:qo,useValue:"platform"},{provide:O_,useValue:new Set([()=>eh=null])},...e]})}(e);return eh=t,function AE(){!function bt(e){bn=e}(()=>{throw new Kt(600,!1)})}(),function uD(e){const t=e.get(Ws,null);ja(e,()=>{t?.forEach(n=>n())})}(t),t}(l),g=[Q0({}),{provide:Ll,useExisting:mg},...n||[]];return function sD(e){const t=R_(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Vo);return n.run(()=>{R_(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const l=t.get(Ac,null);let p;if(n.runOutsideAngular(()=>{p=n.onError.subscribe({next:g=>{l.handleError(g)}})}),R_(e)){const g=()=>t.destroy(),E=e.platformInjector.get(O_);E.add(g),t.onDestroy(()=>{p.unsubscribe(),E.delete(g)})}else{const g=()=>e.moduleRef.destroy(),E=e.platformInjector.get(O_);E.add(g),e.moduleRef.onDestroy(()=>{v_(e.allPlatformModules,e.moduleRef),p.unsubscribe(),E.delete(g)})}return function lT(e,t,n){try{const l=n();return a0(l)?l.catch(p=>{throw t.runOutsideAngular(()=>e.handleError(p)),p}):l}catch(l){throw t.runOutsideAngular(()=>e.handleError(l)),l}}(l,n,()=>{const g=t.get(DE);return g.runInitializers(),g.donePromise.then(()=>{if(function BM(e){"string"==typeof e&&(gx=e.toLowerCase().replace(/_/g,"-"))}(t.get(J0,D_)||D_),R_(e)){const O=t.get(Pc);return void 0!==e.rootComponent&&O.bootstrap(e.rootComponent),O}return function jk(e,t){const n=e.injector.get(Pc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(l=>n.bootstrap(l));else{if(!e.instance.ngDoBootstrap)throw new Kt(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new K1({providers:g,parent:p,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:p,rootComponent:t})}catch(t){return Promise.reject(t)}}function UO(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function $O(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function uw(e,t){pa("NgSignals");const n=vt(e);return t?.equal&&(n[C].equal=t.equal),n}function Ip(e){const t=T(null);try{return e()}finally{T(t)}}let YD=(()=>class e{view;node;constructor(n,l){this.view=n,this.node=l}static __NG_ELEMENT_ID__=zO})();function zO(){return new YD(wn(),Mi())}let XO=(()=>{class e extends SE{pendingTasks=tr(il);taskId=null;schedule(n){super.schedule(n),null===this.taskId&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{null!==this.taskId&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();class YO{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(t,n,l,p,g,E){this.scheduler=t,this.effectFn=n,this.zone=l,this.injector=g,this.watcher=function Ze(e,t,n){const l=Object.create(Jt);n&&(l.consumerAllowSignalWrites=!0),l.fn=e,l.schedule=t;const p=F=>{l.cleanupFn=F};return l.ref={notify:()=>pe(l),run:()=>{if(null===l.fn)return;if(function A(){return y}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(l.dirty=!1,l.hasRun&&!Me(l))return;l.hasRun=!0;const F=xe(l);try{l.cleanupFn(),l.cleanupFn=Rt,l.fn(p)}finally{Re(l,F)}},cleanup:()=>l.cleanupFn(),destroy:()=>function E(F){(function g(F){return null===F.fn&&null===F.schedule})(F)||(Ce(F),F.cleanupFn(),F.fn=null,F.schedule=null,F.cleanupFn=Rt)}(l),[C]:l},l.ref}(O=>this.runEffect(O),()=>this.schedule(),E),this.unregisterOnDestroy=p?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Ac,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}let dw=!1;class qO{[C];constructor(t){this[C]=t}destroy(){this[C].destroy()}}function hw(e,t){if(dw)return function ZO(e,t){pa("NgSignals"),!t?.injector&&ba();const n=t?.injector??tr(Ts),l=!0!==t?.manualCleanup?n.get(hc):null,p=new YO(n.get(XO),e,typeof Zone>"u"?null:Zone.current,l,n,t?.allowSignalWrites??!1),g=n.get(hD,null,{optional:!0});return g&&8&g._lView[Ar]?(g._lView[de]??=[]).push(p.watcher.notify):p.watcher.notify(),p}(e,t);pa("NgSignals"),!t?.injector&&ba();const n=t?.injector??tr(Ts);let p,l=!0!==t?.manualCleanup?n.get(hc):null;const g=n.get(YD,null,{optional:!0}),E=n.get(Ll);return null===g||t?.forceRoot?p=function nR(e,t,n){const l=Object.create(JO);return l.fn=e,l.scheduler=t,l.notifier=n,l.zone=typeof Zone<"u"?Zone.current:null,l.scheduler.schedule(l),l.notifier.notify(13),l}(e,n.get(c0),E):(p=function tR(e,t,n){const l=Object.create(eR);return l.view=e,l.zone=typeof Zone<"u"?Zone.current:null,l.notifier=t,l.fn=n,e[q]??=new Set,e[q].add(l),l.consumerMarkedDirty(l),l}(g.view,E,e),l instanceof rl&&l._lView===g.view&&(l=null)),p.injector=n,null!==l&&(p.onDestroyFn=l.onDestroy(()=>p.destroy())),new qO(p)}const QD={...N,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,onDestroyFn:yu,run(){if(this.dirty=!1,this.hasRun&&!Me(this))return;this.hasRun=!0;const e=l=>(this.cleanupFns??=[]).push(l),t=xe(this),n=ea(!1);try{this.maybeCleanup(),this.fn(e)}finally{ea(n),Re(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}},JO={...QD,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){Ce(this),this.onDestroyFn(),this.maybeCleanup()}},eR={...QD,consumerMarkedDirty(){this.view[Ar]|=8192,io(this.view),this.notifier.notify(14)},destroy(){Ce(this),this.onDestroyFn(),this.maybeCleanup(),this.view[q]?.delete(this)}};function uR(e,t){const n=Dr(e),l=t.elementInjector||wl();return new Jm(n).create(l,t.projectableNodes,t.hostElement,t.environmentInjector)}function dR(e){const t=Dr(e);if(!t)return null;const n=new Jm(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:(o,s,r)=>{"use strict";r.d(s,{BC:()=>an,JD:()=>tr,Q0:()=>ma,X1:()=>ya,YN:()=>Qa,cV:()=>kn,cb:()=>Xn,cz:()=>Te,hs:()=>kr,j4:()=>rs,k0:()=>Me,kq:()=>A,l_:()=>ns,me:()=>be,ok:()=>lo,qT:()=>Sr,tU:()=>Ln,vO:()=>fn,vS:()=>ia,xq:()=>Ya,ze:()=>Oo});var i=r(4438),a=r(177),c=r(6648),y=r(7468),w=r(1413),C=r(6354);let T=(()=>{class ue{_renderer;_elementRef;onChange=Q=>{};onTouched=()=>{};constructor(Q,Le){this._renderer=Q,this._elementRef=Le}setProperty(Q,Le){this._renderer.setProperty(this._elementRef.nativeElement,Q,Le)}registerOnTouched(Q){this.onTouched=Q}registerOnChange(Q){this.onChange=Q}setDisabledState(Q){this.setProperty("disabled",Q)}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(i.sFG),i.rXU(i.aKT))};static \u0275dir=i.FsC({type:ue})}return ue})(),S=(()=>{class ue extends T{static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,features:[i.Vt3]})}return ue})();const A=new i.nKC(""),K={provide:A,useExisting:(0,i.Rfq)(()=>be),multi:!0},ne=new i.nKC("");let be=(()=>{class ue extends T{_compositionMode;_composing=!1;constructor(Q,Le,Ut){super(Q,Le),this._compositionMode=Ut,null==this._compositionMode&&(this._compositionMode=!function Z(){const ue=(0,a.QT)()?(0,a.QT)().getUserAgent():"";return/android (\d+)/.test(ue.toLowerCase())}())}writeValue(Q){this.setProperty("value",Q??"")}_handleInput(Q){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Q)}_compositionStart(){this._composing=!0}_compositionEnd(Q){this._composing=!1,this._compositionMode&&this.onChange(Q)}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(ne,8))};static \u0275dir=i.FsC({type:ue,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(Le,Ut){1&Le&&i.bIt("input",function(ni){return Ut._handleInput(ni.target.value)})("blur",function(){return Ut.onTouched()})("compositionstart",function(){return Ut._compositionStart()})("compositionend",function(ni){return Ut._compositionEnd(ni.target.value)})},standalone:!1,features:[i.Jv_([K]),i.Vt3]})}return ue})();function me(ue){return null==ue||("string"==typeof ue||Array.isArray(ue))&&0===ue.length}function pe(ue){return null!=ue&&"number"==typeof ue.length}const Te=new i.nKC(""),xe=new i.nKC(""),Re=/^(?=.{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 Me{static min(ce){return function Ce(ue){return ce=>{if(me(ce.value)||me(ue))return null;const Q=parseFloat(ce.value);return!isNaN(Q)&&Q{if(me(ce.value)||me(ue))return null;const Q=parseFloat(ce.value);return!isNaN(Q)&&Q>ue?{max:{max:ue,actual:ce.value}}:null}}(ce)}static required(ce){return ae(ce)}static requiredTrue(ce){return Ie(ce)}static email(ce){return function $e(ue){return me(ue.value)||Re.test(ue.value)?null:{email:!0}}(ce)}static minLength(ce){return function st(ue){return ce=>me(ce.value)||!pe(ce.value)?null:ce.value.length{if(me(Le.value))return null;const Ut=Le.value;return ce.test(Ut)?null:{pattern:{requiredPattern:Q,actualValue:Ut}}}}(ce)}static nullValidator(ce){return null}static compose(ce){return bt(ce)}static composeAsync(ce){return Fe(ce)}}function ae(ue){return me(ue.value)?{required:!0}:null}function Ie(ue){return!0===ue.value?null:{required:!0}}function ht(ue){return ce=>pe(ce.value)&&ce.value.length>ue?{maxlength:{requiredLength:ue,actualLength:ce.value.length}}:null}function at(ue){return null}function Xt(ue){return null!=ue}function ln(ue){return(0,i.jNT)(ue)?(0,c.H)(ue):ue}function yn(ue){let ce={};return ue.forEach(Q=>{ce=null!=Q?{...ce,...Q}:ce}),0===Object.keys(ce).length?null:ce}function $n(ue,ce){return ce.map(Q=>Q(ue))}function Qe(ue){return ue.map(ce=>function bn(ue){return!ue.validate}(ce)?ce:Q=>ce.validate(Q))}function bt(ue){if(!ue)return null;const ce=ue.filter(Xt);return 0==ce.length?null:function(Q){return yn($n(Q,ce))}}function Ge(ue){return null!=ue?bt(Qe(ue)):null}function Fe(ue){if(!ue)return null;const ce=ue.filter(Xt);return 0==ce.length?null:function(Q){const Le=$n(Q,ce).map(ln);return(0,y.p)(Le).pipe((0,C.T)(yn))}}function Ft(ue){return null!=ue?Fe(Qe(ue)):null}function ze(ue,ce){return null===ue?[ce]:Array.isArray(ue)?[...ue,ce]:[ue,ce]}function dt(ue){return ue._rawValidators}function Ke(ue){return ue._rawAsyncValidators}function He(ue){return ue?Array.isArray(ue)?ue:[ue]:[]}function mt(ue,ce){return Array.isArray(ue)?ue.includes(ce):ue===ce}function se(ue,ce){const Q=He(ce);return He(ue).forEach(Ut=>{mt(Q,Ut)||Q.push(Ut)}),Q}function Ze(ue,ce){return He(ce).filter(Q=>!mt(ue,Q))}class Rt{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(ce){this._rawValidators=ce||[],this._composedValidatorFn=Ge(this._rawValidators)}_setAsyncValidators(ce){this._rawAsyncValidators=ce||[],this._composedAsyncValidatorFn=Ft(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(ce){this._onDestroyCallbacks.push(ce)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ce=>ce()),this._onDestroyCallbacks=[]}reset(ce=void 0){this.control&&this.control.reset(ce)}hasError(ce,Q){return!!this.control&&this.control.hasError(ce,Q)}getError(ce,Q){return this.control?this.control.getError(ce,Q):null}}class Jt extends Rt{name;get formDirective(){return null}get path(){return null}}class fn extends Rt{_parent=null;name=null;valueAccessor=null}class Kn{_cd;constructor(ce){this._cd=ce}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 an=(()=>{class ue extends Kn{constructor(Q){super(Q)}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(fn,2))};static \u0275dir=i.FsC({type:ue,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Le,Ut){2&Le&&i.AVh("ng-untouched",Ut.isUntouched)("ng-touched",Ut.isTouched)("ng-pristine",Ut.isPristine)("ng-dirty",Ut.isDirty)("ng-valid",Ut.isValid)("ng-invalid",Ut.isInvalid)("ng-pending",Ut.isPending)},standalone:!1,features:[i.Vt3]})}return ue})(),Xn=(()=>{class ue extends Kn{constructor(Q){super(Q)}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Jt,10))};static \u0275dir=i.FsC({type:ue,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Le,Ut){2&Le&&i.AVh("ng-untouched",Ut.isUntouched)("ng-touched",Ut.isTouched)("ng-pristine",Ut.isPristine)("ng-dirty",Ut.isDirty)("ng-valid",Ut.isValid)("ng-invalid",Ut.isInvalid)("ng-pending",Ut.isPending)("ng-submitted",Ut.isSubmitted)},standalone:!1,features:[i.Vt3]})}return ue})();const Pn="VALID",Fn="INVALID",Bn="PENDING",cr="DISABLED";class Jr{}class Xr extends Jr{value;source;constructor(ce,Q){super(),this.value=ce,this.source=Q}}class _t extends Jr{pristine;source;constructor(ce,Q){super(),this.pristine=ce,this.source=Q}}class Bt extends Jr{touched;source;constructor(ce,Q){super(),this.touched=ce,this.source=Q}}class Ee extends Jr{status;source;constructor(ce,Q){super(),this.status=ce,this.source=Q}}class lt extends Jr{source;constructor(ce){super(),this.source=ce}}class Pe extends Jr{source;constructor(ce){super(),this.source=ce}}function kt(ue){return(or(ue)?ue.validators:ue)||null}function Pt(ue,ce){return(or(ce)?ce.asyncValidators:ue)||null}function or(ue){return null!=ue&&!Array.isArray(ue)&&"object"==typeof ue}function Mr(ue,ce,Q){const Le=ue.controls;if(!(ce?Object.keys(Le):Le).length)throw new i.wOt(1e3,"");if(!Le[Q])throw new i.wOt(1001,"")}function ii(ue,ce,Q){ue._forEachChild((Le,Ut)=>{if(void 0===Q[Ut])throw new i.wOt(1002,"")})}class ci{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(ce,Q){this._assignValidators(ce),this._assignAsyncValidators(Q)}get validator(){return this._composedValidatorFn}set validator(ce){this._rawValidators=this._composedValidatorFn=ce}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ce){this._rawAsyncValidators=this._composedAsyncValidatorFn=ce}get parent(){return this._parent}get status(){return(0,i.O8t)(this.statusReactive)}set status(ce){(0,i.O8t)(()=>this.statusReactive.set(ce))}_status=(0,i.EWP)(()=>this.statusReactive());statusReactive=(0,i.vPA)(void 0);get valid(){return this.status===Pn}get invalid(){return this.status===Fn}get pending(){return this.status==Bn}get disabled(){return this.status===cr}get enabled(){return this.status!==cr}errors;get pristine(){return(0,i.O8t)(this.pristineReactive)}set pristine(ce){(0,i.O8t)(()=>this.pristineReactive.set(ce))}_pristine=(0,i.EWP)(()=>this.pristineReactive());pristineReactive=(0,i.vPA)(!0);get dirty(){return!this.pristine}get touched(){return(0,i.O8t)(this.touchedReactive)}set touched(ce){(0,i.O8t)(()=>this.touchedReactive.set(ce))}_touched=(0,i.EWP)(()=>this.touchedReactive());touchedReactive=(0,i.vPA)(!1);get untouched(){return!this.touched}_events=new w.B;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ce){this._assignValidators(ce)}setAsyncValidators(ce){this._assignAsyncValidators(ce)}addValidators(ce){this.setValidators(se(ce,this._rawValidators))}addAsyncValidators(ce){this.setAsyncValidators(se(ce,this._rawAsyncValidators))}removeValidators(ce){this.setValidators(Ze(ce,this._rawValidators))}removeAsyncValidators(ce){this.setAsyncValidators(Ze(ce,this._rawAsyncValidators))}hasValidator(ce){return mt(this._rawValidators,ce)}hasAsyncValidator(ce){return mt(this._rawAsyncValidators,ce)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ce={}){const Q=!1===this.touched;this.touched=!0;const Le=ce.sourceControl??this;this._parent&&!ce.onlySelf&&this._parent.markAsTouched({...ce,sourceControl:Le}),Q&&!1!==ce.emitEvent&&this._events.next(new Bt(!0,Le))}markAllAsTouched(ce={}){this.markAsTouched({onlySelf:!0,emitEvent:ce.emitEvent,sourceControl:this}),this._forEachChild(Q=>Q.markAllAsTouched(ce))}markAsUntouched(ce={}){const Q=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const Le=ce.sourceControl??this;this._forEachChild(Ut=>{Ut.markAsUntouched({onlySelf:!0,emitEvent:ce.emitEvent,sourceControl:Le})}),this._parent&&!ce.onlySelf&&this._parent._updateTouched(ce,Le),Q&&!1!==ce.emitEvent&&this._events.next(new Bt(!1,Le))}markAsDirty(ce={}){const Q=!0===this.pristine;this.pristine=!1;const Le=ce.sourceControl??this;this._parent&&!ce.onlySelf&&this._parent.markAsDirty({...ce,sourceControl:Le}),Q&&!1!==ce.emitEvent&&this._events.next(new _t(!1,Le))}markAsPristine(ce={}){const Q=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const Le=ce.sourceControl??this;this._forEachChild(Ut=>{Ut.markAsPristine({onlySelf:!0,emitEvent:ce.emitEvent})}),this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce,Le),Q&&!1!==ce.emitEvent&&this._events.next(new _t(!0,Le))}markAsPending(ce={}){this.status=Bn;const Q=ce.sourceControl??this;!1!==ce.emitEvent&&(this._events.next(new Ee(this.status,Q)),this.statusChanges.emit(this.status)),this._parent&&!ce.onlySelf&&this._parent.markAsPending({...ce,sourceControl:Q})}disable(ce={}){const Q=this._parentMarkedDirty(ce.onlySelf);this.status=cr,this.errors=null,this._forEachChild(Ut=>{Ut.disable({...ce,onlySelf:!0})}),this._updateValue();const Le=ce.sourceControl??this;!1!==ce.emitEvent&&(this._events.next(new Xr(this.value,Le)),this._events.next(new Ee(this.status,Le)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ce,skipPristineCheck:Q},this),this._onDisabledChange.forEach(Ut=>Ut(!0))}enable(ce={}){const Q=this._parentMarkedDirty(ce.onlySelf);this.status=Pn,this._forEachChild(Le=>{Le.enable({...ce,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ce.emitEvent}),this._updateAncestors({...ce,skipPristineCheck:Q},this),this._onDisabledChange.forEach(Le=>Le(!1))}_updateAncestors(ce,Q){this._parent&&!ce.onlySelf&&(this._parent.updateValueAndValidity(ce),ce.skipPristineCheck||this._parent._updatePristine({},Q),this._parent._updateTouched({},Q))}setParent(ce){this._parent=ce}getRawValue(){return this.value}updateValueAndValidity(ce={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const Le=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Pn||this.status===Bn)&&this._runAsyncValidator(Le,ce.emitEvent)}const Q=ce.sourceControl??this;!1!==ce.emitEvent&&(this._events.next(new Xr(this.value,Q)),this._events.next(new Ee(this.status,Q)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ce.onlySelf&&this._parent.updateValueAndValidity({...ce,sourceControl:Q})}_updateTreeValidity(ce={emitEvent:!0}){this._forEachChild(Q=>Q._updateTreeValidity(ce)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ce.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?cr:Pn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ce,Q){if(this.asyncValidator){this.status=Bn,this._hasOwnPendingAsyncValidator={emitEvent:!1!==Q};const Le=ln(this.asyncValidator(this));this._asyncValidationSubscription=Le.subscribe(Ut=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(Ut,{emitEvent:Q,shouldHaveEmitted:ce})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const ce=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,ce}return!1}setErrors(ce,Q={}){this.errors=ce,this._updateControlsErrors(!1!==Q.emitEvent,this,Q.shouldHaveEmitted)}get(ce){let Q=ce;return null==Q||(Array.isArray(Q)||(Q=Q.split(".")),0===Q.length)?null:Q.reduce((Le,Ut)=>Le&&Le._find(Ut),this)}getError(ce,Q){const Le=Q?this.get(Q):this;return Le&&Le.errors?Le.errors[ce]:null}hasError(ce,Q){return!!this.getError(ce,Q)}get root(){let ce=this;for(;ce._parent;)ce=ce._parent;return ce}_updateControlsErrors(ce,Q,Le){this.status=this._calculateStatus(),ce&&this.statusChanges.emit(this.status),(ce||Le)&&this._events.next(new Ee(this.status,Q)),this._parent&&this._parent._updateControlsErrors(ce,Q,Le)}_initObservables(){this.valueChanges=new i.bkB,this.statusChanges=new i.bkB}_calculateStatus(){return this._allControlsDisabled()?cr:this.errors?Fn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Bn)?Bn:this._anyControlsHaveStatus(Fn)?Fn:Pn}_anyControlsHaveStatus(ce){return this._anyControls(Q=>Q.status===ce)}_anyControlsDirty(){return this._anyControls(ce=>ce.dirty)}_anyControlsTouched(){return this._anyControls(ce=>ce.touched)}_updatePristine(ce,Q){const Le=!this._anyControlsDirty(),Ut=this.pristine!==Le;this.pristine=Le,this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce,Q),Ut&&this._events.next(new _t(this.pristine,Q))}_updateTouched(ce={},Q){this.touched=this._anyControlsTouched(),this._events.next(new Bt(this.touched,Q)),this._parent&&!ce.onlySelf&&this._parent._updateTouched(ce,Q)}_onDisabledChange=[];_registerOnCollectionChange(ce){this._onCollectionChange=ce}_setUpdateStrategy(ce){or(ce)&&null!=ce.updateOn&&(this._updateOn=ce.updateOn)}_parentMarkedDirty(ce){return!ce&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ce){return null}_assignValidators(ce){this._rawValidators=Array.isArray(ce)?ce.slice():ce,this._composedValidatorFn=function ft(ue){return Array.isArray(ue)?Ge(ue):ue||null}(this._rawValidators)}_assignAsyncValidators(ce){this._rawAsyncValidators=Array.isArray(ce)?ce.slice():ce,this._composedAsyncValidatorFn=function mn(ue){return Array.isArray(ue)?Ft(ue):ue||null}(this._rawAsyncValidators)}}class Ai extends ci{constructor(ce,Q,Le){super(kt(Q),Pt(Le,Q)),this.controls=ce,this._initObservables(),this._setUpdateStrategy(Q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(ce,Q){return this.controls[ce]?this.controls[ce]:(this.controls[ce]=Q,Q.setParent(this),Q._registerOnCollectionChange(this._onCollectionChange),Q)}addControl(ce,Q,Le={}){this.registerControl(ce,Q),this.updateValueAndValidity({emitEvent:Le.emitEvent}),this._onCollectionChange()}removeControl(ce,Q={}){this.controls[ce]&&this.controls[ce]._registerOnCollectionChange(()=>{}),delete this.controls[ce],this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}setControl(ce,Q,Le={}){this.controls[ce]&&this.controls[ce]._registerOnCollectionChange(()=>{}),delete this.controls[ce],Q&&this.registerControl(ce,Q),this.updateValueAndValidity({emitEvent:Le.emitEvent}),this._onCollectionChange()}contains(ce){return this.controls.hasOwnProperty(ce)&&this.controls[ce].enabled}setValue(ce,Q={}){ii(this,0,ce),Object.keys(ce).forEach(Le=>{Mr(this,!0,Le),this.controls[Le].setValue(ce[Le],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(ce,Q={}){null!=ce&&(Object.keys(ce).forEach(Le=>{const Ut=this.controls[Le];Ut&&Ut.patchValue(ce[Le],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(ce={},Q={}){this._forEachChild((Le,Ut)=>{Le.reset(ce?ce[Ut]:null,{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q,this),this._updateTouched(Q,this),this.updateValueAndValidity(Q)}getRawValue(){return this._reduceChildren({},(ce,Q,Le)=>(ce[Le]=Q.getRawValue(),ce))}_syncPendingControls(){let ce=this._reduceChildren(!1,(Q,Le)=>!!Le._syncPendingControls()||Q);return ce&&this.updateValueAndValidity({onlySelf:!0}),ce}_forEachChild(ce){Object.keys(this.controls).forEach(Q=>{const Le=this.controls[Q];Le&&ce(Le,Q)})}_setUpControls(){this._forEachChild(ce=>{ce.setParent(this),ce._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ce){for(const[Q,Le]of Object.entries(this.controls))if(this.contains(Q)&&ce(Le))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Q,Le,Ut)=>((Le.enabled||this.disabled)&&(Q[Ut]=Le.value),Q))}_reduceChildren(ce,Q){let Le=ce;return this._forEachChild((Ut,vr)=>{Le=Q(Le,Ut,vr)}),Le}_allControlsDisabled(){for(const ce of Object.keys(this.controls))if(this.controls[ce].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ce){return this.controls.hasOwnProperty(ce)?this.controls[ce]:null}}class Dt extends Ai{}const Hn=new i.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>fr}),fr="always";function uo(ue,ce){return[...ce.path,ue]}function Oi(ue,ce,Q=fr){so(ue,ce),ce.valueAccessor.writeValue(ue.value),(ue.disabled||"always"===Q)&&ce.valueAccessor.setDisabledState?.(ue.disabled),function Xo(ue,ce){ce.valueAccessor.registerOnChange(Q=>{ue._pendingValue=Q,ue._pendingChange=!0,ue._pendingDirty=!0,"change"===ue.updateOn&&Is(ue,ce)})}(ue,ce),function eo(ue,ce){const Q=(Le,Ut)=>{ce.valueAccessor.writeValue(Le),Ut&&ce.viewToModelUpdate(Le)};ue.registerOnChange(Q),ce._registerOnDestroy(()=>{ue._unregisterOnChange(Q)})}(ue,ce),function Co(ue,ce){ce.valueAccessor.registerOnTouched(()=>{ue._pendingTouched=!0,"blur"===ue.updateOn&&ue._pendingChange&&Is(ue,ce),"submit"!==ue.updateOn&&ue.markAsTouched()})}(ue,ce),function ts(ue,ce){if(ce.valueAccessor.setDisabledState){const Q=Le=>{ce.valueAccessor.setDisabledState(Le)};ue.registerOnDisabledChange(Q),ce._registerOnDestroy(()=>{ue._unregisterOnDisabledChange(Q)})}}(ue,ce)}function Uo(ue,ce,Q=!0){const Le=()=>{};ce.valueAccessor&&(ce.valueAccessor.registerOnChange(Le),ce.valueAccessor.registerOnTouched(Le)),bo(ue,ce),ue&&(ce._invokeOnDestroyCallbacks(),ue._registerOnCollectionChange(()=>{}))}function oi(ue,ce){ue.forEach(Q=>{Q.registerOnValidatorChange&&Q.registerOnValidatorChange(ce)})}function so(ue,ce){const Q=dt(ue);null!==ce.validator?ue.setValidators(ze(Q,ce.validator)):"function"==typeof Q&&ue.setValidators([Q]);const Le=Ke(ue);null!==ce.asyncValidator?ue.setAsyncValidators(ze(Le,ce.asyncValidator)):"function"==typeof Le&&ue.setAsyncValidators([Le]);const Ut=()=>ue.updateValueAndValidity();oi(ce._rawValidators,Ut),oi(ce._rawAsyncValidators,Ut)}function bo(ue,ce){let Q=!1;if(null!==ue){if(null!==ce.validator){const Ut=dt(ue);if(Array.isArray(Ut)&&Ut.length>0){const vr=Ut.filter(ni=>ni!==ce.validator);vr.length!==Ut.length&&(Q=!0,ue.setValidators(vr))}}if(null!==ce.asyncValidator){const Ut=Ke(ue);if(Array.isArray(Ut)&&Ut.length>0){const vr=Ut.filter(ni=>ni!==ce.asyncValidator);vr.length!==Ut.length&&(Q=!0,ue.setAsyncValidators(vr))}}}const Le=()=>{};return oi(ce._rawValidators,Le),oi(ce._rawAsyncValidators,Le),Q}function Is(ue,ce){ue._pendingDirty&&ue.markAsDirty(),ue.setValue(ue._pendingValue,{emitModelToViewChange:!1}),ce.viewToModelUpdate(ue._pendingValue),ue._pendingChange=!1}function oo(ue,ce){so(ue,ce)}function et(ue,ce){if(!ue.hasOwnProperty("model"))return!1;const Q=ue.model;return!!Q.isFirstChange()||!Object.is(ce,Q.currentValue)}function pt(ue,ce){ue._syncPendingControls(),ce.forEach(Q=>{const Le=Q.control;"submit"===Le.updateOn&&Le._pendingChange&&(Q.viewToModelUpdate(Le._pendingValue),Le._pendingChange=!1)})}function $t(ue,ce){if(!ce)return null;let Q,Le,Ut;return Array.isArray(ce),ce.forEach(vr=>{vr.constructor===be?Q=vr:function Oe(ue){return Object.getPrototypeOf(ue.constructor)===S}(vr)?Le=vr:Ut=vr}),Ut||Le||Q||null}const Cn={provide:Jt,useExisting:(0,i.Rfq)(()=>kn)},Sn=Promise.resolve();let kn=(()=>{class ue extends Jt{callSetDisabledState;get submitted(){return(0,i.O8t)(this.submittedReactive)}_submitted=(0,i.EWP)(()=>this.submittedReactive());submittedReactive=(0,i.vPA)(!1);_directives=new Set;form;ngSubmit=new i.bkB;options;constructor(Q,Le,Ut){super(),this.callSetDisabledState=Ut,this.form=new Ai({},Ge(Q),Ft(Le))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Q){Sn.then(()=>{const Le=this._findContainer(Q.path);Q.control=Le.registerControl(Q.name,Q.control),Oi(Q.control,Q,this.callSetDisabledState),Q.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Q)})}getControl(Q){return this.form.get(Q.path)}removeControl(Q){Sn.then(()=>{const Le=this._findContainer(Q.path);Le&&Le.removeControl(Q.name),this._directives.delete(Q)})}addFormGroup(Q){Sn.then(()=>{const Le=this._findContainer(Q.path),Ut=new Ai({});oo(Ut,Q),Le.registerControl(Q.name,Ut),Ut.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Q){Sn.then(()=>{const Le=this._findContainer(Q.path);Le&&Le.removeControl(Q.name)})}getFormGroup(Q){return this.form.get(Q.path)}updateModel(Q,Le){Sn.then(()=>{this.form.get(Q.path).setValue(Le)})}setValue(Q){this.control.setValue(Q)}onSubmit(Q){return this.submittedReactive.set(!0),pt(this.form,this._directives),this.ngSubmit.emit(Q),"dialog"===Q?.target?.method}onReset(){this.resetForm()}resetForm(Q=void 0){this.form.reset(Q),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Q){return Q.pop(),Q.length?this.form.get(Q):this.form}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Te,10),i.rXU(xe,10),i.rXU(Hn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Le,Ut){1&Le&&i.bIt("submit",function(ni){return Ut.onSubmit(ni)})("reset",function(){return Ut.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([Cn]),i.Vt3]})}return ue})();function Un(ue,ce){const Q=ue.indexOf(ce);Q>-1&&ue.splice(Q,1)}function Jn(ue){return"object"==typeof ue&&null!==ue&&2===Object.keys(ue).length&&"value"in ue&&"disabled"in ue}const sr=class extends ci{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(ce=null,Q,Le){super(kt(Q),Pt(Le,Q)),this._applyFormState(ce),this._setUpdateStrategy(Q),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),or(Q)&&(Q.nonNullable||Q.initialValueIsDefault)&&(this.defaultValue=Jn(ce)?ce.value:ce)}setValue(ce,Q={}){this.value=this._pendingValue=ce,this._onChange.length&&!1!==Q.emitModelToViewChange&&this._onChange.forEach(Le=>Le(this.value,!1!==Q.emitViewToModelChange)),this.updateValueAndValidity(Q)}patchValue(ce,Q={}){this.setValue(ce,Q)}reset(ce=this.defaultValue,Q={}){this._applyFormState(ce),this.markAsPristine(Q),this.markAsUntouched(Q),this.setValue(this.value,Q),this._pendingChange=!1}_updateValue(){}_anyControls(ce){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ce){this._onChange.push(ce)}_unregisterOnChange(ce){Un(this._onChange,ce)}registerOnDisabledChange(ce){this._onDisabledChange.push(ce)}_unregisterOnDisabledChange(ce){Un(this._onDisabledChange,ce)}_forEachChild(ce){}_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(ce){Jn(ce)?(this.value=this._pendingValue=ce.value,ce.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ce}},kr=sr,cs={provide:fn,useExisting:(0,i.Rfq)(()=>ia)},ws=Promise.resolve();let ia=(()=>{class ue extends fn{_changeDetectorRef;callSetDisabledState;control=new sr;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new i.bkB;constructor(Q,Le,Ut,vr,ni,Do){super(),this._changeDetectorRef=ni,this.callSetDisabledState=Do,this._parent=Q,this._setValidators(Le),this._setAsyncValidators(Ut),this.valueAccessor=$t(0,vr)}ngOnChanges(Q){if(this._checkForErrors(),!this._registered||"name"in Q){if(this._registered&&(this._checkName(),this.formDirective)){const Le=Q.name.previousValue;this.formDirective.removeControl({name:Le,path:this._getPath(Le)})}this._setUpControl()}"isDisabled"in Q&&this._updateDisabled(Q),et(Q,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Q){this.viewModel=Q,this.update.emit(Q)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Oi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Q){ws.then(()=>{this.control.setValue(Q,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Q){const Le=Q.isDisabled.currentValue,Ut=0!==Le&&(0,i.L39)(Le);ws.then(()=>{Ut&&!this.control.disabled?this.control.disable():!Ut&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Q){return this._parent?uo(Q,this._parent):[Q]}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Jt,9),i.rXU(Te,10),i.rXU(xe,10),i.rXU(A,10),i.rXU(i.gRc,8),i.rXU(Hn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[i.Jv_([cs]),i.Vt3,i.OA$]})}return ue})(),Sr=(()=>{class ue{static \u0275fac=function(Le){return new(Le||ue)};static \u0275dir=i.FsC({type:ue,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return ue})();const oa={provide:A,useExisting:(0,i.Rfq)(()=>ma),multi:!0};let ma=(()=>{class ue extends S{writeValue(Q){this.setProperty("value",Q??"")}registerOnChange(Q){this.onChange=Le=>{Q(""==Le?null:parseFloat(Le))}}static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Le,Ut){1&Le&&i.bIt("input",function(ni){return Ut.onChange(ni.target.value)})("blur",function(){return Ut.onTouched()})},standalone:!1,features:[i.Jv_([oa]),i.Vt3]})}return ue})();const Ni=new i.nKC(""),Fs={provide:fn,useExisting:(0,i.Rfq)(()=>ns)};let ns=(()=>{class ue extends fn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(Q){}model;update=new i.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Q,Le,Ut,vr,ni){super(),this._ngModelWarningConfig=vr,this.callSetDisabledState=ni,this._setValidators(Q),this._setAsyncValidators(Le),this.valueAccessor=$t(0,Ut)}ngOnChanges(Q){if(this._isControlChanged(Q)){const Le=Q.form.previousValue;Le&&Uo(Le,this,!1),Oi(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}et(Q,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Uo(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Q){this.viewModel=Q,this.update.emit(Q)}_isControlChanged(Q){return Q.hasOwnProperty("form")}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Te,10),i.rXU(xe,10),i.rXU(A,10),i.rXU(Ni,8),i.rXU(Hn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([Fs]),i.Vt3,i.OA$]})}return ue})();const qr={provide:Jt,useExisting:(0,i.Rfq)(()=>rs)};let rs=(()=>{class ue extends Jt{callSetDisabledState;get submitted(){return(0,i.O8t)(this._submittedReactive)}set submitted(Q){this._submittedReactive.set(Q)}_submitted=(0,i.EWP)(()=>this._submittedReactive());_submittedReactive=(0,i.vPA)(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new i.bkB;constructor(Q,Le,Ut){super(),this.callSetDisabledState=Ut,this._setValidators(Q),this._setAsyncValidators(Le)}ngOnChanges(Q){this._checkFormPresent(),Q.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(bo(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Q){const Le=this.form.get(Q.path);return Oi(Le,Q,this.callSetDisabledState),Le.updateValueAndValidity({emitEvent:!1}),this.directives.push(Q),Le}getControl(Q){return this.form.get(Q.path)}removeControl(Q){Uo(Q.control||null,Q,!1),function Mt(ue,ce){const Q=ue.indexOf(ce);Q>-1&&ue.splice(Q,1)}(this.directives,Q)}addFormGroup(Q){this._setUpFormContainer(Q)}removeFormGroup(Q){this._cleanUpFormContainer(Q)}getFormGroup(Q){return this.form.get(Q.path)}addFormArray(Q){this._setUpFormContainer(Q)}removeFormArray(Q){this._cleanUpFormContainer(Q)}getFormArray(Q){return this.form.get(Q.path)}updateModel(Q,Le){this.form.get(Q.path).setValue(Le)}onSubmit(Q){return this._submittedReactive.set(!0),pt(this.form,this.directives),this.ngSubmit.emit(Q),this.form._events.next(new lt(this.control)),"dialog"===Q?.target?.method}onReset(){this.resetForm()}resetForm(Q=void 0){this.form.reset(Q),this._submittedReactive.set(!1),this.form._events.next(new Pe(this.form))}_updateDomValue(){this.directives.forEach(Q=>{const Le=Q.control,Ut=this.form.get(Q.path);Le!==Ut&&(Uo(Le||null,Q),(ue=>ue instanceof sr)(Ut)&&(Oi(Ut,Q,this.callSetDisabledState),Q.control=Ut))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Q){const Le=this.form.get(Q.path);oo(Le,Q),Le.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Q){if(this.form){const Le=this.form.get(Q.path);Le&&function Bi(ue,ce){return bo(ue,ce)}(Le,Q)&&Le.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){so(this.form,this),this._oldForm&&bo(this._oldForm,this)}_checkFormPresent(){}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Te,10),i.rXU(xe,10),i.rXU(Hn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["","formGroup",""]],hostBindings:function(Le,Ut){1&Le&&i.bIt("submit",function(ni){return Ut.onSubmit(ni)})("reset",function(){return Ut.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([qr]),i.Vt3,i.OA$]})}return ue})();const ga={provide:fn,useExisting:(0,i.Rfq)(()=>tr)};let tr=(()=>{class ue extends fn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(Q){}model;update=new i.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Q,Le,Ut,vr,ni){super(),this._ngModelWarningConfig=ni,this._parent=Q,this._setValidators(Le),this._setAsyncValidators(Ut),this.valueAccessor=$t(0,vr)}ngOnChanges(Q){this._added||this._setUpControl(),et(Q,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Q){this.viewModel=Q,this.update.emit(Q)}get path(){return uo(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Jt,13),i.rXU(Te,10),i.rXU(xe,10),i.rXU(A,10),i.rXU(Ni,8))};static \u0275dir=i.FsC({type:ue,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[i.Jv_([ga]),i.Vt3,i.OA$]})}return ue})();let _o=(()=>{class ue{_validator=at;_onChange;_enabled;ngOnChanges(Q){if(this.inputName in Q){const Le=this.normalizeInput(Q[this.inputName].currentValue);this._enabled=this.enabled(Le),this._validator=this._enabled?this.createValidator(Le):at,this._onChange&&this._onChange()}}validate(Q){return this._validator(Q)}registerOnValidatorChange(Q){this._onChange=Q}enabled(Q){return null!=Q}static \u0275fac=function(Le){return new(Le||ue)};static \u0275dir=i.FsC({type:ue,features:[i.OA$]})}return ue})();const Qs={provide:Te,useExisting:(0,i.Rfq)(()=>Xa),multi:!0},bl={provide:Te,useExisting:(0,i.Rfq)(()=>Ya),multi:!0};let Xa=(()=>{class ue extends _o{required;inputName="required";normalizeInput=i.L39;createValidator=Q=>ae;enabled(Q){return Q}static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Le,Ut){2&Le&&i.BMQ("required",Ut._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[i.Jv_([Qs]),i.Vt3]})}return ue})(),Ya=(()=>{class ue extends Xa{createValidator=Q=>Ie;static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Le,Ut){2&Le&&i.BMQ("required",Ut._enabled?"":null)},standalone:!1,features:[i.Jv_([bl]),i.Vt3]})}return ue})();const wt={provide:Te,useExisting:(0,i.Rfq)(()=>Ln),multi:!0};let Ln=(()=>{class ue extends _o{maxlength;inputName="maxlength";normalizeInput=Q=>function ao(ue){return"number"==typeof ue?ue:parseInt(ue,10)}(Q);createValidator=Q=>ht(Q);static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Le,Ut){2&Le&&i.BMQ("maxlength",Ut._enabled?Ut.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[i.Jv_([wt]),i.Vt3]})}return ue})(),Or=(()=>{class ue{static \u0275fac=function(Le){return new(Le||ue)};static \u0275mod=i.$C({type:ue});static \u0275inj=i.G2t({})}return ue})();class Dr extends ci{constructor(ce,Q,Le){super(kt(Q),Pt(Le,Q)),this.controls=ce,this._initObservables(),this._setUpdateStrategy(Q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(ce){return this.controls[this._adjustIndex(ce)]}push(ce,Q={}){this.controls.push(ce),this._registerControl(ce),this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}insert(ce,Q,Le={}){this.controls.splice(ce,0,Q),this._registerControl(Q),this.updateValueAndValidity({emitEvent:Le.emitEvent})}removeAt(ce,Q={}){let Le=this._adjustIndex(ce);Le<0&&(Le=0),this.controls[Le]&&this.controls[Le]._registerOnCollectionChange(()=>{}),this.controls.splice(Le,1),this.updateValueAndValidity({emitEvent:Q.emitEvent})}setControl(ce,Q,Le={}){let Ut=this._adjustIndex(ce);Ut<0&&(Ut=0),this.controls[Ut]&&this.controls[Ut]._registerOnCollectionChange(()=>{}),this.controls.splice(Ut,1),Q&&(this.controls.splice(Ut,0,Q),this._registerControl(Q)),this.updateValueAndValidity({emitEvent:Le.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ce,Q={}){ii(this,0,ce),ce.forEach((Le,Ut)=>{Mr(this,!1,Ut),this.at(Ut).setValue(Le,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(ce,Q={}){null!=ce&&(ce.forEach((Le,Ut)=>{this.at(Ut)&&this.at(Ut).patchValue(Le,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(ce=[],Q={}){this._forEachChild((Le,Ut)=>{Le.reset(ce[Ut],{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q,this),this._updateTouched(Q,this),this.updateValueAndValidity(Q)}getRawValue(){return this.controls.map(ce=>ce.getRawValue())}clear(ce={}){this.controls.length<1||(this._forEachChild(Q=>Q._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ce.emitEvent}))}_adjustIndex(ce){return ce<0?ce+this.length:ce}_syncPendingControls(){let ce=this.controls.reduce((Q,Le)=>!!Le._syncPendingControls()||Q,!1);return ce&&this.updateValueAndValidity({onlySelf:!0}),ce}_forEachChild(ce){this.controls.forEach((Q,Le)=>{ce(Q,Le)})}_updateValue(){this.value=this.controls.filter(ce=>ce.enabled||this.disabled).map(ce=>ce.value)}_anyControls(ce){return this.controls.some(Q=>Q.enabled&&ce(Q))}_setUpControls(){this._forEachChild(ce=>this._registerControl(ce))}_allControlsDisabled(){for(const ce of this.controls)if(ce.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ce){ce.setParent(this),ce._registerOnCollectionChange(this._onCollectionChange)}_find(ce){return this.at(ce)??null}}function ho(ue){return!!ue&&(void 0!==ue.asyncValidators||void 0!==ue.validators||void 0!==ue.updateOn)}let lo=(()=>{class ue{useNonNullable=!1;get nonNullable(){const Q=new ue;return Q.useNonNullable=!0,Q}group(Q,Le=null){const Ut=this._reduceControls(Q);let vr={};return ho(Le)?vr=Le:null!==Le&&(vr.validators=Le.validator,vr.asyncValidators=Le.asyncValidator),new Ai(Ut,vr)}record(Q,Le=null){const Ut=this._reduceControls(Q);return new Dt(Ut,Le)}control(Q,Le,Ut){let vr={};return this.useNonNullable?(ho(Le)?vr=Le:(vr.validators=Le,vr.asyncValidators=Ut),new sr(Q,{...vr,nonNullable:!0})):new sr(Q,Le,Ut)}array(Q,Le,Ut){const vr=Q.map(ni=>this._createControl(ni));return new Dr(vr,Le,Ut)}_reduceControls(Q){const Le={};return Object.keys(Q).forEach(Ut=>{Le[Ut]=this._createControl(Q[Ut])}),Le}_createControl(Q){return Q instanceof sr||Q instanceof ci?Q:Array.isArray(Q)?this.control(Q[0],Q.length>1?Q[1]:null,Q.length>2?Q[2]:null):this.control(Q)}static \u0275fac=function(Le){return new(Le||ue)};static \u0275prov=i.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})(),Oo=(()=>{class ue extends lo{group(Q,Le=null){return super.group(Q,Le)}control(Q,Le,Ut){return super.control(Q,Le,Ut)}array(Q,Le,Ut){return super.array(Q,Le,Ut)}static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275prov=i.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})(),Qa=(()=>{class ue{static withConfig(Q){return{ngModule:ue,providers:[{provide:Hn,useValue:Q.callSetDisabledState??fr}]}}static \u0275fac=function(Le){return new(Le||ue)};static \u0275mod=i.$C({type:ue});static \u0275inj=i.G2t({imports:[Or]})}return ue})(),ya=(()=>{class ue{static withConfig(Q){return{ngModule:ue,providers:[{provide:Ni,useValue:Q.warnOnNgModelWithFormControl??"always"},{provide:Hn,useValue:Q.callSetDisabledState??fr}]}}static \u0275fac=function(Le){return new(Le||ue)};static \u0275mod=i.$C({type:ue});static \u0275inj=i.G2t({imports:[Or]})}return ue})()},8834:(o,s,r)=>{"use strict";r.d(s,{$z:()=>le,Hl:()=>$n,iY:()=>ln,pQ:()=>yn});var i=r(4438),a=r(9888),c=r(6860),y=r(3),w=r(9046);const C=["mat-button",""],T=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],S=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],I="@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}",ne=["mat-icon-button",""],be=["*"],pe=new i.nKC("MAT_BUTTON_CONFIG"),xe=[{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 Re=(()=>{class bn{_elementRef=(0,i.WQX)(i.aKT);_platform=(0,i.WQX)(c.OD);_ngZone=(0,i.WQX)(i.SKi);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_focusMonitor=(0,i.WQX)(a.FN);_rippleLoader=(0,i.WQX)(y.Ej);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(bt){this._disableRipple=bt,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(bt){this._disabled=bt,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){(0,i.WQX)(w.l).load(y.Ah);const bt=(0,i.WQX)(pe,{optional:!0}),Ge=this._elementRef.nativeElement,Fe=Ge.classList;this.disabledInteractive=bt?.disabledInteractive??!1,this.color=bt?.color??null,this._rippleLoader?.configureRipple(Ge,{className:"mat-mdc-button-ripple"});for(const{attribute:Ft,mdcClasses:ze}of xe)Ge.hasAttribute(Ft)&&Fe.add(...ze)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(bt="program",Ge){bt?this._focusMonitor.focusVia(this._elementRef.nativeElement,bt,Ge):this._elementRef.nativeElement.focus(Ge)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(Ge){return new(Ge||bn)};static \u0275dir=i.FsC({type:bn,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",i.L39],disabled:[2,"disabled","disabled",i.L39],ariaDisabled:[2,"aria-disabled","ariaDisabled",i.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",i.L39]},features:[i.GFd]})}return bn})(),Ce=(()=>{class bn extends Re{tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_haltDisabledEvents=bt=>{this.disabled&&(bt.preventDefault(),bt.stopImmediatePropagation())};_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:this.disabled||null}static \u0275fac=(()=>{let bt;return function(Fe){return(bt||(bt=i.xGo(bn)))(Fe||bn)}})();static \u0275dir=i.FsC({type:bn,inputs:{tabIndex:[2,"tabIndex","tabIndex",bt=>null==bt?void 0:(0,i.Udg)(bt)]},features:[i.GFd,i.Vt3]})}return bn})(),le=(()=>{class bn extends Re{static \u0275fac=(()=>{let bt;return function(Fe){return(bt||(bt=i.xGo(bn)))(Fe||bn)}})();static \u0275cmp=i.VBU({type:bn,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(Ge,Fe){2&Ge&&(i.BMQ("disabled",Fe._getDisabledAttribute())("aria-disabled",Fe._getAriaDisabled()),i.HbH(Fe.color?"mat-"+Fe.color:""),i.AVh("mat-mdc-button-disabled",Fe.disabled)("mat-mdc-button-disabled-interactive",Fe.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)("mat-unthemed",!Fe.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.Vt3],attrs:C,ngContentSelectors:S,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ge,Fe){1&Ge&&(i.NAR(T),i.nrm(0,"span",0),i.SdG(1),i.j41(2,"span",1),i.SdG(3,1),i.k0s(),i.SdG(4,2),i.nrm(5,"span",2)(6,"span",3)),2&Ge&&i.AVh("mdc-button__ripple",!Fe._isFab)("mdc-fab__ripple",Fe._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return bn})(),ln=(()=>{class bn extends Re{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(Ge){return new(Ge||bn)};static \u0275cmp=i.VBU({type:bn,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(Ge,Fe){2&Ge&&(i.BMQ("disabled",Fe._getDisabledAttribute())("aria-disabled",Fe._getAriaDisabled()),i.HbH(Fe.color?"mat-"+Fe.color:""),i.AVh("mat-mdc-button-disabled",Fe.disabled)("mat-mdc-button-disabled-interactive",Fe.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)("mat-unthemed",!Fe.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.Vt3],attrs:ne,ngContentSelectors:be,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ge,Fe){1&Ge&&(i.NAR(),i.nrm(0,"span",0),i.SdG(1),i.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',I],encapsulation:2,changeDetection:0})}return bn})(),yn=(()=>{class bn extends Ce{static \u0275fac=(()=>{let bt;return function(Fe){return(bt||(bt=i.xGo(bn)))(Fe||bn)}})();static \u0275cmp=i.VBU({type:bn,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(Ge,Fe){2&Ge&&(i.BMQ("disabled",Fe._getDisabledAttribute())("tabindex",Fe.disabled&&!Fe.disabledInteractive?-1:Fe.tabIndex)("aria-disabled",Fe._getAriaDisabled()),i.HbH(Fe.color?"mat-"+Fe.color:""),i.AVh("mat-mdc-button-disabled",Fe.disabled)("mat-mdc-button-disabled-interactive",Fe.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)("mat-unthemed",!Fe.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[i.Vt3],attrs:ne,ngContentSelectors:be,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ge,Fe){1&Ge&&(i.NAR(),i.nrm(0,"span",0),i.SdG(1),i.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',I],encapsulation:2,changeDetection:0})}return bn})(),$n=(()=>{class bn{static \u0275fac=function(Ge){return new(Ge||bn)};static \u0275mod=i.$C({type:bn});static \u0275inj=i.G2t({imports:[y.yE,y.pZ,y.yE]})}return bn})()},3:(o,s,r)=>{"use strict";r.d(s,{Ah:()=>dt,Ej:()=>Jr,Ju:()=>$e,MI:()=>De,MJ:()=>vt,N:()=>le,QC:()=>k,Sy:()=>In,TL:()=>Tt,X0:()=>Ie,de:()=>at,es:()=>ze,is:()=>B,jb:()=>ot,pZ:()=>Yn,r6:()=>xn,tO:()=>Xr,wT:()=>it,yE:()=>ae});var i=r(4438),a=r(9888),c=r(8203),y=r(1413),w=r(6860),C=r(4085),T=r(9046),S=r(7336),A=r(177);const K=["text"],Z=[[["mat-icon"]],"*"],ne=["mat-icon","*"];function be(_t,Bt){if(1&_t&&i.nrm(0,"mat-pseudo-checkbox",1),2&_t){const Ee=i.XpG();i.Y8G("disabled",Ee.disabled)("state",Ee.selected?"checked":"unchecked")}}function me(_t,Bt){if(1&_t&&i.nrm(0,"mat-pseudo-checkbox",3),2&_t){const Ee=i.XpG();i.Y8G("disabled",Ee.disabled)}}function pe(_t,Bt){if(1&_t&&(i.j41(0,"span",4),i.EFF(1),i.k0s()),2&_t){const Ee=i.XpG();i.R7$(),i.SpI("(",Ee.group.label,")")}}const Te=["mat-internal-form-field",""],xe=["*"],le=new i.nKC("mat-sanity-checks",{providedIn:"root",factory:()=>!0});let ae=(()=>{class _t{constructor(){(0,i.WQX)(a.Q_)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[c.jI,c.jI]})}return _t})();class Ie{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(Bt,Ee,lt,Pe,kt){this._defaultMatcher=Bt,this.ngControl=Ee,this._parentFormGroup=lt,this._parentForm=Pe,this._stateChanges=kt}updateErrorState(){const Bt=this.errorState,Ee=this._parentFormGroup||this._parentForm,lt=this.matcher||this._defaultMatcher,Pe=this.ngControl?this.ngControl.control:null,kt=lt?.isErrorState(Pe,Ee)??!1;kt!==Bt&&(this.errorState=kt,this._stateChanges.next())}}const $e=new i.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function st(){return(0,i.WQX)(i.xe9)}}),ht="Method not implemented";class vt{locale;_localeChanges=new y.B;localeChanges=this._localeChanges;setTime(Bt,Ee,lt,Pe){throw new Error(ht)}getHours(Bt){throw new Error(ht)}getMinutes(Bt){throw new Error(ht)}getSeconds(Bt){throw new Error(ht)}parseTime(Bt,Ee){throw new Error(ht)}addSeconds(Bt,Ee){throw new Error(ht)}getValidDateOrNull(Bt){return this.isDateInstance(Bt)&&this.isValid(Bt)?Bt:null}deserialize(Bt){return null==Bt||this.isDateInstance(Bt)&&this.isValid(Bt)?Bt:this.invalid()}setLocale(Bt){this.locale=Bt,this._localeChanges.next()}compareDate(Bt,Ee){return this.getYear(Bt)-this.getYear(Ee)||this.getMonth(Bt)-this.getMonth(Ee)||this.getDate(Bt)-this.getDate(Ee)}compareTime(Bt,Ee){return this.getHours(Bt)-this.getHours(Ee)||this.getMinutes(Bt)-this.getMinutes(Ee)||this.getSeconds(Bt)-this.getSeconds(Ee)}sameDate(Bt,Ee){if(Bt&&Ee){let lt=this.isValid(Bt),Pe=this.isValid(Ee);return lt&&Pe?!this.compareDate(Bt,Ee):lt==Pe}return Bt==Ee}sameTime(Bt,Ee){if(Bt&&Ee){const lt=this.isValid(Bt),Pe=this.isValid(Ee);return lt&&Pe?!this.compareTime(Bt,Ee):lt==Pe}return Bt==Ee}clampDate(Bt,Ee,lt){return Ee&&this.compareDate(Bt,Ee)<0?Ee:lt&&this.compareDate(Bt,lt)>0?lt:Bt}}const at=new i.nKC("mat-date-formats");let ze=(()=>{class _t{isErrorState(Ee,lt){return!!(Ee&&Ee.invalid&&(Ee.touched||lt&<.submitted))}static \u0275fac=function(lt){return new(lt||_t)};static \u0275prov=i.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})(),dt=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(lt,Pe){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return _t})();var Ze=function(_t){return _t[_t.FADING_IN=0]="FADING_IN",_t[_t.VISIBLE=1]="VISIBLE",_t[_t.FADING_OUT=2]="FADING_OUT",_t[_t.HIDDEN=3]="HIDDEN",_t}(Ze||{});class Rt{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Ze.HIDDEN;constructor(Bt,Ee,lt,Pe=!1){this._renderer=Bt,this.element=Ee,this.config=lt,this._animationForciblyDisabledThroughCss=Pe}fadeOut(){this._renderer.fadeOutRipple(this)}}const Jt=(0,w.BQ)({passive:!0,capture:!0});class fn{_events=new Map;addHandler(Bt,Ee,lt,Pe){const kt=this._events.get(Ee);if(kt){const ft=kt.get(lt);ft?ft.add(Pe):kt.set(lt,new Set([Pe]))}else this._events.set(Ee,new Map([[lt,new Set([Pe])]])),Bt.runOutsideAngular(()=>{document.addEventListener(Ee,this._delegateEventHandler,Jt)})}removeHandler(Bt,Ee,lt){const Pe=this._events.get(Bt);if(!Pe)return;const kt=Pe.get(Ee);kt&&(kt.delete(lt),0===kt.size&&Pe.delete(Ee),0===Pe.size&&(this._events.delete(Bt),document.removeEventListener(Bt,this._delegateEventHandler,Jt)))}_delegateEventHandler=Bt=>{const Ee=(0,w.Fb)(Bt);Ee&&this._events.get(Bt.type)?.forEach((lt,Pe)=>{(Pe===Ee||Pe.contains(Ee))&<.forEach(kt=>kt.handleEvent(Bt))})}}const Kn={enterDuration:225,exitDuration:150},Qt=(0,w.BQ)({passive:!0,capture:!0}),an=["mousedown","touchstart"],Xn=["mouseup","mouseleave","touchend","touchcancel"];let En=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(lt,Pe){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return _t})();class Kt{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new fn;constructor(Bt,Ee,lt,Pe,kt){this._target=Bt,this._ngZone=Ee,this._platform=Pe,Pe.isBrowser&&(this._containerElement=(0,C.i8)(lt)),kt&&kt.get(T.l).load(En)}fadeInRipple(Bt,Ee,lt={}){const Pe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),kt={...Kn,...lt.animation};lt.centered&&(Bt=Pe.left+Pe.width/2,Ee=Pe.top+Pe.height/2);const ft=lt.radius||function At(_t,Bt,Ee){const lt=Math.max(Math.abs(_t-Ee.left),Math.abs(_t-Ee.right)),Pe=Math.max(Math.abs(Bt-Ee.top),Math.abs(Bt-Ee.bottom));return Math.sqrt(lt*lt+Pe*Pe)}(Bt,Ee,Pe),Pt=Bt-Pe.left,mn=Ee-Pe.top,or=kt.enterDuration,Mr=document.createElement("div");Mr.classList.add("mat-ripple-element"),Mr.style.left=Pt-ft+"px",Mr.style.top=mn-ft+"px",Mr.style.height=2*ft+"px",Mr.style.width=2*ft+"px",null!=lt.color&&(Mr.style.backgroundColor=lt.color),Mr.style.transitionDuration=`${or}ms`,this._containerElement.appendChild(Mr);const ii=window.getComputedStyle(Mr),Ai=ii.transitionDuration,rn="none"===ii.transitionProperty||"0s"===Ai||"0s, 0s"===Ai||0===Pe.width&&0===Pe.height,St=new Rt(this,Mr,lt,rn);Mr.style.transform="scale3d(1, 1, 1)",St.state=Ze.FADING_IN,lt.persistent||(this._mostRecentTransientRipple=St);let qe=null;return!rn&&(or||kt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Dt=()=>{qe&&(qe.fallbackTimer=null),clearTimeout(Hn),this._finishRippleTransition(St)},Wt=()=>this._destroyRipple(St),Hn=setTimeout(Wt,or+100);Mr.addEventListener("transitionend",Dt),Mr.addEventListener("transitioncancel",Wt),qe={onTransitionEnd:Dt,onTransitionCancel:Wt,fallbackTimer:Hn}}),this._activeRipples.set(St,qe),(rn||!or)&&this._finishRippleTransition(St),St}fadeOutRipple(Bt){if(Bt.state===Ze.FADING_OUT||Bt.state===Ze.HIDDEN)return;const Ee=Bt.element,lt={...Kn,...Bt.config.animation};Ee.style.transitionDuration=`${lt.exitDuration}ms`,Ee.style.opacity="0",Bt.state=Ze.FADING_OUT,(Bt._animationForciblyDisabledThroughCss||!lt.exitDuration)&&this._finishRippleTransition(Bt)}fadeOutAll(){this._getActiveRipples().forEach(Bt=>Bt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Bt=>{Bt.config.persistent||Bt.fadeOut()})}setupTriggerEvents(Bt){const Ee=(0,C.i8)(Bt);!this._platform.isBrowser||!Ee||Ee===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ee,an.forEach(lt=>{Kt._eventManager.addHandler(this._ngZone,lt,Ee,this)}))}handleEvent(Bt){"mousedown"===Bt.type?this._onMousedown(Bt):"touchstart"===Bt.type?this._onTouchStart(Bt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Xn.forEach(Ee=>{this._triggerElement.addEventListener(Ee,this,Qt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Bt){Bt.state===Ze.FADING_IN?this._startFadeOutTransition(Bt):Bt.state===Ze.FADING_OUT&&this._destroyRipple(Bt)}_startFadeOutTransition(Bt){const Ee=Bt===this._mostRecentTransientRipple,{persistent:lt}=Bt.config;Bt.state=Ze.VISIBLE,!lt&&(!Ee||!this._isPointerDown)&&Bt.fadeOut()}_destroyRipple(Bt){const Ee=this._activeRipples.get(Bt)??null;this._activeRipples.delete(Bt),this._activeRipples.size||(this._containerRect=null),Bt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Bt.state=Ze.HIDDEN,null!==Ee&&(Bt.element.removeEventListener("transitionend",Ee.onTransitionEnd),Bt.element.removeEventListener("transitioncancel",Ee.onTransitionCancel),null!==Ee.fallbackTimer&&clearTimeout(Ee.fallbackTimer)),Bt.element.remove()}_onMousedown(Bt){const Ee=(0,a._G)(Bt),lt=this._lastTouchStartEvent&&Date.now(){!Bt.config.persistent&&(Bt.state===Ze.VISIBLE||Bt.config.terminateOnPointerUp&&Bt.state===Ze.FADING_IN)&&Bt.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Bt=this._triggerElement;Bt&&(an.forEach(Ee=>Kt._eventManager.removeHandler(Ee,Bt,this)),this._pointerUpEventsRegistered&&(Xn.forEach(Ee=>Bt.removeEventListener(Ee,this,Qt)),this._pointerUpEventsRegistered=!1))}}const zt=new i.nKC("mat-ripple-global-options");let xn=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(Ee){Ee&&this.fadeOutAllNonPersistent(),this._disabled=Ee,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ee){this._trigger=Ee,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){const Ee=(0,i.WQX)(i.SKi),lt=(0,i.WQX)(w.OD),Pe=(0,i.WQX)(zt,{optional:!0}),kt=(0,i.WQX)(i.zZn);this._globalOptions=Pe||{},this._rippleRenderer=new Kt(this,Ee,this._elementRef,lt,kt)}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(Ee,lt=0,Pe){return"number"==typeof Ee?this._rippleRenderer.fadeInRipple(Ee,lt,{...this.rippleConfig,...Pe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Ee})}static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(lt,Pe){2<&&i.AVh("mat-ripple-unbounded",Pe.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return _t})(),Yn=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[ae,ae]})}return _t})(),tt=(()=>{class _t{_animationMode=(0,i.WQX)(i.bc$,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(lt,Pe){2<&&i.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===Pe.state)("mat-pseudo-checkbox-checked","checked"===Pe.state)("mat-pseudo-checkbox-disabled",Pe.disabled)("mat-pseudo-checkbox-minimal","minimal"===Pe.appearance)("mat-pseudo-checkbox-full","full"===Pe.appearance)("_mat-animation-noopable","NoopAnimations"===Pe._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(lt,Pe){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return _t})(),ke=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[ae]})}return _t})();const B=new i.nKC("MAT_OPTION_PARENT_COMPONENT"),k=new i.nKC("MatOptgroup");class De{source;isUserInput;constructor(Bt,Ee=!1){this.source=Bt,this.isUserInput=Ee}}let it=(()=>{class _t{_element=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_parent=(0,i.WQX)(B,{optional:!0});group=(0,i.WQX)(k,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=(0,i.WQX)(a.g7).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Ee){this._disabled=Ee}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}onSelectionChange=new i.bkB;_text;_stateChanges=new y.B;constructor(){(0,i.WQX)(T.l).load(dt),(0,i.WQX)(T.l).load(T.Y),this._signalDisableRipple=!!this._parent&&(0,i.Hps)(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(Ee=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),Ee&&this._emitSelectionChangeEvent())}deselect(Ee=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),Ee&&this._emitSelectionChangeEvent())}focus(Ee,lt){const Pe=this._getHostElement();"function"==typeof Pe.focus&&Pe.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(Ee){(Ee.keyCode===S.Fm||Ee.keyCode===S.t6)&&!(0,S.rp)(Ee)&&(this._selectViaInteraction(),Ee.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 Ee=this.viewValue;Ee!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=Ee)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Ee=!1){this.onSelectionChange.emit(new De(this,Ee))}static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["mat-option"]],viewQuery:function(lt,Pe){if(1<&&i.GBs(K,7),2<){let kt;i.mGM(kt=i.lsd())&&(Pe._text=kt.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(lt,Pe){1<&&i.bIt("click",function(){return Pe._selectViaInteraction()})("keydown",function(ft){return Pe._handleKeydown(ft)}),2<&&(i.Mr5("id",Pe.id),i.BMQ("aria-selected",Pe.selected)("aria-disabled",Pe.disabled.toString()),i.AVh("mdc-list-item--selected",Pe.selected)("mat-mdc-option-multiple",Pe.multiple)("mat-mdc-option-active",Pe.active)("mdc-list-item--disabled",Pe.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",i.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[i.GFd],ngContentSelectors:ne,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(lt,Pe){1<&&(i.NAR(Z),i.DNE(0,be,1,2,"mat-pseudo-checkbox",1),i.SdG(1),i.j41(2,"span",2,0),i.SdG(4,1),i.k0s(),i.DNE(5,me,1,1,"mat-pseudo-checkbox",3)(6,pe,2,1,"span",4),i.nrm(7,"div",5)),2<&&(i.vxM(Pe.multiple?0:-1),i.R7$(5),i.vxM(Pe.multiple||!Pe.selected||Pe.hideSingleSelectionIndicator?-1:5),i.R7$(),i.vxM(Pe.group&&Pe.group._inert?6:-1),i.R7$(),i.Y8G("matRippleTrigger",Pe._getHostElement())("matRippleDisabled",Pe.disabled||Pe.disableRipple))},dependencies:[tt,xn],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return _t})();function ot(_t,Bt,Ee){if(Ee.length){let lt=Bt.toArray(),Pe=Ee.toArray(),kt=0;for(let ft=0;ft<_t+1;ft++)lt[ft].group&<[ft].group===Pe[kt]&&kt++;return kt}return 0}function Tt(_t,Bt,Ee,lt){return _tEe+lt?Math.max(0,_t-lt+Bt):Ee}let In=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[Yn,ae,ke]})}return _t})();const Vt={capture:!0},dn=["focus","mousedown","mouseenter","touchstart"],Pn="mat-ripple-loader-uninitialized",Fn="mat-ripple-loader-class-name",Bn="mat-ripple-loader-centered",cr="mat-ripple-loader-disabled";let Jr=(()=>{class _t{_document=(0,i.WQX)(A.qQ,{optional:!0});_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_globalRippleOptions=(0,i.WQX)(zt,{optional:!0});_platform=(0,i.WQX)(w.OD);_ngZone=(0,i.WQX)(i.SKi);_injector=(0,i.WQX)(i.zZn);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(const Ee of dn)this._document?.addEventListener(Ee,this._onInteraction,Vt)})}ngOnDestroy(){const Ee=this._hosts.keys();for(const lt of Ee)this.destroyRipple(lt);for(const lt of dn)this._document?.removeEventListener(lt,this._onInteraction,Vt)}configureRipple(Ee,lt){Ee.setAttribute(Pn,this._globalRippleOptions?.namespace??""),(lt.className||!Ee.hasAttribute(Fn))&&Ee.setAttribute(Fn,lt.className||""),lt.centered&&Ee.setAttribute(Bn,""),lt.disabled&&Ee.setAttribute(cr,"")}setDisabled(Ee,lt){const Pe=this._hosts.get(Ee);Pe?(Pe.target.rippleDisabled=lt,!lt&&!Pe.hasSetUpEvents&&(Pe.hasSetUpEvents=!0,Pe.renderer.setupTriggerEvents(Ee))):lt?Ee.setAttribute(cr,""):Ee.removeAttribute(cr)}_onInteraction=Ee=>{const lt=(0,w.Fb)(Ee);if(lt instanceof HTMLElement){const Pe=lt.closest(`[${Pn}="${this._globalRippleOptions?.namespace??""}"]`);Pe&&this._createRipple(Pe)}};_createRipple(Ee){if(!this._document||this._hosts.has(Ee))return;Ee.querySelector(".mat-ripple")?.remove();const lt=this._document.createElement("span");lt.classList.add("mat-ripple",Ee.getAttribute(Fn)),Ee.append(lt);const Pe="NoopAnimations"===this._animationMode,kt=this._globalRippleOptions,ft=Pe?0:kt?.animation?.enterDuration??Kn.enterDuration,Pt=Pe?0:kt?.animation?.exitDuration??Kn.exitDuration,mn={rippleDisabled:Pe||kt?.disabled||Ee.hasAttribute(cr),rippleConfig:{centered:Ee.hasAttribute(Bn),terminateOnPointerUp:kt?.terminateOnPointerUp,animation:{enterDuration:ft,exitDuration:Pt}}},or=new Kt(mn,this._ngZone,lt,this._platform,this._injector),Mr=!mn.rippleDisabled;Mr&&or.setupTriggerEvents(Ee),this._hosts.set(Ee,{target:mn,renderer:or,hasSetUpEvents:Mr}),Ee.removeAttribute(Pn)}destroyRipple(Ee){const lt=this._hosts.get(Ee);lt&&(lt.renderer._removeTriggerEvents(),this._hosts.delete(Ee))}static \u0275fac=function(lt){return new(lt||_t)};static \u0275prov=i.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})(),Xr=(()=>{class _t{labelPosition;static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(lt,Pe){2<&&i.AVh("mdc-form-field--align-end","before"===Pe.labelPosition)},inputs:{labelPosition:"labelPosition"},attrs:Te,ngContentSelectors:xe,decls:1,vars:0,template:function(lt,Pe){1<&&(i.NAR(),i.SdG(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}return _t})()},5351:(o,s,r)=>{"use strict";r.d(s,{Vh:()=>se,bZ:()=>Kn,E7:()=>En,tx:()=>Nt,Yi:()=>Xn,hM:()=>zt,CP:()=>He});var i=r(6969),a=r(4438),c=r(9888),y=r(6860),w=r(6939),C=r(177),T=r(7336),S=r(1413),A=r(9030),I=r(7673),N=r(8203),K=r(9172);function Z(tt,ke){}class ne{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!0;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext}let me=(()=>{class tt extends w.lb{_elementRef=(0,a.WQX)(a.aKT);_focusTrapFactory=(0,a.WQX)(c.GX);_config;_interactivityChecker=(0,a.WQX)(c.Z7);_ngZone=(0,a.WQX)(a.SKi);_overlayRef=(0,a.WQX)(i.yY);_focusMonitor=(0,a.WQX)(c.FN);_platform=(0,a.WQX)(y.OD);_document=(0,a.WQX)(C.qQ,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=(0,a.WQX)(a.gRc);_injector=(0,a.WQX)(a.zZn);_isDestroyed=!1;constructor(){super(),this._config=(0,a.WQX)(ne,{optional:!0})||new ne,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(B){this._ariaLabelledByQueue.push(B),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(B){const k=this._ariaLabelledByQueue.indexOf(B);k>-1&&(this._ariaLabelledByQueue.splice(k,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(B){this._portalOutlet.hasAttached();const k=this._portalOutlet.attachComponentPortal(B);return this._contentAttached(),k}attachTemplatePortal(B){this._portalOutlet.hasAttached();const k=this._portalOutlet.attachTemplatePortal(B);return this._contentAttached(),k}attachDomPortal=B=>{this._portalOutlet.hasAttached();const k=this._portalOutlet.attachDomPortal(B);return this._contentAttached(),k};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(B,k){this._interactivityChecker.isFocusable(B)||(B.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const j=()=>{B.removeEventListener("blur",j),B.removeEventListener("mousedown",j),B.removeAttribute("tabindex")};B.addEventListener("blur",j),B.addEventListener("mousedown",j)})),B.focus(k)}_focusByCssSelector(B,k){let j=this._elementRef.nativeElement.querySelector(B);j&&this._forceFocus(j,k)}_trapFocus(){this._isDestroyed||(0,a.mal)(()=>{const B=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||B.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 B=this._config.restoreFocus;let k=null;if("string"==typeof B?k=this._document.querySelector(B):"boolean"==typeof B?k=B?this._elementFocusedBeforeDialogWasOpened:null:B&&(k=B),this._config.restoreFocus&&k&&"function"==typeof k.focus){const j=(0,y.vc)(),De=this._elementRef.nativeElement;(!j||j===this._document.body||j===De||De.contains(j))&&(this._focusMonitor?(this._focusMonitor.focusVia(k,this._closeInteractionType),this._closeInteractionType=null):k.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const B=this._elementRef.nativeElement,k=(0,y.vc)();return B===k||B.contains(k)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,y.vc)()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(k){return new(k||tt)};static \u0275cmp=a.VBU({type:tt,selectors:[["cdk-dialog-container"]],viewQuery:function(k,j){if(1&k&&a.GBs(w.I3,7),2&k){let De;a.mGM(De=a.lsd())&&(j._portalOutlet=De.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(k,j){2&k&&a.BMQ("id",j._config.id||null)("role",j._config.role)("aria-modal",j._config.ariaModal)("aria-labelledby",j._config.ariaLabel?null:j._ariaLabelledByQueue[0])("aria-label",j._config.ariaLabel)("aria-describedby",j._config.ariaDescribedBy||null)},features:[a.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(k,j){1&k&&a.DNE(0,Z,0,0,"ng-template",0)},dependencies:[w.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return tt})();class pe{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new S.B;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(ke,B){this.overlayRef=ke,this.config=B,this.disableClose=B.disableClose,this.backdropClick=ke.backdropClick(),this.keydownEvents=ke.keydownEvents(),this.outsidePointerEvents=ke.outsidePointerEvents(),this.id=B.id,this.keydownEvents.subscribe(k=>{k.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(k)&&(k.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=ke.detachments().subscribe(()=>{!1!==B.closeOnOverlayDetachments&&this.close()})}close(ke,B){if(this.containerInstance){const k=this.closed;this.containerInstance._closeInteractionType=B?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),k.next(ke),k.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(ke="",B=""){return this.overlayRef.updateSize({width:ke,height:B}),this}addPanelClass(ke){return this.overlayRef.addPanelClass(ke),this}removePanelClass(ke){return this.overlayRef.removePanelClass(ke),this}}const Te=new a.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const tt=(0,a.WQX)(i.hJ);return()=>tt.scrollStrategies.block()}}),xe=new a.nKC("DialogData"),Re=new a.nKC("DefaultDialogConfig");let le=(()=>{class tt{_overlay=(0,a.WQX)(i.hJ);_injector=(0,a.WQX)(a.zZn);_defaultOptions=(0,a.WQX)(Re,{optional:!0});_parentDialog=(0,a.WQX)(tt,{optional:!0,skipSelf:!0});_overlayContainer=(0,a.WQX)(i.Sf);_idGenerator=(0,a.WQX)(c.g7);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S.B;_afterOpenedAtThisLevel=new S.B;_ariaHiddenElements=new Map;_scrollStrategy=(0,a.WQX)(Te);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=(0,A.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,K.Z)(void 0)));constructor(){}open(B,k){(k={...this._defaultOptions||new ne,...k}).id=k.id||this._idGenerator.getId("cdk-dialog-"),k.id&&this.getDialogById(k.id);const De=this._getOverlayConfig(k),it=this._overlay.create(De),ot=new pe(it,k),Tt=this._attachContainer(it,ot,k);return ot.containerInstance=Tt,this._attachDialogContent(B,ot,Tt,k),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(ot),ot.closed.subscribe(()=>this._removeOpenDialog(ot,!0)),this.afterOpened.next(ot),ot}closeAll(){ae(this.openDialogs,B=>B.close())}getDialogById(B){return this.openDialogs.find(k=>k.id===B)}ngOnDestroy(){ae(this._openDialogsAtThisLevel,B=>{!1===B.config.closeOnDestroy&&this._removeOpenDialog(B,!1)}),ae(this._openDialogsAtThisLevel,B=>B.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(B){const k=new i.rR({positionStrategy:B.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:B.scrollStrategy||this._scrollStrategy(),panelClass:B.panelClass,hasBackdrop:B.hasBackdrop,direction:B.direction,minWidth:B.minWidth,minHeight:B.minHeight,maxWidth:B.maxWidth,maxHeight:B.maxHeight,width:B.width,height:B.height,disposeOnNavigation:B.closeOnNavigation});return B.backdropClass&&(k.backdropClass=B.backdropClass),k}_attachContainer(B,k,j){const De=j.injector||j.viewContainerRef?.injector,it=[{provide:ne,useValue:j},{provide:pe,useValue:k},{provide:i.yY,useValue:B}];let ot;j.container?"function"==typeof j.container?ot=j.container:(ot=j.container.type,it.push(...j.container.providers(j))):ot=me;const Tt=new w.A8(ot,j.viewContainerRef,a.zZn.create({parent:De||this._injector,providers:it}));return B.attach(Tt).instance}_attachDialogContent(B,k,j,De){if(B instanceof a.C4Q){const it=this._createInjector(De,k,j,void 0);let ot={$implicit:De.data,dialogRef:k};De.templateContext&&(ot={...ot,..."function"==typeof De.templateContext?De.templateContext():De.templateContext}),j.attachTemplatePortal(new w.VA(B,null,ot,it))}else{const it=this._createInjector(De,k,j,this._injector),ot=j.attachComponentPortal(new w.A8(B,De.viewContainerRef,it));k.componentRef=ot,k.componentInstance=ot.instance}}_createInjector(B,k,j,De){const it=B.injector||B.viewContainerRef?.injector,ot=[{provide:xe,useValue:B.data},{provide:pe,useValue:k}];return B.providers&&("function"==typeof B.providers?ot.push(...B.providers(k,B,j)):ot.push(...B.providers)),B.direction&&(!it||!it.get(N.dS,null,{optional:!0}))&&ot.push({provide:N.dS,useValue:{value:B.direction,change:(0,I.of)()}}),a.zZn.create({parent:it||De,providers:ot})}_removeOpenDialog(B,k){const j=this.openDialogs.indexOf(B);j>-1&&(this.openDialogs.splice(j,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((De,it)=>{De?it.setAttribute("aria-hidden",De):it.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),k&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const B=this._overlayContainer.getContainerElement();if(B.parentElement){const k=B.parentElement.children;for(let j=k.length-1;j>-1;j--){const De=k[j];De!==B&&"SCRIPT"!==De.nodeName&&"STYLE"!==De.nodeName&&!De.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(De,De.getAttribute("aria-hidden")),De.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const B=this._parentDialog;return B?B._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=a.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})();function ae(tt,ke){let B=tt.length;for(;B--;)ke(tt[B])}let Ie=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275mod=a.$C({type:tt});static \u0275inj=a.G2t({providers:[le],imports:[i.z_,w.jc,c.Pd,w.jc]})}return tt})();var $e=r(4085),st=r(7786),ht=r(5964),vt=r(6697),at=r(5542),Xt=r(3);function yn(tt,ke){}r(9969);class $n{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!0;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration}const bn="mdc-dialog--open",Qe="mdc-dialog--opening",bt="mdc-dialog--closing";let Ft=(()=>{class tt extends me{_animationMode=(0,a.WQX)(a.bc$,{optional:!0});_animationStateChanged=new a.bkB;_animationsEnabled="NoopAnimations"!==this._animationMode;_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?dt(this._config.enterAnimationDuration)??150:0;_exitAnimationDuration=this._animationsEnabled?dt(this._config.exitAnimationDuration)??75:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ze,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Qe,bn)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(bn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(bn),this._animationsEnabled?(this._hostElement.style.setProperty(ze,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(bt)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(B){this._actionSectionCount+=B,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(Qe,bt)}_waitForAnimationToComplete(B,k){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(k,B)}_requestAnimationFrame(B){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(B):B()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(B){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:B})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(B){const k=super.attachComponentPortal(B);return k.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),k}static \u0275fac=(()=>{let B;return function(j){return(B||(B=a.xGo(tt)))(j||tt)}})();static \u0275cmp=a.VBU({type:tt,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(k,j){2&k&&(a.Mr5("id",j._config.id),a.BMQ("aria-modal",j._config.ariaModal)("role",j._config.role)("aria-labelledby",j._config.ariaLabel?null:j._ariaLabelledByQueue[0])("aria-label",j._config.ariaLabel)("aria-describedby",j._config.ariaDescribedBy||null),a.AVh("_mat-animation-noopable",!j._animationsEnabled)("mat-mdc-dialog-container-with-actions",j._actionSectionCount>0))},features:[a.Vt3],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(k,j){1&k&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,yn,0,0,"ng-template",2),a.k0s()())},dependencies:[w.I3],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}return tt})();const ze="--mat-dialog-transition-duration";function dt(tt){return null==tt?null:"number"==typeof tt?tt:tt.endsWith("ms")?(0,$e.OE)(tt.substring(0,tt.length-2)):tt.endsWith("s")?1e3*(0,$e.OE)(tt.substring(0,tt.length-1)):"0"===tt?0:null}var Ke=function(tt){return tt[tt.OPEN=0]="OPEN",tt[tt.CLOSING=1]="CLOSING",tt[tt.CLOSED=2]="CLOSED",tt}(Ke||{});class He{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new S.B;_beforeClosed=new S.B;_result;_closeFallbackTimeout;_state=Ke.OPEN;_closeInteractionType;constructor(ke,B,k){this._ref=ke,this._containerInstance=k,this.disableClose=B.disableClose,this.id=ke.id,ke.addPanelClass("mat-mdc-dialog-panel"),k._animationStateChanged.pipe((0,ht.p)(j=>"opened"===j.state),(0,vt.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),k._animationStateChanged.pipe((0,ht.p)(j=>"closed"===j.state),(0,vt.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ke.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,st.h)(this.backdropClick(),this.keydownEvents().pipe((0,ht.p)(j=>j.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(j)))).subscribe(j=>{this.disableClose||(j.preventDefault(),mt(this,"keydown"===j.type?"keyboard":"mouse"))})}close(ke){this._result=ke,this._containerInstance._animationStateChanged.pipe((0,ht.p)(B=>"closing"===B.state),(0,vt.s)(1)).subscribe(B=>{this._beforeClosed.next(ke),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),B.totalTime+100)}),this._state=Ke.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(ke){let B=this._ref.config.positionStrategy;return ke&&(ke.left||ke.right)?ke.left?B.left(ke.left):B.right(ke.right):B.centerHorizontally(),ke&&(ke.top||ke.bottom)?ke.top?B.top(ke.top):B.bottom(ke.bottom):B.centerVertically(),this._ref.updatePosition(),this}updateSize(ke="",B=""){return this._ref.updateSize(ke,B),this}addPanelClass(ke){return this._ref.addPanelClass(ke),this}removePanelClass(ke){return this._ref.removePanelClass(ke),this}getState(){return this._state}_finishDialogClose(){this._state=Ke.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function mt(tt,ke,B){return tt._closeInteractionType=ke,tt.close(B)}const se=new a.nKC("MatMdcDialogData"),Ze=new a.nKC("mat-mdc-dialog-default-options"),Rt=new a.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const tt=(0,a.WQX)(i.hJ);return()=>tt.scrollStrategies.block()}});let Kn=(()=>{class tt{_overlay=(0,a.WQX)(i.hJ);_defaultOptions=(0,a.WQX)(Ze,{optional:!0});_scrollStrategy=(0,a.WQX)(Rt);_parentDialog=(0,a.WQX)(tt,{optional:!0,skipSelf:!0});_idGenerator=(0,a.WQX)(c.g7);_dialog=(0,a.WQX)(le);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S.B;_afterOpenedAtThisLevel=new S.B;dialogConfigClass=$n;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const B=this._parentDialog;return B?B._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=(0,A.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,K.Z)(void 0)));constructor(){this._dialogRefConstructor=He,this._dialogContainerType=Ft,this._dialogDataToken=se}open(B,k){let j;(k={...this._defaultOptions||new $n,...k}).id=k.id||this._idGenerator.getId("mat-mdc-dialog-"),k.scrollStrategy=k.scrollStrategy||this._scrollStrategy();const De=this._dialog.open(B,{...k,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:k},{provide:ne,useValue:k}]},templateContext:()=>({dialogRef:j}),providers:(it,ot,Tt)=>(j=new this._dialogRefConstructor(it,k,Tt),j.updatePosition(k?.position),[{provide:this._dialogContainerType,useValue:Tt},{provide:this._dialogDataToken,useValue:ot.data},{provide:this._dialogRefConstructor,useValue:j}])});return j.componentRef=De.componentRef,j.componentInstance=De.componentInstance,this.openDialogs.push(j),this.afterOpened.next(j),j.afterClosed().subscribe(()=>{const it=this.openDialogs.indexOf(j);it>-1&&(this.openDialogs.splice(it,1),this.openDialogs.length||this._getAfterAllClosed().next())}),j}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(B){return this.openDialogs.find(k=>k.id===B)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(B){let k=B.length;for(;k--;)B[k].close()}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=a.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})(),Nt=(()=>{class tt{dialogRef=(0,a.WQX)(He,{optional:!0});_elementRef=(0,a.WQX)(a.aKT);_dialog=(0,a.WQX)(Kn);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=Kt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(B){const k=B._matDialogClose||B._matDialogCloseResult;k&&(this.dialogResult=k.currentValue)}_onButtonClick(B){mt(this.dialogRef,0===B.screenX&&0===B.screenY?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(k){return new(k||tt)};static \u0275dir=a.FsC({type:tt,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(k,j){1&k&&a.bIt("click",function(it){return j._onButtonClick(it)}),2&k&&a.BMQ("aria-label",j.ariaLabel||null)("type",j.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[a.OA$]})}return tt})(),Qt=(()=>{class tt{_dialogRef=(0,a.WQX)(He,{optional:!0});_elementRef=(0,a.WQX)(a.aKT);_dialog=(0,a.WQX)(Kn);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=Kt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(k){return new(k||tt)};static \u0275dir=a.FsC({type:tt})}return tt})(),Xn=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275dir=a.FsC({type:tt,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[a.nM4([at.uv])]})}return tt})(),En=(()=>{class tt extends Qt{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let B;return function(j){return(B||(B=a.xGo(tt)))(j||tt)}})();static \u0275dir=a.FsC({type:tt,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(k,j){2&k&&a.AVh("mat-mdc-dialog-actions-align-start","start"===j.align)("mat-mdc-dialog-actions-align-center","center"===j.align)("mat-mdc-dialog-actions-align-end","end"===j.align)},inputs:{align:"align"},features:[a.Vt3]})}return tt})();function Kt(tt,ke){let B=tt.nativeElement.parentElement;for(;B&&!B.classList.contains("mat-mdc-dialog-container");)B=B.parentElement;return B?ke.find(k=>k.id===B.id):null}let zt=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275mod=a.$C({type:tt});static \u0275inj=a.G2t({providers:[Kn],imports:[Ie,i.z_,w.jc,Xt.yE,Xt.yE]})}return tt})()},1997:(o,s,r)=>{"use strict";r.d(s,{q:()=>y,w:()=>w});var i=r(4438),a=r(4085),c=r(3);let y=(()=>{class C{get vertical(){return this._vertical}set vertical(S){this._vertical=(0,a.he)(S)}_vertical=!1;get inset(){return this._inset}set inset(S){this._inset=(0,a.he)(S)}_inset=!1;static \u0275fac=function(A){return new(A||C)};static \u0275cmp=i.VBU({type:C,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(A,I){2&A&&(i.BMQ("aria-orientation",I.vertical?"vertical":"horizontal"),i.AVh("mat-divider-vertical",I.vertical)("mat-divider-horizontal",!I.vertical)("mat-divider-inset",I.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(A,I){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return C})(),w=(()=>{class C{static \u0275fac=function(A){return new(A||C)};static \u0275mod=i.$C({type:C});static \u0275inj=i.G2t({imports:[c.yE,c.yE]})}return C})()},2408:(o,s,r)=>{"use strict";r.d(s,{xb:()=>Vt,U$:()=>dn,TL:()=>an,rl:()=>Jr,qT:()=>it,RG:()=>Xr,MV:()=>Xn,nJ:()=>Nt,JW:()=>Kt,yw:()=>zt});var i=r(4438),a=r(9888),c=r(8203),y=r(4085),w=r(6860),C=r(177),T=r(8359),S=r(1413),A=r(7786),I=r(9172),N=r(6354),K=r(9974),Z=r(4360),be=r(5964),me=r(6977),pe=r(1985),Te=r(4668);class Re{_box;_destroyed=new S.B;_resizeSubject=new S.B;_resizeObserver;_elementObservables=new Map;constructor(Bt){this._box=Bt,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(Ee=>this._resizeSubject.next(Ee)))}observe(Bt){return this._elementObservables.has(Bt)||this._elementObservables.set(Bt,new pe.c(Ee=>{const lt=this._resizeSubject.subscribe(Ee);return this._resizeObserver?.observe(Bt,{box:this._box}),()=>{this._resizeObserver?.unobserve(Bt),lt.unsubscribe(),this._elementObservables.delete(Bt)}}).pipe((0,be.p)(Ee=>Ee.some(lt=>lt.target===Bt)),(0,Te.t)({bufferSize:1,refCount:!0}),(0,me.Q)(this._destroyed))),this._elementObservables.get(Bt)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Me=(()=>{class _t{_observers=new Map;_ngZone=(0,i.WQX)(i.SKi);constructor(){}ngOnDestroy(){for(const[,Ee]of this._observers)Ee.destroy();this._observers.clear()}observe(Ee,lt){const Pe=lt?.box||"content-box";return this._observers.has(Pe)||this._observers.set(Pe,new Re(Pe)),this._observers.get(Pe).observe(Ee)}static \u0275fac=function(lt){return new(lt||_t)};static \u0275prov=i.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();var Ce=r(9969),le=r(2318),ae=r(3);const Ie=["notch"],$e=["matFormFieldNotchedOutline",""],st=["*"],ht=["textField"],vt=["iconPrefixContainer"],at=["textPrefixContainer"],Xt=["iconSuffixContainer"],ln=["textSuffixContainer"],yn=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],$n=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function bn(_t,Bt){1&_t&&i.nrm(0,"span",21)}function Qe(_t,Bt){if(1&_t&&(i.j41(0,"label",20),i.SdG(1,1),i.DNE(2,bn,1,0,"span",21),i.k0s()),2&_t){const Ee=i.XpG(2);i.Y8G("floating",Ee._shouldLabelFloat())("monitorResize",Ee._hasOutline())("id",Ee._labelId),i.BMQ("for",Ee._control.disableAutomaticLabeling?null:Ee._control.id),i.R7$(2),i.vxM(!Ee.hideRequiredMarker&&Ee._control.required?2:-1)}}function bt(_t,Bt){if(1&_t&&i.DNE(0,Qe,3,5,"label",20),2&_t){const Ee=i.XpG();i.vxM(Ee._hasFloatingLabel()?0:-1)}}function Ge(_t,Bt){1&_t&&i.nrm(0,"div",7)}function Fe(_t,Bt){}function Ft(_t,Bt){if(1&_t&&i.DNE(0,Fe,0,0,"ng-template",13),2&_t){i.XpG(2);const Ee=i.sdS(1);i.Y8G("ngTemplateOutlet",Ee)}}function ze(_t,Bt){if(1&_t&&(i.j41(0,"div",9),i.DNE(1,Ft,1,1,null,13),i.k0s()),2&_t){const Ee=i.XpG();i.Y8G("matFormFieldNotchedOutlineOpen",Ee._shouldLabelFloat()),i.R7$(),i.vxM(Ee._forceDisplayInfixLabel()?-1:1)}}function dt(_t,Bt){1&_t&&(i.j41(0,"div",10,2),i.SdG(2,2),i.k0s())}function Ke(_t,Bt){1&_t&&(i.j41(0,"div",11,3),i.SdG(2,3),i.k0s())}function He(_t,Bt){}function mt(_t,Bt){if(1&_t&&i.DNE(0,He,0,0,"ng-template",13),2&_t){i.XpG();const Ee=i.sdS(1);i.Y8G("ngTemplateOutlet",Ee)}}function se(_t,Bt){1&_t&&(i.j41(0,"div",14,4),i.SdG(2,4),i.k0s())}function Ze(_t,Bt){1&_t&&(i.j41(0,"div",15,5),i.SdG(2,5),i.k0s())}function Rt(_t,Bt){1&_t&&i.nrm(0,"div",16)}function Jt(_t,Bt){if(1&_t&&(i.j41(0,"div",18),i.SdG(1,6),i.k0s()),2&_t){const Ee=i.XpG();i.Y8G("@transitionMessages",Ee._subscriptAnimationState)}}function fn(_t,Bt){if(1&_t&&(i.j41(0,"mat-hint",22),i.EFF(1),i.k0s()),2&_t){const Ee=i.XpG(2);i.Y8G("id",Ee._hintLabelId),i.R7$(),i.JRh(Ee.hintLabel)}}function Kn(_t,Bt){if(1&_t&&(i.j41(0,"div",19),i.DNE(1,fn,2,2,"mat-hint",22),i.SdG(2,7),i.nrm(3,"div",23),i.SdG(4,8),i.k0s()),2&_t){const Ee=i.XpG();i.Y8G("@transitionMessages",Ee._subscriptAnimationState),i.R7$(),i.vxM(Ee.hintLabel?1:-1)}}let Nt=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["mat-label"]]})}return _t})();const Qt=new i.nKC("MatError");let an=(()=>{class _t{id=(0,i.WQX)(a.g7).getId("mat-mdc-error-");constructor(){(0,i.WQX)(new i.ES_("aria-live"),{optional:!0})||(0,i.WQX)(i.aKT).nativeElement.setAttribute("aria-live","polite")}static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(lt,Pe){2<&&i.Mr5("id",Pe.id)},inputs:{id:"id"},features:[i.Jv_([{provide:Qt,useExisting:_t}])]})}return _t})(),Xn=(()=>{class _t{align="start";id=(0,i.WQX)(a.g7).getId("mat-mdc-hint-");static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(lt,Pe){2<&&(i.Mr5("id",Pe.id),i.BMQ("align",null),i.AVh("mat-mdc-form-field-hint-end","end"===Pe.align))},inputs:{align:"align",id:"id"}})}return _t})();const En=new i.nKC("MatPrefix");let Kt=(()=>{class _t{set _isTextSelector(Ee){this._isText=!0}_isText=!1;static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[i.Jv_([{provide:En,useExisting:_t}])]})}return _t})();const At=new i.nKC("MatSuffix");let zt=(()=>{class _t{set _isTextSelector(Ee){this._isText=!0}_isText=!1;static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[i.Jv_([{provide:At,useExisting:_t}])]})}return _t})();const xn=new i.nKC("FloatingLabelParent");let Yn=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);get floating(){return this._floating}set floating(Ee){this._floating=Ee,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(Ee){this._monitorResize=Ee,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=(0,i.WQX)(Me);_ngZone=(0,i.WQX)(i.SKi);_parent=(0,i.WQX)(xn);_resizeSubscription=new T.yU;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function tt(_t){if(null!==_t.offsetParent)return _t.scrollWidth;const Ee=_t.cloneNode(!0);Ee.style.setProperty("position","absolute"),Ee.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Ee);const lt=Ee.scrollWidth;return Ee.remove(),lt}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(lt,Pe){2<&&i.AVh("mdc-floating-label--float-above",Pe.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return _t})();const ke="mdc-line-ripple--active",B="mdc-line-ripple--deactivating";let k=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);constructor(){(0,i.WQX)(i.SKi).runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const Ee=this._elementRef.nativeElement.classList;Ee.remove(B),Ee.add(ke)}deactivate(){this._elementRef.nativeElement.classList.add(B)}_handleTransitionEnd=Ee=>{const lt=this._elementRef.nativeElement.classList,Pe=lt.contains(B);"opacity"===Ee.propertyName&&Pe&<.remove(ke,B)};ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return _t})(),j=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);_ngZone=(0,i.WQX)(i.SKi);open=!1;_notch;constructor(){}ngAfterViewInit(){const Ee=this._elementRef.nativeElement.querySelector(".mdc-floating-label");Ee?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(Ee.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>Ee.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(Ee){this._notch.nativeElement.style.width=this.open&&Ee?`calc(${Ee}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(lt,Pe){if(1<&&i.GBs(Ie,5),2<){let kt;i.mGM(kt=i.lsd())&&(Pe._notch=kt.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(lt,Pe){2<&&i.AVh("mdc-notched-outline--notched",Pe.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:$e,ngContentSelectors:st,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(lt,Pe){1<&&(i.NAR(),i.nrm(0,"div",1),i.j41(1,"div",2,0),i.SdG(3),i.k0s(),i.nrm(4,"div",3))},encapsulation:2,changeDetection:0})}return _t})();const De={transitionMessages:(0,Ce.hZ)("transitionMessages",[(0,Ce.wk)("enter",(0,Ce.iF)({opacity:1,transform:"translateY(0%)"})),(0,Ce.kY)("void => enter",[(0,Ce.iF)({opacity:0,transform:"translateY(-5px)"}),(0,Ce.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let it=(()=>{class _t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t})}return _t})();const Vt=new i.nKC("MatFormField"),dn=new i.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Jr=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_dir=(0,i.WQX)(c.dS);_platform=(0,i.WQX)(w.OD);_idGenerator=(0,i.WQX)(a.g7);_defaults=(0,i.WQX)(dn,{optional:!0});_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=(0,i.sbv)(Nt);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Ee){this._hideRequiredMarker=(0,y.he)(Ee)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(Ee){Ee!==this._floatLabel&&(this._floatLabel=Ee,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(Ee){const lt=this._appearance;this._appearance=Ee||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==lt&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance="fill";get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(Ee){this._subscriptSizing=Ee||this._defaults?.subscriptSizing||"fixed"}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(Ee){this._hintLabel=Ee,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_subscriptAnimationState="";get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(Ee){this._explicitFormFieldControl=Ee}_destroyed=new S.B;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=(0,i.WQX)(i.zZn);constructor(){const Ee=this._defaults;Ee&&(Ee.appearance&&(this.appearance=Ee.appearance),this._hideRequiredMarker=!!Ee?.hideRequiredMarker,Ee.color&&(this.color=Ee.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=(0,i.EWP)(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(Ee){const lt=this._control,Pe="mat-mdc-form-field-type-";Ee&&this._elementRef.nativeElement.classList.remove(Pe+Ee.controlType),lt.controlType&&this._elementRef.nativeElement.classList.add(Pe+lt.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=lt.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=lt.stateChanges.pipe((0,I.Z)([void 0,void 0]),(0,N.T)(()=>[lt.errorState,lt.userAriaDescribedBy]),function ne(){return(0,K.N)((_t,Bt)=>{let Ee,lt=!1;_t.subscribe((0,Z._)(Bt,Pe=>{const kt=Ee;Ee=Pe,lt&&Bt.next([kt,Pe]),lt=!0}))})}(),(0,be.p)(([[kt,ft],[Pt,mn]])=>kt!==Pt||ft!==mn)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),lt.ngControl&<.ngControl.valueChanges&&(this._valueChanges=lt.ngControl.valueChanges.pipe((0,me.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(Ee=>!Ee._isText),this._hasTextPrefix=!!this._prefixChildren.find(Ee=>Ee._isText),this._hasIconSuffix=!!this._suffixChildren.find(Ee=>!Ee._isText),this._hasTextSuffix=!!this._suffixChildren.find(Ee=>Ee._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,A.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),(0,i.Tzd)(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe((0,me.Q)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=(0,i.EWP)(()=>!!this._labelChild());_shouldLabelFloat(){return!!this._hasFloatingLabel()&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_shouldForward(Ee){const lt=this._control?this._control.ngControl:null;return lt&<[Ee]}_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 Ee=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Ee.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const lt=this._hintChildren?this._hintChildren.find(kt=>"start"===kt.align):null,Pe=this._hintChildren?this._hintChildren.find(kt=>"end"===kt.align):null;lt?Ee.push(lt.id):this._hintLabel&&Ee.push(this._hintLabelId),Pe&&Ee.push(Pe.id)}else this._errorChildren&&Ee.push(...this._errorChildren.map(lt=>lt.id));this._control.setDescribedByIds(Ee)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;const Ee=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(Ee.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdate=!0);const lt=this._iconPrefixContainer?.nativeElement,Pe=this._textPrefixContainer?.nativeElement,kt=this._iconSuffixContainer?.nativeElement,ft=this._textSuffixContainer?.nativeElement,Pt=lt?.getBoundingClientRect().width??0,mn=Pe?.getBoundingClientRect().width??0,or=kt?.getBoundingClientRect().width??0,Mr=ft?.getBoundingClientRect().width??0;Ee.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Pt+mn}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`,this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Pt+mn+or+Mr}px)`)}_isAttachedToDom(){const Ee=this._elementRef.nativeElement;if(Ee.getRootNode){const lt=Ee.getRootNode();return lt&<!==Ee}return document.documentElement.contains(Ee)}static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["mat-form-field"]],contentQueries:function(lt,Pe,kt){if(1<&&(i.C6U(kt,Pe._labelChild,Nt,5),i.wni(kt,it,5),i.wni(kt,En,5),i.wni(kt,At,5),i.wni(kt,Qt,5),i.wni(kt,Xn,5)),2<){let ft;i.NyB(),i.mGM(ft=i.lsd())&&(Pe._formFieldControl=ft.first),i.mGM(ft=i.lsd())&&(Pe._prefixChildren=ft),i.mGM(ft=i.lsd())&&(Pe._suffixChildren=ft),i.mGM(ft=i.lsd())&&(Pe._errorChildren=ft),i.mGM(ft=i.lsd())&&(Pe._hintChildren=ft)}},viewQuery:function(lt,Pe){if(1<&&(i.GBs(ht,5),i.GBs(vt,5),i.GBs(at,5),i.GBs(Xt,5),i.GBs(ln,5),i.GBs(Yn,5),i.GBs(j,5),i.GBs(k,5)),2<){let kt;i.mGM(kt=i.lsd())&&(Pe._textField=kt.first),i.mGM(kt=i.lsd())&&(Pe._iconPrefixContainer=kt.first),i.mGM(kt=i.lsd())&&(Pe._textPrefixContainer=kt.first),i.mGM(kt=i.lsd())&&(Pe._iconSuffixContainer=kt.first),i.mGM(kt=i.lsd())&&(Pe._textSuffixContainer=kt.first),i.mGM(kt=i.lsd())&&(Pe._floatingLabel=kt.first),i.mGM(kt=i.lsd())&&(Pe._notchedOutline=kt.first),i.mGM(kt=i.lsd())&&(Pe._lineRipple=kt.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(lt,Pe){2<&&i.AVh("mat-mdc-form-field-label-always-float",Pe._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Pe._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Pe._hasIconSuffix)("mat-form-field-invalid",Pe._control.errorState)("mat-form-field-disabled",Pe._control.disabled)("mat-form-field-autofilled",Pe._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===Pe._animationMode)("mat-form-field-appearance-fill","fill"==Pe.appearance)("mat-form-field-appearance-outline","outline"==Pe.appearance)("mat-form-field-hide-placeholder",Pe._hasFloatingLabel()&&!Pe._shouldLabelFloat())("mat-focused",Pe._control.focused)("mat-primary","accent"!==Pe.color&&"warn"!==Pe.color)("mat-accent","accent"===Pe.color)("mat-warn","warn"===Pe.color)("ng-untouched",Pe._shouldForward("untouched"))("ng-touched",Pe._shouldForward("touched"))("ng-pristine",Pe._shouldForward("pristine"))("ng-dirty",Pe._shouldForward("dirty"))("ng-valid",Pe._shouldForward("valid"))("ng-invalid",Pe._shouldForward("invalid"))("ng-pending",Pe._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[i.Jv_([{provide:Vt,useExisting:_t},{provide:xn,useExisting:_t}])],ngContentSelectors:$n,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(lt,Pe){if(1<){const kt=i.RV6();i.NAR(yn),i.DNE(0,bt,1,1,"ng-template",null,0,i.C5r),i.j41(2,"div",6,1),i.bIt("click",function(Pt){return i.eBV(kt),i.Njj(Pe._control.onContainerClick(Pt))}),i.DNE(4,Ge,1,0,"div",7),i.j41(5,"div",8),i.DNE(6,ze,2,2,"div",9)(7,dt,3,0,"div",10)(8,Ke,3,0,"div",11),i.j41(9,"div",12),i.DNE(10,mt,1,1,null,13),i.SdG(11),i.k0s(),i.DNE(12,se,3,0,"div",14)(13,Ze,3,0,"div",15),i.k0s(),i.DNE(14,Rt,1,0,"div",16),i.k0s(),i.j41(15,"div",17),i.DNE(16,Jt,2,1,"div",18)(17,Kn,5,2,"div",19),i.k0s()}if(2<){let kt;i.R7$(2),i.AVh("mdc-text-field--filled",!Pe._hasOutline())("mdc-text-field--outlined",Pe._hasOutline())("mdc-text-field--no-label",!Pe._hasFloatingLabel())("mdc-text-field--disabled",Pe._control.disabled)("mdc-text-field--invalid",Pe._control.errorState),i.R7$(2),i.vxM(Pe._hasOutline()||Pe._control.disabled?-1:4),i.R7$(2),i.vxM(Pe._hasOutline()?6:-1),i.R7$(),i.vxM(Pe._hasIconPrefix?7:-1),i.R7$(),i.vxM(Pe._hasTextPrefix?8:-1),i.R7$(2),i.vxM(!Pe._hasOutline()||Pe._forceDisplayInfixLabel()?10:-1),i.R7$(2),i.vxM(Pe._hasTextSuffix?12:-1),i.R7$(),i.vxM(Pe._hasIconSuffix?13:-1),i.R7$(),i.vxM(Pe._hasOutline()?-1:14),i.R7$(),i.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Pe.subscriptSizing),i.R7$(),i.vxM("error"===(kt=Pe._getDisplayedMessages())?16:"hint"===kt?17:-1)}},dependencies:[Yn,j,C.T3,k,Xn],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[De.transitionMessages]},changeDetection:0})}return _t})(),Xr=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[ae.yE,le.w5,ae.yE]})}return _t})()},9213:(o,s,r)=>{"use strict";r.d(s,{An:()=>bt,m_:()=>Ge,tp:()=>Ie});var i=r(4438),a=r(3),c=r(177),y=r(7673),w=r(8810),C=r(7468),T=r(8359),S=r(8141),A=r(6354),I=r(9437),N=r(980),K=r(7647),Z=r(6697),ne=r(1626),be=r(345);const me=["*"];let pe;function xe(Fe){return function Te(){if(void 0===pe&&(pe=null,typeof window<"u")){const Fe=window;void 0!==Fe.trustedTypes&&(pe=Fe.trustedTypes.createPolicy("angular#components",{createHTML:Ft=>Ft}))}return pe}()?.createHTML(Fe)||Fe}function Re(Fe){return Error(`Unable to find icon with the name "${Fe}"`)}function Ce(Fe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Fe}".`)}function le(Fe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Fe}".`)}class ae{url;svgText;options;svgElement;constructor(Ft,ze,dt){this.url=Ft,this.svgText=ze,this.options=dt}}let Ie=(()=>{class Fe{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(ze,dt,Ke,He){this._httpClient=ze,this._sanitizer=dt,this._errorHandler=He,this._document=Ke}addSvgIcon(ze,dt,Ke){return this.addSvgIconInNamespace("",ze,dt,Ke)}addSvgIconLiteral(ze,dt,Ke){return this.addSvgIconLiteralInNamespace("",ze,dt,Ke)}addSvgIconInNamespace(ze,dt,Ke,He){return this._addSvgIconConfig(ze,dt,new ae(Ke,null,He))}addSvgIconResolver(ze){return this._resolvers.push(ze),this}addSvgIconLiteralInNamespace(ze,dt,Ke,He){const mt=this._sanitizer.sanitize(i.WPN.HTML,Ke);if(!mt)throw le(Ke);const se=xe(mt);return this._addSvgIconConfig(ze,dt,new ae("",se,He))}addSvgIconSet(ze,dt){return this.addSvgIconSetInNamespace("",ze,dt)}addSvgIconSetLiteral(ze,dt){return this.addSvgIconSetLiteralInNamespace("",ze,dt)}addSvgIconSetInNamespace(ze,dt,Ke){return this._addSvgIconSetConfig(ze,new ae(dt,null,Ke))}addSvgIconSetLiteralInNamespace(ze,dt,Ke){const He=this._sanitizer.sanitize(i.WPN.HTML,dt);if(!He)throw le(dt);const mt=xe(He);return this._addSvgIconSetConfig(ze,new ae("",mt,Ke))}registerFontClassAlias(ze,dt=ze){return this._fontCssClassesByAlias.set(ze,dt),this}classNameForFontAlias(ze){return this._fontCssClassesByAlias.get(ze)||ze}setDefaultFontSetClass(...ze){return this._defaultFontSetClass=ze,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ze){const dt=this._sanitizer.sanitize(i.WPN.RESOURCE_URL,ze);if(!dt)throw Ce(ze);const Ke=this._cachedIconsByUrl.get(dt);return Ke?(0,y.of)(ht(Ke)):this._loadSvgIconFromConfig(new ae(ze,null)).pipe((0,S.M)(He=>this._cachedIconsByUrl.set(dt,He)),(0,A.T)(He=>ht(He)))}getNamedSvgIcon(ze,dt=""){const Ke=vt(dt,ze);let He=this._svgIconConfigs.get(Ke);if(He)return this._getSvgFromConfig(He);if(He=this._getIconConfigFromResolvers(dt,ze),He)return this._svgIconConfigs.set(Ke,He),this._getSvgFromConfig(He);const mt=this._iconSetConfigs.get(dt);return mt?this._getSvgFromIconSetConfigs(ze,mt):(0,w.$)(Re(Ke))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ze){return ze.svgText?(0,y.of)(ht(this._svgElementFromConfig(ze))):this._loadSvgIconFromConfig(ze).pipe((0,A.T)(dt=>ht(dt)))}_getSvgFromIconSetConfigs(ze,dt){const Ke=this._extractIconWithNameFromAnySet(ze,dt);if(Ke)return(0,y.of)(Ke);const He=dt.filter(mt=>!mt.svgText).map(mt=>this._loadSvgIconSetFromConfig(mt).pipe((0,I.W)(se=>{const Rt=`Loading icon set URL: ${this._sanitizer.sanitize(i.WPN.RESOURCE_URL,mt.url)} failed: ${se.message}`;return this._errorHandler.handleError(new Error(Rt)),(0,y.of)(null)})));return(0,C.p)(He).pipe((0,A.T)(()=>{const mt=this._extractIconWithNameFromAnySet(ze,dt);if(!mt)throw Re(ze);return mt}))}_extractIconWithNameFromAnySet(ze,dt){for(let Ke=dt.length-1;Ke>=0;Ke--){const He=dt[Ke];if(He.svgText&&He.svgText.toString().indexOf(ze)>-1){const mt=this._svgElementFromConfig(He),se=this._extractSvgIconFromSet(mt,ze,He.options);if(se)return se}}return null}_loadSvgIconFromConfig(ze){return this._fetchIcon(ze).pipe((0,S.M)(dt=>ze.svgText=dt),(0,A.T)(()=>this._svgElementFromConfig(ze)))}_loadSvgIconSetFromConfig(ze){return ze.svgText?(0,y.of)(null):this._fetchIcon(ze).pipe((0,S.M)(dt=>ze.svgText=dt))}_extractSvgIconFromSet(ze,dt,Ke){const He=ze.querySelector(`[id="${dt}"]`);if(!He)return null;const mt=He.cloneNode(!0);if(mt.removeAttribute("id"),"svg"===mt.nodeName.toLowerCase())return this._setSvgAttributes(mt,Ke);if("symbol"===mt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(mt),Ke);const se=this._svgElementFromString(xe(""));return se.appendChild(mt),this._setSvgAttributes(se,Ke)}_svgElementFromString(ze){const dt=this._document.createElement("DIV");dt.innerHTML=ze;const Ke=dt.querySelector("svg");if(!Ke)throw Error(" tag not found");return Ke}_toSvgElement(ze){const dt=this._svgElementFromString(xe("")),Ke=ze.attributes;for(let He=0;Hexe(Rt)),(0,N.j)(()=>this._inProgressUrlFetches.delete(mt)),(0,K.u)());return this._inProgressUrlFetches.set(mt,Ze),Ze}_addSvgIconConfig(ze,dt,Ke){return this._svgIconConfigs.set(vt(ze,dt),Ke),this}_addSvgIconSetConfig(ze,dt){const Ke=this._iconSetConfigs.get(ze);return Ke?Ke.push(dt):this._iconSetConfigs.set(ze,[dt]),this}_svgElementFromConfig(ze){if(!ze.svgElement){const dt=this._svgElementFromString(ze.svgText);this._setSvgAttributes(dt,ze.options),ze.svgElement=dt}return ze.svgElement}_getIconConfigFromResolvers(ze,dt){for(let Ke=0;KeFt?Ft.pathname+Ft.search:""}}}),$n=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],bn=$n.map(Fe=>`[${Fe}]`).join(", "),Qe=/^url\(['"]?#(.*?)['"]?\)$/;let bt=(()=>{class Fe{_elementRef=(0,i.WQX)(i.aKT);_iconRegistry=(0,i.WQX)(Ie);_location=(0,i.WQX)(ln);_errorHandler=(0,i.WQX)(i.zcH);_defaultColor;get color(){return this._color||this._defaultColor}set color(ze){this._color=ze}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(ze){ze!==this._svgIcon&&(ze?this._updateSvgIcon(ze):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ze)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(ze){const dt=this._cleanupFontValue(ze);dt!==this._fontSet&&(this._fontSet=dt,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(ze){const dt=this._cleanupFontValue(ze);dt!==this._fontIcon&&(this._fontIcon=dt,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=T.yU.EMPTY;constructor(){const ze=(0,i.WQX)(new i.ES_("aria-hidden"),{optional:!0}),dt=(0,i.WQX)(Xt,{optional:!0});dt&&(dt.color&&(this.color=this._defaultColor=dt.color),dt.fontSet&&(this.fontSet=dt.fontSet)),ze||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(ze){if(!ze)return["",""];const dt=ze.split(":");switch(dt.length){case 1:return["",dt[0]];case 2:return dt;default:throw Error(`Invalid icon name: "${ze}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ze=this._elementsWithExternalReferences;if(ze&&ze.size){const dt=this._location.getPathname();dt!==this._previousPath&&(this._previousPath=dt,this._prependPathToReferences(dt))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ze){this._clearSvgElement();const dt=this._location.getPathname();this._previousPath=dt,this._cacheChildrenWithExternalReferences(ze),this._prependPathToReferences(dt),this._elementRef.nativeElement.appendChild(ze)}_clearSvgElement(){const ze=this._elementRef.nativeElement;let dt=ze.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();dt--;){const Ke=ze.childNodes[dt];(1!==Ke.nodeType||"svg"===Ke.nodeName.toLowerCase())&&Ke.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ze=this._elementRef.nativeElement,dt=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Ke=>Ke.length>0);this._previousFontSetClass.forEach(Ke=>ze.classList.remove(Ke)),dt.forEach(Ke=>ze.classList.add(Ke)),this._previousFontSetClass=dt,this.fontIcon!==this._previousFontIconClass&&!dt.includes("mat-ligature-font")&&(this._previousFontIconClass&&ze.classList.remove(this._previousFontIconClass),this.fontIcon&&ze.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ze){return"string"==typeof ze?ze.trim().split(" ")[0]:ze}_prependPathToReferences(ze){const dt=this._elementsWithExternalReferences;dt&&dt.forEach((Ke,He)=>{Ke.forEach(mt=>{He.setAttribute(mt.name,`url('${ze}#${mt.value}')`)})})}_cacheChildrenWithExternalReferences(ze){const dt=ze.querySelectorAll(bn),Ke=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let He=0;He{const se=dt[He],Ze=se.getAttribute(mt),Rt=Ze?Ze.match(Qe):null;if(Rt){let Jt=Ke.get(se);Jt||(Jt=[],Ke.set(se,Jt)),Jt.push({name:mt,value:Rt[1]})}})}_updateSvgIcon(ze){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ze){const[dt,Ke]=this._splitIconName(ze);dt&&(this._svgNamespace=dt),Ke&&(this._svgName=Ke),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ke,dt).pipe((0,Z.s)(1)).subscribe(He=>this._setSvgElement(He),He=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${dt}:${Ke}! ${He.message}`))})}}static \u0275fac=function(dt){return new(dt||Fe)};static \u0275cmp=i.VBU({type:Fe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(dt,Ke){2&dt&&(i.BMQ("data-mat-icon-type",Ke._usingFontIcon()?"font":"svg")("data-mat-icon-name",Ke._svgName||Ke.fontIcon)("data-mat-icon-namespace",Ke._svgNamespace||Ke.fontSet)("fontIcon",Ke._usingFontIcon()?Ke.fontIcon:null),i.HbH(Ke.color?"mat-"+Ke.color:""),i.AVh("mat-icon-inline",Ke.inline)("mat-icon-no-color","primary"!==Ke.color&&"accent"!==Ke.color&&"warn"!==Ke.color))},inputs:{color:"color",inline:[2,"inline","inline",i.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.GFd],ngContentSelectors:me,decls:1,vars:0,template:function(dt,Ke){1&dt&&(i.NAR(),i.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return Fe})(),Ge=(()=>{class Fe{static \u0275fac=function(dt){return new(dt||Fe)};static \u0275mod=i.$C({type:Fe});static \u0275inj=i.G2t({imports:[a.yE,a.yE]})}return Fe})()},9042:(o,s,r)=>{"use strict";r.d(s,{fS:()=>be,fg:()=>ne});var i=r(4085),a=r(6860),c=r(7403),y=r(4438),w=r(9888),C=r(9417),T=r(3),S=r(2408),A=r(1413);const N=new y.nKC("MAT_INPUT_VALUE_ACCESSOR"),K=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Z=new y.nKC("MAT_INPUT_CONFIG");let ne=(()=>{class me{_elementRef=(0,y.WQX)(y.aKT);_platform=(0,y.WQX)(a.OD);ngControl=(0,y.WQX)(C.vO,{optional:!0,self:!0});_autofillMonitor=(0,y.WQX)(c.P8);_ngZone=(0,y.WQX)(y.SKi);_formField=(0,y.WQX)(S.xb,{optional:!0});_uid=(0,y.WQX)(w.g7).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_webkitBlinkWheelListenerAttached=!1;_config=(0,y.WQX)(Z,{optional:!0});_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new A.B;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(Te){this._disabled=(0,i.he)(Te),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(Te){this._id=Te||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(C.k0.required)??!1}set required(Te){this._required=(0,i.he)(Te)}_required;get type(){return this._type}set type(Te){this._type=Te||"text",this._validateType(),!this._isTextarea&&(0,a.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(Te){this._errorStateTracker.matcher=Te}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(Te){Te!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(Te):this._inputValueAccessor.value=Te,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Te){this._readonly=(0,i.he)(Te)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(Te){this._errorStateTracker.errorState=Te}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Te=>(0,a.MU)().has(Te));constructor(){const Te=(0,y.WQX)(C.cV,{optional:!0}),xe=(0,y.WQX)(C.j4,{optional:!0}),Re=(0,y.WQX)(T.es),Me=(0,y.WQX)(N,{optional:!0,self:!0}),Ce=this._elementRef.nativeElement,le=Ce.nodeName.toLowerCase();Me?(0,y.Hps)(Me.value)?this._signalBasedValueAccessor=Me:this._inputValueAccessor=Me:this._inputValueAccessor=Ce,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{Ce.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new T.X0(Re,this.ngControl,xe,Te,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===le,this._isTextarea="textarea"===le,this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=Ce.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&(0,y.QZP)(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(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){if(Te!==this.focused){if(!this._isNativeSelect&&Te&&this.disabled&&this.disabledInteractive){const xe=this._elementRef.nativeElement;"number"===xe.type?(xe.type="text",xe.setSelectionRange(0,0),xe.type="number"):xe.setSelectionRange(0,0)}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 xe=this._elementRef.nativeElement;this._previousPlaceholder=Te,Te?xe.setAttribute("placeholder",Te):xe.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){K.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,xe=Te.options[0];return this.focused||Te.multiple||!this.empty||!!(Te.selectedIndex>-1&&xe&&xe.label)}return this.focused&&!this.disabled||!this.empty}setDescribedByIds(Te){const xe=this._elementRef.nativeElement,Re=xe.getAttribute("aria-describedby");let Me;if(Re){const Ce=this._formFieldDescribedBy||Te;Me=Te.concat(Re.split(" ").filter(le=>le&&!Ce.includes(le)))}else Me=Te;this._formFieldDescribedBy=Te,Me.length?xe.setAttribute("aria-describedby",Me.join(" ")):xe.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Te=this._elementRef.nativeElement;return this._isNativeSelect&&(Te.multiple||Te.size>1)}_iOSKeyupListener=Te=>{const xe=Te.target;!xe.value&&0===xe.selectionStart&&0===xe.selectionEnd&&(xe.setSelectionRange(1,1),xe.setSelectionRange(0,0))};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&"number"===this._type&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&"number"!==this._type&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(xe){return new(xe||me)};static \u0275dir=y.FsC({type:me,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(xe,Re){1&xe&&y.bIt("focus",function(){return Re._focusChanged(!0)})("blur",function(){return Re._focusChanged(!1)})("input",function(){return Re._onInput()}),2&xe&&(y.Mr5("id",Re.id)("disabled",Re.disabled&&!Re.disabledInteractive)("required",Re.required),y.BMQ("name",Re.name||null)("readonly",Re._getReadonlyAttribute())("aria-disabled",Re.disabled&&Re.disabledInteractive?"true":null)("aria-invalid",Re.empty&&Re.required?null:Re.errorState)("aria-required",Re.required)("id",Re.id),y.AVh("mat-input-server",Re._isServer)("mat-mdc-form-field-textarea-control",Re._isInFormField&&Re._isTextarea)("mat-mdc-form-field-input-control",Re._isInFormField)("mat-mdc-input-disabled-interactive",Re.disabledInteractive)("mdc-text-field__input",Re._isInFormField)("mat-mdc-native-select-inline",Re._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",y.L39]},exportAs:["matInput"],features:[y.Jv_([{provide:S.qT,useExisting:me}]),y.GFd,y.OA$]})}return me})(),be=(()=>{class me{static \u0275fac=function(xe){return new(xe||me)};static \u0275mod=y.$C({type:me});static \u0275inj=y.G2t({imports:[T.yE,S.RG,S.RG,c.EE,T.yE]})}return me})()},9115:(o,s,r)=>{"use strict";r.d(s,{Cn:()=>Jt,Cp:()=>Rt,fb:()=>Xt,kk:()=>dt});var i=r(4438),a=r(9888),c=r(7336),y=r(1413),w=r(7786),C=r(8359),T=r(7673),S=r(5007),A=r(9172),I=r(5558),N=r(6977),K=r(5964),Z=r(6697),ne=r(1986),be=r(177),me=r(3),pe=r(9046),Te=r(6939),xe=r(9969),Re=r(8203),Me=r(6969),Ce=r(6860),le=r(5542);const ae=["mat-menu-item",""],Ie=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],$e=["mat-icon, [matMenuItemIcon]","*"];function st(fn,Kn){1&fn&&(i.qSk(),i.j41(0,"svg",2),i.nrm(1,"polygon",3),i.k0s())}const ht=["*"];function vt(fn,Kn){if(1&fn){const Nt=i.RV6();i.j41(0,"div",0),i.bIt("click",function(){i.eBV(Nt);const an=i.XpG();return i.Njj(an.closed.emit("click"))})("@transformMenu.start",function(an){i.eBV(Nt);const Xn=i.XpG();return i.Njj(Xn._onAnimationStart(an))})("@transformMenu.done",function(an){i.eBV(Nt);const Xn=i.XpG();return i.Njj(Xn._onAnimationDone(an))}),i.j41(1,"div",1),i.SdG(2),i.k0s()()}if(2&fn){const Nt=i.XpG();i.HbH(Nt._classList),i.Y8G("id",Nt.panelId)("@transformMenu",Nt._panelAnimationState),i.BMQ("aria-label",Nt.ariaLabel||null)("aria-labelledby",Nt.ariaLabelledby||null)("aria-describedby",Nt.ariaDescribedby||null)}}const at=new i.nKC("MAT_MENU_PANEL");let Xt=(()=>{class fn{_elementRef=(0,i.WQX)(i.aKT);_document=(0,i.WQX)(be.qQ);_focusMonitor=(0,i.WQX)(a.FN);_parentMenu=(0,i.WQX)(at,{optional:!0});_changeDetectorRef=(0,i.WQX)(i.gRc);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new y.B;_focused=new y.B;_highlighted=!1;_triggersSubmenu=!1;constructor(){(0,i.WQX)(pe.l).load(me.Ah),this._parentMenu?.addItem?.(this)}focus(Nt,Qt){this._focusMonitor&&Nt?this._focusMonitor.focusVia(this._getHostElement(),Nt,Qt):this._getHostElement().focus(Qt),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(Nt){this.disabled&&(Nt.preventDefault(),Nt.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Nt=this._elementRef.nativeElement.cloneNode(!0),Qt=Nt.querySelectorAll("mat-icon, .material-icons");for(let an=0;an enter",(0,xe.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,xe.iF)({opacity:1,transform:"scale(1)"}))),(0,xe.kY)("* => void",(0,xe.i0)("100ms 25ms linear",(0,xe.iF)({opacity:0})))]),fadeInItems:(0,xe.hZ)("fadeInItems",[(0,xe.wk)("showing",(0,xe.iF)({opacity:1})),(0,xe.kY)("void => *",[(0,xe.iF)({opacity:0}),(0,xe.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ft=new i.nKC("mat-menu-default-options",{providedIn:"root",factory:function ze(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let dt=(()=>{class fn{_elementRef=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_allItems;_directDescendantItems=new i.rOR;_classList={};_panelAnimationState="void";_animationDone=new y.B;_isAnimating;parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(Nt){this._xPosition=Nt,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Nt){this._yPosition=Nt,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(Nt){const Qt=this._previousPanelClass,an={...this._classList};Qt&&Qt.length&&Qt.split(" ").forEach(Xn=>{an[Xn]=!1}),this._previousPanelClass=Nt,Nt&&Nt.length&&(Nt.split(" ").forEach(Xn=>{an[Xn]=!0}),this._elementRef.nativeElement.className=""),this._classList=an}_previousPanelClass;get classList(){return this.panelClass}set classList(Nt){this.panelClass=Nt}closed=new i.bkB;close=this.closed;panelId=(0,i.WQX)(a.g7).getId("mat-menu-panel-");_injector=(0,i.WQX)(i.zZn);constructor(){const Nt=(0,i.WQX)(Ft);this.overlayPanelClass=Nt.overlayPanelClass||"",this._xPosition=Nt.xPosition,this._yPosition=Nt.yPosition,this.backdropClass=Nt.backdropClass,this.overlapTrigger=Nt.overlapTrigger,this.hasBackdrop=Nt.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new a.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,A.Z)(this._directDescendantItems),(0,I.n)(Nt=>(0,w.h)(...Nt.map(Qt=>Qt._focused)))).subscribe(Nt=>this._keyManager.updateActiveItem(Nt)),this._directDescendantItems.changes.subscribe(Nt=>{const Qt=this._keyManager;if("enter"===this._panelAnimationState&&Qt.activeItem?._hasFocus()){const an=Nt.toArray(),Xn=Math.max(0,Math.min(an.length-1,Qt.activeItemIndex||0));an[Xn]&&!an[Xn].disabled?Qt.setActiveItem(Xn):Qt.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe((0,A.Z)(this._directDescendantItems),(0,I.n)(Qt=>(0,w.h)(...Qt.map(an=>an._hovered))))}addItem(Nt){}removeItem(Nt){}_handleKeydown(Nt){const Qt=Nt.keyCode,an=this._keyManager;switch(Qt){case c._f:(0,c.rp)(Nt)||(Nt.preventDefault(),this.closed.emit("keydown"));break;case c.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case c.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Qt===c.i7||Qt===c.n6)&&an.setFocusOrigin("keyboard"),void an.onKeydown(Nt)}}focusFirstItem(Nt="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,i.mal)(()=>{let Qt=null;if(this._directDescendantItems.length&&(Qt=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Qt||!Qt.contains(document.activeElement)){const an=this._keyManager;an.setFocusOrigin(Nt).setFirstItemActive(),!an.activeItem&&Qt&&Qt.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Nt){}setPositionClasses(Nt=this.xPosition,Qt=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===Nt,"mat-menu-after":"after"===Nt,"mat-menu-above":"above"===Qt,"mat-menu-below":"below"===Qt},this._changeDetectorRef.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Nt){this._animationDone.next(Nt),this._isAnimating=!1}_onAnimationStart(Nt){this._isAnimating=!0,"enter"===Nt.toState&&0===this._keyManager.activeItemIndex&&(Nt.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,A.Z)(this._allItems)).subscribe(Nt=>{this._directDescendantItems.reset(Nt.filter(Qt=>Qt._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static \u0275fac=function(Qt){return new(Qt||fn)};static \u0275cmp=i.VBU({type:fn,selectors:[["mat-menu"]],contentQueries:function(Qt,an,Xn){if(1&Qt&&(i.wni(Xn,bn,5),i.wni(Xn,Xt,5),i.wni(Xn,Xt,4)),2&Qt){let En;i.mGM(En=i.lsd())&&(an.lazyContent=En.first),i.mGM(En=i.lsd())&&(an._allItems=En),i.mGM(En=i.lsd())&&(an.items=En)}},viewQuery:function(Qt,an){if(1&Qt&&i.GBs(i.C4Q,5),2&Qt){let Xn;i.mGM(Xn=i.lsd())&&(an.templateRef=Xn.first)}},hostVars:3,hostBindings:function(Qt,an){2&Qt&&i.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",i.L39],hasBackdrop:[2,"hasBackdrop","hasBackdrop",Nt=>null==Nt?null:(0,i.L39)(Nt)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[i.Jv_([{provide:at,useExisting:fn}]),i.GFd],ngContentSelectors:ht,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","id"],[1,"mat-mdc-menu-content"]],template:function(Qt,an){1&Qt&&(i.NAR(),i.DNE(0,vt,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[bt.transformMenu,bt.fadeInItems]},changeDetection:0})}return fn})();const Ke=new i.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const fn=(0,i.WQX)(Me.hJ);return()=>fn.scrollStrategies.reposition()}}),mt={provide:Ke,deps:[Me.hJ],useFactory:function He(fn){return()=>fn.scrollStrategies.reposition()}},se=(0,Ce.BQ)({passive:!0});let Rt=(()=>{class fn{_overlay=(0,i.WQX)(Me.hJ);_element=(0,i.WQX)(i.aKT);_viewContainerRef=(0,i.WQX)(i.c1b);_menuItemInstance=(0,i.WQX)(Xt,{optional:!0,self:!0});_dir=(0,i.WQX)(Re.dS,{optional:!0});_focusMonitor=(0,i.WQX)(a.FN);_ngZone=(0,i.WQX)(i.SKi);_scrollStrategy=(0,i.WQX)(Ke);_changeDetectorRef=(0,i.WQX)(i.gRc);_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=C.yU.EMPTY;_hoverSubscription=C.yU.EMPTY;_menuCloseSubscription=C.yU.EMPTY;_parentMaterialMenu;_parentInnerPadding;_handleTouchStart=Nt=>{(0,a.w6)(Nt)||(this._openedBy="touch")};_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Nt){this.menu=Nt}get menu(){return this._menu}set menu(Nt){Nt!==this._menu&&(this._menu=Nt,this._menuCloseSubscription.unsubscribe(),Nt&&(this._menuCloseSubscription=Nt.close.subscribe(Qt=>{this._destroyMenu(Qt),("click"===Qt||"tab"===Qt)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Qt)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}_menu;menuData;restoreFocus=!0;menuOpened=new i.bkB;onMenuOpen=this.menuOpened;menuClosed=new i.bkB;onMenuClose=this.menuClosed;constructor(){const Nt=(0,i.WQX)(at,{optional:!0});this._parentMaterialMenu=Nt instanceof dt?Nt:void 0,this._element.nativeElement.addEventListener("touchstart",this._handleTouchStart,se)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,se),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 Nt=this.menu;if(this._menuOpen||!Nt)return;const Qt=this._createOverlay(Nt),an=Qt.getConfig(),Xn=an.positionStrategy;this._setPosition(Nt,Xn),an.hasBackdrop=null==Nt.hasBackdrop?!this.triggersSubmenu():Nt.hasBackdrop,Qt.attach(this._getPortal(Nt)),Nt.lazyContent&&Nt.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Nt),Nt instanceof dt&&(Nt._startAnimation(),Nt._directDescendantItems.changes.pipe((0,N.Q)(Nt.close)).subscribe(()=>{Xn.withLockedPosition(!1).reapplyLastPosition(),Xn.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Nt,Qt){this._focusMonitor&&Nt?this._focusMonitor.focusVia(this._element,Nt,Qt):this._element.nativeElement.focus(Qt)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Nt){if(!this._overlayRef||!this.menuOpen)return;const Qt=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Nt||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Qt instanceof dt?(Qt._resetAnimation(),Qt.lazyContent?Qt._animationDone.pipe((0,K.p)(an=>"void"===an.toState),(0,Z.s)(1),(0,N.Q)(Qt.lazyContent._attached)).subscribe({next:()=>Qt.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Qt?.lazyContent?.detach())}_initMenu(Nt){Nt.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Nt.direction=this.dir,Nt.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setIsMenuOpen(Nt){Nt!==this._menuOpen&&(this._menuOpen=Nt,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Nt),this._changeDetectorRef.markForCheck())}_createOverlay(Nt){if(!this._overlayRef){const Qt=this._getOverlayConfig(Nt);this._subscribeToPositions(Nt,Qt.positionStrategy),this._overlayRef=this._overlay.create(Qt),this._overlayRef.keydownEvents().subscribe(an=>{this.menu instanceof dt&&this.menu._handleKeydown(an)})}return this._overlayRef}_getOverlayConfig(Nt){return new Me.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Nt.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Nt.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr"})}_subscribeToPositions(Nt,Qt){Nt.setPositionClasses&&Qt.positionChanges.subscribe(an=>{this._ngZone.run(()=>{Nt.setPositionClasses("start"===an.connectionPair.overlayX?"after":"before","top"===an.connectionPair.overlayY?"below":"above")})})}_setPosition(Nt,Qt){let[an,Xn]="before"===Nt.xPosition?["end","start"]:["start","end"],[En,Kt]="above"===Nt.yPosition?["bottom","top"]:["top","bottom"],[At,zt]=[En,Kt],[xn,Yn]=[an,Xn],tt=0;if(this.triggersSubmenu()){if(Yn=an="before"===Nt.xPosition?"start":"end",Xn=xn="end"===an?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const ke=this._parentMaterialMenu.items.first;this._parentInnerPadding=ke?ke._getHostElement().offsetTop:0}tt="bottom"===En?this._parentInnerPadding:-this._parentInnerPadding}}else Nt.overlapTrigger||(At="top"===En?"bottom":"top",zt="top"===Kt?"bottom":"top");Qt.withPositions([{originX:an,originY:At,overlayX:xn,overlayY:En,offsetY:tt},{originX:Xn,originY:At,overlayX:Yn,overlayY:En,offsetY:tt},{originX:an,originY:zt,overlayX:xn,overlayY:Kt,offsetY:-tt},{originX:Xn,originY:zt,overlayX:Yn,overlayY:Kt,offsetY:-tt}])}_menuClosingActions(){const Nt=this._overlayRef.backdropClick(),Qt=this._overlayRef.detachments(),an=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,T.of)(),Xn=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,K.p)(En=>En!==this._menuItemInstance),(0,K.p)(()=>this._menuOpen)):(0,T.of)();return(0,w.h)(Nt,an,Xn,Qt)}_handleMousedown(Nt){(0,a._G)(Nt)||(this._openedBy=0===Nt.button?"mouse":void 0,this.triggersSubmenu()&&Nt.preventDefault())}_handleKeydown(Nt){const Qt=Nt.keyCode;(Qt===c.Fm||Qt===c.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Qt===c.LE&&"ltr"===this.dir||Qt===c.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Nt){this.triggersSubmenu()?(Nt.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,K.p)(Nt=>Nt===this._menuItemInstance&&!Nt.disabled),(0,ne.c)(0,S.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof dt&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Z.s)(1),(0,ne.c)(0,S.$),(0,N.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Nt){return(!this._portal||this._portal.templateRef!==Nt.templateRef)&&(this._portal=new Te.VA(Nt.templateRef,this._viewContainerRef)),this._portal}static \u0275fac=function(Qt){return new(Qt||fn)};static \u0275dir=i.FsC({type:fn,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(Qt,an){1&Qt&&i.bIt("click",function(En){return an._handleClick(En)})("mousedown",function(En){return an._handleMousedown(En)})("keydown",function(En){return an._handleKeydown(En)}),2&Qt&&i.BMQ("aria-haspopup",an.menu?"menu":null)("aria-expanded",an.menuOpen)("aria-controls",an.menuOpen?an.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]})}return fn})(),Jt=(()=>{class fn{static \u0275fac=function(Qt){return new(Qt||fn)};static \u0275mod=i.$C({type:fn});static \u0275inj=i.G2t({providers:[mt],imports:[me.pZ,me.yE,Me.z_,le.Gj,me.yE]})}return fn})()},7575:(o,s,r)=>{"use strict";r.d(s,{HM:()=>S,PO:()=>I});var i=r(4438),c=(r(177),r(3));function y(N,K){1&N&&i.nrm(0,"div",2)}const w=new i.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let S=(()=>{class N{_elementRef=(0,i.WQX)(i.aKT);_ngZone=(0,i.WQX)(i.SKi);_changeDetectorRef=(0,i.WQX)(i.gRc);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});constructor(){const Z=(0,i.WQX)(w,{optional:!0});this._isNoopAnimation="NoopAnimations"===this._animationMode,Z&&(Z.color&&(this.color=this._defaultColor=Z.color),this.mode=Z.mode||this.mode)}_isNoopAnimation=!1;get color(){return this._color||this._defaultColor}set color(Z){this._color=Z}_color;_defaultColor="primary";get value(){return this._value}set value(Z){this._value=A(Z||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(Z){this._bufferValue=A(Z||0),this._changeDetectorRef.markForCheck()}_bufferValue=0;animationEnd=new i.bkB;get mode(){return this._mode}set mode(Z){this._mode=Z,this._changeDetectorRef.markForCheck()}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}_transitionendHandler=Z=>{0===this.animationEnd.observers.length||!Z.target||!Z.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))};static \u0275fac=function(ne){return new(ne||N)};static \u0275cmp=i.VBU({type:N,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(ne,be){2&ne&&(i.BMQ("aria-valuenow",be._isIndeterminate()?null:be.value)("mode",be.mode),i.HbH("mat-"+be.color),i.AVh("_mat-animation-noopable",be._isNoopAnimation)("mdc-linear-progress--animation-ready",!be._isNoopAnimation)("mdc-linear-progress--indeterminate",be._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",i.Udg],bufferValue:[2,"bufferValue","bufferValue",i.Udg],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.GFd],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(ne,be){1&ne&&(i.j41(0,"div",0),i.nrm(1,"div",1),i.DNE(2,y,1,0,"div",2),i.k0s(),i.j41(3,"div",3),i.nrm(4,"span",4),i.k0s(),i.j41(5,"div",5),i.nrm(6,"span",4),i.k0s()),2&ne&&(i.R7$(),i.xc7("flex-basis",be._getBufferBarFlexBasis()),i.R7$(),i.vxM("buffer"===be.mode?2:-1),i.R7$(),i.xc7("transform",be._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mdc-linear-progress-track-height, 4px),var(--mdc-linear-progress-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mdc-linear-progress-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mdc-linear-progress-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-linear-progress-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mdc-linear-progress-track-height, 4px);border-radius:var(--mdc-linear-progress-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}"],encapsulation:2,changeDetection:0})}return N})();function A(N,K=0,Z=100){return Math.max(K,Math.min(Z,N))}let I=(()=>{class N{static \u0275fac=function(ne){return new(ne||N)};static \u0275mod=i.$C({type:N});static \u0275inj=i.G2t({imports:[c.yE]})}return N})()},7250:(o,s,r)=>{"use strict";r.d(s,{VO:()=>Qt,Ve:()=>Xn,$2:()=>an});var i=r(6969),a=r(4438),c=r(3),y=r(2408),w=r(5542),C=r(9888),T=r(8203),I=(r(4402),r(7673),r(1413));class Te{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new I.B;constructor(Kt=!1,At,zt=!0,xn){this._multiple=Kt,this._emitChanges=zt,this.compareWith=xn,At&&At.length&&(Kt?At.forEach(Yn=>this._markSelected(Yn)):this._markSelected(At[0]),this._selectedToEmit.length=0)}select(...Kt){this._verifyValueAssignment(Kt),Kt.forEach(zt=>this._markSelected(zt));const At=this._hasQueuedChanges();return this._emitChangeEvent(),At}deselect(...Kt){this._verifyValueAssignment(Kt),Kt.forEach(zt=>this._unmarkSelected(zt));const At=this._hasQueuedChanges();return this._emitChangeEvent(),At}setSelection(...Kt){this._verifyValueAssignment(Kt);const At=this.selected,zt=new Set(Kt);Kt.forEach(Yn=>this._markSelected(Yn)),At.filter(Yn=>!zt.has(this._getConcreteValue(Yn,zt))).forEach(Yn=>this._unmarkSelected(Yn));const xn=this._hasQueuedChanges();return this._emitChangeEvent(),xn}toggle(Kt){return this.isSelected(Kt)?this.deselect(Kt):this.select(Kt)}clear(Kt=!0){this._unmarkAll();const At=this._hasQueuedChanges();return Kt&&this._emitChangeEvent(),At}isSelected(Kt){return this._selection.has(this._getConcreteValue(Kt))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(Kt){this._multiple&&this.selected&&this._selected.sort(Kt)}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(Kt){Kt=this._getConcreteValue(Kt),this.isSelected(Kt)||(this._multiple||this._unmarkAll(),this.isSelected(Kt)||this._selection.add(Kt),this._emitChanges&&this._selectedToEmit.push(Kt))}_unmarkSelected(Kt){Kt=this._getConcreteValue(Kt),this.isSelected(Kt)&&(this._selection.delete(Kt),this._emitChanges&&this._deselectedToEmit.push(Kt))}_unmarkAll(){this.isEmpty()||this._selection.forEach(Kt=>this._unmarkSelected(Kt))}_verifyValueAssignment(Kt){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(Kt,At){if(this.compareWith){At=At??this._selection;for(let zt of At)if(this.compareWith(Kt,zt))return zt;return Kt}return Kt}}var Me=r(7336),Ce=r(9417),le=r(9030),ae=r(7786),Ie=r(9172),$e=r(5558),st=r(5964),ht=r(6354),vt=r(3294),at=r(6977),Xt=r(6697),ln=r(9969),yn=r(177);const $n=["trigger"],bn=["panel"],Qe=[[["mat-select-trigger"]],"*"],bt=["mat-select-trigger","*"];function Ge(En,Kt){if(1&En&&(a.j41(0,"span",4),a.EFF(1),a.k0s()),2&En){const At=a.XpG();a.R7$(),a.JRh(At.placeholder)}}function Fe(En,Kt){1&En&&a.SdG(0)}function Ft(En,Kt){if(1&En&&(a.j41(0,"span",11),a.EFF(1),a.k0s()),2&En){const At=a.XpG(2);a.R7$(),a.JRh(At.triggerValue)}}function ze(En,Kt){if(1&En&&(a.j41(0,"span",5),a.DNE(1,Fe,1,0)(2,Ft,2,1,"span",11),a.k0s()),2&En){const At=a.XpG();a.R7$(),a.vxM(At.customTrigger?1:2)}}function dt(En,Kt){if(1&En){const At=a.RV6();a.j41(0,"div",12,1),a.bIt("@transformPanel.done",function(xn){a.eBV(At);const Yn=a.XpG();return a.Njj(Yn._panelDoneAnimatingStream.next(xn.toState))})("keydown",function(xn){a.eBV(At);const Yn=a.XpG();return a.Njj(Yn._handleKeydown(xn))}),a.SdG(2,1),a.k0s()}if(2&En){const At=a.XpG();a.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",At._getPanelTheme(),""),a.Y8G("ngClass",At.panelClass)("@transformPanel","showing"),a.BMQ("id",At.id+"-panel")("aria-multiselectable",At.multiple)("aria-label",At.ariaLabel||null)("aria-labelledby",At._getPanelAriaLabelledby())}}const Ke={transformPanelWrap:(0,ln.hZ)("transformPanelWrap",[(0,ln.kY)("* => void",(0,ln.P)("@transformPanel",[(0,ln.MA)()],{optional:!0}))]),transformPanel:(0,ln.hZ)("transformPanel",[(0,ln.wk)("void",(0,ln.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,ln.kY)("void => showing",(0,ln.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ln.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,ln.kY)("* => void",(0,ln.i0)("100ms linear",(0,ln.iF)({opacity:0})))])},Ze=new a.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const En=(0,a.WQX)(i.hJ);return()=>En.scrollStrategies.reposition()}}),Jt=new a.nKC("MAT_SELECT_CONFIG"),fn={provide:Ze,deps:[i.hJ],useFactory:function Rt(En){return()=>En.scrollStrategies.reposition()}},Kn=new a.nKC("MatSelectTrigger");class Nt{source;value;constructor(Kt,At){this.source=Kt,this.value=At}}let Qt=(()=>{class En{_viewportRuler=(0,a.WQX)(w.Xj);_changeDetectorRef=(0,a.WQX)(a.gRc);_elementRef=(0,a.WQX)(a.aKT);_dir=(0,a.WQX)(T.dS,{optional:!0});_idGenerator=(0,a.WQX)(C.g7);_parentFormField=(0,a.WQX)(y.xb,{optional:!0});ngControl=(0,a.WQX)(Ce.vO,{self:!0,optional:!0});_liveAnnouncer=(0,a.WQX)(C.Ai);_defaultOptions=(0,a.WQX)(Jt,{optional:!0});options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(At){const zt=this.options.toArray()[At];if(zt){const xn=this.panel.nativeElement,Yn=(0,c.jb)(At,this.options,this.optionGroups),tt=zt._getHostElement();xn.scrollTop=0===At&&1===Yn?0:(0,c.TL)(tt.offsetTop,tt.offsetHeight,xn.scrollTop,xn.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(At){return new Nt(this,At)}_scrollStrategyFactory=(0,a.WQX)(Ze);_panelOpen=!1;_compareWith=(At,zt)=>At===zt;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new I.B;_errorStateTracker;stateChanges=new I.B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new I.B;_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(At){this._hideSingleSelectionIndicator=At,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(At){this._placeholder=At,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Ce.k0.required)??!1}set required(At){this._required=At,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(At){this._multiple=At}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(At){this._compareWith=At,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(At){this._assignValue(At)&&this._onChange(At)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(At){this._errorStateTracker.matcher=At}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(At){this._id=At||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(At){this._errorStateTracker.errorState=At}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";_initialized=new I.B;optionSelectionChanges=(0,le.v)(()=>{const At=this.options;return At?At.changes.pipe((0,Ie.Z)(At),(0,$e.n)(()=>(0,ae.h)(...At.map(zt=>zt.onSelectionChange)))):this._initialized.pipe((0,$e.n)(()=>this.optionSelectionChanges))});openedChange=new a.bkB;_openedStream=this.openedChange.pipe((0,st.p)(At=>At),(0,ht.T)(()=>{}));_closedStream=this.openedChange.pipe((0,st.p)(At=>!At),(0,ht.T)(()=>{}));selectionChange=new a.bkB;valueChange=new a.bkB;constructor(){const At=(0,a.WQX)(c.es),zt=(0,a.WQX)(Ce.cV,{optional:!0}),xn=(0,a.WQX)(Ce.j4,{optional:!0}),Yn=(0,a.WQX)(new a.ES_("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),null!=this._defaultOptions?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new c.X0(At,this.ngControl,xn,zt,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=null==Yn?0:parseInt(Yn)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Te(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,vt.F)(),(0,at.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,at.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe((0,at.Q)(this._destroy)).subscribe(At=>{At.added.forEach(zt=>zt.select()),At.removed.forEach(zt=>zt.deselect())}),this.options.changes.pipe((0,Ie.Z)(null),(0,at.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const At=this._getTriggerAriaLabelledby(),zt=this.ngControl;if(At!==this._triggerAriaLabelledBy){const xn=this._elementRef.nativeElement;this._triggerAriaLabelledBy=At,At?xn.setAttribute("aria-labelledby",At):xn.removeAttribute("aria-labelledby")}zt&&(this._previousControl!==zt.control&&(void 0!==this._previousControl&&null!==zt.disabled&&zt.disabled!==this.disabled&&(this.disabled=zt.disabled),this._previousControl=zt.control),this.updateErrorState())}ngOnChanges(At){(At.disabled||At.userAriaDescribedBy)&&this.stateChanges.next(),At.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_trackedModal=null;_applyModalPanelOwnership(){const At=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!At)return;const zt=`${this.id}-panel`;this._trackedModal&&(0,C.Ae)(this._trackedModal,"aria-owns",zt),(0,C.px)(At,"aria-owns",zt),this._trackedModal=At}_clearFromModal(){this._trackedModal&&((0,C.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(At){this._assignValue(At)}registerOnChange(At){this._onChange=At}registerOnTouched(At){this._onTouched=At}setDisabledState(At){this.disabled=At,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 At=this._selectionModel.selected.map(zt=>zt.viewValue);return this._isRtl()&&At.reverse(),At.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(At){this.disabled||(this.panelOpen?this._handleOpenKeydown(At):this._handleClosedKeydown(At))}_handleClosedKeydown(At){const zt=At.keyCode,xn=zt===Me.n6||zt===Me.i7||zt===Me.UQ||zt===Me.LE,Yn=zt===Me.Fm||zt===Me.t6,tt=this._keyManager;if(!tt.isTyping()&&Yn&&!(0,Me.rp)(At)||(this.multiple||At.altKey)&&xn)At.preventDefault(),this.open();else if(!this.multiple){const ke=this.selected;tt.onKeydown(At);const B=this.selected;B&&ke!==B&&this._liveAnnouncer.announce(B.viewValue,1e4)}}_handleOpenKeydown(At){const zt=this._keyManager,xn=At.keyCode,Yn=xn===Me.n6||xn===Me.i7,tt=zt.isTyping();if(Yn&&At.altKey)At.preventDefault(),this.close();else if(tt||xn!==Me.Fm&&xn!==Me.t6||!zt.activeItem||(0,Me.rp)(At))if(!tt&&this._multiple&&xn===Me.A&&At.ctrlKey){At.preventDefault();const ke=this.options.some(B=>!B.disabled&&!B.selected);this.options.forEach(B=>{B.disabled||(ke?B.select():B.deselect())})}else{const ke=zt.activeItemIndex;zt.onKeydown(At),this._multiple&&Yn&&At.shiftKey&&zt.activeItem&&zt.activeItemIndex!==ke&&zt.activeItem._selectViaInteraction()}else At.preventDefault(),zt.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,Xt.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(At){if(this.options.forEach(zt=>zt.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&At)Array.isArray(At),At.forEach(zt=>this._selectOptionByValue(zt)),this._sortValues();else{const zt=this._selectOptionByValue(At);zt?this._keyManager.updateActiveItem(zt):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(At){const zt=this.options.find(xn=>{if(this._selectionModel.isSelected(xn))return!1;try{return null!=xn.value&&this._compareWith(xn.value,At)}catch{return!1}});return zt&&this._selectionModel.select(zt),zt}_assignValue(At){return!!(At!==this._value||this._multiple&&Array.isArray(At))&&(this.options&&this._setSelectionByValue(At),this._value=At,!0)}_skipPredicate=At=>!this.panelOpen&&At.disabled;_getOverlayWidth(At){return"auto"===this.panelWidth?(At instanceof i.$Q?At.elementRef:At||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const At of this.options)At._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new C.Au(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const At=(0,ae.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,at.Q)(At)).subscribe(zt=>{this._onSelect(zt.source,zt.isUserInput),zt.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ae.h)(...this.options.map(zt=>zt._stateChanges)).pipe((0,at.Q)(At)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(At,zt){const xn=this._selectionModel.isSelected(At);null!=At.value||this._multiple?(xn!==At.selected&&(At.selected?this._selectionModel.select(At):this._selectionModel.deselect(At)),zt&&this._keyManager.setActiveItem(At),this.multiple&&(this._sortValues(),zt&&this.focus())):(At.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(At.value)),xn!==this._selectionModel.isSelected(At)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const At=this.options.toArray();this._selectionModel.sort((zt,xn)=>this.sortComparator?this.sortComparator(zt,xn,At):At.indexOf(zt)-At.indexOf(xn)),this.stateChanges.next()}}_propagateChanges(At){let zt;zt=this.multiple?this.selected.map(xn=>xn.value):this.selected?this.selected.value:At,this._value=zt,this.valueChange.emit(zt),this._onChange(zt),this.selectionChange.emit(this._getChangeEvent(zt)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let At=-1;for(let zt=0;zt0}focus(At){this._elementRef.nativeElement.focus(At)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const At=this._parentFormField?.getLabelId()||null;return this.ariaLabelledby?(At?At+" ":"")+this.ariaLabelledby:At}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const At=this._parentFormField?.getLabelId();let zt=(At?At+" ":"")+this._valueId;return this.ariaLabelledby&&(zt+=" "+this.ariaLabelledby),zt}_panelDoneAnimating(At){this.openedChange.emit(At)}setDescribedByIds(At){At.length?this._elementRef.nativeElement.setAttribute("aria-describedby",At.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(zt){return new(zt||En)};static \u0275cmp=a.VBU({type:En,selectors:[["mat-select"]],contentQueries:function(zt,xn,Yn){if(1&zt&&(a.wni(Yn,Kn,5),a.wni(Yn,c.wT,5),a.wni(Yn,c.QC,5)),2&zt){let tt;a.mGM(tt=a.lsd())&&(xn.customTrigger=tt.first),a.mGM(tt=a.lsd())&&(xn.options=tt),a.mGM(tt=a.lsd())&&(xn.optionGroups=tt)}},viewQuery:function(zt,xn){if(1&zt&&(a.GBs($n,5),a.GBs(bn,5),a.GBs(i.WB,5)),2&zt){let Yn;a.mGM(Yn=a.lsd())&&(xn.trigger=Yn.first),a.mGM(Yn=a.lsd())&&(xn.panel=Yn.first),a.mGM(Yn=a.lsd())&&(xn._overlayDir=Yn.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(zt,xn){1&zt&&a.bIt("keydown",function(tt){return xn._handleKeydown(tt)})("focus",function(){return xn._onFocus()})("blur",function(){return xn._onBlur()}),2&zt&&(a.BMQ("id",xn.id)("tabindex",xn.disabled?-1:xn.tabIndex)("aria-controls",xn.panelOpen?xn.id+"-panel":null)("aria-expanded",xn.panelOpen)("aria-label",xn.ariaLabel||null)("aria-required",xn.required.toString())("aria-disabled",xn.disabled.toString())("aria-invalid",xn.errorState)("aria-activedescendant",xn._getAriaActiveDescendant()),a.AVh("mat-mdc-select-disabled",xn.disabled)("mat-mdc-select-invalid",xn.errorState)("mat-mdc-select-required",xn.required)("mat-mdc-select-empty",xn.empty)("mat-mdc-select-multiple",xn.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",a.L39],disableRipple:[2,"disableRipple","disableRipple",a.L39],tabIndex:[2,"tabIndex","tabIndex",At=>null==At?0:(0,a.Udg)(At)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",a.L39],placeholder:"placeholder",required:[2,"required","required",a.L39],multiple:[2,"multiple","multiple",a.L39],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",a.L39],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",a.Udg],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[a.Jv_([{provide:y.qT,useExisting:En},{provide:c.is,useExisting:En}]),a.GFd,a.OA$],ngContentSelectors:bt,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(zt,xn){if(1&zt){const Yn=a.RV6();a.NAR(Qe),a.j41(0,"div",2,0),a.bIt("click",function(){return a.eBV(Yn),a.Njj(xn.open())}),a.j41(3,"div",3),a.DNE(4,Ge,2,1,"span",4)(5,ze,3,1,"span",5),a.k0s(),a.j41(6,"div",6)(7,"div",7),a.qSk(),a.j41(8,"svg",8),a.nrm(9,"path",9),a.k0s()()()(),a.DNE(10,dt,3,9,"ng-template",10),a.bIt("backdropClick",function(){return a.eBV(Yn),a.Njj(xn.close())})("attach",function(){return a.eBV(Yn),a.Njj(xn._onAttached())})("detach",function(){return a.eBV(Yn),a.Njj(xn.close())})}if(2&zt){const Yn=a.sdS(1);a.R7$(3),a.BMQ("id",xn._valueId),a.R7$(),a.vxM(xn.empty?4:5),a.R7$(6),a.Y8G("cdkConnectedOverlayPanelClass",xn._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",xn._scrollStrategy)("cdkConnectedOverlayOrigin",xn._preferredOverlayOrigin||Yn)("cdkConnectedOverlayOpen",xn.panelOpen)("cdkConnectedOverlayPositions",xn._positions)("cdkConnectedOverlayWidth",xn._overlayWidth)}},dependencies:[i.$Q,i.WB,yn.YU],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}'],encapsulation:2,data:{animation:[Ke.transformPanel]},changeDetection:0})}return En})(),an=(()=>{class En{static \u0275fac=function(zt){return new(zt||En)};static \u0275dir=a.FsC({type:En,selectors:[["mat-select-trigger"]],features:[a.Jv_([{provide:Kn,useExisting:En}])]})}return En})(),Xn=(()=>{class En{static \u0275fac=function(zt){return new(zt||En)};static \u0275mod=a.$C({type:En});static \u0275inj=a.G2t({providers:[fn],imports:[i.z_,c.Sy,c.yE,w.Gj,y.RG,c.Sy,c.yE]})}return En})()},882:(o,s,r)=>{"use strict";r.d(s,{$C:()=>Fe,$l:()=>bt,qe:()=>Ge,vg:()=>Ke});var i=r(5542),a=r(4438),c=r(3),y=r(9888),w=r(8203),C=r(4085),T=r(7336),S=r(6860),A=r(177),I=r(1413),N=r(3726),K=r(7786),Z=r(5964),ne=r(6354),be=r(3703),me=r(6977),pe=r(6697),Te=r(9172),xe=r(152),Re=r(9969);const Me=["*"],Ce=["content"],le=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ae=["mat-drawer","mat-drawer-content","*"];function Ie(He,mt){if(1&He){const se=a.RV6();a.j41(0,"div",1),a.bIt("click",function(){a.eBV(se);const Rt=a.XpG();return a.Njj(Rt._onBackdropClicked())}),a.k0s()}if(2&He){const se=a.XpG();a.AVh("mat-drawer-shown",se._isShowingBackdrop())}}function $e(He,mt){1&He&&(a.j41(0,"mat-drawer-content"),a.SdG(1,2),a.k0s())}const ln={transformDrawer:(0,Re.hZ)("transform",[(0,Re.wk)("open, open-instant",(0,Re.iF)({transform:"none",visibility:"visible"})),(0,Re.wk)("void",(0,Re.iF)({"box-shadow":"none",visibility:"hidden"})),(0,Re.kY)("void => open-instant",(0,Re.i0)("0ms")),(0,Re.kY)("void <=> open, open-instant => void",(0,Re.i0)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},$n=new a.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Qe(){return!1}}),bn=new a.nKC("MAT_DRAWER_CONTAINER");let bt=(()=>{class He extends i.uv{_platform=(0,a.WQX)(S.OD);_changeDetectorRef=(0,a.WQX)(a.gRc);_container=(0,a.WQX)(Fe);constructor(){super((0,a.WQX)(a.aKT),(0,a.WQX)(i.R),(0,a.WQX)(a.SKi))}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;const{start:se,end:Ze}=this._container;return null!=se&&"over"!==se.mode&&se.opened||null!=Ze&&"over"!==Ze.mode&&Ze.opened}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275cmp=a.VBU({type:He,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(Ze,Rt){2&Ze&&(a.xc7("margin-left",Rt._container._contentMargins.left,"px")("margin-right",Rt._container._contentMargins.right,"px"),a.AVh("mat-drawer-content-hidden",Rt._shouldBeHidden()))},features:[a.Jv_([{provide:i.uv,useExisting:He}]),a.Vt3],ngContentSelectors:Me,decls:1,vars:0,template:function(Ze,Rt){1&Ze&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0})}return He})(),Ge=(()=>{class He{_elementRef=(0,a.WQX)(a.aKT);_focusTrapFactory=(0,a.WQX)(y.GX);_focusMonitor=(0,a.WQX)(y.FN);_platform=(0,a.WQX)(S.OD);_ngZone=(0,a.WQX)(a.SKi);_interactivityChecker=(0,a.WQX)(y.Z7);_doc=(0,a.WQX)(A.qQ,{optional:!0});_container=(0,a.WQX)(bn,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_enableAnimations=!1;_isAttached;_anchor;get position(){return this._position}set position(se){(se="end"===se?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(se),this._position=se,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(se){this._mode=se,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(se){this._disableClose=(0,C.he)(se)}_disableClose=!1;get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(se){("true"===se||"false"===se||null==se)&&(se=(0,C.he)(se)),this._autoFocus=se}_autoFocus;get opened(){return this._opened}set opened(se){this.toggle((0,C.he)(se))}_opened=!1;_openedVia;_animationStarted=new I.B;_animationEnd=new I.B;_animationState="void";openedChange=new a.bkB(!0);_openedStream=this.openedChange.pipe((0,Z.p)(se=>se),(0,ne.T)(()=>{}));openedStart=this._animationStarted.pipe((0,Z.p)(se=>se.fromState!==se.toState&&0===se.toState.indexOf("open")),(0,be.u)(void 0));_closedStream=this.openedChange.pipe((0,Z.p)(se=>!se),(0,ne.T)(()=>{}));closedStart=this._animationStarted.pipe((0,Z.p)(se=>se.fromState!==se.toState&&"void"===se.toState),(0,be.u)(void 0));_destroyed=new I.B;onPositionChanged=new a.bkB;_content;_modeChanged=new I.B;_injector=(0,a.WQX)(a.zZn);_changeDetectorRef=(0,a.WQX)(a.gRc);constructor(){this.openedChange.pipe((0,me.Q)(this._destroyed)).subscribe(se=>{se?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,N.R)(this._elementRef.nativeElement,"keydown").pipe((0,Z.p)(se=>se.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(se)),(0,me.Q)(this._destroyed)).subscribe(se=>this._ngZone.run(()=>{this.close(),se.stopPropagation(),se.preventDefault()}))}),this._animationEnd.subscribe(se=>{const{fromState:Ze,toState:Rt}=se;(0===Rt.indexOf("open")&&"void"===Ze||"void"===Rt&&0===Ze.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(se,Ze){this._interactivityChecker.isFocusable(se)||(se.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Rt=()=>{se.removeEventListener("blur",Rt),se.removeEventListener("mousedown",Rt),se.removeAttribute("tabindex")};se.addEventListener("blur",Rt),se.addEventListener("mousedown",Rt)})),se.focus(Ze)}_focusByCssSelector(se,Ze){let Rt=this._elementRef.nativeElement.querySelector(se);Rt&&this._forceFocus(Rt,Ze)}_takeFocus(){if(!this._focusTrap)return;const se=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":(0,a.mal)(()=>{!this._focusTrap.focusInitialElement()&&"function"==typeof se.focus&&se.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(se){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,se):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const se=this._doc.activeElement;return!!se&&this._elementRef.nativeElement.contains(se)}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(se){return this.toggle(!0,se)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(se=!this.opened,Ze){se&&Ze&&(this._openedVia=Ze);const Rt=this._setOpen(se,!se&&this._isFocusWithinDrawer(),this._openedVia||"program");return se||(this._openedVia=null),Rt}_setOpen(se,Ze,Rt){return this._opened=se,se?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Ze&&this._restoreFocus(Rt)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(Jt=>{this.openedChange.pipe((0,pe.s)(1)).subscribe(fn=>Jt(fn?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(se){if(!this._platform.isBrowser)return;const Ze=this._elementRef.nativeElement,Rt=Ze.parentNode;"end"===se?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Rt.insertBefore(this._anchor,Ze)),Rt.appendChild(Ze)):this._anchor&&this._anchor.parentNode.insertBefore(Ze,this._anchor)}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275cmp=a.VBU({type:He,selectors:[["mat-drawer"]],viewQuery:function(Ze,Rt){if(1&Ze&&a.GBs(Ce,5),2&Ze){let Jt;a.mGM(Jt=a.lsd())&&(Rt._content=Jt.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Ze,Rt){1&Ze&&a.Kam("@transform.start",function(fn){return Rt._animationStarted.next(fn)})("@transform.done",function(fn){return Rt._animationEnd.next(fn)}),2&Ze&&(a.zvX("@transform",Rt._animationState),a.BMQ("align",null),a.AVh("mat-drawer-end","end"===Rt.position)("mat-drawer-over","over"===Rt.mode)("mat-drawer-push","push"===Rt.mode)("mat-drawer-side","side"===Rt.mode)("mat-drawer-opened",Rt.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Me,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Ze,Rt){1&Ze&&(a.NAR(),a.j41(0,"div",1,0),a.SdG(2),a.k0s())},dependencies:[i.uv],encapsulation:2,data:{animation:[ln.transformDrawer]},changeDetection:0})}return He})(),Fe=(()=>{class He{_dir=(0,a.WQX)(w.dS,{optional:!0});_element=(0,a.WQX)(a.aKT);_ngZone=(0,a.WQX)(a.SKi);_changeDetectorRef=(0,a.WQX)(a.gRc);_animationMode=(0,a.WQX)(a.bc$,{optional:!0});_allDrawers;_drawers=new a.rOR;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(se){this._autosize=(0,C.he)(se)}_autosize=(0,a.WQX)($n);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(se){this._backdropOverride=null==se?null:(0,C.he)(se)}_backdropOverride;backdropClick=new a.bkB;_start;_end;_left;_right;_destroyed=new I.B;_doCheckSubject=new I.B;_contentMargins={left:null,right:null};_contentMarginChanges=new I.B;get scrollable(){return this._userContent||this._content}_injector=(0,a.WQX)(a.zZn);constructor(){const se=(0,a.WQX)(i.Xj);this._dir?.change.pipe((0,me.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),se.change().pipe((0,me.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Te.Z)(this._allDrawers),(0,me.Q)(this._destroyed)).subscribe(se=>{this._drawers.reset(se.filter(Ze=>!Ze._container||Ze._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Te.Z)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(se=>{this._watchDrawerToggle(se),this._watchDrawerPosition(se),this._watchDrawerMode(se)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,xe.B)(10),(0,me.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(se=>se.open())}close(){this._drawers.forEach(se=>se.close())}updateContentMargins(){let se=0,Ze=0;if(this._left&&this._left.opened)if("side"==this._left.mode)se+=this._left._getWidth();else if("push"==this._left.mode){const Rt=this._left._getWidth();se+=Rt,Ze-=Rt}if(this._right&&this._right.opened)if("side"==this._right.mode)Ze+=this._right._getWidth();else if("push"==this._right.mode){const Rt=this._right._getWidth();Ze+=Rt,se-=Rt}se=se||null,Ze=Ze||null,(se!==this._contentMargins.left||Ze!==this._contentMargins.right)&&(this._contentMargins={left:se,right:Ze},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(se){se._animationStarted.pipe((0,Z.p)(Ze=>Ze.fromState!==Ze.toState),(0,me.Q)(this._drawers.changes)).subscribe(Ze=>{"open-instant"!==Ze.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==se.mode&&se.openedChange.pipe((0,me.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(se.opened))}_watchDrawerPosition(se){se&&se.onPositionChanged.pipe((0,me.Q)(this._drawers.changes)).subscribe(()=>{(0,a.mal)(()=>{this._validateDrawers()},{injector:this._injector,phase:a.wjH.Read})})}_watchDrawerMode(se){se&&se._modeChanged.pipe((0,me.Q)((0,K.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(se){const Ze=this._element.nativeElement.classList,Rt="mat-drawer-container-has-open";se?Ze.add(Rt):Ze.remove(Rt)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(se=>{"end"==se.position?this._end=se:this._start=se}),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(se=>se&&!se.disableClose&&this._drawerHasBackdrop(se)).forEach(se=>se._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(se){return null!=se&&se.opened}_drawerHasBackdrop(se){return null==this._backdropOverride?!!se&&"side"!==se.mode:this._backdropOverride}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275cmp=a.VBU({type:He,selectors:[["mat-drawer-container"]],contentQueries:function(Ze,Rt,Jt){if(1&Ze&&(a.wni(Jt,bt,5),a.wni(Jt,Ge,5)),2&Ze){let fn;a.mGM(fn=a.lsd())&&(Rt._content=fn.first),a.mGM(fn=a.lsd())&&(Rt._allDrawers=fn)}},viewQuery:function(Ze,Rt){if(1&Ze&&a.GBs(bt,5),2&Ze){let Jt;a.mGM(Jt=a.lsd())&&(Rt._userContent=Jt.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Ze,Rt){2&Ze&&a.AVh("mat-drawer-container-explicit-backdrop",Rt._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.Jv_([{provide:bn,useExisting:He}])],ngContentSelectors:ae,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ze,Rt){1&Ze&&(a.NAR(le),a.DNE(0,Ie,1,2,"div",0),a.SdG(1),a.SdG(2,1),a.DNE(3,$e,2,0,"mat-drawer-content")),2&Ze&&(a.vxM(Rt.hasBackdrop?0:-1),a.R7$(3),a.vxM(Rt._content?-1:3))},dependencies:[bt],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return He})(),Ke=(()=>{class He{static \u0275fac=function(Ze){return new(Ze||He)};static \u0275mod=a.$C({type:He});static \u0275inj=a.G2t({imports:[c.yE,i.Gj,i.Gj,c.yE]})}return He})()},4823:(o,s,r)=>{"use strict";r.d(s,{oV:()=>at,uc:()=>yn});var i=r(6977),a=r(4085),c=r(7336),y=r(4438),w=r(177),C=r(6860),T=r(9888),S=r(8203),A=r(6969),I=r(5542),N=r(6939),K=r(1413),ne=(r(9969),r(3));const be=["tooltip"],Te=new y.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const $n=(0,y.WQX)(A.hJ);return()=>$n.scrollStrategies.reposition({scrollThrottle:20})}}),Re={provide:Te,deps:[A.hJ],useFactory:function xe($n){return()=>$n.scrollStrategies.reposition({scrollThrottle:20})}},Ce=new y.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function Me(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ae="tooltip-panel",Ie=(0,C.BQ)({passive:!0});let at=(()=>{class $n{_overlay=(0,y.WQX)(A.hJ);_elementRef=(0,y.WQX)(y.aKT);_scrollDispatcher=(0,y.WQX)(I.R);_viewContainerRef=(0,y.WQX)(y.c1b);_ngZone=(0,y.WQX)(y.SKi);_platform=(0,y.WQX)(C.OD);_ariaDescriber=(0,y.WQX)(T.vr);_focusMonitor=(0,y.WQX)(T.FN);_dir=(0,y.WQX)(S.dS);_injector=(0,y.WQX)(y.zZn);_defaultOptions=(0,y.WQX)(Ce,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_scrollStrategy=(0,y.WQX)(Te);_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Xt;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;get position(){return this._position}set position(Qe){Qe!==this._position&&(this._position=Qe,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(Qe){this._positionAtOrigin=(0,a.he)(Qe),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(Qe){const bt=(0,a.he)(Qe);this._disabled!==bt&&(this._disabled=bt,bt?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(Qe){this._showDelay=(0,a.OE)(Qe)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(Qe){this._hideDelay=(0,a.OE)(Qe),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(Qe){const bt=this._message;this._message=null!=Qe?String(Qe).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(bt)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(Qe){this._tooltipClass=Qe,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_document=(0,y.WQX)(w.qQ);_touchstartTimeout=null;_destroyed=new K.B;constructor(){const Qe=this._defaultOptions;Qe&&(this._showDelay=Qe.showDelay,this._hideDelay=Qe.hideDelay,Qe.position&&(this.position=Qe.position),Qe.positionAtOrigin&&(this.positionAtOrigin=Qe.positionAtOrigin),Qe.touchGestures&&(this.touchGestures=Qe.touchGestures),Qe.tooltipClass&&(this.tooltipClass=Qe.tooltipClass)),this._dir.change.pipe((0,i.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,i.Q)(this._destroyed)).subscribe(Qe=>{Qe?"keyboard"===Qe&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Qe=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([bt,Ge])=>{Qe.removeEventListener(bt,Ge,Ie)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Qe,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Qe)}show(Qe=this.showDelay,bt){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Ge=this._createOverlay(bt);this._detach(),this._portal=this._portal||new N.A8(this._tooltipComponent,this._viewContainerRef);const Fe=this._tooltipInstance=Ge.attach(this._portal).instance;Fe._triggerElement=this._elementRef.nativeElement,Fe._mouseLeaveHideDelay=this._hideDelay,Fe.afterHidden().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Fe.show(Qe)}hide(Qe=this.hideDelay){const bt=this._tooltipInstance;bt&&(bt.isVisible()?bt.hide(Qe):(bt._cancelPendingAnimations(),this._detach()))}toggle(Qe){this._isTooltipVisible()?this.hide():this.show(void 0,Qe)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(Qe){if(this._overlayRef){const Fe=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!Qe)&&Fe._origin instanceof y.aKT)return this._overlayRef;this._detach()}const bt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Ge=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&Qe||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(bt);return Ge.positionChanges.pipe((0,i.Q)(this._destroyed)).subscribe(Fe=>{this._updateCurrentPositionClass(Fe.connectionPair),this._tooltipInstance&&Fe.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Ge,panelClass:`${this._cssClassPrefix}-${ae}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,i.Q)(this._destroyed)).subscribe(Fe=>{this._isTooltipVisible()&&Fe.keyCode===c._f&&!(0,c.rp)(Fe)&&(Fe.preventDefault(),Fe.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(Qe){const bt=Qe.getConfig().positionStrategy,Ge=this._getOrigin(),Fe=this._getOverlayPosition();bt.withPositions([this._addOffset({...Ge.main,...Fe.main}),this._addOffset({...Ge.fallback,...Fe.fallback})])}_addOffset(Qe){const Ge=!this._dir||"ltr"==this._dir.value;return"top"===Qe.originY?Qe.offsetY=-8:"bottom"===Qe.originY?Qe.offsetY=8:"start"===Qe.originX?Qe.offsetX=Ge?-8:8:"end"===Qe.originX&&(Qe.offsetX=Ge?8:-8),Qe}_getOrigin(){const Qe=!this._dir||"ltr"==this._dir.value,bt=this.position;let Ge;"above"==bt||"below"==bt?Ge={originX:"center",originY:"above"==bt?"top":"bottom"}:"before"==bt||"left"==bt&&Qe||"right"==bt&&!Qe?Ge={originX:"start",originY:"center"}:("after"==bt||"right"==bt&&Qe||"left"==bt&&!Qe)&&(Ge={originX:"end",originY:"center"});const{x:Fe,y:Ft}=this._invertPosition(Ge.originX,Ge.originY);return{main:Ge,fallback:{originX:Fe,originY:Ft}}}_getOverlayPosition(){const Qe=!this._dir||"ltr"==this._dir.value,bt=this.position;let Ge;"above"==bt?Ge={overlayX:"center",overlayY:"bottom"}:"below"==bt?Ge={overlayX:"center",overlayY:"top"}:"before"==bt||"left"==bt&&Qe||"right"==bt&&!Qe?Ge={overlayX:"end",overlayY:"center"}:("after"==bt||"right"==bt&&Qe||"left"==bt&&!Qe)&&(Ge={overlayX:"start",overlayY:"center"});const{x:Fe,y:Ft}=this._invertPosition(Ge.overlayX,Ge.overlayY);return{main:Ge,fallback:{overlayX:Fe,overlayY:Ft}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,y.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(Qe){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Qe,this._tooltipInstance._markForCheck())}_invertPosition(Qe,bt){return"above"===this.position||"below"===this.position?"top"===bt?bt="bottom":"bottom"===bt&&(bt="top"):"end"===Qe?Qe="start":"start"===Qe&&(Qe="end"),{x:Qe,y:bt}}_updateCurrentPositionClass(Qe){const{overlayY:bt,originX:Ge,originY:Fe}=Qe;let Ft;if(Ft="center"===bt?this._dir&&"rtl"===this._dir.value?"end"===Ge?"left":"right":"start"===Ge?"left":"right":"bottom"===bt&&"top"===Fe?"above":"below",Ft!==this._currentPosition){const ze=this._overlayRef;if(ze){const dt=`${this._cssClassPrefix}-${ae}-`;ze.removePanelClass(dt+this._currentPosition),ze.addPanelClass(dt+Ft)}this._currentPosition=Ft}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",Qe=>{let bt;this._setupPointerExitEventsIfNeeded(),void 0!==Qe.x&&void 0!==Qe.y&&(bt=Qe),this.show(void 0,bt)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",Qe=>{const bt=Qe.targetTouches?.[0],Ge=bt?{x:bt.clientX,y:bt.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,Ge)},this._defaultOptions?.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Qe=[];if(this._platformSupportsMouseEvents())Qe.push(["mouseleave",bt=>{const Ge=bt.relatedTarget;(!Ge||!this._overlayRef?.overlayElement.contains(Ge))&&this.hide()}],["wheel",bt=>this._wheelListener(bt)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const bt=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};Qe.push(["touchend",bt],["touchcancel",bt])}this._addListeners(Qe),this._passiveListeners.push(...Qe)}_addListeners(Qe){Qe.forEach(([bt,Ge])=>{this._elementRef.nativeElement.addEventListener(bt,Ge,Ie)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Qe){if(this._isTooltipVisible()){const bt=this._document.elementFromPoint(Qe.clientX,Qe.clientY),Ge=this._elementRef.nativeElement;bt!==Ge&&!Ge.contains(bt)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Qe=this.touchGestures;if("off"!==Qe){const bt=this._elementRef.nativeElement,Ge=bt.style;("on"===Qe||"INPUT"!==bt.nodeName&&"TEXTAREA"!==bt.nodeName)&&(Ge.userSelect=Ge.msUserSelect=Ge.webkitUserSelect=Ge.MozUserSelect="none"),("on"===Qe||!bt.draggable)&&(Ge.webkitUserDrag="none"),Ge.touchAction="none",Ge.webkitTapHighlightColor="transparent"}}_syncAriaDescription(Qe){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,Qe,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static \u0275fac=function(bt){return new(bt||$n)};static \u0275dir=y.FsC({type:$n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(bt,Ge){2&bt&&y.AVh("mat-mdc-tooltip-disabled",Ge.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return $n})(),Xt=(()=>{class $n{_changeDetectorRef=(0,y.WQX)(y.gRc);_elementRef=(0,y.WQX)(y.aKT);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new K.B;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){const Qe=(0,y.WQX)(y.bc$,{optional:!0});this._animationsDisabled="NoopAnimations"===Qe}show(Qe){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Qe)}hide(Qe){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Qe)}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:Qe}){(!Qe||!this._triggerElement.contains(Qe))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const Qe=this._elementRef.nativeElement.getBoundingClientRect();return Qe.height>24&&Qe.width>=200}_handleAnimationEnd({animationName:Qe}){(Qe===this._showAnimation||Qe===this._hideAnimation)&&this._finalizeAnimation(Qe===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Qe){Qe?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Qe){const bt=this._tooltip.nativeElement,Ge=this._showAnimation,Fe=this._hideAnimation;if(bt.classList.remove(Qe?Fe:Ge),bt.classList.add(Qe?Ge:Fe),this._isVisible!==Qe&&(this._isVisible=Qe,this._changeDetectorRef.markForCheck()),Qe&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Ft=getComputedStyle(bt);("0s"===Ft.getPropertyValue("animation-duration")||"none"===Ft.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Qe&&this._onShow(),this._animationsDisabled&&(bt.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Qe))}static \u0275fac=function(bt){return new(bt||$n)};static \u0275cmp=y.VBU({type:$n,selectors:[["mat-tooltip-component"]],viewQuery:function(bt,Ge){if(1&bt&&y.GBs(be,7),2&bt){let Fe;y.mGM(Fe=y.lsd())&&(Ge._tooltip=Fe.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(bt,Ge){1&bt&&y.bIt("mouseleave",function(Ft){return Ge._handleMouseLeave(Ft)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(bt,Ge){if(1&bt){const Fe=y.RV6();y.j41(0,"div",1,0),y.bIt("animationend",function(ze){return y.eBV(Fe),y.Njj(Ge._handleAnimationEnd(ze))}),y.j41(2,"div",2),y.EFF(3),y.k0s()()}2&bt&&(y.AVh("mdc-tooltip--multiline",Ge._isMultiline),y.Y8G("ngClass",Ge.tooltipClass),y.R7$(3),y.JRh(Ge.message))},dependencies:[w.YU],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return $n})(),yn=(()=>{class $n{static \u0275fac=function(bt){return new(bt||$n)};static \u0275mod=y.$C({type:$n});static \u0275inj=y.G2t({providers:[Re],imports:[T.Pd,A.z_,ne.yE,ne.yE,I.Gj]})}return $n})()},345:(o,s,r)=>{"use strict";r.d(s,{B7:()=>vt,B8:()=>dt,hE:()=>Kt,up:()=>Vt});var i=r(177),a=r(4438);class c extends i.VF{supportsDOMEvents=!0}class y extends c{static makeCurrent(){(0,i.ZD)(new y)}onAndCancel(kt,ft,Pt){return kt.addEventListener(ft,Pt),()=>{kt.removeEventListener(ft,Pt)}}dispatchEvent(kt,ft){kt.dispatchEvent(ft)}remove(kt){kt.remove()}createElement(kt,ft){return(ft=ft||this.getDefaultDocument()).createElement(kt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(kt){return kt.nodeType===Node.ELEMENT_NODE}isShadowRoot(kt){return kt instanceof DocumentFragment}getGlobalEventTarget(kt,ft){return"window"===ft?window:"document"===ft?kt:"body"===ft?kt.body:null}getBaseHref(kt){const ft=function C(){return w=w||document.querySelector("base"),w?w.getAttribute("href"):null}();return null==ft?null:function T(Pe){return new URL(Pe,document.baseURI).pathname}(ft)}resetBaseElement(){w=null}getUserAgent(){return window.navigator.userAgent}getCookie(kt){return(0,i._b)(document.cookie,kt)}}let w=null,A=(()=>{class Pe{build(){return new XMLHttpRequest}static \u0275fac=function(Pt){return new(Pt||Pe)};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();const I=new a.nKC("");let N=(()=>{class Pe{_zone;_plugins;_eventNameToPlugin=new Map;constructor(ft,Pt){this._zone=Pt,ft.forEach(mn=>{mn.manager=this}),this._plugins=ft.slice().reverse()}addEventListener(ft,Pt,mn){return this._findPluginFor(Pt).addEventListener(ft,Pt,mn)}getZone(){return this._zone}_findPluginFor(ft){let Pt=this._eventNameToPlugin.get(ft);if(Pt)return Pt;if(Pt=this._plugins.find(or=>or.supports(ft)),!Pt)throw new a.wOt(5101,!1);return this._eventNameToPlugin.set(ft,Pt),Pt}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(I),a.KVO(a.SKi))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();class K{_doc;constructor(kt){this._doc=kt}manager}const Z="ng-app-id";function ne(Pe){for(const kt of Pe)kt.remove()}function be(Pe,kt){const ft=kt.createElement("style");return ft.textContent=Pe,ft}function pe(Pe,kt){const ft=kt.createElement("link");return ft.setAttribute("rel","stylesheet"),ft.setAttribute("href",Pe),ft}let Te=(()=>{class Pe{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(ft,Pt,mn,or={}){this.doc=ft,this.appId=Pt,this.nonce=mn,this.isServer=(0,i.Vy)(or),function me(Pe,kt,ft){const Pt=Pe.head?.querySelectorAll(`style[${Z}="${kt}"]`);if(Pt)for(const mn of Pt)mn.textContent&&(mn.removeAttribute(Z),ft.set(mn.textContent,{usage:0,elements:[mn]}))}(ft,Pt,this.inline),this.hosts.add(ft.head)}addStyles(ft,Pt){for(const mn of ft)this.addUsage(mn,this.inline,be);Pt?.forEach(mn=>this.addUsage(mn,this.external,pe))}removeStyles(ft,Pt){for(const mn of ft)this.removeUsage(mn,this.inline);Pt?.forEach(mn=>this.removeUsage(mn,this.external))}addUsage(ft,Pt,mn){const or=Pt.get(ft);or?or.usage++:Pt.set(ft,{usage:1,elements:[...this.hosts].map(Mr=>this.addElement(Mr,mn(ft,this.doc)))})}removeUsage(ft,Pt){const mn=Pt.get(ft);mn&&(mn.usage--,mn.usage<=0&&(ne(mn.elements),Pt.delete(ft)))}ngOnDestroy(){for(const[,{elements:ft}]of[...this.inline,...this.external])ne(ft);this.hosts.clear()}addHost(ft){this.hosts.add(ft);for(const[Pt,{elements:mn}]of this.inline)mn.push(this.addElement(ft,be(Pt,this.doc)));for(const[Pt,{elements:mn}]of this.external)mn.push(this.addElement(ft,pe(Pt,this.doc)))}removeHost(ft){this.hosts.delete(ft)}addElement(ft,Pt){return this.nonce&&Pt.setAttribute("nonce",this.nonce),this.isServer&&Pt.setAttribute(Z,this.appId),ft.appendChild(Pt)}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ),a.KVO(a.sZ2),a.KVO(a.BIS,8),a.KVO(a.Agw))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();const xe={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"},Re=/%COMP%/g,Ie=new a.nKC("",{providedIn:"root",factory:()=>!0});function ht(Pe,kt){return kt.map(ft=>ft.replace(Re,Pe))}let vt=(()=>{class Pe{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(ft,Pt,mn,or,Mr,ii,ci,Ai=null){this.eventManager=ft,this.sharedStylesHost=Pt,this.appId=mn,this.removeStylesOnCompDestroy=or,this.doc=Mr,this.platformId=ii,this.ngZone=ci,this.nonce=Ai,this.platformIsServer=(0,i.Vy)(ii),this.defaultRenderer=new at(ft,Mr,ci,this.platformIsServer)}createRenderer(ft,Pt){if(!ft||!Pt)return this.defaultRenderer;this.platformIsServer&&Pt.encapsulation===a.gXe.ShadowDom&&(Pt={...Pt,encapsulation:a.gXe.Emulated});const mn=this.getOrCreateRenderer(ft,Pt);return mn instanceof Qe?mn.applyToHost(ft):mn instanceof bn&&mn.applyStyles(),mn}getOrCreateRenderer(ft,Pt){const mn=this.rendererByCompId;let or=mn.get(Pt.id);if(!or){const Mr=this.doc,ii=this.ngZone,ci=this.eventManager,Ai=this.sharedStylesHost,rn=this.removeStylesOnCompDestroy,St=this.platformIsServer;switch(Pt.encapsulation){case a.gXe.Emulated:or=new Qe(ci,Ai,Pt,this.appId,rn,Mr,ii,St);break;case a.gXe.ShadowDom:return new $n(ci,Ai,ft,Pt,Mr,ii,this.nonce,St);default:or=new bn(ci,Ai,Pt,rn,Mr,ii,St)}mn.set(Pt.id,or)}return or}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(N),a.KVO(Te),a.KVO(a.sZ2),a.KVO(Ie),a.KVO(i.qQ),a.KVO(a.Agw),a.KVO(a.SKi),a.KVO(a.BIS))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();class at{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(kt,ft,Pt,mn){this.eventManager=kt,this.doc=ft,this.ngZone=Pt,this.platformIsServer=mn}destroy(){}destroyNode=null;createElement(kt,ft){return ft?this.doc.createElementNS(xe[ft]||ft,kt):this.doc.createElement(kt)}createComment(kt){return this.doc.createComment(kt)}createText(kt){return this.doc.createTextNode(kt)}appendChild(kt,ft){(yn(kt)?kt.content:kt).appendChild(ft)}insertBefore(kt,ft,Pt){kt&&(yn(kt)?kt.content:kt).insertBefore(ft,Pt)}removeChild(kt,ft){ft.remove()}selectRootElement(kt,ft){let Pt="string"==typeof kt?this.doc.querySelector(kt):kt;if(!Pt)throw new a.wOt(-5104,!1);return ft||(Pt.textContent=""),Pt}parentNode(kt){return kt.parentNode}nextSibling(kt){return kt.nextSibling}setAttribute(kt,ft,Pt,mn){if(mn){ft=mn+":"+ft;const or=xe[mn];or?kt.setAttributeNS(or,ft,Pt):kt.setAttribute(ft,Pt)}else kt.setAttribute(ft,Pt)}removeAttribute(kt,ft,Pt){if(Pt){const mn=xe[Pt];mn?kt.removeAttributeNS(mn,ft):kt.removeAttribute(`${Pt}:${ft}`)}else kt.removeAttribute(ft)}addClass(kt,ft){kt.classList.add(ft)}removeClass(kt,ft){kt.classList.remove(ft)}setStyle(kt,ft,Pt,mn){mn&(a.czy.DashCase|a.czy.Important)?kt.style.setProperty(ft,Pt,mn&a.czy.Important?"important":""):kt.style[ft]=Pt}removeStyle(kt,ft,Pt){Pt&a.czy.DashCase?kt.style.removeProperty(ft):kt.style[ft]=""}setProperty(kt,ft,Pt){null!=kt&&(kt[ft]=Pt)}setValue(kt,ft){kt.nodeValue=ft}listen(kt,ft,Pt){if("string"==typeof kt&&!(kt=(0,i.QT)().getGlobalEventTarget(this.doc,kt)))throw new Error(`Unsupported event target ${kt} for event ${ft}`);return this.eventManager.addEventListener(kt,ft,this.decoratePreventDefault(Pt))}decoratePreventDefault(kt){return ft=>{if("__ngUnwrap__"===ft)return kt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>kt(ft)):kt(ft))&&ft.preventDefault()}}}function yn(Pe){return"TEMPLATE"===Pe.tagName&&void 0!==Pe.content}class $n extends at{sharedStylesHost;hostEl;shadowRoot;constructor(kt,ft,Pt,mn,or,Mr,ii,ci){super(kt,or,Mr,ci),this.sharedStylesHost=ft,this.hostEl=Pt,this.shadowRoot=Pt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ai=ht(mn.id,mn.styles);for(const St of Ai){const qe=document.createElement("style");ii&&qe.setAttribute("nonce",ii),qe.textContent=St,this.shadowRoot.appendChild(qe)}const rn=mn.getExternalStyles?.();if(rn)for(const St of rn){const qe=pe(St,or);ii&&qe.setAttribute("nonce",ii),this.shadowRoot.appendChild(qe)}}nodeOrShadowRoot(kt){return kt===this.hostEl?this.shadowRoot:kt}appendChild(kt,ft){return super.appendChild(this.nodeOrShadowRoot(kt),ft)}insertBefore(kt,ft,Pt){return super.insertBefore(this.nodeOrShadowRoot(kt),ft,Pt)}removeChild(kt,ft){return super.removeChild(null,ft)}parentNode(kt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(kt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class bn extends at{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(kt,ft,Pt,mn,or,Mr,ii,ci){super(kt,or,Mr,ii),this.sharedStylesHost=ft,this.removeStylesOnCompDestroy=mn,this.styles=ci?ht(ci,Pt.styles):Pt.styles,this.styleUrls=Pt.getExternalStyles?.(ci)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class Qe extends bn{contentAttr;hostAttr;constructor(kt,ft,Pt,mn,or,Mr,ii,ci){const Ai=mn+"-"+Pt.id;super(kt,ft,Pt,or,Mr,ii,ci,Ai),this.contentAttr=function $e(Pe){return"_ngcontent-%COMP%".replace(Re,Pe)}(Ai),this.hostAttr=function st(Pe){return"_nghost-%COMP%".replace(Re,Pe)}(Ai)}applyToHost(kt){this.applyStyles(),this.setAttribute(kt,this.hostAttr,"")}createElement(kt,ft){const Pt=super.createElement(kt,ft);return super.setAttribute(Pt,this.contentAttr,""),Pt}}let bt=(()=>{class Pe extends K{constructor(ft){super(ft)}supports(ft){return!0}addEventListener(ft,Pt,mn){return ft.addEventListener(Pt,mn,!1),()=>this.removeEventListener(ft,Pt,mn)}removeEventListener(ft,Pt,mn){return ft.removeEventListener(Pt,mn)}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();const Ge=["alt","control","meta","shift"],Fe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ft={alt:Pe=>Pe.altKey,control:Pe=>Pe.ctrlKey,meta:Pe=>Pe.metaKey,shift:Pe=>Pe.shiftKey};let ze=(()=>{class Pe extends K{constructor(ft){super(ft)}supports(ft){return null!=Pe.parseEventName(ft)}addEventListener(ft,Pt,mn){const or=Pe.parseEventName(Pt),Mr=Pe.eventCallback(or.fullKey,mn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.QT)().onAndCancel(ft,or.domEventName,Mr))}static parseEventName(ft){const Pt=ft.toLowerCase().split("."),mn=Pt.shift();if(0===Pt.length||"keydown"!==mn&&"keyup"!==mn)return null;const or=Pe._normalizeKey(Pt.pop());let Mr="",ii=Pt.indexOf("code");if(ii>-1&&(Pt.splice(ii,1),Mr="code."),Ge.forEach(Ai=>{const rn=Pt.indexOf(Ai);rn>-1&&(Pt.splice(rn,1),Mr+=Ai+".")}),Mr+=or,0!=Pt.length||0===or.length)return null;const ci={};return ci.domEventName=mn,ci.fullKey=Mr,ci}static matchEventFullKeyCode(ft,Pt){let mn=Fe[ft.key]||ft.key,or="";return Pt.indexOf("code.")>-1&&(mn=ft.code,or="code."),!(null==mn||!mn)&&(mn=mn.toLowerCase()," "===mn?mn="space":"."===mn&&(mn="dot"),Ge.forEach(Mr=>{Mr!==mn&&(0,Ft[Mr])(ft)&&(or+=Mr+".")}),or+=mn,or===Pt)}static eventCallback(ft,Pt,mn){return or=>{Pe.matchEventFullKeyCode(or,ft)&&mn.runGuarded(()=>Pt(or))}}static _normalizeKey(ft){return"esc"===ft?"escape":ft}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();function dt(Pe,kt){return(0,a.TL3)({rootComponent:Pe,...He(kt)})}function He(Pe){return{appProviders:[...Qt,...Pe?.providers??[]],platformProviders:Jt}}const Jt=[{provide:a.Agw,useValue:i.AJ},{provide:a.PLl,useValue:function se(){y.makeCurrent()},multi:!0},{provide:i.qQ,useFactory:function Rt(){return(0,a.TL$)(document),document},deps:[]}],Qt=[{provide:a.H8p,useValue:"root"},{provide:a.zcH,useFactory:function Ze(){return new a.zcH},deps:[]},{provide:I,useClass:bt,multi:!0,deps:[i.qQ,a.SKi,a.Agw]},{provide:I,useClass:ze,multi:!0,deps:[i.qQ]},vt,Te,N,{provide:a._9s,useExisting:vt},{provide:i.N0,useClass:A,deps:[]},[]];let Kt=(()=>{class Pe{_doc;constructor(ft){this._doc=ft}getTitle(){return this._doc.title}setTitle(ft){this._doc.title=ft||""}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})(),Vt=(()=>{class Pe{static \u0275fac=function(Pt){return new(Pt||Pe)};static \u0275prov=a.jDH({token:Pe,factory:function(Pt){let mn=null;return mn=Pt?new(Pt||Pe):a.KVO(dn),mn},providedIn:"root"})}return Pe})(),dn=(()=>{class Pe extends Vt{_doc;constructor(ft){super(),this._doc=ft}sanitize(ft,Pt){if(null==Pt)return null;switch(ft){case a.WPN.NONE:return Pt;case a.WPN.HTML:return(0,a.ZF7)(Pt,"HTML")?(0,a.rcV)(Pt):(0,a.h9k)(this._doc,String(Pt)).toString();case a.WPN.STYLE:return(0,a.ZF7)(Pt,"Style")?(0,a.rcV)(Pt):Pt;case a.WPN.SCRIPT:if((0,a.ZF7)(Pt,"Script"))return(0,a.rcV)(Pt);throw new a.wOt(5200,!1);case a.WPN.URL:return(0,a.ZF7)(Pt,"URL")?(0,a.rcV)(Pt):(0,a.$MX)(String(Pt));case a.WPN.RESOURCE_URL:if((0,a.ZF7)(Pt,"ResourceURL"))return(0,a.rcV)(Pt);throw new a.wOt(5201,!1);default:throw new a.wOt(5202,!1)}}bypassSecurityTrustHtml(ft){return(0,a.Kcf)(ft)}bypassSecurityTrustStyle(ft){return(0,a.cWb)(ft)}bypassSecurityTrustScript(ft){return(0,a.UyX)(ft)}bypassSecurityTrustUrl(ft){return(0,a.osQ)(ft)}bypassSecurityTrustResourceUrl(ft){return(0,a.e5t)(ft)}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})()},5245:(o,s,r)=>{"use strict";r.d(s,{nX:()=>tr,wF:()=>Oe,Ix:()=>Qr,Wk:()=>Wo,wQ:()=>hs,iI:()=>ul,n3:()=>Qo,lh:()=>Tl,oH:()=>oc});var i=r(4438),a=r(4402),c=r(6648),y=r(7673),w=r(4412),C=r(4572),T=r(9350),S=r(8793),A=r(9030),I=r(1203),N=r(8810),K=r(983),Z=r(17),ne=r(1413),be=r(8359),me=r(177),pe=r(6354),Te=r(5558),xe=r(6697),Re=r(9172),Me=r(5964),Ce=r(1397),le=r(9974),ae=r(4360);function Ie(L){return(0,le.N)((z,P)=>{let X=!1;z.subscribe((0,ae._)(P,he=>{X=!0,P.next(he)},()=>{X||P.next(L),P.complete()}))})}function $e(L=st){return(0,le.N)((z,P)=>{let X=!1;z.subscribe((0,ae._)(P,he=>{X=!0,P.next(he)},()=>X?P.complete():P.error(L())))})}function st(){return new T.G}var ht=r(3669);function vt(L,z){const P=arguments.length>=2;return X=>X.pipe(L?(0,Me.p)((he,We)=>L(he,We,X)):ht.D,(0,xe.s)(1),P?Ie(z):$e(()=>new T.G))}var at=r(274),Xt=r(8141),ln=r(9437),yn=r(6649);function bn(L){return L<=0?()=>K.w:(0,le.N)((z,P)=>{let X=[];z.subscribe((0,ae._)(P,he=>{X.push(he),L{for(const he of X)P.next(he);P.complete()},void 0,()=>{X=null}))})}var bt=r(3703),Ge=r(980),Fe=r(9898),Ft=r(6977),ze=r(6365),dt=r(345);const Ke="primary",He=Symbol("RouteTitle");class mt{params;constructor(z){this.params=z||{}}has(z){return Object.prototype.hasOwnProperty.call(this.params,z)}get(z){if(this.has(z)){const P=this.params[z];return Array.isArray(P)?P[0]:P}return null}getAll(z){if(this.has(z)){const P=this.params[z];return Array.isArray(P)?P:[P]}return[]}get keys(){return Object.keys(this.params)}}function se(L){return new mt(L)}function Ze(L,z,P){const X=P.path.split("/");if(X.length>L.length||"full"===P.pathMatch&&(z.hasChildren()||X.lengthX[We]===he)}return L===z}function Nt(L){return L.length>0?L[L.length-1]:null}function Qt(L){return(0,a.A)(L)?L:(0,i.jNT)(L)?(0,c.H)(Promise.resolve(L)):(0,y.of)(L)}const an={exact:function At(L,z,P){if(!De(L.segments,z.segments)||!tt(L.segments,z.segments,P)||L.numberOfChildren!==z.numberOfChildren)return!1;for(const X in z.children)if(!L.children[X]||!At(L.children[X],z.children[X],P))return!1;return!0},subset:xn},Xn={exact:function Kt(L,z){return Jt(L,z)},subset:function zt(L,z){return Object.keys(z).length<=Object.keys(L).length&&Object.keys(z).every(P=>Kn(L[P],z[P]))},ignored:()=>!0};function En(L,z,P){return an[P.paths](L.root,z.root,P.matrixParams)&&Xn[P.queryParams](L.queryParams,z.queryParams)&&!("exact"===P.fragment&&L.fragment!==z.fragment)}function xn(L,z,P){return Yn(L,z,z.segments,P)}function Yn(L,z,P,X){if(L.segments.length>P.length){const he=L.segments.slice(0,P.length);return!(!De(he,P)||z.hasChildren()||!tt(he,P,X))}if(L.segments.length===P.length){if(!De(L.segments,P)||!tt(L.segments,P,X))return!1;for(const he in z.children)if(!L.children[he]||!xn(L.children[he],z.children[he],X))return!1;return!0}{const he=P.slice(0,L.segments.length),We=P.slice(L.segments.length);return!!(De(L.segments,he)&&tt(L.segments,he,X)&&L.children[Ke])&&Yn(L.children[Ke],z,We,X)}}function tt(L,z,P){return z.every((X,he)=>Xn[P](L[he].parameters,X.parameters))}class ke{root;queryParams;fragment;_queryParamMap;constructor(z=new B([],{}),P={},X=null){this.root=z,this.queryParams=P,this.fragment=X}get queryParamMap(){return this._queryParamMap??=se(this.queryParams),this._queryParamMap}toString(){return In.serialize(this)}}class B{segments;children;parent=null;constructor(z,P){this.segments=z,this.children=P,Object.values(P).forEach(X=>X.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vt(this)}}class k{path;parameters;_parameterMap;constructor(z,P){this.path=z,this.parameters=P}get parameterMap(){return this._parameterMap??=se(this.parameters),this._parameterMap}toString(){return _t(this)}}function De(L,z){return L.length===z.length&&L.every((P,X)=>P.path===z[X].path)}let ot=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>new Tt,providedIn:"root"})}return L})();class Tt{parse(z){const P=new ii(z);return new ke(P.parseRootSegment(),P.parseQueryParams(),P.parseFragment())}serialize(z){const P=`/${dn(z.root,!0)}`,X=function Ee(L){const z=Object.entries(L).map(([P,X])=>Array.isArray(X)?X.map(he=>`${Fn(P)}=${Fn(he)}`).join("&"):`${Fn(P)}=${Fn(X)}`).filter(P=>P);return z.length?`?${z.join("&")}`:""}(z.queryParams);return`${P}${X}${"string"==typeof z.fragment?`#${function Bn(L){return encodeURI(L)}(z.fragment)}`:""}`}}const In=new Tt;function Vt(L){return L.segments.map(z=>_t(z)).join("/")}function dn(L,z){if(!L.hasChildren())return Vt(L);if(z){const P=L.children[Ke]?dn(L.children[Ke],!1):"",X=[];return Object.entries(L.children).forEach(([he,We])=>{he!==Ke&&X.push(`${he}:${dn(We,!1)}`)}),X.length>0?`${P}(${X.join("//")})`:P}{const P=function it(L,z){let P=[];return Object.entries(L.children).forEach(([X,he])=>{X===Ke&&(P=P.concat(z(he,X)))}),Object.entries(L.children).forEach(([X,he])=>{X!==Ke&&(P=P.concat(z(he,X)))}),P}(L,(X,he)=>he===Ke?[dn(L.children[Ke],!1)]:[`${he}:${dn(X,!1)}`]);return 1===Object.keys(L.children).length&&null!=L.children[Ke]?`${Vt(L)}/${P[0]}`:`${Vt(L)}/(${P.join("//")})`}}function Pn(L){return encodeURIComponent(L).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fn(L){return Pn(L).replace(/%3B/gi,";")}function cr(L){return Pn(L).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jr(L){return decodeURIComponent(L)}function Xr(L){return Jr(L.replace(/\+/g,"%20"))}function _t(L){return`${cr(L.path)}${function Bt(L){return Object.entries(L).map(([z,P])=>`;${cr(z)}=${cr(P)}`).join("")}(L.parameters)}`}const lt=/^[^\/()?;#]+/;function Pe(L){const z=L.match(lt);return z?z[0]:""}const kt=/^[^\/()?;=#]+/,Pt=/^[^=?&#]+/,or=/^[^&#]+/;class ii{url;remaining;constructor(z){this.url=z,this.remaining=z}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new B([],{}):new B([],this.parseChildren())}parseQueryParams(){const z={};if(this.consumeOptional("?"))do{this.parseQueryParam(z)}while(this.consumeOptional("&"));return z}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const z=[];for(this.peekStartsWith("(")||z.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),z.push(this.parseSegment());let P={};this.peekStartsWith("/(")&&(this.capture("/"),P=this.parseParens(!0));let X={};return this.peekStartsWith("(")&&(X=this.parseParens(!1)),(z.length>0||Object.keys(P).length>0)&&(X[Ke]=new B(z,P)),X}parseSegment(){const z=Pe(this.remaining);if(""===z&&this.peekStartsWith(";"))throw new i.wOt(4009,!1);return this.capture(z),new k(Jr(z),this.parseMatrixParams())}parseMatrixParams(){const z={};for(;this.consumeOptional(";");)this.parseParam(z);return z}parseParam(z){const P=function ft(L){const z=L.match(kt);return z?z[0]:""}(this.remaining);if(!P)return;this.capture(P);let X="";if(this.consumeOptional("=")){const he=Pe(this.remaining);he&&(X=he,this.capture(X))}z[Jr(P)]=Jr(X)}parseQueryParam(z){const P=function mn(L){const z=L.match(Pt);return z?z[0]:""}(this.remaining);if(!P)return;this.capture(P);let X="";if(this.consumeOptional("=")){const Ct=function Mr(L){const z=L.match(or);return z?z[0]:""}(this.remaining);Ct&&(X=Ct,this.capture(X))}const he=Xr(P),We=Xr(X);if(z.hasOwnProperty(he)){let Ct=z[he];Array.isArray(Ct)||(Ct=[Ct],z[he]=Ct),Ct.push(We)}else z[he]=We}parseParens(z){const P={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const X=Pe(this.remaining),he=this.remaining[X.length];if("/"!==he&&")"!==he&&";"!==he)throw new i.wOt(4010,!1);let We;X.indexOf(":")>-1?(We=X.slice(0,X.indexOf(":")),this.capture(We),this.capture(":")):z&&(We=Ke);const Ct=this.parseChildren();P[We]=1===Object.keys(Ct).length?Ct[Ke]:new B([],Ct),this.consumeOptional("//")}return P}peekStartsWith(z){return this.remaining.startsWith(z)}consumeOptional(z){return!!this.peekStartsWith(z)&&(this.remaining=this.remaining.substring(z.length),!0)}capture(z){if(!this.consumeOptional(z))throw new i.wOt(4011,!1)}}function ci(L){return L.segments.length>0?new B([],{[Ke]:L}):L}function Ai(L){const z={};for(const[X,he]of Object.entries(L.children)){const We=Ai(he);if(X===Ke&&0===We.segments.length&&We.hasChildren())for(const[Ct,vn]of Object.entries(We.children))z[Ct]=vn;else(We.segments.length>0||We.hasChildren())&&(z[X]=We)}return function rn(L){if(1===L.numberOfChildren&&L.children[Ke]){const z=L.children[Ke];return new B(L.segments.concat(z.segments),z.children)}return L}(new B(L.segments,z))}function St(L){return L instanceof ke}function Dt(L){let z;const he=ci(function P(We){const Ct={};for(const nn of We.children){const pr=P(nn);Ct[nn.outlet]=pr}const vn=new B(We.url,Ct);return We===L&&(z=vn),vn}(L.root));return z??he}function Wt(L,z,P,X){let he=L;for(;he.parent;)he=he.parent;if(0===z.length)return uo(he,he,he,P,X);const We=function oi(L){if("string"==typeof L[0]&&1===L.length&&"/"===L[0])return new Uo(!0,0,L);let z=0,P=!1;const X=L.reduce((he,We,Ct)=>{if("object"==typeof We&&null!=We){if(We.outlets){const vn={};return Object.entries(We.outlets).forEach(([nn,pr])=>{vn[nn]="string"==typeof pr?pr.split("/"):pr}),[...he,{outlets:vn}]}if(We.segmentPath)return[...he,We.segmentPath]}return"string"!=typeof We?[...he,We]:0===Ct?(We.split("/").forEach((vn,nn)=>{0==nn&&"."===vn||(0==nn&&""===vn?P=!0:".."===vn?z++:""!=vn&&he.push(vn))}),he):[...he,We]},[]);return new Uo(P,z,X)}(z);if(We.toRoot())return uo(he,he,new B([],{}),P,X);const Ct=function so(L,z,P){if(L.isAbsolute)return new ts(z,!0,0);if(!P)return new ts(z,!1,NaN);if(null===P.parent)return new ts(P,!0,0);const X=Hn(L.commands[0])?0:1;return function bo(L,z,P){let X=L,he=z,We=P;for(;We>he;){if(We-=he,X=X.parent,!X)throw new i.wOt(4005,!1);he=X.segments.length}return new ts(X,!1,he-We)}(P,P.segments.length-1+X,L.numberOfDoubleDots)}(We,he,L),vn=Ct.processChildren?Is(Ct.segmentGroup,Ct.index,We.commands):Co(Ct.segmentGroup,Ct.index,We.commands);return uo(he,Ct.segmentGroup,vn,P,X)}function Hn(L){return"object"==typeof L&&null!=L&&!L.outlets&&!L.segmentPath}function fr(L){return"object"==typeof L&&null!=L&&L.outlets}function uo(L,z,P,X,he){let Ct,We={};X&&Object.entries(X).forEach(([nn,pr])=>{We[nn]=Array.isArray(pr)?pr.map(ri=>`${ri}`):`${pr}`}),Ct=L===z?P:Oi(L,z,P);const vn=ci(Ai(Ct));return new ke(vn,We,he)}function Oi(L,z,P){const X={};return Object.entries(L.children).forEach(([he,We])=>{X[he]=We===z?P:Oi(We,z,P)}),new B(L.segments,X)}class Uo{isAbsolute;numberOfDoubleDots;commands;constructor(z,P,X){if(this.isAbsolute=z,this.numberOfDoubleDots=P,this.commands=X,z&&X.length>0&&Hn(X[0]))throw new i.wOt(4003,!1);const he=X.find(fr);if(he&&he!==Nt(X))throw new i.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ts{segmentGroup;processChildren;index;constructor(z,P,X){this.segmentGroup=z,this.processChildren=P,this.index=X}}function Co(L,z,P){if(L??=new B([],{}),0===L.segments.length&&L.hasChildren())return Is(L,z,P);const X=function eo(L,z,P){let X=0,he=z;const We={match:!1,pathIndex:0,commandIndex:0};for(;he=P.length)return We;const Ct=L.segments[he],vn=P[X];if(fr(vn))break;const nn=`${vn}`,pr=X0&&void 0===nn)break;if(nn&&pr&&"object"==typeof pr&&void 0===pr.outlets){if(!Je(nn,pr,Ct))return We;X+=2}else{if(!Je(nn,{},Ct))return We;X++}he++}return{match:!0,pathIndex:he,commandIndex:X}}(L,z,P),he=P.slice(X.commandIndex);if(X.match&&X.pathIndexWe!==Ke)&&L.children[Ke]&&1===L.numberOfChildren&&0===L.children[Ke].segments.length){const We=Is(L.children[Ke],z,P);return new B(L.segments,We.children)}return Object.entries(X).forEach(([We,Ct])=>{"string"==typeof Ct&&(Ct=[Ct]),null!==Ct&&(he[We]=Co(L.children[We],z,Ct))}),Object.entries(L.children).forEach(([We,Ct])=>{void 0===X[We]&&(he[We]=Ct)}),new B(L.segments,he)}}function oo(L,z,P){const X=L.segments.slice(0,z);let he=0;for(;he{"string"==typeof X&&(X=[X]),null!==X&&(z[P]=oo(new B([],{}),0,X))}),z}function Mo(L){const z={};return Object.entries(L).forEach(([P,X])=>z[P]=`${X}`),z}function Je(L,z,P){return L==P.path&&Jt(z,P.parameters)}const ct="imperative";var Et=function(L){return L[L.NavigationStart=0]="NavigationStart",L[L.NavigationEnd=1]="NavigationEnd",L[L.NavigationCancel=2]="NavigationCancel",L[L.NavigationError=3]="NavigationError",L[L.RoutesRecognized=4]="RoutesRecognized",L[L.ResolveStart=5]="ResolveStart",L[L.ResolveEnd=6]="ResolveEnd",L[L.GuardsCheckStart=7]="GuardsCheckStart",L[L.GuardsCheckEnd=8]="GuardsCheckEnd",L[L.RouteConfigLoadStart=9]="RouteConfigLoadStart",L[L.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",L[L.ChildActivationStart=11]="ChildActivationStart",L[L.ChildActivationEnd=12]="ChildActivationEnd",L[L.ActivationStart=13]="ActivationStart",L[L.ActivationEnd=14]="ActivationEnd",L[L.Scroll=15]="Scroll",L[L.NavigationSkipped=16]="NavigationSkipped",L}(Et||{});class ve{id;url;constructor(z,P){this.id=z,this.url=P}}class et extends ve{type=Et.NavigationStart;navigationTrigger;restoredState;constructor(z,P,X="imperative",he=null){super(z,P),this.navigationTrigger=X,this.restoredState=he}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Oe extends ve{urlAfterRedirects;type=Et.NavigationEnd;constructor(z,P,X){super(z,P),this.urlAfterRedirects=X}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var pt=function(L){return L[L.Redirect=0]="Redirect",L[L.SupersededByNewNavigation=1]="SupersededByNewNavigation",L[L.NoDataFromResolver=2]="NoDataFromResolver",L[L.GuardRejected=3]="GuardRejected",L}(pt||{}),$t=function(L){return L[L.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",L[L.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",L}($t||{});class Mt extends ve{reason;code;type=Et.NavigationCancel;constructor(z,P,X,he){super(z,P),this.reason=X,this.code=he}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class un extends ve{reason;code;type=Et.NavigationSkipped;constructor(z,P,X,he){super(z,P),this.reason=X,this.code=he}}class Cn extends ve{error;target;type=Et.NavigationError;constructor(z,P,X,he){super(z,P),this.error=X,this.target=he}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Sn extends ve{urlAfterRedirects;state;type=Et.RoutesRecognized;constructor(z,P,X,he){super(z,P),this.urlAfterRedirects=X,this.state=he}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kn extends ve{urlAfterRedirects;state;type=Et.GuardsCheckStart;constructor(z,P,X,he){super(z,P),this.urlAfterRedirects=X,this.state=he}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Un extends ve{urlAfterRedirects;state;shouldActivate;type=Et.GuardsCheckEnd;constructor(z,P,X,he,We){super(z,P),this.urlAfterRedirects=X,this.state=he,this.shouldActivate=We}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Jn extends ve{urlAfterRedirects;state;type=Et.ResolveStart;constructor(z,P,X,he){super(z,P),this.urlAfterRedirects=X,this.state=he}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sr extends ve{urlAfterRedirects;state;type=Et.ResolveEnd;constructor(z,P,X,he){super(z,P),this.urlAfterRedirects=X,this.state=he}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kr{route;type=Et.RouteConfigLoadStart;constructor(z){this.route=z}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class mr{route;type=Et.RouteConfigLoadEnd;constructor(z){this.route=z}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bi{snapshot;type=Et.ChildActivationStart;constructor(z){this.snapshot=z}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class si{snapshot;type=Et.ChildActivationEnd;constructor(z){this.snapshot=z}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gr{snapshot;type=Et.ActivationStart;constructor(z){this.snapshot=z}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ai{snapshot;type=Et.ActivationEnd;constructor(z){this.snapshot=z}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vo{routerEvent;position;anchor;type=Et.Scroll;constructor(z,P,X){this.routerEvent=z,this.position=P,this.anchor=X}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class $r{}class zi{url;navigationBehaviorOptions;constructor(z,P){this.url=z,this.navigationBehaviorOptions=P}}function Ki(L){return L.outlet||Ke}function Ni(L){if(!L)return null;if(L.routeConfig?._injector)return L.routeConfig._injector;for(let z=L.parent;z;z=z.parent){const P=z.routeConfig;if(P?._loadedInjector)return P._loadedInjector;if(P?._injector)return P._injector}return null}class Fs{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ni(this.route?.snapshot)??this.rootInjector}constructor(z){this.rootInjector=z,this.children=new ns(this.rootInjector)}}let ns=(()=>{class L{rootInjector;contexts=new Map;constructor(P){this.rootInjector=P}onChildOutletCreated(P,X){const he=this.getOrCreateContext(P);he.outlet=X,this.contexts.set(P,he)}onChildOutletDestroyed(P){const X=this.getContext(P);X&&(X.outlet=null,X.attachRef=null)}onOutletDeactivated(){const P=this.contexts;return this.contexts=new Map,P}onOutletReAttached(P){this.contexts=P}getOrCreateContext(P){let X=this.getContext(P);return X||(X=new Fs(this.rootInjector),this.contexts.set(P,X)),X}getContext(P){return this.contexts.get(P)||null}static \u0275fac=function(X){return new(X||L)(i.KVO(i.uvJ))};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();class qr{_root;constructor(z){this._root=z}get root(){return this._root.value}parent(z){const P=this.pathFromRoot(z);return P.length>1?P[P.length-2]:null}children(z){const P=rs(z,this._root);return P?P.children.map(X=>X.value):[]}firstChild(z){const P=rs(z,this._root);return P&&P.children.length>0?P.children[0].value:null}siblings(z){const P=is(z,this._root);return P.length<2?[]:P[P.length-2].children.map(he=>he.value).filter(he=>he!==z)}pathFromRoot(z){return is(z,this._root).map(P=>P.value)}}function rs(L,z){if(L===z.value)return z;for(const P of z.children){const X=rs(L,P);if(X)return X}return null}function is(L,z){if(L===z.value)return[z];for(const P of z.children){const X=is(L,P);if(X.length)return X.unshift(z),X}return[]}class to{value;children;constructor(z,P){this.value=z,this.children=P}toString(){return`TreeNode(${this.value})`}}function Wi(L){const z={};return L&&L.children.forEach(P=>z[P.value.outlet]=P),z}class Es extends qr{snapshot;constructor(z,P){super(z),this.snapshot=P,Bs(this,z)}toString(){return this.snapshot.toString()}}function Io(L){const z=function ga(L){const We=new os([],{},{},"",{},Ke,L,null,{});return new ks("",new to(We,[]))}(L),P=new w.t([new k("",{})]),X=new w.t({}),he=new w.t({}),We=new w.t({}),Ct=new w.t(""),vn=new tr(P,X,We,Ct,he,Ke,L,z.root);return vn.snapshot=z.root,new Es(new to(vn,[]),z)}class tr{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(z,P,X,he,We,Ct,vn,nn){this.urlSubject=z,this.paramsSubject=P,this.queryParamsSubject=X,this.fragmentSubject=he,this.dataSubject=We,this.outlet=Ct,this.component=vn,this._futureSnapshot=nn,this.title=this.dataSubject?.pipe((0,pe.T)(pr=>pr[He]))??(0,y.of)(void 0),this.url=z,this.params=P,this.queryParams=X,this.fragment=he,this.data=We}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,pe.T)(z=>se(z))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,pe.T)(z=>se(z))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Eo(L,z,P="emptyOnly"){let X;const{routeConfig:he}=L;return X=null===z||"always"!==P&&""!==he?.path&&(z.component||z.routeConfig?.loadComponent)?{params:{...L.params},data:{...L.data},resolve:{...L.data,...L._resolvedData??{}}}:{params:{...z.params,...L.params},data:{...z.data,...L.data},resolve:{...L.data,...z.data,...he?.data,...L._resolvedData}},he&&sa(he)&&(X.resolve[He]=he.title),X}class os{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[He]}constructor(z,P,X,he,We,Ct,vn,nn,pr){this.url=z,this.params=P,this.queryParams=X,this.fragment=he,this.data=We,this.outlet=Ct,this.component=vn,this.routeConfig=nn,this._resolve=pr}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??=se(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=se(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(X=>X.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ks extends qr{url;constructor(z,P){super(P),this.url=z,Bs(this,P)}toString(){return va(this._root)}}function Bs(L,z){z.value._routerState=L,z.children.forEach(P=>Bs(L,P))}function va(L){const z=L.children.length>0?` { ${L.children.map(va).join(", ")} } `:"";return`${L.value}${z}`}function Yo(L){if(L.snapshot){const z=L.snapshot,P=L._futureSnapshot;L.snapshot=P,Jt(z.queryParams,P.queryParams)||L.queryParamsSubject.next(P.queryParams),z.fragment!==P.fragment&&L.fragmentSubject.next(P.fragment),Jt(z.params,P.params)||L.paramsSubject.next(P.params),function Rt(L,z){if(L.length!==z.length)return!1;for(let P=0;PJt(P.parameters,z[X].parameters))}(L.url,z.url);return P&&!(!L.parent!=!z.parent)&&(!L.parent||Ti(L.parent,z.parent))}function sa(L){return"string"==typeof L.title||null===L.title}const yl=new i.nKC("");let Qo=(()=>{class L{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Ke;activateEvents=new i.bkB;deactivateEvents=new i.bkB;attachEvents=new i.bkB;detachEvents=new i.bkB;routerOutletData=(0,i.hFB)(void 0);parentContexts=(0,i.WQX)(ns);location=(0,i.WQX)(i.c1b);changeDetector=(0,i.WQX)(i.gRc);inputBinder=(0,i.WQX)(ao,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(P){if(P.name){const{firstChange:X,previousValue:he}=P.name;if(X)return;this.isTrackedInParentContexts(he)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(he)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(P){return this.parentContexts.getContext(P)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const P=this.parentContexts.getContext(this.name);P?.route&&(P.attachRef?this.attach(P.attachRef,P.route):this.activateWith(P.route,P.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.wOt(4012,!1);this.location.detach();const P=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(P.instance),P}attach(P,X){this.activated=P,this._activatedRoute=X,this.location.insert(P.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(P.instance)}deactivate(){if(this.activated){const P=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(P)}}activateWith(P,X){if(this.isActivated)throw new i.wOt(4013,!1);this._activatedRoute=P;const he=this.location,Ct=P.snapshot.component,vn=this.parentContexts.getOrCreateContext(this.name).children,nn=new aa(P,vn,he.injector,this.routerOutletData);this.activated=he.createComponent(Ct,{index:he.length,injector:nn,environmentInjector:X}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(X){return new(X||L)};static \u0275dir=i.FsC({type:L,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[i.OA$]})}return L})();class aa{route;childContexts;parent;outletData;__ngOutletInjector(z){return new aa(this.route,this.childContexts,z,this.outletData)}constructor(z,P,X,he){this.route=z,this.childContexts=P,this.parent=X,this.outletData=he}get(z,P){return z===tr?this.route:z===ns?this.childContexts:z===yl?this.outletData:this.parent.get(z,P)}}const ao=new i.nKC("");let ss=(()=>{class L{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(P){this.unsubscribeFromRouteData(P),this.subscribeToRouteData(P)}unsubscribeFromRouteData(P){this.outletDataSubscriptions.get(P)?.unsubscribe(),this.outletDataSubscriptions.delete(P)}subscribeToRouteData(P){const{activatedRoute:X}=P,he=(0,C.z)([X.queryParams,X.params,X.data]).pipe((0,Te.n)(([We,Ct,vn],nn)=>(vn={...We,...Ct,...vn},0===nn?(0,y.of)(vn):Promise.resolve(vn)))).subscribe(We=>{if(!P.isActivated||!P.activatedComponentRef||P.activatedRoute!==X||null===X.component)return void this.unsubscribeFromRouteData(P);const Ct=(0,i.HJs)(X.component);if(Ct)for(const{templateName:vn}of Ct.inputs)P.activatedComponentRef.setInput(vn,We[vn]);else this.unsubscribeFromRouteData(P)});this.outletDataSubscriptions.set(P,he)}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac})}return L})();function Zo(L,z,P){if(P&&L.shouldReuseRoute(z.value,P.value.snapshot)){const X=P.value;X._futureSnapshot=z.value;const he=function _i(L,z,P){return z.children.map(X=>{for(const he of P.children)if(L.shouldReuseRoute(X.value,he.value.snapshot))return Zo(L,X,he);return Zo(L,X)})}(L,z,P);return new to(X,he)}{if(L.shouldAttach(z.value)){const We=L.retrieve(z.value);if(null!==We){const Ct=We.route;return Ct.value._futureSnapshot=z.value,Ct.children=z.children.map(vn=>Zo(L,vn)),Ct}}const X=function Fa(L){return new tr(new w.t(L.url),new w.t(L.params),new w.t(L.queryParams),new w.t(L.fragment),new w.t(L.data),L.outlet,L.component,L)}(z.value),he=z.children.map(We=>Zo(L,We));return new to(X,he)}}class ko{redirectTo;navigationBehaviorOptions;constructor(z,P){this.redirectTo=z,this.navigationBehaviorOptions=P}}const Qs="ngNavigationCancelingError";function bl(L,z){const{redirectTo:P,navigationBehaviorOptions:X}=St(z)?{redirectTo:z,navigationBehaviorOptions:void 0}:z,he=Xa(!1,pt.Redirect);return he.url=P,he.navigationBehaviorOptions=X,he}function Xa(L,z){const P=new Error(`NavigationCancelingError: ${L||""}`);return P[Qs]=!0,P.cancellationCode=z,P}function Y(L){return!!L&&L[Qs]}class Xe{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(z,P,X,he,We){this.routeReuseStrategy=z,this.futureState=P,this.currState=X,this.forwardEvent=he,this.inputBindingEnabled=We}activate(z){const P=this.futureState._root,X=this.currState?this.currState._root:null;this.deactivateChildRoutes(P,X,z),Yo(this.futureState.root),this.activateChildRoutes(P,X,z)}deactivateChildRoutes(z,P,X){const he=Wi(P);z.children.forEach(We=>{const Ct=We.value.outlet;this.deactivateRoutes(We,he[Ct],X),delete he[Ct]}),Object.values(he).forEach(We=>{this.deactivateRouteAndItsChildren(We,X)})}deactivateRoutes(z,P,X){const he=z.value,We=P?P.value:null;if(he===We)if(he.component){const Ct=X.getContext(he.outlet);Ct&&this.deactivateChildRoutes(z,P,Ct.children)}else this.deactivateChildRoutes(z,P,X);else We&&this.deactivateRouteAndItsChildren(P,X)}deactivateRouteAndItsChildren(z,P){z.value.component&&this.routeReuseStrategy.shouldDetach(z.value.snapshot)?this.detachAndStoreRouteSubtree(z,P):this.deactivateRouteAndOutlet(z,P)}detachAndStoreRouteSubtree(z,P){const X=P.getContext(z.value.outlet),he=X&&z.value.component?X.children:P,We=Wi(z);for(const Ct of Object.values(We))this.deactivateRouteAndItsChildren(Ct,he);if(X&&X.outlet){const Ct=X.outlet.detach(),vn=X.children.onOutletDeactivated();this.routeReuseStrategy.store(z.value.snapshot,{componentRef:Ct,route:z,contexts:vn})}}deactivateRouteAndOutlet(z,P){const X=P.getContext(z.value.outlet),he=X&&z.value.component?X.children:P,We=Wi(z);for(const Ct of Object.values(We))this.deactivateRouteAndItsChildren(Ct,he);X&&(X.outlet&&(X.outlet.deactivate(),X.children.onOutletDeactivated()),X.attachRef=null,X.route=null)}activateChildRoutes(z,P,X){const he=Wi(P);z.children.forEach(We=>{this.activateRoutes(We,he[We.value.outlet],X),this.forwardEvent(new ai(We.value.snapshot))}),z.children.length&&this.forwardEvent(new si(z.value.snapshot))}activateRoutes(z,P,X){const he=z.value,We=P?P.value:null;if(Yo(he),he===We)if(he.component){const Ct=X.getOrCreateContext(he.outlet);this.activateChildRoutes(z,P,Ct.children)}else this.activateChildRoutes(z,P,X);else if(he.component){const Ct=X.getOrCreateContext(he.outlet);if(this.routeReuseStrategy.shouldAttach(he.snapshot)){const vn=this.routeReuseStrategy.retrieve(he.snapshot);this.routeReuseStrategy.store(he.snapshot,null),Ct.children.onOutletReAttached(vn.contexts),Ct.attachRef=vn.componentRef,Ct.route=vn.route.value,Ct.outlet&&Ct.outlet.attach(vn.componentRef,vn.route.value),Yo(vn.route.value),this.activateChildRoutes(z,null,Ct.children)}else Ct.attachRef=null,Ct.route=he,Ct.outlet&&Ct.outlet.activateWith(he,Ct.injector),this.activateChildRoutes(z,null,Ct.children)}else this.activateChildRoutes(z,null,X)}}class wt{path;route;constructor(z){this.path=z,this.route=this.path[this.path.length-1]}}class Ln{component;route;constructor(z,P){this.component=z,this.route=P}}function hn(L,z,P){const X=L._root;return zr(X,z?z._root:null,P,[X.value])}function hr(L,z){const P=Symbol(),X=z.get(L,P);return X===P?"function"!=typeof L||(0,i.LfX)(L)?z.get(L):L:X}function zr(L,z,P,X,he={canDeactivateChecks:[],canActivateChecks:[]}){const We=Wi(z);return L.children.forEach(Ct=>{(function Gi(L,z,P,X,he={canDeactivateChecks:[],canActivateChecks:[]}){const We=L.value,Ct=z?z.value:null,vn=P?P.getContext(L.value.outlet):null;if(Ct&&We.routeConfig===Ct.routeConfig){const nn=function Or(L,z,P){if("function"==typeof P)return P(L,z);switch(P){case"pathParamsChange":return!De(L.url,z.url);case"pathParamsOrQueryParamsChange":return!De(L.url,z.url)||!Jt(L.queryParams,z.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ti(L,z)||!Jt(L.queryParams,z.queryParams);default:return!Ti(L,z)}}(Ct,We,We.routeConfig.runGuardsAndResolvers);nn?he.canActivateChecks.push(new wt(X)):(We.data=Ct.data,We._resolvedData=Ct._resolvedData),zr(L,z,We.component?vn?vn.children:null:P,X,he),nn&&vn&&vn.outlet&&vn.outlet.isActivated&&he.canDeactivateChecks.push(new Ln(vn.outlet.component,Ct))}else Ct&&Dr(z,vn,he),he.canActivateChecks.push(new wt(X)),zr(L,null,We.component?vn?vn.children:null:P,X,he)})(Ct,We[Ct.value.outlet],P,X.concat([Ct.value]),he),delete We[Ct.value.outlet]}),Object.entries(We).forEach(([Ct,vn])=>Dr(vn,P.getContext(Ct),he)),he}function Dr(L,z,P){const X=Wi(L),he=L.value;Object.entries(X).forEach(([We,Ct])=>{Dr(Ct,he.component?z?z.children.getContext(We):null:z,P)}),P.canDeactivateChecks.push(new Ln(he.component&&z&&z.outlet&&z.outlet.isActivated?z.outlet.component:null,he))}function Ei(L){return"function"==typeof L}function Qa(L){return L instanceof T.G||"EmptyError"===L?.name}const ya=Symbol("INITIAL_VALUE");function ue(){return(0,Te.n)(L=>(0,C.z)(L.map(z=>z.pipe((0,xe.s)(1),(0,Re.Z)(ya)))).pipe((0,pe.T)(z=>{for(const P of z)if(!0!==P){if(P===ya)return ya;if(!1===P||ce(P))return P}return!0}),(0,Me.p)(z=>z!==ya),(0,xe.s)(1)))}function ce(L){return St(L)||L instanceof ko}function nc(L){return(0,I.F)((0,Xt.M)(z=>{if("boolean"!=typeof z)throw bl(0,z)}),(0,pe.T)(z=>!0===z))}class us{segmentGroup;constructor(z){this.segmentGroup=z||null}}class Us extends Error{urlTree;constructor(z){super(),this.urlTree=z}}function Ua(L){return(0,N.$)(new us(L))}class xl{urlSerializer;urlTree;constructor(z,P){this.urlSerializer=z,this.urlTree=P}lineralizeSegments(z,P){let X=[],he=P.root;for(;;){if(X=X.concat(he.segments),0===he.numberOfChildren)return(0,y.of)(X);if(he.numberOfChildren>1||!he.children[Ke])return(0,N.$)(new i.wOt(4e3,!1));he=he.children[Ke]}}applyRedirectCommands(z,P,X,he,We){if("string"!=typeof P){const vn=P,{queryParams:nn,fragment:pr,routeConfig:ri,url:hi,outlet:io,params:as,data:zo,title:Cs}=he,Wr=(0,i.N4e)(We,()=>vn({params:as,data:zo,queryParams:nn,fragment:pr,routeConfig:ri,url:hi,outlet:io,title:Cs}));if(Wr instanceof ke)throw new Us(Wr);P=Wr}const Ct=this.applyRedirectCreateUrlTree(P,this.urlSerializer.parse(P),z,X);if("/"===P[0])throw new Us(Ct);return Ct}applyRedirectCreateUrlTree(z,P,X,he){const We=this.createSegmentGroup(z,P.root,X,he);return new ke(We,this.createQueryParams(P.queryParams,this.urlTree.queryParams),P.fragment)}createQueryParams(z,P){const X={};return Object.entries(z).forEach(([he,We])=>{if("string"==typeof We&&":"===We[0]){const vn=We.substring(1);X[he]=P[vn]}else X[he]=We}),X}createSegmentGroup(z,P,X,he){const We=this.createSegments(z,P.segments,X,he);let Ct={};return Object.entries(P.children).forEach(([vn,nn])=>{Ct[vn]=this.createSegmentGroup(z,nn,X,he)}),new B(We,Ct)}createSegments(z,P,X,he){return P.map(We=>":"===We.path[0]?this.findPosParam(z,We,he):this.findOrReturn(We,X))}findPosParam(z,P,X){const he=X[P.path.substring(1)];if(!he)throw new i.wOt(4001,!1);return he}findOrReturn(z,P){let X=0;for(const he of P){if(he.path===z.path)return P.splice(X),he;X++}return z}}const la={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function $a(L,z,P,X,he){const We=vc(L,z,P);return We.matched?(X=function ws(L,z){return L.providers&&!L._injector&&(L._injector=(0,i.Ol2)(L.providers,z,`Route: ${L.path}`)),L._injector??z}(z,X),function wl(L,z,P,X){const he=z.canMatch;if(!he||0===he.length)return(0,y.of)(!0);const We=he.map(Ct=>{const vn=hr(Ct,L);return Qt(function Hl(L){return L&&Ei(L.canMatch)}(vn)?vn.canMatch(z,P):(0,i.N4e)(L,()=>vn(z,P)))});return(0,y.of)(We).pipe(ue(),nc())}(X,z,P).pipe((0,pe.T)(Ct=>!0===Ct?We:{...la}))):(0,y.of)(We)}function vc(L,z,P){if("**"===z.path)return function Ou(L){return{matched:!0,parameters:L.length>0?Nt(L).parameters:{},consumedSegments:L,remainingSegments:[],positionalParamSegments:{}}}(P);if(""===z.path)return"full"===z.pathMatch&&(L.hasChildren()||P.length>0)?{...la}:{matched:!0,consumedSegments:[],remainingSegments:P,parameters:{},positionalParamSegments:{}};const he=(z.matcher||Ze)(P,L,z);if(!he)return{...la};const We={};Object.entries(he.posParams??{}).forEach(([vn,nn])=>{We[vn]=nn.path});const Ct=he.consumed.length>0?{...We,...he.consumed[he.consumed.length-1].parameters}:We;return{matched:!0,consumedSegments:he.consumed,remainingSegments:P.slice(he.consumed.length),parameters:Ct,positionalParamSegments:he.posParams??{}}}function rc(L,z,P,X){return P.length>0&&function ba(L,z,P){return P.some(X=>Cl(L,z,X)&&Ki(X)!==Ke)}(L,P,X)?{segmentGroup:new B(z,Wl(X,new B(P,L.children))),slicedSegments:[]}:0===P.length&&function qa(L,z,P){return P.some(X=>Cl(L,z,X))}(L,P,X)?{segmentGroup:new B(L.segments,ja(L,P,X,L.children)),slicedSegments:P}:{segmentGroup:new B(L.segments,L.children),slicedSegments:P}}function ja(L,z,P,X){const he={};for(const We of P)if(Cl(L,z,We)&&!X[Ki(We)]){const Ct=new B([],{});he[Ki(We)]=Ct}return{...X,...he}}function Wl(L,z){const P={};P[Ke]=z;for(const X of L)if(""===X.path&&Ki(X)!==Ke){const he=new B([],{});P[Ki(X)]=he}return P}function Cl(L,z,P){return(!(L.hasChildren()||z.length>0)||"full"!==P.pathMatch)&&""===P.path}class co{}class Jo{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(z,P,X,he,We,Ct,vn){this.injector=z,this.configLoader=P,this.rootComponentType=X,this.config=he,this.urlTree=We,this.paramsInheritanceStrategy=Ct,this.urlSerializer=vn,this.applyRedirects=new xl(this.urlSerializer,this.urlTree)}noMatchError(z){return new i.wOt(4002,`'${z.segmentGroup}'`)}recognize(){const z=rc(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(z).pipe((0,pe.T)(({children:P,rootSnapshot:X})=>{const he=new to(X,P),We=new ks("",he),Ct=function qe(L,z,P=null,X=null){return Wt(Dt(L),z,P,X)}(X,[],this.urlTree.queryParams,this.urlTree.fragment);return Ct.queryParams=this.urlTree.queryParams,We.url=this.urlSerializer.serialize(Ct),{state:We,tree:Ct}}))}match(z){const P=new os([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),Ke,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,z,Ke,P).pipe((0,pe.T)(X=>({children:X,rootSnapshot:P})),(0,ln.W)(X=>{if(X instanceof Us)return this.urlTree=X.urlTree,this.match(X.urlTree.root);throw X instanceof us?this.noMatchError(X):X}))}processSegmentGroup(z,P,X,he,We){return 0===X.segments.length&&X.hasChildren()?this.processChildren(z,P,X,We):this.processSegment(z,P,X,X.segments,he,!0,We).pipe((0,pe.T)(Ct=>Ct instanceof to?[Ct]:[]))}processChildren(z,P,X,he){const We=[];for(const Ct of Object.keys(X.children))"primary"===Ct?We.unshift(Ct):We.push(Ct);return(0,c.H)(We).pipe((0,at.H)(Ct=>{const vn=X.children[Ct],nn=function Ys(L,z){const P=L.filter(X=>Ki(X)===z);return P.push(...L.filter(X=>Ki(X)!==z)),P}(P,Ct);return this.processSegmentGroup(z,nn,vn,Ct,he)}),function $n(L,z){return(0,le.N)((0,yn.S)(L,z,arguments.length>=2,!0))}((Ct,vn)=>(Ct.push(...vn),Ct)),Ie(null),function Qe(L,z){const P=arguments.length>=2;return X=>X.pipe(L?(0,Me.p)((he,We)=>L(he,We,X)):ht.D,bn(1),P?Ie(z):$e(()=>new T.G))}(),(0,Ce.Z)(Ct=>{if(null===Ct)return Ua(X);const vn=Dl(Ct);return function _c(L){L.sort((z,P)=>z.value.outlet===Ke?-1:P.value.outlet===Ke?1:z.value.outlet.localeCompare(P.value.outlet))}(vn),(0,y.of)(vn)}))}processSegment(z,P,X,he,We,Ct,vn){return(0,c.H)(P).pipe((0,at.H)(nn=>this.processSegmentAgainstRoute(nn._injector??z,P,nn,X,he,We,Ct,vn).pipe((0,ln.W)(pr=>{if(pr instanceof us)return(0,y.of)(null);throw pr}))),vt(nn=>!!nn),(0,ln.W)(nn=>{if(Qa(nn))return function Ro(L,z,P){return 0===z.length&&!L.children[P]}(X,he,We)?(0,y.of)(new co):Ua(X);throw nn}))}processSegmentAgainstRoute(z,P,X,he,We,Ct,vn,nn){return Ki(X)===Ct||Ct!==Ke&&Cl(he,We,X)?void 0===X.redirectTo?this.matchSegmentAgainstRoute(z,he,X,We,Ct,nn):this.allowRedirects&&vn?this.expandSegmentAgainstRouteUsingRedirect(z,he,P,X,We,Ct,nn):Ua(he):Ua(he)}expandSegmentAgainstRouteUsingRedirect(z,P,X,he,We,Ct,vn){const{matched:nn,parameters:pr,consumedSegments:ri,positionalParamSegments:hi,remainingSegments:io}=vc(P,he,We);if(!nn)return Ua(P);"string"==typeof he.redirectTo&&"/"===he.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const as=new os(We,pr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Sl(he),Ki(he),he.component??he._loadedComponent??null,he,zl(he)),zo=Eo(as,vn,this.paramsInheritanceStrategy);as.params=Object.freeze(zo.params),as.data=Object.freeze(zo.data);const Cs=this.applyRedirects.applyRedirectCommands(ri,he.redirectTo,hi,as,z);return this.applyRedirects.lineralizeSegments(he,Cs).pipe((0,Ce.Z)(Wr=>this.processSegment(z,X,P,Wr.concat(io),Ct,!1,vn)))}matchSegmentAgainstRoute(z,P,X,he,We,Ct){const vn=$a(P,X,he,z);return"**"===X.path&&(P.children={}),vn.pipe((0,Te.n)(nn=>nn.matched?this.getChildConfig(z=X._injector??z,X,he).pipe((0,Te.n)(({routes:pr})=>{const ri=X._loadedInjector??z,{parameters:hi,consumedSegments:io,remainingSegments:as}=nn,zo=new os(io,hi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Sl(X),Ki(X),X.component??X._loadedComponent??null,X,zl(X)),Cs=Eo(zo,Ct,this.paramsInheritanceStrategy);zo.params=Object.freeze(Cs.params),zo.data=Object.freeze(Cs.data);const{segmentGroup:Wr,slicedSegments:hl}=rc(P,io,as,pr);if(0===hl.length&&Wr.hasChildren())return this.processChildren(ri,pr,Wr,zo).pipe((0,pe.T)(sc=>new to(zo,sc)));if(0===pr.length&&0===hl.length)return(0,y.of)(new to(zo,[]));const Ec=Ki(X)===We;return this.processSegment(ri,pr,Wr,hl,Ec?Ke:We,!0,zo).pipe((0,pe.T)(sc=>new to(zo,sc instanceof to?[sc]:[])))})):Ua(P)))}getChildConfig(z,P,X){return P.children?(0,y.of)({routes:P.children,injector:z}):P.loadChildren?void 0!==P._loadedRoutes?(0,y.of)({routes:P._loadedRoutes,injector:P._loadedInjector}):function ku(L,z,P,X){const he=z.canLoad;if(void 0===he||0===he.length)return(0,y.of)(!0);const We=he.map(Ct=>{const vn=hr(Ct,L);return Qt(function ho(L){return L&&Ei(L.canLoad)}(vn)?vn.canLoad(z,P):(0,i.N4e)(L,()=>vn(z,P)))});return(0,y.of)(We).pipe(ue(),nc())}(z,P,X).pipe((0,Ce.Z)(he=>he?this.configLoader.loadChildren(z,P).pipe((0,Xt.M)(We=>{P._loadedRoutes=We.routes,P._loadedInjector=We.injector})):function El(){return(0,N.$)(Xa(!1,pt.GuardRejected))}())):(0,y.of)({routes:[],injector:z})}}function al(L){const z=L.value.routeConfig;return z&&""===z.path}function Dl(L){const z=[],P=new Set;for(const X of L){if(!al(X)){z.push(X);continue}const he=z.find(We=>X.value.routeConfig===We.value.routeConfig);void 0!==he?(he.children.push(...X.children),P.add(he)):z.push(X)}for(const X of P){const he=Dl(X.children);z.push(new to(X.value,he))}return z.filter(X=>!P.has(X))}function Sl(L){return L.data||{}}function zl(L){return L.resolve||{}}function Ui(L){const z=L.children.map(P=>Ui(P)).flat();return[L,...z]}function no(L){return(0,Te.n)(z=>{const P=L(z);return P?(0,c.H)(P).pipe((0,pe.T)(()=>z)):(0,y.of)(z)})}let $o=(()=>{class L{buildTitle(P){let X,he=P.root;for(;void 0!==he;)X=this.getResolvedTitleForRoute(he)??X,he=he.children.find(We=>We.outlet===Ke);return X}getResolvedTitleForRoute(P){return P.data[He]}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>(0,i.WQX)(es),providedIn:"root"})}return L})(),es=(()=>{class L extends $o{title;constructor(P){super(),this.title=P}updateTitle(P){const X=this.buildTitle(P);void 0!==X&&this.title.setTitle(X)}static \u0275fac=function(X){return new(X||L)(i.KVO(dt.hE))};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();const Po=new i.nKC("",{providedIn:"root",factory:()=>({})});let Fr=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275cmp=i.VBU({type:L,selectors:[["ng-component"]],decls:1,vars:0,template:function(X,he){1&X&&i.nrm(0,"router-outlet")},dependencies:[Qo],encapsulation:2})}return L})();function fo(L){const z=L.children&&L.children.map(fo),P=z?{...L,children:z}:{...L};return!P.component&&!P.loadComponent&&(z||P.loadChildren)&&P.outlet&&P.outlet!==Ke&&(P.component=Fr),P}const Os=new i.nKC("");let Rr=(()=>{class L{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=(0,i.WQX)(i.Ql9);loadComponent(P){if(this.componentLoaders.get(P))return this.componentLoaders.get(P);if(P._loadedComponent)return(0,y.of)(P._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(P);const X=Qt(P.loadComponent()).pipe((0,pe.T)(Va),(0,Xt.M)(We=>{this.onLoadEndListener&&this.onLoadEndListener(P),P._loadedComponent=We}),(0,Ge.j)(()=>{this.componentLoaders.delete(P)})),he=new Z.G(X,()=>new ne.B).pipe((0,Fe.B)());return this.componentLoaders.set(P,he),he}loadChildren(P,X){if(this.childrenLoaders.get(X))return this.childrenLoaders.get(X);if(X._loadedRoutes)return(0,y.of)({routes:X._loadedRoutes,injector:X._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(X);const We=function po(L,z,P,X){return Qt(L.loadChildren()).pipe((0,pe.T)(Va),(0,Ce.Z)(he=>he instanceof i.Co$||Array.isArray(he)?(0,y.of)(he):(0,c.H)(z.compileModuleAsync(he))),(0,pe.T)(he=>{X&&X(L);let We,Ct,vn=!1;return Array.isArray(he)?(Ct=he,!0):(We=he.create(P).injector,Ct=We.get(Os,[],{optional:!0,self:!0}).flat()),{routes:Ct.map(fo),injector:We}}))}(X,this.compiler,P,this.onLoadEndListener).pipe((0,Ge.j)(()=>{this.childrenLoaders.delete(X)})),Ct=new Z.G(We,()=>new ne.B).pipe((0,Fe.B)());return this.childrenLoaders.set(X,Ct),Ct}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();function Va(L){return function ic(L){return L&&"object"==typeof L&&"default"in L}(L)?L.default:L}let ro=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>(0,i.WQX)(Ha),providedIn:"root"})}return L})(),Ha=(()=>{class L{shouldProcessUrl(P){return!0}extract(P){return P}merge(P,X){return P}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();const Di=new i.nKC(""),$s=new i.nKC("");function ca(L,z,P){const X=L.get($s),he=L.get(me.qQ);return L.get(i.SKi).runOutsideAngular(()=>{if(!he.startViewTransition||X.skipNextTransition)return X.skipNextTransition=!1,new Promise(pr=>setTimeout(pr));let We;const Ct=new Promise(pr=>{We=pr}),vn=he.startViewTransition(()=>(We(),function No(L){return new Promise(z=>{(0,i.mal)({read:()=>setTimeout(z)},{injector:L})})}(L))),{onViewTransitionCreated:nn}=X;return nn&&(0,i.N4e)(L,()=>nn({transition:vn,from:z,to:P})),Ct})}const $=new i.nKC("");let de=(()=>{class L{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new ne.B;transitionAbortSubject=new ne.B;configLoader=(0,i.WQX)(Rr);environmentInjector=(0,i.WQX)(i.uvJ);urlSerializer=(0,i.WQX)(ot);rootContexts=(0,i.WQX)(ns);location=(0,i.WQX)(me.aZ);inputBindingEnabled=null!==(0,i.WQX)(ao,{optional:!0});titleStrategy=(0,i.WQX)($o);options=(0,i.WQX)(Po,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=(0,i.WQX)(ro);createViewTransition=(0,i.WQX)(Di,{optional:!0});navigationErrorHandler=(0,i.WQX)($,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>(0,y.of)(void 0);rootComponentType=null;constructor(){this.configLoader.onLoadEndListener=he=>this.events.next(new mr(he)),this.configLoader.onLoadStartListener=he=>this.events.next(new kr(he))}complete(){this.transitions?.complete()}handleNavigationRequest(P){const X=++this.navigationId;this.transitions?.next({...this.transitions.value,...P,id:X})}setupNavigations(P,X,he){return this.transitions=new w.t({id:0,currentUrlTree:X,currentRawUrl:X,extractedUrl:this.urlHandlingStrategy.extract(X),urlAfterRedirects:this.urlHandlingStrategy.extract(X),rawUrl:X,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:ct,restoredState:null,currentSnapshot:he.snapshot,targetSnapshot:null,currentRouterState:he,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Me.p)(We=>0!==We.id),(0,pe.T)(We=>({...We,extractedUrl:this.urlHandlingStrategy.extract(We.rawUrl)})),(0,Te.n)(We=>{let Ct=!1,vn=!1;return(0,y.of)(We).pipe((0,Te.n)(nn=>{if(this.navigationId>We.id)return this.cancelNavigationTransition(We,"",pt.SupersededByNewNavigation),K.w;this.currentTransition=We,this.currentNavigation={id:nn.id,initialUrl:nn.rawUrl,extractedUrl:nn.extractedUrl,targetBrowserUrl:"string"==typeof nn.extras.browserUrl?this.urlSerializer.parse(nn.extras.browserUrl):nn.extras.browserUrl,trigger:nn.source,extras:nn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const pr=!P.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!pr&&"reload"!==(nn.extras.onSameUrlNavigation??P.onSameUrlNavigation)){const hi="";return this.events.next(new un(nn.id,this.urlSerializer.serialize(nn.rawUrl),hi,$t.IgnoredSameUrlNavigation)),nn.resolve(!1),K.w}if(this.urlHandlingStrategy.shouldProcessUrl(nn.rawUrl))return(0,y.of)(nn).pipe((0,Te.n)(hi=>{const io=this.transitions?.getValue();return this.events.next(new et(hi.id,this.urlSerializer.serialize(hi.extractedUrl),hi.source,hi.restoredState)),io!==this.transitions?.getValue()?K.w:Promise.resolve(hi)}),function xa(L,z,P,X,he,We){return(0,Ce.Z)(Ct=>function wa(L,z,P,X,he,We,Ct="emptyOnly"){return new Jo(L,z,P,X,he,Ct,We).recognize()}(L,z,P,X,Ct.extractedUrl,he,We).pipe((0,pe.T)(({state:vn,tree:nn})=>({...Ct,targetSnapshot:vn,urlAfterRedirects:nn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,P.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,Xt.M)(hi=>{We.targetSnapshot=hi.targetSnapshot,We.urlAfterRedirects=hi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:hi.urlAfterRedirects};const io=new Sn(hi.id,this.urlSerializer.serialize(hi.extractedUrl),this.urlSerializer.serialize(hi.urlAfterRedirects),hi.targetSnapshot);this.events.next(io)}));if(pr&&this.urlHandlingStrategy.shouldProcessUrl(nn.currentRawUrl)){const{id:hi,extractedUrl:io,source:as,restoredState:zo,extras:Cs}=nn,Wr=new et(hi,this.urlSerializer.serialize(io),as,zo);this.events.next(Wr);const hl=Io(this.rootComponentType).snapshot;return this.currentTransition=We={...nn,targetSnapshot:hl,urlAfterRedirects:io,extras:{...Cs,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=io,(0,y.of)(We)}{const hi="";return this.events.next(new un(nn.id,this.urlSerializer.serialize(nn.extractedUrl),hi,$t.IgnoredByUrlHandlingStrategy)),nn.resolve(!1),K.w}}),(0,Xt.M)(nn=>{const pr=new kn(nn.id,this.urlSerializer.serialize(nn.extractedUrl),this.urlSerializer.serialize(nn.urlAfterRedirects),nn.targetSnapshot);this.events.next(pr)}),(0,pe.T)(nn=>(this.currentTransition=We={...nn,guards:hn(nn.targetSnapshot,nn.currentSnapshot,this.rootContexts)},We)),function Q(L,z){return(0,Ce.Z)(P=>{const{targetSnapshot:X,currentSnapshot:he,guards:{canActivateChecks:We,canDeactivateChecks:Ct}}=P;return 0===Ct.length&&0===We.length?(0,y.of)({...P,guardsResult:!0}):function Le(L,z,P,X){return(0,c.H)(L).pipe((0,Ce.Z)(he=>function Ba(L,z,P,X,he){const We=z&&z.routeConfig?z.routeConfig.canDeactivate:null;if(!We||0===We.length)return(0,y.of)(!0);const Ct=We.map(vn=>{const nn=Ni(z)??he,pr=hr(vn,nn);return Qt(function Oo(L){return L&&Ei(L.canDeactivate)}(pr)?pr.canDeactivate(L,z,P,X):(0,i.N4e)(nn,()=>pr(L,z,P,X))).pipe(vt())});return(0,y.of)(Ct).pipe(ue())}(he.component,he.route,P,z,X)),vt(he=>!0!==he,!0))}(Ct,X,he,L).pipe((0,Ce.Z)(vn=>vn&&function ui(L){return"boolean"==typeof L}(vn)?function Ut(L,z,P,X){return(0,c.H)(z).pipe((0,at.H)(he=>(0,S.x)(function ni(L,z){return null!==L&&z&&z(new bi(L)),(0,y.of)(!0)}(he.route.parent,X),function vr(L,z){return null!==L&&z&&z(new gr(L)),(0,y.of)(!0)}(he.route,X),function qo(L,z,P){const X=z[z.length-1],We=z.slice(0,z.length-1).reverse().map(Ct=>function ur(L){const z=L.routeConfig?L.routeConfig.canActivateChild:null;return z&&0!==z.length?{node:L,guards:z}:null}(Ct)).filter(Ct=>null!==Ct).map(Ct=>(0,A.v)(()=>{const vn=Ct.guards.map(nn=>{const pr=Ni(Ct.node)??P,ri=hr(nn,pr);return Qt(function Ho(L){return L&&Ei(L.canActivateChild)}(ri)?ri.canActivateChild(X,L):(0,i.N4e)(pr,()=>ri(X,L))).pipe(vt())});return(0,y.of)(vn).pipe(ue())}));return(0,y.of)(We).pipe(ue())}(L,he.path,P),function Do(L,z,P){const X=z.routeConfig?z.routeConfig.canActivate:null;if(!X||0===X.length)return(0,y.of)(!0);const he=X.map(We=>(0,A.v)(()=>{const Ct=Ni(z)??P,vn=hr(We,Ct);return Qt(function lo(L){return L&&Ei(L.canActivate)}(vn)?vn.canActivate(z,L):(0,i.N4e)(Ct,()=>vn(z,L))).pipe(vt())}));return(0,y.of)(he).pipe(ue())}(L,he.route,P))),vt(he=>!0!==he,!0))}(X,We,L,z):(0,y.of)(vn)),(0,pe.T)(vn=>({...P,guardsResult:vn})))})}(this.environmentInjector,nn=>this.events.next(nn)),(0,Xt.M)(nn=>{if(We.guardsResult=nn.guardsResult,nn.guardsResult&&"boolean"!=typeof nn.guardsResult)throw bl(0,nn.guardsResult);const pr=new Un(nn.id,this.urlSerializer.serialize(nn.extractedUrl),this.urlSerializer.serialize(nn.urlAfterRedirects),nn.targetSnapshot,!!nn.guardsResult);this.events.next(pr)}),(0,Me.p)(nn=>!!nn.guardsResult||(this.cancelNavigationTransition(nn,"",pt.GuardRejected),!1)),no(nn=>{if(nn.guards.canActivateChecks.length)return(0,y.of)(nn).pipe((0,Xt.M)(pr=>{const ri=new Jn(pr.id,this.urlSerializer.serialize(pr.extractedUrl),this.urlSerializer.serialize(pr.urlAfterRedirects),pr.targetSnapshot);this.events.next(ri)}),(0,Te.n)(pr=>{let ri=!1;return(0,y.of)(pr).pipe(function ds(L,z){return(0,Ce.Z)(P=>{const{targetSnapshot:X,guards:{canActivateChecks:he}}=P;if(!he.length)return(0,y.of)(P);const We=new Set(he.map(nn=>nn.route)),Ct=new Set;for(const nn of We)if(!Ct.has(nn))for(const pr of Ui(nn))Ct.add(pr);let vn=0;return(0,c.H)(Ct).pipe((0,at.H)(nn=>We.has(nn)?function Gn(L,z,P,X){const he=L.routeConfig,We=L._resolve;return void 0!==he?.title&&!sa(he)&&(We[He]=he.title),function Ar(L,z,P,X){const he=fn(L);if(0===he.length)return(0,y.of)({});const We={};return(0,c.H)(he).pipe((0,Ce.Z)(Ct=>function So(L,z,P,X){const he=Ni(z)??X,We=hr(L,he);return Qt(We.resolve?We.resolve(z,P):(0,i.N4e)(he,()=>We(z,P)))}(L[Ct],z,P,X).pipe(vt(),(0,Xt.M)(vn=>{if(vn instanceof ko)throw bl(new Tt,vn);We[Ct]=vn}))),bn(1),(0,bt.u)(We),(0,ln.W)(Ct=>Qa(Ct)?K.w:(0,N.$)(Ct)))}(We,L,z,X).pipe((0,pe.T)(Ct=>(L._resolvedData=Ct,L.data=Eo(L,L.parent,P).resolve,null)))}(nn,X,L,z):(nn.data=Eo(nn,nn.parent,L).resolve,(0,y.of)(void 0))),(0,Xt.M)(()=>vn++),bn(1),(0,Ce.Z)(nn=>vn===Ct.size?(0,y.of)(P):K.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,Xt.M)({next:()=>ri=!0,complete:()=>{ri||this.cancelNavigationTransition(pr,"",pt.NoDataFromResolver)}}))}),(0,Xt.M)(pr=>{const ri=new sr(pr.id,this.urlSerializer.serialize(pr.extractedUrl),this.urlSerializer.serialize(pr.urlAfterRedirects),pr.targetSnapshot);this.events.next(ri)}))}),no(nn=>{const pr=ri=>{const hi=[];ri.routeConfig?.loadComponent&&!ri.routeConfig._loadedComponent&&hi.push(this.configLoader.loadComponent(ri.routeConfig).pipe((0,Xt.M)(io=>{ri.component=io}),(0,pe.T)(()=>{})));for(const io of ri.children)hi.push(...pr(io));return hi};return(0,C.z)(pr(nn.targetSnapshot.root)).pipe(Ie(null),(0,xe.s)(1))}),no(()=>this.afterPreactivation()),(0,Te.n)(()=>{const{currentSnapshot:nn,targetSnapshot:pr}=We,ri=this.createViewTransition?.(this.environmentInjector,nn.root,pr.root);return ri?(0,c.H)(ri).pipe((0,pe.T)(()=>We)):(0,y.of)(We)}),(0,pe.T)(nn=>{const pr=function _o(L,z,P){const X=Zo(L,z._root,P?P._root:void 0);return new Es(X,z)}(P.routeReuseStrategy,nn.targetSnapshot,nn.currentRouterState);return this.currentTransition=We={...nn,targetRouterState:pr},this.currentNavigation.targetRouterState=pr,We}),(0,Xt.M)(()=>{this.events.next(new $r)}),((L,z,P,X)=>(0,pe.T)(he=>(new Xe(z,he.targetRouterState,he.currentRouterState,P,X).activate(L),he)))(this.rootContexts,P.routeReuseStrategy,nn=>this.events.next(nn),this.inputBindingEnabled),(0,xe.s)(1),(0,Xt.M)({next:nn=>{Ct=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Oe(nn.id,this.urlSerializer.serialize(nn.extractedUrl),this.urlSerializer.serialize(nn.urlAfterRedirects))),this.titleStrategy?.updateTitle(nn.targetRouterState.snapshot),nn.resolve(!0)},complete:()=>{Ct=!0}}),(0,Ft.Q)(this.transitionAbortSubject.pipe((0,Xt.M)(nn=>{throw nn}))),(0,Ge.j)(()=>{!Ct&&!vn&&this.cancelNavigationTransition(We,"",pt.SupersededByNewNavigation),this.currentTransition?.id===We.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,ln.W)(nn=>{if(vn=!0,Y(nn))this.events.next(new Mt(We.id,this.urlSerializer.serialize(We.extractedUrl),nn.message,nn.cancellationCode)),function Ya(L){return Y(L)&&St(L.url)}(nn)?this.events.next(new zi(nn.url,nn.navigationBehaviorOptions)):We.resolve(!1);else{const pr=new Cn(We.id,this.urlSerializer.serialize(We.extractedUrl),nn,We.targetSnapshot??void 0);try{const ri=(0,i.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(pr));if(!(ri instanceof ko))throw this.events.next(pr),nn;{const{message:hi,cancellationCode:io}=bl(0,ri);this.events.next(new Mt(We.id,this.urlSerializer.serialize(We.extractedUrl),hi,io)),this.events.next(new zi(ri.redirectTo,ri.navigationBehaviorOptions))}}catch(ri){this.options.resolveNavigationPromiseOnError?We.resolve(!1):We.reject(ri)}}return K.w}))}))}cancelNavigationTransition(P,X,he){const We=new Mt(P.id,this.urlSerializer.serialize(P.extractedUrl),X,he);this.events.next(We),P.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const P=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),X=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return P.toString()!==X?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();function q(L){return L!==ct}let _e=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>(0,i.WQX)(_n),providedIn:"root"})}return L})();class nt{shouldDetach(z){return!1}store(z,P){}shouldAttach(z){return!1}retrieve(z){return null}shouldReuseRoute(z,P){return z.routeConfig===P.routeConfig}}let _n=(()=>{class L extends nt{static \u0275fac=(()=>{let P;return function(he){return(P||(P=i.xGo(L)))(he||L)}})();static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})(),On=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>(0,i.WQX)(Cr),providedIn:"root"})}return L})(),Cr=(()=>{class L extends On{location=(0,i.WQX)(me.aZ);urlSerializer=(0,i.WQX)(ot);options=(0,i.WQX)(Po,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=(0,i.WQX)(ro);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new ke;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=Io(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(P){return this.location.subscribe(X=>{"popstate"===X.type&&P(X.url,X.state)})}handleRouterEvent(P,X){if(P instanceof et)this.stateMemento=this.createStateMemento();else if(P instanceof un)this.rawUrlTree=X.initialUrl;else if(P instanceof Sn){if("eager"===this.urlUpdateStrategy&&!X.extras.skipLocationChange){const he=this.urlHandlingStrategy.merge(X.finalUrl,X.initialUrl);this.setBrowserUrl(X.targetBrowserUrl??he,X)}}else P instanceof $r?(this.currentUrlTree=X.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(X.finalUrl,X.initialUrl),this.routerState=X.targetRouterState,"deferred"===this.urlUpdateStrategy&&!X.extras.skipLocationChange&&this.setBrowserUrl(X.targetBrowserUrl??this.rawUrlTree,X)):P instanceof Mt&&(P.code===pt.GuardRejected||P.code===pt.NoDataFromResolver)?this.restoreHistory(X):P instanceof Cn?this.restoreHistory(X,!0):P instanceof Oe&&(this.lastSuccessfulId=P.id,this.currentPageId=this.browserPageId)}setBrowserUrl(P,X){const he=P instanceof ke?this.urlSerializer.serialize(P):P;if(this.location.isCurrentPathEqualTo(he)||X.extras.replaceUrl){const Ct={...X.extras.state,...this.generateNgRouterState(X.id,this.browserPageId)};this.location.replaceState(he,"",Ct)}else{const We={...X.extras.state,...this.generateNgRouterState(X.id,this.browserPageId+1)};this.location.go(he,"",We)}}restoreHistory(P,X=!1){if("computed"===this.canceledNavigationResolution){const We=this.currentPageId-this.browserPageId;0!==We?this.location.historyGo(We):this.currentUrlTree===P.finalUrl&&0===We&&(this.resetState(P),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(X&&this.resetState(P),this.resetUrlToCurrentUrlTree())}resetState(P){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,P.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(P,X){return"computed"===this.canceledNavigationResolution?{navigationId:P,\u0275routerPageId:X}:{navigationId:P}}static \u0275fac=(()=>{let P;return function(he){return(P||(P=i.xGo(L)))(he||L)}})();static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();var Yr=function(L){return L[L.COMPLETE=0]="COMPLETE",L[L.FAILED=1]="FAILED",L[L.REDIRECTING=2]="REDIRECTING",L}(Yr||{});function Li(L,z){L.events.pipe((0,Me.p)(P=>P instanceof Oe||P instanceof Mt||P instanceof Cn||P instanceof un),(0,pe.T)(P=>P instanceof Oe||P instanceof un?Yr.COMPLETE:P instanceof Mt&&(P.code===pt.Redirect||P.code===pt.SupersededByNewNavigation)?Yr.REDIRECTING:Yr.FAILED),(0,Me.p)(P=>P!==Yr.REDIRECTING),(0,xe.s)(1)).subscribe(()=>{z()})}const Hr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Qr=(()=>{class L{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=(0,i.WQX)(i.H3F);stateManager=(0,i.WQX)(On);options=(0,i.WQX)(Po,{optional:!0})||{};pendingTasks=(0,i.WQX)(i.TgB);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=(0,i.WQX)(de);urlSerializer=(0,i.WQX)(ot);location=(0,i.WQX)(me.aZ);urlHandlingStrategy=(0,i.WQX)(ro);_events=new ne.B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=(0,i.WQX)(_e);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(0,i.WQX)(Os,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!(0,i.WQX)(ao,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:P=>{this.console.warn(P)}}),this.subscribeToNavigationEvents()}eventsSubscription=new be.yU;subscribeToNavigationEvents(){const P=this.navigationTransitions.events.subscribe(X=>{try{const he=this.navigationTransitions.currentTransition,We=this.navigationTransitions.currentNavigation;if(null!==he&&null!==We)if(this.stateManager.handleRouterEvent(X,We),X instanceof Mt&&X.code!==pt.Redirect&&X.code!==pt.SupersededByNewNavigation)this.navigated=!0;else if(X instanceof Oe)this.navigated=!0;else if(X instanceof zi){const Ct=X.navigationBehaviorOptions,vn=this.urlHandlingStrategy.merge(X.url,he.currentRawUrl),nn={browserUrl:he.extras.browserUrl,info:he.extras.info,skipLocationChange:he.extras.skipLocationChange,replaceUrl:he.extras.replaceUrl||"eager"===this.urlUpdateStrategy||q(he.source),...Ct};this.scheduleNavigation(vn,ct,null,nn,{resolve:he.resolve,reject:he.reject,promise:he.promise})}(function Fo(L){return!(L instanceof $r||L instanceof zi)})(X)&&this._events.next(X)}catch(he){this.navigationTransitions.transitionAbortSubject.next(he)}});this.eventsSubscription.add(P)}resetRootComponentType(P){this.routerState.root.component=P,this.navigationTransitions.rootComponentType=P}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ct,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((P,X)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(P,"popstate",X)},0)})}navigateToSyncWithBrowser(P,X,he){const We={replaceUrl:!0},Ct=he?.navigationId?he:null;if(he){const nn={...he};delete nn.navigationId,delete nn.\u0275routerPageId,0!==Object.keys(nn).length&&(We.state=nn)}const vn=this.parseUrl(P);this.scheduleNavigation(vn,X,Ct,We)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(P){this.config=P.map(fo),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(P,X={}){const{relativeTo:he,queryParams:We,fragment:Ct,queryParamsHandling:vn,preserveFragment:nn}=X,pr=nn?this.currentUrlTree.fragment:Ct;let hi,ri=null;switch(vn??this.options.defaultQueryParamsHandling){case"merge":ri={...this.currentUrlTree.queryParams,...We};break;case"preserve":ri=this.currentUrlTree.queryParams;break;default:ri=We||null}null!==ri&&(ri=this.removeEmptyProps(ri));try{hi=Dt(he?he.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof P[0]||"/"!==P[0][0])&&(P=[]),hi=this.currentUrlTree.root}return Wt(hi,P,ri,pr??null)}navigateByUrl(P,X={skipLocationChange:!1}){const he=St(P)?P:this.parseUrl(P),We=this.urlHandlingStrategy.merge(he,this.rawUrlTree);return this.scheduleNavigation(We,ct,null,X)}navigate(P,X={skipLocationChange:!1}){return function di(L){for(let z=0;z(null!=We&&(X[he]=We),X),{})}scheduleNavigation(P,X,he,We,Ct){if(this.disposed)return Promise.resolve(!1);let vn,nn,pr;Ct?(vn=Ct.resolve,nn=Ct.reject,pr=Ct.promise):pr=new Promise((hi,io)=>{vn=hi,nn=io});const ri=this.pendingTasks.add();return Li(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ri))}),this.navigationTransitions.handleNavigationRequest({source:X,restoredState:he,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:P,extras:We,resolve:vn,reject:nn,promise:pr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),pr.catch(hi=>Promise.reject(hi))}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})(),Wo=(()=>{class L{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ne.B;constructor(P,X,he,We,Ct,vn){this.router=P,this.route=X,this.tabIndexAttribute=he,this.renderer=We,this.el=Ct,this.locationStrategy=vn;const nn=Ct.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===nn||"area"===nn,this.isAnchorElement?this.subscription=P.events.subscribe(pr=>{pr instanceof Oe&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(P){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",P)}ngOnChanges(P){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(P){null==P?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=St(P)||Array.isArray(P)?P:[P],this.setTabIndexIfNotOnNativeEl("0"))}onClick(P,X,he,We,Ct){const vn=this.urlTree;return!!(null===vn||this.isAnchorElement&&(0!==P||X||he||We||Ct||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(vn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const P=this.urlTree;this.href=null!==P&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(P)):null;const X=null===this.href?null:(0,i.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",X)}applyAttributeValue(P,X){const he=this.renderer,We=this.el.nativeElement;null!==X?he.setAttribute(We,P,X):he.removeAttribute(We,P)}get urlTree(){return null===this.routerLinkInput?null:St(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(X){return new(X||L)(i.rXU(Qr),i.rXU(tr),i.kS0("tabindex"),i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(me.hb))};static \u0275dir=i.FsC({type:L,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(X,he){1&X&&i.bIt("click",function(Ct){return he.onClick(Ct.button,Ct.ctrlKey,Ct.shiftKey,Ct.altKey,Ct.metaKey)}),2&X&&i.BMQ("target",he.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",i.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",i.L39],replaceUrl:[2,"replaceUrl","replaceUrl",i.L39],routerLink:"routerLink"},features:[i.GFd,i.OA$]})}return L})(),hs=(()=>{class L{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new i.bkB;constructor(P,X,he,We,Ct){this.router=P,this.element=X,this.renderer=he,this.cdr=We,this.link=Ct,this.routerEventsSubscription=P.events.subscribe(vn=>{vn instanceof Oe&&this.update()})}ngAfterContentInit(){(0,y.of)(this.links.changes,(0,y.of)(null)).pipe((0,ze.U)()).subscribe(P=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const P=[...this.links.toArray(),this.link].filter(X=>!!X).map(X=>X.onChanges);this.linkInputChangesSubscription=(0,c.H)(P).pipe((0,ze.U)()).subscribe(X=>{this._isActive!==this.isLinkActive(this.router)(X)&&this.update()})}set routerLinkActive(P){const X=Array.isArray(P)?P:P.split(" ");this.classes=X.filter(he=>!!he)}ngOnChanges(P){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const P=this.hasActiveLinks();this.classes.forEach(X=>{P?this.renderer.addClass(this.element.nativeElement,X):this.renderer.removeClass(this.element.nativeElement,X)}),P&&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!==P&&(this._isActive=P,this.cdr.markForCheck(),this.isActiveChange.emit(P))})}isLinkActive(P){const X=function jo(L){return!!L.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return he=>{const We=he.urlTree;return!!We&&P.isActive(We,X)}}hasActiveLinks(){const P=this.isLinkActive(this.router);return this.link&&P(this.link)||this.links.some(P)}static \u0275fac=function(X){return new(X||L)(i.rXU(Qr),i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(i.gRc),i.rXU(Wo,8))};static \u0275dir=i.FsC({type:L,selectors:[["","routerLinkActive",""]],contentQueries:function(X,he,We){if(1&X&&i.wni(We,Wo,5),2&X){let Ct;i.mGM(Ct=i.lsd())&&(he.links=Ct)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[i.OA$]})}return L})();class Rs{}let Zs=(()=>{class L{router;injector;preloadingStrategy;loader;subscription;constructor(P,X,he,We,Ct){this.router=P,this.injector=he,this.preloadingStrategy=We,this.loader=Ct}setUpPreloading(){this.subscription=this.router.events.pipe((0,Me.p)(P=>P instanceof Oe),(0,at.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(P,X){const he=[];for(const We of X){We.providers&&!We._injector&&(We._injector=(0,i.Ol2)(We.providers,P,`Route: ${We.path}`));const Ct=We._injector??P,vn=We._loadedInjector??Ct;(We.loadChildren&&!We._loadedRoutes&&void 0===We.canLoad||We.loadComponent&&!We._loadedComponent)&&he.push(this.preloadConfig(Ct,We)),(We.children||We._loadedRoutes)&&he.push(this.processRoutes(vn,We.children??We._loadedRoutes))}return(0,c.H)(he).pipe((0,ze.U)())}preloadConfig(P,X){return this.preloadingStrategy.preload(X,()=>{let he;he=X.loadChildren&&void 0===X.canLoad?this.loader.loadChildren(P,X):(0,y.of)(null);const We=he.pipe((0,Ce.Z)(Ct=>null===Ct?(0,y.of)(void 0):(X._loadedRoutes=Ct.routes,X._loadedInjector=Ct.injector,this.processRoutes(Ct.injector??P,Ct.routes))));if(X.loadComponent&&!X._loadedComponent){const Ct=this.loader.loadComponent(X);return(0,c.H)([We,Ct]).pipe((0,ze.U)())}return We})}static \u0275fac=function(X){return new(X||L)(i.KVO(Qr),i.KVO(i.Ql9),i.KVO(i.uvJ),i.KVO(Rs),i.KVO(Rr))};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();const Da=new i.nKC("");let ll=(()=>{class L{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(P,X,he,We,Ct={}){this.urlSerializer=P,this.transitions=X,this.viewportScroller=he,this.zone=We,this.options=Ct,Ct.scrollPositionRestoration||="disabled",Ct.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(P=>{P instanceof et?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=P.navigationTrigger,this.restoredId=P.restoredState?P.restoredState.navigationId:0):P instanceof Oe?(this.lastId=P.id,this.scheduleScrollEvent(P,this.urlSerializer.parse(P.urlAfterRedirects).fragment)):P instanceof un&&P.code===$t.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(P,this.urlSerializer.parse(P.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(P=>{P instanceof vo&&(P.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(P.position):P.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(P.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(P,X){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new vo(P,"popstate"===this.lastSource?this.store[this.restoredId]:null,X))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(X){i.QTQ()};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac})}return L})();function Tl(L,...z){return(0,i.EmA)([{provide:Os,multi:!0,useValue:L},[],{provide:tr,useFactory:cl,deps:[Qr]},{provide:i.iLQ,multi:!0,useFactory:Ao},z.map(P=>P.\u0275providers)])}function cl(L){return L.routerState.root}function ua(L,z){return{\u0275kind:L,\u0275providers:z}}function oc(L={}){return ua(4,[{provide:Da,useFactory:()=>{const P=(0,i.WQX)(me.Xr),X=(0,i.WQX)(i.SKi),he=(0,i.WQX)(de),We=(0,i.WQX)(ot);return new ll(We,he,P,X,L)}}])}function Ao(){const L=(0,i.WQX)(i.zZn);return z=>{const P=L.get(i.o8S);if(z!==P.components[0])return;const X=L.get(Qr),he=L.get(Ja);1===L.get(el)&&X.initialNavigation(),L.get(Ns,null,i.$GK.Optional)?.setUpPreloading(),L.get(Da,null,i.$GK.Optional)?.init(),X.resetRootComponentType(P.componentTypes[0]),he.closed||(he.next(),he.complete(),he.unsubscribe())}}const Ja=new i.nKC("",{factory:()=>new ne.B}),el=new i.nKC("",{providedIn:"root",factory:()=>1}),Ns=new i.nKC("");function Js(L){return ua(0,[{provide:Ns,useExisting:Zs},{provide:Rs,useExisting:L}])}function ou(L){return ua(9,[{provide:Di,useValue:ca},{provide:$s,useValue:{skipNextTransition:!!L?.skipInitialTransition,...L}}])}const bc=new i.nKC("ROUTER_FORROOT_GUARD"),da=[me.aZ,{provide:ot,useClass:Tt},Qr,ns,{provide:tr,useFactory:cl,deps:[Qr]},Rr,[]];let ul=(()=>{class L{constructor(P){}static forRoot(P,X){return{ngModule:L,providers:[da,[],{provide:Os,multi:!0,useValue:P},{provide:bc,useFactory:ha,deps:[[Qr,new i.Xx1,new i.kdw]]},X?.errorHandler?{provide:$,useValue:X.errorHandler}:[],{provide:Po,useValue:X||{}},X?.useHash?{provide:me.hb,useClass:me.fw}:{provide:me.hb,useClass:me.Sm},{provide:Da,useFactory:()=>{const L=(0,i.WQX)(me.Xr),z=(0,i.WQX)(i.SKi),P=(0,i.WQX)(Po),X=(0,i.WQX)(de),he=(0,i.WQX)(ot);return P.scrollOffset&&L.setOffset(P.scrollOffset),new ll(he,X,L,z,P)}},X?.preloadingStrategy?Js(X.preloadingStrategy).\u0275providers:[],X?.initialNavigation?dl(X):[],X?.bindToComponentInputs?ua(8,[ss,{provide:ao,useExisting:ss}]).\u0275providers:[],X?.enableViewTransitions?ou().\u0275providers:[],[{provide:Ru,useFactory:Ao},{provide:i.iLQ,multi:!0,useExisting:Ru}]]}}static forChild(P){return{ngModule:L,providers:[{provide:Os,multi:!0,useValue:P}]}}static \u0275fac=function(X){return new(X||L)(i.KVO(bc,8))};static \u0275mod=i.$C({type:L});static \u0275inj=i.G2t({})}return L})();function ha(L){return"guarded"}function dl(L){return["disabled"===L.initialNavigation?ua(3,[{provide:i.hnV,multi:!0,useFactory:()=>{const z=(0,i.WQX)(Qr);return()=>{z.setUpLocationChangeListener()}}},{provide:el,useValue:2}]).\u0275providers:[],"enabledBlocking"===L.initialNavigation?ua(2,[{provide:el,useValue:0},{provide:i.hnV,multi:!0,deps:[i.zZn],useFactory:z=>{const P=z.get(me.hj,Promise.resolve());return()=>P.then(()=>new Promise(X=>{const he=z.get(Qr),We=z.get(Ja);Li(he,()=>{X(!0)}),z.get(de).afterPreactivation=()=>(X(!0),We.closed?(0,y.of)(void 0):We),he.initialNavigation()}))}}]).\u0275providers:[]]}const Ru=new i.nKC("")},5766:(o,s,r)=>{"use strict";r.d(s,{My:()=>Re,aT:()=>le});const xe=Array.from({length:256},(Qe,bt)=>bt.toString(16).padStart(2,"0"));function Re(Qe){!function c(Qe,...bt){if(!function a(Qe){return Qe instanceof Uint8Array||ArrayBuffer.isView(Qe)&&"Uint8Array"===Qe.constructor.name}(Qe))throw new Error("Uint8Array expected");if(bt.length>0&&!bt.includes(Qe.length))throw new Error("Uint8Array expected of length "+bt+", got length="+Qe.length)}(Qe);let bt="";for(let Ge=0;Ge=Me._0&&Qe<=Me._9?Qe-Me._0:Qe>=Me.A&&Qe<=Me.F?Qe-(Me.A-10):Qe>=Me.a&&Qe<=Me.f?Qe-(Me.a-10):void 0}function le(Qe){if("string"!=typeof Qe)throw new Error("hex string expected, got "+typeof Qe);const bt=Qe.length,Ge=bt/2;if(bt%2)throw new Error("hex string expected, got unpadded hex of length "+bt);const Fe=new Uint8Array(Ge);for(let Ft=0,ze=0;Ft{"use strict";function i(He){if(!Number.isSafeInteger(He))throw new Error(`Wrong integer: ${He}`)}function a(...He){const mt=(Rt,Jt)=>fn=>Rt(Jt(fn));return{encode:Array.from(He).reverse().reduce((Rt,Jt)=>Rt?mt(Rt,Jt.encode):Jt.encode,void 0),decode:He.reduce((Rt,Jt)=>Rt?mt(Rt,Jt.decode):Jt.decode,void 0)}}function c(He){return{encode:mt=>{if(!Array.isArray(mt)||mt.length&&"number"!=typeof mt[0])throw new Error("alphabet.encode input should be an array of numbers");return mt.map(se=>{if(i(se),se<0||se>=He.length)throw new Error(`Digit index outside alphabet: ${se} (alphabet: ${He.length})`);return He[se]})},decode:mt=>{if(!Array.isArray(mt)||mt.length&&"string"!=typeof mt[0])throw new Error("alphabet.decode input should be array of strings");return mt.map(se=>{if("string"!=typeof se)throw new Error(`alphabet.decode: not string element=${se}`);const Ze=He.indexOf(se);if(-1===Ze)throw new Error(`Unknown letter: "${se}". Allowed: ${He}`);return Ze})}}}function y(He=""){if("string"!=typeof He)throw new Error("join separator should be string");return{encode:mt=>{if(!Array.isArray(mt)||mt.length&&"string"!=typeof mt[0])throw new Error("join.encode input should be array of strings");for(let se of mt)if("string"!=typeof se)throw new Error(`join.encode: non-string input=${se}`);return mt.join(He)},decode:mt=>{if("string"!=typeof mt)throw new Error("join.decode input should be string");return mt.split(He)}}}function w(He,mt="="){if(i(He),"string"!=typeof mt)throw new Error("padding chr should be string");return{encode(se){if(!Array.isArray(se)||se.length&&"string"!=typeof se[0])throw new Error("padding.encode input should be array of strings");for(let Ze of se)if("string"!=typeof Ze)throw new Error(`padding.encode: non-string input=${Ze}`);for(;se.length*He%8;)se.push(mt);return se},decode(se){if(!Array.isArray(se)||se.length&&"string"!=typeof se[0])throw new Error("padding.encode input should be array of strings");for(let Rt of se)if("string"!=typeof Rt)throw new Error(`padding.decode: non-string input=${Rt}`);let Ze=se.length;if(Ze*He%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;Ze>0&&se[Ze-1]===mt;Ze--)if(!((Ze-1)*He%8))throw new Error("Invalid padding: string has too much padding");return se.slice(0,Ze)}}}function C(He){if("function"!=typeof He)throw new Error("normalize fn should be function");return{encode:mt=>mt,decode:mt=>He(mt)}}function T(He,mt,se){if(mt<2)throw new Error(`convertRadix: wrong from=${mt}, base cannot be less than 2`);if(se<2)throw new Error(`convertRadix: wrong to=${se}, base cannot be less than 2`);if(!Array.isArray(He))throw new Error("convertRadix: data should be array");if(!He.length)return[];let Ze=0;const Rt=[],Jt=Array.from(He);for(Jt.forEach(fn=>{if(i(fn),fn<0||fn>=mt)throw new Error(`Wrong integer: ${fn}`)});;){let fn=0,Kn=!0;for(let Nt=Ze;Nt$n,K3:()=>Re,Tq:()=>ht});const S=(He,mt)=>mt?S(mt,He%mt):He,A=(He,mt)=>He+(mt-S(He,mt));function I(He,mt,se,Ze){if(!Array.isArray(He))throw new Error("convertRadix2: data should be array");if(mt<=0||mt>32)throw new Error(`convertRadix2: wrong from=${mt}`);if(se<=0||se>32)throw new Error(`convertRadix2: wrong to=${se}`);if(A(mt,se)>32)throw new Error(`convertRadix2: carry overflow from=${mt} to=${se} carryBits=${A(mt,se)}`);let Rt=0,Jt=0;const fn=2**se-1,Kn=[];for(const Nt of He){if(i(Nt),Nt>=2**mt)throw new Error(`convertRadix2: invalid data word=${Nt} from=${mt}`);if(Rt=Rt<32)throw new Error(`convertRadix2: carry overflow pos=${Jt} from=${mt}`);for(Jt+=mt;Jt>=se;Jt-=se)Kn.push((Rt>>Jt-se&fn)>>>0);Rt&=2**Jt-1}if(Rt=Rt<=mt)throw new Error("Excess padding");if(!Ze&&Rt)throw new Error(`Non-zero padding: ${Rt}`);return Ze&&Jt>0&&Kn.push(Rt>>>0),Kn}function K(He,mt=!1){if(i(He),He<=0||He>32)throw new Error("radix2: bits should be in (0..32]");if(A(8,He)>32||A(He,8)>32)throw new Error("radix2: carry overflow");return{encode:se=>{if(!(se instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return I(Array.from(se),8,He,!mt)},decode:se=>{if(!Array.isArray(se)||se.length&&"number"!=typeof se[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(I(se,He,8,mt))}}}function Z(He){if("function"!=typeof He)throw new Error("unsafeWrapper fn should be function");return function(...mt){try{return He.apply(null,mt)}catch{}}}a(K(4),c("0123456789ABCDEF"),y("")),a(K(5),c("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),w(5),y(""));const Re=(a(K(5),c("0123456789ABCDEFGHIJKLMNOPQRSTUV"),w(5),y("")),a(K(5),c("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),y(""),C(He=>He.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),a(K(6),c("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),w(6),y(""))),Ce=(a(K(6),c("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),w(6),y("")),He=>a(function N(He){return i(He),{encode:mt=>{if(!(mt instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return T(Array.from(mt),256,He)},decode:mt=>{if(!Array.isArray(mt)||mt.length&&"number"!=typeof mt[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(T(mt,He,256))}}}(58),c(He),y(""))),le=Ce("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),ht=(Ce("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),Ce("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),He=>a(function ne(He,mt){if(i(He),"function"!=typeof mt)throw new Error("checksum fn should be function");return{encode(se){if(!(se instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const Ze=mt(se).slice(0,He),Rt=new Uint8Array(se.length+He);return Rt.set(se),Rt.set(Ze,se.length),Rt},decode(se){if(!(se instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const Ze=se.slice(0,-He),Rt=mt(Ze).slice(0,He),Jt=se.slice(-He);for(let fn=0;fnHe(He(mt))),le)),vt=a(c("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),y("")),at=[996825010,642813549,513874426,1027748829,705979059];function Xt(He){const mt=He>>25;let se=(33554431&He)<<5;for(let Ze=0;Ze>Ze&1)&&(se^=at[Ze]);return se}function ln(He,mt,se=1){const Ze=He.length;let Rt=1;for(let Jt=0;Jt126)throw new Error(`Invalid prefix (${He})`);Rt=Xt(Rt)^fn>>5}Rt=Xt(Rt);for(let Jt=0;JtXn)throw new TypeError(`Wrong string length: ${an.length} (${an}). Expected (8..${Xn})`);const En=an.toLowerCase();if(an!==En&&an!==an.toUpperCase())throw new Error("String must be lowercase or uppercase");const Kt=(an=En).lastIndexOf("1");if(0===Kt||-1===Kt)throw new Error('Letter "1" must be present between prefix and data only');const At=an.slice(0,Kt),zt=an.slice(Kt+1);if(zt.length<6)throw new Error("Data must be at least 6 characters long");const xn=vt.decode(zt).slice(0,-6),Yn=ln(At,xn,mt);if(!zt.endsWith(Yn))throw new Error(`Invalid checksum in ${an}: expected "${Yn}"`);return{prefix:At,words:xn}}return{encode:function fn(an,Xn,En=90){if("string"!=typeof an)throw new Error("bech32.encode prefix should be string, not "+typeof an);if(!Array.isArray(Xn)||Xn.length&&"number"!=typeof Xn[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof Xn);const Kt=an.length+7+Xn.length;if(!1!==En&&Kt>En)throw new TypeError(`Length ${Kt} exceeds limit ${En}`);return`${an=an.toLowerCase()}1${vt.encode(Xn)}${ln(an,Xn,mt)}`},decode:Kn,decodeToBytes:function Qt(an){const{prefix:Xn,words:En}=Kn(an,!1);return{prefix:Xn,words:En,bytes:Ze(En)}},decodeUnsafe:Z(Kn),fromWords:Ze,fromWordsUnsafe:Jt,toWords:Rt}}const $n=yn("bech32");yn("bech32m"),a(K(4),c("0123456789abcdef"),y(""),C(He=>{if("string"!=typeof He||He.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof He} with length ${He.length}`);return He.toLowerCase()}))},6568:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(4713),a=r(1860);const y=(0,i.A)(a.A,"Map")},7730:(o,s,r)=>{"use strict";r.d(s,{A:()=>it});var c=r(1319);const w=function y(ot,Tt){for(var In=ot.length;In--;)if((0,c.A)(ot[In][0],Tt))return In;return-1};var T=Array.prototype.splice;function me(ot){var Tt=-1,In=null==ot?0:ot.length;for(this.clear();++Tt-1},me.prototype.set=function ne(ot,Tt){var In=this.__data__,Vt=w(In,ot);return Vt<0?(++this.size,In.push([ot,Tt])):In[Vt][1]=Tt,this};const pe=me;var $e=r(6568);const vt=(0,r(4713).A)(Object,"create");var Qe=Object.prototype.hasOwnProperty;var Ft=Object.prototype.hasOwnProperty;function se(ot){var Tt=-1,In=null==ot?0:ot.length;for(this.clear();++Tt{"use strict";r.d(s,{A:()=>c});const c=r(1860).A.Symbol},6726:(o,s,r)=>{"use strict";r.d(s,{A:()=>N});var c=r(6513),y=r(3744),w=r(9377),C=r(8606),T=r(8885),A=Object.prototype.hasOwnProperty;const N=function I(K,Z){var ne=(0,y.A)(K),be=!ne&&(0,c.A)(K),me=!ne&&!be&&(0,w.A)(K),pe=!ne&&!be&&!me&&(0,T.A)(K),Te=ne||be||me||pe,xe=Te?function i(K,Z){for(var ne=-1,be=Array(K);++ne{"use strict";r.d(s,{A:()=>C});var i=r(1827),a=r(1319),y=Object.prototype.hasOwnProperty;const C=function w(T,S,A){var I=T[S];(!y.call(T,S)||!(0,a.A)(I,A)||void 0===A&&!(S in T))&&(0,i.A)(T,S,A)}},1827:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(4746);const c=function a(y,w,C){"__proto__"==w&&i.A?(0,i.A)(y,w,{configurable:!0,enumerable:!0,value:C,writable:!0}):y[w]=C}},5281:(o,s,r)=>{"use strict";r.d(s,{A:()=>me});var i=r(6944),a=Object.prototype,c=a.hasOwnProperty,y=a.toString,w=i.A?i.A.toStringTag:void 0;var A=Object.prototype.toString;var ne=i.A?i.A.toStringTag:void 0;const me=function be(pe){return null==pe?void 0===pe?"[object Undefined]":"[object Null]":ne&&ne in Object(pe)?function C(pe){var Te=c.call(pe,w),xe=pe[w];try{pe[w]=void 0;var Re=!0}catch{}var Me=y.call(pe);return Re&&(Te?pe[w]=xe:delete pe[w]),Me}(pe):function I(pe){return A.call(pe)}(pe)}},778:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){return function(y){return c(y)}}},9750:(o,s,r)=>{"use strict";r.d(s,{A:()=>w});const c=r(1860).A.Uint8Array,w=function y(C){var T=new C.constructor(C.byteLength);return new c(T).set(new c(C)),T}},9933:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(1860),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=a&&"object"==typeof module&&module&&!module.nodeType&&module,w=c&&c.exports===a?i.A.Buffer:void 0,C=w?w.allocUnsafe:void 0;const S=function T(A,I){if(I)return A.slice();var N=A.length,K=C?C(N):new A.constructor(N);return A.copy(K),K}},4314:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(9750);const c=function a(y,w){var C=w?(0,i.A)(y.buffer):y.buffer;return new y.constructor(C,y.byteOffset,y.length)}},4528:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c,y){var w=-1,C=c.length;for(y||(y=Array(C));++w{"use strict";r.d(s,{A:()=>y});var i=r(1984),a=r(1827);const y=function c(w,C,T,S){var A=!T;T||(T={});for(var I=-1,N=C.length;++I{"use strict";r.d(s,{A:()=>c});var i=r(4713);const c=function(){try{var y=(0,i.A)(Object,"defineProperty");return y({},"",{}),y}catch{}}()},7133:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a="object"==typeof global&&global&&global.Object===Object&&global},4713:(o,s,r)=>{"use strict";r.d(s,{A:()=>Ce});var le,i=r(129),c=r(1860).A["__core-js_shared__"],w=(le=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+le:"";var S=r(554),A=r(8736),N=/^\[object .+?Constructor\]$/,me=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Te=function pe(le){return!(!(0,S.A)(le)||function C(le){return!!w&&w in le}(le))&&((0,i.A)(le)?me:N).test((0,A.A)(le))},Ce=function Me(le,ae){var Ie=function xe(le,ae){return le?.[ae]}(le,ae);return Te(Ie)?Ie:void 0}},8010:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});const c=(0,r(8992).A)(Object.getPrototypeOf,Object)},923:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(554),a=Object.create;const y=function(){function A(){}return function(I){if(!(0,i.A)(I))return{};if(a)return a(I);A.prototype=I;var N=new A;return A.prototype=void 0,N}}();var w=r(8010),C=r(5776);const S=function T(A){return"function"!=typeof A.constructor||(0,C.A)(A)?{}:y((0,w.A)(A))}},8606:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var a=/^(?:0|[1-9]\d*)$/;const y=function c(w,C){var T=typeof w;return!!(C=C??9007199254740991)&&("number"==T||"symbol"!=T&&a.test(w))&&w>-1&&w%1==0&&w{"use strict";r.d(s,{A:()=>c});var i=Object.prototype;const c=function a(y){var w=y&&y.constructor;return y===("function"==typeof w&&w.prototype||i)}},3340:(o,s,r)=>{"use strict";r.d(s,{A:()=>T});var i=r(7133),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=a&&"object"==typeof module&&module&&!module.nodeType&&module,w=c&&c.exports===a&&i.A.process;const T=function(){try{return c&&c.require&&c.require("util").types||w&&w.binding&&w.binding("util")}catch{}}()},8992:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c,y){return function(w){return c(y(w))}}},1860:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(7133),a="object"==typeof self&&self&&self.Object===Object&&self;const y=i.A||a||Function("return this")()},8736:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var a=Function.prototype.toString;const y=function c(w){if(null!=w){try{return a.call(w)}catch{}try{return w+""}catch{}}return""}},1319:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c,y){return c===y||c!=c&&y!=y}},7680:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){for(var y=-1,w=null==c?0:c.length,C={};++y{"use strict";r.d(s,{A:()=>I});var i=r(5281),a=r(2661);const w=function y(N){return(0,a.A)(N)&&"[object Arguments]"==(0,i.A)(N)};var C=Object.prototype,T=C.hasOwnProperty,S=C.propertyIsEnumerable;const I=w(function(){return arguments}())?w:function(N){return(0,a.A)(N)&&T.call(N,"callee")&&!S.call(N,"callee")}},3744:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=Array.isArray},1287:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(129),a=r(5481);const y=function c(w){return null!=w&&(0,a.A)(w.length)&&!(0,i.A)(w)}},9377:(o,s,r)=>{"use strict";r.d(s,{A:()=>I});var i=r(1860),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,w=y&&"object"==typeof module&&module&&!module.nodeType&&module,T=w&&w.exports===y?i.A.Buffer:void 0;const I=(T?T.isBuffer:void 0)||function a(){return!1}},129:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(5281),a=r(554);const S=function T(A){if(!(0,a.A)(A))return!1;var I=(0,i.A)(A);return"[object Function]"==I||"[object GeneratorFunction]"==I||"[object AsyncFunction]"==I||"[object Proxy]"==I}},5481:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});const c=function a(y){return"number"==typeof y&&y>-1&&y%1==0&&y<=9007199254740991}},554:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){var y=typeof c;return null!=c&&("object"==y||"function"==y)}},2661:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){return null!=c&&"object"==typeof c}},8885:(o,s,r)=>{"use strict";r.d(s,{A:()=>bn});var i=r(5281),a=r(5481),c=r(2661),ht={};ht["[object Float32Array]"]=ht["[object Float64Array]"]=ht["[object Int8Array]"]=ht["[object Int16Array]"]=ht["[object Int32Array]"]=ht["[object Uint8Array]"]=ht["[object Uint8ClampedArray]"]=ht["[object Uint16Array]"]=ht["[object Uint32Array]"]=!0,ht["[object Arguments]"]=ht["[object Array]"]=ht["[object ArrayBuffer]"]=ht["[object Boolean]"]=ht["[object DataView]"]=ht["[object Date]"]=ht["[object Error]"]=ht["[object Function]"]=ht["[object Map]"]=ht["[object Number]"]=ht["[object Object]"]=ht["[object RegExp]"]=ht["[object Set]"]=ht["[object String]"]=ht["[object WeakMap]"]=!1;var Xt=r(778),ln=r(3340),yn=ln.A&&ln.A.isTypedArray;const bn=yn?(0,Xt.A)(yn):function vt(Qe){return(0,c.A)(Qe)&&(0,a.A)(Qe.length)&&!!ht[(0,i.A)(Qe)]}},133:(o,s,r)=>{"use strict";r.d(s,{A:()=>K});var i=r(6726),a=r(554),c=r(5776);var T=Object.prototype.hasOwnProperty;const A=function S(Z){if(!(0,a.A)(Z))return function y(Z){var ne=[];if(null!=Z)for(var be in Object(Z))ne.push(be);return ne}(Z);var ne=(0,c.A)(Z),be=[];for(var me in Z)"constructor"==me&&(ne||!T.call(Z,me))||be.push(me);return be};var I=r(1287);const K=function N(Z){return(0,I.A)(Z)?(0,i.A)(Z,!0):A(Z)}},2401:(o,s,r)=>{"use strict";r.d(s,{A:()=>In});var i=r(7730),a=r(1827),c=r(1319);const w=function y(Vt,dn,Pn){(void 0!==Pn&&!(0,c.A)(Vt[dn],Pn)||void 0===Pn&&!(dn in Vt))&&(0,a.A)(Vt,dn,Pn)},A=function C(Vt){return function(dn,Pn,Fn){for(var Bn=-1,cr=Object(dn),Jr=Fn(dn),Xr=Jr.length;Xr--;){var _t=Jr[Vt?Xr:++Bn];if(!1===Pn(cr[_t],_t,cr))break}return dn}}();var I=r(9933),N=r(4314),K=r(4528),Z=r(923),ne=r(6513),be=r(3744),me=r(1287),pe=r(2661);var Re=r(9377),Me=r(129),Ce=r(554),le=r(5281),ae=r(8010),ht=Function.prototype.toString,vt=Object.prototype.hasOwnProperty,at=ht.call(Object);var yn=r(8885);const bn=function $n(Vt,dn){if(("constructor"!==dn||"function"!=typeof Vt[dn])&&"__proto__"!=dn)return Vt[dn]};var Qe=r(7517),bt=r(133);const ze=function Ft(Vt,dn,Pn,Fn,Bn,cr,Jr){var Xr=bn(Vt,Pn),_t=bn(dn,Pn),Bt=Jr.get(_t);if(Bt)w(Vt,Pn,Bt);else{var Ee=cr?cr(Xr,_t,Pn+"",Vt,dn,Jr):void 0,lt=void 0===Ee;if(lt){var Pe=(0,be.A)(_t),kt=!Pe&&(0,Re.A)(_t),ft=!Pe&&!kt&&(0,yn.A)(_t);Ee=_t,Pe||kt||ft?(0,be.A)(Xr)?Ee=Xr:function Te(Vt){return(0,pe.A)(Vt)&&(0,me.A)(Vt)}(Xr)?Ee=(0,K.A)(Xr):kt?(lt=!1,Ee=(0,I.A)(_t,!0)):ft?(lt=!1,Ee=(0,N.A)(_t,!0)):Ee=[]:function Xt(Vt){if(!(0,pe.A)(Vt)||"[object Object]"!=(0,le.A)(Vt))return!1;var dn=(0,ae.A)(Vt);if(null===dn)return!0;var Pn=vt.call(dn,"constructor")&&dn.constructor;return"function"==typeof Pn&&Pn instanceof Pn&&ht.call(Pn)==at}(_t)||(0,ne.A)(_t)?(Ee=Xr,(0,ne.A)(Xr)?Ee=function Ge(Vt){return(0,Qe.A)(Vt,(0,bt.A)(Vt))}(Xr):(!(0,Ce.A)(Xr)||(0,Me.A)(Xr))&&(Ee=(0,Z.A)(_t))):lt=!1}lt&&(Jr.set(_t,Ee),Bn(Ee,_t,Fn,cr,Jr),Jr.delete(_t)),w(Vt,Pn,Ee)}},Ke=function dt(Vt,dn,Pn,Fn,Bn){Vt!==dn&&A(dn,function(cr,Jr){if(Bn||(Bn=new i.A),(0,Ce.A)(cr))ze(Vt,dn,Jr,Pn,dt,Fn,Bn);else{var Xr=Fn?Fn(bn(Vt,Jr),cr,Jr+"",Vt,dn,Bn):void 0;void 0===Xr&&(Xr=cr),w(Vt,Jr,Xr)}},bt.A)},mt=function He(Vt){return Vt};var Rt=Math.max;const Nt=function Kn(Vt){return function(){return Vt}};var Qt=r(4746),At=Date.now;const tt=function zt(Vt){var dn=0,Pn=0;return function(){var Fn=At(),Bn=16-(Fn-Pn);if(Pn=Fn,Bn>0){if(++dn>=800)return arguments[0]}else dn=0;return Vt.apply(void 0,arguments)}}(Qt.A?function(Vt,dn){return(0,Qt.A)(Vt,"toString",{configurable:!0,enumerable:!1,value:Nt(dn),writable:!0})}:mt),B=function ke(Vt,dn){return tt(function Jt(Vt,dn,Pn){return dn=Rt(void 0===dn?Vt.length-1:dn,0),function(){for(var Fn=arguments,Bn=-1,cr=Rt(Fn.length-dn,0),Jr=Array(cr);++Bn1?Pn[Bn-1]:void 0,Jr=Bn>2?Pn[2]:void 0;for(cr=Vt.length>3&&"function"==typeof cr?(Bn--,cr):void 0,Jr&&function j(Vt,dn,Pn){if(!(0,Ce.A)(Pn))return!1;var Fn=typeof dn;return!!("number"==Fn?(0,me.A)(Pn)&&(0,k.A)(dn,Pn.length):"string"==Fn&&dn in Pn)&&(0,c.A)(Pn[dn],Vt)}(Pn[0],Pn[1],Jr)&&(cr=Bn<3?void 0:cr,Bn=1),dn=Object(dn);++Fn{"use strict";__webpack_require__.d(__webpack_exports__,{Ts:()=>init,ql:()=>launch});var E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(467),E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_awaitAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(6218),E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_wrapAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(600),BUILD={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},__defProp$1=Object.defineProperty,__export$1=(o,s)=>{for(var r in s)__defProp$1(o,r,{get:s[r],enumerable:!0})},hostRefs=new WeakMap,getHostRef=o=>hostRefs.get(o),registerHost=(o,s)=>hostRefs.set(o,{$flags$:0,$hostElement$:o,$cmpMeta$:s,$instanceValues$:new Map}),isMemberInElement=(o,s)=>s in o,consoleError=(o,s)=>(0,console.error)(o,s),styles=new Map,modeResolutionChain=[],SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}",XLINK_NS="http://www.w3.org/1999/xlink",win=typeof window<"u"?window:{},doc=win.document||{head:{}},H=win.HTMLElement||class{},plt={$flags$:0,$resourcesUrl$:"",jmp:o=>o(),raf:o=>requestAnimationFrame(o),ael:(o,s,r,i)=>o.addEventListener(s,r,i),rel:(o,s,r,i)=>o.removeEventListener(s,r,i),ce:(o,s)=>new CustomEvent(o,s)},supportsListenerOptions=(()=>{let o=!1;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get(){o=!0}}))}catch{}return o})(),promiseResolve=o=>Promise.resolve(o),supportsConstructableStylesheets=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),queuePending=!1,queueDomReads=[],queueDomWrites=[],queueTask=(o,s)=>r=>{o.push(r),queuePending||(queuePending=!0,s&&4&plt.$flags$?nextTick(flush):plt.raf(flush))},consume=o=>{for(let s=0;s{consume(queueDomReads),consume(queueDomWrites),(queuePending=queueDomReads.length>0)&&plt.raf(flush)},nextTick=o=>promiseResolve().then(o),writeTask=queueTask(queueDomWrites,!0),EMPTY_OBJ={},SVG_NS="http://www.w3.org/2000/svg",HTML_NS="http://www.w3.org/1999/xhtml",isDef=o=>null!=o,isComplexType=o=>"object"==(o=typeof o)||"function"===o;function queryNonceMetaTagContent(o){var s,r,i;return null!=(i=null==(r=null==(s=o.head)?void 0:s.querySelector('meta[name="csp-nonce"]'))?void 0:r.getAttribute("content"))?i:void 0}var result_exports={};__export$1(result_exports,{err:()=>err,map:()=>map,ok:()=>ok,unwrap:()=>unwrap$1,unwrapErr:()=>unwrapErr});var ok=o=>({isOk:!0,isErr:!1,value:o}),err=o=>({isOk:!1,isErr:!0,value:o});function map(o,s){if(o.isOk){const r=s(o.value);return r instanceof Promise?r.then(i=>ok(i)):ok(r)}if(o.isErr)return err(o.value);throw"should never get here"}var unwrap$1=o=>{if(o.isOk)return o.value;throw o.value},unwrapErr=o=>{if(o.isErr)return o.value;throw o.value},createTime=(o,s="")=>()=>{},h=(o,s,...r)=>{let i=null,a=null,c=null,y=!1,w=!1;const C=[],T=A=>{for(let I=0;IA[I]).join(" "))}}if("function"==typeof o)return o(null===s?{}:s,C,vdomFnUtils);const S=newVNode(o,null);return S.$attrs$=s,C.length>0&&(S.$children$=C),S.$key$=a,S.$name$=c,S},newVNode=(o,s)=>({$flags$:0,$tag$:o,$text$:s,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Host={},isHost=o=>o&&o.$tag$===Host,vdomFnUtils={forEach:(o,s)=>o.map(convertToPublic).forEach(s),map:(o,s)=>o.map(convertToPublic).map(s).map(convertToPrivate)},convertToPublic=o=>({vattrs:o.$attrs$,vchildren:o.$children$,vkey:o.$key$,vname:o.$name$,vtag:o.$tag$,vtext:o.$text$}),convertToPrivate=o=>{if("function"==typeof o.vtag){const r={...o.vattrs};return o.vkey&&(r.key=o.vkey),o.vname&&(r.name=o.vname),h(o.vtag,r,...o.vchildren||[])}const s=newVNode(o.vtag,o.vtext);return s.$attrs$=o.vattrs,s.$children$=o.vchildren,s.$key$=o.vkey,s.$name$=o.vname,s},computeMode=o=>modeResolutionChain.map(s=>s(o)).find(s=>!!s),parsePropertyValue=(o,s)=>null==o||isComplexType(o)?o:4&s?"false"!==o&&(""===o||!!o):2&s?parseFloat(o):1&s?String(o):o,getElement=o=>o,createEvent=(o,s,r)=>{const i=getElement(o);return{emit:a=>emitEvent(i,s,{bubbles:!!(4&r),composed:!!(2&r),cancelable:!!(1&r),detail:a})}},emitEvent=(o,s,r)=>{const i=plt.ce(s,r);return o.dispatchEvent(i),i},rootAppliedStyles=new WeakMap,registerStyle=(o,s,r)=>{let i=styles.get(o);supportsConstructableStylesheets&&r?(i=i||new CSSStyleSheet,"string"==typeof i?i=s:i.replaceSync(s)):i=s,styles.set(o,i)},addStyle=(o,s,r)=>{var i;const a=getScopeId(s,r),c=styles.get(a);if(o=11===o.nodeType?o:doc,c)if("string"==typeof c){let y,w=rootAppliedStyles.get(o=o.head||o);if(w||rootAppliedStyles.set(o,w=new Set),!w.has(a)){{y=doc.createElement("style"),y.innerHTML=c;const C=null!=(i=plt.$nonce$)?i:queryNonceMetaTagContent(doc);null!=C&&y.setAttribute("nonce",C),(!(1&s.$flags$)||1&s.$flags$&&"HEAD"!==o.nodeName)&&o.insertBefore(y,o.querySelector("link"))}4&s.$flags$&&(y.innerHTML+=SLOT_FB_CSS),w&&w.add(a)}}else o.adoptedStyleSheets.includes(c)||(o.adoptedStyleSheets=[...o.adoptedStyleSheets,c]);return a},attachStyles=o=>{const s=o.$cmpMeta$,r=o.$hostElement$,i=s.$flags$,a=createTime("attachStyles",s.$tagName$),c=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),s,o.$modeName$);10&i&&2&i&&(r["s-sc"]=c,r.classList.add(c+"-h"),2&i&&r.classList.add(c+"-s")),a()},getScopeId=(o,s)=>"sc-"+(s&&32&o.$flags$?o.$tagName$+"-"+s:o.$tagName$),setAccessor=(o,s,r,i,a,c)=>{if(r!==i){let y=isMemberInElement(o,s),w=s.toLowerCase();if("class"===s){const C=o.classList,T=parseClassList(r),S=parseClassList(i);C.remove(...T.filter(A=>A&&!S.includes(A))),C.add(...S.filter(A=>A&&!T.includes(A)))}else if("style"===s){for(const C in r)i&&null!=i[C]||(C.includes("-")?o.style.removeProperty(C):o.style[C]="");for(const C in i)r&&i[C]===r[C]||(C.includes("-")?o.style.setProperty(C,i[C]):o.style[C]=i[C])}else if("key"!==s)if("ref"===s)i&&i(o);else if(o.__lookupSetter__(s)||"o"!==s[0]||"n"!==s[1]){const C=isComplexType(i);if((y||C&&null!==i)&&!a)try{if(o.tagName.includes("-"))o[s]=i;else{const S=i??"";"list"===s?y=!1:null!=r&&o[s]==S||(o[s]=S)}}catch{}let T=!1;w!==(w=w.replace(/^xlink\:?/,""))&&(s=w,T=!0),null==i||!1===i?!1===i&&""!==o.getAttribute(s)||(T?o.removeAttributeNS(XLINK_NS,s):o.removeAttribute(s)):(!y||4&c||a)&&!C&&(i=!0===i?"":i,T?o.setAttributeNS(XLINK_NS,s,i):o.setAttribute(s,i))}else if(s="-"===s[2]?s.slice(3):isMemberInElement(win,w)?w.slice(2):w[2]+s.slice(3),r||i){const C=s.endsWith(CAPTURE_EVENT_SUFFIX);s=s.replace(CAPTURE_EVENT_REGEX,""),r&&plt.rel(o,s,r,C),i&&plt.ael(o,s,i,C)}}},parseClassListRegex=/\s/,parseClassList=o=>o?o.split(parseClassListRegex):[],CAPTURE_EVENT_SUFFIX="Capture",CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$"),updateElement=(o,s,r)=>{const i=11===s.$elm$.nodeType&&s.$elm$.host?s.$elm$.host:s.$elm$,a=o&&o.$attrs$||EMPTY_OBJ,c=s.$attrs$||EMPTY_OBJ;for(const y of sortedAttrNames(Object.keys(a)))y in c||setAccessor(i,y,a[y],void 0,r,s.$flags$);for(const y of sortedAttrNames(Object.keys(c)))setAccessor(i,y,a[y],c[y],r,s.$flags$)},scopeId,contentRef,hostTagName;function sortedAttrNames(o){return o.includes("ref")?[...o.filter(s=>"ref"!==s),"ref"]:o}var useNativeShadowDom=!1,checkSlotFallbackVisibility=!1,checkSlotRelocate=!1,isSvgMode=!1,createElm=(o,s,r,i)=>{var a;const c=s.$children$[r];let y,w,C,T=0;if(useNativeShadowDom||(checkSlotRelocate=!0,"slot"===c.$tag$&&(scopeId&&i.classList.add(scopeId+"-s"),c.$flags$|=c.$children$?2:1)),null!==c.$text$)y=c.$elm$=doc.createTextNode(c.$text$);else if(1&c.$flags$)y=c.$elm$=doc.createTextNode("");else{if(isSvgMode||(isSvgMode="svg"===c.$tag$),y=c.$elm$=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,!useNativeShadowDom&&BUILD.slotRelocation&&2&c.$flags$?"slot-fb":c.$tag$),isSvgMode&&"foreignObject"===c.$tag$&&(isSvgMode=!1),updateElement(null,c,isSvgMode),y.getRootNode().querySelector("body")&&BUILD.scoped&&isDef(scopeId)&&y["s-si"]!==scopeId&&y.classList.add(y["s-si"]=scopeId),updateElementScopeIds(y,i),c.$children$)for(T=0;T{plt.$flags$|=1;const r=Array.from(o.childNodes);if(o["s-sr"]&&BUILD.experimentalSlotFixes){let i=o;for(;i=i.nextSibling;)i&&i["s-sn"]===o["s-sn"]&&i["s-sh"]===hostTagName&&r.push(i)}for(let i=r.length-1;i>=0;i--){const a=r[i];a["s-hn"]!==hostTagName&&a["s-ol"]&&(insertBefore(parentReferenceNode(a),a,referenceNode(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,checkSlotRelocate=!0),s&&putBackInOriginalLocation(a,s)}plt.$flags$&=-2},addVnodes=(o,s,r,i,a,c)=>{let y,w=o["s-cr"]&&o["s-cr"].parentNode||o;for(w.shadowRoot&&w.tagName===hostTagName&&(w=w.shadowRoot);a<=c;++a)i[a]&&(y=createElm(null,r,a,o),y&&(i[a].$elm$=y,insertBefore(w,y,referenceNode(s))))},removeVnodes=(o,s,r)=>{for(let i=s;i<=r;++i){const a=o[i];if(a){const c=a.$elm$;nullifyVNodeRefs(a),c&&(checkSlotFallbackVisibility=!0,c["s-ol"]?c["s-ol"].remove():putBackInOriginalLocation(c,!0),c.remove())}}},updateChildren=(o,s,r,i,a=!1)=>{let c,y,w=0,C=0,T=0,S=0,A=s.length-1,I=s[0],N=s[A],K=i.length-1,Z=i[0],ne=i[K];for(;w<=A&&C<=K;)if(null==I)I=s[++w];else if(null==N)N=s[--A];else if(null==Z)Z=i[++C];else if(null==ne)ne=i[--K];else if(isSameVnode(I,Z,a))patch(I,Z,a),I=s[++w],Z=i[++C];else if(isSameVnode(N,ne,a))patch(N,ne,a),N=s[--A],ne=i[--K];else if(isSameVnode(I,ne,a))"slot"!==I.$tag$&&"slot"!==ne.$tag$||putBackInOriginalLocation(I.$elm$.parentNode,!1),patch(I,ne,a),insertBefore(o,I.$elm$,N.$elm$.nextSibling),I=s[++w],ne=i[--K];else if(isSameVnode(N,Z,a))"slot"!==I.$tag$&&"slot"!==ne.$tag$||putBackInOriginalLocation(N.$elm$.parentNode,!1),patch(N,Z,a),insertBefore(o,N.$elm$,I.$elm$),N=s[--A],Z=i[++C];else{for(T=-1,S=w;S<=A;++S)if(s[S]&&null!==s[S].$key$&&s[S].$key$===Z.$key$){T=S;break}T>=0?(y=s[T],y.$tag$!==Z.$tag$?c=createElm(s&&s[C],r,T,o):(patch(y,Z,a),s[T]=void 0,c=y.$elm$),Z=i[++C]):(c=createElm(s&&s[C],r,C,o),Z=i[++C]),c&&insertBefore(parentReferenceNode(I.$elm$),c,referenceNode(I.$elm$))}w>A?addVnodes(o,null==i[K+1]?null:i[K+1].$elm$,r,i,C,K):C>K&&removeVnodes(s,w,A)},isSameVnode=(o,s,r=!1)=>!(o.$tag$!==s.$tag$||("slot"===o.$tag$?"$nodeId$"in o&&r&&8!==o.$elm$.nodeType||o.$name$!==s.$name$:!r&&o.$key$!==s.$key$)),referenceNode=o=>o&&o["s-ol"]||o,parentReferenceNode=o=>(o["s-ol"]?o["s-ol"]:o).parentNode,patch=(o,s,r=!1)=>{const i=s.$elm$=o.$elm$,a=o.$children$,c=s.$children$,y=s.$tag$,w=s.$text$;let C;null===w?(isSvgMode="svg"===y||"foreignObject"!==y&&isSvgMode,("slot"!==y||useNativeShadowDom)&&updateElement(o,s,isSvgMode),null!==a&&null!==c?updateChildren(i,a,s,c,r):null!==c?(null!==o.$text$&&(i.textContent=""),addVnodes(i,null,s,c,0,c.length-1)):!r&&BUILD.updatable&&null!==a&&removeVnodes(a,0,a.length-1),isSvgMode&&"svg"===y&&(isSvgMode=!1)):(C=i["s-cr"])?C.parentNode.textContent=w:o.$text$!==w&&(i.data=w)},updateFallbackSlotVisibility=o=>{const s=o.childNodes;for(const r of s)if(1===r.nodeType){if(r["s-sr"]){const i=r["s-sn"];r.hidden=!1;for(const a of s)if(a!==r)if(a["s-hn"]!==r["s-hn"]||""!==i){if(1===a.nodeType&&(i===a.getAttribute("slot")||i===a["s-sn"])||3===a.nodeType&&i===a["s-sn"]){r.hidden=!0;break}}else if(1===a.nodeType||3===a.nodeType&&""!==a.textContent.trim()){r.hidden=!0;break}}updateFallbackSlotVisibility(r)}},relocateNodes=[],markSlotContentForRelocation=o=>{let s,r,i;for(const a of o.childNodes){if(a["s-sr"]&&(s=a["s-cr"])&&s.parentNode){r=s.parentNode.childNodes;const c=a["s-sn"];for(i=r.length-1;i>=0;i--)if(s=r[i],!s["s-cn"]&&!s["s-nr"]&&s["s-hn"]!==a["s-hn"]&&!BUILD.experimentalSlotFixes)if(isNodeLocatedInSlot(s,c)){let y=relocateNodes.find(w=>w.$nodeToRelocate$===s);checkSlotFallbackVisibility=!0,s["s-sn"]=s["s-sn"]||c,y?(y.$nodeToRelocate$["s-sh"]=a["s-hn"],y.$slotRefNode$=a):(s["s-sh"]=a["s-hn"],relocateNodes.push({$slotRefNode$:a,$nodeToRelocate$:s})),s["s-sr"]&&relocateNodes.map(w=>{isNodeLocatedInSlot(w.$nodeToRelocate$,s["s-sn"])&&(y=relocateNodes.find(C=>C.$nodeToRelocate$===s),y&&!w.$slotRefNode$&&(w.$slotRefNode$=y.$slotRefNode$))})}else relocateNodes.some(y=>y.$nodeToRelocate$===s)||relocateNodes.push({$nodeToRelocate$:s})}1===a.nodeType&&markSlotContentForRelocation(a)}},isNodeLocatedInSlot=(o,s)=>1===o.nodeType?null===o.getAttribute("slot")&&""===s||o.getAttribute("slot")===s:o["s-sn"]===s||""===s,nullifyVNodeRefs=o=>{o.$attrs$&&o.$attrs$.ref&&o.$attrs$.ref(null),o.$children$&&o.$children$.map(nullifyVNodeRefs)},insertBefore=(o,s,r)=>{const i=o?.insertBefore(s,r);return updateElementScopeIds(s,o),i},findScopeIds=o=>{const s=[];return o&&s.push(...o["s-scs"]||[],o["s-si"],o["s-sc"],...findScopeIds(o.parentElement)),s},updateElementScopeIds=(o,s,r=!1)=>{var i;if(o&&s&&1===o.nodeType){const a=new Set(findScopeIds(s).filter(Boolean));if(a.size&&(null==(i=o.classList)||i.add(...o["s-scs"]=[...a]),o["s-ol"]||r))for(const c of Array.from(o.childNodes))updateElementScopeIds(c,o,!0)}},renderVdom=(o,s,r=!1)=>{var i,a,c,y,w;const C=o.$hostElement$,T=o.$cmpMeta$,S=o.$vnode$||newVNode(null,null),A=isHost(s)?s:h(null,null,s);if(hostTagName=C.tagName,T.$attrsToReflect$&&(A.$attrs$=A.$attrs$||{},T.$attrsToReflect$.map(([I,N])=>A.$attrs$[N]=C[I])),r&&A.$attrs$)for(const I of Object.keys(A.$attrs$))C.hasAttribute(I)&&!["key","ref","style","class"].includes(I)&&(A.$attrs$[I]=C[I]);if(A.$tag$=null,A.$flags$|=4,o.$vnode$=A,A.$elm$=S.$elm$=C.shadowRoot||C,scopeId=C["s-sc"],useNativeShadowDom=!!(1&T.$flags$),contentRef=C["s-cr"],checkSlotFallbackVisibility=!1,patch(S,A,r),plt.$flags$|=1,checkSlotRelocate){markSlotContentForRelocation(A.$elm$);for(const I of relocateNodes){const N=I.$nodeToRelocate$;if(!N["s-ol"]){const K=doc.createTextNode("");K["s-nr"]=N,insertBefore(N.parentNode,N["s-ol"]=K,N)}}for(const I of relocateNodes){const N=I.$nodeToRelocate$,K=I.$slotRefNode$;if(K){const Z=K.parentNode;let ne=K.nextSibling;{let be=null==(i=N["s-ol"])?void 0:i.previousSibling;for(;be;){let me=null!=(a=be["s-nr"])?a:null;if(me&&me["s-sn"]===N["s-sn"]&&Z===me.parentNode){for(me=me.nextSibling;me===N||me?.["s-sr"];)me=me?.nextSibling;if(!me||!me["s-nr"]){ne=me;break}}be=be.previousSibling}}(!ne&&Z!==N.parentNode||N.nextSibling!==ne)&&N!==ne&&(!N["s-hn"]&&N["s-ol"]&&(N["s-hn"]=N["s-ol"].parentNode.nodeName),insertBefore(Z,N,ne),1===N.nodeType&&(N.hidden=null!=(c=N["s-ih"])&&c)),N&&"function"==typeof K["s-rf"]&&K["s-rf"](N)}else 1===N.nodeType&&(r&&(N["s-ih"]=null!=(y=N.hidden)&&y),N.hidden=!0)}}if(checkSlotFallbackVisibility&&updateFallbackSlotVisibility(A.$elm$),plt.$flags$&=-2,relocateNodes.length=0,BUILD.experimentalScopedSlotChanges&&2&T.$flags$)for(const I of A.$elm$.childNodes)I["s-hn"]===hostTagName||I["s-sh"]||(r&&null==I["s-ih"]&&(I["s-ih"]=null!=(w=I.hidden)&&w),I.hidden=!0);contentRef=void 0},attachToAncestor=(o,s)=>{},scheduleUpdate=(o,s)=>(o.$flags$|=16,attachToAncestor(o,o.$ancestorComponent$),writeTask(()=>dispatchHooks(o,s))),dispatchHooks=(o,s)=>{const r=o.$hostElement$,i=createTime("scheduleUpdate",o.$cmpMeta$.$tagName$),a=r;if(!a)throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let c;return c=safeCall(a,s?"componentWillLoad":"componentWillUpdate"),c=enqueue(c,()=>safeCall(a,"componentWillRender")),i(),enqueue(c,()=>updateComponent(o,a,s))},enqueue=(o,s)=>isPromisey(o)?o.then(s).catch(r=>{console.error(r),s()}):s(),isPromisey=o=>o instanceof Promise||o&&o.then&&"function"==typeof o.then,updateComponent=function(){var o=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r,i){const a=s.$hostElement$,c=createTime("update",s.$cmpMeta$.$tagName$);i&&attachStyles(s);const y=createTime("render",s.$cmpMeta$.$tagName$);callRender(s,r,a,i),y(),c(),postUpdateComponent(s)});return function(r,i,a){return o.apply(this,arguments)}}(),renderingRef=null,callRender=(o,s,r,i)=>{try{renderingRef=s,s=s.render&&s.render(),o.$flags$&=-17,o.$flags$|=2,(BUILD.hasRenderFn||BUILD.reflect)&&(BUILD.vdomRender||BUILD.reflect)&&(BUILD.hydrateServerSide||renderVdom(o,s,i))}catch(a){consoleError(a,o.$hostElement$)}return renderingRef=null,null},getRenderingRef=()=>renderingRef,postUpdateComponent=o=>{const r=o.$hostElement$,i=createTime("postUpdate",o.$cmpMeta$.$tagName$),a=r;safeCall(a,"componentDidRender"),64&o.$flags$?(safeCall(a,"componentDidUpdate"),i()):(o.$flags$|=64,safeCall(a,"componentDidLoad"),i())},forceUpdate=o=>{{const s=getHostRef(o),r=s.$hostElement$.isConnected;return r&&2==(18&s.$flags$)&&scheduleUpdate(s,!1),r}},safeCall=(o,s,r)=>{if(o&&o[s])try{return o[s](r)}catch(i){consoleError(i)}},getValue=(o,s)=>getHostRef(o).$instanceValues$.get(s),setValue=(o,s,r,i)=>{const a=getHostRef(o),c=o,y=a.$instanceValues$.get(s),w=a.$flags$,C=c;r=parsePropertyValue(r,i.$members$[s][0]);const T=Number.isNaN(y)&&Number.isNaN(r);if(r!==y&&!T){if(a.$instanceValues$.set(s,r),i.$watchers$&&128&w){const S=i.$watchers$[s];S&&S.map(A=>{try{C[A](r,y,s)}catch(I){consoleError(I,c)}})}if(2==(18&w)){if(C.componentShouldUpdate&&!1===C.componentShouldUpdate(r,y,s))return;scheduleUpdate(a,!1)}}},proxyComponent=(o,s,r)=>{var i,a;const c=o.prototype;if(s.$members$||s.$watchers$||o.watchers){o.watchers&&!s.$watchers$&&(s.$watchers$=o.watchers);const y=Object.entries(null!=(i=s.$members$)?i:{});y.map(([w,[C]])=>{(31&C||32&C)&&Object.defineProperty(c,w,{get(){return getValue(this,w)},set(T){setValue(this,w,T,s)},configurable:!0,enumerable:!0})});{const w=new Map;c.attributeChangedCallback=function(C,T,S){plt.jmp(()=>{var A;const I=w.get(C);if(this.hasOwnProperty(I))S=this[I],delete this[I];else{if(c.hasOwnProperty(I)&&"number"==typeof this[I]&&this[I]==S)return;if(null==I){const N=getHostRef(this),K=N?.$flags$;if(K&&!(8&K)&&128&K&&S!==T){const Z=this,ne=null==(A=s.$watchers$)?void 0:A[C];ne?.forEach(be=>{null!=Z[be]&&Z[be].call(Z,S,T,C)})}return}}this[I]=(null!==S||"boolean"!=typeof this[I])&&S})},o.observedAttributes=Array.from(new Set([...Object.keys(null!=(a=s.$watchers$)?a:{}),...y.filter(([C,T])=>15&T[0]).map(([C,T])=>{var S;const A=T[1]||C;return w.set(A,C),512&T[0]&&(null==(S=s.$attrsToReflect$)||S.push([C,A])),A})]))}}return o},initializeComponent=function(){var o=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r,i,a){let c;if(!(32&r.$flags$)&&(r.$flags$|=32,c=s.constructor,customElements.whenDefined(s.localName).then(()=>r.$flags$|=128),c&&c.style)){let y;"string"==typeof c.style?y=c.style:"string"!=typeof c.style&&(r.$modeName$=computeMode(s),r.$modeName$&&(y=c.style[r.$modeName$]));const w=getScopeId(i,r.$modeName$);if(!styles.has(w)){const C=createTime("registerStyles",i.$tagName$);registerStyle(w,y,!!(1&i.$flags$)),C()}}scheduleUpdate(r,!0)});return function(r,i,a,c){return o.apply(this,arguments)}}(),fireConnectedCallback=o=>{},connectedCallback=o=>{if(!(1&plt.$flags$)){const s=getHostRef(o),r=s.$cmpMeta$,i=createTime("connectedCallback",r.$tagName$);1&s.$flags$?(addHostEventListeners(o,s,r.$listeners$),s?.$lazyInstance$?fireConnectedCallback(s.$lazyInstance$):s?.$onReadyPromise$&&s.$onReadyPromise$.then(()=>fireConnectedCallback(s.$lazyInstance$))):(s.$flags$|=1,12&r.$flags$&&setContentReference(o),r.$members$&&Object.entries(r.$members$).map(([a,[c]])=>{if(31&c&&o.hasOwnProperty(a)){const y=o[a];delete o[a],o[a]=y}}),initializeComponent(o,s,r)),i()}},setContentReference=o=>{const s=o["s-cr"]=doc.createComment("");s["s-cn"]=!0,insertBefore(o,s,o.firstChild)},disconnectedCallback=function(){var o=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s){if(!(1&plt.$flags$)){const r=getHostRef(s);r.$rmListeners$&&(r.$rmListeners$.map(i=>i()),r.$rmListeners$=void 0)}});return function(r){return o.apply(this,arguments)}}(),proxyCustomElement=(o,s)=>{const r={$flags$:s[0],$tagName$:s[1]};r.$members$=s[2],r.$listeners$=s[3],r.$watchers$=o.$watchers$,r.$attrsToReflect$=[];const i=o.prototype.connectedCallback,a=o.prototype.disconnectedCallback;return Object.assign(o.prototype,{__registerHost(){registerHost(this,r)},connectedCallback(){const c=getHostRef(this);addHostEventListeners(this,c,r.$listeners$),connectedCallback(this),i&&i.call(this)},disconnectedCallback(){disconnectedCallback(this),a&&a.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${r.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else this.attachShadow({mode:"open",delegatesFocus:!!(16&r.$flags$)})}}),o.is=r.$tagName$,proxyComponent(o,r)},Fragment=(o,s)=>s,addHostEventListeners=(o,s,r,i)=>{r&&r.map(([a,c,y])=>{const w=getHostListenerTarget(o,a),C=hostListenerProxy(s,y),T=hostListenerOpts(a);plt.ael(w,c,C,T),(s.$rmListeners$=s.$rmListeners$||[]).push(()=>plt.rel(w,c,C,T))})},hostListenerProxy=(o,s)=>r=>{try{BUILD.lazyLoad||o.$hostElement$[s](r)}catch(i){consoleError(i)}},getHostListenerTarget=(o,s)=>4&s?doc:8&s?win:16&s?doc.body:o,hostListenerOpts=o=>supportsListenerOptions?{passive:!!(1&o),capture:!!(2&o)}:!!(2&o),CURRENT_MODULE,METHOD_MODULE,o;o=CURRENT_MODULE||(CURRENT_MODULE={}),o.WELCOME="welcome",o.WELCOME_LOGIN="welcome-login",o.WELCOME_SIGNUP="welcome-signup",o.INFO="info",o.LOGIN_BUNKER_URL="login-bunker-url",o.LOGIN_READ_ONLY="login-read-only",o.CONFIRM_LOGOUT="confirm-logout",o.IMPORT_FLOW="import",o.IMPORT_OTP="import-otp",o.LOGIN="login",o.SIGNUP="signup",o.LOCAL_SIGNUP="local-signup",o.EXTENSION="extension",o.LOADING="loading",o.PREVIOUSLY_LOGGED="switch-account",o.LOGIN_OTP="otp",o.CONNECT="connect",o.CONNECTION_STRING="connection-string",o.IFRAME="iframe",function(o){o.LOGIN="login",o.SIGNUP="signup",o.LOGOUT="logout",o.CONFIRM="confirm"}(METHOD_MODULE||(METHOD_MODULE={}));const appendToMap=(o,s,r)=>{const i=o.get(s);i?i.includes(r)||i.push(r):o.set(s,[r])},debounce=(o,s)=>{let r;return(...i)=>{r&&clearTimeout(r),r=setTimeout(()=>{r=0,o(...i)},s)}},isConnected=o=>!("isConnected"in o)||o.isConnected,cleanupElements=debounce(o=>{for(let s of o.keys())o.set(s,o.get(s).filter(isConnected))},2e3),stencilSubscription=()=>{if("function"!=typeof getRenderingRef)return{};const o=new Map;return{dispose:()=>o.clear(),get:s=>{const r=getRenderingRef();r&&appendToMap(o,s,r)},set:s=>{const r=o.get(s);r&&o.set(s,r.filter(forceUpdate)),cleanupElements(o)},reset:()=>{o.forEach(s=>s.forEach(forceUpdate)),cleanupElements(o)}}},unwrap=o=>"function"==typeof o?o():o,createObservableMap=(o,s=(r,i)=>r!==i)=>{const r=unwrap(o);let i=new Map(Object.entries(r??{}));const a={dispose:[],get:[],set:[],reset:[]},c=()=>{var S;i=new Map(Object.entries(null!==(S=unwrap(o))&&void 0!==S?S:{})),a.reset.forEach(A=>A())},y=S=>(a.get.forEach(A=>A(S)),i.get(S)),w=(S,A)=>{const I=i.get(S);s(A,I,S)&&(i.set(S,A),a.set.forEach(N=>N(S,A,I)))},C=typeof Proxy>"u"?{}:new Proxy(r,{get:(S,A)=>y(A),ownKeys:S=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(S,A)=>i.has(A),set:(S,A,I)=>(w(A,I),!0)}),T=(S,A)=>(a[S].push(A),()=>{removeFromArray(a[S],A)});return{state:C,get:y,set:w,on:T,onChange:(S,A)=>{const I=T("set",(K,Z)=>{K===S&&A(Z)}),N=T("reset",()=>A(unwrap(o)[S]));return()=>{I(),N()}},use:(...S)=>{const A=S.reduce((I,N)=>(N.set&&I.push(T("set",N.set)),N.get&&I.push(T("get",N.get)),N.reset&&I.push(T("reset",N.reset)),N.dispose&&I.push(T("dispose",N.dispose)),I),[]);return()=>A.forEach(I=>I())},dispose:()=>{a.dispose.forEach(S=>S()),c()},reset:c,forceUpdate:S=>{const A=i.get(S);a.set.forEach(I=>I(S,A,A))}}},removeFromArray=(o,s)=>{const r=o.indexOf(s);r>=0&&(o[r]=o[o.length-1],o.length--)},createStore=(o,s)=>{const r=createObservableMap(o,s);return r.use(stencilSubscription()),r},{state,onChange}=createStore({screen:CURRENT_MODULE.WELCOME,prevScreen:CURRENT_MODULE.WELCOME,path:[CURRENT_MODULE.WELCOME],error:"",isLoading:!1,isLoadingExtension:!1,isOTP:!1,authUrl:"",iframeUrl:"",localSignup:!1,nlSignin:{loginName:""},nlSignup:{signupName:"",domain:"",servers:[{name:"@nsec.app",value:"nsec.app"},{name:"@highlighter.com",value:"highlighter.com"}]},nlSigninBunkerUrl:{loginName:""},nlSigninReadOnly:{loginName:""},nlSigninOTP:{loginName:"",code:""},nlImport:null});onChange("screen",()=>{state.error="",state.nlSignin.loginName="",state.nlSignup.signupName="",state.nlSignup.domain=""});const baseCss="/*! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com*/*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;color:#6b7280;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{--tw-shadow:0 0 #0000;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;print-color-adjust:exact}[multiple],[size]:where(select:not([size=\"1\"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;print-color-adjust:exact;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E\")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.block{display:block}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.theme-default .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-default .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(31 41 55/var(--tw-bg-opacity))}.theme-default .nl-description,.theme-default .nl-logo,.theme-default .nl-title{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-description,.theme-default .dark .nl-logo,.theme-default .dark .nl-title{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.theme-default .nl-description a{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity));text-decoration-line:underline}.theme-default .dark .nl-description a{--tw-text-opacity:1;color:rgb(191 219 254/var(--tw-text-opacity));text-decoration-line:underline}.theme-default .nl-action-button{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-default .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .dark .nl-action-button{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-default .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.theme-default .nl-title{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-title{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.theme-default .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(229 231 235/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.theme-default .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));border-color:rgb(55 65 81/var(--tw-border-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-default .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.theme-default .nl-divider{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .nl-divider:before{border-top-width:1px}.theme-default .nl-divider:after,.theme-default .nl-divider:before{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity));content:var(--tw-content)}.theme-default .dark .nl-divider{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.theme-default .dark .nl-divider:after,.theme-default .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity));content:var(--tw-content)}.theme-default .nl-footer{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-footer{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.theme-default .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-default .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-default .nl-input{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-default .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity));color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.theme-default .nl-select{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-default .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity));color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.theme-default .nl-select-list{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.theme-default .nl-select-option{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.theme-default .nl-select-option.active-option{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity));color:rgb(30 58 138/var(--tw-text-opacity))}.theme-default .dark .nl-select-option{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-default .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-default .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-default .nl-banner{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(229 231 235/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-banner{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));border-color:rgb(55 65 81/var(--tw-border-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-ocean .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(191 219 254/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-ocean .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(8 47 73/var(--tw-bg-opacity))}.theme-ocean .nl-description,.theme-ocean .nl-logo,.theme-ocean .nl-title{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .dark .nl-description,.theme-ocean .dark .nl-logo,.theme-ocean .dark .nl-title{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .nl-action-button{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-ocean .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .dark .nl-action-button{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-ocean .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity))}.theme-ocean .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(224 242 254/var(--tw-bg-opacity));border-color:rgb(186 230 253/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.theme-ocean .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(7 89 133/var(--tw-bg-opacity));border-color:rgb(8 47 73/var(--tw-border-opacity));color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity))}.theme-ocean .nl-divider{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .nl-divider:after,.theme-ocean .nl-divider:before{--tw-border-opacity:1;border-color:rgb(8 47 73/var(--tw-border-opacity));content:var(--tw-content)}.theme-ocean .dark .nl-divider{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .dark .nl-divider:after,.theme-ocean .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity));content:var(--tw-content)}.theme-ocean .nl-footer{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .dark .nl-footer{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-ocean .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-ocean .nl-input{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(14 165 233/var(--tw-ring-opacity));border-color:rgb(14 165 233/var(--tw-border-opacity))}.theme-ocean .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity));color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(2 132 199/var(--tw-ring-opacity))}.theme-ocean .nl-select{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(14 165 233/var(--tw-ring-opacity));border-color:rgb(14 165 233/var(--tw-border-opacity))}.theme-ocean .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity));color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(2 132 199/var(--tw-ring-opacity))}.theme-ocean .nl-select-list{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(3 105 161/var(--tw-bg-opacity))}.theme-ocean .nl-select-option{--tw-text-opacity:1;color:rgb(7 89 133/var(--tw-text-opacity))}.theme-ocean .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(186 230 253/var(--tw-bg-opacity))}.theme-ocean .dark .nl-select-option{--tw-text-opacity:1;color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(7 89 133/var(--tw-bg-opacity));color:rgb(125 211 252/var(--tw-text-opacity))}.theme-ocean .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-ocean .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-ocean .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-ocean .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-lemonade .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(187 247 208/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-lemonade .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(5 46 22/var(--tw-bg-opacity))}.theme-lemonade .nl-description,.theme-lemonade .nl-logo,.theme-lemonade .nl-title{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .dark .nl-description,.theme-lemonade .dark .nl-logo,.theme-lemonade .dark .nl-title{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .nl-action-button{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-lemonade .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-action-button{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-lemonade .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity))}.theme-lemonade .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(220 252 231/var(--tw-bg-opacity));border-color:rgb(187 247 208/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity));border-color:rgb(5 46 22/var(--tw-border-opacity));color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity))}.theme-lemonade .nl-divider{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .nl-divider:after,.theme-lemonade .nl-divider:before{--tw-border-opacity:1;border-color:rgb(5 46 22/var(--tw-border-opacity));content:var(--tw-content)}.theme-lemonade .dark .nl-divider{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .dark .nl-divider:after,.theme-lemonade .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity));content:var(--tw-content)}.theme-lemonade .nl-footer{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .dark .nl-footer{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-lemonade .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-lemonade .nl-input{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity));border-color:rgb(34 197 94/var(--tw-border-opacity))}.theme-lemonade .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity));color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.theme-lemonade .nl-select{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity));border-color:rgb(34 197 94/var(--tw-border-opacity))}.theme-lemonade .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity));color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.theme-lemonade .nl-select-list{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.theme-lemonade .nl-select-option{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.theme-lemonade .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(187 247 208/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-select-option{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity));color:rgb(134 239 172/var(--tw-text-opacity))}.theme-lemonade .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-lemonade .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-lemonade .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-lemonade .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-purple .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(233 213 255/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-purple .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(59 7 100/var(--tw-bg-opacity))}.theme-purple .nl-description,.theme-purple .nl-logo,.theme-purple .nl-title{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .dark .nl-description,.theme-purple .dark .nl-logo,.theme-purple .dark .nl-title{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .nl-action-button{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-purple .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-action-button{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-purple .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity))}.theme-purple .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(243 232 255/var(--tw-bg-opacity));border-color:rgb(233 213 255/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(250 245 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(107 33 168/var(--tw-bg-opacity));border-color:rgb(59 7 100/var(--tw-border-opacity));color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity))}.theme-purple .nl-divider{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .nl-divider:after,.theme-purple .nl-divider:before{--tw-border-opacity:1;border-color:rgb(59 7 100/var(--tw-border-opacity));content:var(--tw-content)}.theme-purple .dark .nl-divider{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .dark .nl-divider:after,.theme-purple .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(233 213 255/var(--tw-border-opacity));content:var(--tw-content)}.theme-purple .nl-footer{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .dark .nl-footer{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-purple .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-purple .nl-input{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-purple .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity));color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 51 234/var(--tw-ring-opacity))}.theme-purple .nl-select{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-purple .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity));color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 51 234/var(--tw-ring-opacity))}.theme-purple .nl-select-list{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(126 34 206/var(--tw-bg-opacity))}.theme-purple .nl-select-option{--tw-text-opacity:1;color:rgb(107 33 168/var(--tw-text-opacity))}.theme-purple .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(233 213 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-select-option{--tw-text-opacity:1;color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(107 33 168/var(--tw-bg-opacity));color:rgb(216 180 254/var(--tw-text-opacity))}.theme-purple .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-purple .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-purple .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-purple .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-crab .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(254 226 226/var(--tw-bg-opacity));border-color:rgb(254 202 202/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(69 10 10/var(--tw-text-opacity))}.theme-crab .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.theme-crab .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity));border-color:rgb(69 10 10/var(--tw-border-opacity));color:rgb(254 202 202/var(--tw-text-opacity))}.theme-crab .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity))}.show-slow{display:none;opacity:0;transition:.1s}.isOpen .show-slow{display:block;opacity:1;transition:.2s;transition-delay:.2s}:host{display:block}.animate-spin-loading{animation:spin2 1s linear infinite;background:var(--qa-dark-color)}@keyframes spin2{to{transform:rotate(1turn)}}.active{animation:blink .7s infinite alternate}@keyframes blink{0%{opacity:1}to{opacity:0}}.static{position:static}.inline-flex{display:inline-flex}.h-4{height:16px}.w-4{width:16px}.w-full{width:100%}.flex-shrink-0{flex-shrink:0}.items-center{align-items:center}.justify-center{justify-content:center}.gap-x-2{column-gap:8px}.rounded-lg{border-radius:.5rem}.px-3{padding-left:12px;padding-right:12px}.py-2\\.5{padding-bottom:10px;padding-top:10px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:opacity-50:disabled{opacity:.5}.dark\\:focus\\:outline-none:focus:is(.dark *){outline:2px solid transparent;outline-offset:2px}.dark\\:focus\\:ring-1:focus:is(.dark *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:focus\\:ring-gray-600:focus:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.right-0{right:0}.right-2{right:8px}.top-2{top:8px}.top-52{top:208px}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:8px}.ml-0{margin-left:0}.ml-\\[2px\\]{margin-left:2px}.mr-0{margin-right:0}.mr-2{margin-right:8px}.mr-3\\.5{margin-right:14px}.mt-2{margin-top:8px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-12{height:48px}.h-5{height:20px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-\\[46px\\]{height:46px}.h-auto{height:auto}.w-0{width:0}.w-12{width:48px}.w-16{width:64px}.w-5{width:20px}.w-52{width:208px}.w-6{width:24px}.w-7{width:28px}.w-8{width:32px}.w-\\[48px\\]{width:48px}.min-w-40{min-width:160px}.max-w-40{max-width:160px}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.place-items-center{place-items:center}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-nowrap{text-wrap:nowrap}.rounded-full{border-radius:9999px}.rounded-r-lg{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.rounded-r-none{border-bottom-right-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-\\[0px\\]{border-width:0}.border-\\[2px\\]{border-width:2px}.border-current{border-color:currentColor}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-3{padding:12px}.px-2{padding-left:8px;padding-right:8px}.pl-\\[11px\\]{padding-left:11px}.text-center{text-align:center}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:right-2:hover{right:8px}.hover\\:rounded-r-lg:hover{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.dark\\:text-gray-300:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.left-0{left:0}.mt-1{margin-top:4px}.max-w-6{max-width:24px}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.gap-2{gap:8px}.gap-x-3\\.5{column-gap:14px}.overflow-hidden,.truncate{overflow:hidden}.border-t-\\[1px\\]{border-top-width:1px}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.p-2{padding:8px}.px-4{padding-left:16px;padding-right:16px}.py-2{padding-bottom:8px;padding-top:8px}.py-3{padding-bottom:12px;padding-top:12px}.pt-2{padding-top:8px}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:-top-4:before{content:var(--tw-content);top:-16px}.before\\:start-0:before{content:var(--tw-content);inset-inline-start:0}.before\\:h-4:before{content:var(--tw-content);height:16px}.before\\:w-full:before{content:var(--tw-content);width:100%}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:-bottom-4:after{bottom:-16px;content:var(--tw-content)}.after\\:start-0:after{content:var(--tw-content);inset-inline-start:0}.after\\:h-4:after{content:var(--tw-content);height:16px}.after\\:w-full:after{content:var(--tw-content);width:100%}.first\\:border-none:first-child{border-style:none}.first\\:pt-0:first-child{padding-top:0}.dark\\:border-transparent:is(.dark *){border-color:transparent}.w-auto{width:auto}.rounded-xl{border-radius:.75rem}.border-orange-300{--tw-border-opacity:1;border-color:rgb(253 186 116/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-teal-300{--tw-border-opacity:1;border-color:rgb(94 234 212/var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity:1;border-color:rgb(253 224 71/var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-teal-100{--tw-bg-opacity:1;background-color:rgb(204 251 241/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.px-1{padding-left:4px;padding-right:4px}.text-\\[10px\\]{font-size:10px}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-teal-600{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.start-0{inset-inline-start:0}.top-0{top:0}.z-\\[80\\]{z-index:80}.z-\\[81\\]{z-index:81}.h-full{height:100%}.max-w-96{max-width:384px}.gap-1{gap:4px}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:0.75}.p-4{padding:16px}.pt-3,.py-3{padding-top:12px}.text-base{font-size:16px;line-height:24px}.font-light{font-weight:300}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}@media (min-width:640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:512px}}.ml-auto,.mx-auto{margin-left:auto}.mr-auto{margin-right:auto}.mt-3{margin-top:12px}.w-60{width:240px}.text-4xl{font-size:36px;line-height:40px}.text-lg{font-size:18px;line-height:28px}.mt-0{margin-top:0}.max-h-0{max-height:0}.max-h-\\[500px\\]{max-height:500px}.max-w-52{max-width:208px}.max-w-7{max-width:28px}.gap-0\\.5{gap:2px}.gap-3{gap:12px}.overflow-hidden{overflow:hidden}.border-b-\\[1px\\]{border-bottom-width:1px}.border-dashed{border-style:dashed}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.pb-1{padding-bottom:4px}.pb-1\\.5{padding-bottom:6px}.pb-5{padding-bottom:20px}.pe-4{padding-inline-end:16px}.ps-4{padding-inline-start:16px}.pt-5{padding-top:20px}.text-3xl{font-size:30px;line-height:36px}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.decoration-dashed{text-decoration-style:dashed}.duration-\\[0\\.25s\\]{transition-duration:.25s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.hover\\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.mb-0\\.5{margin-bottom:2px}.mb-5{margin-bottom:20px}.ml-auto{margin-left:auto}.w-72{width:288px}.max-w-72{max-width:288px}.border-\\[3px\\]{border-width:3px}.pb-2{padding-bottom:8px}.text-2xl{font-size:24px;line-height:32px}.mb-10{margin-bottom:40px}.mt-10{margin-top:40px}.h-20{height:80px}.w-20{width:80px}.border-\\[4px\\]{border-width:4px}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.dark\\:text-green-200:is(.dark *){--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.pointer-events-none{pointer-events:none}.inset-y-0{bottom:0;top:0}.ps-11{padding-inline-start:44px}.peer:disabled~.peer-disabled\\:pointer-events-none{pointer-events:none}.peer:disabled~.peer-disabled\\:opacity-50{opacity:.5}.right-\\[-2px\\]{right:-2px}.right-\\[-3px\\]{right:-3px}.top-\\[-2px\\]{top:-2px}.top-\\[-3px\\]{top:-3px}.h-1\\.5{height:6px}.h-3{height:12px}.w-1\\.5{width:6px}.w-3{width:12px}.border-2{border-width:2px}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.pb-3{padding-bottom:12px}.pt-0{padding-top:0}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.hover\\:bg-gray-400:hover{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}.hover\\:text-red-600:hover{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.group:hover .group-hover\\:border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.min-w-\\[15rem\\]{min-width:15rem}.end-0{inset-inline-end:0}.h-\\[20px\\]{height:20px}.w-\\[20px\\]{width:20px}.pe-11{padding-inline-end:44px}",buttonBaseCss=baseCss,ButtonBaseStyle0=buttonBaseCss,ButtonBase=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.theme="default",this.darkMode=!1,this.titleBtn="Open modal",this.disabled=!1}componentDidRender(){const o=this.element.querySelector("svg");o&&(o.classList.add("flex-shrink-0","w-4","h-4","block"),o.removeAttribute("style"))}render(){return h("div",{key:"1048576f0a9839c56cac030b1de7899b25b5f39e",class:`theme-${this.theme}`},h("div",{key:"ea29f74a1f7e4268802c6e4aaca5867dfd2e4c9b",class:"animate-spin-loading active"}),h("button",{key:"71f84d47b11aa3971818b686f8dddb74e0d36eb0",disabled:this.disabled,type:"button",class:"nl-button py-2.5 px-3 w-full inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"},h("slot",{key:"91a91994e20dc10e3bbb2576e4214fa98533be8e",name:"icon-start"}),this.titleBtn))}get element(){return this}static get style(){return ButtonBaseStyle0}},[4,"button-base",{theme:[1025],darkMode:[1028,"dark-mode"],titleBtn:[1,"title-btn"],disabled:[4]}]);function defineCustomElement$q(){typeof customElements>"u"||["button-base"].forEach(o=>{"button-base"===o&&(customElements.get(o)||customElements.define(o,ButtonBase))})}defineCustomElement$q();const nlConfirmLogoutCss=baseCss,NlConfirmLogoutStyle0=nlConfirmLogoutCss,NlConfirmLogout$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.handleLogoutBanner=createEvent(this,"handleLogoutBanner",7),this.handleBackUpModal=createEvent(this,"handleBackUpModal",7),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.titleModal="Delete keys?",this.description="Your profile keys are stored in this browser tab and will be deleted if you log out, and your profile will be inaccessible."}handleLogout(){this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.nlCloseModal.emit()}handleCancel(){this.nlCloseModal.emit()}handleBackUp(){state.path=[CURRENT_MODULE.IMPORT_FLOW]}render(){return h("div",{key:"fe605f38f9d0a440fe53e21f19288c41e4762c22",class:"p-4 overflow-y-auto"},h("h1",{key:"84d14a59035515b2fd612d262400a038887a10d7",class:"nl-title font-bold text-center text-4xl"},this.titleModal),h("p",{key:"83ef73271c76309561be95e0207f8130d75a161c",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description),h("div",{key:"fce0f132846beb95dd9e41357f5ab87be7229a56",class:"mt-3 ml-auto mr-auto w-60 flex flex-col gap-2"},h("button-base",{key:"c4fc722a7c98d84e797963ed7fe928164411b701",onClick:()=>this.handleBackUp(),titleBtn:"Backup keys",theme:"lemonade"}),h("button-base",{key:"39df385a9a8dc3fcd74f4196d4191bc4a308a16d",onClick:()=>this.handleLogout(),theme:"crab",titleBtn:"Logout and delete keys"})))}static get style(){return NlConfirmLogoutStyle0}},[0,"nl-confirm-logout",{titleModal:[1,"title-modal"],description:[1]}]);function defineCustomElement$p(){typeof customElements>"u"||["nl-confirm-logout","button-base"].forEach(o=>{switch(o){case"nl-confirm-logout":customElements.get(o)||customElements.define(o,NlConfirmLogout$1);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$p();const nlConnectCss=baseCss,NlConnectStyle0=nlConnectCss,NlConnect=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlNostrConnect=createEvent(this,"nlNostrConnect",7),this.nlNostrConnectDefault=createEvent(this,"nlNostrConnectDefault",7),this.titleWelcome="Connect to key store",this.authMethods=[],this.hasOTP=!1,this.connectionStringServices=[],this.isOpenAdvancedLogin=!1}handleChangeScreen(o){state.path=[...state.path,o]}handleOpenAdvanced(){this.isOpenAdvancedLogin=!this.isOpenAdvancedLogin}allowAuthMethod(o){return!this.authMethods.length||this.authMethods.includes(o)}componentWillLoad(){}handleOpenLink(o,s){o.preventDefault(),this.nlNostrConnect.emit(s)}handleConnectionString(){this.nlNostrConnectDefault.emit(),this.handleChangeScreen(CURRENT_MODULE.CONNECTION_STRING)}render(){const o=(this.isOpenAdvancedLogin?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-blue-500";return h(Fragment,{key:"a85f0a26b61b7e321025b7dd96e459a6c43958a9"},h("div",{key:"7af7ae501bed1bf028465e65f3caa3824a3948ca",class:"p-4 overflow-y-auto"},h("h1",{key:"7795a15c6d525d1b7ad0e6da63ad1889a64d6459",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome)),h("div",{key:"cf5b947b22757334cbf92059dfc7ffaef0c95951",class:"p-4"},!!this.connectionStringServices.length&&h("div",{key:"c5de66ab74b14d69993dc20cf123777a3b8a016e",class:"max-w-96 mx-auto pt-5"},h("p",{key:"f7ac9e48789870264707bf39e3f1b2d73218aad5",class:"nl-description font-medium text-sm pb-1.5"},"Select key store:"),h("ul",{key:"07c1bd1bf9ffaa80f0868481ce22a8d5c73a345b",class:"p-2 rounded-lg border border-gray-200 flex flex-col w-full gap-0.5"},this.connectionStringServices.map(s=>h("li",null,h("a",{href:s.link,target:"_blank",onClick:r=>this.handleOpenLink(r,s),class:"flex items-center gap-x-3.5 w-full hover:bg-gray-300 flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm justify-between"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s.img?h("img",{class:"w-full rounded-full",src:s.img,alt:s.name}):h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#9ca3af",class:"w-4 h-4 block"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},s.name)))))))),h("div",{key:"2a9094524ef58b138d04411484264a40ce42db7c",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"d833546cba5fd4a904a0123e6e760b602fda0ff7",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("div",{key:"700aa690c440f2685c9330feeb58986669b46f85",class:"max-w-52 mx-auto pb-5"},(this.allowAuthMethod("connect")||this.allowAuthMethod("readOnly"))&&h("div",{key:"058706b54702ac9ca3cd74a8096f521c211e5a16",class:"flex justify-center"},h("div",{key:"073f2567734817ba3cc8f34b32fa1a284d2b8ab1",onClick:()=>this.handleOpenAdvanced(),class:"text-blue-500 mt-3 decoration-dashed cursor-pointer inline-flex gap-2 items-center pb-1 border-dashed border-b-[1px] border-blue-500 text-sm font-light"},"Advanced",h("svg",{key:"d433319920bc751f771086bf726a3d5f1e31320e",class:o,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"4cc3a36807664b0402a26420c4979a68ba77df9c",d:"m6 9 6 6 6-6"})))),h("div",{key:"76dc95f39af78bd124e5f61309d96ee443d53f2f",class:(this.isOpenAdvancedLogin?"max-h-[500px] mt-3 duration-300":"max-h-0 mt-0 duration-[0.25s]")+" transition-max-height ease-in flex gap-3 flex-col overflow-hidden"},this.allowAuthMethod("connect")&&h("button-base",{key:"616d8de815233bc6264b51fa849fbf26d98758ed",titleBtn:"User name",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN)},h("svg",{key:"fa2f51ca2a111920d15a87106258c55a7b1961ff",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},h("path",{key:"288dee2f9c21bde4471a7eebbf94c231c1acad12","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"}))),this.allowAuthMethod("connect")&&h("button-base",{key:"8298c3ad602e2bc279ab084a5e5ea311fdc193e9",titleBtn:"Connection string",onClick:()=>this.handleConnectionString()},h("svg",{key:"b7f83a4b7fae0ff0965c2493aa70b09e1b1ab3d8",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"d580fdbb1eee16439ffa4a46fa4f30cafbf0fd36","stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 3.75 9.375v-4.5ZM3.75 14.625c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5a1.125 1.125 0 0 1-1.125-1.125v-4.5ZM13.5 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 13.5 9.375v-4.5Z"}),h("path",{key:"ab90c206914cb2d6cae80b7e36ce45653c65b9b3","stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 6.75h.75v.75h-.75v-.75ZM6.75 16.5h.75v.75h-.75v-.75ZM16.5 6.75h.75v.75h-.75v-.75ZM13.5 13.5h.75v.75h-.75v-.75ZM13.5 19.5h.75v.75h-.75v-.75ZM19.5 13.5h.75v.75h-.75v-.75ZM19.5 19.5h.75v.75h-.75v-.75ZM16.5 16.5h.75v.75h-.75v-.75Z"}))),this.allowAuthMethod("connect")&&h("button-base",{key:"c923265e7da4bb6815cf91c54a4b393c19f3d16d",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_BUNKER_URL),titleBtn:"Bunker URL"},h("svg",{key:"8c5bd04e91407a83d0021e4413ee58973b57aa54",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"d115abfce6eee55572316a4cc2a808a176d17f46","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))))))}static get style(){return NlConnectStyle0}},[0,"nl-connect",{titleWelcome:[1,"title-welcome"],authMethods:[16],hasOTP:[4,"has-o-t-p"],connectionStringServices:[16],isOpenAdvancedLogin:[32]}]);function defineCustomElement$o(){typeof customElements>"u"||["nl-connect","button-base"].forEach(o=>{switch(o){case"nl-connect":customElements.get(o)||customElements.define(o,NlConnect);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$o();const nlIframeCss=baseCss,NlIframeStyle0=nlIframeCss,NlConfirmLogout=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.titleModal="Confirm",this.description="Your profile keys are stored in this browser tab and will be deleted if you log out, and your profile will be inaccessible.",this.iframeUrl=""}handleCancel(){this.nlCloseModal.emit()}render(){return h("div",{key:"36ee9fd43bbb16768b7634783781ecffb1c9432a",class:"p-4 overflow-y-auto"},h("div",{key:"1634e1fd37bc44030f22bfdab9f7deec2806731b",class:"mt-3 flex flex-col gap-2"},this.iframeUrl&&h("iframe",{key:"2b1ab3032b152fb109f3531bb7600bb76aa1a562",src:this.iframeUrl,style:{width:"100%",height:"600px",border:"1px solid #ccc",borderRadius:"8px"}})))}static get style(){return NlIframeStyle0}},[0,"nl-iframe",{titleModal:[1,"title-modal"],description:[1],iframeUrl:[1,"iframe-url"]}]);function defineCustomElement$n(){typeof customElements>"u"||["nl-iframe"].forEach(o=>{"nl-iframe"===o&&(customElements.get(o)||customElements.define(o,NlConfirmLogout))})}defineCustomElement$n();const nlSelectCss=baseCss,NlSelectStyle0=nlSelectCss,NlSelect=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.selectDomain=createEvent(this,"selectDomain",7),this.isOpen=!1,this.value=null,this.options=void 0,this.selected=void 0,this.mode=!1,this.darkMode=!1,this.themeState="default",this.theme="default"}handleWindowClick(){this.wrapperRef.querySelector(".listClass")&&(this.isOpen=!1)}toggleDropdown(){this.isOpen=!this.isOpen,this.calculateDropdownPosition()}watchPropHandler(o){this.themeState=o}watchModeHandler(o){this.mode=o}connectedCallback(){this.themeState=this.theme,this.mode=this.darkMode,this.value=this.options[this.selected],this.selectDomain.emit(this.value.value)}calculateDropdownPosition(){if(this.isOpen&&this.buttonRef){const o=this.buttonRef.getBoundingClientRect();this.ulRef.style.top=`${o.height}px`}}handleChange(o){this.value=o,this.isOpen=!1,this.selectDomain.emit(this.value.value)}render(){const o=(this.isOpen?"listClass":"hidden")+" min-w-[15rem] nl-select-list absolute left-0 shadow-md rounded-lg p-2 mt-1 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full",s=(this.isOpen?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-gray-500";return h("div",{key:"c86084c50712455e04682a4392e490bc0e20eb1d",class:`theme-${this.themeState}`},h("div",{key:"a90d9b4af52845a9971c39cec69c13493d511381",class:"relative",ref:r=>this.wrapperRef=r},h("button",{key:"1391137997bf8fcd0a5466cd9fa20c79b4ce27ba",ref:r=>this.buttonRef=r,onClick:()=>this.toggleDropdown(),type:"button",class:"nl-select peer py-3 px-4 flex items-center w-full justify-between border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent"},h("span",{key:"224425ab92ba3599595924972e98a0fc9cb1a189",class:"truncate overflow-hidden"},this.value.name),h("svg",{key:"8eb2a2b552cb9ea36fb1abc61d804efb423afda6",class:s,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"feea1a7f54f4a111b7bf01e3945445311b97ab82",d:"m6 9 6 6 6-6"}))),h("ul",{key:"fca4982f04f4133d5c2a2f613a7e7d977dd5c241",ref:r=>this.ulRef=r,class:o},this.options.map(r=>h("li",{onClick:()=>this.handleChange(r),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},r.name)))))}get element(){return this}static get watchers(){return{theme:["watchPropHandler"],darkMode:["watchModeHandler"]}}static get style(){return NlSelectStyle0}},[0,"nl-select",{options:[16],selected:[2],darkMode:[4,"dark-mode"],theme:[1],isOpen:[32],value:[32],mode:[32],themeState:[32]},[[8,"click","handleWindowClick"]],{theme:["watchPropHandler"],darkMode:["watchModeHandler"]}]);function defineCustomElement$m(){typeof customElements>"u"||["nl-select"].forEach(o=>{"nl-select"===o&&(customElements.get(o)||customElements.define(o,NlSelect))})}defineCustomElement$m();const nlImportFlowCss=baseCss,NlImportFlowStyle0=nlImportFlowCss,NlImportFlow$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlImportAccount=createEvent(this,"nlImportAccount",7),this.nlExportKeys=createEvent(this,"nlExportKeys",7),this.titleInfo="Back up your keys",this.titleImport="Choose a service",this.services=[],this.isContinued=!1,this.isKeyBackup=!1,this.isCopy=!1}handleDomainSelect(o){const s=this.services.find(r=>r.domain===o.detail);state.nlImport=s}handleCreateAccount(o){o.preventDefault(),this.nlImportAccount.emit(state.nlImport)}handleContinue(){this.isContinued=!0}handleContinueKeyBackup(){this.isKeyBackup=!0}copyToClipboard(){var o=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){o.nlExportKeys.emit(),o.isCopy=!0,setTimeout(()=>{o.isCopy=!1},1500)})()}render(){if(!this.isContinued&&!this.isKeyBackup)return h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},this.titleInfo),h("p",{class:"nl-description font-light text-sm pt-2 pb-2 max-w-96 mx-auto"},"Nostr profiles are controlled by cryptographic keys.",h("br",null),h("br",null),"Your keys are currently only stored in this browser tab, and may be lost if you close it.",h("br",null),h("br",null),"You should backup your keys.",h("br",null),h("br",null),"We recommend to import your keys into a key store service, to protect them and to use with other apps."),h("div",{class:"ml-auto mr-auto mb-2 w-72"},h("button-base",{onClick:()=>this.handleContinue(),titleBtn:"Import to key store"})),h("div",{class:"ml-auto mr-auto w-72"},h("button-base",{onClick:()=>this.handleContinueKeyBackup(),titleBtn:"Export keys"})));if(this.isKeyBackup)return h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},"Key export"),h("p",{class:"nl-description font-light text-sm pt-2 pb-2 max-w-96 mx-auto"},"Copy your keys and store them in a safe place, like a password manager.",h("br",null),h("br",null),"You can sign into other Nostr apps by pasting your keys into them.",h("br",null),h("br",null),"Your keys must be kept secret, never share them with anyone."),h("div",{class:"max-w-72 mx-auto"},h("div",{class:"ml-auto mr-auto mb-2 w-72"},h("button-base",{onClick:()=>this.copyToClipboard(),titleBtn:this.isCopy?"Copied!":"Copy to clipboard"}))));const o=this.services.filter(s=>s.canImport).map(s=>({name:s.domain,value:s.domain}));return h(Fragment,null,h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},this.titleImport),h("p",{class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},"Your Nostr keys will be imported into the service you choose. You will manage your keys on their website.")),h("div",{class:"max-w-72 mx-auto mb-5"},h("div",{class:"mb-0.5"},h("nl-select",{onSelectDomain:s=>this.handleDomainSelect(s),selected:0,options:o})),h("p",{class:"nl-title font-light text-sm mb-2"},"Default provider is a fine choice to start with."),h("div",{class:"ps-4 pe-4 overflow-y-auto"},h("p",{class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{disabled:state.isLoading,onClick:s=>this.handleCreateAccount(s),titleBtn:"Start importing"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlImportFlowStyle0}},[0,"nl-import-flow",{titleInfo:[1025,"title-info"],titleImport:[1,"title-import"],services:[16],isContinued:[32],isKeyBackup:[32],isCopy:[32]}]);function defineCustomElement$l(){typeof customElements>"u"||["nl-import-flow","button-base","nl-select"].forEach(o=>{switch(o){case"nl-import-flow":customElements.get(o)||customElements.define(o,NlImportFlow$1);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$l();const nlInfoCss=baseCss,NlInfoStyle0=nlInfoCss,NlInfo=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){return h("div",{key:"7463f42c27643903a9d6fb0160fbabe833679fcb",class:"p-4 overflow-y-auto"},h("svg",{key:"86c5f04f87b21553f3512d289425996b46eb6c57",class:"w-12 h-12 mx-auto mb-2",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{key:"6be61e0b2ff3d3f13e617e9b1df073fbe3b5678b",width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{key:"0c0aff7d5143022fe857de141cdae31397c3c2f4",d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),h("h1",{key:"3a89ee5051e2d74945347dec6055749cec126f27",class:"nl-title font-bold text-center text-4xl"},"Nostr ",h("span",{key:"96a49c22dffa4a30639f387a949d7695604c6a1f",class:"font-light"},"Login")),h("p",{key:"a6dded720da9db673173a1ff02bc5544e6a66d38",class:"text-green-800 dark:text-green-200 font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Version: 1.6.14"),h("p",{key:"9d9dbd36ade753d30db448139dc057921f29697d",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Learn more about Nostr"," ",h("a",{key:"1811ad4f1acda7f5235566ea6f2ce8e70c62c91c",target:"_blank",href:"https://nostr.how"},"here"),".",h("br",{key:"127a6127e71f43caa1c262c6ec8108a5a6f40774"}),"This is an"," ",h("a",{key:"0e18839f8577229533eb2d2ef00f8657e6396aa1",target:"_blank",href:"https://github.com/nostrband/nostr-login"},"open-source")," ","tool by"," ",h("a",{key:"9affd14ad9dedae3e5d269a1477343eae63cd46b",target:"_blank",href:"https://nostr.band"},"Nostr.Band"),"."))}static get style(){return NlInfoStyle0}},[0,"nl-info"]);function defineCustomElement$k(){typeof customElements>"u"||["nl-info"].forEach(o=>{"nl-info"===o&&(customElements.get(o)||customElements.define(o,NlInfo))})}defineCustomElement$k();const nlInfoExtensionCss=baseCss,NlInfoExtensionStyle0=nlInfoExtensionCss,NlInfoExtension=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){return h("div",{key:"9335feb745c6d09a213a2e771c40262036341b54",class:"p-4 overflow-y-auto"},state.isLoadingExtension?h("div",null,h("h1",{class:"nl-title font-bold text-center text-4xl"},"Signing in..."),h("div",{class:"mt-10 mb-10 ml-auto mr-auto w-20"},h("span",{slot:"icon-start",class:"animate-spin-loading ml-auto mr-auto inline-block w-20 h-20 border-[4px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"})),h("div",{class:"ps-4 pe-4 overflow-y-auto"},h("p",{class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error))):h("div",null,h("h1",{class:"nl-title font-bold text-center text-4xl"},"Install browser extension!"),h("p",{class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Try"," ",h("a",{href:"https://getalby.com",target:"_blank"},"Alby"),","," ",h("a",{href:"https://chromewebstore.google.com/detail/nos2x/kpgefcfmnafjgpblomihpgmejjdanjjp",target:"_blank"},"nos2x")," ","or"," ",h("a",{href:"https://apps.apple.com/us/app/nostore/id1666553677",target:"_blank"},"Nostore"))))}static get style(){return NlInfoExtensionStyle0}},[0,"nl-info-extension"]);function defineCustomElement$j(){typeof customElements>"u"||["nl-info-extension"].forEach(o=>{"nl-info-extension"===o&&(customElements.get(o)||customElements.define(o,NlInfoExtension))})}defineCustomElement$j();const nlLoadingCss=baseCss,NlLoadingStyle0=nlLoadingCss,NlLoading=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.stopFetchHandler=createEvent(this,"stopFetchHandler",7),this.handleContinue=createEvent(this,"handleContinue",7),this.path=void 0}handleStop(o){o.preventDefault(),this.stopFetchHandler.emit()}handleContinueClick(o){o.preventDefault(),this.handleContinue.emit()}render(){let o="Connecting...",s="Establishing connection to your key storage.";this.path===CURRENT_MODULE.LOCAL_SIGNUP?(o="Creating...",s="Publishing your profile on Nostr."):state.authUrl&&(state.isLoading?(o="Confirming...",s="Please confirm the connection in your key storage app."):(o="Almost ready!",s="Continue to confirm the connection to your key storage."));const r=this.path!==CURRENT_MODULE.LOCAL_SIGNUP,i=!state.isLoading&&state.iframeUrl&&state.authUrl,a=`${state.iframeUrl}?connect=${encodeURIComponent(state.authUrl)}`;return h("div",{key:"516866bac0ab965ad91fa153040e38cc94ecfe43",class:"p-4 overflow-y-auto"},h("h1",{key:"51fffb5a84be838536699741d19eb072d4318517",class:"nl-title font-bold text-center text-4xl"},o),h("p",{key:"8c0825a89ca531b74d1fb11fa06632b9bddf11b4",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},s),!state.authUrl&&state.isLoading&&h("div",{key:"5b39a21b600a0524d7eff2885fa9b048b76daf8b",class:"mt-10 mb-10 ml-auto mr-auto w-20"},h("span",{key:"6ac53666049efdd495197b4c57536a3e09969cdb",slot:"icon-start",class:"animate-spin-loading ml-auto mr-auto inline-block w-20 h-20 border-[4px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"})),h("div",{key:"1a7211d6d3d9f6e14ff02a3605c6c7b1d2dbff09",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"678cc1522ff896809fbc0309966497aafb308a36",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),a&&h("div",{key:"6b68b0afd47bb420e142d6cefbe5fb286a6871be",class:"mt-3 ml-auto mr-auto w-72 flex justify-center"},h("iframe",{key:"69526e3b7af7d255b00f2ba1aeb9f688261958eb",src:a,width:"180px",height:"80px",style:{display:i?"block":"none"}})),!i&&r&&h("div",{key:"ea17236efcb5ae4aebec89508337a12f682e35cd",class:"mt-3 ml-auto mr-auto w-72"},h("button-base",{key:"7c6a62128ece1a50a5e01df43f8948f95f42fab2",onClick:c=>{state.authUrl&&!state.isLoading?this.handleContinueClick(c):this.handleStop(c)},titleBtn:state.isLoading?"Cancel":"Continue"})))}static get style(){return NlLoadingStyle0}},[0,"nl-loading",{path:[1]}]);function defineCustomElement$i(){typeof customElements>"u"||["nl-loading","button-base"].forEach(o=>{switch(o){case"nl-loading":customElements.get(o)||customElements.define(o,NlLoading);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$i();const nlLocalSignupCss=baseCss,NlLocalSignupStyle0=nlLocalSignupCss,NlLocalSignup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLocalSignup=createEvent(this,"nlLocalSignup",7),this.fetchHandler=createEvent(this,"fetchHandler",7),this.titleSignup="Create Nostr profile",this.description="Choose any username, you can always change it later.",this.isAvailable=!1}handleInputChange(o){state.nlSignup.signupName=o.target.value}handleCreateAccount(o){o.preventDefault(),this.nlLocalSignup.emit(`${state.nlSignup.signupName}`)}render(){return h(Fragment,{key:"1ef0db8a3af10d6bd50c0ee084968abcef035b31"},h("div",{key:"966dbcd09fc2da235a817cbcf01b75e64ba2a3df",class:"p-4 overflow-y-auto"},h("h1",{key:"121ad8a12bb0d30785e26261993c73af716da22a",class:"nl-title font-bold text-center text-2xl"},this.titleSignup),h("p",{key:"6758bc49ee96973718cb301a96ce26949c446512",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"e8354901c534454753d055542226b56ae7a3ec67",class:"max-w-72 mx-auto"},h("div",{key:"2a84cdb7a830431318ddb3a32c10476ab7aa98c8",class:"relative mb-2"},h("input",{key:"50c84d948104ac51b647b941f1e086f4eecf03d9",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"Enter username",value:state.nlSignup.signupName}),h("div",{key:"8c52f3d644a8a0cd278af7646e9dbb0998b56afe",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"8923dc1949a04c7a10398db3c1211d00ce7fe925",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isAvailable?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"e3303cbea9146cb1a66e47d5ecf51da5a4a2e8b7","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"916d7e92cea31d802b74ce71dd202b7ae5f84ed8",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"9bb8ffd3c9a7c2d62f700af314305d6403e9b54d",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"dcd3530cb7878ec853ea1985cecfda1e03ab8011",disabled:state.isLoading,onClick:o=>this.handleCreateAccount(o),titleBtn:"Create profile"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlLocalSignupStyle0}},[0,"nl-local-signup",{titleSignup:[1,"title-signup"],description:[1],isAvailable:[32]}]);function defineCustomElement$h(){typeof customElements>"u"||["nl-local-signup","button-base"].forEach(o=>{switch(o){case"nl-local-signup":customElements.get(o)||customElements.define(o,NlLocalSignup);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$h();const NlLoginStatus=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.info=void 0}render(){let o="",s="";if("extension"===this.info.authMethod)o="Extension",s="border-yellow-300 text-yellow-500 bg-yellow-100";else if("readOnly"===this.info.authMethod)o="Read only",s="border-gray-300 text-gray-400 bg-gray-100";else if("connect"===this.info.authMethod)o="Connect",s="border-teal-300 text-teal-600 bg-teal-100";else if("local"===this.info.authMethod)o="Temporary",s="border-red-300 text-red-600 bg-red-100";else{if("otp"!==this.info.authMethod)throw console.log("unknown auth method",this.info),new Error("Unknown auth method");o="Delegated",s="border-orange-300 text-orange-600 bg-orange-100"}return h("div",{key:"f7d43062e3d372b26fd7e9c462eabad823b762e1"},h("span",{key:"c79aafe47bf945f5c6bf26aa230debc4d950be71",class:`${s} rounded-xl border w-auto text-[10px] px-1 `},o))}},[0,"nl-login-status",{info:[16]}]);function defineCustomElement$g(){typeof customElements>"u"||["nl-login-status"].forEach(o=>{"nl-login-status"===o&&(customElements.get(o)||customElements.define(o,NlLoginStatus))})}defineCustomElement$g();const nlOtpMigrateCss=baseCss,NlOtpMigrateStyle0=nlOtpMigrateCss,NlImportFlow=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlImportAccount=createEvent(this,"nlImportAccount",7),this.titleInfo="Import keys to storage service",this.titleImport="Choose a service",this.textImport="You will be prompted to import keys to the chosen service, and this website will connect to your keys.",this.services=[]}handleDomainSelect(o){const s=this.services.find(r=>r.domain===o.detail);state.nlImport=s}handleCreateAccount(o){o.preventDefault(),this.nlImportAccount.emit(state.nlImport)}render(){const o=this.services.filter(s=>s.canImport).map(s=>({name:s.domain,value:s.domain}));return h(Fragment,{key:"d27cbfa870975b4f9f0c6350ff6424e34b19dfad"},h("div",{key:"22618ac8a4e7cc53e111cfa47a7db3163ccc43ef",class:"p-4 overflow-y-auto"},h("h1",{key:"ebc3dc11334fa49479a1d071cf9a89bf204ca8ff",class:"nl-title font-bold text-center text-2xl"},this.titleImport),h("p",{key:"70795495de8e8f69488b2cebb2f8c5f1c2ace243",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.textImport)),h("div",{key:"a9f4df9d99623c686d22ed200bddb7657984a4f8",class:"max-w-72 mx-auto mb-5"},h("div",{key:"c9a0fedecd1e036f9a84a12aaf44ac6fd8bde10b",class:"mb-0.5"},h("nl-select",{key:"3db03a9a4fd78f544f670c6b1917af67ca818696",onSelectDomain:s=>this.handleDomainSelect(s),selected:0,options:o})),h("p",{key:"fc392301b3553c3fea01ab17341d8e0c829af408",class:"nl-title font-light text-sm mb-2"},"Default provider is a fine choice to start with."),h("div",{key:"e0dd51b7f1f9fe7ca367f309ea945cf5feffedf2",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"4316dfbf51fb06b68f55d34bffe4450c29fc273c",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"dfbd68892ba44c72d4c319725dc82cf3a1af7d96",disabled:state.isLoading,onClick:s=>this.handleCreateAccount(s),titleBtn:"Start importing"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlOtpMigrateStyle0}},[0,"nl-otp-migrate",{titleInfo:[1025,"title-info"],titleImport:[1,"title-import"],textImport:[1,"text-import"],services:[16]}]);function defineCustomElement$f(){typeof customElements>"u"||["nl-otp-migrate","button-base","nl-select"].forEach(o=>{switch(o){case"nl-otp-migrate":customElements.get(o)||customElements.define(o,NlImportFlow);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$f();const nlPreviouslyLoggedCss=baseCss,NlPreviouslyLoggedStyle0=nlPreviouslyLoggedCss,NlPreviouslyLogged=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlSwitchAccount=createEvent(this,"nlSwitchAccount",7),this.nlLoginRecentAccount=createEvent(this,"nlLoginRecentAccount",7),this.nlRemoveRecent=createEvent(this,"nlRemoveRecent",7),this.titlePage="Your profiles",this.description="Switch between active profiles or choose a recent one for fast login.",this.accounts=[],this.recents=[]}handleGoToWelcome(){state.path=[CURRENT_MODULE.WELCOME]}switchToWelcomeIfEmpty(){this.recents.length||this.accounts.length||(state.path=[CURRENT_MODULE.WELCOME])}watchAccounts(){this.switchToWelcomeIfEmpty()}watchRecents(){this.switchToWelcomeIfEmpty()}handleRemoveRecent(o){this.nlRemoveRecent.emit(o)}handleSwitch(o){this.nlSwitchAccount.emit(o)}handleLoginRecentAccount(o){this.nlLoginRecentAccount.emit(o)}render(){return h(Fragment,{key:"0b747732fe31ffb2d687859a8d5f5452de06cd82"},h("div",{key:"b696865acec55c2dc0f6f3ecf6360028f3911136",class:"p-4 pt-0 overflow-y-auto"},h("h1",{key:"156d95e32b1f14cdccfeabb2cb518bbba51b5da6",class:"nl-title font-bold text-center text-4xl"},this.titlePage),h("p",{key:"1d07d29dda5338c71c7831d4550c99af8717012d",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"3776d52ca658395479d7aaba1d96b707b144da5d",class:"p-4"},!!this.accounts.length&&h("div",{key:"77d80f7e11fd0ad09c5fa13c8b39939a9c011641",class:"max-w-96 mx-auto"},h("p",{key:"f32b9358755c561781e840383a2bc6b2bfe5c392",class:"nl-description font-medium text-sm pb-1.5"},"Active profiles"),h("ul",{key:"789082d6f3ad3d75ebe461cde35846d0ff37e912",class:"p-2 rounded-lg border border-blue-200 flex flex-col w-full gap-0.5"},this.accounts.map(o=>{const s=!!o?.picture,r=o.name||o.nip05||o.pubkey,i=!!r;return h("li",{onClick:()=>this.handleSwitch(o),class:"group hover:bg-gray-400 flex cursor-pointer gap-x-3.5 py-2 px-3 rounded-lg text-sm items-center justify-between"},h("div",{class:"flex items-center gap-x-3.5 w-full"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"absolute top-[-2px] right-[-2px] bg-white border-2 border-white rounded-xl"},h("div",{class:"active h-1.5 w-1.5 bg-green-500 rounded-xl"})),h("div",{class:"group-hover:border-blue-400 uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s?h("img",{class:"w-full rounded-full",src:o.picture,alt:"Logo"}):i?r[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},r),h("nl-login-status",{info:o}))))}))),!!this.recents.length&&h("div",{key:"e89d6cda8386575a0a87a2188a89e5d929b55e8d",class:"max-w-96 mx-auto pt-5"},h("p",{key:"811958459f3694f5e31c2f22c75611c49973b17b",class:"nl-description font-medium text-sm pb-1.5"},"Recent profiles"),h("ul",{key:"0c042b8bec46a9871551bf2965eb9f561b012f22",class:"p-2 rounded-lg border border-gray-200 flex flex-col w-full gap-0.5"},this.recents.map(o=>{const s=!!o?.picture,r=o.name||o.nip05||o.pubkey,i=!!r;return h("li",{onClick:()=>this.handleLoginRecentAccount(o),class:"flex items-center gap-x-3.5 w-full hover:bg-gray-400 flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm justify-between"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"absolute top-[-3px] right-[-3px] bg-white border border-white rounded-xl"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-3 h-3"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))),h("div",{class:"uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s?h("img",{class:"w-full rounded-full",src:o.picture,alt:"Logo"}):i?r[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},r),h("nl-login-status",{info:o})),h("svg",{onClick:a=>{a.stopPropagation(),this.handleRemoveRecent(o)},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full max-w-6 h-6 text-red-500 hover:text-red-600 ml-auto"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})))})))),h("div",{key:"f70f67171d6727d25b9a38bdf48730146c46f4f2",class:"p-4 overflow-y-auto"},h("p",{key:"7289d6c89d90db640ecc63603657280dec8d3a82",class:"nl-footer font-light text-center text-sm max-w-96 mx-auto"},"You can also"," ",h("span",{key:"5c0d9e2954a37fc013d459a78b8a056b916cdd62",onClick:()=>this.handleGoToWelcome(),class:"cursor-pointer pb-3 text-blue-500"},"add another profile"))))}static get watchers(){return{accounts:["watchAccounts"],recents:["watchRecents"]}}static get style(){return NlPreviouslyLoggedStyle0}},[0,"nl-previously-logged",{titlePage:[1,"title-page"],description:[1],accounts:[16],recents:[16]},void 0,{accounts:["watchAccounts"],recents:["watchRecents"]}]);function defineCustomElement$e(){typeof customElements>"u"||["nl-previously-logged","nl-login-status"].forEach(o=>{switch(o){case"nl-previously-logged":customElements.get(o)||customElements.define(o,NlPreviouslyLogged);break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement$e();const nlSigninCss=baseCss,NlSigninStyle0=nlSigninCss,NlSignin=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLogin=createEvent(this,"nlLogin",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Connect to key store",this.description="Please enter your user name.",this.isGood=!1}handleInputChange(o){state.nlSignin.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLogin.emit(state.nlSignin.loginName)}render(){return h(Fragment,{key:"70d5c41620a53b3b84157044f33fdce851d9054d"},h("div",{key:"f8880d45479ef512694fe1300a3c99df8dc756f2",class:"p-4 overflow-y-auto"},h("h1",{key:"fb0379faf61fa39d283fd2d159932b0dba56ed60",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"389dcc582e456ba3241a202aa77026b5fe1f2f1c",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"0cbc1dd3dd3e8437d5f1be8c5612a48ebf589a73",class:"max-w-72 mx-auto"},h("div",{key:"6d8d1a649d6f9b4ec39e91cb50880ec55ae34469",class:"relative mb-2"},h("input",{key:"546c3c63fc1849275b86efdfb8fa5b016ae4282b",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"name@domain.com",value:state.nlSignin.loginName}),h("div",{key:"c91b2fb461ca2ee751a0811381a771ed227d1c7b",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"cd11d6e2e75a3e3e60696d825f494e49d587abc3",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"dd3d6d8e13a01fdb449dadbb5daa79141ae74217","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"e2aff3f44b41a2365f9c561410c2d8733e93943d",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"4f3b61256e93001cbf6cf8e0eea61e73265abd65",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"64e9997f3163465cc99eae8600e7b13251ffe484",titleBtn:"Connect",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"})))))}static get style(){return NlSigninStyle0}},[0,"nl-signin",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$d(){typeof customElements>"u"||["nl-signin","button-base"].forEach(o=>{switch(o){case"nl-signin":customElements.get(o)||customElements.define(o,NlSignin);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$d();const nlSigninBunkerUrlCss=baseCss,NlSigninBunkerUrlStyle0=nlSigninBunkerUrlCss,NlSigninBunkerUrl=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLogin=createEvent(this,"nlLogin",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Connect with bunker url",this.description="Please enter a bunker url provided by key store.",this.isGood=!1}handleInputChange(o){state.nlSigninBunkerUrl.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLogin.emit(state.nlSigninBunkerUrl.loginName)}render(){return h(Fragment,{key:"0ac12fea476faa724c8fa9ba34bebbd58c0b324d"},h("div",{key:"94fc0ef392c7d6abedc1bba2c833ff3e734fde23",class:"p-4 overflow-y-auto"},h("h1",{key:"c8426115b8d12e24e349813302360dc37ae935ca",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"804a1e0b2329e78f80470da090cb06fd3165116f",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"3dad7e0005f66ad81c616983921455bf77b95c31",class:"max-w-72 mx-auto"},h("div",{key:"3e2f1825061c8f65c300676624d244240abb9590",class:"relative mb-2"},h("input",{key:"048e82df548ed4018684b92a93cd20c6ea60af95",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"bunker://...",value:state.nlSigninBunkerUrl.loginName}),h("div",{key:"29afff805cfc2d5e135ece3d5d791e6a1506294b",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"3ca9eb00e319357c690fa7d0027dba1e61d7fb83",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"2914d12af813da649534f1aca80f3b80d1e53193","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})))),h("div",{key:"83617653feed00b5d45b4d8318369a16185ca690",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"3548cd177582a91b8c4b383311f04fd4b8b2002e",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"8ae258e580cae2a08955ff02b4d21601a3be3aee",titleBtn:"Connect",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"})))))}static get style(){return NlSigninBunkerUrlStyle0}},[0,"nl-signin-bunker-url",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$c(){typeof customElements>"u"||["nl-signin-bunker-url","button-base"].forEach(o=>{switch(o){case"nl-signin-bunker-url":customElements.get(o)||customElements.define(o,NlSigninBunkerUrl);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$c();var browser$1={},canPromise$1=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},qrcode={},utils$1$1={};let toSJISFunction;const CODEWORDS_COUNT=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];utils$1$1.getSymbolSize=function(o){if(!o)throw new Error('"version" cannot be null or undefined');if(o<1||o>40)throw new Error('"version" should be in range from 1 to 40');return 4*o+17},utils$1$1.getSymbolTotalCodewords=function(o){return CODEWORDS_COUNT[o]},utils$1$1.getBCHDigit=function(o){let s=0;for(;0!==o;)s++,o>>>=1;return s},utils$1$1.setToSJISFunction=function(o){if("function"!=typeof o)throw new Error('"toSJISFunc" is not a valid function.');toSJISFunction=o},utils$1$1.isKanjiModeEnabled=function(){return void 0!==toSJISFunction},utils$1$1.toSJIS=function(o){return toSJISFunction(o)};var errorCorrectionLevel={},exports;function BitBuffer$1(){this.buffer=[],this.length=0}exports=errorCorrectionLevel,exports.L={bit:1},exports.M={bit:0},exports.Q={bit:3},exports.H={bit:2},exports.isValid=function(o){return o&&void 0!==o.bit&&o.bit>=0&&o.bit<4},exports.from=function(o,s){if(exports.isValid(o))return o;try{return function(r){if("string"!=typeof r)throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return exports.L;case"m":case"medium":return exports.M;case"q":case"quartile":return exports.Q;case"h":case"high":return exports.H;default:throw new Error("Unknown EC Level: "+r)}}(o)}catch{return s}},BitBuffer$1.prototype={get:function(o){const s=Math.floor(o/8);return 1==(this.buffer[s]>>>7-o%8&1)},put:function(o,s){for(let r=0;r>>s-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(o){const s=Math.floor(this.length/8);this.buffer.length<=s&&this.buffer.push(0),o&&(this.buffer[s]|=128>>>this.length%8),this.length++}};var bitBuffer=BitBuffer$1;function BitMatrix$1(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}BitMatrix$1.prototype.set=function(o,s,r,i){const a=o*this.size+s;this.data[a]=r,i&&(this.reservedBit[a]=!0)},BitMatrix$1.prototype.get=function(o,s){return this.data[o*this.size+s]},BitMatrix$1.prototype.xor=function(o,s,r){this.data[o*this.size+s]^=r},BitMatrix$1.prototype.isReserved=function(o,s){return this.reservedBit[o*this.size+s]};var bitMatrix=BitMatrix$1,alignmentPattern={};!function(o){const s=utils$1$1.getSymbolSize;o.getRowColCoords=function(r){if(1===r)return[];const i=Math.floor(r/7)+2,a=s(r),c=145===a?26:2*Math.ceil((a-13)/(2*i-2)),y=[a-7];for(let w=1;w=0&&y<=7},o.from=function(y){return o.isValid(y)?parseInt(y,10):void 0},o.getPenaltyN1=function(y){const w=y.size;let C=0,T=0,S=0,A=null,I=null;for(let N=0;N=5&&(C+=T-5+3),A=Z,T=1),Z=y.get(K,N),Z===I?S++:(S>=5&&(C+=S-5+3),I=Z,S=1)}T>=5&&(C+=T-5+3),S>=5&&(C+=S-5+3)}return C},o.getPenaltyN2=function(y){const w=y.size;let C=0;for(let T=0;T=10&&(1488===T||93===T)&&C++,S=S<<1&2047|y.get(I,A),I>=10&&(1488===S||93===S)&&C++}return 40*C},o.getPenaltyN4=function(y){let w=0;const C=y.data.length;for(let T=0;T=0;){const c=a[0];for(let w=0;w0){const a=new Uint8Array(this.degree);return a.set(r,i),a}return r};var reedSolomonEncoder=ReedSolomonEncoder$1,version={},mode={},versionCheck={isValid:function(o){return!isNaN(o)&&o>=1&&o<=40}},regex$1={};const numeric="[0-9]+",alphanumeric="[A-Z $%*+\\-./:]+";let kanji="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";kanji=kanji.replace(/u/g,"\\u");const byte="(?:(?![A-Z0-9 $%*+\\-./:]|"+kanji+")(?:.|[\r\n]))+";regex$1.KANJI=new RegExp(kanji,"g"),regex$1.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),regex$1.BYTE=new RegExp(byte,"g"),regex$1.NUMERIC=new RegExp(numeric,"g"),regex$1.ALPHANUMERIC=new RegExp(alphanumeric,"g");const TEST_KANJI=new RegExp("^"+kanji+"$"),TEST_NUMERIC=new RegExp("^"+numeric+"$"),TEST_ALPHANUMERIC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");regex$1.testKanji=function(o){return TEST_KANJI.test(o)},regex$1.testNumeric=function(o){return TEST_NUMERIC.test(o)},regex$1.testAlphanumeric=function(o){return TEST_ALPHANUMERIC.test(o)},function(o){const s=versionCheck,r=regex$1;o.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},o.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},o.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},o.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},o.MIXED={bit:-1},o.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!s.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},o.getBestModeForData=function(i){return r.testNumeric(i)?o.NUMERIC:r.testAlphanumeric(i)?o.ALPHANUMERIC:r.testKanji(i)?o.KANJI:o.BYTE},o.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},o.isValid=function(i){return i&&i.bit&&i.ccBits},o.from=function(i,a){if(o.isValid(i))return i;try{return function(c){if("string"!=typeof c)throw new Error("Param is not a string");switch(c.toLowerCase()){case"numeric":return o.NUMERIC;case"alphanumeric":return o.ALPHANUMERIC;case"kanji":return o.KANJI;case"byte":return o.BYTE;default:throw new Error("Unknown mode: "+c)}}(i)}catch{return a}}}(mode),function(o){const s=utils$1$1,r=errorCorrectionCode,i=errorCorrectionLevel,a=mode,c=versionCheck,y=s.getBCHDigit(7973);function w(T,S){return a.getCharCountIndicator(T,S)+4}function C(T,S){let A=0;return T.forEach(function(I){const N=w(I.mode,S);A+=N+I.getBitsLength()}),A}o.from=function(T,S){return c.isValid(T)?parseInt(T,10):S},o.getCapacity=function(T,S,A){if(!c.isValid(T))throw new Error("Invalid QR Code version");void 0===A&&(A=a.BYTE);const I=8*(s.getSymbolTotalCodewords(T)-r.getTotalCodewordsCount(T,S));if(A===a.MIXED)return I;const N=I-w(A,T);switch(A){case a.NUMERIC:return Math.floor(N/10*3);case a.ALPHANUMERIC:return Math.floor(N/11*2);case a.KANJI:return Math.floor(N/13);default:return Math.floor(N/8)}},o.getBestVersionForData=function(T,S){let A;const I=i.from(S,i.M);if(Array.isArray(T)){if(T.length>1)return function(N,K){for(let Z=1;Z<=40;Z++)if(C(N,Z)<=o.getCapacity(Z,K,a.MIXED))return Z}(T,I);if(0===T.length)return 1;A=T[0]}else A=T;return function(N,K,Z){for(let ne=1;ne<=40;ne++)if(K<=o.getCapacity(ne,Z,N))return ne}(A.mode,A.getLength(),I)},o.getEncodedBits=function(T){if(!c.isValid(T)||T<7)throw new Error("Invalid QR Code version");let S=T<<12;for(;s.getBCHDigit(S)-y>=0;)S^=7973<=0;)i^=G15<0&&(r=this.data.substr(s),i=parseInt(r,10),o.put(i,3*a+1))};var numericData=NumericData;const Mode$3=mode,ALPHA_NUM_CHARS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function AlphanumericData(o){this.mode=Mode$3.ALPHANUMERIC,this.data=o}AlphanumericData.getBitsLength=function(o){return 11*Math.floor(o/2)+o%2*6},AlphanumericData.prototype.getLength=function(){return this.data.length},AlphanumericData.prototype.getBitsLength=function(){return AlphanumericData.getBitsLength(this.data.length)},AlphanumericData.prototype.write=function(o){let s;for(s=0;s+2<=this.data.length;s+=2){let r=45*ALPHA_NUM_CHARS.indexOf(this.data[s]);r+=ALPHA_NUM_CHARS.indexOf(this.data[s+1]),o.put(r,11)}this.data.length%2&&o.put(ALPHA_NUM_CHARS.indexOf(this.data[s]),6)};var alphanumericData=AlphanumericData;const Mode$2=mode;function ByteData(o){this.mode=Mode$2.BYTE,this.data="string"==typeof o?(new TextEncoder).encode(o):new Uint8Array(o)}ByteData.getBitsLength=function(o){return 8*o},ByteData.prototype.getLength=function(){return this.data.length},ByteData.prototype.getBitsLength=function(){return ByteData.getBitsLength(this.data.length)},ByteData.prototype.write=function(o){for(let s=0,r=this.data.length;s=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[s]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),o.put(r,13)}};var kanjiData=KanjiData,dijkstra={exports:{}};(function(o){var s={single_source_shortest_paths:function(r,i,a){var c={},y={};y[i]=0;var w,C,T,S,A,I,K=s.PriorityQueue.make();for(K.push(i,0);!K.empty();)for(T in C=(w=K.pop()).value,S=w.cost,A=r[C]||{})A.hasOwnProperty(T)&&(I=S+A[T],(void 0===y[T]||y[T]>I)&&(y[T]=I,K.push(T,I),c[T]=C));if(void 0!==a&&void 0===y[a]){var Z=["Could not find a path from ",i," to ",a,"."].join("");throw new Error(Z)}return c},extract_shortest_path_from_predecessor_list:function(r,i){for(var a=[],c=i;c;)a.push(c),c=r[c];return a.reverse(),a},find_path:function(r,i,a){var c=s.single_source_shortest_paths(r,i,a);return s.extract_shortest_path_from_predecessor_list(c,a)},PriorityQueue:{make:function(r){var i,a=s.PriorityQueue,c={};for(i in r=r||{},a)a.hasOwnProperty(i)&&(c[i]=a[i]);return c.queue=[],c.sorter=r.sorter||a.default_sorter,c},default_sorter:function(r,i){return r.cost-i.cost},push:function(r,i){this.queue.push({value:r,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};o.exports=s})(dijkstra),function(o){const s=mode,r=numericData,i=alphanumericData,a=byteData,c=kanjiData,y=regex$1,w=utils$1$1,C=dijkstra.exports;function T(K){return unescape(encodeURIComponent(K)).length}function S(K,Z,ne){const be=[];let me;for(;null!==(me=K.exec(ne));)be.push({data:me[0],index:me.index,mode:Z,length:me[0].length});return be}function A(K){const Z=S(y.NUMERIC,s.NUMERIC,K),ne=S(y.ALPHANUMERIC,s.ALPHANUMERIC,K);let be,me;return w.isKanjiModeEnabled()?(be=S(y.BYTE,s.BYTE,K),me=S(y.KANJI,s.KANJI,K)):(be=S(y.BYTE_KANJI,s.BYTE,K),me=[]),Z.concat(ne,be,me).sort(function(pe,Te){return pe.index-Te.index}).map(function(pe){return{data:pe.data,mode:pe.mode,length:pe.length}})}function I(K,Z){switch(Z){case s.NUMERIC:return r.getBitsLength(K);case s.ALPHANUMERIC:return i.getBitsLength(K);case s.KANJI:return c.getBitsLength(K);case s.BYTE:return a.getBitsLength(K)}}function N(K,Z){let ne;const be=s.getBestModeForData(K);if(ne=s.from(Z,be),ne!==s.BYTE&&ne.bit=0?xe[xe.length-1]:null;return Me&&Me.mode===Re.mode?(xe[xe.length-1].data+=Re.data,xe):(xe.push(Re),xe)},[]))},o.rawSplit=function(K){return o.fromArray(A(K,w.isKanjiModeEnabled()))}}(segments);const Utils$1=utils$1$1,ECLevel=errorCorrectionLevel,BitBuffer=bitBuffer,BitMatrix=bitMatrix,AlignmentPattern=alignmentPattern,FinderPattern=finderPattern,MaskPattern=maskPattern,ECCode=errorCorrectionCode,ReedSolomonEncoder=reedSolomonEncoder,Version=version,FormatInfo=formatInfo,Mode=mode,Segments=segments;function setupFinderPattern(o,s){const r=o.size,i=FinderPattern.getPositions(s);for(let a=0;a=0&&w<=6&&(0===C||6===C)||C>=0&&C<=6&&(0===w||6===w)||w>=2&&w<=4&&C>=2&&C<=4,!0)}}function setupTimingPattern(o){const s=o.size;for(let r=8;r>w&1),o.set(a,c,y,!0),o.set(c,a,y,!0)}function setupFormatInfo(o,s,r){const i=o.size,a=FormatInfo.getEncodedBits(s,r);let c,y;for(c=0;c<15;c++)y=1==(a>>c&1),o.set(c<6?c:c<8?c+1:i-15+c,8,y,!0),o.set(8,c<8?i-c-1:c<9?15-c-1+1:15-c-1,y,!0);o.set(i-8,8,1,!0)}function setupData(o,s){const r=o.size;let i=-1,a=r-1,c=7,y=0;for(let w=r-1;w>0;w-=2)for(6===w&&w--;;){for(let C=0;C<2;C++)if(!o.isReserved(a,w-C)){let T=!1;y>>c&1)),o.set(a,w-C,T),c--,-1===c&&(y++,c=7)}if(a+=i,a<0||r<=a){a-=i,i=-i;break}}}function createData(o,s,r){const i=new BitBuffer;r.forEach(function(y){i.put(y.mode.bit,4),i.put(y.getLength(),Mode.getCharCountIndicator(y.mode,o)),y.write(i)});const a=8*(Utils$1.getSymbolTotalCodewords(o)-ECCode.getTotalCodewordsCount(o,s));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(a-i.getLengthInBits())/8;for(let y=0;y=7&&setupVersionInfo(C,s),setupData(C,y),isNaN(i)&&(i=MaskPattern.getBestMask(C,setupFormatInfo.bind(null,C,r))),MaskPattern.applyMask(i,C),setupFormatInfo(C,r,i),{modules:C,version:s,errorCorrectionLevel:r,maskPattern:i,segments:a}}qrcode.create=function(o,s){if(void 0===o||""===o)throw new Error("No input text");let r,i,a=ECLevel.M;return void 0!==s&&(a=ECLevel.from(s.errorCorrectionLevel,ECLevel.M),r=Version.from(s.version),i=MaskPattern.from(s.maskPattern),s.toSJISFunc&&Utils$1.setToSJISFunction(s.toSJISFunc)),createSymbol(o,r,a,i)};var canvas={},utils$3={};(function(o){function s(r){if("number"==typeof r&&(r=r.toString()),"string"!=typeof r)throw new Error("Color should be defined as hex string");let i=r.slice().replace("#","").split("");if(i.length<3||5===i.length||i.length>8)throw new Error("Invalid hex color: "+r);3!==i.length&&4!==i.length||(i=Array.prototype.concat.apply([],i.map(function(c){return[c,c]}))),6===i.length&&i.push("F","F");const a=parseInt(i.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:255&a,hex:"#"+i.slice(0,6).join("")}}o.getOptions=function(r){r||(r={}),r.color||(r.color={});const a=r.width&&r.width>=21?r.width:void 0;return{width:a,scale:a?4:r.scale||4,margin:null==r.margin||r.margin<0?4:r.margin,color:{dark:s(r.color.dark||"#000000ff"),light:s(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},o.getScale=function(r,i){return i.width&&i.width>=r+2*i.margin?i.width/(r+2*i.margin):i.scale},o.getImageWidth=function(r,i){const a=o.getScale(r,i);return Math.floor((r+2*i.margin)*a)},o.qrToImageData=function(r,i,a){const c=i.modules.size,y=i.modules.data,w=o.getScale(c,a),C=Math.floor((c+2*a.margin)*w),T=a.margin*w,S=[a.color.light,a.color.dark];for(let A=0;A=T&&I>=T&&A0&&C>0&&o[w-1]||(i+=c?svgCmd("M",C+r,.5+T+r):svgCmd("m",a,0),a=0,c=!1),C+1':"",C="',S=''+w+C+"\n";return"function"==typeof r&&r(null,S),S};const canPromise=canPromise$1,QRCode=qrcode,CanvasRenderer=canvas,SvgRenderer=svgTag;function renderCanvas(o,s,r,i,a){const c=[].slice.call(arguments,1),y=c.length,w="function"==typeof c[y-1];if(!w&&!canPromise())throw new Error("Callback required as last argument");if(!w){if(y<1)throw new Error("Too few arguments provided");return 1===y?(r=s,s=i=void 0):2!==y||s.getContext||(i=r,r=s,s=void 0),new Promise(function(C,T){try{const S=QRCode.create(r,i);C(o(S,s,i))}catch(S){T(S)}})}if(y<2)throw new Error("Too few arguments provided");2===y?(a=r,r=s,s=i=void 0):3===y&&(s.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=r,r=s,s=void 0));try{const C=QRCode.create(r,i);a(null,o(C,s,i))}catch(C){a(C)}}browser$1.create=QRCode.create,browser$1.toCanvas=renderCanvas.bind(null,CanvasRenderer.render),browser$1.toDataURL=renderCanvas.bind(null,CanvasRenderer.renderToDataURL),browser$1.toString=renderCanvas.bind(null,function(o,s,r){return SvgRenderer.render(o,r)});const nlSigninConnectionStringCss=baseCss,NlSigninConnectionStringStyle0=nlSigninConnectionStringCss,NlSigninConnectionString=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleLogin="Connection string",this.description="Scan or copy the connection string with key store app",this.connectionString="",this.isCopy=!1}componentDidLoad(){this.generateQRCode()}generateQRCode(){var o=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(o.connectionString&&o.canvasElement)try{yield browser$1.toCanvas(o.canvasElement,o.connectionString)}catch(s){console.error("Error generating QR Code:",s)}})()}copyToClipboard(){var o=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{yield navigator.clipboard.writeText(o.connectionString),o.isCopy=!0,setTimeout(()=>{o.isCopy=!1},1500)}catch(s){console.error("Failed to copy connectionString: ",s)}})()}render(){return h(Fragment,{key:"4dfdad6e2e948203e0dfe7aa8608d95cd3495c41"},h("div",{key:"852159a0231473f13c6452e307b90f02e7efd445",class:"p-4 overflow-y-auto"},h("h1",{key:"07859d4b83c5fb6ac12732f1708db3ba3b700380",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"200d00f3785f4a684c798225f0061d9ef4ed2fa1",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("canvas",{key:"e27335a378a7853fd73cdf0b701a9922f9e87a98",class:"mx-auto mb-2",ref:o=>this.canvasElement=o}),h("div",{key:"5e93edcf3b13f1d02b6feca2a192ef275891032a",class:"px-4"},h("div",{key:"96643d192fc3e3c652027fc7b9da2c8186205b1f",class:"max-w-72 mx-auto"},h("div",{key:"24faf8ea390198fc185f94d77d0ac3faa3c03e9f",class:"relative mb-2"},h("input",{key:"45f531795476a136897925509955fa9fdaf66503",type:"text",class:"nl-input peer py-3 px-4 pe-11 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"npub or name@domain",value:this.connectionString,disabled:!0}),h("div",{key:"3f3bb777777890fb68152c94d16cd83abde57cac",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"c99e6d36b5f3e85a03b2922a3984803601ce4747",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"1d72c6d727215e897c88b923f1eb65a83bc9eda9","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"5c40e5fd22377e528bdc3fe77db8975dfe015286","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),this.isCopy?h("div",{class:"absolute inset-y-0 end-0 flex items-center p-2 rounded-lg"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#00cc00",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))):h("div",{class:"absolute inset-y-0 end-0 flex items-center cursor-pointer p-2 rounded-lg",onClick:()=>this.copyToClipboard()},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"})))),h("div",{key:"26403008de1debe9660fbacda25b6c5eb1ce81c8",class:"mt-10 justify-center items-center flex gap-2"},h("span",{key:"2cc09432eb515db009f4ca5909b8ba943c90bbd6",slot:"icon-start",class:"animate-spin-loading inline-block w-[20px] h-[20px] border-[2px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}),h("span",{key:"b2d8a70b65950ec00d9544c4ba50a51bffc48335",class:"nl-footer"},"Waiting for connection")))))}static get style(){return NlSigninConnectionStringStyle0}},[0,"nl-signin-connection-string",{titleLogin:[1,"title-login"],description:[1],connectionString:[1,"connection-string"],isCopy:[32]}]);function defineCustomElement$b(){typeof customElements>"u"||["nl-signin-connection-string"].forEach(o=>{"nl-signin-connection-string"===o&&(customElements.get(o)||customElements.define(o,NlSigninConnectionString))})}defineCustomElement$b();const nlSigninOtpCss=baseCss,NlSigninOtpStyle0=nlSigninOtpCss,NlSigninOtp=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginOTPUser=createEvent(this,"nlLoginOTPUser",7),this.nlLoginOTPCode=createEvent(this,"nlLoginOTPCode",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Log in with DM",this.description="Please enter your user name or npub, and we will send you a direct message with a one-time code.",this.titleLoginOTP="Enter the code",this.descriptionOTP="Please enter the one-time code we sent to you as a direct message on Nostr.",this.isGood=!1}handleInputChange(o){state.isOTP?state.nlSigninOTP.code=o.target.value:(state.nlSigninOTP.loginName=o.target.value,this.nlCheckLogin.emit(state.nlSigninOTP.loginName))}handleLogin(o){o.preventDefault(),state.isOTP?this.nlLoginOTPCode.emit(state.nlSigninOTP.code):this.nlLoginOTPUser.emit(state.nlSigninOTP.loginName)}render(){return h(Fragment,{key:"a93b9af1f6a2a881d75e9aa1e547a63678ad4dc5"},h("div",{key:"ae6c700a09e753e0148b5ddfd27f20c2a0850d3d",class:"p-4 overflow-y-auto"},h("h1",{key:"e0998107834bf9e90b6372580ccb31bb0d726904",class:"nl-title font-bold text-center text-2xl"},state.isOTP?this.titleLoginOTP:this.titleLogin),h("p",{key:"29e894bbfcdfb326ae807055c57fbb32b1b4bfa9",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},state.isOTP?this.descriptionOTP:this.description)),h("div",{key:"911cee576416be96c64d38fc362cdb656293e198",class:"max-w-72 mx-auto"},h("div",{key:"f72d607dd7beb554c248c7c4128de6d33a8f246f",class:"relative mb-2"},h("input",{key:"24e6a78d257e84d4f5c71b4aee31c453a504cd93",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:state.isOTP?"code from direct message":"npub or name@domain",value:state.isOTP?state.nlSigninOTP.code:state.nlSigninOTP.loginName}),h("div",{key:"438171f72c2c64d1754a2d5fda95a7b5d3816894",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"b31663307181bb1d58884a3ecce192728b164b70",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"8b80421658eea7b0b49708c994a9d94b965895f1","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"6d184bdf20d124a312e1817e27111de1fd0b8eb1","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{key:"ab8948cbd67e068fc2f113fcc5e61137d799e636",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"719399b9f40ae23ba11ae22e4223314c815c821f",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"b2ce8bbaceeddc82ea079dba280dc04600d7f725",titleBtn:"Log in",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading&&h("span",{key:"7764fb6ecf8452c06047dc7832e274ebccdd6379",slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}))))}static get style(){return NlSigninOtpStyle0}},[0,"nl-signin-otp",{titleLogin:[1,"title-login"],description:[1],titleLoginOTP:[1,"title-login-o-t-p"],descriptionOTP:[1,"description-o-t-p"],isGood:[32]}]);function defineCustomElement$a(){typeof customElements>"u"||["nl-signin-otp","button-base"].forEach(o=>{switch(o){case"nl-signin-otp":customElements.get(o)||customElements.define(o,NlSigninOtp);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$a();const nlSigninReadOnlyCss=baseCss,NlSigninReadOnlyStyle0=nlSigninReadOnlyCss,NlSigninReadOnly=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginReadOnly=createEvent(this,"nlLoginReadOnly",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Log in to read only",this.description="Please enter the user name or npub of any Nostr user.",this.isGood=!1}handleInputChange(o){state.nlSigninReadOnly.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLoginReadOnly.emit(state.nlSigninReadOnly.loginName)}render(){return h(Fragment,{key:"5ff970ee20c505cab00b3c9263dd9a6ebd6b62a8"},h("div",{key:"036a6b49de93c20ed4af3c47c7ecc10c81818f86",class:"p-4 overflow-y-auto"},h("h1",{key:"97951254c835d38f95832882225fdc2b50bf578a",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"e811a52ee24540b018f95ebffd1406330005a5f2",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"ae07b4fbe663e17733b6bd1efaa1c974276c8fd6",class:"max-w-72 mx-auto"},h("div",{key:"0a935603a2742e049bd5b2ca3c1b13f07d63ac2b",class:"relative mb-2"},h("input",{key:"1221b6501de2c739fc1470f82142b623afe4749b",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"npub or name@domain",value:state.nlSigninReadOnly.loginName}),h("div",{key:"820f77d6c814aea1794463b6216df338c6f0863d",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"9922ba1b7b536ddc8d560d76087fd735e1aa000c",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"250dae1273e5346920bb6d5cad3644c678a9eae8","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"e94192cf4f271cf3477ebe2f186597a5c5a7b474","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{key:"8d548af75b9c39dfe0bf2eeae805e58d2cb324c1",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"7cc88f5116a24e1b309e320c63c34f5cc8c5b656",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"156e8a30228a8d34009c5cb020588c82f039eac5",titleBtn:"Log in",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading&&h("span",{key:"14082758440bf5ec897629c92faf949f80895be8",slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}))))}static get style(){return NlSigninReadOnlyStyle0}},[0,"nl-signin-read-only",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$9(){typeof customElements>"u"||["nl-signin-read-only","button-base"].forEach(o=>{switch(o){case"nl-signin-read-only":customElements.get(o)||customElements.define(o,NlSigninReadOnly);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$9();const nlSignupCss=baseCss,NlSignupStyle0=nlSignupCss,NlSignup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlSignup=createEvent(this,"nlSignup",7),this.nlCheckSignup=createEvent(this,"nlCheckSignup",7),this.fetchHandler=createEvent(this,"fetchHandler",7),this.titleSignup="Create keys with key store",this.description="Choose some username and a key store service.",this.bunkers="nsec.app,highlighter.com",this.isAvailable=!1}formatServers(o){return o.split(",").map(s=>({name:"@"+s,value:s}))}handleInputChange(o){state.nlSignup.signupName=o.target.value,this.nlCheckSignup.emit(`${o.target.value}@${state.nlSignup.domain}`)}handleDomainSelect(o){state.nlSignup.domain=o.detail,this.nlCheckSignup.emit(`${state.nlSignup.signupName}@${o.detail}`)}handleCreateAccount(o){o.preventDefault(),this.nlSignup.emit(`${state.nlSignup.signupName}@${state.nlSignup.domain}`)}watchBunkersHandler(o){state.nlSignup.servers=this.formatServers(o)}componentWillLoad(){state.nlSignup.servers=this.formatServers(this.bunkers)}render(){return h(Fragment,{key:"f7b56fee1ec9c6dd3632bed5d46c661b090a32cd"},h("div",{key:"a7fd1b6249688b0974a0c56a0573f36eb1f1d7a4",class:"p-4 overflow-y-auto"},h("h1",{key:"01d5a745026ea0a293fd248880f00d335355f5bf",class:"nl-title font-bold text-center text-2xl"},this.titleSignup),h("p",{key:"1fe9362df4c08bee7966a3d7f06aca0c8c9f9e38",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"15eadc1d7189a9a99efad1c42a430fb316d3ae1a",class:"max-w-72 mx-auto"},h("div",{key:"011c9eb5d2d16cd6b784f0d879fd4f504c522905",class:"relative mb-2"},h("input",{key:"123e130805b229fe68c64765c434a36840cc137e",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"Name",value:state.nlSignup.signupName}),h("div",{key:"ee00cfd158acb362567e909a6f90d2651a4acd05",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"bc8a81c9a62cb215efb0cdff30980ee447371ec5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isAvailable?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"fb78fc743ec535bb92d30e2b43927d499f6299ca","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"f541cd6ed4d04a52afb093053c6fea85d0926ce1",class:"mb-2"},h("nl-select",{key:"dbce850d0c1d2e1cfdf4ce250978ce508abc173a",onSelectDomain:o=>this.handleDomainSelect(o),selected:0,options:state.nlSignup.servers})),h("div",{key:"a68612eabd83e3f7e61b533fd247f1768554b0c1",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"25c8a89289071d5fca16b5e8918026c41afb3a77",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"6cbf8ff97e9ebf1bd830e86337219ee386f978ea",disabled:state.isLoading,onClick:o=>this.handleCreateAccount(o),titleBtn:"Create profile"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get watchers(){return{bunkers:["watchBunkersHandler"]}}static get style(){return NlSignupStyle0}},[0,"nl-signup",{titleSignup:[1,"title-signup"],description:[1],bunkers:[1],isAvailable:[32]},void 0,{bunkers:["watchBunkersHandler"]}]);function defineCustomElement$8(){typeof customElements>"u"||["nl-signup","button-base","nl-select"].forEach(o=>{switch(o){case"nl-signup":customElements.get(o)||customElements.define(o,NlSignup);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$8();const nlWelcomeCss=baseCss,NlWelcomeStyle0=nlWelcomeCss,NlWelcome=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleWelcome="Welcome to Nostr!",this.description="This website is part of the Nostr network. Log in with your Nostr profile or sign up to join."}handleChangeScreen(o){state.path=[...state.path,o]}render(){return h(Fragment,{key:"d3fb00029cb12cc8b00f26eaed6bd76e90402363"},h("div",{key:"e41a79654adb620ee433848c965fd872cdfcc58c",class:"p-4 overflow-y-auto"},h("h1",{key:"28e5c6ec6a4e4982a386daff93446db4efcd0737",class:"nl-title font-bold text-center text-4xl"},this.titleWelcome),h("p",{key:"d0afbc9587aafe4d93c547b34f5f55c268b42e48",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"d5570f014a56f326348b8077429c198b55b66683",class:"max-w-52 mx-auto pb-5"},h("div",{key:"3f4095a715c960544264eae1dc809c3bc68de2a8",class:"flex gap-3 flex-col mb-2"},h("button-base",{key:"a154d028e883fb9d9ea1823a5df0d2500bfdb726",titleBtn:"Log in",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.WELCOME_LOGIN)},h("svg",{key:"2b256c1a23f88a3232e59fa3d56c344eae398690",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"bf629d871a100f59c2b465d50f58081290b4300a","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})))),h("button-base",{key:"6fdf8ff44483ec67cff96015ebc7d1832a676fa3",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.WELCOME_SIGNUP),titleBtn:"Sign up"},h("svg",{key:"6714790ee5ccb91a6bda3424e515ea273f2163f9",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"e31e8d7667a33a8713387f8eb73252a4016b5de4","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlWelcomeStyle0}},[0,"nl-welcome",{titleWelcome:[1,"title-welcome"],description:[1]}]);function defineCustomElement$7(){typeof customElements>"u"||["nl-welcome","button-base"].forEach(o=>{switch(o){case"nl-welcome":customElements.get(o)||customElements.define(o,NlWelcome);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$7();const nlWelcomeSigninCss=baseCss,NlWelcomeSigninStyle0=nlWelcomeSigninCss,NlWelcomeSignIn=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginExtension=createEvent(this,"nlLoginExtension",7),this.titleWelcome="Log in",this.hasExtension=!1,this.authMethods=[],this.hasOTP=!1}handleChangeScreen(o){state.path=[...state.path,o],o===CURRENT_MODULE.EXTENSION&&this.nlLoginExtension.emit()}allowAuthMethod(o){return!this.authMethods.length||this.authMethods.includes(o)}renderSignInWithExtension(){return h("button-base",{onClick:()=>this.handleChangeScreen(CURRENT_MODULE.EXTENSION),titleBtn:"With extension"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"})))}render(){return h(Fragment,{key:"49598c3d31f3a4c2fc9d3579283163c43f19b6c7"},h("div",{key:"6b3c16634c1dc4be65c425edb65f5070990fee91",class:"p-4 overflow-y-auto"},h("h1",{key:"1f60d1f489afaa42c47e28563fadc0fa7b46a3df",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome)),h("div",{key:"01507d2b6d0bba54527e12d664ddefd7244a9697",class:"max-w-52 mx-auto pb-5"},h("div",{key:"82deccfff688e1cbb67191c90a3ca6f22f285744",class:"flex gap-3 flex-col"},this.allowAuthMethod("connect")&&h("button-base",{key:"177bbcf244409242ab1c7c03cfb60300e848fed2",titleBtn:"Connect",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.CONNECT)},h("svg",{key:"1fa2c695562eb093430389253dd7f94733d63976",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"16323646bde098c55c787cc90b66b4952c803542","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"}))),this.allowAuthMethod("readOnly")&&h("button-base",{key:"9b6d546d7f34ca197baa13ec0f280890ff0d8c7f",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_READ_ONLY),titleBtn:"Read only"},h("svg",{key:"2ab8c1763d88e7c5678cafc3c15817d60a7bb6c0",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"faa5a61e8d35daf7fbb64fc5783c23b8881d8100","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"6083db853e798c9764b11ed4701dab048d4f30f2","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),this.hasOTP&&this.allowAuthMethod("otp")&&h("button-base",{key:"f45b1afed2d9b10a2d77eaa59b1aa168eabb191d",titleBtn:"One-time code",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_OTP)},h("svg",{key:"84fbe5952fecd429f8074c65675d2111eb2d7fe8",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"83dc6eaa4e128065dfd7e97f0950cd00f0be6d54","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))),this.hasExtension&&this.allowAuthMethod("extension")&&this.renderSignInWithExtension(),!this.allowAuthMethod("connect")&&!this.hasExtension&&h("p",{key:"f94e3302a807855f45855302482542e6f79f8ec8",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"No Nostr extension!"),!this.allowAuthMethod("connect")&&this.hasExtension&&!this.allowAuthMethod("extension")&&h("p",{key:"552762dfd2b9d24c7279c1f500ccd94500e35be1",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Use advanced options."))))}static get style(){return NlWelcomeSigninStyle0}},[0,"nl-welcome-signin",{titleWelcome:[1,"title-welcome"],hasExtension:[4,"has-extension"],authMethods:[16],hasOTP:[4,"has-o-t-p"]}]);function defineCustomElement$6(){typeof customElements>"u"||["nl-welcome-signin","button-base"].forEach(o=>{switch(o){case"nl-welcome-signin":customElements.get(o)||customElements.define(o,NlWelcomeSignIn);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$6();const nlWelcomeSignupCss=baseCss,NlWelcomeSignupStyle0=nlWelcomeSignupCss,NlWelcomeSignUp=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleWelcome="Sign up",this.description="Nostr profiles are based on cryptographic keys. You can create keys right here, or with a key storage app."}handleChangeScreen(o){state.path=[...state.path,o]}render(){return h(Fragment,{key:"95a13ee24b5203b1f1fe9f355524abba9dc55dcb"},h("div",{key:"23209055b5ab42ed4e147f0d7e38ec320437f783",class:"p-4 overflow-y-auto"},h("h1",{key:"8f06a983aa9ca0caa01dd35d4907552696ffc996",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome),h("p",{key:"14d88998c67951b047b79dd0d9358ae2b7a19895",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"62344241204e1c08e2d497b0bbc28b9aff3d7640",class:"max-w-52 mx-auto pb-5"},h("div",{key:"641c269ff23d94330acf465e62d294ce42b05212",class:"flex gap-3 flex-col"},h("button-base",{key:"aaa7f28f647f05506e93756df2895cef952b2912",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOCAL_SIGNUP),titleBtn:"Create keys"},h("svg",{key:"2e8c77cdd122a51638f9a2e606d9ff33581b84c7",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"b6d0e6199dcc11a7ac9f4ba47c86219e325fa987","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))),h("button-base",{key:"3c239d1df872ac71424478fd3f6857c5a9148ef6",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.SIGNUP),titleBtn:"With key store"},h("svg",{key:"4600c4e8bb4e62d9a0303ae1abc464c6d6fc7899",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"c36bef296a15f3bb43c984ed083a8defeb530ab4","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))))))}static get style(){return NlWelcomeSignupStyle0}},[0,"nl-welcome-signup",{titleWelcome:[1,"title-welcome"],description:[1]}]);function defineCustomElement$5(){typeof customElements>"u"||["nl-welcome-signup","button-base"].forEach(o=>{switch(o){case"nl-welcome-signup":customElements.get(o)||customElements.define(o,NlWelcomeSignUp);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$5();const nlAuthCss=baseCss,NlAuthStyle0=nlAuthCss,NlAuth=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.nlChangeDarkMode=createEvent(this,"nlChangeDarkMode",7),this.theme="default",this.bunkers="",this.startScreen=CURRENT_MODULE.WELCOME,this.authMethods=[],this.hasExtension=!1,this.hasOTP=!1,this.isLoading=!1,this.isLoadingExtension=!1,this.isOTP=!1,this.authUrl="",this.iframeUrl="",this.error="",this.localSignup=!1,this.accounts=[],this.recents=[],this.darkMode=!1,this.welcomeTitle="",this.welcomeDescription="",this.connectionString="",this.connectionStringServices=[]}watchLocalSignupHandler(o){state.localSignup=o}watchLoadingHandler(o){state.isLoading=o}watchLoadingExtensionHandler(o){state.isLoadingExtension=o}watchOTPHandler(o){state.isOTP=o}watchAuthUrlHandler(o){state.authUrl=o}watchIframeUrlHandler(o){state.iframeUrl=o}watchErrorHandler(o){state.error=o}handleClose(){this.nlCloseModal.emit()}handleChangeDarkMode(){this.nlChangeDarkMode.emit(!this.darkMode)}componentWillLoad(){state.path=[this.startScreen],state.localSignup=this.localSignup,state.error="",state.iframeUrl="",state.authUrl="",state.isLoading=!1,state.isLoadingExtension=!1,state.isOTP=!1,console.log("path",state.path)}handleClickToBack(){state.path.pop(),state.path=[...state.path],state.isLoading=!1,state.isLoadingExtension=!1,state.authUrl="",state.isOTP=!1}switchSignSignUpStrategy(o){state.path=CURRENT_MODULE.LOCAL_SIGNUP!==o?[CURRENT_MODULE.WELCOME,o]:[CURRENT_MODULE.WELCOME,CURRENT_MODULE.WELCOME_SIGNUP,o]}render(){const o="w-full h-full fixed top-0 start-0 z-[80] overflow-x-hidden overflow-y-auto flex items-center "+(this.darkMode?"dark":""),s=state.path.at(-1),r=state.isOTP||s!==CURRENT_MODULE.INFO&&s!==CURRENT_MODULE.CONFIRM_LOGOUT&&s!==CURRENT_MODULE.IMPORT_FLOW&&s!==CURRENT_MODULE.WELCOME&&s!==CURRENT_MODULE.EXTENSION&&s!==CURRENT_MODULE.IFRAME&&s!==CURRENT_MODULE.PREVIOUSLY_LOGGED,i=s!==CURRENT_MODULE.IFRAME&&(!this.authMethods.length||!this.localSignup&&this.authMethods.includes("connect")||this.localSignup&&this.authMethods.includes("local"));return h("div",{class:`theme-${this.theme}`,dir:"ltr"},h("div",{class:o},h("div",{onClick:()=>this.handleClose(),class:"absolute top-0 left-0 w-full h-full bg-gray-500 bg-opacity-75 z-[80]"}),h("div",{class:"nl-bg relative z-[81] w-full flex flex-col rounded-xl sm:max-w-lg sm:w-full sm:mx-auto"},h("div",{class:"flex justify-between items-center py-3 px-4"},h("div",{class:"flex gap-2 items-center"},h("svg",{class:"w-7 h-7",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),h("p",{class:"font-bold nl-logo text-base"},"Nostr ",h("span",{class:"font-light"},"Login"))),h("div",{class:"flex gap-1"},h("button",{onClick:()=>this.handleChangeDarkMode(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Change theme"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",this.darkMode?{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}:{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))),!state.isLoading&&h("button",{onClick:()=>state.path=[...state.path,CURRENT_MODULE.INFO],type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Info"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))),h("button",{onClick:()=>this.handleClose(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Close"),h("svg",{class:"flex-shrink-0 w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{d:"M18 6 6 18"}),h("path",{d:"m6 6 12 12"}))))),state.path.length>1&&!state.isLoading&&h("div",{class:"p-4"},h("button",{onClick:()=>this.handleClickToBack(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600","data-hs-overlay":"#hs-vertically-centered-modal"},h("span",{class:"sr-only"},"Back"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})))),state.isLoading||state.authUrl?h("nl-loading",{path:s}):h(Fragment,null,(()=>{if(state.isOTP)return h("nl-signin-otp",null);switch(s){case CURRENT_MODULE.WELCOME:return h("nl-welcome",{titleWelcome:this.welcomeTitle||void 0,description:this.welcomeDescription||void 0});case CURRENT_MODULE.LOGIN:return h("nl-signin",null);case CURRENT_MODULE.SIGNUP:return h("nl-signup",{bunkers:this.bunkers});case CURRENT_MODULE.LOCAL_SIGNUP:return h("nl-local-signup",null);case CURRENT_MODULE.CONFIRM_LOGOUT:return h("nl-confirm-logout",null);case CURRENT_MODULE.IMPORT_FLOW:return h("nl-import-flow",{services:this.connectionStringServices});case CURRENT_MODULE.IMPORT_OTP:return h("nl-otp-migrate",{services:this.connectionStringServices});case CURRENT_MODULE.INFO:return h("nl-info",null);case CURRENT_MODULE.EXTENSION:return h("nl-info-extension",null);case CURRENT_MODULE.LOGIN_READ_ONLY:return h("nl-signin-read-only",null);case CURRENT_MODULE.LOGIN_BUNKER_URL:return h("nl-signin-bunker-url",null);case CURRENT_MODULE.LOGIN_OTP:return h("nl-signin-otp",null);case CURRENT_MODULE.WELCOME_LOGIN:return h("nl-welcome-signin",{hasOTP:this.hasOTP,authMethods:this.authMethods,hasExtension:this.hasExtension});case CURRENT_MODULE.WELCOME_SIGNUP:return h("nl-welcome-signup",null);case CURRENT_MODULE.CONNECTION_STRING:return h("nl-signin-connection-string",{connectionString:this.connectionString});case CURRENT_MODULE.CONNECT:return h("nl-connect",{connectionStringServices:this.connectionStringServices,authMethods:this.authMethods});case CURRENT_MODULE.PREVIOUSLY_LOGGED:return h("nl-previously-logged",{accounts:this.accounts,recents:this.recents});case CURRENT_MODULE.IFRAME:return h("nl-iframe",{iframeUrl:this.authUrl});default:return h("nl-welcome",null)}})(),r&&h(Fragment,null,s===CURRENT_MODULE.WELCOME_SIGNUP||s===CURRENT_MODULE.SIGNUP||s===CURRENT_MODULE.LOCAL_SIGNUP?h("div",{class:"p-4 overflow-y-auto"},h("p",{class:"nl-footer font-light text-center text-sm pt-3 max-w-96 mx-auto"},"If you already have a profile please"," ",h("span",{onClick:()=>this.switchSignSignUpStrategy(CURRENT_MODULE.WELCOME_LOGIN),class:"cursor-pointer text-blue-400"},"log in"),".")):i&&h("div",{class:"p-4 overflow-y-auto"},h("p",{class:"nl-footer font-light text-center text-sm pt-3 max-w-96 mx-auto"},"If you don't have a profile please"," ",h("span",{onClick:()=>this.switchSignSignUpStrategy(this.localSignup?CURRENT_MODULE.LOCAL_SIGNUP:CURRENT_MODULE.WELCOME_SIGNUP),class:"cursor-pointer text-blue-400"},"sign up"),".")))))))}static get watchers(){return{localSignup:["watchLocalSignupHandler"],isLoading:["watchLoadingHandler"],isLoadingExtension:["watchLoadingExtensionHandler"],isOTP:["watchOTPHandler"],authUrl:["watchAuthUrlHandler"],iframeUrl:["watchIframeUrlHandler"],error:["watchErrorHandler"]}}static get style(){return NlAuthStyle0}},[1,"nl-auth",{theme:[1025],bunkers:[1],startScreen:[1,"start-screen"],authMethods:[16],hasExtension:[4,"has-extension"],hasOTP:[4,"has-o-t-p"],isLoading:[4,"is-loading"],isLoadingExtension:[4,"is-loading-extension"],isOTP:[4,"is-o-t-p"],authUrl:[1,"auth-url"],iframeUrl:[1,"iframe-url"],error:[1],localSignup:[4,"local-signup"],accounts:[1040],recents:[1040],darkMode:[1028,"dark-mode"],welcomeTitle:[1,"welcome-title"],welcomeDescription:[1,"welcome-description"],connectionString:[1,"connection-string"],connectionStringServices:[16]},void 0,{localSignup:["watchLocalSignupHandler"],isLoading:["watchLoadingHandler"],isLoadingExtension:["watchLoadingExtensionHandler"],isOTP:["watchOTPHandler"],authUrl:["watchAuthUrlHandler"],iframeUrl:["watchIframeUrlHandler"],error:["watchErrorHandler"]}]);function defineCustomElement$4(){typeof customElements>"u"||["nl-auth","button-base","nl-confirm-logout","nl-connect","nl-iframe","nl-import-flow","nl-info","nl-info-extension","nl-loading","nl-local-signup","nl-login-status","nl-otp-migrate","nl-previously-logged","nl-select","nl-signin","nl-signin-bunker-url","nl-signin-connection-string","nl-signin-otp","nl-signin-read-only","nl-signup","nl-welcome","nl-welcome-signin","nl-welcome-signup"].forEach(o=>{switch(o){case"nl-auth":customElements.get(o)||customElements.define(o,NlAuth);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-confirm-logout":customElements.get(o)||defineCustomElement$p();break;case"nl-connect":customElements.get(o)||defineCustomElement$o();break;case"nl-iframe":customElements.get(o)||defineCustomElement$n();break;case"nl-import-flow":customElements.get(o)||defineCustomElement$l();break;case"nl-info":customElements.get(o)||defineCustomElement$k();break;case"nl-info-extension":customElements.get(o)||defineCustomElement$j();break;case"nl-loading":customElements.get(o)||defineCustomElement$i();break;case"nl-local-signup":customElements.get(o)||defineCustomElement$h();break;case"nl-login-status":customElements.get(o)||defineCustomElement$g();break;case"nl-otp-migrate":customElements.get(o)||defineCustomElement$f();break;case"nl-previously-logged":customElements.get(o)||defineCustomElement$e();break;case"nl-select":customElements.get(o)||defineCustomElement$m();break;case"nl-signin":customElements.get(o)||defineCustomElement$d();break;case"nl-signin-bunker-url":customElements.get(o)||defineCustomElement$c();break;case"nl-signin-connection-string":customElements.get(o)||defineCustomElement$b();break;case"nl-signin-otp":customElements.get(o)||defineCustomElement$a();break;case"nl-signin-read-only":customElements.get(o)||defineCustomElement$9();break;case"nl-signup":customElements.get(o)||defineCustomElement$8();break;case"nl-welcome":customElements.get(o)||defineCustomElement$7();break;case"nl-welcome-signin":customElements.get(o)||defineCustomElement$6();break;case"nl-welcome-signup":customElements.get(o)||defineCustomElement$5()}})}defineCustomElement$4();const NlButton=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.theme="default",this.darkMode=!1,this.titleBtn="Open modal",this.disabled=!1}render(){return h("button-base",{key:"9f7936090efc7263cce71d1ad89490d7f5445991",theme:this.theme,darkMode:this.darkMode,titleBtn:this.titleBtn,disabled:this.disabled})}},[1,"nl-button",{theme:[1],darkMode:[4,"dark-mode"],titleBtn:[1,"title-btn"],disabled:[4]}]);function defineCustomElement$3(){typeof customElements>"u"||["nl-button","button-base"].forEach(o=>{switch(o){case"nl-button":customElements.get(o)||customElements.define(o,NlButton);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$3();const nlChangeAccountCss=baseCss,NlChangeAccountStyle0=nlChangeAccountCss,NLChangeAccount=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.handleOpenWelcomeModal=createEvent(this,"handleOpenWelcomeModal",7),this.handleSwitchAccount=createEvent(this,"handleSwitchAccount",7),this.isOpen=!1,this.options=[],this.accounts=[],this.currentAccount=null,this.mode=!1,this.darkMode=!1,this.themeState="default",this.theme="default"}handleWindowClick(){this.wrapperRef.querySelector(".listClass")&&(this.isOpen=!1)}toggleDropdown(){this.isOpen=!this.isOpen,this.calculateDropdownPosition()}watchPropHandler(o){this.themeState=o}watchModeHandler(o){this.mode=o}watchAccountsHandler(o){this.options=o}connectedCallback(){this.themeState=this.theme,this.mode=this.darkMode}calculateDropdownPosition(){if(this.isOpen&&this.buttonRef){const o=this.buttonRef.getBoundingClientRect();this.ulRef.style.top=`${o.height}px`}}handleChange(o){this.handleSwitchAccount.emit(o)}handleOpenModal(){this.handleOpenWelcomeModal.emit()}render(){const o=(this.isOpen?"listClass flex flex-col gap-2":"hidden")+" w-full nl-select-list absolute z-10 left-0 shadow-md rounded-lg p-2 mt-1 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full",s=(this.isOpen?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-gray-500",r=this.options&&this.currentAccount?this.options.filter(i=>i.pubkey!==this.currentAccount.pubkey||i.authMethod!==this.currentAccount.authMethod):[];return h("div",{key:"4e15e39f7ac6a552bfc772396e3e9ef8eeca95cc",class:`theme-${this.themeState}`},h("div",{key:"eae10769ce35dc4cc072d2361c1ee1390c79c822",class:"relative",ref:i=>this.wrapperRef=i},h("button",{key:"e585a44168809f27b99201f7e13bd5db5e4f6569",ref:i=>this.buttonRef=i,onClick:()=>this.toggleDropdown(),type:"button",class:"nl-select peer py-3 px-4 flex items-center w-full justify-between border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent"},h("span",{key:"006ed9a67b57227d4dab51f0b6bcb8290cd9d3ac",class:"text-gray-500"},"Switch profile"),h("svg",{key:"5f824a479165929698fab31b8837b89418587652",class:s,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"600914907723c9f8d01a15da357ccb825c1d1e6a",d:"m6 9 6 6 6-6"}))),h("ul",{key:"9b5b68724a3bce995e6b8b0a9d0eb653baedf79a",ref:i=>this.ulRef=i,class:o},this.options&&r.map(i=>{const c=i.name||i.nip05||i.pubkey;return h("li",{onClick:()=>this.handleChange(i),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},h("div",{class:"uppercase font-bold w-full max-w-6 h-6 rounded-full border border-gray-400 flex justify-center items-center"},i?.picture?h("img",{class:"w-full rounded-full",src:i.picture,alt:"Logo"}):c?c[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"truncate overflow-hidden"},c),h("nl-login-status",{info:i})))}),h("li",{key:"936f2b75ca2dfca3483650d5d62fc50182cfc8f2",class:"first:pt-0 pt-2 border-t-[1px] first:border-none border-gray-300"},h("div",{key:"be0b4f29e70d8e2bc9fd1cc04c0fb43ad3dd5cac",onClick:()=>this.handleOpenModal(),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},h("div",{key:"bdd2a67e5763726666fcea91b0e7de67fe855994",class:"uppercase font-bold w-6 h-6 rounded-full border border-gray-400 flex justify-center items-center"},h("svg",{key:"f3a258f3e510ccb83b95bf3abecf65c248c8b0f1",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-4 h-4"},h("path",{key:"dafaa898f3e042531a923a9a77b94511895c6102","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"}))),"Add profile")))))}get element(){return this}static get watchers(){return{theme:["watchPropHandler"],darkMode:["watchModeHandler"],accounts:["watchAccountsHandler"]}}static get style(){return NlChangeAccountStyle0}},[0,"nl-change-account",{accounts:[16],currentAccount:[16],darkMode:[4,"dark-mode"],theme:[1],isOpen:[32],options:[32],mode:[32],themeState:[32]},[[8,"click","handleWindowClick"]],{theme:["watchPropHandler"],darkMode:["watchModeHandler"],accounts:["watchAccountsHandler"]}]);function defineCustomElement$2(){typeof customElements>"u"||["nl-change-account","nl-login-status"].forEach(o=>{switch(o){case"nl-change-account":customElements.get(o)||customElements.define(o,NLChangeAccount);break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement$2();const nlDialogCss=baseCss,NlDialogStyle0=nlDialogCss,NlDialog=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}componentDidLoad(){var o;null===(o=this.dialogElement)||void 0===o||o.showModal()}disconnectedCallback(){var o;null===(o=this.dialogElement)||void 0===o||o.close()}render(){return h("dialog",{key:"9c20328d937c160bcb9b9bf731d744721e84f189",ref:o=>this.dialogElement=o,class:"m-auto nl-banner-dialog"},h("slot",{key:"2e047d7c9e8904d590c588b73a5480cb1605ff86"}))}static get style(){return NlDialogStyle0}},[1,"nl-dialog"]);function defineCustomElement$1(){typeof customElements>"u"||["nl-dialog"].forEach(o=>{"nl-dialog"===o&&(customElements.get(o)||customElements.define(o,NlDialog))})}defineCustomElement$1();const nlBannerCss=baseCss,NlBannerStyle0=nlBannerCss,NlBanner=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.handleNotifyConfirmBanner=createEvent(this,"handleNotifyConfirmBanner",7),this.handleNotifyConfirmBannerIframe=createEvent(this,"handleNotifyConfirmBannerIframe",7),this.handleLoginBanner=createEvent(this,"handleLoginBanner",7),this.handleLogoutBanner=createEvent(this,"handleLogoutBanner",7),this.handleOpenWelcomeModal=createEvent(this,"handleOpenWelcomeModal",7),this.handleConfirmLogout=createEvent(this,"handleConfirmLogout",7),this.handleImportModal=createEvent(this,"handleImportModal",7),this.theme="default",this.darkMode=!1,this.hiddenMode=!1,this.titleBanner="",this.isOpen=!1,this.isLoading=!1,this.notify=null,this.userInfo=null,this.accounts=[],this.isUserImgError=!1,this.domain="",this.mode="",this.url="",this.isOpenConfirm=!1}watchNotifyHandler(o){var s,r,i,a;this.isOpen=!0,this.isOpenConfirm=!0,this.domain=(null===(s=this.userInfo)||void 0===s?void 0:s.domain)||(null===(a=null===(i=null===(r=this.userInfo)||void 0===r?void 0:r.nip05)||void 0===i?void 0:i.split("@"))||void 0===a?void 0:a[1])||"",this.mode=o.mode,this.url=o.url,this.mode||(this.isOpenConfirm=!1,this.isOpen=!1)}handleOpen(){this.userInfo?this.isOpen=!0:this.handleOpenWelcomeModal.emit()}handleClose(){this.isOpen=!1}handleLogin(){this.handleLoginBanner.emit(METHOD_MODULE.LOGIN),this.handleClose()}handleSignup(){this.handleLoginBanner.emit(METHOD_MODULE.SIGNUP),this.handleClose()}handleImport(){this.handleImportModal.emit(),this.handleClose()}handleLogout(){if(localStorage.getItem("backupKey"))return this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.handleClose(),void localStorage.removeItem("backupKey");"local"===this.userInfo.authMethod?this.handleConfirmLogout.emit():this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.handleClose()}handleConfirm(){switch(this.mode){case"authUrl":this.handleNotifyConfirmBanner.emit(this.url);break;case"iframeAuthUrl":this.handleNotifyConfirmBannerIframe.emit(this.url)}this.handleClose()}render(){var o,s,r,i,a,c;const y=!(null===(o=this.userInfo)||void 0===o||!o.picture),w=(null===(s=this.userInfo)||void 0===s?void 0:s.name)||(null===(a=null===(i=null===(r=this.userInfo)||void 0===r?void 0:r.nip05)||void 0===i?void 0:i.split("@"))||void 0===a?void 0:a[0])||(null===(c=this.userInfo)||void 0===c?void 0:c.pubkey)||"",C=!!w,T=this.userInfo&&"local"===this.userInfo.authMethod,S=localStorage.getItem("backupKey"),A=h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})),I=h(Fragment,null,h("div",{class:"block w-[48px] h-[46px] relative z-10"},h("div",{onClick:()=>this.handleOpen(),class:"flex w-52 h-[46px] items-center pl-[11px]"},h("span",{class:(this.isLoading?"w-5 h-5 border-[2px] mr-3.5 ml-[2px] opacity-1":"w-0 h-0 border-[0px] mr-0 opacity-0 ml-0")+" animate-spin transition-all duration-300 ease-in-out inline-block border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}),this.userInfo?h("div",{class:"uppercase font-bold w-6 h-6 mr-2 rounded-full border border-gray-200 flex justify-center items-center"},y?this.isUserImgError?A:h("img",{class:"w-full rounded-full",src:this.userInfo.picture,alt:"Logo",onError:()=>this.isUserImgError=!0}):C?w[0]:A):h("div",{class:"flex justify-center items-center"},h("svg",{class:"w-6 h-6",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),this.isOpen&&h("span",{class:"px-2"},h("b",null,"Nostr")," Login")),this.isOpen&&C&&h("div",{class:"show-slow truncate w-16 text-xs"},w),this.isOpen&&C&&h("nl-login-status",{info:this.userInfo}))),h("button",{onClick:()=>this.handleClose(),type:"button",class:(this.isOpen?"z-20":"z-0")+" nl-action-button absolute right-2 top-2 z-0 show-slow grid place-items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Close"),h("svg",{class:"flex-shrink-0 w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{d:"M18 6 6 18"}),h("path",{d:"m6 6 12 12"}))),h("div",{class:"p-3 show-slow"},this.isOpenConfirm?h("div",null,h("div",{class:"w-8 h-8 p-1/2 rounded-full border border-gray-200 bg-white mb-2 mt-2 show-slow m-auto"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#5a68ff",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))),h("p",{class:"mb-2 text-center max-w-40 min-w-40 mx-auto"},"timeout"===this.mode?"Keys not responding, check your key storage app":`Confirmation required at ${this.domain}`),"timeout"===this.mode?h("a",{onClick:()=>this.handleClose(),href:`https://${this.domain}`,target:"_blank",class:"nl-button text-nowrap py-2.5 px-3 w-full inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"},"Go to ",this.domain):"rebind"===this.mode?h("iframe",{src:this.url,width:"180",height:"80"}):h("button-base",{onClick:()=>this.handleConfirm(),titleBtn:"Confirm"})):h("div",null,h("div",null,this.titleBanner&&h("p",{class:"mb-2 text-center show-slow max-w-40 min-w-40 mx-auto"},this.titleBanner),T&&h(Fragment,null,!S&&h("p",{class:"mb-2 text-center show-slow text-red-400 max-w-40 min-w-40 mx-auto"},"Your profile may be lost if you close this tab"),h("div",{class:"mb-2"},h("button-base",{onClick:()=>this.handleImport(),theme:"lemonade",titleBtn:"Back up profile"}))),h("div",{class:"mb-2"},h("nl-change-account",{currentAccount:this.userInfo,accounts:this.accounts})),this.userInfo?h("button-base",{onClick:()=>this.handleLogout(),titleBtn:"Log out"}):h("div",null,h("button-base",{onClick:()=>this.handleLogin(),titleBtn:"Log in"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))),h("button-base",{onClick:()=>this.handleSignup(),titleBtn:"Sign up"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))))),K=!!function Z(ne,be){be=be||document.body;const me=Array.from(be.querySelectorAll(ne)),pe=function(Te){Z(ne,Te).forEach(xe=>{me.includes(xe)||me.push(xe)})};be.shadowRoot&&pe(be.shadowRoot);for(const Te of Array.from(be.querySelectorAll("*")))Te.shadowRoot&&pe(Te.shadowRoot);return me}("dialog").find(Z=>Z.open&&!Z.classList.contains("nl-banner-dialog"));return console.log("nostr-login need dialog",K),h("div",{class:`theme-${this.theme} ${!this.isOpen&&this.hiddenMode?"hidden":""}`},h("div",{class:this.darkMode&&"dark",dir:"ltr"},this.isOpenConfirm&&K?h("nl-dialog",null,h("div",{class:`nl-banner ${this.isOpen?"w-52 h-auto right-2 rounded-r-lg isOpen ":"rounded-r-none hover:rounded-r-lg cursor-pointer"} z-50 w-12 h-12 fixed top-52 right-0 inline-block gap-x-2 text-sm font-medium rounded-lg hover:right-2 transition-all duration-300 ease-in-out`},I)):h("div",{class:`nl-banner ${this.isOpen?"w-52 h-auto right-2 rounded-r-lg isOpen":"rounded-r-none hover:rounded-r-lg cursor-pointer"} z-50 w-12 h-12 fixed top-52 right-0 inline-block gap-x-2 text-sm font-medium rounded-lg hover:right-2 transition-all duration-300 ease-in-out`},I)))}static get watchers(){return{notify:["watchNotifyHandler"]}}static get style(){return NlBannerStyle0}},[1,"nl-banner",{theme:[1025],darkMode:[1028,"dark-mode"],hiddenMode:[1028,"hidden-mode"],titleBanner:[1,"title-banner"],isOpen:[1028,"is-open"],isLoading:[4,"is-loading"],notify:[16],userInfo:[16],accounts:[1040],isUserImgError:[32],domain:[32],mode:[32],url:[32],isOpenConfirm:[32]},void 0,{notify:["watchNotifyHandler"]}]);function defineCustomElement(){typeof customElements>"u"||["nl-banner","button-base","nl-change-account","nl-dialog","nl-login-status"].forEach(o=>{switch(o){case"nl-banner":customElements.get(o)||customElements.define(o,NlBanner);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-change-account":customElements.get(o)||defineCustomElement$2();break;case"nl-dialog":customElements.get(o)||defineCustomElement$1();break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var lib$1={},types={};Object.defineProperty(types,"__esModule",{value:!0});var ee={},taskCollection$1={},taskCollection={},bakeCollection={};(function(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.bakeCollectionVariadic=exports.bakeCollectionAwait=exports.bakeCollection=exports.BAKED_EMPTY_FUNC=void 0,exports.BAKED_EMPTY_FUNC=function(){};var FORLOOP_FALLBACK=1500;function generateArgsDefCode(o){var s="";if(0===o)return s;for(var r=0;r1)s?((r=this._tasks).push.apply(r,arguments),this.length+=arguments.length):(this._tasks.push(o),this.length++);else if(s){var a;1===i?((a=Array(1+arguments.length)).push(a),a.push.apply(a,arguments),this._tasks=a):((a=Array(arguments.length)).push.apply(a,arguments),this._tasks=a),this.length+=arguments.length}else this._tasks=1===i?[this._tasks,o]:o,this.length++}function push_rebuild(o,s){var r,i=this.length;if(i>1)s?((r=this._tasks).push.apply(r,arguments),this.length+=arguments.length):(this._tasks.push(o),this.length++);else if(s){var a;1===i?((a=Array(1+arguments.length)).push(a),a.push.apply(a,arguments),this._tasks=a):((a=Array(arguments.length)).push.apply(a,arguments),this._tasks=a),this.length+=arguments.length}else this._tasks=1===i?[this._tasks,o]:o,this.length++;this.firstEmitBuildStrategy?this.call=rebuild_on_first_call:this.rebuild()}function _fast_remove_single(o,s){-1!==s&&(0===s?o.shift():s===o.length-1?o.length=o.length-1:o.splice(s,1))}function removeLast_norebuild(o){0!==this.length&&(1===this.length?this._tasks===o&&(this.length=0):(_fast_remove_single(this._tasks,this._tasks.lastIndexOf(o)),1===this._tasks.length?(this._tasks=this._tasks[0],this.length=1):this.length=this._tasks.length))}function removeLast_rebuild(o){if(0!==this.length){if(1===this.length)return this._tasks===o&&(this.length=0),this.firstEmitBuildStrategy?void(this.call=bake_collection_1.BAKED_EMPTY_FUNC):void this.rebuild();_fast_remove_single(this._tasks,this._tasks.lastIndexOf(o)),1===this._tasks.length?(this._tasks=this._tasks[0],this.length=1):this.length=this._tasks.length,this.firstEmitBuildStrategy?this.call=rebuild_on_first_call:this.rebuild()}}function insert_norebuild(o){for(var s,r=[],i=1;i0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$3(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$3(o.outputLen),number$3(o.blockLen)}function exists$3(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$3(o,s){bytes$3(o);const r=s.outputLen;if(o.lengtho instanceof Uint8Array,createView$2=o=>new DataView(o.buffer,o.byteOffset,o.byteLength),rotr$2=(o,s)=>o<<32-s|o>>>s,isLE$3=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$3)throw new Error("Non little-endian hardware is not supported");function utf8ToBytes$4(o){if("string"!=typeof o)throw new Error("utf8ToBytes expected string, got "+typeof o);return new Uint8Array((new TextEncoder).encode(o))}function toBytes$3(o){if("string"==typeof o&&(o=utf8ToBytes$4(o)),!u8a$3(o))throw new Error("expected Uint8Array, got "+typeof o);return o}function concatBytes$3(...o){const s=new Uint8Array(o.reduce((i,a)=>i+a.length,0));let r=0;return o.forEach(i=>{if(!u8a$3(i))throw new Error("Uint8Array expected");s.set(i,r),r+=i.length}),s}Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));let Hash$2=class{clone(){return this._cloneInto()}};function wrapConstructor$2(o){const s=i=>o().update(toBytes$3(i)).digest(),r=o();return s.outputLen=r.outputLen,s.blockLen=r.blockLen,s.create=()=>o(),s}function randomBytes$2(o=32){if(crypto$3&&"function"==typeof crypto$3.getRandomValues)return crypto$3.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}function setBigUint64$2(o,s,r,i){if("function"==typeof o.setBigUint64)return o.setBigUint64(s,r,i);const a=BigInt(32),c=BigInt(4294967295),y=Number(r>>a&c),w=Number(r&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}let SHA2$2=class extends Hash$2{constructor(o,s,r,i){super(),this.blockLen=o,this.outputLen=s,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=createView$2(this.buffer)}update(o){assert$3.exists(this);const{view:s,buffer:r,blockLen:i}=this,a=(o=toBytes$3(o)).length;for(let c=0;ci-c&&(this.process(r,0),c=0);for(let S=c;ST.length)throw new Error("_sha2: outputLen bigger than state");for(let S=0;So&s^~o&r,Maj$2=(o,s,r)=>o&s^o&r^s&r,SHA256_K$2=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV$2=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$2=new Uint32Array(64);let SHA256$2=class extends SHA2$2{constructor(){super(64,32,8,!1),this.A=0|IV$2[0],this.B=0|IV$2[1],this.C=0|IV$2[2],this.D=0|IV$2[3],this.E=0|IV$2[4],this.F=0|IV$2[5],this.G=0|IV$2[6],this.H=0|IV$2[7]}get(){const{A:o,B:s,C:r,D:i,E:a,F:c,G:y,H:w}=this;return[o,s,r,i,a,c,y,w]}set(o,s,r,i,a,c,y,w){this.A=0|o,this.B=0|s,this.C=0|r,this.D=0|i,this.E=0|a,this.F=0|c,this.G=0|y,this.H=0|w}process(o,s){for(let S=0;S<16;S++,s+=4)SHA256_W$2[S]=o.getUint32(s,!1);for(let S=16;S<64;S++){const A=SHA256_W$2[S-15],I=SHA256_W$2[S-2],N=rotr$2(A,7)^rotr$2(A,18)^A>>>3,K=rotr$2(I,17)^rotr$2(I,19)^I>>>10;SHA256_W$2[S]=K+SHA256_W$2[S-7]+N+SHA256_W$2[S-16]|0}let{A:r,B:i,C:a,D:c,E:y,F:w,G:C,H:T}=this;for(let S=0;S<64;S++){const A=T+(rotr$2(y,6)^rotr$2(y,11)^rotr$2(y,25))+Chi$2(y,w,C)+SHA256_K$2[S]+SHA256_W$2[S]|0,I=(rotr$2(r,2)^rotr$2(r,13)^rotr$2(r,22))+Maj$2(r,i,a)|0;T=C,C=w,w=y,y=c+A|0,c=a,a=i,i=r,r=A+I|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,y=y+this.E|0,w=w+this.F|0,C=C+this.G|0,T=T+this.H|0,this.set(r,i,a,c,y,w,C,T)}roundClean(){SHA256_W$2.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},SHA224$1=class extends SHA256$2{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}};const sha256$2=wrapConstructor$2(()=>new SHA256$2);wrapConstructor$2(()=>new SHA224$1);const _0n$4=BigInt(0),_1n$4=BigInt(1),_2n$2=BigInt(2),u8a$2=o=>o instanceof Uint8Array,hexes$2=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex$2(o){if(!u8a$2(o))throw new Error("Uint8Array expected");let s="";for(let r=0;ri+a.length,0));let r=0;return o.forEach(i=>{if(!u8a$2(i))throw new Error("Uint8Array expected");s.set(i,r),r+=i.length}),s}function equalBytes$1(o,s){if(o.length!==s.length)return!1;for(let r=0;r_0n$4;o>>=_1n$4,s+=1);return s}function bitGet(o,s){return o>>BigInt(s)&_1n$4}const bitSet=(o,s,r)=>o|(r?_1n$4:_0n$4)<(_2n$2<new Uint8Array(o),u8fr=o=>Uint8Array.from(o);function createHmacDrbg(o,s,r){if("number"!=typeof o||o<2)throw new Error("hashLen must be a number");if("number"!=typeof s||s<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let i=u8n(o),a=u8n(o),c=0;const y=()=>{i.fill(1),a.fill(0),c=0},w=(...S)=>r(a,i,...S),C=(S=u8n())=>{a=w(u8fr([0]),S),i=w(),0!==S.length&&(a=w(u8fr([1]),S),i=w())},T=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let S=0;const A=[];for(;S{let I;for(y(),C(S);!(I=A(T()));)C();return y(),I}}const validatorFns={bigint:o=>"bigint"==typeof o,function:o=>"function"==typeof o,boolean:o=>"boolean"==typeof o,string:o=>"string"==typeof o,isSafeInteger:o=>Number.isSafeInteger(o),array:o=>Array.isArray(o),field:(o,s)=>s.Fp.isValid(o),hash:o=>"function"==typeof o&&Number.isSafeInteger(o.outputLen)};function validateObject(o,s,r={}){const i=(a,c,y)=>{const w=validatorFns[c];if("function"!=typeof w)throw new Error(`Invalid validator "${c}", expected function`);const C=o[a];if(!(y&&void 0===C||w(C,o)))throw new Error(`Invalid param ${String(a)}=${C} (${typeof C}), expected ${c}`)};for(const[a,c]of Object.entries(s))i(a,c,!1);for(const[a,c]of Object.entries(r))i(a,c,!0);return o}var ut=Object.freeze({__proto__:null,bitGet,bitLen,bitMask,bitSet,bytesToHex:bytesToHex$2,bytesToNumberBE,bytesToNumberLE,concatBytes:concatBytes$2,createHmacDrbg,ensureBytes:ensureBytes$1,equalBytes:equalBytes$1,hexToBytes:hexToBytes$2,hexToNumber,numberToBytesBE,numberToBytesLE,numberToHexUnpadded,numberToVarBytesBE,utf8ToBytes:utf8ToBytes$3,validateObject});const _0n$3=BigInt(0),_1n$3=BigInt(1),_2n$1=BigInt(2),_3n$1=BigInt(3),_4n=BigInt(4),_5n=BigInt(5),_8n=BigInt(8);function mod(o,s){const r=o%s;return r>=_0n$3?r:s+r}function pow(o,s,r){if(r<=_0n$3||s<_0n$3)throw new Error("Expected power/modulo > 0");if(r===_1n$3)return _0n$3;let i=_1n$3;for(;s>_0n$3;)s&_1n$3&&(i=i*o%r),o=o*o%r,s>>=_1n$3;return i}function pow2(o,s,r){let i=o;for(;s-- >_0n$3;)i*=i,i%=r;return i}function invert(o,s){if(o===_0n$3||s<=_0n$3)throw new Error(`invert: expected positive integers, got n=${o} mod=${s}`);let r=mod(o,s),i=s,a=_0n$3,c=_1n$3;for(;r!==_0n$3;){const y=i%r,w=a-c*(i/r);i=r,r=y,a=c,c=w}if(i!==_1n$3)throw new Error("invert: does not exist");return mod(a,s)}function tonelliShanks(o){const s=(o-_1n$3)/_2n$1;let r,i,a;for(r=o-_1n$3,i=0;r%_2n$1===_0n$3;r/=_2n$1,i++);for(a=_2n$1;a(r[i]="function",r),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}function FpPow(o,s,r){if(r<_0n$3)throw new Error("Expected power > 0");if(r===_0n$3)return o.ONE;if(r===_1n$3)return s;let i=o.ONE,a=s;for(;r>_0n$3;)r&_1n$3&&(i=o.mul(i,a)),a=o.sqr(a),r>>=_1n$3;return i}function FpInvertBatch(o,s){const r=new Array(s.length),i=s.reduce((c,y,w)=>o.is0(y)?c:(r[w]=c,o.mul(c,y)),o.ONE),a=o.inv(i);return s.reduceRight((c,y,w)=>o.is0(y)?c:(r[w]=o.mul(c,r[w]),o.mul(c,y)),a),r}function nLength(o,s){const r=void 0!==s?s:o.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function Field(o,s,r=!1,i={}){if(o<=_0n$3)throw new Error(`Expected Fp ORDER > 0, got ${o}`);const{nBitLength:a,nByteLength:c}=nLength(o,s);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const y=FpSqrt(o),w=Object.freeze({ORDER:o,BITS:a,BYTES:c,MASK:bitMask(a),ZERO:_0n$3,ONE:_1n$3,create:C=>mod(C,o),isValid:C=>{if("bigint"!=typeof C)throw new Error("Invalid field element: expected bigint, got "+typeof C);return _0n$3<=C&&CC===_0n$3,isOdd:C=>(C&_1n$3)===_1n$3,neg:C=>mod(-C,o),eql:(C,T)=>C===T,sqr:C=>mod(C*C,o),add:(C,T)=>mod(C+T,o),sub:(C,T)=>mod(C-T,o),mul:(C,T)=>mod(C*T,o),pow:(C,T)=>FpPow(w,C,T),div:(C,T)=>mod(C*invert(T,o),o),sqrN:C=>C*C,addN:(C,T)=>C+T,subN:(C,T)=>C-T,mulN:(C,T)=>C*T,inv:C=>invert(C,o),sqrt:i.sqrt||(C=>y(w,C)),invertBatch:C=>FpInvertBatch(w,C),cmov:(C,T,S)=>S?T:C,toBytes:C=>r?numberToBytesLE(C,c):numberToBytesBE(C,c),fromBytes:C=>{if(C.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${C.length}`);return r?bytesToNumberLE(C):bytesToNumberBE(C)}});return Object.freeze(w)}function hashToPrivateScalar(o,s,r=!1){const i=(o=ensureBytes$1("privateHash",o)).length,a=nLength(s).nByteLength+8;if(a<24||i1024)throw new Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${i}`);return mod(r?bytesToNumberLE(o):bytesToNumberBE(o),s-_1n$3)+_1n$3}const _0n$2=BigInt(0),_1n$2=BigInt(1);function wNAF(o,s){const r=(a,c)=>{const y=c.negate();return a?y:c},i=a=>({windows:Math.ceil(s/a)+1,windowSize:2**(a-1)});return{constTimeNegate:r,unsafeLadder(a,c){let y=o.ZERO,w=a;for(;c>_0n$2;)c&_1n$2&&(y=y.add(w)),w=w.double(),c>>=_1n$2;return y},precomputeWindow(a,c){const{windows:y,windowSize:w}=i(c),C=[];let T=a,S=T;for(let A=0;A>=N,ne>C&&(ne-=I,y+=_1n$2);const be=Z,me=Z+Math.abs(ne)-1,Te=ne<0;0===ne?S=S.add(r(K%2!=0,c[be])):T=T.add(r(Te,c[me]))}return{p:T,f:S}},wNAFCached(a,c,y,w){const C=a._WINDOW_SIZE||1;let T=c.get(a);return T||(T=this.precomputeWindow(a,C),1!==C&&c.set(a,w(T))),this.wNAF(C,T,y)}}}function validateBasic(o){return validateField(o.Fp),validateObject(o,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nLength(o.n,o.nBitLength),...o,p:o.Fp.ORDER})}function validatePointOpts(o){const s=validateBasic(o);validateObject(s,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:i,a}=s;if(r){if(!i.eql(a,i.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...s})}const{bytesToNumberBE:b2n,hexToBytes:h2b}=ut,DER={Err:class extends Error{constructor(o=""){super(o)}},_parseInt(o){const{Err:s}=DER;if(o.length<2||2!==o[0])throw new s("Invalid signature integer tag");const r=o[1],i=o.subarray(2,r+2);if(!r||i.length!==r)throw new s("Invalid signature integer: wrong length");if(128&i[0])throw new s("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new s("Invalid signature integer: unnecessary leading zero");return{d:b2n(i),l:o.subarray(r+2)}},toSig(o){const{Err:s}=DER,r="string"==typeof o?h2b(o):o;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let i=r.length;if(i<2||48!=r[0])throw new s("Invalid signature tag");if(r[1]!==i-2)throw new s("Invalid signature: incorrect length");const{d:a,l:c}=DER._parseInt(r.subarray(2)),{d:y,l:w}=DER._parseInt(c);if(w.length)throw new s("Invalid signature: left bytes after parsing");return{r:a,s:y}},hexFromSig(o){const s=T=>8&Number.parseInt(T[0],16)?"00"+T:T,r=T=>{const S=T.toString(16);return 1&S.length?`0${S}`:S},i=s(r(o.s)),a=s(r(o.r)),c=i.length/2,y=a.length/2,w=r(c),C=r(y);return`30${r(y+c+4)}02${C}${a}02${w}${i}`}},_0n$1=BigInt(0),_1n$1=BigInt(1);BigInt(2);const _3n=BigInt(3);function weierstrassPoints(o){const s=validatePointOpts(o),{Fp:r}=s,i=s.toBytes||((K,Z,ne)=>{const be=Z.toAffine();return concatBytes$2(Uint8Array.from([4]),r.toBytes(be.x),r.toBytes(be.y))}),a=s.fromBytes||(K=>{const Z=K.subarray(1);return{x:r.fromBytes(Z.subarray(0,r.BYTES)),y:r.fromBytes(Z.subarray(r.BYTES,2*r.BYTES))}});function c(K){const{a:Z,b:ne}=s,be=r.sqr(K),me=r.mul(be,K);return r.add(r.add(me,r.mul(K,Z)),ne)}if(!r.eql(r.sqr(s.Gy),c(s.Gx)))throw new Error("bad generator point: equation left != right");function y(K){return"bigint"==typeof K&&_0n$1r.eql(pe,r.ZERO);return me(ne)&&me(be)?A.ZERO:new A(ne,be,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Z){const ne=r.invertBatch(Z.map(be=>be.pz));return Z.map((be,me)=>be.toAffine(ne[me])).map(A.fromAffine)}static fromHex(Z){const ne=A.fromAffine(a(ensureBytes$1("pointHex",Z)));return ne.assertValidity(),ne}static fromPrivateKey(Z){return A.BASE.multiply(C(Z))}_setWindowSize(Z){this._WINDOW_SIZE=Z,T.delete(this)}assertValidity(){if(this.is0()){if(s.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:Z,y:ne}=this.toAffine();if(!r.isValid(Z)||!r.isValid(ne))throw new Error("bad point: x or y not FE");const be=r.sqr(ne),me=c(Z);if(!r.eql(be,me))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Z}=this.toAffine();if(r.isOdd)return!r.isOdd(Z);throw new Error("Field doesn't support isOdd")}equals(Z){S(Z);const{px:ne,py:be,pz:me}=this,{px:pe,py:Te,pz:xe}=Z,Re=r.eql(r.mul(ne,xe),r.mul(pe,me)),Me=r.eql(r.mul(be,xe),r.mul(Te,me));return Re&&Me}negate(){return new A(this.px,r.neg(this.py),this.pz)}double(){const{a:Z,b:ne}=s,be=r.mul(ne,_3n),{px:me,py:pe,pz:Te}=this;let xe=r.ZERO,Re=r.ZERO,Me=r.ZERO,Ce=r.mul(me,me),le=r.mul(pe,pe),ae=r.mul(Te,Te),Ie=r.mul(me,pe);return Ie=r.add(Ie,Ie),Me=r.mul(me,Te),Me=r.add(Me,Me),xe=r.mul(Z,Me),Re=r.mul(be,ae),Re=r.add(xe,Re),xe=r.sub(le,Re),Re=r.add(le,Re),Re=r.mul(xe,Re),xe=r.mul(Ie,xe),Me=r.mul(be,Me),ae=r.mul(Z,ae),Ie=r.sub(Ce,ae),Ie=r.mul(Z,Ie),Ie=r.add(Ie,Me),Me=r.add(Ce,Ce),Ce=r.add(Me,Ce),Ce=r.add(Ce,ae),Ce=r.mul(Ce,Ie),Re=r.add(Re,Ce),ae=r.mul(pe,Te),ae=r.add(ae,ae),Ce=r.mul(ae,Ie),xe=r.sub(xe,Ce),Me=r.mul(ae,le),Me=r.add(Me,Me),Me=r.add(Me,Me),new A(xe,Re,Me)}add(Z){S(Z);const{px:ne,py:be,pz:me}=this,{px:pe,py:Te,pz:xe}=Z;let Re=r.ZERO,Me=r.ZERO,Ce=r.ZERO;const le=s.a,ae=r.mul(s.b,_3n);let Ie=r.mul(ne,pe),$e=r.mul(be,Te),st=r.mul(me,xe),ht=r.add(ne,be),vt=r.add(pe,Te);ht=r.mul(ht,vt),vt=r.add(Ie,$e),ht=r.sub(ht,vt),vt=r.add(ne,me);let at=r.add(pe,xe);return vt=r.mul(vt,at),at=r.add(Ie,st),vt=r.sub(vt,at),at=r.add(be,me),Re=r.add(Te,xe),at=r.mul(at,Re),Re=r.add($e,st),at=r.sub(at,Re),Ce=r.mul(le,vt),Re=r.mul(ae,st),Ce=r.add(Re,Ce),Re=r.sub($e,Ce),Ce=r.add($e,Ce),Me=r.mul(Re,Ce),$e=r.add(Ie,Ie),$e=r.add($e,Ie),st=r.mul(le,st),vt=r.mul(ae,vt),$e=r.add($e,st),st=r.sub(Ie,st),st=r.mul(le,st),vt=r.add(vt,st),Ie=r.mul($e,vt),Me=r.add(Me,Ie),Ie=r.mul(at,vt),Re=r.mul(ht,Re),Re=r.sub(Re,Ie),Ie=r.mul(ht,$e),Ce=r.mul(at,Ce),Ce=r.add(Ce,Ie),new A(Re,Me,Ce)}subtract(Z){return this.add(Z.negate())}is0(){return this.equals(A.ZERO)}wNAF(Z){return N.wNAFCached(this,T,Z,ne=>{const be=r.invertBatch(ne.map(me=>me.pz));return ne.map((me,pe)=>me.toAffine(be[pe])).map(A.fromAffine)})}multiplyUnsafe(Z){const ne=A.ZERO;if(Z===_0n$1)return ne;if(w(Z),Z===_1n$1)return this;const{endo:be}=s;if(!be)return N.unsafeLadder(this,Z);let{k1neg:me,k1:pe,k2neg:Te,k2:xe}=be.splitScalar(Z),Re=ne,Me=ne,Ce=this;for(;pe>_0n$1||xe>_0n$1;)pe&_1n$1&&(Re=Re.add(Ce)),xe&_1n$1&&(Me=Me.add(Ce)),Ce=Ce.double(),pe>>=_1n$1,xe>>=_1n$1;return me&&(Re=Re.negate()),Te&&(Me=Me.negate()),Me=new A(r.mul(Me.px,be.beta),Me.py,Me.pz),Re.add(Me)}multiply(Z){w(Z);let ne,be,me=Z;const{endo:pe}=s;if(pe){const{k1neg:Te,k1:xe,k2neg:Re,k2:Me}=pe.splitScalar(me);let{p:Ce,f:le}=this.wNAF(xe),{p:ae,f:Ie}=this.wNAF(Me);Ce=N.constTimeNegate(Te,Ce),ae=N.constTimeNegate(Re,ae),ae=new A(r.mul(ae.px,pe.beta),ae.py,ae.pz),ne=Ce.add(ae),be=le.add(Ie)}else{const{p:Te,f:xe}=this.wNAF(me);ne=Te,be=xe}return A.normalizeZ([ne,be])[0]}multiplyAndAddUnsafe(Z,ne,be){const me=A.BASE,pe=(xe,Re)=>Re!==_0n$1&&Re!==_1n$1&&xe.equals(me)?xe.multiply(Re):xe.multiplyUnsafe(Re),Te=pe(this,ne).add(pe(Z,be));return Te.is0()?void 0:Te}toAffine(Z){const{px:ne,py:be,pz:me}=this,pe=this.is0();null==Z&&(Z=pe?r.ONE:r.inv(me));const Te=r.mul(ne,Z),xe=r.mul(be,Z),Re=r.mul(me,Z);if(pe)return{x:r.ZERO,y:r.ZERO};if(!r.eql(Re,r.ONE))throw new Error("invZ was invalid");return{x:Te,y:xe}}isTorsionFree(){const{h:Z,isTorsionFree:ne}=s;if(Z===_1n$1)return!0;if(ne)return ne(A,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Z,clearCofactor:ne}=s;return Z===_1n$1?this:ne?ne(A,this):this.multiplyUnsafe(s.h)}toRawBytes(Z=!0){return this.assertValidity(),i(A,this,Z)}toHex(Z=!0){return bytesToHex$2(this.toRawBytes(Z))}}A.BASE=new A(s.Gx,s.Gy,r.ONE),A.ZERO=new A(r.ZERO,r.ONE,r.ZERO);const I=s.nBitLength,N=wNAF(A,s.endo?Math.ceil(I/2):I);return{CURVE:s,ProjectivePoint:A,normPrivateKeyToScalar:C,weierstrassEquation:c,isWithinCurveOrder:y}}function validateOpts(o){const s=validateBasic(o);return validateObject(s,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...s})}function weierstrass(o){const s=validateOpts(o),{Fp:r,n:i}=s,a=r.BYTES+1,c=2*r.BYTES+1;function y(le){return mod(le,i)}function w(le){return invert(le,i)}const{ProjectivePoint:C,normPrivateKeyToScalar:T,weierstrassEquation:S,isWithinCurveOrder:A}=weierstrassPoints({...s,toBytes(le,ae,Ie){const $e=ae.toAffine(),st=r.toBytes($e.x),ht=concatBytes$2;return Ie?ht(Uint8Array.from([ae.hasEvenY()?2:3]),st):ht(Uint8Array.from([4]),st,r.toBytes($e.y))},fromBytes(le){const ae=le.length,Ie=le[0],$e=le.subarray(1);if(ae!==a||2!==Ie&&3!==Ie){if(ae===c&&4===Ie)return{x:r.fromBytes($e.subarray(0,r.BYTES)),y:r.fromBytes($e.subarray(r.BYTES,2*r.BYTES))};throw new Error(`Point of length ${ae} was invalid. Expected ${a} compressed bytes or ${c} uncompressed bytes`)}{const ht=bytesToNumberBE($e);if(!(_0n$1<(st=ht)&&stbytesToHex$2(numberToBytesBE(le,s.nByteLength));function N(le){return le>i>>_1n$1}const K=(le,ae,Ie)=>bytesToNumberBE(le.slice(ae,Ie));class Z{constructor(ae,Ie,$e){this.r=ae,this.s=Ie,this.recovery=$e,this.assertValidity()}static fromCompact(ae){const Ie=s.nByteLength;return ae=ensureBytes$1("compactSignature",ae,2*Ie),new Z(K(ae,0,Ie),K(ae,Ie,2*Ie))}static fromDER(ae){const{r:Ie,s:$e}=DER.toSig(ensureBytes$1("DER",ae));return new Z(Ie,$e)}assertValidity(){if(!A(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!A(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(ae){return new Z(this.r,this.s,ae)}recoverPublicKey(ae){const{r:Ie,s:$e,recovery:st}=this,ht=pe(ensureBytes$1("msgHash",ae));if(null==st||![0,1,2,3].includes(st))throw new Error("recovery id invalid");const vt=2===st||3===st?Ie+s.n:Ie;if(vt>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const Xt=C.fromHex((1&st?"03":"02")+I(vt)),ln=w(vt),yn=y(-ht*ln),$n=y($e*ln),bn=C.BASE.multiplyAndAddUnsafe(Xt,yn,$n);if(!bn)throw new Error("point at infinify");return bn.assertValidity(),bn}hasHighS(){return N(this.s)}normalizeS(){return this.hasHighS()?new Z(this.r,y(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes$2(this.toDERHex())}toDERHex(){return DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes$2(this.toCompactHex())}toCompactHex(){return I(this.r)+I(this.s)}}const ne={isValidPrivateKey(le){try{return T(le),!0}catch{return!1}},normPrivateKeyToScalar:T,randomPrivateKey:()=>numberToBytesBE(hashToPrivateScalar(s.randomBytes(r.BYTES+8),i),s.nByteLength),precompute:(le=8,ae=C.BASE)=>(ae._setWindowSize(le),ae.multiply(BigInt(3)),ae)};function be(le){const ae=le instanceof Uint8Array,Ie="string"==typeof le,$e=(ae||Ie)&&le.length;return ae?$e===a||$e===c:Ie?$e===2*a||$e===2*c:le instanceof C}const me=s.bits2int||function(le){const ae=bytesToNumberBE(le),Ie=8*le.length-s.nBitLength;return Ie>0?ae>>BigInt(Ie):ae},pe=s.bits2int_modN||function(le){return y(me(le))},Te=bitMask(s.nBitLength);function xe(le){if("bigint"!=typeof le)throw new Error("bigint expected");if(!(_0n$1<=le&&leQe in Ie))throw new Error("sign() legacy options not supported");const{hash:$e,randomBytes:st}=s;let{lowS:ht,prehash:vt,extraEntropy:at}=Ie;null==ht&&(ht=!0),le=ensureBytes$1("msgHash",le),vt&&(le=ensureBytes$1("prehashed msgHash",$e(le)));const Xt=pe(le),ln=T(ae),yn=[xe(ln),xe(Xt)];if(null!=at){const Qe=!0===at?st(r.BYTES):at;yn.push(ensureBytes$1("extraEntropy",Qe,r.BYTES))}const $n=concatBytes$2(...yn),bn=Xt;return{seed:$n,k2sig:function(Qe){const bt=me(Qe);if(!A(bt))return;const Ge=w(bt),Fe=C.BASE.multiply(bt).toAffine(),Ft=y(Fe.x);if(Ft===_0n$1)return;const ze=y(Ge*y(bn+Ft*ln));if(ze===_0n$1)return;let dt=(Fe.x===Ft?0:2)|Number(Fe.y&_1n$1),Ke=ze;return ht&&N(ze)&&(Ke=N(He=ze)?y(-He):He,dt^=1),new Z(Ft,Ke,dt);var He}}}(le,ae,Ie);return createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)($e,st)},verify:function(le,ae,Ie,$e=Ce){const st=le;if(ae=ensureBytes$1("msgHash",ae),Ie=ensureBytes$1("publicKey",Ie),"strict"in $e)throw new Error("options.strict was renamed to lowS");const{lowS:ht,prehash:vt}=$e;let at,Xt;try{if("string"==typeof st||st instanceof Uint8Array)try{at=Z.fromDER(st)}catch(Fe){if(!(Fe instanceof DER.Err))throw Fe;at=Z.fromCompact(st)}else{if("object"!=typeof st||"bigint"!=typeof st.r||"bigint"!=typeof st.s)throw new Error("PARSE");{const{r:Fe,s:Ft}=st;at=new Z(Fe,Ft)}}Xt=C.fromHex(Ie)}catch(Fe){if("PARSE"===Fe.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(ht&&at.hasHighS())return!1;vt&&(ae=s.hash(ae));const{r:ln,s:yn}=at,$n=pe(ae),bn=w(yn),Qe=y($n*bn),bt=y(ln*bn),Ge=C.BASE.multiplyAndAddUnsafe(Xt,Qe,bt)?.toAffine();return!!Ge&&y(Ge.x)===ln},ProjectivePoint:C,Signature:Z,utils:ne}}BigInt(4);let HMAC$2=class extends Hash$2{constructor(o,s){super(),this.finished=!1,this.destroyed=!1,assert$3.hash(o);const r=toBytes$3(s);if(this.iHash=o.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?o.create().update(r).digest():r);for(let c=0;cnew HMAC$2(o,s).update(r).digest();function getHash(o){return{hash:o,hmac:(s,...r)=>hmac$2(o,s,concatBytes$3(...r)),randomBytes:randomBytes$2}}function createCurve(o,s){const r=i=>weierstrass({...o,...getHash(i)});return Object.freeze({...r(s),create:r})}hmac$2.create=(o,s)=>new HMAC$2(o,s);const secp256k1P=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),secp256k1N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_1n=BigInt(1),_2n=BigInt(2),divNearest=(o,s)=>(o+s/_2n)/s;function sqrtMod(o){const s=secp256k1P,r=BigInt(3),i=BigInt(6),a=BigInt(11),c=BigInt(22),y=BigInt(23),w=BigInt(44),C=BigInt(88),T=o*o*o%s,S=T*T*o%s,A=pow2(S,r,s)*S%s,I=pow2(A,r,s)*S%s,N=pow2(I,_2n,s)*T%s,K=pow2(N,a,s)*N%s,Z=pow2(K,c,s)*K%s,ne=pow2(Z,w,s)*Z%s,be=pow2(ne,C,s)*ne%s,me=pow2(be,w,s)*Z%s,pe=pow2(me,r,s)*S%s,Te=pow2(pe,y,s)*K%s,xe=pow2(Te,i,s)*T%s,Re=pow2(xe,_2n,s);if(!Fp.eql(Fp.sqr(Re),o))throw new Error("Cannot find square root");return Re}const Fp=Field(secp256k1P,void 0,void 0,{sqrt:sqrtMod}),secp256k1=createCurve({a:BigInt(0),b:BigInt(7),Fp,n:secp256k1N,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:o=>{const s=secp256k1N,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),i=-_1n*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),c=r,y=BigInt("0x100000000000000000000000000000000"),w=divNearest(c*o,s),C=divNearest(-i*o,s);let T=mod(o-w*r-C*a,s),S=mod(-w*i-C*c,s);const A=T>y,I=S>y;if(A&&(T=s-T),I&&(S=s-S),T>y||S>y)throw new Error("splitScalar: Endomorphism failed, k="+o);return{k1neg:A,k1:T,k2neg:I,k2:S}}}},sha256$2),_0n=BigInt(0),fe=o=>"bigint"==typeof o&&_0n"bigint"==typeof o&&_0na.charCodeAt(0)));r=concatBytes$2(i,i),TAGGED_HASH_PREFIXES[o]=r}return sha256$2(concatBytes$2(r,...s))}const pointToBytes=o=>o.toRawBytes(!0).slice(1),numTo32b=o=>numberToBytesBE(o,32),modP=o=>mod(o,secp256k1P),modN=o=>mod(o,secp256k1N),Point$1=secp256k1.ProjectivePoint,GmulAdd=(o,s,r)=>Point$1.BASE.multiplyAndAddUnsafe(o,s,r);function schnorrGetExtPubKey(o){let s=secp256k1.utils.normPrivateKeyToScalar(o),r=Point$1.fromPrivateKey(s);return{scalar:r.hasEvenY()?s:modN(-s),bytes:pointToBytes(r)}}function lift_x(o){if(!fe(o))throw new Error("bad x: need 0 < x < p");const s=modP(o*o);let r=sqrtMod(modP(s*o+BigInt(7)));r%_2n!==_0n&&(r=modP(-r));const i=new Point$1(o,r,_1n);return i.assertValidity(),i}function challenge(...o){return modN(bytesToNumberBE(taggedHash("BIP0340/challenge",...o)))}function schnorrGetPublicKey(o){return schnorrGetExtPubKey(o).bytes}function schnorrSign(o,s,r=randomBytes$2(32)){const i=ensureBytes$1("message",o),{bytes:a,scalar:c}=schnorrGetExtPubKey(s),y=ensureBytes$1("auxRand",r,32),w=numTo32b(c^bytesToNumberBE(taggedHash("BIP0340/aux",y))),C=taggedHash("BIP0340/nonce",w,a,i),T=modN(bytesToNumberBE(C));if(T===_0n)throw new Error("sign failed: k is zero");const{bytes:S,scalar:A}=schnorrGetExtPubKey(T),I=challenge(S,a,i),N=new Uint8Array(64);if(N.set(S,0),N.set(numTo32b(modN(A+I*c)),32),!schnorrVerify(N,i,a))throw new Error("sign: Invalid signature produced");return N}function schnorrVerify(o,s,r){const i=ensureBytes$1("signature",o,64),a=ensureBytes$1("message",s),c=ensureBytes$1("publicKey",r,32);try{const y=lift_x(bytesToNumberBE(c)),w=bytesToNumberBE(i.subarray(0,32));if(!fe(w))return!1;const C=bytesToNumberBE(i.subarray(32,64));if(!ge(C))return!1;const T=challenge(numTo32b(w),pointToBytes(y),a),S=GmulAdd(y,C,modN(-T));return!(!S||!S.hasEvenY()||S.toAffine().x!==w)}catch{return!1}}const schnorr={getPublicKey:schnorrGetPublicKey,sign:schnorrSign,verify:schnorrVerify,utils:{randomPrivateKey:secp256k1.utils.randomPrivateKey,lift_x,pointToBytes,numberToBytesBE,bytesToNumberBE,taggedHash,mod}},crypto$2="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,u8a$1=o=>o instanceof Uint8Array,createView$1=o=>new DataView(o.buffer,o.byteOffset,o.byteLength),rotr$1=(o,s)=>o<<32-s|o>>>s,isLE$2=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$2)throw new Error("Non little-endian hardware is not supported");const hexes$1=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex$1(o){if(!u8a$1(o))throw new Error("Uint8Array expected");let s="";for(let r=0;ri+a.length,0));let r=0;return o.forEach(i=>{if(!u8a$1(i))throw new Error("Uint8Array expected");s.set(i,r),r+=i.length}),s}let Hash$1=class{clone(){return this._cloneInto()}};function wrapConstructor$1(o){const s=i=>o().update(toBytes$2(i)).digest(),r=o();return s.outputLen=r.outputLen,s.blockLen=r.blockLen,s.create=()=>o(),s}function randomBytes$1(o=32){if(crypto$2&&"function"==typeof crypto$2.getRandomValues)return crypto$2.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}function number$2(o){if(!Number.isSafeInteger(o)||o<0)throw new Error(`Wrong positive integer: ${o}`)}function bool$2(o){if("boolean"!=typeof o)throw new Error(`Expected boolean, not ${o}`)}function bytes$2(o,...s){if(!(o instanceof Uint8Array))throw new Error("Expected Uint8Array");if(s.length>0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$2(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$2(o.outputLen),number$2(o.blockLen)}function exists$2(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$2(o,s){bytes$2(o);const r=s.outputLen;if(o.length>a&c),w=Number(r&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}let SHA2$1=class extends Hash$1{constructor(o,s,r,i){super(),this.blockLen=o,this.outputLen=s,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=createView$1(this.buffer)}update(o){assert$2.exists(this);const{view:s,buffer:r,blockLen:i}=this,a=(o=toBytes$2(o)).length;for(let c=0;ci-c&&(this.process(r,0),c=0);for(let S=c;ST.length)throw new Error("_sha2: outputLen bigger than state");for(let S=0;So&s^~o&r,Maj$1=(o,s,r)=>o&s^o&r^s&r,SHA256_K$1=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV$1=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$1=new Uint32Array(64);let SHA256$1=class extends SHA2$1{constructor(){super(64,32,8,!1),this.A=0|IV$1[0],this.B=0|IV$1[1],this.C=0|IV$1[2],this.D=0|IV$1[3],this.E=0|IV$1[4],this.F=0|IV$1[5],this.G=0|IV$1[6],this.H=0|IV$1[7]}get(){const{A:o,B:s,C:r,D:i,E:a,F:c,G:y,H:w}=this;return[o,s,r,i,a,c,y,w]}set(o,s,r,i,a,c,y,w){this.A=0|o,this.B=0|s,this.C=0|r,this.D=0|i,this.E=0|a,this.F=0|c,this.G=0|y,this.H=0|w}process(o,s){for(let S=0;S<16;S++,s+=4)SHA256_W$1[S]=o.getUint32(s,!1);for(let S=16;S<64;S++){const A=SHA256_W$1[S-15],I=SHA256_W$1[S-2],N=rotr$1(A,7)^rotr$1(A,18)^A>>>3,K=rotr$1(I,17)^rotr$1(I,19)^I>>>10;SHA256_W$1[S]=K+SHA256_W$1[S-7]+N+SHA256_W$1[S-16]|0}let{A:r,B:i,C:a,D:c,E:y,F:w,G:C,H:T}=this;for(let S=0;S<64;S++){const A=T+(rotr$1(y,6)^rotr$1(y,11)^rotr$1(y,25))+Chi$1(y,w,C)+SHA256_K$1[S]+SHA256_W$1[S]|0,I=(rotr$1(r,2)^rotr$1(r,13)^rotr$1(r,22))+Maj$1(r,i,a)|0;T=C,C=w,w=y,y=c+A|0,c=a,a=i,i=r,r=A+I|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,y=y+this.E|0,w=w+this.F|0,C=C+this.G|0,T=T+this.H|0,this.set(r,i,a,c,y,w,C,T)}roundClean(){SHA256_W$1.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};class SHA224 extends SHA256$1{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const sha256$1=wrapConstructor$1(()=>new SHA256$1);function assertNumber(o){if(!Number.isSafeInteger(o))throw new Error(`Wrong integer: ${o}`)}function chain$1(...o){const s=(r,i)=>a=>r(i(a));return{encode:Array.from(o).reverse().reduce((r,i)=>r?s(r,i.encode):i.encode,void 0),decode:o.reduce((r,i)=>r?s(r,i.decode):i.decode,void 0)}}function alphabet$1(o){return{encode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("alphabet.encode input should be an array of numbers");return s.map(r=>{if(assertNumber(r),r<0||r>=o.length)throw new Error(`Digit index outside alphabet: ${r} (alphabet: ${o.length})`);return o[r]})},decode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("alphabet.decode input should be array of strings");return s.map(r=>{if("string"!=typeof r)throw new Error(`alphabet.decode: not string element=${r}`);const i=o.indexOf(r);if(-1===i)throw new Error(`Unknown letter: "${r}". Allowed: ${o}`);return i})}}}function join$1(o=""){if("string"!=typeof o)throw new Error("join separator should be string");return{encode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("join.encode input should be array of strings");for(let r of s)if("string"!=typeof r)throw new Error(`join.encode: non-string input=${r}`);return s.join(o)},decode:s=>{if("string"!=typeof s)throw new Error("join.decode input should be string");return s.split(o)}}}function padding$1(o,s="="){if(assertNumber(o),"string"!=typeof s)throw new Error("padding chr should be string");return{encode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let i of r)if("string"!=typeof i)throw new Error(`padding.encode: non-string input=${i}`);for(;r.length*o%8;)r.push(s);return r},decode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let a of r)if("string"!=typeof a)throw new Error(`padding.decode: non-string input=${a}`);let i=r.length;if(i*o%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;i>0&&r[i-1]===s;i--)if(!((i-1)*o%8))throw new Error("Invalid padding: string has too much padding");return r.slice(0,i)}}}function normalize$1(o){if("function"!=typeof o)throw new Error("normalize fn should be function");return{encode:s=>s,decode:s=>o(s)}}function convertRadix$1(o,s,r){if(s<2)throw new Error(`convertRadix: wrong from=${s}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: wrong to=${r}, base cannot be less than 2`);if(!Array.isArray(o))throw new Error("convertRadix: data should be array");if(!o.length)return[];let i=0;const a=[],c=Array.from(o);for(c.forEach(y=>{if(assertNumber(y),y<0||y>=s)throw new Error(`Wrong integer: ${y}`)});;){let y=0,w=!0;for(let C=i;Cnew SHA224);const gcd$1=(o,s)=>s?gcd$1(s,o%s):o,radix2carry$1=(o,s)=>o+(s-gcd$1(o,s));function convertRadix2$1(o,s,r,i){if(!Array.isArray(o))throw new Error("convertRadix2: data should be array");if(s<=0||s>32)throw new Error(`convertRadix2: wrong from=${s}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(radix2carry$1(s,r)>32)throw new Error(`convertRadix2: carry overflow from=${s} to=${r} carryBits=${radix2carry$1(s,r)}`);let a=0,c=0;const y=2**r-1,w=[];for(const C of o){if(assertNumber(C),C>=2**s)throw new Error(`convertRadix2: invalid data word=${C} from=${s}`);if(a=a<32)throw new Error(`convertRadix2: carry overflow pos=${c} from=${s}`);for(c+=s;c>=r;c-=r)w.push((a>>c-r&y)>>>0);a&=2**c-1}if(a=a<=s)throw new Error("Excess padding");if(!i&&a)throw new Error(`Non-zero padding: ${a}`);return i&&c>0&&w.push(a>>>0),w}function radix$1(o){return assertNumber(o),{encode:s=>{if(!(s instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return convertRadix$1(Array.from(s),256,o)},decode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(convertRadix$1(s,o,256))}}}function radix2$1(o,s=!1){if(assertNumber(o),o<=0||o>32)throw new Error("radix2: bits should be in (0..32]");if(radix2carry$1(8,o)>32||radix2carry$1(o,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!(r instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return convertRadix2$1(Array.from(r),8,o,!s)},decode:r=>{if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(convertRadix2$1(r,o,8,s))}}}function unsafeWrapper$1(o){if("function"!=typeof o)throw new Error("unsafeWrapper fn should be function");return function(...s){try{return o.apply(null,s)}catch{}}}const base16=chain$1(radix2$1(4),alphabet$1("0123456789ABCDEF"),join$1("")),base32=chain$1(radix2$1(5),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),padding$1(5),join$1(""));chain$1(radix2$1(5),alphabet$1("0123456789ABCDEFGHIJKLMNOPQRSTUV"),padding$1(5),join$1("")),chain$1(radix2$1(5),alphabet$1("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),join$1(""),normalize$1(o=>o.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")));const base64$1=chain$1(radix2$1(6),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),padding$1(6),join$1("")),base64url=chain$1(radix2$1(6),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),padding$1(6),join$1("")),genBase58$1=o=>chain$1(radix$1(58),alphabet$1(o),join$1("")),base58$1=genBase58$1("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");genBase58$1("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),genBase58$1("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const XMR_BLOCK_LEN=[0,2,3,5,6,7,9,10,11],base58xmr={encode(o){let s="";for(let r=0;r>25;let r=(33554431&o)<<5;for(let i=0;i>i&1)&&(r^=POLYMOD_GENERATORS$1[i]);return r}function bechChecksum$1(o,s,r=1){const i=o.length;let a=1;for(let c=0;c126)throw new Error(`Invalid prefix (${o})`);a=bech32Polymod$1(a)^y>>5}a=bech32Polymod$1(a);for(let c=0;cC)throw new TypeError(`Wrong string length: ${w.length} (${w}). Expected (8..${C})`);const T=w.toLowerCase();if(w!==T&&w!==w.toUpperCase())throw new Error("String must be lowercase or uppercase");const S=(w=T).lastIndexOf("1");if(0===S||-1===S)throw new Error('Letter "1" must be present between prefix and data only');const A=w.slice(0,S),I=w.slice(S+1);if(I.length<6)throw new Error("Data must be at least 6 characters long");const N=BECH_ALPHABET$1.decode(I).slice(0,-6),K=bechChecksum$1(A,N,s);if(!I.endsWith(K))throw new Error(`Invalid checksum in ${w}: expected "${K}"`);return{prefix:A,words:N}}return{encode:function(w,C,T=90){if("string"!=typeof w)throw new Error("bech32.encode prefix should be string, not "+typeof w);if(!Array.isArray(C)||C.length&&"number"!=typeof C[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof C);const S=w.length+7+C.length;if(!1!==T&&S>T)throw new TypeError(`Length ${S} exceeds limit ${T}`);return`${w=w.toLowerCase()}1${BECH_ALPHABET$1.encode(C)}${bechChecksum$1(w,C,s)}`},decode:y,decodeToBytes:function(w){const{prefix:C,words:T}=y(w,!1);return{prefix:C,words:T,bytes:i(T)}},decodeUnsafe:unsafeWrapper$1(y),fromWords:i,fromWordsUnsafe:c,toWords:a}}const bech32$1=genBech32$1("bech32");genBech32$1("bech32m");const utf8={encode:o=>(new TextDecoder).decode(o),decode:o=>(new TextEncoder).encode(o)},hex=chain$1(radix2$1(4),alphabet$1("0123456789abcdef"),join$1(""),normalize$1(o=>{if("string"!=typeof o||o.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof o} with length ${o.length}`);return o.toLowerCase()})),CODERS={utf8,hex,base16,base32,base64:base64$1,base64url,base58:base58$1,base58xmr};Object.keys(CODERS).join(", ");const wordlist="abandon\nability\nable\nabout\nabove\nabsent\nabsorb\nabstract\nabsurd\nabuse\naccess\naccident\naccount\naccuse\nachieve\nacid\nacoustic\nacquire\nacross\nact\naction\nactor\nactress\nactual\nadapt\nadd\naddict\naddress\nadjust\nadmit\nadult\nadvance\nadvice\naerobic\naffair\nafford\nafraid\nagain\nage\nagent\nagree\nahead\naim\nair\nairport\naisle\nalarm\nalbum\nalcohol\nalert\nalien\nall\nalley\nallow\nalmost\nalone\nalpha\nalready\nalso\nalter\nalways\namateur\namazing\namong\namount\namused\nanalyst\nanchor\nancient\nanger\nangle\nangry\nanimal\nankle\nannounce\nannual\nanother\nanswer\nantenna\nantique\nanxiety\nany\napart\napology\nappear\napple\napprove\napril\narch\narctic\narea\narena\nargue\narm\narmed\narmor\narmy\naround\narrange\narrest\narrive\narrow\nart\nartefact\nartist\nartwork\nask\naspect\nassault\nasset\nassist\nassume\nasthma\nathlete\natom\nattack\nattend\nattitude\nattract\nauction\naudit\naugust\naunt\nauthor\nauto\nautumn\naverage\navocado\navoid\nawake\naware\naway\nawesome\nawful\nawkward\naxis\nbaby\nbachelor\nbacon\nbadge\nbag\nbalance\nbalcony\nball\nbamboo\nbanana\nbanner\nbar\nbarely\nbargain\nbarrel\nbase\nbasic\nbasket\nbattle\nbeach\nbean\nbeauty\nbecause\nbecome\nbeef\nbefore\nbegin\nbehave\nbehind\nbelieve\nbelow\nbelt\nbench\nbenefit\nbest\nbetray\nbetter\nbetween\nbeyond\nbicycle\nbid\nbike\nbind\nbiology\nbird\nbirth\nbitter\nblack\nblade\nblame\nblanket\nblast\nbleak\nbless\nblind\nblood\nblossom\nblouse\nblue\nblur\nblush\nboard\nboat\nbody\nboil\nbomb\nbone\nbonus\nbook\nboost\nborder\nboring\nborrow\nboss\nbottom\nbounce\nbox\nboy\nbracket\nbrain\nbrand\nbrass\nbrave\nbread\nbreeze\nbrick\nbridge\nbrief\nbright\nbring\nbrisk\nbroccoli\nbroken\nbronze\nbroom\nbrother\nbrown\nbrush\nbubble\nbuddy\nbudget\nbuffalo\nbuild\nbulb\nbulk\nbullet\nbundle\nbunker\nburden\nburger\nburst\nbus\nbusiness\nbusy\nbutter\nbuyer\nbuzz\ncabbage\ncabin\ncable\ncactus\ncage\ncake\ncall\ncalm\ncamera\ncamp\ncan\ncanal\ncancel\ncandy\ncannon\ncanoe\ncanvas\ncanyon\ncapable\ncapital\ncaptain\ncar\ncarbon\ncard\ncargo\ncarpet\ncarry\ncart\ncase\ncash\ncasino\ncastle\ncasual\ncat\ncatalog\ncatch\ncategory\ncattle\ncaught\ncause\ncaution\ncave\nceiling\ncelery\ncement\ncensus\ncentury\ncereal\ncertain\nchair\nchalk\nchampion\nchange\nchaos\nchapter\ncharge\nchase\nchat\ncheap\ncheck\ncheese\nchef\ncherry\nchest\nchicken\nchief\nchild\nchimney\nchoice\nchoose\nchronic\nchuckle\nchunk\nchurn\ncigar\ncinnamon\ncircle\ncitizen\ncity\ncivil\nclaim\nclap\nclarify\nclaw\nclay\nclean\nclerk\nclever\nclick\nclient\ncliff\nclimb\nclinic\nclip\nclock\nclog\nclose\ncloth\ncloud\nclown\nclub\nclump\ncluster\nclutch\ncoach\ncoast\ncoconut\ncode\ncoffee\ncoil\ncoin\ncollect\ncolor\ncolumn\ncombine\ncome\ncomfort\ncomic\ncommon\ncompany\nconcert\nconduct\nconfirm\ncongress\nconnect\nconsider\ncontrol\nconvince\ncook\ncool\ncopper\ncopy\ncoral\ncore\ncorn\ncorrect\ncost\ncotton\ncouch\ncountry\ncouple\ncourse\ncousin\ncover\ncoyote\ncrack\ncradle\ncraft\ncram\ncrane\ncrash\ncrater\ncrawl\ncrazy\ncream\ncredit\ncreek\ncrew\ncricket\ncrime\ncrisp\ncritic\ncrop\ncross\ncrouch\ncrowd\ncrucial\ncruel\ncruise\ncrumble\ncrunch\ncrush\ncry\ncrystal\ncube\nculture\ncup\ncupboard\ncurious\ncurrent\ncurtain\ncurve\ncushion\ncustom\ncute\ncycle\ndad\ndamage\ndamp\ndance\ndanger\ndaring\ndash\ndaughter\ndawn\nday\ndeal\ndebate\ndebris\ndecade\ndecember\ndecide\ndecline\ndecorate\ndecrease\ndeer\ndefense\ndefine\ndefy\ndegree\ndelay\ndeliver\ndemand\ndemise\ndenial\ndentist\ndeny\ndepart\ndepend\ndeposit\ndepth\ndeputy\nderive\ndescribe\ndesert\ndesign\ndesk\ndespair\ndestroy\ndetail\ndetect\ndevelop\ndevice\ndevote\ndiagram\ndial\ndiamond\ndiary\ndice\ndiesel\ndiet\ndiffer\ndigital\ndignity\ndilemma\ndinner\ndinosaur\ndirect\ndirt\ndisagree\ndiscover\ndisease\ndish\ndismiss\ndisorder\ndisplay\ndistance\ndivert\ndivide\ndivorce\ndizzy\ndoctor\ndocument\ndog\ndoll\ndolphin\ndomain\ndonate\ndonkey\ndonor\ndoor\ndose\ndouble\ndove\ndraft\ndragon\ndrama\ndrastic\ndraw\ndream\ndress\ndrift\ndrill\ndrink\ndrip\ndrive\ndrop\ndrum\ndry\nduck\ndumb\ndune\nduring\ndust\ndutch\nduty\ndwarf\ndynamic\neager\neagle\nearly\nearn\nearth\neasily\neast\neasy\necho\necology\neconomy\nedge\nedit\neducate\neffort\negg\neight\neither\nelbow\nelder\nelectric\nelegant\nelement\nelephant\nelevator\nelite\nelse\nembark\nembody\nembrace\nemerge\nemotion\nemploy\nempower\nempty\nenable\nenact\nend\nendless\nendorse\nenemy\nenergy\nenforce\nengage\nengine\nenhance\nenjoy\nenlist\nenough\nenrich\nenroll\nensure\nenter\nentire\nentry\nenvelope\nepisode\nequal\nequip\nera\nerase\nerode\nerosion\nerror\nerupt\nescape\nessay\nessence\nestate\neternal\nethics\nevidence\nevil\nevoke\nevolve\nexact\nexample\nexcess\nexchange\nexcite\nexclude\nexcuse\nexecute\nexercise\nexhaust\nexhibit\nexile\nexist\nexit\nexotic\nexpand\nexpect\nexpire\nexplain\nexpose\nexpress\nextend\nextra\neye\neyebrow\nfabric\nface\nfaculty\nfade\nfaint\nfaith\nfall\nfalse\nfame\nfamily\nfamous\nfan\nfancy\nfantasy\nfarm\nfashion\nfat\nfatal\nfather\nfatigue\nfault\nfavorite\nfeature\nfebruary\nfederal\nfee\nfeed\nfeel\nfemale\nfence\nfestival\nfetch\nfever\nfew\nfiber\nfiction\nfield\nfigure\nfile\nfilm\nfilter\nfinal\nfind\nfine\nfinger\nfinish\nfire\nfirm\nfirst\nfiscal\nfish\nfit\nfitness\nfix\nflag\nflame\nflash\nflat\nflavor\nflee\nflight\nflip\nfloat\nflock\nfloor\nflower\nfluid\nflush\nfly\nfoam\nfocus\nfog\nfoil\nfold\nfollow\nfood\nfoot\nforce\nforest\nforget\nfork\nfortune\nforum\nforward\nfossil\nfoster\nfound\nfox\nfragile\nframe\nfrequent\nfresh\nfriend\nfringe\nfrog\nfront\nfrost\nfrown\nfrozen\nfruit\nfuel\nfun\nfunny\nfurnace\nfury\nfuture\ngadget\ngain\ngalaxy\ngallery\ngame\ngap\ngarage\ngarbage\ngarden\ngarlic\ngarment\ngas\ngasp\ngate\ngather\ngauge\ngaze\ngeneral\ngenius\ngenre\ngentle\ngenuine\ngesture\nghost\ngiant\ngift\ngiggle\nginger\ngiraffe\ngirl\ngive\nglad\nglance\nglare\nglass\nglide\nglimpse\nglobe\ngloom\nglory\nglove\nglow\nglue\ngoat\ngoddess\ngold\ngood\ngoose\ngorilla\ngospel\ngossip\ngovern\ngown\ngrab\ngrace\ngrain\ngrant\ngrape\ngrass\ngravity\ngreat\ngreen\ngrid\ngrief\ngrit\ngrocery\ngroup\ngrow\ngrunt\nguard\nguess\nguide\nguilt\nguitar\ngun\ngym\nhabit\nhair\nhalf\nhammer\nhamster\nhand\nhappy\nharbor\nhard\nharsh\nharvest\nhat\nhave\nhawk\nhazard\nhead\nhealth\nheart\nheavy\nhedgehog\nheight\nhello\nhelmet\nhelp\nhen\nhero\nhidden\nhigh\nhill\nhint\nhip\nhire\nhistory\nhobby\nhockey\nhold\nhole\nholiday\nhollow\nhome\nhoney\nhood\nhope\nhorn\nhorror\nhorse\nhospital\nhost\nhotel\nhour\nhover\nhub\nhuge\nhuman\nhumble\nhumor\nhundred\nhungry\nhunt\nhurdle\nhurry\nhurt\nhusband\nhybrid\nice\nicon\nidea\nidentify\nidle\nignore\nill\nillegal\nillness\nimage\nimitate\nimmense\nimmune\nimpact\nimpose\nimprove\nimpulse\ninch\ninclude\nincome\nincrease\nindex\nindicate\nindoor\nindustry\ninfant\ninflict\ninform\ninhale\ninherit\ninitial\ninject\ninjury\ninmate\ninner\ninnocent\ninput\ninquiry\ninsane\ninsect\ninside\ninspire\ninstall\nintact\ninterest\ninto\ninvest\ninvite\ninvolve\niron\nisland\nisolate\nissue\nitem\nivory\njacket\njaguar\njar\njazz\njealous\njeans\njelly\njewel\njob\njoin\njoke\njourney\njoy\njudge\njuice\njump\njungle\njunior\njunk\njust\nkangaroo\nkeen\nkeep\nketchup\nkey\nkick\nkid\nkidney\nkind\nkingdom\nkiss\nkit\nkitchen\nkite\nkitten\nkiwi\nknee\nknife\nknock\nknow\nlab\nlabel\nlabor\nladder\nlady\nlake\nlamp\nlanguage\nlaptop\nlarge\nlater\nlatin\nlaugh\nlaundry\nlava\nlaw\nlawn\nlawsuit\nlayer\nlazy\nleader\nleaf\nlearn\nleave\nlecture\nleft\nleg\nlegal\nlegend\nleisure\nlemon\nlend\nlength\nlens\nleopard\nlesson\nletter\nlevel\nliar\nliberty\nlibrary\nlicense\nlife\nlift\nlight\nlike\nlimb\nlimit\nlink\nlion\nliquid\nlist\nlittle\nlive\nlizard\nload\nloan\nlobster\nlocal\nlock\nlogic\nlonely\nlong\nloop\nlottery\nloud\nlounge\nlove\nloyal\nlucky\nluggage\nlumber\nlunar\nlunch\nluxury\nlyrics\nmachine\nmad\nmagic\nmagnet\nmaid\nmail\nmain\nmajor\nmake\nmammal\nman\nmanage\nmandate\nmango\nmansion\nmanual\nmaple\nmarble\nmarch\nmargin\nmarine\nmarket\nmarriage\nmask\nmass\nmaster\nmatch\nmaterial\nmath\nmatrix\nmatter\nmaximum\nmaze\nmeadow\nmean\nmeasure\nmeat\nmechanic\nmedal\nmedia\nmelody\nmelt\nmember\nmemory\nmention\nmenu\nmercy\nmerge\nmerit\nmerry\nmesh\nmessage\nmetal\nmethod\nmiddle\nmidnight\nmilk\nmillion\nmimic\nmind\nminimum\nminor\nminute\nmiracle\nmirror\nmisery\nmiss\nmistake\nmix\nmixed\nmixture\nmobile\nmodel\nmodify\nmom\nmoment\nmonitor\nmonkey\nmonster\nmonth\nmoon\nmoral\nmore\nmorning\nmosquito\nmother\nmotion\nmotor\nmountain\nmouse\nmove\nmovie\nmuch\nmuffin\nmule\nmultiply\nmuscle\nmuseum\nmushroom\nmusic\nmust\nmutual\nmyself\nmystery\nmyth\nnaive\nname\nnapkin\nnarrow\nnasty\nnation\nnature\nnear\nneck\nneed\nnegative\nneglect\nneither\nnephew\nnerve\nnest\nnet\nnetwork\nneutral\nnever\nnews\nnext\nnice\nnight\nnoble\nnoise\nnominee\nnoodle\nnormal\nnorth\nnose\nnotable\nnote\nnothing\nnotice\nnovel\nnow\nnuclear\nnumber\nnurse\nnut\noak\nobey\nobject\noblige\nobscure\nobserve\nobtain\nobvious\noccur\nocean\noctober\nodor\noff\noffer\noffice\noften\noil\nokay\nold\nolive\nolympic\nomit\nonce\none\nonion\nonline\nonly\nopen\nopera\nopinion\noppose\noption\norange\norbit\norchard\norder\nordinary\norgan\norient\noriginal\norphan\nostrich\nother\noutdoor\nouter\noutput\noutside\noval\noven\nover\nown\nowner\noxygen\noyster\nozone\npact\npaddle\npage\npair\npalace\npalm\npanda\npanel\npanic\npanther\npaper\nparade\nparent\npark\nparrot\nparty\npass\npatch\npath\npatient\npatrol\npattern\npause\npave\npayment\npeace\npeanut\npear\npeasant\npelican\npen\npenalty\npencil\npeople\npepper\nperfect\npermit\nperson\npet\nphone\nphoto\nphrase\nphysical\npiano\npicnic\npicture\npiece\npig\npigeon\npill\npilot\npink\npioneer\npipe\npistol\npitch\npizza\nplace\nplanet\nplastic\nplate\nplay\nplease\npledge\npluck\nplug\nplunge\npoem\npoet\npoint\npolar\npole\npolice\npond\npony\npool\npopular\nportion\nposition\npossible\npost\npotato\npottery\npoverty\npowder\npower\npractice\npraise\npredict\nprefer\nprepare\npresent\npretty\nprevent\nprice\npride\nprimary\nprint\npriority\nprison\nprivate\nprize\nproblem\nprocess\nproduce\nprofit\nprogram\nproject\npromote\nproof\nproperty\nprosper\nprotect\nproud\nprovide\npublic\npudding\npull\npulp\npulse\npumpkin\npunch\npupil\npuppy\npurchase\npurity\npurpose\npurse\npush\nput\npuzzle\npyramid\nquality\nquantum\nquarter\nquestion\nquick\nquit\nquiz\nquote\nrabbit\nraccoon\nrace\nrack\nradar\nradio\nrail\nrain\nraise\nrally\nramp\nranch\nrandom\nrange\nrapid\nrare\nrate\nrather\nraven\nraw\nrazor\nready\nreal\nreason\nrebel\nrebuild\nrecall\nreceive\nrecipe\nrecord\nrecycle\nreduce\nreflect\nreform\nrefuse\nregion\nregret\nregular\nreject\nrelax\nrelease\nrelief\nrely\nremain\nremember\nremind\nremove\nrender\nrenew\nrent\nreopen\nrepair\nrepeat\nreplace\nreport\nrequire\nrescue\nresemble\nresist\nresource\nresponse\nresult\nretire\nretreat\nreturn\nreunion\nreveal\nreview\nreward\nrhythm\nrib\nribbon\nrice\nrich\nride\nridge\nrifle\nright\nrigid\nring\nriot\nripple\nrisk\nritual\nrival\nriver\nroad\nroast\nrobot\nrobust\nrocket\nromance\nroof\nrookie\nroom\nrose\nrotate\nrough\nround\nroute\nroyal\nrubber\nrude\nrug\nrule\nrun\nrunway\nrural\nsad\nsaddle\nsadness\nsafe\nsail\nsalad\nsalmon\nsalon\nsalt\nsalute\nsame\nsample\nsand\nsatisfy\nsatoshi\nsauce\nsausage\nsave\nsay\nscale\nscan\nscare\nscatter\nscene\nscheme\nschool\nscience\nscissors\nscorpion\nscout\nscrap\nscreen\nscript\nscrub\nsea\nsearch\nseason\nseat\nsecond\nsecret\nsection\nsecurity\nseed\nseek\nsegment\nselect\nsell\nseminar\nsenior\nsense\nsentence\nseries\nservice\nsession\nsettle\nsetup\nseven\nshadow\nshaft\nshallow\nshare\nshed\nshell\nsheriff\nshield\nshift\nshine\nship\nshiver\nshock\nshoe\nshoot\nshop\nshort\nshoulder\nshove\nshrimp\nshrug\nshuffle\nshy\nsibling\nsick\nside\nsiege\nsight\nsign\nsilent\nsilk\nsilly\nsilver\nsimilar\nsimple\nsince\nsing\nsiren\nsister\nsituate\nsix\nsize\nskate\nsketch\nski\nskill\nskin\nskirt\nskull\nslab\nslam\nsleep\nslender\nslice\nslide\nslight\nslim\nslogan\nslot\nslow\nslush\nsmall\nsmart\nsmile\nsmoke\nsmooth\nsnack\nsnake\nsnap\nsniff\nsnow\nsoap\nsoccer\nsocial\nsock\nsoda\nsoft\nsolar\nsoldier\nsolid\nsolution\nsolve\nsomeone\nsong\nsoon\nsorry\nsort\nsoul\nsound\nsoup\nsource\nsouth\nspace\nspare\nspatial\nspawn\nspeak\nspecial\nspeed\nspell\nspend\nsphere\nspice\nspider\nspike\nspin\nspirit\nsplit\nspoil\nsponsor\nspoon\nsport\nspot\nspray\nspread\nspring\nspy\nsquare\nsqueeze\nsquirrel\nstable\nstadium\nstaff\nstage\nstairs\nstamp\nstand\nstart\nstate\nstay\nsteak\nsteel\nstem\nstep\nstereo\nstick\nstill\nsting\nstock\nstomach\nstone\nstool\nstory\nstove\nstrategy\nstreet\nstrike\nstrong\nstruggle\nstudent\nstuff\nstumble\nstyle\nsubject\nsubmit\nsubway\nsuccess\nsuch\nsudden\nsuffer\nsugar\nsuggest\nsuit\nsummer\nsun\nsunny\nsunset\nsuper\nsupply\nsupreme\nsure\nsurface\nsurge\nsurprise\nsurround\nsurvey\nsuspect\nsustain\nswallow\nswamp\nswap\nswarm\nswear\nsweet\nswift\nswim\nswing\nswitch\nsword\nsymbol\nsymptom\nsyrup\nsystem\ntable\ntackle\ntag\ntail\ntalent\ntalk\ntank\ntape\ntarget\ntask\ntaste\ntattoo\ntaxi\nteach\nteam\ntell\nten\ntenant\ntennis\ntent\nterm\ntest\ntext\nthank\nthat\ntheme\nthen\ntheory\nthere\nthey\nthing\nthis\nthought\nthree\nthrive\nthrow\nthumb\nthunder\nticket\ntide\ntiger\ntilt\ntimber\ntime\ntiny\ntip\ntired\ntissue\ntitle\ntoast\ntobacco\ntoday\ntoddler\ntoe\ntogether\ntoilet\ntoken\ntomato\ntomorrow\ntone\ntongue\ntonight\ntool\ntooth\ntop\ntopic\ntopple\ntorch\ntornado\ntortoise\ntoss\ntotal\ntourist\ntoward\ntower\ntown\ntoy\ntrack\ntrade\ntraffic\ntragic\ntrain\ntransfer\ntrap\ntrash\ntravel\ntray\ntreat\ntree\ntrend\ntrial\ntribe\ntrick\ntrigger\ntrim\ntrip\ntrophy\ntrouble\ntruck\ntrue\ntruly\ntrumpet\ntrust\ntruth\ntry\ntube\ntuition\ntumble\ntuna\ntunnel\nturkey\nturn\nturtle\ntwelve\ntwenty\ntwice\ntwin\ntwist\ntwo\ntype\ntypical\nugly\numbrella\nunable\nunaware\nuncle\nuncover\nunder\nundo\nunfair\nunfold\nunhappy\nuniform\nunique\nunit\nuniverse\nunknown\nunlock\nuntil\nunusual\nunveil\nupdate\nupgrade\nuphold\nupon\nupper\nupset\nurban\nurge\nusage\nuse\nused\nuseful\nuseless\nusual\nutility\nvacant\nvacuum\nvague\nvalid\nvalley\nvalve\nvan\nvanish\nvapor\nvarious\nvast\nvault\nvehicle\nvelvet\nvendor\nventure\nvenue\nverb\nverify\nversion\nvery\nvessel\nveteran\nviable\nvibrant\nvicious\nvictory\nvideo\nview\nvillage\nvintage\nviolin\nvirtual\nvirus\nvisa\nvisit\nvisual\nvital\nvivid\nvocal\nvoice\nvoid\nvolcano\nvolume\nvote\nvoyage\nwage\nwagon\nwait\nwalk\nwall\nwalnut\nwant\nwarfare\nwarm\nwarrior\nwash\nwasp\nwaste\nwater\nwave\nway\nwealth\nweapon\nwear\nweasel\nweather\nweb\nwedding\nweekend\nweird\nwelcome\nwest\nwet\nwhale\nwhat\nwheat\nwheel\nwhen\nwhere\nwhip\nwhisper\nwide\nwidth\nwife\nwild\nwill\nwin\nwindow\nwine\nwing\nwink\nwinner\nwinter\nwire\nwisdom\nwise\nwish\nwitness\nwolf\nwoman\nwonder\nwood\nwool\nword\nwork\nworld\nworry\nworth\nwrap\nwreck\nwrestle\nwrist\nwrite\nwrong\nyard\nyear\nyellow\nyou\nyoung\nyouth\nzebra\nzero\nzone\nzoo".split("\n");function number$1(o){if(!Number.isSafeInteger(o)||o<0)throw new Error(`Wrong positive integer: ${o}`)}function bool$1(o){if("boolean"!=typeof o)throw new Error(`Expected boolean, not ${o}`)}function isBytes$2(o){return o instanceof Uint8Array||null!=o&&"object"==typeof o&&"Uint8Array"===o.constructor.name}function bytes$1(o,...s){if(!isBytes$2(o))throw new Error("Expected Uint8Array");if(s.length>0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$1(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$1(o.outputLen),number$1(o.blockLen)}function exists$1(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$1(o,s){bytes$1(o);const r=s.outputLen;if(o.lengthnew DataView(o.buffer,o.byteOffset,o.byteLength),rotr=(o,s)=>o<<32-s|o>>>s,isLE$1=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$1)throw new Error("Non little-endian hardware is not supported");const hexes=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex(o){if(!isBytes$1(o))throw new Error("Uint8Array expected");let s="";for(let r=0;r=asciis._0&&o<=asciis._9?o-asciis._0:o>=asciis._A&&o<=asciis._F?o-(asciis._A-10):o>=asciis._a&&o<=asciis._f?o-(asciis._a-10):void 0}function hexToBytes(o){if("string"!=typeof o)throw new Error("hex string expected, got "+typeof o);const s=o.length,r=s/2;if(s%2)throw new Error("padded hex string expected, got unpadded hex of length "+s);const i=new Uint8Array(r);for(let a=0,c=0;ao().update(toBytes$1(i)).digest(),r=o();return s.outputLen=r.outputLen,s.blockLen=r.blockLen,s.create=()=>o(),s}function randomBytes(o=32){if(crypto$1&&"function"==typeof crypto$1.getRandomValues)return crypto$1.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}let HMAC$1=class extends Hash{constructor(o,s){super(),this.finished=!1,this.destroyed=!1,hash$1(o);const r=toBytes$1(s);if(this.iHash=o.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?o.create().update(r).digest():r);for(let c=0;cnew HMAC$1(o,s).update(r).digest();function pbkdf2Init(o,s,r,i){hash$1(o);const a=checkOpts$1({dkLen:32,asyncTick:10},i),{c,dkLen:y,asyncTick:w}=a;if(number$1(c),number$1(y),number$1(w),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const C=toBytes$1(s),T=toBytes$1(r),S=new Uint8Array(y),A=hmac$1.create(o,C),I=A._cloneInto().update(T);return{c,dkLen:y,asyncTick:w,DK:S,PRF:A,PRFSalt:I}}function pbkdf2Output(o,s,r,i,a){return o.destroy(),s.destroy(),i&&i.destroy(),a.fill(0),r}function pbkdf2(o,s,r,i){const{c:a,dkLen:c,DK:y,PRF:w,PRFSalt:C}=pbkdf2Init(o,s,r,i);let T;const S=new Uint8Array(4),A=createView(S),I=new Uint8Array(w.outputLen);for(let N=1,K=0;K>a&c),w=Number(r&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}hmac$1.create=(o,s)=>new HMAC$1(o,s);class SHA2 extends Hash{constructor(s,r,i,a){super(),this.blockLen=s,this.outputLen=r,this.padOffset=i,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(s),this.view=createView(this.buffer)}update(s){exists$1(this);const{view:r,buffer:i,blockLen:a}=this,c=(s=toBytes$1(s)).length;for(let y=0;ya-y&&(this.process(i,0),y=0);for(let A=y;AS.length)throw new Error("_sha2: outputLen bigger than state");for(let A=0;Ao&s^~o&r,Maj=(o,s,r)=>o&s^o&r^s&r,SHA256_K=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends SHA2{constructor(){super(64,32,8,!1),this.A=0|IV[0],this.B=0|IV[1],this.C=0|IV[2],this.D=0|IV[3],this.E=0|IV[4],this.F=0|IV[5],this.G=0|IV[6],this.H=0|IV[7]}get(){const{A:s,B:r,C:i,D:a,E:c,F:y,G:w,H:C}=this;return[s,r,i,a,c,y,w,C]}set(s,r,i,a,c,y,w,C){this.A=0|s,this.B=0|r,this.C=0|i,this.D=0|a,this.E=0|c,this.F=0|y,this.G=0|w,this.H=0|C}process(s,r){for(let A=0;A<16;A++,r+=4)SHA256_W[A]=s.getUint32(r,!1);for(let A=16;A<64;A++){const I=SHA256_W[A-15],N=SHA256_W[A-2],K=rotr(I,7)^rotr(I,18)^I>>>3,Z=rotr(N,17)^rotr(N,19)^N>>>10;SHA256_W[A]=Z+SHA256_W[A-7]+K+SHA256_W[A-16]|0}let{A:i,B:a,C:c,D:y,E:w,F:C,G:T,H:S}=this;for(let A=0;A<64;A++){const I=S+(rotr(w,6)^rotr(w,11)^rotr(w,25))+Chi(w,C,T)+SHA256_K[A]+SHA256_W[A]|0,N=(rotr(i,2)^rotr(i,13)^rotr(i,22))+Maj(i,a,c)|0;S=T,T=C,C=w,w=y+I|0,y=c,c=a,a=i,i=I+N|0}i=i+this.A|0,a=a+this.B|0,c=c+this.C|0,y=y+this.D|0,w=w+this.E|0,C=C+this.F|0,T=T+this.G|0,S=S+this.H|0,this.set(i,a,c,y,w,C,T,S)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const sha256=wrapConstructor(()=>new SHA256),U32_MASK64=BigInt(2**32-1),_32n=BigInt(32);function fromBig(o,s=!1){return s?{h:Number(o&U32_MASK64),l:Number(o>>_32n&U32_MASK64)}:{h:0|Number(o>>_32n&U32_MASK64),l:0|Number(o&U32_MASK64)}}function split(o,s=!1){let r=new Uint32Array(o.length),i=new Uint32Array(o.length);for(let a=0;aBigInt(o>>>0)<<_32n|BigInt(s>>>0),shrSH=(o,s,r)=>o>>>r,shrSL=(o,s,r)=>o<<32-r|s>>>r,rotrSH=(o,s,r)=>o>>>r|s<<32-r,rotrSL=(o,s,r)=>o<<32-r|s>>>r,rotrBH=(o,s,r)=>o<<64-r|s>>>r-32,rotrBL=(o,s,r)=>o>>>r-32|s<<64-r,rotr32H=(o,s)=>s,rotr32L=(o,s)=>o,rotlSH=(o,s,r)=>o<>>32-r,rotlSL=(o,s,r)=>s<>>32-r,rotlBH=(o,s,r)=>s<>>64-r,rotlBL=(o,s,r)=>o<>>64-r;function add(o,s,r,i){const a=(s>>>0)+(i>>>0);return{h:o+r+(a/2**32|0)|0,l:0|a}}const add3L=(o,s,r)=>(o>>>0)+(s>>>0)+(r>>>0),add3H=(o,s,r,i)=>s+r+i+(o/2**32|0)|0,add4L=(o,s,r,i)=>(o>>>0)+(s>>>0)+(r>>>0)+(i>>>0),add4H=(o,s,r,i,a)=>s+r+i+a+(o/2**32|0)|0,add5L=(o,s,r,i,a)=>(o>>>0)+(s>>>0)+(r>>>0)+(i>>>0)+(a>>>0),add5H=(o,s,r,i,a,c)=>s+r+i+a+c+(o/2**32|0)|0,u64={fromBig,split,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH,rotlSL,rotlBH,rotlBL,add,add3L,add3H,add4L,add4H,add5H,add5L},[SHA512_Kh,SHA512_Kl]=u64.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(o=>BigInt(o))),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);class SHA512 extends SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:s,Al:r,Bh:i,Bl:a,Ch:c,Cl:y,Dh:w,Dl:C,Eh:T,El:S,Fh:A,Fl:I,Gh:N,Gl:K,Hh:Z,Hl:ne}=this;return[s,r,i,a,c,y,w,C,T,S,A,I,N,K,Z,ne]}set(s,r,i,a,c,y,w,C,T,S,A,I,N,K,Z,ne){this.Ah=0|s,this.Al=0|r,this.Bh=0|i,this.Bl=0|a,this.Ch=0|c,this.Cl=0|y,this.Dh=0|w,this.Dl=0|C,this.Eh=0|T,this.El=0|S,this.Fh=0|A,this.Fl=0|I,this.Gh=0|N,this.Gl=0|K,this.Hh=0|Z,this.Hl=0|ne}process(s,r){for(let pe=0;pe<16;pe++,r+=4)SHA512_W_H[pe]=s.getUint32(r),SHA512_W_L[pe]=s.getUint32(r+=4);for(let pe=16;pe<80;pe++){const Te=0|SHA512_W_H[pe-15],xe=0|SHA512_W_L[pe-15],Re=u64.rotrSH(Te,xe,1)^u64.rotrSH(Te,xe,8)^u64.shrSH(Te,xe,7),Me=u64.rotrSL(Te,xe,1)^u64.rotrSL(Te,xe,8)^u64.shrSL(Te,xe,7),Ce=0|SHA512_W_H[pe-2],le=0|SHA512_W_L[pe-2],ae=u64.rotrSH(Ce,le,19)^u64.rotrBH(Ce,le,61)^u64.shrSH(Ce,le,6),Ie=u64.rotrSL(Ce,le,19)^u64.rotrBL(Ce,le,61)^u64.shrSL(Ce,le,6),$e=u64.add4L(Me,Ie,SHA512_W_L[pe-7],SHA512_W_L[pe-16]),st=u64.add4H($e,Re,ae,SHA512_W_H[pe-7],SHA512_W_H[pe-16]);SHA512_W_H[pe]=0|st,SHA512_W_L[pe]=0|$e}let{Ah:i,Al:a,Bh:c,Bl:y,Ch:w,Cl:C,Dh:T,Dl:S,Eh:A,El:I,Fh:N,Fl:K,Gh:Z,Gl:ne,Hh:be,Hl:me}=this;for(let pe=0;pe<80;pe++){const Te=u64.rotrSH(A,I,14)^u64.rotrSH(A,I,18)^u64.rotrBH(A,I,41),xe=u64.rotrSL(A,I,14)^u64.rotrSL(A,I,18)^u64.rotrBL(A,I,41),Re=A&N^~A&Z,Ce=u64.add5L(me,xe,I&K^~I&ne,SHA512_Kl[pe],SHA512_W_L[pe]),le=u64.add5H(Ce,be,Te,Re,SHA512_Kh[pe],SHA512_W_H[pe]),ae=0|Ce,Ie=u64.rotrSH(i,a,28)^u64.rotrBH(i,a,34)^u64.rotrBH(i,a,39),$e=u64.rotrSL(i,a,28)^u64.rotrBL(i,a,34)^u64.rotrBL(i,a,39),st=i&c^i&w^c&w,ht=a&y^a&C^y&C;be=0|Z,me=0|ne,Z=0|N,ne=0|K,N=0|A,K=0|I,({h:A,l:I}=u64.add(0|T,0|S,0|le,0|ae)),T=0|w,S=0|C,w=0|c,C=0|y,c=0|i,y=0|a;const vt=u64.add3L(ae,$e,ht);i=u64.add3H(vt,le,Ie,st),a=0|vt}({h:i,l:a}=u64.add(0|this.Ah,0|this.Al,0|i,0|a)),({h:c,l:y}=u64.add(0|this.Bh,0|this.Bl,0|c,0|y)),({h:w,l:C}=u64.add(0|this.Ch,0|this.Cl,0|w,0|C)),({h:T,l:S}=u64.add(0|this.Dh,0|this.Dl,0|T,0|S)),({h:A,l:I}=u64.add(0|this.Eh,0|this.El,0|A,0|I)),({h:N,l:K}=u64.add(0|this.Fh,0|this.Fl,0|N,0|K)),({h:Z,l:ne}=u64.add(0|this.Gh,0|this.Gl,0|Z,0|ne)),({h:be,l:me}=u64.add(0|this.Hh,0|this.Hl,0|be,0|me)),this.set(i,a,c,y,w,C,T,S,A,I,N,K,Z,ne,be,me)}roundClean(){SHA512_W_H.fill(0),SHA512_W_L.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const sha512=wrapConstructor(()=>new SHA512);function isBytes(o){return o instanceof Uint8Array||null!=o&&"object"==typeof o&&"Uint8Array"===o.constructor.name}function chain(...o){const s=i=>i,r=(i,a)=>c=>i(a(c));return{encode:o.map(i=>i.encode).reduceRight(r,s),decode:o.map(i=>i.decode).reduce(r,s)}}function alphabet(o){return{encode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("alphabet.encode input should be an array of numbers");return s.map(r=>{if(r<0||r>=o.length)throw new Error(`Digit index outside alphabet: ${r} (alphabet: ${o.length})`);return o[r]})},decode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("alphabet.decode input should be array of strings");return s.map(r=>{if("string"!=typeof r)throw new Error(`alphabet.decode: not string element=${r}`);const i=o.indexOf(r);if(-1===i)throw new Error(`Unknown letter: "${r}". Allowed: ${o}`);return i})}}}function join(o=""){if("string"!=typeof o)throw new Error("join separator should be string");return{encode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("join.encode input should be array of strings");for(let r of s)if("string"!=typeof r)throw new Error(`join.encode: non-string input=${r}`);return s.join(o)},decode:s=>{if("string"!=typeof s)throw new Error("join.decode input should be string");return s.split(o)}}}function padding(o,s="="){if("string"!=typeof s)throw new Error("padding chr should be string");return{encode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let i of r)if("string"!=typeof i)throw new Error(`padding.encode: non-string input=${i}`);for(;r.length*o%8;)r.push(s);return r},decode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let a of r)if("string"!=typeof a)throw new Error(`padding.decode: non-string input=${a}`);let i=r.length;if(i*o%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;i>0&&r[i-1]===s;i--)if(!((i-1)*o%8))throw new Error("Invalid padding: string has too much padding");return r.slice(0,i)}}}function convertRadix(o,s,r){if(s<2)throw new Error(`convertRadix: wrong from=${s}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: wrong to=${r}, base cannot be less than 2`);if(!Array.isArray(o))throw new Error("convertRadix: data should be array");if(!o.length)return[];let i=0;const a=[],c=Array.from(o);for(c.forEach(y=>{if(y<0||y>=s)throw new Error(`Wrong integer: ${y}`)});;){let y=0,w=!0;for(let C=i;Cs?gcd(s,o%s):o,radix2carry=(o,s)=>o+(s-gcd(o,s));function convertRadix2(o,s,r,i){if(!Array.isArray(o))throw new Error("convertRadix2: data should be array");if(s<=0||s>32)throw new Error(`convertRadix2: wrong from=${s}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(radix2carry(s,r)>32)throw new Error(`convertRadix2: carry overflow from=${s} to=${r} carryBits=${radix2carry(s,r)}`);let a=0,c=0;const y=2**r-1,w=[];for(const C of o){if(C>=2**s)throw new Error(`convertRadix2: invalid data word=${C} from=${s}`);if(a=a<32)throw new Error(`convertRadix2: carry overflow pos=${c} from=${s}`);for(c+=s;c>=r;c-=r)w.push((a>>c-r&y)>>>0);a&=2**c-1}if(a=a<=s)throw new Error("Excess padding");if(!i&&a)throw new Error(`Non-zero padding: ${a}`);return i&&c>0&&w.push(a>>>0),w}function radix(o){return{encode:s=>{if(!isBytes(s))throw new Error("radix.encode input should be Uint8Array");return convertRadix(Array.from(s),256,o)},decode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(convertRadix(s,o,256))}}}function radix2(o,s=!1){if(o<=0||o>32)throw new Error("radix2: bits should be in (0..32]");if(radix2carry(8,o)>32||radix2carry(o,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!isBytes(r))throw new Error("radix2.encode input should be Uint8Array");return convertRadix2(Array.from(r),8,o,!s)},decode:r=>{if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(convertRadix2(r,o,8,s))}}}function unsafeWrapper(o){if("function"!=typeof o)throw new Error("unsafeWrapper fn should be function");return function(...s){try{return o.apply(null,s)}catch{}}}function checksum(o,s){if("function"!=typeof s)throw new Error("checksum fn should be function");return{encode(r){if(!isBytes(r))throw new Error("checksum.encode: input should be Uint8Array");const i=s(r).slice(0,o),a=new Uint8Array(r.length+o);return a.set(r),a.set(i,r.length),a},decode(r){if(!isBytes(r))throw new Error("checksum.decode: input should be Uint8Array");const i=r.slice(0,-o),a=s(i).slice(0,o),c=r.slice(-o);for(let y=0;ychain(radix(58),alphabet(o),join("")),base58=genBase58("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),createBase58check=o=>chain(checksum(4,s=>o(o(s))),base58),base58check$1=createBase58check,BECH_ALPHABET=chain(alphabet("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),join("")),POLYMOD_GENERATORS=[996825010,642813549,513874426,1027748829,705979059];function bech32Polymod(o){const s=o>>25;let r=(33554431&o)<<5;for(let i=0;i>i&1)&&(r^=POLYMOD_GENERATORS[i]);return r}function bechChecksum(o,s,r=1){const i=o.length;let a=1;for(let c=0;c126)throw new Error(`Invalid prefix (${o})`);a=bech32Polymod(a)^y>>5}a=bech32Polymod(a);for(let c=0;cC)throw new TypeError(`Wrong string length: ${w.length} (${w}). Expected (8..${C})`);const T=w.toLowerCase();if(w!==T&&w!==w.toUpperCase())throw new Error("String must be lowercase or uppercase");const S=(w=T).lastIndexOf("1");if(0===S||-1===S)throw new Error('Letter "1" must be present between prefix and data only');const A=w.slice(0,S),I=w.slice(S+1);if(I.length<6)throw new Error("Data must be at least 6 characters long");const N=BECH_ALPHABET.decode(I).slice(0,-6),K=bechChecksum(A,N,s);if(!I.endsWith(K))throw new Error(`Invalid checksum in ${w}: expected "${K}"`);return{prefix:A,words:N}}return{encode:function(w,C,T=90){if("string"!=typeof w)throw new Error("bech32.encode prefix should be string, not "+typeof w);if(!Array.isArray(C)||C.length&&"number"!=typeof C[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof C);const S=w.length+7+C.length;if(!1!==T&&S>T)throw new TypeError(`Length ${S} exceeds limit ${T}`);const A=w.toLowerCase(),I=bechChecksum(A,C,s);return`${A}1${BECH_ALPHABET.encode(C)}${I}`},decode:y,decodeToBytes:function(w){const{prefix:C,words:T}=y(w,!1);return{prefix:C,words:T,bytes:i(T)}},decodeUnsafe:unsafeWrapper(y),fromWords:i,fromWordsUnsafe:c,toWords:a}}const bech32=genBech32("bech32"),isJapanese=o=>"\u3042\u3044\u3053\u304f\u3057\u3093"===o[0];function nfkd(o){if("string"!=typeof o)throw new TypeError("Invalid mnemonic type: "+typeof o);return o.normalize("NFKD")}function normalize(o){const s=nfkd(o),r=s.split(" ");if(![12,15,18,21,24].includes(r.length))throw new Error("Invalid mnemonic");return{nfkd:s,words:r}}function assertEntropy(o){assert$1.bytes(o,16,20,24,28,32)}function generateMnemonic(o,s=128){if(assert$1.number(s),s%32!=0||s>256)throw new TypeError("Invalid entropy");return entropyToMnemonic(randomBytes(s/8),o)}const calcChecksum=o=>{const s=8-o.length/4;return new Uint8Array([sha256(o)[0]>>s<{if("string"!=typeof s)throw new Error(`Wordlist: non-string element: ${s}`)}),utils$1.chain(utils$1.checksum(1,calcChecksum),utils$1.radix2(11,!0),utils$1.alphabet(o))}function mnemonicToEntropy(o,s){const{words:r}=normalize(o),i=getCoder(s).decode(r);return assertEntropy(i),i}function entropyToMnemonic(o,s){return assertEntropy(o),getCoder(s).encode(o).join(isJapanese(s)?"\u3000":" ")}function validateMnemonic(o,s){try{mnemonicToEntropy(o,s)}catch{return!1}return!0}const salt=o=>nfkd(`mnemonic${o}`);function mnemonicToSeedSync(o,s=""){return pbkdf2(sha512,normalize(o).nfkd,salt(s),{c:2048,dkLen:64})}const Rho=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Id=Uint8Array.from({length:16},(o,s)=>s),Pi=Id.map(o=>(9*o+5)%16);let idxL=[Id],idxR=[Pi];for(let o=0;o<4;o++)for(let s of[idxL,idxR])s.push(s[o].map(r=>Rho[r]));const shifts=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(o=>new Uint8Array(o)),shiftsL=idxL.map((o,s)=>o.map(r=>shifts[s][r])),shiftsR=idxR.map((o,s)=>o.map(r=>shifts[s][r])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),rotl$1=(o,s)=>o<>>32-s;function f(o,s,r,i){return 0===o?s^r^i:1===o?s&r|~s&i:2===o?(s|~r)^i:3===o?s&i|r&~i:s^(r|~i)}const BUF=new Uint32Array(16);class RIPEMD160 extends SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:s,h1:r,h2:i,h3:a,h4:c}=this;return[s,r,i,a,c]}set(s,r,i,a,c){this.h0=0|s,this.h1=0|r,this.h2=0|i,this.h3=0|a,this.h4=0|c}process(s,r){for(let N=0;N<16;N++,r+=4)BUF[N]=s.getUint32(r,!0);let i=0|this.h0,a=i,c=0|this.h1,y=c,w=0|this.h2,C=w,T=0|this.h3,S=T,A=0|this.h4,I=A;for(let N=0;N<5;N++){const K=4-N,Z=Kl[N],ne=Kr[N],be=idxL[N],me=idxR[N],pe=shiftsL[N],Te=shiftsR[N];for(let xe=0;xe<16;xe++){const Re=rotl$1(i+f(N,c,w,T)+BUF[be[xe]]+Z,pe[xe])+A|0;i=A,A=T,T=0|rotl$1(w,10),w=c,c=Re}for(let xe=0;xe<16;xe++){const Re=rotl$1(a+f(K,y,C,S)+BUF[me[xe]]+ne,Te[xe])+I|0;a=I,I=S,S=0|rotl$1(C,10),C=y,y=Re}}this.set(this.h1+w+S|0,this.h2+T+I|0,this.h3+A+a|0,this.h4+i+y|0,this.h0+c+C|0)}roundClean(){BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const ripemd160=wrapConstructor(()=>new RIPEMD160),Point=secp256k1.ProjectivePoint,base58check=base58check$1(sha256);function bytesToNumber(o){return BigInt(`0x${bytesToHex(o)}`)}function numberToBytes(o){return hexToBytes(o.toString(16).padStart(64,"0"))}const MASTER_SECRET=utf8ToBytes$1("Bitcoin seed"),BITCOIN_VERSIONS={private:76066276,public:76067358},HARDENED_OFFSET=2147483648,hash160=o=>ripemd160(sha256(o)),fromU32=o=>createView(o).getUint32(0,!1),toU32=o=>{if(!Number.isSafeInteger(o)||o<0||o>2**32-1)throw new Error(`Invalid number=${o}. Should be from 0 to 2 ** 32 - 1`);const s=new Uint8Array(4);return createView(s).setUint32(0,o,!1),s};class HDKey{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return fromU32(this.pubHash)}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){const s=this.privateKey;if(!s)throw new Error("No private key");return base58check.encode(this.serialize(this.versions.private,concatBytes(new Uint8Array([0]),s)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return base58check.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(s,r=BITCOIN_VERSIONS){if(bytes$1(s),8*s.length<128||8*s.length>512)throw new Error(`HDKey: wrong seed length=${s.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const i=hmac$1(sha512,MASTER_SECRET,s);return new HDKey({versions:r,chainCode:i.slice(32),privateKey:i.slice(0,32)})}static fromExtendedKey(s,r=BITCOIN_VERSIONS){const i=base58check.decode(s),a=createView(i),c=a.getUint32(0,!1),y={versions:r,depth:i[4],parentFingerprint:a.getUint32(5,!1),index:a.getUint32(9,!1),chainCode:i.slice(13,45)},w=i.slice(45),C=0===w[0];if(c!==r[C?"private":"public"])throw new Error("Version mismatch");return new HDKey(C?{...y,privateKey:w.slice(1)}:{...y,publicKey:w})}static fromJSON(s){return HDKey.fromExtendedKey(s.xpriv)}constructor(s){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!s||"object"!=typeof s)throw new Error("HDKey.constructor must not be called directly");if(this.versions=s.versions||BITCOIN_VERSIONS,this.depth=s.depth||0,this.chainCode=s.chainCode,this.index=s.index||0,this.parentFingerprint=s.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(s.publicKey&&s.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(s.privateKey){if(!secp256k1.utils.isValidPrivateKey(s.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof s.privateKey?s.privateKey:bytesToNumber(s.privateKey),this.privKeyBytes=numberToBytes(this.privKey),this.pubKey=secp256k1.getPublicKey(s.privateKey,!0)}else{if(!s.publicKey)throw new Error("HDKey: no public or private key provided");this.pubKey=Point.fromHex(s.publicKey).toRawBytes(!0)}this.pubHash=hash160(this.pubKey)}derive(s){if(!/^[mM]'?/.test(s))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(s))return this;const r=s.replace(/^[mM]'?\//,"").split("/");let i=this;for(const a of r){const c=/^(\d+)('?)$/.exec(a);if(!c||3!==c.length)throw new Error(`Invalid child index: ${a}`);let y=+c[1];if(!Number.isSafeInteger(y)||y>=HARDENED_OFFSET)throw new Error("Invalid index");"'"===c[2]&&(y+=HARDENED_OFFSET),i=i.deriveChild(y)}return i}deriveChild(s){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let r=toU32(s);if(s>=HARDENED_OFFSET){const w=this.privateKey;if(!w)throw new Error("Could not derive hardened child key");r=concatBytes(new Uint8Array([0]),w,r)}else r=concatBytes(this.pubKey,r);const i=hmac$1(sha512,this.chainCode,r),a=bytesToNumber(i.slice(0,32)),c=i.slice(32);if(!secp256k1.utils.isValidPrivateKey(a))throw new Error("Tweak bigger than curve order");const y={versions:this.versions,chainCode:c,depth:this.depth+1,parentFingerprint:this.fingerprint,index:s};try{if(this.privateKey){const w=mod(this.privKey+a,secp256k1.CURVE.n);if(!secp256k1.utils.isValidPrivateKey(w))throw new Error("The tweak was out of range or the resulted private key is invalid");y.privateKey=w}else{const w=Point.fromHex(this.pubKey).add(Point.fromPrivateKey(a));if(w.equals(Point.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");y.publicKey=w.toRawBytes(!0)}return new HDKey(y)}catch{return this.deriveChild(s+1)}}sign(s){if(!this.privateKey)throw new Error("No privateKey set!");return bytes$1(s,32),secp256k1.sign(s,this.privKey).toCompactRawBytes()}verify(s,r){if(bytes$1(s,32),bytes$1(r,64),!this.publicKey)throw new Error("No publicKey set!");let i;try{i=secp256k1.Signature.fromCompact(r)}catch{return!1}return secp256k1.verify(i,s,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(s,r){if(!this.chainCode)throw new Error("No chainCode set");return bytes$1(r,33),concatBytes(toU32(s),new Uint8Array([this.depth]),toU32(this.parentFingerprint),toU32(this.index),this.chainCode,r)}}const u8a=o=>o instanceof Uint8Array,u32=o=>new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)),isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE)throw new Error("Non little-endian hardware is not supported");function utf8ToBytes(o){if("string"!=typeof o)throw new Error("utf8ToBytes expected string, got "+typeof o);return new Uint8Array((new TextEncoder).encode(o))}function toBytes(o){if("string"==typeof o&&(o=utf8ToBytes(o)),!u8a(o))throw new Error("expected Uint8Array, got "+typeof o);return o}const isPlainObject=o=>"[object Object]"===Object.prototype.toString.call(o)&&o.constructor===Object;function checkOpts(o,s){if(void 0!==s&&("object"!=typeof s||!isPlainObject(s)))throw new Error("options must be object or undefined");return Object.assign(o,s)}function ensureBytes(o,s){if(!(o instanceof Uint8Array))throw new Error("Uint8Array expected");if("number"==typeof s&&o.length!==s)throw new Error(`Uint8Array length ${s} expected`)}function equalBytes(o,s){if(o.length!==s.length)throw new Error("equalBytes: Different size of Uint8Arrays");let r=!0;for(let i=0;i0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("hash must be wrapped by utils.wrapConstructor");number(o.outputLen),number(o.blockLen)}function exists(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output(o,s){bytes(o);const r=s.outputLen;if(o.length255&o[s++]|(255&o[s++])<<8;class Poly1305{constructor(s){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,ensureBytes(s=toBytes(s),32);const r=u8to16(s,0),i=u8to16(s,2),a=u8to16(s,4),c=u8to16(s,6),y=u8to16(s,8),w=u8to16(s,10),C=u8to16(s,12),T=u8to16(s,14);this.r[0]=8191&r,this.r[1]=8191&(r>>>13|i<<3),this.r[2]=7939&(i>>>10|a<<6),this.r[3]=8191&(a>>>7|c<<9),this.r[4]=255&(c>>>4|y<<12),this.r[5]=y>>>1&8190,this.r[6]=8191&(y>>>14|w<<2),this.r[7]=8065&(w>>>11|C<<5),this.r[8]=8191&(C>>>8|T<<8),this.r[9]=T>>>5&127;for(let S=0;S<8;S++)this.pad[S]=u8to16(s,16+2*S)}process(s,r,i=!1){const a=i?0:2048,{h:c,r:y}=this,w=y[0],C=y[1],T=y[2],S=y[3],A=y[4],I=y[5],N=y[6],K=y[7],Z=y[8],ne=y[9],be=u8to16(s,r+0),me=u8to16(s,r+2),pe=u8to16(s,r+4),Te=u8to16(s,r+6),xe=u8to16(s,r+8),Re=u8to16(s,r+10),Me=u8to16(s,r+12),Ce=u8to16(s,r+14);let le=c[0]+(8191&be),ae=c[1]+(8191&(be>>>13|me<<3)),Ie=c[2]+(8191&(me>>>10|pe<<6)),$e=c[3]+(8191&(pe>>>7|Te<<9)),st=c[4]+(8191&(Te>>>4|xe<<12)),ht=c[5]+(xe>>>1&8191),vt=c[6]+(8191&(xe>>>14|Re<<2)),at=c[7]+(8191&(Re>>>11|Me<<5)),Xt=c[8]+(8191&(Me>>>8|Ce<<8)),ln=c[9]+(Ce>>>5|a),yn=0,$n=yn+le*w+ae*(5*ne)+Ie*(5*Z)+$e*(5*K)+st*(5*N);yn=$n>>>13,$n&=8191,$n+=ht*(5*I)+vt*(5*A)+at*(5*S)+Xt*(5*T)+ln*(5*C),yn+=$n>>>13,$n&=8191;let bn=yn+le*C+ae*w+Ie*(5*ne)+$e*(5*Z)+st*(5*K);yn=bn>>>13,bn&=8191,bn+=ht*(5*N)+vt*(5*I)+at*(5*A)+Xt*(5*S)+ln*(5*T),yn+=bn>>>13,bn&=8191;let Qe=yn+le*T+ae*C+Ie*w+$e*(5*ne)+st*(5*Z);yn=Qe>>>13,Qe&=8191,Qe+=ht*(5*K)+vt*(5*N)+at*(5*I)+Xt*(5*A)+ln*(5*S),yn+=Qe>>>13,Qe&=8191;let bt=yn+le*S+ae*T+Ie*C+$e*w+st*(5*ne);yn=bt>>>13,bt&=8191,bt+=ht*(5*Z)+vt*(5*K)+at*(5*N)+Xt*(5*I)+ln*(5*A),yn+=bt>>>13,bt&=8191;let Ge=yn+le*A+ae*S+Ie*T+$e*C+st*w;yn=Ge>>>13,Ge&=8191,Ge+=ht*(5*ne)+vt*(5*Z)+at*(5*K)+Xt*(5*N)+ln*(5*I),yn+=Ge>>>13,Ge&=8191;let Fe=yn+le*I+ae*A+Ie*S+$e*T+st*C;yn=Fe>>>13,Fe&=8191,Fe+=ht*w+vt*(5*ne)+at*(5*Z)+Xt*(5*K)+ln*(5*N),yn+=Fe>>>13,Fe&=8191;let Ft=yn+le*N+ae*I+Ie*A+$e*S+st*T;yn=Ft>>>13,Ft&=8191,Ft+=ht*C+vt*w+at*(5*ne)+Xt*(5*Z)+ln*(5*K),yn+=Ft>>>13,Ft&=8191;let ze=yn+le*K+ae*N+Ie*I+$e*A+st*S;yn=ze>>>13,ze&=8191,ze+=ht*T+vt*C+at*w+Xt*(5*ne)+ln*(5*Z),yn+=ze>>>13,ze&=8191;let dt=yn+le*Z+ae*K+Ie*N+$e*I+st*A;yn=dt>>>13,dt&=8191,dt+=ht*S+vt*T+at*C+Xt*w+ln*(5*ne),yn+=dt>>>13,dt&=8191;let Ke=yn+le*ne+ae*Z+Ie*K+$e*N+st*I;yn=Ke>>>13,Ke&=8191,Ke+=ht*A+vt*S+at*T+Xt*C+ln*w,yn+=Ke>>>13,Ke&=8191,yn=(yn<<2)+yn|0,yn=yn+$n|0,$n=8191&yn,yn>>>=13,bn+=yn,c[0]=$n,c[1]=bn,c[2]=Qe,c[3]=bt,c[4]=Ge,c[5]=Fe,c[6]=Ft,c[7]=ze,c[8]=dt,c[9]=Ke}finalize(){const{h:s,pad:r}=this,i=new Uint16Array(10);let a=s[1]>>>13;s[1]&=8191;for(let w=2;w<10;w++)s[w]+=a,a=s[w]>>>13,s[w]&=8191;s[0]+=5*a,a=s[0]>>>13,s[0]&=8191,s[1]+=a,a=s[1]>>>13,s[1]&=8191,s[2]+=a,i[0]=s[0]+5,a=i[0]>>>13,i[0]&=8191;for(let w=1;w<10;w++)i[w]=s[w]+a,a=i[w]>>>13,i[w]&=8191;i[9]-=8192;let c=(1^a)-1;for(let w=0;w<10;w++)i[w]&=c;c=~c;for(let w=0;w<10;w++)s[w]=s[w]&c|i[w];s[0]=65535&(s[0]|s[1]<<13),s[1]=65535&(s[1]>>>3|s[2]<<10),s[2]=65535&(s[2]>>>6|s[3]<<7),s[3]=65535&(s[3]>>>9|s[4]<<4),s[4]=65535&(s[4]>>>12|s[5]<<1|s[6]<<14),s[5]=65535&(s[6]>>>2|s[7]<<11),s[6]=65535&(s[7]>>>5|s[8]<<8),s[7]=65535&(s[8]>>>8|s[9]<<5);let y=s[0]+r[0];s[0]=65535&y;for(let w=1;w<8;w++)y=(s[w]+r[w]|0)+(y>>>16)|0,s[w]=65535&y}update(s){assert.exists(this);const{buffer:r,blockLen:i}=this,a=(s=toBytes(s)).length;for(let c=0;c>>0,s[c++]=i[y]>>>8;return s}digest(){const{buffer:s,outputLen:r}=this;this.digestInto(s);const i=s.slice(0,r);return this.destroy(),i}}function wrapConstructorWithKey(o){const s=(i,a)=>o(a).update(toBytes(i)).digest(),r=o(new Uint8Array(32));return s.outputLen=r.outputLen,s.blockLen=r.blockLen,s.create=i=>o(i),s}wrapConstructorWithKey(o=>new Poly1305(o));const sigma16=utf8ToBytes("expand 16-byte k"),sigma32=utf8ToBytes("expand 32-byte k"),sigma16_32=u32(sigma16),sigma32_32=u32(sigma32),isAligned32=o=>!(o.byteOffset%4),salsaBasic=o=>{const{core:s,rounds:r,counterRight:i,counterLen:a,allow128bitKeys:c,extendNonceFn:y,blockLen:w}=checkOpts({rounds:20,counterRight:!1,counterLen:8,allow128bitKeys:!0,blockLen:64},o);assert.number(a),assert.number(r),assert.number(w),assert.bool(i),assert.bool(c);const C=w/4;if(w%4!=0)throw new Error("Salsa/ChaCha: blockLen must be aligned to 4 bytes");return(T,S,A,I,N=0)=>{if(assert.bytes(T),assert.bytes(S),assert.bytes(A),I||(I=new Uint8Array(A.length)),assert.bytes(I),assert.number(N),N<0||N>=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");if(I.length=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");const Ie=Math.min(w,Ce-le);if(Ie===w&&Me&&Re){const $e=le/4;if(le%4!=0)throw new Error("Salsa/ChaCha: invalid block position");for(let st=0;sto<>>32-s;function chachaCore(o,s,r,i,a,c=20){let y=o[0],w=o[1],C=o[2],T=o[3],S=s[0],A=s[1],I=s[2],N=s[3],K=s[4],Z=s[5],ne=s[6],be=s[7],me=a,pe=r[0],Te=r[1],xe=r[2],Re=y,Me=w,Ce=C,le=T,ae=S,Ie=A,$e=I,st=N,ht=K,vt=Z,at=ne,Xt=be,ln=me,yn=pe,$n=Te,bn=xe;for(let bt=0;bta?s.create().update(i).digest():i);for(let y=0;ynew HMAC(o,s).update(r).digest();function extract$1(o,s,r){return assert$2.hash(o),void 0===r&&(r=new Uint8Array(o.outputLen)),hmac(o,toBytes$2(r),toBytes$2(s))}hmac.create=(o,s)=>new HMAC(o,s);const HKDF_COUNTER$1=new Uint8Array([0]),EMPTY_BUFFER$1=new Uint8Array;function expand$1(o,s,r,i=32){if(assert$2.hash(o),assert$2.number(i),i>255*o.outputLen)throw new Error("Length should be <= 255*HashLen");const a=Math.ceil(i/o.outputLen);void 0===r&&(r=EMPTY_BUFFER$1);const c=new Uint8Array(a*o.outputLen),y=hmac.create(o,s),w=y._cloneInto(),C=new Uint8Array(y.outputLen);for(let T=0;Texpand$1(o,extract$1(o,s,r),i,a);var __defProp=Object.defineProperty,__export=(o,s)=>{for(var r in s)__defProp(o,r,{get:s[r],enumerable:!0})};function generatePrivateKey(){return bytesToHex$1(schnorr.utils.randomPrivateKey())}function getPublicKey(o){return bytesToHex$1(schnorr.getPublicKey(o))}var utils_exports={};__export(utils_exports,{MessageNode:()=>MessageNode,MessageQueue:()=>MessageQueue,insertEventIntoAscendingList:()=>insertEventIntoAscendingList,insertEventIntoDescendingList:()=>insertEventIntoDescendingList,normalizeURL:()=>normalizeURL,utf8Decoder:()=>utf8Decoder,utf8Encoder:()=>utf8Encoder});var utf8Decoder=new TextDecoder("utf-8"),utf8Encoder=new TextEncoder;function normalizeURL(o){let s=new URL(o);return s.pathname=s.pathname.replace(/\/+/g,"/"),s.pathname.endsWith("/")&&(s.pathname=s.pathname.slice(0,-1)),("80"===s.port&&"ws:"===s.protocol||"443"===s.port&&"wss:"===s.protocol)&&(s.port=""),s.searchParams.sort(),s.hash="",s.toString()}function insertEventIntoDescendingList(o,s){let r,i=0,a=o.length-1,c=i;if(a<0)c=0;else if(s.created_at=o[i].created_at)c=i;else for(;;){if(a<=i+1){c=a;break}if(r=Math.floor(i+(a-i)/2),o[r].created_at>s.created_at)i=r;else{if(!(o[r].created_ato[a].created_at)c=a+1;else if(s.created_at<=o[i].created_at)c=i;else for(;;){if(a<=i+1){c=a;break}if(r=Math.floor(i+(a-i)/2),o[r].created_ats.created_at)){c=r;break}a=r}}return o[c]?.id!==s.id?[...o.slice(0,c),s,...o.slice(c)]:o}var MessageNode=class{_value;_next;get value(){return this._value}set value(o){this._value=o}get next(){return this._next}set next(o){this._next=o}constructor(o){this._value=o,this._next=null}},MessageQueue=class{_first;_last;get first(){return this._first}set first(o){this._first=o}get last(){return this._last}set last(o){this._last=o}_size;get size(){return this._size}set size(o){this._size=o}constructor(){this._first=null,this._last=null,this._size=0}enqueue(o){const s=new MessageNode(o);return 0!==this._size&&this._last?(this._last.next=s,this._last=s):(this._first=s,this._last=s),this._size++,!0}dequeue(){if(0===this._size||!this._first)return null;let o=this._first;return this._first=o.next,o.next=null,this._size--,o.value}},verifiedSymbol=Symbol("verified");function getBlankEvent(o=255){return{kind:o,content:"",tags:[],created_at:0}}function finishEvent(o,s){const r=o;return r.pubkey=getPublicKey(s),r.id=getEventHash(r),r.sig=getSignature(r,s),r[verifiedSymbol]=!0,r}function serializeEvent(o){if(!validateEvent(o))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,o.pubkey,o.created_at,o.kind,o.tags,o.content])}function getEventHash(o){return bytesToHex$1(sha256$1(utf8Encoder.encode(serializeEvent(o))))}var isRecord=o=>o instanceof Object;function validateEvent(o){if(!isRecord(o)||"number"!=typeof o.kind||"string"!=typeof o.content||"number"!=typeof o.created_at||"string"!=typeof o.pubkey||!o.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(o.tags))return!1;for(let s=0;ss.id.startsWith(r))||o.kinds&&-1===o.kinds.indexOf(s.kind)||o.authors&&-1===o.authors.indexOf(s.pubkey)&&!o.authors.some(r=>s.pubkey.startsWith(r)))return!1;for(let r in o)if("#"===r[0]){let i=o[`#${r.slice(1)}`];if(i&&!s.tags.find(([a,c])=>a===r.slice(1)&&-1!==i.indexOf(c)))return!1}return!(o.since&&s.created_ato.until)}function matchFilters(o,s){for(let r=0;rgetHex64,getInt:()=>getInt,getSubscriptionId:()=>getSubscriptionId,matchEventId:()=>matchEventId,matchEventKind:()=>matchEventKind,matchEventPubkey:()=>matchEventPubkey});var newListeners=()=>({connect:[],disconnect:[],error:[],notice:[],auth:[]});function relayInit(o,s={}){let{listTimeout:r=3e3,getTimeout:i=3e3,countTimeout:a=3e3}=s;var c,y,w={},C=newListeners(),T={},S={};function A(){return 1===c?.readyState}function I(ne){return N.apply(this,arguments)}function N(){return(N=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(ne){let be=JSON.stringify(ne);if(A()||(yield new Promise(me=>setTimeout(me,1e3)),A()))try{c.send(be)}catch(me){console.log(me)}})).apply(this,arguments)}const K=(ne,{verb:be="REQ",skipVerification:me=!1,alreadyHaveEvent:pe=null,id:Te=Math.random().toString().slice(2)}={})=>{let xe=Te;w[xe]={id:xe,filters:ne,skipVerification:me,alreadyHaveEvent:pe},I([be,xe,...ne]);let Re={sub:(Me,Ce={})=>K(Me||ne,{skipVerification:Ce.skipVerification||me,alreadyHaveEvent:Ce.alreadyHaveEvent||pe,id:xe}),unsub:()=>{delete w[xe],delete T[xe],I(["CLOSE",xe])},on:(Me,Ce)=>{T[xe]=T[xe]||{event:[],count:[],eose:[]},T[xe][Me].push(Ce)},off:(Me,Ce)=>{let le=T[xe],ae=le[Me].indexOf(Ce);ae>=0&&le[Me].splice(ae,1)},get events(){return eventsGenerator(Re)}};return Re};function Z(ne,be){return new Promise((me,pe)=>{if(!ne.id)return void pe(new Error(`event ${ne} has no id`));let Te=ne.id;I([be,ne]),S[Te]={resolve:me,reject:pe}})}return{url:o,sub:K,on:(ne,be)=>{C[ne].push(be),"connect"===ne&&1===c?.readyState&&be()},off:(ne,be)=>{let me=C[ne].indexOf(be);-1!==me&&C[ne].splice(me,1)},list:(ne,be)=>new Promise(me=>{let pe=K(ne,be),Te=[],xe=setTimeout(()=>{pe.unsub(),me(Te)},r);pe.on("eose",()=>{pe.unsub(),clearTimeout(xe),me(Te)}),pe.on("event",Re=>{Te.push(Re)})}),get:(ne,be)=>new Promise(me=>{let pe=K([ne],be),Te=setTimeout(()=>{pe.unsub(),me(null)},i);pe.on("event",xe=>{pe.unsub(),clearTimeout(Te),me(xe)})}),count:ne=>new Promise(be=>{let me=K(ne,{...K,verb:"COUNT"}),pe=setTimeout(()=>{me.unsub(),be(null)},a);me.on("count",Te=>{me.unsub(),clearTimeout(pe),be(Te)})}),publish:ne=>(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield Z(ne,"EVENT")})(),auth:ne=>(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield Z(ne,"AUTH")})(),connect:(ne=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){A()||(yield(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return y||(y=new Promise((be,me)=>{try{c=new WebSocket(o)}catch(Re){me(Re)}c.onopen=()=>{C.connect.forEach(Re=>Re()),be()},c.onerror=()=>{y=void 0,C.error.forEach(Re=>Re()),me()},c.onclose=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){y=void 0,C.disconnect.forEach(Re=>Re())});let pe,Te=new MessageQueue;function xe(){if(0===Te.size)return clearInterval(pe),void(pe=null);var Re=Te.dequeue();if(!Re)return;let Me=getSubscriptionId(Re);if(Me){let Ce=w[Me];if(Ce&&Ce.alreadyHaveEvent&&Ce.alreadyHaveEvent(getHex64(Re,"id"),o))return}try{let Ce=JSON.parse(Re);switch(Ce[0]){case"EVENT":{let $e=Ce[1],st=Ce[2];return void(validateEvent(st)&&w[$e]&&(w[$e].skipVerification||verifySignature(st))&&matchFilters(w[$e].filters,st)&&(T[$e]?.event||[]).forEach(ht=>ht(st)))}case"COUNT":let le=Ce[1],ae=Ce[2];return void(w[le]&&(T[le]?.count||[]).forEach($e=>$e(ae)));case"EOSE":{let $e=Ce[1];return void($e in T&&(T[$e].eose.forEach(st=>st()),T[$e].eose=[]))}case"OK":{let $e=Ce[1],st=Ce[2],ht=Ce[3]||"";if($e in S){let{resolve:vt,reject:at}=S[$e];st?vt(null):at(new Error(ht))}return}case"NOTICE":let Ie=Ce[1];return void C.notice.forEach($e=>$e(Ie));case"AUTH":{let $e=Ce[1];return void C.auth?.forEach(st=>st($e))}}}catch{return}}c.onmessage=Re=>{Te.enqueue(Re.data),pe||(pe=setInterval(xe,0))}}))})())}),function(){return ne.apply(this,arguments)}),close(){C=newListeners(),T={},S={},c?.readyState===WebSocket.OPEN&&c.close()},get status(){return c?.readyState??3}};var ne}function eventsGenerator(o){return _eventsGenerator.apply(this,arguments)}function _eventsGenerator(){return _eventsGenerator=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_wrapAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(o){let s;const r=[],i=a=>{s?(s(a),s=void 0):r.push(a)};o.on("event",i);try{for(;;)r.length>0?yield r.shift():yield yield(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_awaitAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_2__.A)(new Promise(c=>{s=c}))}finally{o.off("event",i)}}),_eventsGenerator.apply(this,arguments)}var nip19_exports={};__export(nip19_exports,{BECH32_REGEX:()=>BECH32_REGEX,decode:()=>decode,naddrEncode:()=>naddrEncode,neventEncode:()=>neventEncode,noteEncode:()=>noteEncode,nprofileEncode:()=>nprofileEncode,npubEncode:()=>npubEncode,nrelayEncode:()=>nrelayEncode,nsecEncode:()=>nsecEncode});var Bech32MaxSize=5e3,BECH32_REGEX=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function integerToUint8Array(o){const s=new Uint8Array(4);return s[0]=o>>24&255,s[1]=o>>16&255,s[2]=o>>8&255,s[3]=255&o,s}function decode(o){let{prefix:s,words:r}=bech32$1.decode(o,Bech32MaxSize),i=new Uint8Array(bech32$1.fromWords(r));switch(s){case"nprofile":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==a[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:bytesToHex$1(a[0][0]),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[]}}}case"nevent":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==a[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(a[2]&&32!==a[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(a[3]&&4!==a[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:bytesToHex$1(a[0][0]),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[],author:a[2]?.[0]?bytesToHex$1(a[2][0]):void 0,kind:a[3]?.[0]?parseInt(bytesToHex$1(a[3][0]),16):void 0}}}case"naddr":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!a[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==a[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!a[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==a[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:utf8Decoder.decode(a[0][0]),pubkey:bytesToHex$1(a[2][0]),kind:parseInt(bytesToHex$1(a[3][0]),16),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[]}}}case"nrelay":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nrelay");return{type:"nrelay",data:utf8Decoder.decode(a[0][0])}}case"nsec":case"npub":case"note":return{type:s,data:bytesToHex$1(i)};default:throw new Error(`unknown prefix ${s}`)}}function parseTLV(o){let s={},r=o;for(;r.length>0;){let i=r[0],a=r[1];if(!a)throw new Error(`malformed TLV ${i}`);let c=r.slice(2,2+a);if(r=r.slice(2+a),c.lengthutf8Encoder.encode(s))}))}function neventEncode(o){let s;return null!=o.kind&&(s=integerToUint8Array(o.kind)),encodeBech32("nevent",encodeTLV({0:[hexToBytes$1(o.id)],1:(o.relays||[]).map(r=>utf8Encoder.encode(r)),2:o.author?[hexToBytes$1(o.author)]:[],3:s?[new Uint8Array(s)]:[]}))}function naddrEncode(o){let s=new ArrayBuffer(4);return new DataView(s).setUint32(0,o.kind,!1),encodeBech32("naddr",encodeTLV({0:[utf8Encoder.encode(o.identifier)],1:(o.relays||[]).map(r=>utf8Encoder.encode(r)),2:[hexToBytes$1(o.pubkey)],3:[new Uint8Array(s)]}))}function nrelayEncode(o){return encodeBech32("nrelay",encodeTLV({0:[utf8Encoder.encode(o)]}))}function encodeTLV(o){let s=[];return Object.entries(o).forEach(([r,i])=>{i.forEach(a=>{let c=new Uint8Array(a.length+2);c.set([parseInt(r)],0),c.set([a.length],1),c.set(a,2),s.push(c)})}),concatBytes$1(...s)}var nip04_exports={};function encrypt$1(o,s,r){return _encrypt$.apply(this,arguments)}function _encrypt$(){return _encrypt$=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){const i=getNormalizedX(secp256k1.getSharedSecret(o,"02"+s));let a=Uint8Array.from(randomBytes$1(16)),c=utf8Encoder.encode(r),y=yield crypto.subtle.importKey("raw",i,{name:"AES-CBC"},!1,["encrypt"]),w=yield crypto.subtle.encrypt({name:"AES-CBC",iv:a},y,c);return`${base64$1.encode(new Uint8Array(w))}?iv=${base64$1.encode(new Uint8Array(a.buffer))}`}),_encrypt$.apply(this,arguments)}function decrypt$1(o,s,r){return _decrypt$.apply(this,arguments)}function _decrypt$(){return _decrypt$=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){let[i,a]=r.split("?iv="),c=getNormalizedX(secp256k1.getSharedSecret(o,"02"+s)),y=yield crypto.subtle.importKey("raw",c,{name:"AES-CBC"},!1,["decrypt"]),w=base64$1.decode(i),C=base64$1.decode(a),T=yield crypto.subtle.decrypt({name:"AES-CBC",iv:C},y,w);return utf8Decoder.decode(T)}),_decrypt$.apply(this,arguments)}function getNormalizedX(o){return o.slice(1,33)}__export(nip04_exports,{decrypt:()=>decrypt$1,encrypt:()=>encrypt$1}),typeof crypto<"u"&&!crypto.subtle&&crypto.webcrypto&&(crypto.subtle=crypto.webcrypto.subtle);var nip05_exports={};__export(nip05_exports,{NIP05_REGEX:()=>NIP05_REGEX$1,queryProfile:()=>queryProfile,searchDomain:()=>searchDomain,useFetchImplementation:()=>useFetchImplementation});var NIP05_REGEX$1=/^(?:([\w.+-]+)@)?([\w.-]+)$/,_fetch;try{_fetch=fetch}catch{}function useFetchImplementation(o){_fetch=o}function searchDomain(o){return _searchDomain.apply(this,arguments)}function _searchDomain(){return _searchDomain=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=""){try{return(yield(yield _fetch(`https://${o}/.well-known/nostr.json?name=${s}`)).json()).names}catch{return{}}}),_searchDomain.apply(this,arguments)}function queryProfile(o){return _queryProfile.apply(this,arguments)}function _queryProfile(){return _queryProfile=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){const s=o.match(NIP05_REGEX$1);if(!s)return null;const[r,i="_",a]=s;try{const c=yield _fetch(`https://${a}/.well-known/nostr.json?name=${i}`),{names:y,relays:w}=parseNIP05Result$1(yield c.json()),C=y[i];return C?{pubkey:C,relays:w?.[C]}:null}catch{return null}}),_queryProfile.apply(this,arguments)}function parseNIP05Result$1(o){const s={names:{}};for(const[r,i]of Object.entries(o.names))"string"==typeof r&&"string"==typeof i&&(s.names[r]=i);if(o.relays){s.relays={};for(const[r,i]of Object.entries(o.relays))"string"==typeof r&&Array.isArray(i)&&(s.relays[r]=i.filter(a=>"string"==typeof a))}return s}var nip06_exports={};function privateKeyFromSeedWords(o,s){let r=HDKey.fromMasterSeed(mnemonicToSeedSync(o,s)).derive("m/44'/1237'/0'/0/0").privateKey;if(!r)throw new Error("could not derive private key");return bytesToHex$1(r)}function generateSeedWords(){return generateMnemonic(wordlist)}function validateWords(o){return validateMnemonic(o,wordlist)}__export(nip06_exports,{generateSeedWords:()=>generateSeedWords,privateKeyFromSeedWords:()=>privateKeyFromSeedWords,validateWords:()=>validateWords});var nip10_exports={};function parse(o){const s={reply:void 0,root:void 0,mentions:[],profiles:[]},r=[];for(const i of o.tags)"e"===i[0]&&i[1]&&r.push(i),"p"===i[0]&&i[1]&&s.profiles.push({pubkey:i[1],relays:i[2]?[i[2]]:[]});for(let i=0;iparse});var nip13_exports={};function getPow(o){let s=0;for(let r=0;r=s)break}return i}__export(nip13_exports,{getPow:()=>getPow,minePow:()=>minePow});var nip18_exports={};function finishRepostEvent(o,s,r,i){return finishEvent({kind:6,tags:[...o.tags??[],["e",s.id,r],["p",s.pubkey]],content:""===o.content?"":JSON.stringify(s),created_at:o.created_at},i)}function getRepostedEventPointer(o){if(6!==o.kind)return;let s,r;for(let i=o.tags.length-1;i>=0&&(void 0===s||void 0===r);i--){const a=o.tags[i];a.length>=2&&("e"===a[0]&&void 0===s?s=a:"p"===a[0]&&void 0===r&&(r=a))}return void 0!==s?{id:s[1],relays:[s[2],r?.[2]].filter(i=>"string"==typeof i),author:r?.[1]}:void 0}function getRepostedEvent(o,{skipVerification:s}={}){const r=getRepostedEventPointer(o);if(void 0===r||""===o.content)return;let i;try{i=JSON.parse(o.content)}catch{return}return i.id===r.id&&(s||verifySignature(i))?i:void 0}__export(nip18_exports,{finishRepostEvent:()=>finishRepostEvent,getRepostedEvent:()=>getRepostedEvent,getRepostedEventPointer:()=>getRepostedEventPointer});var nip21_exports={};__export(nip21_exports,{NOSTR_URI_REGEX:()=>NOSTR_URI_REGEX,parse:()=>parse2,test:()=>test});var NOSTR_URI_REGEX=new RegExp(`nostr:(${BECH32_REGEX.source})`);function test(o){return"string"==typeof o&&new RegExp(`^${NOSTR_URI_REGEX.source}$`).test(o)}function parse2(o){const s=o.match(new RegExp(`^${NOSTR_URI_REGEX.source}$`));if(!s)throw new Error(`Invalid Nostr URI: ${o}`);return{uri:s[0],value:s[1],decoded:decode(s[1])}}var nip25_exports={};function finishReactionEvent(o,s,r){const i=s.tags.filter(a=>a.length>=2&&("e"===a[0]||"p"===a[0]));return finishEvent({...o,kind:7,tags:[...o.tags??[],...i,["e",s.id],["p",s.pubkey]],content:o.content??"+"},r)}function getReactedEventPointer(o){if(7!==o.kind)return;let s,r;for(let i=o.tags.length-1;i>=0&&(void 0===s||void 0===r);i--){const a=o.tags[i];a.length>=2&&("e"===a[0]&&void 0===s?s=a:"p"===a[0]&&void 0===r&&(r=a))}return void 0!==s&&void 0!==r?{id:s[1],relays:[s[2],r[2]].filter(i=>void 0!==i),author:r[1]}:void 0}__export(nip25_exports,{finishReactionEvent:()=>finishReactionEvent,getReactedEventPointer:()=>getReactedEventPointer});var nip26_exports={};function createDelegation(o,s){let r=[];(s.kind||-1)>=0&&r.push(`kind=${s.kind}`),s.until&&r.push(`created_at<${s.until}`),s.since&&r.push(`created_at>${s.since}`);let i=r.join("&");if(""===i)throw new Error("refusing to create a delegation without any conditions");let a=sha256$1(utf8Encoder.encode(`nostr:delegation:${s.pubkey}:${i}`)),c=bytesToHex$1(schnorr.sign(a,o));return{from:getPublicKey(o),to:s.pubkey,cond:i,sig:c}}function getDelegator(o){let s=o.tags.find(w=>"delegation"===w[0]&&w.length>=4);if(!s)return null;let r=s[1],i=s[2],a=s[3],c=i.split("&");for(let w=0;w"===T&&o.created_at>parseInt(S)))return null}let y=sha256$1(utf8Encoder.encode(`nostr:delegation:${o.pubkey}:${i}`));return schnorr.verify(a,y,r)?r:null}__export(nip26_exports,{createDelegation:()=>createDelegation,getDelegator:()=>getDelegator});var nip27_exports={};__export(nip27_exports,{matchAll:()=>matchAll,regex:()=>regex,replaceAll:()=>replaceAll});var regex=()=>new RegExp(`\\b${NOSTR_URI_REGEX.source}\\b`,"g");function*matchAll(o){const s=o.matchAll(regex());for(const r of s)try{const[i,a]=r;yield{uri:i,value:a,decoded:decode(a),start:r.index,end:r.index+i.length}}catch{}}function replaceAll(o,s){return o.replaceAll(regex(),(r,i)=>s({uri:r,value:i,decoded:decode(i)}))}var nip28_exports={};__export(nip28_exports,{channelCreateEvent:()=>channelCreateEvent,channelHideMessageEvent:()=>channelHideMessageEvent,channelMessageEvent:()=>channelMessageEvent,channelMetadataEvent:()=>channelMetadataEvent,channelMuteUserEvent:()=>channelMuteUserEvent});var channelCreateEvent=(o,s)=>{let r;if("object"==typeof o.content)r=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;r=o.content}return finishEvent({kind:40,tags:[...o.tags??[]],content:r,created_at:o.created_at},s)},channelMetadataEvent=(o,s)=>{let r;if("object"==typeof o.content)r=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;r=o.content}return finishEvent({kind:41,tags:[["e",o.channel_create_event_id],...o.tags??[]],content:r,created_at:o.created_at},s)},channelMessageEvent=(o,s)=>{const r=[["e",o.channel_create_event_id,o.relay_url,"root"]];return o.reply_to_channel_message_event_id&&r.push(["e",o.reply_to_channel_message_event_id,o.relay_url,"reply"]),finishEvent({kind:42,tags:[...r,...o.tags??[]],content:o.content,created_at:o.created_at},s)},channelHideMessageEvent=(o,s)=>{let r;if("object"==typeof o.content)r=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;r=o.content}return finishEvent({kind:43,tags:[["e",o.channel_message_event_id],...o.tags??[]],content:r,created_at:o.created_at},s)},channelMuteUserEvent=(o,s)=>{let r;if("object"==typeof o.content)r=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;r=o.content}return finishEvent({kind:44,tags:[["p",o.pubkey_to_mute],...o.tags??[]],content:r,created_at:o.created_at},s)},nip39_exports={},_fetch2;__export(nip39_exports,{useFetchImplementation:()=>useFetchImplementation2,validateGithub:()=>validateGithub});try{_fetch2=fetch}catch{}function useFetchImplementation2(o){_fetch2=o}function validateGithub(o,s,r){return _validateGithub.apply(this,arguments)}function _validateGithub(){return _validateGithub=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){try{return(yield(yield _fetch2(`https://gist.github.com/${s}/${r}/raw`)).text())===`Verifying that I control the following Nostr public key: ${o}`}catch{return!1}}),_validateGithub.apply(this,arguments)}var nip42_exports={};__export(nip42_exports,{authenticate:()=>authenticate});var authenticate=function(){var o=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*({challenge:s,relay:r,sign:i}){const a={kind:22242,created_at:Math.floor(Date.now()/1e3),tags:[["relay",r.url],["challenge",s]],content:""};return r.auth(yield i(a))});return function(r){return o.apply(this,arguments)}}(),nip44_exports={};__export(nip44_exports,{decrypt:()=>decrypt2,encrypt:()=>encrypt2,utils:()=>utils});var utils={v2:{maxPlaintextSize:65408,minCiphertextSize:100,maxCiphertextSize:102400,getConversationKey:(o,s)=>secp256k1.getSharedSecret(o,"02"+s).subarray(1,33),getMessageKeys(o,s){const r=hkdf(sha256$1,o,s,"nip44-v2",76);return{encryption:r.subarray(0,32),nonce:r.subarray(32,44),auth:r.subarray(44,76)}},calcPadding(o){if(!Number.isSafeInteger(o)||o<0)throw new Error("expected positive integer");if(o<=32)return 32;const s=1<=utils.v2.maxPlaintextSize)throw new Error("invalid plaintext length: must be between 1b and 64KB");const i=utils.v2.calcPadding(r),a=new Uint8Array(i-r),c=new Uint8Array(2);return new DataView(c.buffer).setUint16(0,r),concatBytes$1(c,s,a)},unpad(o){const s=new DataView(o.buffer).getUint16(0),r=o.subarray(2,2+s);if(0===s||r.length!==s||o.length!==2+utils.v2.calcPadding(s))throw new Error("invalid padding");return utf8Decoder.decode(r)}}};function encrypt2(o,s,r={}){const i=r.version??2;if(2!==i)throw new Error("unknown encryption version "+i);const a=r.salt??randomBytes$1(32);ensureBytes(a,32);const c=utils.v2.getMessageKeys(o,a),y=utils.v2.pad(s),w=chacha20(c.encryption,c.nonce,y),C=hmac(sha256$1,c.auth,w);return base64$1.encode(concatBytes$1(new Uint8Array([i]),a,w,C))}function decrypt2(o,s){const r=utils.v2;ensureBytes(o,32);const i=s.length;if(i=r.maxCiphertextSize)throw new Error("invalid ciphertext length: "+i);if("#"===s[0])throw new Error("unknown encryption version");let a;try{a=base64$1.decode(s)}catch(A){throw new Error("invalid base64: "+A.message)}const c=a.subarray(0,1)[0];if(2!==c)throw new Error("unknown encryption version "+c);const y=a.subarray(1,33),w=a.subarray(33,-32),C=a.subarray(-32),T=r.getMessageKeys(o,y);if(!equalBytes(hmac(sha256$1,T.auth,w),C))throw new Error("invalid MAC");const S=chacha20(T.encryption,T.nonce,w);return r.unpad(S)}var nip47_exports={};function parseConnectionString(o){const{pathname:s,searchParams:r}=new URL(o),i=s,a=r.get("relay"),c=r.get("secret");if(!i||!a||!c)throw new Error("invalid connection string");return{pubkey:i,relay:a,secret:c}}function makeNwcRequestEvent(o){return _makeNwcRequestEvent.apply(this,arguments)}function _makeNwcRequestEvent(){return _makeNwcRequestEvent=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*({pubkey:o,secret:s,invoice:r}){const i={method:"pay_invoice",params:{invoice:r}},a=yield encrypt$1(s,o,JSON.stringify(i));return finishEvent({kind:23194,created_at:Math.round(Date.now()/1e3),content:a,tags:[["p",o]]},s)}),_makeNwcRequestEvent.apply(this,arguments)}__export(nip47_exports,{makeNwcRequestEvent:()=>makeNwcRequestEvent,parseConnectionString:()=>parseConnectionString});var nip57_exports={},_fetch3;__export(nip57_exports,{getZapEndpoint:()=>getZapEndpoint,makeZapReceipt:()=>makeZapReceipt,makeZapRequest:()=>makeZapRequest,useFetchImplementation:()=>useFetchImplementation3,validateZapRequest:()=>validateZapRequest});try{_fetch3=fetch}catch{}function useFetchImplementation3(o){_fetch3=o}function getZapEndpoint(o){return _getZapEndpoint.apply(this,arguments)}function _getZapEndpoint(){return _getZapEndpoint=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){try{let s="",{lud06:r,lud16:i}=JSON.parse(o.content);if(r){let{words:y}=bech32$1.decode(r,1e3),w=bech32$1.fromWords(y);s=utf8Decoder.decode(w)}else{if(!i)return null;{let[y,w]=i.split("@");s=`https://${w}/.well-known/lnurlp/${y}`}}let a=yield _fetch3(s),c=yield a.json();if(c.allowsNostr&&c.nostrPubkey)return c.callback}catch{}return null}),_getZapEndpoint.apply(this,arguments)}function makeZapRequest({profile:o,event:s,amount:r,relays:i,comment:a=""}){if(!r)throw new Error("amount not given");if(!o)throw new Error("profile not given");let c={kind:9734,created_at:Math.round(Date.now()/1e3),content:a,tags:[["p",o],["amount",r.toString()],["relays",...i]]};return s&&c.tags.push(["e",s]),c}function validateZapRequest(o){let s;try{s=JSON.parse(o)}catch{return"Invalid zap request JSON."}if(!validateEvent(s))return"Zap request is not a valid Nostr event.";if(!verifySignature(s))return"Invalid signature on zap request.";let r=s.tags.find(([a,c])=>"p"===a&&c);if(!r)return"Zap request doesn't have a 'p' tag.";if(!r[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let i=s.tags.find(([a,c])=>"e"===a&&c);return i&&!i[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":s.tags.find(([a,c])=>"relays"===a&&c)?null:"Zap request doesn't have a 'relays' tag."}function makeZapReceipt({zapRequest:o,preimage:s,bolt11:r,paidAt:i}){let a=JSON.parse(o).tags.filter(([y])=>"e"===y||"p"===y||"a"===y),c={kind:9735,created_at:Math.round(i.getTime()/1e3),content:"",tags:[...a,["bolt11",r],["description",o]]};return s&&c.tags.push(["preimage",s]),c}var nip98_exports={};__export(nip98_exports,{getToken:()=>getToken,unpackEventFromToken:()=>unpackEventFromToken,validateEvent:()=>validateEvent2,validateToken:()=>validateToken});var _authorizationScheme="Nostr ";function getToken(o,s,r){return _getToken.apply(this,arguments)}function _getToken(){return _getToken=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r,i=!1){if(!o||!s)throw new Error("Missing loginUrl or httpMethod");const a=getBlankEvent(27235);a.tags=[["u",o],["method",s]],a.created_at=Math.round((new Date).getTime()/1e3);const c=yield r(a);return(i?_authorizationScheme:"")+base64$1.encode(utf8Encoder.encode(JSON.stringify(c)))}),_getToken.apply(this,arguments)}function validateToken(o,s,r){return _validateToken.apply(this,arguments)}function _validateToken(){return _validateToken=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){const i=yield unpackEventFromToken(o).catch(a=>{throw a});return yield validateEvent2(i,s,r).catch(a=>{throw a})}),_validateToken.apply(this,arguments)}function unpackEventFromToken(o){return _unpackEventFromToken.apply(this,arguments)}function _unpackEventFromToken(){return _unpackEventFromToken=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){if(!o)throw new Error("Missing token");o=o.replace(_authorizationScheme,"");const s=utf8Decoder.decode(base64$1.decode(o));if(!s||0===s.length||!s.startsWith("{"))throw new Error("Invalid token");return JSON.parse(s)}),_unpackEventFromToken.apply(this,arguments)}function validateEvent2(o,s,r){return _validateEvent.apply(this,arguments)}function _validateEvent(){return _validateEvent=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){if(!o)throw new Error("Invalid nostr event");if(!verifySignature(o))throw new Error("Invalid nostr event, signature invalid");if(27235!==o.kind)throw new Error("Invalid nostr event, kind invalid");if(!o.created_at)throw new Error("Invalid nostr event, created_at invalid");if(Math.round((new Date).getTime()/1e3)-o.created_at>60)throw new Error("Invalid nostr event, expired");const i=o.tags.find(c=>"u"===c[0]);if(1!==i?.length&&i?.[1]!==s)throw new Error("Invalid nostr event, url tag invalid");const a=o.tags.find(c=>"method"===c[0]);if(1!==a?.length&&a?.[1].toLowerCase()!==r.toLowerCase())throw new Error("Invalid nostr event, method tag invalid");return!0}),_validateEvent.apply(this,arguments)}var browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var o=1e3,s=60*o,r=60*s,i=24*r,a=7*i;function y(w,C,T,S){var A=C>=1.5*T;return Math.round(w/T)+" "+S+(A?"s":"")}return ms=function(w,C){C=C||{};var S,A,T=typeof w;if("string"===T&&w.length>0)return function(S){if(!((S=String(S)).length>100)){var A=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(S);if(A){var I=parseFloat(A[1]);switch((A[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*I;case"weeks":case"week":case"w":return I*a;case"days":case"day":case"d":return I*i;case"hours":case"hour":case"hrs":case"hr":case"h":return I*r;case"minutes":case"minute":case"mins":case"min":case"m":return I*s;case"seconds":case"second":case"secs":case"sec":case"s":return I*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return I;default:return}}}}(w);if("number"===T&&isFinite(w))return C.long?(S=w,(A=Math.abs(S))>=i?y(S,A,i,"day"):A>=r?y(S,A,r,"hour"):A>=s?y(S,A,s,"minute"):A>=o?y(S,A,o,"second"):S+" ms"):function(S){var A=Math.abs(S);return A>=i?Math.round(S/i)+"d":A>=r?Math.round(S/r)+"h":A>=s?Math.round(S/s)+"m":A>=o?Math.round(S/o)+"s":S+"ms"}(w);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(w))}}function setup(o){function s(a){let c,y,w,C=null;function T(...S){if(!T.enabled)return;const A=T,I=Number(new Date);A.diff=I-(c||I),A.prev=c,A.curr=I,c=I,S[0]=s.coerce(S[0]),"string"!=typeof S[0]&&S.unshift("%O");let K=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(Z,ne)=>{if("%%"===Z)return"%";K++;const be=s.formatters[ne];return"function"==typeof be&&(Z=be.call(A,S[K]),S.splice(K,1),K--),Z}),s.formatArgs.call(A,S),(A.log||s.log).apply(A,S)}return T.namespace=a,T.useColors=s.useColors(),T.color=s.selectColor(a),T.extend=r,T.destroy=s.destroy,Object.defineProperty(T,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==C?C:(y!==s.namespaces&&(y=s.namespaces,w=s.enabled(a)),w),set:S=>{C=S}}),"function"==typeof s.init&&s.init(T),T}function r(a,c){const y=s(this.namespace+(void 0===c?":":c)+a);return y.log=this.log,y}function i(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}return s.debug=s,s.default=s,s.coerce=function(a){return a instanceof Error?a.stack||a.message:a},s.disable=function(){const a=[...s.names.map(i),...s.skips.map(i).map(c=>"-"+c)].join(",");return s.enable(""),a},s.enable=function(a){let c;s.save(a),s.namespaces=a,s.names=[],s.skips=[];const y=("string"==typeof a?a:"").split(/[\s,]+/),w=y.length;for(c=0;c{s[a]=o[a]}),s.names=[],s.skips=[],s.formatters={},s.selectColor=function(a){let c=0;for(let y=0;y{"%%"!==w&&(c++,"%c"===w&&(y=c))}),i.splice(y,0,a)},s.save=function(i){try{i?s.storage.setItem("debug",i):s.storage.removeItem("debug")}catch{}},s.load=function(){let i;try{i=s.storage.getItem("debug")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i},s.useColors=function(){return!(!(typeof window<"u"&&window.process)||"renderer"!==window.process.type&&!window.process.__nwjs)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},s.storage=function(){try{return localStorage}catch{}}(),s.destroy=(()=>{let i=!1;return()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),s.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],s.log=console.debug||console.log||(()=>{}),o.exports=common(s);const{formatters:r}=o.exports;r.j=function(i){try{return JSON.stringify(i)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}}(browser,browser.exports);var browserExports=browser.exports,debug3=getDefaultExportFromCjs(browserExports),dist={},LRUCache$1={},LRUCacheNode$1={};Object.defineProperty(LRUCacheNode$1,"__esModule",{value:!0}),LRUCacheNode$1.LRUCacheNode=void 0;class LRUCacheNode{constructor(s,r,i){const{entryExpirationTimeInMS:a=null,next:c=null,prev:y=null,onEntryEvicted:w,onEntryMarkedAsMostRecentlyUsed:C,clone:T,cloneFn:S}=i??{};if("number"==typeof a&&(a<=0||Number.isNaN(a)))throw new Error("entryExpirationTimeInMS must either be null (no expiry) or greater than 0");this.clone=null!=T&&T,this.cloneFn=S??this.defaultClone,this.key=s,this.internalValue=this.clone?this.cloneFn(r):r,this.created=Date.now(),this.entryExpirationTimeInMS=a,this.next=c,this.prev=y,this.onEntryEvicted=w,this.onEntryMarkedAsMostRecentlyUsed=C}get value(){return this.clone?this.cloneFn(this.internalValue):this.internalValue}get isExpired(){return"number"==typeof this.entryExpirationTimeInMS&&Date.now()-this.created>this.entryExpirationTimeInMS}invokeOnEvicted(){if(this.onEntryEvicted){const{key:s,value:r,isExpired:i}=this;this.onEntryEvicted({key:s,value:r,isExpired:i})}}invokeOnEntryMarkedAsMostRecentlyUsed(){if(this.onEntryMarkedAsMostRecentlyUsed){const{key:s,value:r}=this;this.onEntryMarkedAsMostRecentlyUsed({key:s,value:r})}}defaultClone(s){return"boolean"==typeof s||"string"==typeof s||"number"==typeof s?s:JSON.parse(JSON.stringify(s))}}LRUCacheNode$1.LRUCacheNode=LRUCacheNode,Object.defineProperty(LRUCache$1,"__esModule",{value:!0}),LRUCache$1.LRUCache=void 0;const LRUCacheNode_1=LRUCacheNode$1;class LRUCache{constructor(s){this.lookupTable=new Map,this.head=null,this.tail=null;const{maxSize:r=25,entryExpirationTimeInMS:i=null,onEntryEvicted:a,onEntryMarkedAsMostRecentlyUsed:c,cloneFn:y,clone:w}=s??{};if(Number.isNaN(r)||r<=0)throw new Error("maxSize must be greater than 0.");if("number"==typeof i&&(i<=0||Number.isNaN(i)))throw new Error("entryExpirationTimeInMS must either be null (no expiry) or greater than 0");this.maxSizeInternal=r,this.entryExpirationTimeInMS=i,this.onEntryEvicted=a,this.onEntryMarkedAsMostRecentlyUsed=c,this.clone=w,this.cloneFn=y}get size(){return this.cleanCache(),this.lookupTable.size}get remainingSize(){return this.maxSizeInternal-this.size}get newest(){return this.head?this.head.isExpired?(this.removeNodeFromListAndLookupTable(this.head),this.newest):this.mapNodeToEntry(this.head):null}get oldest(){return this.tail?this.tail.isExpired?(this.removeNodeFromListAndLookupTable(this.tail),this.oldest):this.mapNodeToEntry(this.tail):null}get maxSize(){return this.maxSizeInternal}set maxSize(s){if(Number.isNaN(s)||s<=0)throw new Error("maxSize must be greater than 0.");this.maxSizeInternal=s,this.enforceSizeLimit()}set(s,r,i){const a=this.lookupTable.get(s);a&&this.removeNodeFromListAndLookupTable(a);const c=new LRUCacheNode_1.LRUCacheNode(s,r,{entryExpirationTimeInMS:this.entryExpirationTimeInMS,onEntryEvicted:this.onEntryEvicted,onEntryMarkedAsMostRecentlyUsed:this.onEntryMarkedAsMostRecentlyUsed,clone:this.clone,cloneFn:this.cloneFn,...i});return this.setNodeAsHead(c),this.lookupTable.set(s,c),this.enforceSizeLimit(),this}get(s){const r=this.lookupTable.get(s);return r?r.isExpired?(this.removeNodeFromListAndLookupTable(r),null):(this.setNodeAsHead(r),r.value):null}peek(s){const r=this.lookupTable.get(s);return r?r.isExpired?(this.removeNodeFromListAndLookupTable(r),null):r.value:null}delete(s){const r=this.lookupTable.get(s);return!!r&&this.removeNodeFromListAndLookupTable(r)}has(s){const r=this.lookupTable.get(s);return!(!r||r.isExpired&&(this.removeNodeFromListAndLookupTable(r),1))}clear(){this.head=null,this.tail=null,this.lookupTable.clear()}find(s){let r=this.head;for(;r;){if(r.isExpired){const a=r.next;this.removeNodeFromListAndLookupTable(r),r=a;continue}const i=this.mapNodeToEntry(r);if(s(i))return this.setNodeAsHead(r),i;r=r.next}return null}forEach(s){let r=this.head,i=0;for(;r;)if(r.isExpired){const a=r.next;this.removeNodeFromListAndLookupTable(r),r=a}else s(r.value,r.key,i),r=r.next,i++}*values(){let s=this.head;for(;s;)if(s.isExpired){const r=s.next;this.removeNodeFromListAndLookupTable(s),s=r}else yield s.value,s=s.next}*keys(){let s=this.head;for(;s;)if(s.isExpired){const r=s.next;this.removeNodeFromListAndLookupTable(s),s=r}else yield s.key,s=s.next}*entries(){let s=this.head;for(;s;)if(s.isExpired){const r=s.next;this.removeNodeFromListAndLookupTable(s),s=r}else yield this.mapNodeToEntry(s),s=s.next}*[Symbol.iterator](){let s=this.head;for(;s;)if(s.isExpired){const r=s.next;this.removeNodeFromListAndLookupTable(s),s=r}else yield this.mapNodeToEntry(s),s=s.next}enforceSizeLimit(){let s=this.tail;for(;null!==s&&this.size>this.maxSizeInternal;){const r=s.prev;this.removeNodeFromListAndLookupTable(s),s=r}}mapNodeToEntry({key:s,value:r}){return{key:s,value:r}}setNodeAsHead(s){this.removeNodeFromList(s),this.head?(s.next=this.head,this.head.prev=s,this.head=s):(this.head=s,this.tail=s),s.invokeOnEntryMarkedAsMostRecentlyUsed()}removeNodeFromList(s){null!==s.prev&&(s.prev.next=s.next),null!==s.next&&(s.next.prev=s.prev),this.head===s&&(this.head=s.next),this.tail===s&&(this.tail=s.prev),s.next=null,s.prev=null}removeNodeFromListAndLookupTable(s){return s.invokeOnEvicted(),this.removeNodeFromList(s),this.lookupTable.delete(s.key)}cleanCache(){if(!this.entryExpirationTimeInMS)return;const s=[];for(const r of this.lookupTable.values())r.isExpired&&s.push(r);s.forEach(r=>this.removeNodeFromListAndLookupTable(r))}}LRUCache$1.LRUCache=LRUCache,function(o){var s=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(i,a,c,y){void 0===y&&(y=c);var w=Object.getOwnPropertyDescriptor(a,c);w&&!("get"in w?!a.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(i,y,w)}:function(i,a,c,y){void 0===y&&(y=c),i[y]=a[c]}),r=commonjsGlobal&&commonjsGlobal.__exportStar||function(i,a){for(var c in i)"default"===c||Object.prototype.hasOwnProperty.call(a,c)||s(a,i,c)};Object.defineProperty(o,"__esModule",{value:!0}),r(LRUCache$1,o)}(dist);var lib={};(function(o){function s(Ce){if(!Number.isSafeInteger(Ce))throw new Error(`Wrong integer: ${Ce}`)}function r(...Ce){const le=(ae,Ie)=>$e=>ae(Ie($e));return{encode:Array.from(Ce).reverse().reduce((ae,Ie)=>ae?le(ae,Ie.encode):Ie.encode,void 0),decode:Ce.reduce((ae,Ie)=>ae?le(ae,Ie.decode):Ie.decode,void 0)}}function i(Ce){return{encode:le=>{if(!Array.isArray(le)||le.length&&"number"!=typeof le[0])throw new Error("alphabet.encode input should be an array of numbers");return le.map(ae=>{if(s(ae),ae<0||ae>=Ce.length)throw new Error(`Digit index outside alphabet: ${ae} (alphabet: ${Ce.length})`);return Ce[ae]})},decode:le=>{if(!Array.isArray(le)||le.length&&"string"!=typeof le[0])throw new Error("alphabet.decode input should be array of strings");return le.map(ae=>{if("string"!=typeof ae)throw new Error(`alphabet.decode: not string element=${ae}`);const Ie=Ce.indexOf(ae);if(-1===Ie)throw new Error(`Unknown letter: "${ae}". Allowed: ${Ce}`);return Ie})}}}function a(Ce=""){if("string"!=typeof Ce)throw new Error("join separator should be string");return{encode:le=>{if(!Array.isArray(le)||le.length&&"string"!=typeof le[0])throw new Error("join.encode input should be array of strings");for(let ae of le)if("string"!=typeof ae)throw new Error(`join.encode: non-string input=${ae}`);return le.join(Ce)},decode:le=>{if("string"!=typeof le)throw new Error("join.decode input should be string");return le.split(Ce)}}}function c(Ce,le="="){if(s(Ce),"string"!=typeof le)throw new Error("padding chr should be string");return{encode(ae){if(!Array.isArray(ae)||ae.length&&"string"!=typeof ae[0])throw new Error("padding.encode input should be array of strings");for(let Ie of ae)if("string"!=typeof Ie)throw new Error(`padding.encode: non-string input=${Ie}`);for(;ae.length*Ce%8;)ae.push(le);return ae},decode(ae){if(!Array.isArray(ae)||ae.length&&"string"!=typeof ae[0])throw new Error("padding.encode input should be array of strings");for(let $e of ae)if("string"!=typeof $e)throw new Error(`padding.decode: non-string input=${$e}`);let Ie=ae.length;if(Ie*Ce%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;Ie>0&&ae[Ie-1]===le;Ie--)if(!((Ie-1)*Ce%8))throw new Error("Invalid padding: string has too much padding");return ae.slice(0,Ie)}}}function y(Ce){if("function"!=typeof Ce)throw new Error("normalize fn should be function");return{encode:le=>le,decode:le=>Ce(le)}}function w(Ce,le,ae){if(le<2)throw new Error(`convertRadix: wrong from=${le}, base cannot be less than 2`);if(ae<2)throw new Error(`convertRadix: wrong to=${ae}, base cannot be less than 2`);if(!Array.isArray(Ce))throw new Error("convertRadix: data should be array");if(!Ce.length)return[];let Ie=0;const $e=[],st=Array.from(Ce);for(st.forEach(ht=>{if(s(ht),ht<0||ht>=le)throw new Error(`Wrong integer: ${ht}`)});;){let ht=0,vt=!0;for(let at=Ie;atle?C(le,Ce%le):Ce,T=(Ce,le)=>Ce+(le-C(Ce,le));function S(Ce,le,ae,Ie){if(!Array.isArray(Ce))throw new Error("convertRadix2: data should be array");if(le<=0||le>32)throw new Error(`convertRadix2: wrong from=${le}`);if(ae<=0||ae>32)throw new Error(`convertRadix2: wrong to=${ae}`);if(T(le,ae)>32)throw new Error(`convertRadix2: carry overflow from=${le} to=${ae} carryBits=${T(le,ae)}`);let $e=0,st=0;const ht=2**ae-1,vt=[];for(const at of Ce){if(s(at),at>=2**le)throw new Error(`convertRadix2: invalid data word=${at} from=${le}`);if($e=$e<32)throw new Error(`convertRadix2: carry overflow pos=${st} from=${le}`);for(st+=le;st>=ae;st-=ae)vt.push(($e>>st-ae&ht)>>>0);$e&=2**st-1}if($e=$e<=le)throw new Error("Excess padding");if(!Ie&&$e)throw new Error(`Non-zero padding: ${$e}`);return Ie&&st>0&&vt.push($e>>>0),vt}function A(Ce){return s(Ce),{encode:le=>{if(!(le instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return w(Array.from(le),256,Ce)},decode:le=>{if(!Array.isArray(le)||le.length&&"number"!=typeof le[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(w(le,Ce,256))}}}function I(Ce,le=!1){if(s(Ce),Ce<=0||Ce>32)throw new Error("radix2: bits should be in (0..32]");if(T(8,Ce)>32||T(Ce,8)>32)throw new Error("radix2: carry overflow");return{encode:ae=>{if(!(ae instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return S(Array.from(ae),8,Ce,!le)},decode:ae=>{if(!Array.isArray(ae)||ae.length&&"number"!=typeof ae[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(S(ae,Ce,8,le))}}}function N(Ce){if("function"!=typeof Ce)throw new Error("unsafeWrapper fn should be function");return function(...le){try{return Ce.apply(null,le)}catch{}}}function K(Ce,le){if(s(Ce),"function"!=typeof le)throw new Error("checksum fn should be function");return{encode(ae){if(!(ae instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const Ie=le(ae).slice(0,Ce),$e=new Uint8Array(ae.length+Ce);return $e.set(ae),$e.set(Ie,ae.length),$e},decode(ae){if(!(ae instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const Ie=ae.slice(0,-Ce),$e=le(Ie).slice(0,Ce),st=ae.slice(-Ce);for(let ht=0;htCe.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),o.base64=r(I(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),c(6),a("")),o.base64url=r(I(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),c(6),a(""));const Z=Ce=>r(A(58),i(Ce),a(""));o.base58=Z("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),o.base58flickr=Z("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),o.base58xrp=Z("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const ne=[0,2,3,5,6,7,9,10,11];o.base58xmr={encode(Ce){let le="";for(let ae=0;aer(K(4,le=>Ce(Ce(le))),o.base58);const be=r(i("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),a("")),me=[996825010,642813549,513874426,1027748829,705979059];function pe(Ce){const le=Ce>>25;let ae=(33554431&Ce)<<5;for(let Ie=0;Ie>Ie&1)&&(ae^=me[Ie]);return ae}function Te(Ce,le,ae=1){const Ie=Ce.length;let $e=1;for(let st=0;st126)throw new Error(`Invalid prefix (${Ce})`);$e=pe($e)^ht>>5}$e=pe($e);for(let st=0;stat)throw new TypeError(`Wrong string length: ${vt.length} (${vt}). Expected (8..${at})`);const Xt=vt.toLowerCase();if(vt!==Xt&&vt!==vt.toUpperCase())throw new Error("String must be lowercase or uppercase");const ln=(vt=Xt).lastIndexOf("1");if(0===ln||-1===ln)throw new Error('Letter "1" must be present between prefix and data only');const yn=vt.slice(0,ln),$n=vt.slice(ln+1);if($n.length<6)throw new Error("Data must be at least 6 characters long");const bn=be.decode($n).slice(0,-6),Qe=Te(yn,bn,le);if(!$n.endsWith(Qe))throw new Error(`Invalid checksum in ${vt}: expected "${Qe}"`);return{prefix:yn,words:bn}}return{encode:function(vt,at,Xt=90){if("string"!=typeof vt)throw new Error("bech32.encode prefix should be string, not "+typeof vt);if(!Array.isArray(at)||at.length&&"number"!=typeof at[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof at);const ln=vt.length+7+at.length;if(!1!==Xt&&ln>Xt)throw new TypeError(`Length ${ln} exceeds limit ${Xt}`);return`${vt=vt.toLowerCase()}1${be.encode(at)}${Te(vt,at,le)}`},decode:ht,decodeToBytes:function(vt){const{prefix:at,words:Xt}=ht(vt,!1);return{prefix:at,words:Xt,bytes:Ie(Xt)}},decodeUnsafe:N(ht),fromWords:Ie,fromWordsUnsafe:st,toWords:$e}}o.bech32=xe("bech32"),o.bech32m=xe("bech32m"),o.utf8={encode:Ce=>(new TextDecoder).decode(Ce),decode:Ce=>(new TextEncoder).encode(Ce)},o.hex=r(I(4),i("0123456789abcdef"),a(""),y(Ce=>{if("string"!=typeof Ce||Ce.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof Ce} with length ${Ce.length}`);return Ce.toLowerCase()}));const Re={utf8:o.utf8,hex:o.hex,base16:o.base16,base32:o.base32,base64:o.base64,base64url:o.base64url,base58:o.base58,base58xmr:o.base58xmr},Me=`Invalid encoding type. Available types: ${Object.keys(Re).join(", ")}`;o.bytesToString=(Ce,le)=>{if("string"!=typeof Ce||!Re.hasOwnProperty(Ce))throw new TypeError(Me);if(!(le instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return Re[Ce].encode(le)},o.str=o.bytesToString,o.stringToBytes=(Ce,le)=>{if(!Re.hasOwnProperty(Ce))throw new TypeError(Me);if("string"!=typeof le)throw new TypeError("stringToBytes() expects string");return Re[Ce].decode(le)},o.bytes=o.stringToBytes})(lib),BigInt(1e3),BigInt(1e6),BigInt(1e9),BigInt(1e12),BigInt("2100000000000000000"),BigInt(1e11);const TAGCODES={payment_hash:1,payment_secret:16,description:13,payee:19,description_hash:23,expiry:6,min_final_cltv_expiry:24,fallback_address:9,route_hint:3,feature_bits:5,metadata:27};for(let o=0,s=Object.keys(TAGCODES);othis.handleNotice(s))}initiateAuth(o={limit:1}){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.debug("Initiating authentication");const r=s.relay.sub([o],{id:"auth-test"});r.on("eose",()=>{r.unsub(),s._status=1,s.ndkRelay.emit("ready"),s.debug("Authentication not required"),r.unsub()}),s.debug("Authentication request started")})()}connect(){var o=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=()=>{o.updateConnectionStats.connected(),o.ndkRelay.authRequired?(o._status=6,o.ndkRelay.emit("connect"),o.initiateAuth()):(o._status=1,o.ndkRelay.emit("connect"),o.ndkRelay.emit("ready"))},r=()=>{o.updateConnectionStats.disconnected(),1===o._status&&(o._status=3,o.handleReconnection()),o.ndkRelay.emit("disconnect")},i=function(){var a=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c){o.debug("Relay requested authentication",{havePolicy:!!o.ndkRelay.authPolicy}),o.ndkRelay.authPolicy?7!==o._status&&(o._status=7,yield o.ndkRelay.authPolicy(o.ndkRelay,c),7===o._status&&(o.debug("Authentication policy finished"),o._status=1,o.ndkRelay.emit("ready"))):yield o.ndkRelay.emit("auth",c)});return function(y){return a.apply(this,arguments)}}();try{o.updateConnectionStats.attempt(),o._status=0,o.relay.off("connect",s),o.relay.off("disconnect",r),o.relay.on("connect",s),o.relay.on("disconnect",r),o.relay.on("auth",i),yield o.relay.connect()}catch(a){throw o.debug("Failed to connect",a),o._status=3,a}})()}disconnect(){this._status=2,this.relay.close()}get status(){return this._status}isAvailable(){return 1===this._status}isFlapping(){const o=this._connectionStats.durations;if(o.length%3!=0)return!1;const s=o.reduce((i,a)=>i+a,0)/o.length,r=o.map(i=>Math.pow(i-s,2)).reduce((i,a)=>i+a,0)/o.length;return Math.sqrt(r)<1e3}handleNotice(o){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){(o.includes("oo many")||o.includes("aximum"))&&(s.disconnect(),setTimeout(()=>s.connect(),2e3),s.debug(s.relay.url,"Relay complaining?",o)),s.ndkRelay.emit("notice",s,o)})()}handleReconnection(o=0){if(this.isFlapping())return this.ndkRelay.emit("flapping",this,this._connectionStats),void(this._status=5);const s=this.connectedAt?Math.max(0,6e4-(Date.now()-this.connectedAt)):0;setTimeout(()=>{this._status=4,this.connect().then(()=>{this.debug("Reconnected")}).catch(r=>{this.debug("Reconnect failed",r),o<5?setTimeout(()=>{this.handleReconnection(o+1)},6e4):this.debug("Reconnect failed after 5 attempts")})},s)}updateConnectionStats={connected:()=>{this._connectionStats.success++,this._connectionStats.connectedAt=Date.now()},disconnected:()=>{this._connectionStats.connectedAt&&(this._connectionStats.durations.push(Date.now()-this._connectionStats.connectedAt),this._connectionStats.durations.length>100&&this._connectionStats.durations.shift()),this._connectionStats.connectedAt=void 0},attempt:()=>{this._connectionStats.attempts++}};get connectionStats(){return this._connectionStats}},NDKRelayPublisher=class{ndkRelay;constructor(o){this.ndkRelay=o}publish(o,s=2500){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=()=>new Promise((C,T)=>{try{r.publishEvent(o,s).then(S=>C(S)).catch(S=>T(S))}catch(S){T(S)}}),a=new Promise((C,T)=>{setTimeout(()=>T(new Error("Timeout")),s)}),c=()=>{i().then(C=>y(C)).catch(C=>w(C))};let y,w;return 1===r.ndkRelay.status?Promise.race([i(),a]):Promise.race([new Promise((C,T)=>{y=C,w=T,r.ndkRelay.once("connect",c)}),a]).finally(()=>{r.ndkRelay.removeListener("connect",c)})})()}publishEvent(o,s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=yield o.toNostrEvent(),a=r.ndkRelay.connectivity.relay.publish(i);let c;const y=new Promise((C,T)=>{a.then(()=>{clearTimeout(c),r.ndkRelay.emit("published",o),C(!0)}).catch(S=>{clearTimeout(c),r.ndkRelay.debug("Publish failed",S,o.id),r.ndkRelay.emit("publish:failed",o,S),T(S)})});if(!s||o.isEphemeral())return y;const w=new Promise((C,T)=>{c=setTimeout(()=>{r.ndkRelay.debug("Publish timed out",o.rawEvent()),r.ndkRelay.emit("publish:failed",o,"Timeout"),T(new Error("Publish operation timed out"))},s)});return Promise.race([y,w])})()}auth(o){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.ndkRelay.connectivity.relay.auth(o.rawEvent())})()}};function calculateGroupableId(o){const s=[];for(const r of o){if(r.since||r.until)return null;const i=Object.keys(r||{}).sort().join("-");s.push(i)}return s.join("|")}function mergeFilters(o){const s={};return o.forEach(r=>{Object.entries(r).forEach(([i,a])=>{s[i]=Array.isArray(a)?void 0===s[i]?[...a]:Array.from(new Set([...s[i],...a])):a})}),s}var MAX_SUBID_LENGTH=20;function queryFullyFilled(o){return!(!filterIncludesIds(o.filter)||!resultHasAllRequestedIds(o))}function compareFilter(o,s){if(Object.keys(o).length!==Object.keys(s).length)return!1;for(const[r,i]of Object.entries(o)){const a=s[r];if(!a)return!1;if(Array.isArray(i)&&Array.isArray(a)){const c=i;for(const y of a)if(!c.includes(y))return!1}else if(a!==i)return!1}return!0}function filterIncludesIds(o){return!!o.ids}function resultHasAllRequestedIds(o){const s=o.filter.ids;return!!s&&s.length===o.eventFirstSeen.size}function generateSubId(o,s){const r=o.map(w=>w.subId).filter(Boolean),i=[],a=new Set,c=new Set;if(r.length>0)i.push(Array.from(new Set(r)).join(","));else{for(const w of s)for(const C of Object.keys(w))"kinds"===C?w.kinds?.forEach(T=>c.add(T)):a.add(C);c.size>0&&i.push("kinds:"+Array.from(c).join(",")),a.size>0&&i.push(Array.from(a).join(","))}let y=i.join("-");return y.length>MAX_SUBID_LENGTH&&(y=y.substring(0,MAX_SUBID_LENGTH)),1!==r.length&&(y+="-"+Math.floor(999*Math.random()).toString()),y}function filterFromId(o){let s;if(o.match(NIP33_A_REGEX)){const[r,i,a]=o.split(":"),c={authors:[i],kinds:[parseInt(r)]};return a&&(c["#d"]=[a]),c}try{switch(s=nip19_exports.decode(o),s.type){case"nevent":return{ids:[s.data.id]};case"note":return{ids:[s.data]};case"naddr":return{authors:[s.data.pubkey],"#d":[s.data.identifier],kinds:[s.data.kind]}}}catch{}return{ids:[o]}}function isNip33AValue(o){return null!==o.match(NIP33_A_REGEX)}var NIP33_A_REGEX=/^(\d+):([0-9A-Fa-f]+)(?::(.*))?$/;function relaysFromBech32(o){try{const s=nip19_exports.decode(o);if(["naddr","nevent"].includes(s?.type)){const r=s.data;if(r?.relays)return r.relays.map(i=>new NDKRelay(i))}}catch{}return[]}var NDKGroupedSubscriptions=class extends lib$1.EventEmitter{subscriptions;req;debug;constructor(o,s){super(),this.subscriptions=o,this.debug=s||this.subscriptions[0].subscription.debug.extend("grouped");for(const r of o)this.handleSubscriptionClosure(r)}addSubscription(o){this.subscriptions.push(o),this.handleSubscriptionClosure(o)}eventReceived(o){for(const s of this.subscriptions)s.eventReceived(o)}eoseReceived(o){Array.from(this.subscriptions).forEach(function(){var s=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(r){r.subscription.eoseReceived(o)});return function(r){return s.apply(this,arguments)}}())}handleSubscriptionClosure(o){o.subscription.on("close",()=>{const s=this.subscriptions.findIndex(r=>r.subscription===o.subscription);this.subscriptions.splice(s,1),this.subscriptions.length<=0&&this.emit("close")})}map(o){return this.subscriptions.map(o)}[Symbol.iterator](){let o=0;const s=this.subscriptions;return{next:()=>omatchFilter(r,s))}};function findMatchingActiveSubscriptions(o,s){if(o.length!==s.length)return!1;for(let r=0;r{this.delayedItems.get(r)&&this.delayedItems.delete(r)}));let y=this.executionTimeoutsByGroupId.get(r);y&&"at-most"!==o.opts.groupableDelayType||(y=setTimeout(()=>{this.executeGroup(r,o)},o.opts.groupableDelay),this.executionTimeoutsByGroupId.set(r,y)),this.delayedTimers.has(r)?this.delayedTimers.get(r).push(y):this.delayedTimers.set(r,[y])}executeGroup(o,s){const r=this.delayedItems.get(o);this.delayedItems.delete(o);const i=this.delayedTimers.get(o);if(this.delayedTimers.delete(o),i)for(const a of i)clearTimeout(a);if(r){const a=r.subscriptions[0].filters.length,c=[];for(let y=0;yC.filters[y]);c.push(mergeFilters(w))}this.executeSubscriptions(o,r,c)}}executeSubscriptionsWhenConnected(o,s,r){const i=()=>{this.debug("new relay coming online for active subscription",{relay:this.ndkRelay.url,mergeFilters}),this.executeSubscriptionsConnected(o,s,r)};this.ndkRelay.once("ready",i),s.once("close",()=>{this.ndkRelay.removeListener("ready",i)})}executeSubscriptions(o,s,r){this.conn.isAvailable()?this.executeSubscriptionsConnected(o,s,r):this.executeSubscriptionsWhenConnected(o,s,r)}executeSubscriptionsConnected(o,s,r){const i=[];for(const{subscription:w}of s)i.push(w);const a=generateSubId(i,r);s.req=r;const c={id:a};(this.ndkRelay.trusted||i.every(w=>w.opts.skipVerification))&&(c.skipVerification=!0);const y=this.conn.relay.sub(r,c);return this.activeSubscriptions.set(y,s),o&&this.activeSubscriptionsByGroupId.set(o,{filters:r,sub:y}),y.on("event",w=>{const C=new NDKEvent(void 0,w);C.relay=this.ndkRelay,this.activeSubscriptions.get(y)?.eventReceived(C)}),y.on("eose",()=>{this.activeSubscriptions.get(y)?.eoseReceived(this.ndkRelay)}),s.once("close",()=>{y.unsub(),this.activeSubscriptions.delete(y),o&&this.activeSubscriptionsByGroupId.delete(o)}),this.executeSubscriptionsWhenConnected(o,s,r),y}executedFilters(){const o=new Map;for(const[,s]of this.activeSubscriptions)o.set(s.req,s.map(r=>r.subscription));return o}},NDKRelay=class extends lib$1.EventEmitter{url;scores;connectivity;subs;publisher;authPolicy;authRequired=!1;trusted=!1;complaining=!1;debug;constructor(o,s){super(),this.url=o,this.scores=new Map,this.debug=debug3(`ndk:relay:${o}`),this.connectivity=new NDKRelayConnectivity(this),this.subs=new NDKRelaySubscriptions(this),this.publisher=new NDKRelayPublisher(this),this.authPolicy=s}get status(){return this.connectivity.status}get connectionStats(){return this.connectivity.connectionStats}connect(){var o=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return o.connectivity.connect()})()}disconnect(){3!==this.status&&this.connectivity.disconnect()}subscribe(o,s){this.subs.subscribe(o,s)}publish(o,s=2500){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.publisher.publish(o,s)})()}auth(o){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.publisher.auth(o)})()}scoreSlowerEvent(o){}tagReference(o){const s=["r",this.url];return o&&s.push(o),s}referenceTags(){return[["r",this.url]]}activeSubscriptions(){return this.subs.executedFilters()}},PublishError=class extends Error{errors;constructor(o,s){super(o),this.errors=s}},NDKRelaySet=class JD{relays;debug;ndk;constructor(s,r){this.relays=s,this.ndk=r,this.debug=r.debug.extend("relayset")}addRelay(s){this.relays.add(s)}static fromRelayUrls(s,r){const i=new Set;for(const a of s){const c=r.pool.relays.get(a);if(c)i.add(c);else{const y=new NDKRelay(a);r.pool.useTemporaryRelay(y),i.add(y)}}return new JD(new Set(i),r)}publish(s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new Set,c=new Map,y=s.isEphemeral(),w=Array.from(i.relays).map(C=>new Promise(T=>{C.publish(s,r).then(()=>{a.add(C),T()}).catch(S=>{y||(c.set(C,S),i.debug("error publishing to relay",{relay:C.url,err:S})),T()})}));if(yield Promise.all(w),0===a.size&&!y)throw new PublishError("No relay was able to receive the event",c);return a})()}size(){return this.relays.size}};function calculateRelaySetFromEvent(o,s){const r=new Set;return o.pool?.relays.forEach(i=>r.add(i)),new NDKRelaySet(r,o)}function getWriteRelaysFor(o,s){if(o.outboxTracker)return o.outboxTracker.data.get(s)?.writeRelays}function calculateRelaySetsFromFilter(o,s){const r=new Map,i=new Set;if(s.forEach(a=>{a.authors&&a.authors.forEach(c=>i.add(c))}),i.size>0){const a=new Map;for(const c of i){const y=getWriteRelaysFor(o,c);y&&y.size>0?(o.debug(`Adding ${y.size} relays for ${c}`),y.forEach(w=>{const C=a.get(w)||[];C.push(c),a.set(w,C)})):o.explicitRelayUrls?.forEach(w=>{const C=a.get(w)||[];C.push(c),a.set(w,C)})}for(const c of a.keys())r.set(c,[]);for(const c of s)if(c.authors)for(const[y,w]of a.entries()){const C=c.authors.filter(T=>w.includes(T));r.set(y,[...r.get(y),{...c,authors:C}])}else for(const y of a.keys())r.set(y,[...r.get(y),c])}else o.explicitRelayUrls?.forEach(a=>{r.set(a,s)});return r}function calculateRelaySetsFromFilters(o,s){return calculateRelaySetsFromFilter(o,s)}var DEFAULT_RELAYS=["wss://nos.lol","wss://relay.nostr.band","wss://relay.f7z.io","wss://relay.damus.io","wss://nostr.mom","wss://no.str.cr"],Zap=class extends lib$1.EventEmitter{ndk;zappedEvent;zappedUser;constructor(o){super(),this.ndk=o.ndk,this.zappedEvent=o.zappedEvent,this.zappedUser=o.zappedUser||this.ndk.getUser({hexpubkey:this.zappedEvent?.pubkey})}getZapEndpoint(){var o=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let s,r,i,a;if(o.zappedUser&&(o.zappedUser.profile||(yield o.zappedUser.fetchProfile({groupable:!1})),s=(o.zappedUser.profile||{}).lud06,r=(o.zappedUser.profile||{}).lud16),r&&!r.startsWith("LNURL")){const[c,y]=r.split("@");i=`https://${y}/.well-known/lnurlp/${c}`}else if(s){const{words:c}=bech32.decode(s,1e3),y=bech32.fromWords(c);i=new TextDecoder("utf-8").decode(y)}if(!i)throw new Error("No zap endpoint found");try{const c=o.ndk.httpFetch||fetch,y=yield c(i);if(200!==y.status){const C=yield y.text();throw new Error(`Unable to fetch zap endpoint ${i}: ${C}`)}const w=yield y.json();return w?.allowsNostr&&(w?.nostrPubkey||w?.nostrPubKey)&&(a=w.callback),a}catch(c){throw new Error(`Unable to fetch zap endpoint ${i}: ${c}`)}})()}createZapRequest(o,s,r,i,a){var c=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=yield c.generateZapRequest(o,s,r,i);if(!y)return null;const{event:w,zapEndpoint:C}=y;if(!w)throw new Error("No zap request event found");let T;yield w.sign(a);try{T=yield c.getInvoice(w,o,C)}catch(S){throw new Error("Failed to get invoice: "+S)}return T})()}getInvoice(o,s,r){return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return(yield(yield fetch(`${r}?`+new URLSearchParams({amount:s.toString(),nostr:JSON.stringify(o.rawEvent())}))).json()).pr})()}generateZapRequest(o,s,r,i,a){var c=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=yield c.getZapEndpoint();if(!y)throw new Error("No zap endpoint found");if(!c.zappedEvent&&!c.zappedUser)throw new Error("No zapped event or user found");const w=nip57_exports.makeZapRequest({profile:c.zappedUser.pubkey,event:null,amount:o,comment:s||"",relays:i??c.relays()});if(c.zappedEvent){const T=c.zappedEvent.referenceTags();w.tags.push(...T)}w.tags.push(["lnurl",y]);const C=new NDKEvent(c.ndk,w);return r&&(C.tags=C.tags.concat(r)),{event:C,zapEndpoint:y}})()}relays(){let o=[];return this.ndk?.pool?.relays&&(o=this.ndk.pool.urls()),o.length||(o=DEFAULT_RELAYS),o}};function mergeTags(o,s){const r=new Map,i=(a,c)=>a.every((y,w)=>y===c[w]);return o.concat(s).forEach(a=>{for(let[c,y]of r)if(i(y,a)||i(a,y))return void(a.length>=y.length&&r.set(c,a));r.set(a.join(","),a)}),Array.from(r.values())}function generateContentTags(o){return _generateContentTags.apply(this,arguments)}function _generateContentTags(){return _generateContentTags=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=[]){let r=[];const i=a=>{s.find(c=>c[0]===a[0]&&c[1]===a[1])||s.push(a)};return o=o.replace(/(@|nostr:)(npub|nprofile|note|nevent|naddr)[a-zA-Z0-9]+/g,a=>{try{const c=a.split(/(@|nostr:)/)[2],{type:y,data:w}=nip19_exports.decode(c);let C;switch(y){case"npub":C=["p",w];break;case"nprofile":C=["p",w.pubkey];break;case"note":r.push(new Promise(function(){var T=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){i(["e",w,yield maybeGetEventRelayUrl(c),"mention"]),S()});return function(S){return T.apply(this,arguments)}}()));break;case"nevent":r.push(new Promise(function(){var T=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){let{id:A,relays:I,author:N}=w;I&&0!==I.length||(I=[yield maybeGetEventRelayUrl(c)]),i(["e",A,I[0],"mention"]),N&&i(["p",N]),S()});return function(S){return T.apply(this,arguments)}}()));break;case"naddr":r.push(new Promise(function(){var T=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){const A=[w.kind,w.pubkey,w.identifier].join(":");let I=w.relays??[];0===I.length&&(I=[yield maybeGetEventRelayUrl(c)]),i(["a",A,I[0],"mention"]),i(["p",w.pubkey]),S()});return function(S){return T.apply(this,arguments)}}()));break;default:return a}return C&&i(C),`nostr:${c}`}catch{return a}}),yield Promise.all(r),{content:o=o.replace(/#(\w+)/g,(a,c)=>{const y=["t",c];return s.find(w=>w[0]===y[0]&&w[1]===y[1])||s.push(y),a}),tags:s}}),_generateContentTags.apply(this,arguments)}function maybeGetEventRelayUrl(o){return _maybeGetEventRelayUrl.apply(this,arguments)}function _maybeGetEventRelayUrl(){return(_maybeGetEventRelayUrl=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){return""})).apply(this,arguments)}function isReplaceable(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=1e4&&this.kind<2e4}function isEphemeral(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=2e4&&this.kind<3e4}function isParamReplaceable(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=3e4&&this.kind<4e4}function encrypt(o,s){return _encrypt.apply(this,arguments)}function _encrypt(){return _encrypt=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s){if(!this.ndk)throw new Error("No NDK instance found!");if(s||(yield this.ndk.assertSigner(),s=this.ndk.signer),!o){const r=this.getMatchingTags("p");if(1!==r.length)throw new Error("No recipient could be determined and no explicit recipient was provided");o=this.ndk.getUser({hexpubkey:r[0][1]})}this.content=yield s?.encrypt(o,this.content)}),_encrypt.apply(this,arguments)}function decrypt(o,s){return _decrypt.apply(this,arguments)}function _decrypt(){return _decrypt=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s){if(!this.ndk)throw new Error("No NDK instance found!");s||(yield this.ndk.assertSigner(),s=this.ndk.signer),o||(o=this.author),this.content=yield s?.decrypt(o,this.content)}),_decrypt.apply(this,arguments)}function encode(){return this.isParamReplaceable()?nip19_exports.naddrEncode({kind:this.kind,pubkey:this.pubkey,identifier:this.replaceableDTag(),relays:this.relay?[this.relay.url]:[]}):this.relay?nip19_exports.neventEncode({id:this.tagId(),relays:[this.relay.url],author:this.pubkey}):nip19_exports.noteEncode(this.tagId())}function repost(){return _repost.apply(this,arguments)}function _repost(){return _repost=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o=!0,s){if(!s&&o){if(!this.ndk)throw new Error("No NDK instance found");this.ndk.assertSigner(),s=this.ndk.signer}const r=new NDKEvent(this.ndk,{kind:getKind(this),content:""});return r.tag(this),16===r.kind&&r.tags.push(["k",`${this.kind}`]),s&&(yield r.sign(s)),o&&(yield r.publish()),r}),_repost.apply(this,arguments)}function getKind(o){return 1===o.kind?6:16}var NDKEvent=class W_ extends lib$1.EventEmitter{ndk;created_at;content="";tags=[];kind;id="";sig;pubkey="";_author=void 0;relay;constructor(s,r){super(),this.ndk=s,this.created_at=r?.created_at,this.content=r?.content||"",this.tags=r?.tags||[],this.id=r?.id||"",this.sig=r?.sig,this.pubkey=r?.pubkey||"",this.kind=r?.kind}rawEvent(){return{created_at:this.created_at,content:this.content,tags:this.tags,kind:this.kind,pubkey:this.pubkey,id:this.id,sig:this.sig}}set author(s){this.pubkey=s.hexpubkey,this._author=void 0}get author(){if(this._author)return this._author;if(!this.ndk)throw new Error("No NDK instance found");const s=this.ndk.getUser({hexpubkey:this.pubkey});return this._author=s,s}tag(s,r){let i=[];if(s instanceof NDKUser){const a=["p",s.pubkey];r&&a.push(r),i.push(a)}else if(s instanceof W_){const a=s;i=a.referenceTags(r,a?.pubkey===this.pubkey);for(const y of a.getMatchingTags("p"))y[1]!==this.pubkey&&(this.tags.find(w=>"p"===w[0]&&w[1]===y[1])||this.tags.push(["p",y[1]]))}else i=[s];this.tags=mergeTags(this.tags,i)}toNostrEvent(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s&&""===r.pubkey){const y=yield r.ndk?.signer?.user();r.pubkey=y?.hexpubkey||""}r.created_at||(r.created_at=Math.floor(Date.now()/1e3));const i=r.rawEvent(),{content:a,tags:c}=yield r.generateTags();i.content=a||"",i.tags=c;try{r.id=getEventHash(i)}catch{}return r.id&&(i.id=r.id),r.sig&&(i.sig=r.sig),i})()}isReplaceable=isReplaceable.bind(this);isEphemeral=isEphemeral.bind(this);isParamReplaceable=isParamReplaceable.bind(this);encode=encode.bind(this);encrypt=encrypt.bind(this);decrypt=decrypt.bind(this);getMatchingTags(s){return this.tags.filter(r=>r[0]===s)}tagValue(s){const r=this.getMatchingTags(s);if(0!==r.length)return r[0][1]}get alt(){return this.tagValue("alt")}set alt(s){this.removeTag("alt"),s&&this.tags.push(["alt",s])}removeTag(s){this.tags=this.tags.filter(r=>r[0]!==s)}sign(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s?r.author=yield s.user():(r.ndk?.assertSigner(),s=r.ndk.signer),yield r.generateTags(),r.isReplaceable()&&(r.created_at=Math.floor(Date.now()/1e3));const i=yield r.toNostrEvent();return r.sig=yield s.sign(i),r.sig})()}publish(s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(i.sig||(yield i.sign()),!i.ndk)throw new Error("NDKEvent must be associated with an NDK instance to publish");return s||(s=i.ndk.devWriteRelaySet||calculateRelaySetFromEvent(i.ndk)),s.publish(i,r)})()}generateTags(){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let r=[];const i=yield generateContentTags(s.content,s.tags),a=i.content;if(r=i.tags,s.kind&&s.isParamReplaceable()&&!s.getMatchingTags("d")[0]){const c=s.tagValue("title");let y=[...Array(c?6:16)].map(()=>Math.random().toString(36)[2]).join("");c&&c.length>0&&(y=c.replace(/[^a-z0-9]+/gi,"-").replace(/^-|-$/g,"")+"-"+y),r.push(["d",y])}if((s.ndk?.clientName||s.ndk?.clientNip89)&&!s.tagValue("client")){const c=["client",s.ndk.clientName??""];s.ndk.clientNip89&&c.push(s.ndk.clientNip89),r.push(c)}return{content:a||"",tags:r}})()}muted(){const s=this.ndk?.mutedIds.get(this.pubkey);if(s&&"p"===s)return"author";const r=this.tagReference(),i=this.ndk?.mutedIds.get(r[1]);return i&&i===r[0]?"event":null}replaceableDTag(){if(this.kind&&this.kind>=3e4&&this.kind<=4e4){const s=this.getMatchingTags("d")[0];return s?s[1]:""}throw new Error("Event is not a parameterized replaceable event")}deduplicationKey(){return 0===this.kind||3===this.kind||this.kind&&this.kind>=1e4&&this.kind<2e4?`${this.kind}:${this.pubkey}`:this.tagId()}tagId(){return this.isParamReplaceable()?this.tagAddress():this.id}tagAddress(){if(!this.isParamReplaceable())throw new Error("This must only be called on replaceable events");const s=this.replaceableDTag();return`${this.kind}:${this.pubkey}:${s}`}tagReference(s){let r;return r=this.isParamReplaceable()?["a",this.tagAddress()]:["e",this.tagId()],r.push(this.relay?this.relay.url:""),s&&r.push(s),r}referenceTags(s,r){let i=[];return i=this.isParamReplaceable()?[["a",this.tagAddress()],["e",this.id]]:[["e",this.id]],this.relay?.url?i=i.map(a=>(a.push(this.relay?.url),a)):s&&(i=i.map(a=>(a.push(""),a))),s&&i.forEach(a=>a.push(s)),r||i.push(...this.author.referenceTags()),i}filter(){return this.isParamReplaceable()?{"#a":[this.tagId()]}:{"#e":[this.tagId()]}}zap(s,r,i,a,c){var y=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!y.ndk)throw new Error("No NDK instance found");c||y.ndk.assertSigner();const w=new Zap({ndk:y.ndk,zappedEvent:y,zappedUser:a}),C=Array.from(y.ndk.pool.relays.keys());return yield w.createZapRequest(s,r,i,C,c)})()}delete(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.ndk)throw new Error("No NDK instance found");r.ndk.assertSigner();const i=new W_(r.ndk,{kind:5,content:s||""});return i.tag(r),yield i.publish(),i})()}repost=repost.bind(this);react(s,r=!0){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.ndk)throw new Error("No NDK instance found");i.ndk.assertSigner();const a=new W_(i.ndk,{kind:7,content:s});return a.tag(i),r?yield a.publish():yield a.sign(),a})()}get isValid(){return!0}},READ_MARKER="read",WRITE_MARKER="write",NDKRelayList=class e2 extends NDKEvent{constructor(s,r){super(s,r),this.kind??=10002}static from(s){return new e2(s.ndk,s.rawEvent())}get readRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]||s[2]&&s[2]===READ_MARKER).map(s=>s[1])}set readRelayUrls(s){for(const r of s)this.tags.push(["r",r,READ_MARKER])}get writeRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]||s[2]&&s[2]===WRITE_MARKER).map(s=>s[1])}set writeRelayUrls(s){for(const r of s)this.tags.push(["r",r,WRITE_MARKER])}get bothRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]).map(s=>s[1])}set bothRelayUrls(s){for(const r of s)this.tags.push(["r",r])}get relays(){return this.getMatchingTags("r").map(s=>s[1])}},NDKSubscriptionCacheUsage=(o=>(o.ONLY_CACHE="ONLY_CACHE",o.CACHE_FIRST="CACHE_FIRST",o.PARALLEL="PARALLEL",o.ONLY_RELAY="ONLY_RELAY",o))(NDKSubscriptionCacheUsage||{}),defaultOpts={closeOnEose:!1,cacheUsage:"CACHE_FIRST",groupable:!0,groupableDelay:100,groupableDelayType:"at-most"},NDKSubscription=class extends lib$1.EventEmitter{subId;filters;opts;pool;skipVerification=!1;skipValidation=!1;relayFilters;relaySet;ndk;debug;eoseDebug;eventFirstSeen=new Map;eosesSeen=new Set;eventsPerRelay=new Map;lastEventReceivedAt;internalId;constructor(o,s,r,i,a){if(super(),this.ndk=o,this.pool=r?.pool||o.pool,this.opts={...defaultOpts,...r||{}},this.filters=s instanceof Array?s:[s],this.subId=a||r?.subId,this.internalId=Math.random().toString(36).substring(7),this.relaySet=i,this.debug=o.debug.extend(`subscription[${r?.subId??this.internalId}]`),this.eoseDebug=this.debug.extend("eose"),this.skipVerification=r?.skipVerification||!1,this.skipValidation=r?.skipValidation||!1,this.opts.closeOnEose||this.debug("Creating a permanent subscription",this.opts,JSON.stringify(this.filters)),"ONLY_CACHE"===this.opts.cacheUsage&&!this.opts.closeOnEose)throw new Error("Cannot use cache-only options with a persistent subscription")}get filter(){return this.filters[0]}isGroupable(){return this.opts?.groupable||!1}shouldQueryCache(){return"ONLY_RELAY"!==this.opts?.cacheUsage}shouldQueryRelays(){return"ONLY_CACHE"!==this.opts?.cacheUsage}shouldWaitForCache(){return this.opts.closeOnEose&&!!this.ndk.cacheAdapter?.locking&&"PARALLEL"!==this.opts.cacheUsage}start(){var o=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let s;o.shouldQueryCache()&&(s=o.startWithCache(),o.shouldWaitForCache()&&(yield s,queryFullyFilled(o)))?o.emit("eose",o):o.shouldQueryRelays()?o.startWithRelays():o.emit("eose",o)})()}stop(){this.emit("close",this),this.removeAllListeners()}hasAuthorsFilter(){return this.filters.some(o=>o.authors?.length)}startWithCache(){var o=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(o.ndk.cacheAdapter?.query){const s=o.ndk.cacheAdapter.query(o);o.ndk.cacheAdapter.locking&&(yield s)}})()}startWithRelays(){if(this.relaySet){this.relayFilters=new Map;for(const o of this.relaySet.relays)this.relayFilters.set(o.url,this.filters)}else this.relayFilters=calculateRelaySetsFromFilters(this.ndk,this.filters);if(this.relayFilters&&0!==this.relayFilters.size)for(const[o,s]of this.relayFilters)this.pool.getRelay(o).subscribe(this,s);else this.debug("No relays to subscribe to",this.ndk.explicitRelayUrls)}eventReceived(o,s,r=!1){if(s&&(o.relay=s),s||(s=o.relay),this.skipValidation||o.isValid){if(!r&&s){let i=this.eventsPerRelay.get(s);if(i||(i=new Set,this.eventsPerRelay.set(s,i)),i.add(o.id),this.eventFirstSeen.has(o.id)){const a=Date.now()-(this.eventFirstSeen.get(o.id)||0);return s.scoreSlowerEvent(a),void this.emit("event:dup",o,s,a,this)}this.ndk.cacheAdapter&&this.ndk.cacheAdapter.setEvent(o,this.filters,s),this.eventFirstSeen.set(o.id,Date.now())}else this.eventFirstSeen.set(o.id,0);o.ndk||(o.ndk=this.ndk),this.emit("event",o,s,this),this.lastEventReceivedAt=Date.now()}else this.debug("Event failed validation",o)}eoseTimeout;eoseReceived(o){this.eosesSeen.add(o),this.eoseDebug(`received from ${o.url}`);let s=this.lastEventReceivedAt?Date.now()-this.lastEventReceivedAt:void 0;const r=this.eosesSeen.size===this.relayFilters?.size;if(queryFullyFilled(this))this.emit("eose"),this.eoseDebug("Query fully filled"),this.opts?.closeOnEose&&this.stop();else if(r)this.emit("eose"),this.eoseDebug("All EOSEs seen"),this.opts?.closeOnEose&&this.stop();else{let i=1e3;const a=this.eosesSeen.size/this.relayFilters.size;if(this.eosesSeen.size>=2&&a>=.5){i*=1-a,this.eoseTimeout&&clearTimeout(this.eoseTimeout);const c=()=>{s=this.lastEventReceivedAt?Date.now()-this.lastEventReceivedAt:void 0,void 0!==s&&s<20?this.eoseTimeout=setTimeout(c,i):(this.emit("eose"),this.opts?.closeOnEose&&this.stop())};this.eoseTimeout=setTimeout(c,i)}}}};function follows(o,s){return _follows.apply(this,arguments)}function _follows(){return _follows=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r=3){if(!this.ndk)throw new Error("NDK not set");const i=Array.from(yield this.ndk.fetchEvents({kinds:[r],authors:[this.pubkey]},o||{groupable:!1}))[0];if(i){const a=new Set;return i.tags.forEach(c=>{if("p"===c[0])try{a.add(c[1]),s&&this.ndk?.outboxTracker?.trackUsers([c[1]])}catch{}}),[...a].reduce((c,y)=>{const w=new NDKUser({pubkey:y});return w.ndk=this.ndk,c.add(w),c},new Set)}return new Set}),_follows.apply(this,arguments)}function profileFromEvent(o){const s={};let r;try{r=JSON.parse(o.content)}catch(i){throw new Error(`Failed to parse profile event: ${i}`)}return Object.keys(r).forEach(i=>{switch(i){case"name":s.name=r.name;break;case"display_name":s.displayName=r.display_name;break;case"image":case"picture":s.image=r.image||r.picture;break;case"banner":s.banner=r.banner;break;case"bio":s.bio=r.bio;break;case"nip05":s.nip05=r.nip05;break;case"lud06":s.lud06=r.lud06;break;case"lud16":s.lud16=r.lud16;break;case"about":s.about=r.about;break;case"zapService":s.zapService=r.zapService;break;case"website":s.website=r.website;break;default:s[i]=r[i]}}),s}function serializeProfile(o){const s={};for(const[r,i]of Object.entries(o))switch(r){case"username":case"name":s.name=i;break;case"displayName":s.display_name=i;break;case"image":case"picture":s.picture=i;break;case"bio":case"about":s.about=i;break;default:s[r]=i}return JSON.stringify(s)}var NDKList=class t2 extends NDKEvent{_encryptedTags;encryptedTagsLength;constructor(s,r){super(s,r),this.kind??=30001}static from(s){return new t2(s.ndk,s.rawEvent())}get title(){const s=this.tagValue("title")||this.tagValue("name");return 3!==this.kind||s?1e4!==this.kind||s?10001!==this.kind||s?10002!==this.kind||s?10003!==this.kind||s?10004!==this.kind||s?10005!==this.kind||s?10006!==this.kind||s?10007!==this.kind||s?10015!==this.kind||s?10030!==this.kind||s?s??this.tagValue("d"):"Emojis":"Interests":"Search Relays":"Blocked Relays":"Public Chats":"Communities":"Bookmarks":"Relay Metadata":"Pinned Notes":"Mute":"Contacts"}set title(s){if(this.removeTag("title"),this.removeTag("name"),!s)throw new Error("Title cannot be empty");this.tags.push(["title",s])}get name(){const s=this.tagValue("name");return 3!==this.kind||s?1e4!==this.kind||s?10001!==this.kind||s?10002!==this.kind||s?10003!==this.kind||s?10004!==this.kind||s?10005!==this.kind||s?10006!==this.kind||s?10007!==this.kind||s?10015!==this.kind||s?10030!==this.kind||s?s??this.tagValue("d"):"Emojis":"Interests":"Search Relays":"Blocked Relays":"Public Chats":"Communities":"Bookmarks":"Relay Metadata":"Pinned Notes":"Mute":"Contacts"}set name(s){if(this.removeTag("name"),!s)throw new Error("Name cannot be empty");this.tags.push(["title",s])}get description(){return this.tagValue("description")}set description(s){s?this.tags.push(["description",s]):this.removeTag("description")}isEncryptedTagsCacheValid(){return!(!this._encryptedTags||this.encryptedTagsLength!==this.content.length)}encryptedTags(s=!0){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s&&r.isEncryptedTagsCacheValid())return r._encryptedTags;if(!r.ndk)throw new Error("NDK instance not set");if(!r.ndk.signer)throw new Error("NDK signer not set");const i=yield r.ndk.signer.user();try{if(r.content.length>0)try{const a=yield r.ndk.signer.decrypt(i,r.content),c=JSON.parse(a);return c&&c[0]?(r.encryptedTagsLength=r.content.length,r._encryptedTags=c):(r.encryptedTagsLength=r.content.length,r._encryptedTags=[])}catch{console.log(`error decrypting ${r.content}`)}}catch{}return[]})()}validateTag(s){return!0}get items(){return this.tags.filter(s=>!["d","L","l","title","name","description","summary","image","thumb","alt","expiration","subject"].includes(s[0]))}addItem(s,r=void 0,i=!1){var a=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!a.ndk)throw new Error("NDK instance not set");if(!a.ndk.signer)throw new Error("NDK signer not set");let c;if(s instanceof NDKEvent)c=s.referenceTags();else if(s instanceof NDKUser)c=s.referenceTags();else if(s instanceof NDKRelay)c=s.referenceTags();else{if(!Array.isArray(s))throw new Error("Invalid object type");c=[s]}if(r&&c[0].push(r),i){const y=yield a.ndk.signer.user(),w=yield a.encryptedTags();w.push(...c),a._encryptedTags=w,a.encryptedTagsLength=a.content.length,a.content=JSON.stringify(w),yield a.encrypt(y)}else a.tags.push(...c);a.created_at=Math.floor(Date.now()/1e3),a.emit("change")})()}removeItem(s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.ndk)throw new Error("NDK instance not set");if(!i.ndk.signer)throw new Error("NDK signer not set");if(r){const a=yield i.ndk.signer.user(),c=yield i.encryptedTags();c.splice(s,1),i._encryptedTags=c,i.encryptedTagsLength=i.content.length,i.content=JSON.stringify(c),yield i.encrypt(a)}else i.tags.splice(s,1);return i.created_at=Math.floor(Date.now()/1e3),i.emit("change"),i})()}},lists_default=NDKList;function pin(o,s,r){return _pin.apply(this,arguments)}function _pin(){return _pin=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){if(!this.ndk)throw new Error("No NDK instance found");if(this.ndk.assertSigner(),!s){const i=yield this.ndk.fetchEvents({kinds:[10001],authors:[this.pubkey]},{cacheUsage:"ONLY_RELAY"});s=i.size>0?lists_default.from(Array.from(i)[0]):new NDKEvent(this.ndk,{kind:10001})}return s.tag(o),r&&(yield s.publish()),s}),_pin.apply(this,arguments)}var NIP05_REGEX=/^(?:([\w.+-]+)@)?([\w.-]+)$/;function getNip05For(o){return _getNip05For.apply(this,arguments)}function _getNip05For(){return _getNip05For=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=fetch,r={}){const i=o.match(NIP05_REGEX);if(!i)return null;const[a,c="_",y]=i;try{const w=yield s(`https://${y}/.well-known/nostr.json?name=${c}`,r),{names:C,relays:T,nip46:S}=parseNIP05Result(yield w.json()),A=C[c];return A?{pubkey:A,relays:T?.[A],nip46:S?.[A]}:null}catch{return null}}),_getNip05For.apply(this,arguments)}function parseNIP05Result(o){const s={names:{}};for(const[r,i]of Object.entries(o.names))"string"==typeof r&&"string"==typeof i&&(s.names[r]=i);if(o.relays){s.relays={};for(const[r,i]of Object.entries(o.relays))"string"==typeof r&&Array.isArray(i)&&(s.relays[r]=i.filter(a=>"string"==typeof a))}if(o.nip46){s.nip46={};for(const[r,i]of Object.entries(o.relays))"string"==typeof r&&Array.isArray(i)&&(s.nip46[r]=i.filter(a=>"string"==typeof a))}return s}var NDKUser=class pw{ndk;profile;_npub;_pubkey;relayUrls=[];nip46Urls=[];constructor(s){s.npub&&(this._npub=s.npub),s.hexpubkey&&(this._pubkey=s.hexpubkey),s.pubkey&&(this._pubkey=s.pubkey),s.relayUrls&&(this.relayUrls=s.relayUrls),s.nip46Urls&&(this.nip46Urls=s.nip46Urls)}get npub(){if(!this._npub){if(!this._pubkey)throw new Error("hexpubkey not set");this._npub=nip19_exports.npubEncode(this.pubkey)}return this._npub}set npub(s){this._npub=s}get hexpubkey(){return this.pubkey}set hexpubkey(s){this._pubkey=s}get pubkey(){if(!this._pubkey){if(!this._npub)throw new Error("npub not set");this._pubkey=nip19_exports.decode(this.npub).data}return this._pubkey}set pubkey(s){this._pubkey=s}static fromNip05(s,r,i=!1){return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(r?.cacheAdapter&&r.cacheAdapter.loadNip05){const y=yield r.cacheAdapter.loadNip05(s);if(y){const w=new pw({pubkey:y.pubkey,relayUrls:y.relays,nip46Urls:y.nip46});return w.ndk=r,w}}let a={};i&&(a.cache="no-cache");const c=yield getNip05For(s,r?.httpFetch,a);if(c&&r?.cacheAdapter&&r.cacheAdapter.saveNip05&&r?.cacheAdapter.saveNip05(s,c),c){const y=new pw({pubkey:c.pubkey,relayUrls:c.relays,nip46Urls:c.nip46});return y.ndk=r,y}})()}fetchProfile(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.ndk)throw new Error("NDK not set");r.profile||(r.profile={});let i=null;if(r.ndk.cacheAdapter&&r.ndk.cacheAdapter.fetchProfile&&"ONLY_RELAY"!==s?.cacheUsage){const c=yield r.ndk.cacheAdapter.fetchProfile(r.pubkey);if(c)return r.profile=c,c}!s&&r.ndk.cacheAdapter&&r.ndk.cacheAdapter.locking&&(i=yield r.ndk.fetchEvents({kinds:[0],authors:[r.pubkey]},{cacheUsage:"ONLY_CACHE",closeOnEose:!0,groupable:!1}),s={cacheUsage:"ONLY_RELAY",closeOnEose:!0,groupable:!0,groupableDelay:250}),i&&0!==i.size||(i=yield r.ndk.fetchEvents({kinds:[0],authors:[r.pubkey]},s));const a=Array.from(i).sort((c,y)=>c.created_at-y.created_at);return 0===a.length?null:(r.profile=profileFromEvent(a[0]),r.profile&&r.ndk.cacheAdapter&&r.ndk.cacheAdapter.saveProfile&&r.ndk.cacheAdapter.saveProfile(r.pubkey,r.profile),r.profile)})()}follows=follows.bind(this);pin=pin.bind(this);relayList(){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("NDK not set");const r=s.ndk.outboxPool||s.ndk.pool,i=new Set;for(const y of r.relays.values())i.add(y);const a=new NDKRelaySet(i,s.ndk),c=yield s.ndk.fetchEvent({kinds:[10002],authors:[s.pubkey]},{closeOnEose:!0,pool:r,groupable:!0,subId:`relay-list-${s.pubkey.slice(0,6)}`},a);return c?NDKRelayList.from(c):yield s.relayListFromKind3()})()}relayListFromKind3(){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("NDK not set");const r=yield s.ndk.fetchEvent({kinds:[3],authors:[s.pubkey]});if(r)try{const i=JSON.parse(r.content),a=new NDKRelayList(s.ndk),c=new Set,y=new Set;for(const[w,C]of Object.entries(i))if(C){const T=C;T.write&&y.add(w),T.read&&c.add(w)}else c.add(w),y.add(w);return a.readRelayUrls=Array.from(c),a.writeRelayUrls=Array.from(y),a}catch{}})()}tagReference(){return["p",this.pubkey]}referenceTags(s){const r=[["p",this.pubkey]];return s&&r[0].push("",s),r}publish(){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("No NDK instance found");if(!s.profile)throw new Error("No profile available");s.ndk.assertSigner(),yield new NDKEvent(s.ndk,{kind:0,content:serializeProfile(s.profile)}).publish()})()}follow(s,r,i=3){var a=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!a.ndk)throw new Error("No NDK instance found");if(a.ndk.assertSigner(),r||(r=yield a.follows(void 0,void 0,i)),r.has(s))return!1;r.add(s);const c=new NDKEvent(a.ndk,{kind:i});for(const y of r)c.tag(y);return yield c.publish(),!0})()}validateNip05(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.ndk)throw new Error("No NDK instance found");const i=yield getNip05For(s);return null===i?null:i.pubkey===r.pubkey})()}zap(s,r,i,a){var c=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!c.ndk)throw new Error("No NDK instance found");a||c.ndk.assertSigner();const y=new Zap({ndk:c.ndk,zappedUser:c}),w=Array.from(c.ndk.pool.relays.keys());return yield y.createZapRequest(s,r,i,w,a)})()}},NDKPrivateKeySigner=class n2{_user;privateKey;constructor(s){s&&(this.privateKey=s,this._user=new NDKUser({hexpubkey:getPublicKey(this.privateKey)}))}static generate(){const s=generatePrivateKey();return new n2(s)}blockUntilReady(){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s._user)throw new Error("NDKUser not initialized");return s._user})()}user(){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield s.blockUntilReady(),s._user})()}sign(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.privateKey)throw Error("Attempted to sign without a private key");return getSignature(s,r.privateKey)})()}encrypt(s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.privateKey)throw Error("Attempted to encrypt without a private key");const a=s.hexpubkey;return yield nip04_exports.encrypt(i.privateKey,a,r)})()}decrypt(s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.privateKey)throw Error("Attempted to decrypt without a private key");const a=s.hexpubkey;return yield nip04_exports.decrypt(i.privateKey,a,r)})()}},NDKNostrRpc=class extends lib$1.EventEmitter{ndk;signer;debug;constructor(o,s,r){super(),this.ndk=o,this.signer=s,this.debug=r.extend("rpc")}subscribe(o){var s=this;const r=this.ndk.subscribe(o,{closeOnEose:!1,groupable:!1});return r.on("event",function(){var i=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){try{const c=yield s.parseEvent(a);s.emit(c.method?"request":`response-${c.id}`,c)}catch(c){s.debug("error parsing event",c,a.rawEvent())}});return function(a){return i.apply(this,arguments)}}()),new Promise((i,a)=>{r.on("eose",()=>i(r))})}parseEvent(o){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const r=s.ndk.getUser({hexpubkey:o.pubkey});r.ndk=s.ndk;const i=yield s.signer.decrypt(r,o.content),a=JSON.parse(i),{id:c,method:y,params:w,result:C,error:T}=a;return y?{id:c,pubkey:o.pubkey,method:y,params:w,event:o}:{id:c,result:C,error:T,event:o}})()}sendResponse(o,s,r,i=24133,a){var c=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y={id:o,result:r};a&&(y.error=a);const w=yield c.signer.user(),C=c.ndk.getUser({hexpubkey:s}),T=new NDKEvent(c.ndk,{kind:i,content:JSON.stringify(y),tags:[["p",s]],pubkey:w.hexpubkey});T.content=yield c.signer.encrypt(C,T.content),yield T.sign(c.signer),yield T.publish()})()}sendRequest(o,s,r=[],i=24133,a){var c=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=Math.random().toString(36).substring(7),w=yield c.signer.user(),C=c.ndk.getUser({hexpubkey:o}),T={id:y,method:s,params:r},S=new Promise(I=>{const N=K=>{"auth_url"===K.result?(c.once(`response-${y}`,N),c.emit("authUrl",K.error)):a&&a(K)};c.once(`response-${y}`,N)}),A=new NDKEvent(c.ndk,{kind:i,content:JSON.stringify(T),tags:[["p",o]],pubkey:w.pubkey});return A.content=yield c.signer.encrypt(C,A.content),yield A.sign(c.signer),c.debug(`sending ${s} request to`,o),yield A.publish(),S})()}},NDKNip46Signer=class extends lib$1.EventEmitter{ndk;remoteUser;remotePubkey;token;localSigner;nip05;rpc;debug;relayUrls=[];constructor(o,s,r){let i,a;if(super(),s.includes("#")){const c=s.split("#");i=new NDKUser({npub:c[0]}).pubkey,a=c[1]}else s.startsWith("npub")?i=new NDKUser({npub:s}).pubkey:s.match(/\./)?this.nip05=s:i=s;this.ndk=o,i&&(this.remotePubkey=i),this.token=a,this.debug=o.debug.extend("nip46:signer"),this.remoteUser=new NDKUser({pubkey:i}),this.localSigner=r||NDKPrivateKeySigner.generate(),this.rpc=new NDKNostrRpc(o,this.localSigner,this.debug),this.rpc.on("authUrl",(...c)=>{this.emit("authUrl",...c)}),this.localSigner.user().then(c=>{this.rpc.subscribe({kinds:[24133,24134],"#p":[c.pubkey]})})}user(){var o=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return o.remoteUser})()}blockUntilReady(){var o=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=yield o.localSigner.user(),r=o.ndk.getUser({pubkey:o.remotePubkey});if(o.nip05&&!o.remotePubkey&&NDKUser.fromNip05(o.nip05).then(i=>{i&&(o.remoteUser=i,o.remotePubkey=i.pubkey,o.relayUrls=i.nip46Urls)}),!o.remotePubkey)throw new Error("Remote pubkey not set");return new Promise((i,a)=>{setTimeout(()=>{const c=[s.pubkey];o.token&&c.push(o.token),o.rpc.sendRequest(o.remotePubkey,"connect",c,24133,y=>{"ack"===y.result?i(r):a(y.error)})},100)})})()}encrypt(o,s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.debug("asking for encryption"),new Promise((i,a)=>{r.rpc.sendRequest(r.remotePubkey,"nip04_encrypt",[o.pubkey,s],24133,c=>{c.error?a(c.error):i(c.result)})})})()}decrypt(o,s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.debug("asking for decryption"),new Promise((i,a)=>{r.rpc.sendRequest(r.remotePubkey,"nip04_decrypt",[o.pubkey,s],24133,c=>{if(c.error)a(c.error);else{const y=JSON.parse(c.result);i(y[0])}})})})()}sign(o){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.debug("asking for a signature"),new Promise((r,i)=>{s.rpc.sendRequest(s.remotePubkey,"sign_event",[JSON.stringify(o)],24133,a=>{if(s.debug("got a response",a),a.error)i(a.error);else{const c=JSON.parse(a.result);r(c.sig)}})})})()}createAccount(o,s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.debug("asking to create an account");const a=[];return o&&a.push(o),s&&a.push(s),r&&a.push(r),new Promise((c,y)=>{i.rpc.sendRequest(i.remotePubkey,"create_account",a,24134,w=>{i.debug("got a response",w),w.error?y(w.error):c(w.result)})})})()}};function dedup(o,s){return o.created_at>s.created_at?o:s}var OutboxItem=class{type;relayUrlScores;readRelays;writeRelays;constructor(o){this.type=o,this.relayUrlScores=new Map,this.readRelays=new Set,this.writeRelays=new Set}},OutboxTracker=class extends lib$1.EventEmitter{data;ndk;debug;constructor(o){super(),this.ndk=o,this.debug=o.debug.extend("outbox-tracker"),this.data=new dist.LRUCache({maxSize:1e5,entryExpirationTimeInMS:5e3})}trackUsers(o){for(const s of o){const r=getKeyFromItem(s);if(this.data.has(r))continue;const i=this.track(s,"user"),a=s instanceof NDKUser?s:new NDKUser({hexpubkey:s});a.ndk=this.ndk,a.relayList().then(c=>{if(c){i.readRelays=new Set(c.readRelayUrls),i.writeRelays=new Set(c.writeRelayUrls);for(const y of i.readRelays)this.ndk.pool.blacklistRelayUrls.has(y)&&(this.debug(`removing blacklisted relay ${y} from read relays`),i.readRelays.delete(y));for(const y of i.writeRelays)this.ndk.pool.blacklistRelayUrls.has(y)&&(this.debug(`removing blacklisted relay ${y} from write relays`),i.writeRelays.delete(y));this.data.set(r,i),this.debug(`Adding ${i.readRelays.size} read relays and ${i.writeRelays.size} write relays for ${a.hexpubkey}`)}})}}track(o,s){const r=getKeyFromItem(o);s??=getTypeFromItem(o);let i=this.data.get(r);return i||(i=new OutboxItem(s)),this.data.set(r,i),i}};function getKeyFromItem(o){return o instanceof NDKUser?o.hexpubkey:o}function getTypeFromItem(o){return o instanceof NDKUser?"user":"kind"}var NDKPool=class extends lib$1.EventEmitter{relays=new Map;blacklistRelayUrls;debug;temporaryRelayTimers=new Map;flappingRelays=new Set;backoffTimes=new Map;constructor(o=[],s=[],r,i){super(),this.debug=i??r.debug.extend("pool");for(const a of o){const c=new NDKRelay(a);this.addRelay(c,!1)}this.blacklistRelayUrls=new Set(s)}useTemporaryRelay(o,s=6e5){const r=this.relays.has(o.url);r||this.addRelay(o);const i=this.temporaryRelayTimers.get(o.url);if(i&&clearTimeout(i),!r||i){const a=setTimeout(()=>{this.removeRelay(o.url)},s);this.temporaryRelayTimers.set(o.url,a)}}addRelay(o,s=!0){var r=this;const i=o.url;this.blacklistRelayUrls?.has(i)?this.debug(`Relay ${i} is blacklisted`):(o.on("notice",function(){var a=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c,y){return r.emit("notice",c,y)});return function(c,y){return a.apply(this,arguments)}}()),o.on("connect",()=>this.handleRelayConnect(i)),o.on("ready",()=>this.handleRelayReady(o)),o.on("disconnect",(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.emit("relay:disconnect",o)})),o.on("flapping",()=>this.handleFlapping(o)),o.on("auth",function(){var a=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c){return r.emit("relay:auth",o,c)});return function(c){return a.apply(this,arguments)}}()),this.relays.set(i,o),s&&o.connect().catch(a=>{this.debug(`Failed to connect to relay ${i}`,a)}))}removeRelay(o){const s=this.relays.get(o);if(s)return s.disconnect(),this.relays.delete(o),this.emit("relay:disconnect",s),!0;const r=this.temporaryRelayTimers.get(o);return r&&(clearTimeout(r),this.temporaryRelayTimers.delete(o)),!1}getRelay(o,s=!0){let r=this.relays.get(o);return r||(r=new NDKRelay(o),this.addRelay(r,s)),r}handleRelayConnect(o){this.debug(`Relay ${o} connected`),this.emit("relay:connect",this.relays.get(o)),this.stats().connected===this.relays.size&&this.emit("connect")}handleRelayReady(o){this.debug(`Relay ${o.url} ready`),this.emit("relay:ready",o)}connect(o){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const r=[];s.debug(`Connecting to ${s.relays.size} relays${o?`, timeout ${o}...`:""}`);for(const i of s.relays.values())if(o){const a=new Promise((c,y)=>{setTimeout(()=>y(`Timed out after ${o}ms`),o)});r.push(Promise.race([i.connect(),a]).catch(c=>{s.debug(`Failed to connect to relay ${i.url}: ${c??"No reason specified"}`)}))}else r.push(i.connect());o&&setTimeout(()=>{const i=s.stats().connected===s.relays.size,a=s.stats().connected>0;!i&&a&&s.emit("connect")},o),yield Promise.all(r)})()}checkOnFlappingRelays(){if(this.flappingRelays.size/this.relays.size>=.8)for(const o of this.flappingRelays)this.backoffTimes.set(o,0)}handleFlapping(o){this.debug(`Relay ${o.url} is flapping`);let s=this.backoffTimes.get(o.url)||5e3;s*=2,this.backoffTimes.set(o.url,s),this.debug(`Backoff time for ${o.url} is ${s}ms`),setTimeout(()=>{this.debug(`Attempting to reconnect to ${o.url}`),o.connect(),this.checkOnFlappingRelays()},s),o.disconnect(),this.emit("flapping",o)}size(){return this.relays.size}stats(){const o={total:0,connected:0,disconnected:0,connecting:0};for(const s of this.relays.values())o.total++,1===s.status?o.connected++:3===s.status?o.disconnected++:0===s.status&&o.connecting++;return o}connectedRelays(){return Array.from(this.relays.values()).filter(o=>1===o.status)}urls(){return Array.from(this.relays.keys())}};function correctRelaySet(o,s){const r=s.connectedRelays();if(!Array.from(o.relays).some(i=>r.map(a=>a.url).includes(i.url)))for(const i of r)o.addRelay(i);if(0===r.length)for(const i of s.relays.values())o.addRelay(i);return o}var SPEC_PATH="/.well-known/nostr/nip96.json",Nip96=class{ndk;spec;url;nip98Required=!1;constructor(o,s){this.url=`https://${o}${SPEC_PATH}`,this.ndk=s}prepareUpload(o,s="POST"){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(r.validateHttpFetch(),r.spec||(yield r.fetchSpec()),!r.spec)throw new Error("Failed to fetch NIP96 spec");let i={};return r.nip98Required&&(i={Authorization:yield r.generateNip98Header(r.spec.api_url,s,o)}),{url:r.spec.api_url,headers:i}})()}xhrUpload(o,s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i="POST",{url:a,headers:c}=yield r.prepareUpload(s,i);o.open(i,a,!0),c.Authorization&&o.setRequestHeader("Authorization",c.Authorization);const y=new FormData;return y.append("file",s),new Promise((w,C)=>{o.onload=function(){o.status>=200&&o.status<300?w(JSON.parse(o.responseText)):C(new Error(o.statusText))},o.onerror=function(){C(new Error("Network Error"))},o.send(y)})})()}upload(o){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const r="POST",{url:i,headers:a}=yield s.prepareUpload(o,r),c=new FormData;c.append("file",o);const y=yield s.ndk.httpFetch(s.spec.api_url,{method:r,headers:a,body:c});if(200!==y.status)throw new Error(`Failed to upload file to ${i}`);const w=yield y.json();if("success"!==w.status)throw new Error(w.message);return w})()}validateHttpFetch(){if(!this.ndk)throw new Error("NDK is required to fetch NIP96 spec");if(!this.ndk.httpFetch)throw new Error("NDK must have an httpFetch method to fetch NIP96 spec")}fetchSpec(){var o=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){o.validateHttpFetch();const s=yield o.ndk.httpFetch(o.url);if(200!==s.status)throw new Error(`Failed to fetch NIP96 spec from ${o.url}`);const r=yield s.json();if(!r)throw new Error(`Failed to parse NIP96 spec from ${o.url}`);o.spec=r,o.nip98Required=o.spec.plans.free.is_nip98_required})()}generateNip98Header(o,s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new NDKEvent(i.ndk,{kind:27235,tags:[["u",o],["method",s]]});if(["POST","PUT","PATCH"].includes(s)){const c=yield i.calculateSha256(r);a.tags.push(["payload",c])}return yield a.sign(),`Nostr ${btoa(JSON.stringify(a.rawEvent()))}`})()}calculateSha256(o){return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=yield o.arrayBuffer(),r=yield crypto.subtle.digest("SHA-256",s);return Array.from(new Uint8Array(r)).map(i=>i.toString(16).padStart(2,"0")).join("")})()}},DEFAULT_OUTBOX_RELAYS=["wss://purplepag.es","wss://relay.snort.social"],DEFAULT_BLACKLISTED_RELAYS=["wss://brb.io"],NDK=class extends lib$1.EventEmitter{explicitRelayUrls;pool;outboxPool;_signer;_activeUser;cacheAdapter;debug;devWriteRelaySet;outboxTracker;mutedIds;clientName;clientNip89;relayAuthDefaultPolicy;httpFetch;autoConnectUserRelays=!0;autoFetchUserMutelist=!0;constructor(o={}){var s;super(),s=this,this.debug=o.debug||debug3("ndk"),this.explicitRelayUrls=o.explicitRelayUrls||[],this.pool=new NDKPool(o.explicitRelayUrls||[],o.blacklistRelayUrls,this),this.debug(`Starting with explicit relays: ${JSON.stringify(this.explicitRelayUrls)}`),this.pool.on("relay:auth",function(){var r=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(i,a){s.relayAuthDefaultPolicy&&(yield s.relayAuthDefaultPolicy(i,a))});return function(i,a){return r.apply(this,arguments)}}()),this.autoConnectUserRelays=o.autoConnectUserRelays??!0,this.autoFetchUserMutelist=o.autoFetchUserMutelist??!0,this.clientName=o.clientName,this.clientNip89=o.clientNip89,this.relayAuthDefaultPolicy=o.relayAuthDefaultPolicy,o.enableOutboxModel&&(this.outboxPool=new NDKPool(o.outboxRelayUrls||DEFAULT_OUTBOX_RELAYS,o.blacklistRelayUrls||DEFAULT_BLACKLISTED_RELAYS,this,this.debug.extend("outbox-pool")),this.outboxTracker=new OutboxTracker(this)),this.signer=o.signer,this.cacheAdapter=o.cacheAdapter,this.mutedIds=o.mutedIds||new Map,o.devWriteRelayUrls&&(this.devWriteRelaySet=NDKRelaySet.fromRelayUrls(o.devWriteRelayUrls,this));try{this.httpFetch=fetch}catch{}}addExplicitRelay(o,s,r=!0){let i;return i="string"==typeof o?new NDKRelay(o,s):o,this.pool.addRelay(i,r),this.explicitRelayUrls.push(i.url),i}toJSON(){return{relayCount:this.pool.relays.size}.toString()}get activeUser(){return this._activeUser}set activeUser(o){var s=this;const r=this._activeUser?.pubkey!==o?.pubkey;if(this._activeUser=o,o&&r){const i=function(){var C=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){const S=yield T.relayList();if(S){s.debug("Connecting to user relays",{npub:T.npub,relays:S.relays});for(const A of S.relays){let I=s.pool.relays.get(A);I||(I=new NDKRelay(A),s.pool.addRelay(I))}}else s.debug("No relay list found for user",{npub:T.npub})});return function(S){return C.apply(this,arguments)}}(),a=function(){var C=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){const S=yield s.fetchEvents([{kinds:[1e4],authors:[T.pubkey]},{kinds:[3e4],authors:[T.pubkey],"#d":["mute"],limit:1}]);if(S)for(const A of S){const I=lists_default.from(A);for(const N of I.items)s.mutedIds.set(N[1],N[0])}else s.debug("No mute list found for user",{npub:T.npub})});return function(S){return C.apply(this,arguments)}}(),c=[];this.autoConnectUserRelays&&c.push(i),this.autoFetchUserMutelist&&c.push(a);const y=function(){var C=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){for(const S of c)yield S(T)});return function(S){return C.apply(this,arguments)}}(),w=this.outboxPool||this.pool;w.connectedRelays.length>0?y(o):(this.debug("Waiting for connection to main relays"),w.once("relay:ready",C=>{this.debug("New relay ready",C?.url),y(o)}))}else o||(this.mutedIds=new Map)}get signer(){return this._signer}set signer(o){this._signer=o,this.emit("signer:ready",o),o?.user().then(s=>{s.ndk=this,this.activeUser=s})}connect(o){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s._signer&&s.autoConnectUserRelays&&(s.debug("Attempting to connect to user relays specified by signer"),s._signer.relays)&&(yield s._signer.relays()).forEach(i=>s.pool.addRelay(i));const r=[s.pool.connect(o)];return s.outboxPool&&r.push(s.outboxPool.connect(o)),s.debug("Connecting to relays",{timeoutMs:o}),Promise.allSettled(r).then(()=>{})})()}getUser(o){const s=new NDKUser(o);return s.ndk=this,s}getUserFromNip05(o,s=!1){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return NDKUser.fromNip05(o,r,s)})()}subscribe(o,s,r,i=!0){const a=new NDKSubscription(this,o,s,r);if(r)for(const c of r.relays)this.pool.useTemporaryRelay(c);if(this.outboxPool&&a.hasAuthorsFilter()){const c=a.filters.filter(y=>y.authors&&y.authors?.length>0).map(y=>y.authors).flat();this.outboxTracker?.trackUsers(c)}return i&&a.start(),a}publish(o,s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.debug("Deprecated: Use `event.publish()` instead"),o.publish(s,r)})()}fetchEvent(o,s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let a,c;if(r instanceof NDKRelay?c=new NDKRelaySet(new Set([r]),i):r instanceof NDKRelaySet&&(c=r),!r&&"string"==typeof o&&!isNip33AValue(o)){const y=relaysFromBech32(o);y.length>0&&(c=new NDKRelaySet(new Set(y),i),c=correctRelaySet(c,i.pool))}if(a="string"==typeof o?filterFromId(o):o,!a)throw new Error(`Invalid filter: ${JSON.stringify(o)}`);return new Promise(y=>{const w=i.subscribe(a,{...s||{},closeOnEose:!0},c,!1);w.on("event",C=>{C.ndk=i,y(C)}),w.on("eose",()=>{y(null)}),w.start()})})()}fetchEvents(o,s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise(a=>{const c=new Map,y=i.subscribe(o,{...s||{},closeOnEose:!0},r,!1),w=C=>{const T=C.deduplicationKey(),S=c.get(T);S&&(C=dedup(S,C)),C.ndk=i,c.set(T,C)};y.on("event",w),y.on("event:dup",w),y.on("eose",()=>{a(new Set(c.values()))}),y.start()})})()}assertSigner(){if(!this.signer)throw this.emit("signerRequired"),new Error("Signer required")}getNip96(o){return new Nip96(o,this)}};const LOCAL_STORE_KEY="__nostrlogin_nip46",LOGGED_IN_ACCOUNTS="__nostrlogin_accounts",RECENT_ACCOUNTS="__nostrlogin_recent",OUTBOX_RELAYS$1=["wss://purplepag.es","wss://relay.nos.social","wss://user.kindpag.es","wss://relay.damus.io","wss://nos.lol"],DEFAULT_SIGNUP_RELAYS=["wss://relay.damus.io/","wss://nos.lol/","wss://relay.primal.net/"],localStorageSetItem=(o,s)=>{localStorage.setItem(o,s)},localStorageGetItem=o=>{const s=window.localStorage.getItem(o);if(s)try{return JSON.parse(s)}catch{}return null},localStorageRemoveItem=o=>{localStorage.removeItem(o)},fetchProfile=function(){var o=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r){const i=new NDKUser({pubkey:s.pubkey});return i.ndk=r,yield i.fetchProfile()});return function(r,i){return o.apply(this,arguments)}}(),createProfile=function(){var o=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r,i,a,c){const y={name:s.name},w=new NDKEvent(r,{kind:0,created_at:Math.floor(Date.now()/1e3),pubkey:s.pubkey,content:JSON.stringify(y),tags:[]});window.location.hostname&&w.tags.push(["client",window.location.hostname]);const C=new NDKEvent(r,{kind:10002,created_at:Math.floor(Date.now()/1e3),pubkey:s.pubkey,content:"",tags:[]}),T=(a||"").split(",").map(A=>A.trim()).filter(A=>A.startsWith("ws"));T.length||T.push(...DEFAULT_SIGNUP_RELAYS);for(const A of T)C.tags.push(["r",A]);yield w.sign(i),console.log("signed profile",w),yield C.sign(i),console.log("signed relays",C);const S=c&&c.length?c:OUTBOX_RELAYS$1;yield w.publish(NDKRelaySet.fromRelayUrls(S,r)),console.log("published profile",w),yield C.publish(NDKRelaySet.fromRelayUrls(S,r)),console.log("published relays",C)});return function(r,i,a,c,y){return o.apply(this,arguments)}}(),bunkerUrlToInfo=(o,s="")=>{const r=new URL(o);return{pubkey:r.hostname||r.pathname.split("//")[1],sk:s||generatePrivateKey(),relays:r.searchParams.getAll("relay"),token:r.searchParams.get("secret")||"",authMethod:"connect"}},isBunkerUrl=o=>o.startsWith("bunker://"),getBunkerUrl=function(){var o=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r){if(!s)return"";if(isBunkerUrl(s))return s;if(s.includes("@")){const[i,a]=s.toLocaleLowerCase().split("@"),c=r.devOverrideBunkerOrigin||`https://${a}`,y=`${c}/.well-known/nostr.json?name=_`,w=`${c}/.well-known/nostr.json?name=${i}`,C=yield fetch(y),T=yield C.json(),A=T.nip46[T.names._],I=yield fetch(w),N=(yield I.json()).names[i];if(!A.length)throw new Error("Bunker relay not provided");return`bunker://${N}?relay=${A[0]}`}throw new Error("Invalid user name or bunker url")});return function(r,i){return o.apply(this,arguments)}}(),checkNip05=function(){var o=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s){let r=!1,i="",a="";return yield(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s||!s.includes("@"))return;const[c,y]=s.toLocaleLowerCase().split("@");if(!c)return;if(!new RegExp(/^[\w-.]+@([\w-]+\.)+[\w-]{2,8}$/g).test(s))return void(i="Invalid name");if(!y)return void(i="Select service");const w=`https://${y}/.well-known/nostr.json?name=${c.toLowerCase()}`;try{const C=yield fetch(w),T=yield C.json();if(T.names[c])return void(a=T.names[c])}catch{}r=!0})(),{available:r,taken:""!=a,error:i,pubkey:a}});return function(r){return o.apply(this,arguments)}}(),upgradeInfo=o=>{"typeAuthMethod"in o&&delete o.typeAuthMethod,o.authMethod||(o.authMethod="extension"in o&&o.extension?"extension":"readOnly"in o&&o.readOnly?"readOnly":"connect"),o.nip05&&isBunkerUrl(o.nip05)&&(o.bunkerUrl=o.nip05,o.nip05="")},localStorageAddAccount=o=>{localStorageSetItem(LOCAL_STORE_KEY,JSON.stringify(o));const s=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[],r=localStorageGetItem(RECENT_ACCOUNTS)||[];s.forEach(y=>upgradeInfo(y)),r.forEach(y=>upgradeInfo(y));const i=s,a=s.findIndex(y=>y.pubkey===o.pubkey&&y.authMethod===o.authMethod);-1!==a?i[a]=o:i.push(o);const c=r.filter(y=>y.pubkey!==o.pubkey||y.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(c)),localStorageSetItem(LOGGED_IN_ACCOUNTS,JSON.stringify(i))},localStorageRemoveCurrentAccount=()=>{const o=localStorageGetItem(LOCAL_STORE_KEY);if(!o)return;upgradeInfo(o);const s={...o};delete s.sk,delete s.otpData;const r=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[],i=localStorageGetItem(RECENT_ACCOUNTS)||[];r.forEach(y=>upgradeInfo(y)),i.forEach(y=>upgradeInfo(y));const a=i;if("connect"===s.authMethod&&s.bunkerUrl&&s.bunkerUrl.includes("secret="))console.log("nostr login bunker conn with a secret not saved to recent");else if("local"===s.authMethod)console.log("nostr login temporary local keys not save to recent");else{const y=i.findIndex(w=>w.pubkey===s.pubkey&&w.authMethod===s.authMethod);-1!==y?a[y]=s:a.push(s)}const c=r.filter(y=>y.pubkey!==o.pubkey||y.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(a)),localStorageSetItem(LOGGED_IN_ACCOUNTS,JSON.stringify(c)),localStorageRemoveItem(LOCAL_STORE_KEY)},localStorageRemoveRecent=o=>{const s=localStorageGetItem(RECENT_ACCOUNTS)||[];s.forEach(i=>upgradeInfo(i));const r=s.filter(i=>i.pubkey!==o.pubkey||i.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(r))},localStorageGetRecents=()=>{const o=localStorageGetItem(RECENT_ACCOUNTS)||[];return o.forEach(s=>upgradeInfo(s)),o},localStorageGetAccounts=()=>{const o=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[];return o.forEach(s=>upgradeInfo(s)),o},localStorageGetCurrent=()=>{const o=localStorageGetItem(LOCAL_STORE_KEY);return o&&upgradeInfo(o),o},getDarkMode=o=>{const s=localStorage.getItem("nl-dark-mode");return s?!!JSON.parse(s):void 0!==o.darkMode?o.darkMode:!(!window.matchMedia||!window.matchMedia("(prefers-color-scheme: dark)").matches)},getIcon=function(){var o=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return document.location.origin+"/favicon.ico"});return function(){return o.apply(this,arguments)}}();class NostrRpc extends NDKNostrRpc{pubkey;_ndk;_signer;requests=new Set;sub;_useNip44=!1;constructor(s,r,i){super(s,i,s.debug.extend("nip46:signer:rpc")),this._ndk=s,this._signer=i,this.pubkey=r}subscribe(s){var r=()=>super.subscribe,i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.sub=yield r().call(i,s),i.sub})()}stop(){this.sub&&(this.sub.stop(),this.sub=void 0)}setUseNip44(s){this._useNip44=s}isNip04(s){const r=s.length;return!(r<28)&&"?"===s[r-28]&&"i"===s[r-27]&&"v"===s[r-26]&&"="===s[r-25]}parseEvent(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=r._ndk.getUser({pubkey:s.pubkey});i.ndk=r._ndk;const a=r.isNip04(s.content)?r._signer.decrypt:r._signer.decryptNip44;console.log("client event nip04",r.isNip04(s.content));const c=yield a.call(r._signer,i,s.content),y=JSON.parse(c),{id:w,method:C,params:T,result:S,error:A}=y;return C?{id:w,pubkey:s.pubkey,method:C,params:T,event:s}:{id:w,result:S,error:A,event:s}})()}parseNostrConnectReply(s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new NDKEvent(i._ndk,s),c=yield i.parseEvent(a);if(console.log("nostr connect parsedEvent",c),c.method)throw new Error("Bad nostr connect reply");if(c.result===r)return a.pubkey;throw new Error(c.error)})()}listen(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=r.pubkey;console.log("nostr-login listening for conn to",i);const a=yield r.subscribe({kinds:[24133],"#p":[i]});return new Promise((c,y)=>{a.on("event",function(){var w=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(C){try{const T=yield r.parseEvent(C);if(!T.method){const S=T;if("auth_url"===S.result)return;"ack"===S.result||S.result===s?c(C.pubkey):y(S.error)}}catch(T){console.log("error parsing event",T,C.rawEvent())}r.stop()});return function(C){return w.apply(this,arguments)}}())})})()}connect(s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise((a,c)=>{i.sendRequest(s.pubkey,"connect",[s.pubkey,s.token||"",r||""],24133,w=>{"ack"===w.result?a():c(w.error)})})})()}getId(){return Math.random().toString(36).substring(7)}sendRequest(s,r,i=[],a=24133,c){var y=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w=y.getId();y.setResponseHandler(w,c),yield(yield y.createRequestEvent(w,s,r,i,a)).publish()})()}setResponseHandler(s,r){let i=!1;const a=Date.now();return new Promise(()=>{const c=y=>{"auth_url"===y.result?(this.once(`response-${s}`,c),i||(i=!0,this.emit("authUrl",y.error))):r&&this.requests.has(s)&&(this.requests.delete(s),console.log("nostr-login iframe processed request in",Date.now()-a,"ms"),r(y))};this.once(`response-${s}`,c)})}createRequestEvent(s,r,i,a=[],c=24133){var y=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){y.requests.add(s);const w=yield y._signer.user(),C=y._ndk.getUser({pubkey:r}),S=new NDKEvent(y._ndk,{kind:c,content:JSON.stringify({id:s,method:i,params:a}),tags:[["p",r]],pubkey:w.pubkey}),A=y._useNip44&&"create_account"!==i?y._signer.encryptNip44:y._signer.encrypt;return S.content=yield A.call(y._signer,C,S.content),yield S.sign(y._signer),S})()}}class IframeNostrRpc extends NostrRpc{peerOrigin;iframePort;iframeRequests=new Map;constructor(s,r,i,a){super(s,r,i),this._ndk=s,this.peerOrigin=a}subscribe(s){var r=()=>super.subscribe,i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.peerOrigin?new NDKSubscription(i._ndk,{},{closeOnEose:!0,cacheUsage:NDKSubscriptionCacheUsage.ONLY_CACHE}):r().call(i,s)})()}setWorkerIframePort(s){var r=this;if(!this.peerOrigin)throw new Error("Unexpected iframe port");this.iframePort=s,s.onmessage=function(){var i=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){if(console.log("iframe-nip46 got response",a.data),"string"==typeof a.data&&a.data.startsWith("errorNoKey")){const c=a.data.split(":")[1],{id:y="",pubkey:w=""}=r.iframeRequests.get(c)||{};y&&w&&r.requests.has(y)&&r.emit(`iframeRestart-${w}`)}else try{const c=a.data;if(!validateEvent(c))throw new Error("Invalid event from iframe");if(!verifySignature(c))throw new Error("Invalid event signature from iframe");const y=new NDKEvent(r._ndk,c),w=yield r.parseEvent(y);w.method||(console.log("parsed response",w),r.emit(`response-${w.id}`,w))}catch(c){console.log("error parsing event",c,a.data)}});return function(a){return i.apply(this,arguments)}}()}sendRequest(s,r,i=[],a=24133,c){var y=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w=y.getId(),C=yield y.createRequestEvent(w,s,r,i,a);y.setResponseHandler(w,c),y.iframePort?(y.iframeRequests.set(C.id,{id:w,pubkey:s}),console.log("iframe-nip46 sending request to",y.peerOrigin,C.rawEvent()),y.iframePort.postMessage(C.rawEvent())):yield C.publish()})()}}class ReadyListener{origin;messages;promise;constructor(s,r){var i=this;this.origin=r,this.messages=s,this.promise=new Promise(a=>{console.log(new Date,"started listener for",this.messages);const c=function(){var y=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(w){const C=new URL(r).hostname,T=new URL(w.origin).hostname;(T===C||T.endsWith("."+C))&&Array.isArray(w.data)&&w.data.length&&i.messages.includes(w.data[0])&&(console.log(new Date,"got ready message from",w.origin,w.data),window.removeEventListener("message",c),a(w.data))});return function(C){return y.apply(this,arguments)}}();window.addEventListener("message",c)})}wait(){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){console.log(new Date,"waiting for",s.messages);const r=yield s.promise;return console.log(new Date,"finished waiting for",s.messages,r),r})()}}class BannerManager extends lib$1.EventEmitter{banner=null;iframeReady;params;constructor(s){super(),this.params=s}onAuthUrl(s,r){this.banner&&(this.banner.notify=s?{mode:r?"iframeAuthUrl":"authUrl",url:s}:{mode:""})}onIframeRestart(s){this.banner&&(this.iframeReady=new ReadyListener(["rebinderDone","rebinderError"],new URL(s).origin),this.banner.notify={mode:"rebind",url:s})}onUserInfo(s){this.banner&&(this.banner.userInfo=s)}onCallTimeout(){this.banner&&(this.banner.notify={mode:"timeout"})}onCallStart(){this.banner&&(this.banner.isLoading=!0)}onCallEnd(){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.banner&&(s.iframeReady&&(yield s.iframeReady.wait(),s.iframeReady=void 0),s.banner.isLoading=!1,s.banner.notify={mode:""})})()}onUpdateAccounts(s){this.banner&&(this.banner.accounts=s)}onDarkMode(s){this.banner&&(this.banner.darkMode=s)}launchAuthBanner(s){var r=this;this.banner=document.createElement("nl-banner"),this.banner.setAttribute("dark-mode",String(getDarkMode(s))),s.theme&&this.banner.setAttribute("theme",s.theme),s.noBanner&&this.banner.setAttribute("hidden-mode","true"),this.banner.addEventListener("handleLoginBanner",i=>{this.emit("launch",i.detail)}),this.banner.addEventListener("handleConfirmLogout",()=>{this.emit("onConfirmLogout")}),this.banner.addEventListener("handleLogoutBanner",(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.emit("logout")})),this.banner.addEventListener("handleImportModal",i=>{this.emit("import")}),this.banner.addEventListener("handleNotifyConfirmBanner",i=>{this.emit("onAuthUrlClick",i.detail)}),this.banner.addEventListener("handleNotifyConfirmBannerIframe",i=>{this.emit("onIframeAuthUrlClick",i.detail)}),this.banner.addEventListener("handleSwitchAccount",i=>{this.emit("onSwitchAccount",i.detail)}),this.banner.addEventListener("handleOpenWelcomeModal",()=>{this.emit("launch",this.params.optionsModal.startScreen),this.banner&&(this.banner.isOpen=!1)}),document.body.appendChild(this.banner)}}function extract(o,s,r){return hash$1(o),void 0===r&&(r=new Uint8Array(o.outputLen)),hmac$1(o,toBytes$1(r),toBytes$1(s))}const HKDF_COUNTER=new Uint8Array([0]),EMPTY_BUFFER=new Uint8Array;function expand(o,s,r,i=32){if(hash$1(o),number$1(i),i>255*o.outputLen)throw new Error("Length should be <= 255*HashLen");const a=Math.ceil(i/o.outputLen);void 0===r&&(r=EMPTY_BUFFER);const c=new Uint8Array(a*o.outputLen),y=hmac$1.create(o,s),w=y._cloneInto(),C=new Uint8Array(y.outputLen);for(let T=0;Tdecoder.decode(o),getConversationKey(o,s){const r=secp256k1.getSharedSecret(o,"02"+s).subarray(1,33);return extract(sha256,r,"nip44-v2")},getMessageKeys(o,s){const r=expand(sha256,o,s,76);return{chacha_key:r.subarray(0,32),chacha_nonce:r.subarray(32,44),hmac_key:r.subarray(44,76)}},calcPaddedLen(o){if(!Number.isSafeInteger(o)||o<1)throw new Error("expected positive integer");if(o<=32)return 32;const s=1<u.maxPlaintextSize)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const s=new Uint8Array(2);return new DataView(s.buffer).setUint16(0,o,!1),s},pad(o){const s=u.utf8Encode(o),r=s.length;return concatBytes(u.writeU16BE(r),s,new Uint8Array(u.calcPaddedLen(r)-r))},unpad(o){const s=new DataView(o.buffer).getUint16(0),r=o.subarray(2,2+s);if(su.maxPlaintextSize||r.length!==s||o.length!==2+u.calcPaddedLen(s))throw new Error("invalid padding");return u.utf8Decode(r)},hmacAad(o,s,r){if(32!==r.length)throw new Error("AAD associated data must be 32 bytes");const i=concatBytes(r,s);return hmac$1(sha256,o,i)},decodePayload(o){if("string"!=typeof o)throw new Error("payload must be a valid string");const s=o.length;if(s<132||s>87472)throw new Error("invalid payload length: "+s);if("#"===o[0])throw new Error("unknown encryption version");let r;try{r=base64.decode(o)}catch(c){throw new Error("invalid base64: "+c.message)}const i=r.length;if(i<99||i>65603)throw new Error("invalid data length: "+i);const a=r[0];if(2!==a)throw new Error("unknown encryption version "+a);return{nonce:r.subarray(1,33),ciphertext:r.subarray(33,-32),mac:r.subarray(-32)}}};function encryptNip44(o,s,r=randomBytes(32)){const{chacha_key:i,chacha_nonce:a,hmac_key:c}=u.getMessageKeys(s,r),y=u.pad(o),w=chacha20(i,a,y),C=u.hmacAad(c,w,r);return base64.encode(concatBytes(new Uint8Array([2]),r,w,C))}function decryptNip44(o,s){const{nonce:r,ciphertext:i,mac:a}=u.decodePayload(o),{chacha_key:c,chacha_nonce:y,hmac_key:w}=u.getMessageKeys(s,r);if(!equalBytes(u.hmacAad(w,i,r),a))throw new Error("invalid MAC");const C=chacha20(c,y,i);return u.unpad(C)}class Nip44{cache=new Map;createKey(s,r){return u.getConversationKey(s,r)}getKey(s,r,i){const a=getPublicKey(s)+r;let c=this.cache.get(a);if(c)return c;const y=this.createKey(s,r);return this.cache.set(a,y),y}encrypt(s,r,i){return encryptNip44(i,this.getKey(s,r))}decrypt(s,r,i){return decryptNip44(i,this.getKey(s,r))}}class PrivateKeySigner extends NDKPrivateKeySigner{nip44=new Nip44;constructor(s){super(s)}encryptNip44(s,r){return Promise.resolve(this.nip44.encrypt(this.privateKey,s.pubkey,r))}decryptNip44(s,r){return Promise.resolve(this.nip44.decrypt(this.privateKey,s.pubkey,r))}}const OUTBOX_RELAYS=["wss://user.kindpag.es","wss://purplepag.es","wss://relay.nos.social"],DEFAULT_NOSTRCONNECT_RELAY="wss://relay.nsec.app/",NOSTRCONNECT_APPS=[{name:"Nsec.app",domain:"nsec.app",canImport:!0,img:"https://nsec.app/assets/favicon.ico",link:"https://use.nsec.app/",relay:"wss://relay.nsec.app/"},{name:"Amber",img:"https://raw.githubusercontent.com/greenart7c3/Amber/refs/heads/master/assets/android-icon.svg",link:"",relay:"wss://relay.nsec.app/"},{name:"Other key stores",img:"",link:"",relay:"wss://relay.nsec.app/"}];class AuthNostrService extends lib$1.EventEmitter{ndk;profileNdk;signer=null;localSigner=null;params;signerPromise;readyPromise;readyCallback;nip44Codec=new Nip44;nostrConnectKey="";nostrConnectSecret="";iframe;starterReady;nip04;nip44;constructor(s){super(),this.params=s,this.ndk=new NDK({enableOutboxModel:!1}),this.profileNdk=new NDK({enableOutboxModel:!0,explicitRelayUrls:OUTBOX_RELAYS}),this.profileNdk.connect(),this.nip04={encrypt:this.encrypt04.bind(this),decrypt:this.decrypt04.bind(this)},this.nip44={encrypt:this.encrypt44.bind(this),decrypt:this.decrypt44.bind(this)}}isIframe(){return!!this.iframe}waitReady(){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.signerPromise)try{yield s.signerPromise}catch{}if(s.readyPromise)try{yield s.readyPromise}catch{}})()}nostrConnect(s,{domain:r="",link:i="",iframeUrl:a="",importConnect:c=!1}={}){var y=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w={authMethod:"connect",pubkey:"",sk:y.nostrConnectKey,domain:r,relays:[s=s||DEFAULT_NOSTRCONNECT_RELAY],iframeUrl:a};console.log("nostrconnect info",w,i),i&&!a&&window.open(i,"_blank","width=400,height=700");const C=yield y.initSigner(w,{listen:!0});if(!C)throw new Error("Bad remote pubkey");return w.pubkey=C,w.bunkerUrl=`bunker://${C}?relay=${s}`,c||y.onAuth("login",w),w})()}createNostrConnect(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.nostrConnectKey=generatePrivateKey(),r.nostrConnectSecret=Math.random().toString(36).substring(7);const i=getPublicKey(r.nostrConnectKey),a=encodeURIComponent(document.location.host),c=encodeURIComponent(document.location.href);return`nostrconnect://${i}?image=${encodeURIComponent(yield getIcon())}&url=${c}&name=${a}&perms=${encodeURIComponent(r.params.optionsModal.perms||"")}&secret=${r.nostrConnectSecret}${s?`&relay=${s}`:""}`})()}getNostrConnectServices(){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const r=yield s.createNostrConnect(),i=NOSTRCONNECT_APPS.map(a=>({...a}));for(const a of i){let c=DEFAULT_NOSTRCONNECT_RELAY;if(a.link.startsWith("https://")){let w=a.domain||new URL(a.link).hostname;try{const C=yield(yield fetch(`https://${w}/.well-known/nostr.json`)).json(),S=C.nip46[C.names._];S&&S.length&&(c=S[0]),a.iframeUrl=C.nip46.iframe_url||""}catch(C){console.log("Bad app info",C,a)}}const y=r+"&relay="+c;a.link=a.iframeUrl?y:a.link.replace("",y)}return[r,i]})()}localSignup(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=generatePrivateKey(),a={pubkey:getPublicKey(i),sk:i,name:s,authMethod:"local"};console.log(`localSignup name: ${s}`),yield r.setLocal(a,!0)})()}setLocal(s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.releaseSigner(),i.localSigner=new PrivateKeySigner(s.sk),r&&(yield createProfile(s,i.profileNdk,i.localSigner,i.params.optionsModal.signupRelays,i.params.optionsModal.outboxRelays)),i.onAuth("login",s)})()}prepareImportUrl(s){if("otp"===this.params.userInfo?.authMethod)return s+"&import=true";if(!this.localSigner||"local"!==this.params.userInfo?.authMethod)throw new Error("Most be local keys");return s+"#import="+nip19_exports.nsecEncode(this.localSigner.privateKey)}importAndConnect(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{relay:i,domain:a,link:c,iframeUrl:y}=s;if(!a)throw new Error("Domain required");const w=yield r.nostrConnect(i,{domain:a,link:c,importConnect:!0,iframeUrl:y});yield r.logout(!0),r.localSigner=null,r.onAuth("login",w)})()}setReadOnly(s){this.onAuth("login",{pubkey:s,authMethod:"readOnly"})}setExtension(s){this.onAuth("login",{pubkey:s,authMethod:"extension"})}setOTP(s,r){this.onAuth("login",{pubkey:s,authMethod:"otp",otpData:r})}setConnect(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.releaseSigner(),yield r.startAuth(),yield r.initSigner(s),r.onAuth("login",s),yield r.endAuth()})()}createAccount(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const[i,a]=s.split("@"),c=yield getBunkerUrl(`_@${a}`,r.params.optionsModal);console.log("create account bunker's url",c);const y=bunkerUrlToInfo(c),w=!!r.params.userInfo;yield r.initSigner(y,{eventToAddAccount:w});const C=[i,a,"",r.params.optionsModal.perms||""];console.log("signer",r.signer);const T=yield new Promise(S=>{r.signer.rpc.sendRequest(y.pubkey,"create_account",C,void 0,S)});if(console.log("create_account pubkey",T),"error"===T.result)throw new Error(T.error);return{bunkerUrl:`bunker://${T.result}?relay=${y.relays?.[0]}`,sk:y.sk}})()}releaseSigner(){this.signer=null,this.localSigner=null;for(const s of this.ndk.pool.relays.keys())this.ndk.pool.removeRelay(s)}logout(s=!1){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s||r.releaseSigner(),localStorageRemoveCurrentAccount(),r.onAuth("logout"),r.emit("updateAccounts")})()}setUserInfo(s){this.params.userInfo=s,this.emit("onUserInfo",s),s&&(localStorageAddAccount(s),this.emit("updateAccounts"))}exportKeys(){return this.params.userInfo?"local"!==this.params.userInfo.authMethod?"":nip19_exports.nsecEncode(this.params.userInfo.sk):""}onAuth(s,r=null){if("logout"!==s&&!r)throw new Error("No user info in onAuth");if(r&&this.params.userInfo&&(r.pubkey!==this.params.userInfo.pubkey||r.authMethod!==this.params.userInfo.authMethod)){const i=new CustomEvent("nlAuth",{detail:{type:"logout"}});console.log("nostr-login auth",i.detail),document.dispatchEvent(i)}this.setUserInfo(r),r&&fetchProfile(r,this.profileNdk).then(i=>{if(this.params.userInfo!==r)return;const a={...this.params.userInfo,picture:i?.image||i?.picture,name:i?.name||i?.displayName||i?.nip05||nip19_exports.npubEncode(r.pubkey)};this.setUserInfo(a)});try{const i=r?nip19_exports.npubEncode(r.pubkey):"",a={type:s};"logout"===s?(this.iframe&&this.iframe.remove(),this.iframe=void 0):(a.pubkey=r.pubkey,r.sk&&(a.localNsec=nip19_exports.nsecEncode(r.sk)),r.relays&&(a.relays=r.relays),r.otpData&&(a.otpData=r.otpData),a.method=r.authMethod||"connect");const c=new CustomEvent("nlAuth",{detail:a});console.log("nostr-login auth",a),document.dispatchEvent(c),this.params.optionsModal.onAuth&&this.params.optionsModal.onAuth(i,a)}catch(i){console.log("onAuth error",i)}}createIframe(s){return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s)return;const r=new URL(s);let i;const a="__nostr-login-worker-iframe-"+r.hostname.replaceAll(".","-");i=document.querySelector(`#${a}`),console.log("iframe",a,i),i||(i=document.createElement("iframe"),i.setAttribute("width","0"),i.setAttribute("height","0"),i.setAttribute("border","0"),i.style.display="none",i.id=a,document.body.append(i)),i.setAttribute("src",s);const c=new ReadyListener(["workerReady","workerError"],r.origin);yield new Promise(w=>{i.addEventListener("load",w)});const y=yield c.wait();return console.log("nostr-login iframe ready",s,y),{iframe:i,port:y[1]}})()}startAuth(){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.readyCallback)throw new Error("Already started");s.readyPromise=new Promise(r=>s.readyCallback=r)})()}endAuth(){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("endAuth",s.params.userInfo),s.params.userInfo&&s.params.userInfo.iframeUrl){const{iframe:r,port:i}=(yield s.createIframe(s.params.userInfo.iframeUrl))||{};if(s.iframe=r,!s.iframe||!i)return;s.signer.rpc.setWorkerIframePort(i)}s.readyCallback(),s.readyCallback=void 0})()}resetAuth(){this.readyCallback&&this.readyCallback(),this.readyCallback=void 0}listen(s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("listen",s,r),!s.iframeUrl)return r.listen(i.nostrConnectSecret);const a=yield i.starterReady.wait();if("starterError"===a[0])throw new Error(a[1]);return i.signer.rpc.parseNostrConnectReply(a[1],i.nostrConnectSecret)})()}initSigner(s,{listen:r=!1,connect:i=!1,eventToAddAccount:a=!1}={}){var c=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(c.signerPromise)try{yield c.signerPromise}catch{}console.log("initSigner info",s);const y=s.iframeUrl?new URL(s.iframeUrl).origin:void 0;return y&&(c.starterReady=new ReadyListener(["starterDone","starterError"],y)),c.emit("onIframeUrl",s.iframeUrl),c.signerPromise=new Promise(function(){var w=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(C,T){try{if(s.relays&&!s.iframeUrl)for(const N of s.relays)c.ndk.addExplicitRelay(N,void 0);yield c.ndk.connect();const S=getPublicKey(s.sk),A=new PrivateKeySigner(s.sk);c.signer=new NDKNip46Signer(c.ndk,s.pubkey,A);const I=new IframeNostrRpc(c.ndk,S,A,y);if(I.setUseNip44(!0),c.signer.rpc=I,I.on(`iframeRestart-${s.pubkey}`,(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const N=s.iframeUrl+(s.iframeUrl.includes("?")?"&":"?")+"pubkey="+s.pubkey+"&rebind="+S;c.emit("iframeRestart",{pubkey:s.pubkey,iframeUrl:N})})),r||I.on("authUrl",N=>{console.log("nostr login auth url",N),c.emit("onAuthUrl",{url:N,iframeUrl:s.iframeUrl,eventToAddAccount:a})}),r){const N=yield c.listen(s,I);c.signer.remotePubkey=N,c.signer.remoteUser=new NDKUser({pubkey:N}),s.pubkey=N,C(N)}else i&&(yield I.connect(s,c.params.optionsModal.perms)),C(void 0)}catch(S){console.log("initSigner failure",S),c.signer=null,T(S)}});return function(C,T){return w.apply(this,arguments)}}()),c.signerPromise})()}authNip46(s,{name:r,bunkerUrl:i,sk:a="",domain:c="",iframeUrl:y=""}){var w=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{const C=bunkerUrlToInfo(i,a);if(isBunkerUrl(r)?C.bunkerUrl=r:(C.nip05=r,C.domain=r.split("@")[1]),c&&(C.domain=c),y&&(C.iframeUrl=y),!C.pubkey||!C.sk||!C.relays?.[0])throw new Error(`Bad bunker url ${i}`);const T=!!w.params.userInfo;console.log("authNip46",s,C),yield w.initSigner(C,{connect:!0,eventToAddAccount:T}),w.onAuth(s,C)}catch(C){throw console.log("nostr login auth failed",C),C}})()}signEvent(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.localSigner?(s.pubkey=getPublicKey(r.localSigner.privateKey),s.id=getEventHash(s),s.sig=yield r.localSigner.sign(s)):(s.pubkey=r.signer?.remotePubkey,s.id=getEventHash(s),s.sig=yield r.signer?.sign(s)),console.log("signed",{event:s}),s})()}codec_call(s,r,i){var a=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise((c,y)=>{a.signer.rpc.sendRequest(a.signer.remotePubkey,s,[r,i],24133,w=>{w.error?y(w.error):c(w.result)})})})()}encrypt04(s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.localSigner.encrypt(new NDKUser({pubkey:s}),r):i.signer.encrypt(new NDKUser({pubkey:s}),r)})()}decrypt04(s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.localSigner.decrypt(new NDKUser({pubkey:s}),r):i.codec_call("nip04_decrypt",s,r)})()}encrypt44(s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.nip44Codec.encrypt(i.localSigner.privateKey,s,r):i.codec_call("nip44_encrypt",s,r)})()}decrypt44(s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.nip44Codec.decrypt(i.localSigner.privateKey,s,r):i.codec_call("nip44_decrypt",s,r)})()}}class ModalManager extends lib$1.EventEmitter{modal=null;params;extensionService;authNostrService;launcherPromise;accounts=[];recents=[];opt;constructor(s,r,i){super(),this.params=s,this.extensionService=i,this.authNostrService=r}waitReady(){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.launcherPromise){try{yield s.launcherPromise}catch{}s.launcherPromise=void 0}})()}launch(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.launcherPromise&&(yield r.waitReady()),r.opt=s;const i=document.createElement("dialog");r.modal=document.createElement("nl-auth"),r.modal.accounts=r.accounts,r.modal.recents=r.recents,r.modal.setAttribute("dark-mode",String(getDarkMode(s))),s.theme&&r.modal.setAttribute("theme",s.theme),s.startScreen&&r.modal.setAttribute("start-screen",s.startScreen),r.modal.setAttribute("bunkers",s.bunkers?s.bunkers:"nsec.app,highlighter.com"),void 0!==s.methods&&(r.modal.authMethods=s.methods),void 0!==s.localSignup&&(r.modal.localSignup=s.localSignup),s.title&&(r.modal.welcomeTitle=s.title),s.description&&(r.modal.welcomeDescription=s.description),r.modal.hasExtension=r.extensionService.hasExtension(),r.modal.hasOTP=!!s.otpRequestUrl&&!!s.otpReplyUrl,r.modal.isLoadingExtension=!1,r.modal.isLoading=!1,[r.modal.connectionString,r.modal.connectionStringServices]=yield r.authNostrService.getNostrConnectServices(),i.appendChild(r.modal),document.body.appendChild(i);let a="";return r.launcherPromise=new Promise((c,y)=>{i.addEventListener("close",()=>{y(new Error("Closed")),r.authNostrService.resetAuth(),r.modal&&(document.body.removeChild(r.modal.parentNode),r.modal=null)});const w=function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){r.modal&&(r.modal.isLoading=!1),yield r.authNostrService.endAuth(),i.close(),r.modal=null,me()});return function(pe){return be.apply(this,arguments)}}(),C=function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me,pe){r.modal&&(r.modal.isLoading=!0);try{pe&&!pe.start||(yield r.authNostrService.startAuth()),yield me(),pe&&!pe.end||(yield w(c))}catch(Te){console.log("error",Te),r.modal&&(r.modal.isLoading=!1,r.modal.authUrl="",r.modal.iframeUrl="",r.modal.error=Te.toString())}});return function(pe,Te){return be.apply(this,arguments)}}(),T=function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me,pe){yield C((0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const Te=yield getBunkerUrl(me,r.params.optionsModal);yield r.authNostrService.authNip46("login",{name:me,bunkerUrl:Te,domain:pe})}))});return function(pe,Te){return be.apply(this,arguments)}}(),S=function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{bunkerUrl:pe,sk:Te}=yield r.authNostrService.createAccount(me);yield r.authNostrService.authNip46("signup",{name:me,bunkerUrl:pe,sk:Te})}))});return function(pe){return be.apply(this,arguments)}}(),A=function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{yield navigator.clipboard.writeText(r.authNostrService.exportKeys()),localStorageSetItem("backupKey","true")}catch(me){console.error("Failed to copy to clipboard: ",me)}});return function(){return be.apply(this,arguments)}}(),I=function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{iframeUrl:pe}=me,Te=r.authNostrService.prepareImportUrl(me.link);r.modal&&pe&&(r.modal.authUrl=Te,r.modal.iframeUrl=pe,r.modal.isLoading=!1,console.log("nostrconnect authUrl",r.modal.authUrl,r.modal.iframeUrl)),yield r.authNostrService.importAndConnect(me)}))});return function(pe){return be.apply(this,arguments)}}(),N=function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{relay:pe,domain:Te,link:xe,iframeUrl:Re}=me||{};console.log("nostrConnect",me,pe,Te,xe,Re),r.modal&&(Re&&(r.modal.authUrl=xe,r.modal.iframeUrl=Re,r.modal.isLoading=!1,console.log("nostrconnect authUrl",r.modal.authUrl,r.modal.iframeUrl)),me||(r.modal.isLoading=!1)),yield r.authNostrService.nostrConnect(pe,{domain:Te,link:xe,iframeUrl:Re})}))});return function(pe){return be.apply(this,arguments)}}(),K=function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!me)throw new Error("Please enter some nickname");yield r.authNostrService.localSignup(me)}))});return function(pe){return be.apply(this,arguments)}}();if(!r.modal)throw new Error("WTH?");r.modal.addEventListener("handleContinue",()=>{r.modal&&(r.modal.isLoading=!0,r.emit("onAuthUrlClick",r.modal.authUrl))}),r.modal.addEventListener("nlLogin",be=>{T(be.detail)}),r.modal.addEventListener("nlSignup",be=>{S(be.detail)}),r.modal.addEventListener("nlLocalSignup",be=>{K(be.detail)}),r.modal.addEventListener("nlImportAccount",be=>{I(be.detail)}),r.modal.addEventListener("nlExportKeys",be=>{A()}),r.modal.addEventListener("handleLogoutBanner",()=>{r.emit("onLogoutBanner")}),r.modal.addEventListener("nlNostrConnect",be=>{N(be.detail)}),r.modal.addEventListener("nlNostrConnectDefault",()=>{N()}),r.modal.addEventListener("nlSwitchAccount",be=>{r.emit("onSwitchAccount",be.detail),setTimeout(()=>i.close(),300)}),r.modal.addEventListener("nlLoginRecentAccount",function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){const pe=me.detail;if("readOnly"===pe.authMethod)r.authNostrService.setReadOnly(pe.pubkey),i.close();else if("otp"===pe.authMethod)try{r.modal.dispatchEvent(new CustomEvent("nlLoginOTPUser",{detail:pe.nip05||pe.pubkey}))}catch(Te){console.error(Te)}else if("extension"===pe.authMethod)yield r.extensionService.trySetExtensionForPubkey(pe.pubkey),i.close();else{const Te=pe.bunkerUrl||pe.nip05;if(!Te)throw new Error("Bad connect info");T(Te,pe.domain)}});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlRemoveRecent",be=>{localStorageRemoveRecent(be.detail),r.emit("updateAccounts")});const Z=function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){let pe="";if(me.includes("@")){const{error:Te,pubkey:xe}=yield checkNip05(me);if(!xe)throw new Error(Te);pe=xe}else if(me.startsWith("npub")){const{type:Te,data:xe}=nip19_exports.decode(me);if("npub"!==Te)throw new Error("Bad npub");pe=xe}else 64===me.trim().length&&(pe=me.trim(),nip19_exports.npubEncode(pe));return pe});return function(pe){return be.apply(this,arguments)}}();r.modal.addEventListener("nlLoginReadOnly",function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const pe=me.detail,Te=yield Z(pe);r.authNostrService.setReadOnly(Te)}))});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlLoginExtension",(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.extensionService.hasExtension())throw new Error("No extension");yield C((0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.modal&&(r.modal.isLoadingExtension=!0,yield r.extensionService.setExtension(),r.modal.isLoadingExtension=!1)}))})),r.modal.addEventListener("nlLoginOTPUser",function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.modal)return;const pe=me.detail,Te=yield Z(pe),xe=r.opt.otpRequestUrl+(r.opt.otpRequestUrl.includes("?")?"&":"?")+"pubkey="+Te,Re=yield fetch(xe);if(200!==Re.status)throw console.warn("nostr-login: bad otp reply",Re),new Error("Failed to send DM");r.modal.isOTP=!0,a=Te,r.modal.isLoading=!1}),{start:!0})});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlLoginOTPCode",function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.modal)return;const pe=me.detail,Te=r.opt.otpReplyUrl+(r.opt.otpRequestUrl.includes("?")?"&":"?")+"pubkey="+a+"&code="+pe,xe=yield fetch(Te);if(200!==xe.status)throw console.warn("nostr-login: bad otp reply",xe),new Error("Invalid code");const Re=yield xe.text();r.authNostrService.setOTP(a,Re),r.modal.isOTP=!1}),{end:!0})});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlCheckSignup",function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){const{available:pe,taken:Te,error:xe}=yield checkNip05(me.detail);r.modal&&(r.modal.error=String(xe),!xe&&Te&&(r.modal.error="Already taken"),r.modal.signupNameIsAvailable=pe)});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlCheckLogin",function(){var be=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){const{available:pe,taken:Te,error:xe}=yield checkNip05(me.detail);r.modal&&(r.modal.error=String(xe),pe&&(r.modal.error="Name not found"),r.modal.loginIsGood=Te)});return function(me){return be.apply(this,arguments)}}());const ne=()=>{r.modal&&(r.modal.isLoading=!1),i.close(),y(new Error("Cancelled"))};r.modal.addEventListener("stopFetchHandler",ne),r.modal.addEventListener("nlCloseModal",ne),r.modal.addEventListener("nlChangeDarkMode",be=>{setDarkMode(be.detail),document.dispatchEvent(new CustomEvent("nlDarkMode",{detail:be.detail}))}),r.on("onIframeAuthUrlCallEnd",()=>{i.close(),r.modal=null,c()}),i.showModal()}),r.launcherPromise})()}showIframeUrl(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield r.waitReady(),r.launch({startScreen:"iframe"}).catch(()=>console.log("closed auth iframe")),r.modal.authUrl=s})()}connectModals(s){var r=this;const i=function(){var c=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(y){yield r.launch(y)});return function(w){return c.apply(this,arguments)}}(),a=document.getElementsByTagName("nl-button");for(let c=0;c{this.checkExtension(s)&&clearTimeout(r)},100)}checkExtension(s){return!(this.nostrExtension||!window.nostr||window.nostr===s||(this.initExtension(s),0))}initExtension(s,r){var i=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.nostrExtension=window.nostr,window.nostr=s,"extension"===i.params.userInfo?.authMethod&&(yield i.trySetExtensionForPubkey(i.params.userInfo.pubkey)),r||setTimeout(()=>{window.nostr!==s&&i.nostrExtension!==window.nostr&&i.initExtension(s,!0)},300)})()}setExtensionReadPubkey(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){window.nostr=r.nostrExtension;const i=yield window.nostr.getPublicKey();s&&s!==i?r.emit("extensionLogout"):r.emit("extensionLogin",i)})()}trySetExtensionForPubkey(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(r.nostrExtension)return r.setExtensionReadPubkey(s)})()}setExtension(){var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.setExtensionReadPubkey()})()}unsetExtension(s){window.nostr===this.nostrExtension&&(window.nostr=s)}getExtension(){return this.nostrExtension}hasExtension(){return!!this.nostrExtension}}class NostrParams{userInfo;optionsModal;constructor(){this.userInfo=null,this.optionsModal={theme:"default",startScreen:"welcome",devOverrideBunkerOrigin:""}}}class Popup{popup=null;constructor(){}openPopup(s){if((!this.popup||this.popup.closed)&&(this.popup=window.open(s,"_blank","width=400,height=700"),console.log("popup",this.popup),!this.popup))throw new Error("Popup blocked. Try again, please!")}closePopup(){try{this.popup?.close(),this.popup=null}catch{}}}const CALL_TIMEOUT=5e3;class ProcessManager extends lib$1.EventEmitter{callCount=0;callTimer;constructor(){super()}onAuthUrl(){this.callTimer&&clearTimeout(this.callTimer)}onIframeUrl(){this.callTimer&&clearTimeout(this.callTimer)}wait(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let i,a;r.callTimer||(r.callTimer=setTimeout(()=>r.emit("onCallTimeout"),CALL_TIMEOUT)),r.callCount||r.emit("onCallStart"),r.callCount++;try{a=yield s()}catch(c){i=c}if(r.callCount--,r.emit("onCallEnd"),r.callTimer&&clearTimeout(r.callTimer),r.callTimer=void 0,i)throw i;return a})()}}class NostrLoginInitializer{extensionService;params;authNostrService;nostr;processManager;popupManager;bannerManager;modalManager;constructor(){var s=this;this.params=new NostrParams,this.processManager=new ProcessManager,this.popupManager=new Popup,this.bannerManager=new BannerManager(this.params),this.authNostrService=new AuthNostrService(this.params),this.extensionService=new NostrExtensionService(this.params),this.modalManager=new ModalManager(this.params,this.authNostrService,this.extensionService);const r={waitReady:(i=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield s.authNostrService.waitReady(),yield s.modalManager.waitReady()}),function(){return i.apply(this,arguments)}),getUserInfo:()=>this.params.userInfo,getSigner:()=>{if("readOnly"===this.params.userInfo.authMethod)throw new Error("Read only");return"extension"===this.params.userInfo.authMethod?this.extensionService.getExtension():this.authNostrService},launch:()=>this.launch(),wait:i=>this.processManager.wait(i)};var i;this.nostr=new Nostr(r),this.processManager.on("onCallTimeout",()=>{this.bannerManager.onCallTimeout()}),this.processManager.on("onCallEnd",()=>{this.bannerManager.onCallEnd(),this.modalManager.onCallEnd()}),this.processManager.on("onCallStart",()=>{this.bannerManager.onCallStart()}),this.authNostrService.on("onIframeUrl",i=>{this.modalManager.onIframeUrl(i)}),this.authNostrService.on("iframeRestart",({iframeUrl:i})=>{this.processManager.onIframeUrl(),this.bannerManager.onIframeRestart(i)}),this.authNostrService.on("onAuthUrl",({url:i,iframeUrl:a,eventToAddAccount:c})=>{this.processManager.onAuthUrl(),c?this.modalManager.onAuthUrl(i):this.params.userInfo?this.bannerManager.onAuthUrl(i,a):this.modalManager.onAuthUrl(i)}),this.authNostrService.on("updateAccounts",()=>{this.updateAccounts()}),this.authNostrService.on("onUserInfo",i=>{this.bannerManager.onUserInfo(i)}),this.modalManager.on("onAuthUrlClick",i=>{this.openPopup(i)}),this.bannerManager.on("onIframeAuthUrlClick",i=>{this.modalManager.showIframeUrl(i)}),this.modalManager.on("onSwitchAccount",function(){var i=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){s.switchAccount(a)});return function(a){return i.apply(this,arguments)}}()),this.modalManager.on("onLogoutBanner",function(){var i=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){logout()});return function(a){return i.apply(this,arguments)}}()),this.bannerManager.on("onConfirmLogout",(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){console.log(4),s.launch("confirm-logout")})),this.modalManager.on("updateAccounts",()=>{this.updateAccounts()}),this.bannerManager.on("logout",()=>{logout()}),this.bannerManager.on("onAuthUrlClick",i=>{this.openPopup(i)}),this.bannerManager.on("onSwitchAccount",function(){var i=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){s.switchAccount(a)});return function(a){return i.apply(this,arguments)}}()),this.bannerManager.on("import",()=>{this.launch("import")}),this.extensionService.on("extensionLogin",i=>{this.authNostrService.setExtension(i)}),this.extensionService.on("extensionLogout",()=>{logout()}),this.bannerManager.on("launch",i=>{this.launch(i)})}openPopup(s){this.popupManager.openPopup(s)}switchAccount(s){var r=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("nostr login switch to info",s),r.extensionService.unsetExtension(r.nostr),"readOnly"===s.authMethod)r.authNostrService.setReadOnly(s.pubkey);else if("otp"===s.authMethod)r.authNostrService.setOTP(s.pubkey,s.otpData||"");else if("local"===s.authMethod&&s.sk)r.authNostrService.setLocal(s);else if("extension"===s.authMethod)yield r.extensionService.trySetExtensionForPubkey(s.pubkey);else{if(!("connect"===s.authMethod&&s.sk&&s.relays&&s.relays[0]))throw new Error("Bad auth info");r.authNostrService.setConnect(s)}})()}updateAccounts(){const s=localStorageGetAccounts(),r=localStorageGetRecents();this.bannerManager.onUpdateAccounts(s),this.modalManager.onUpdateAccounts(s,r)}launch=s=>{const r=localStorageGetRecents(),i=localStorageGetAccounts(),a=s?{startScreen:s}:this.params.optionsModal;return s||!r?.length&&!i?.length||(a.startScreen="switch-account"),this.modalManager.launch(a).catch(()=>{})};init=(()=>{var r,s=this;return r=(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(i){s.extensionService.startCheckingExtension(s.nostr),window.nostr=s.nostr,s.modalManager.connectModals(i),s.bannerManager.launchAuthBanner(i),i&&(s.params.optionsModal={...i});try{const a=localStorageGetCurrent();if(a){if(!a.pubkey)throw new Error("Bad stored info");yield s.switchAccount(a)}}catch(a){console.log("nostr login init error",a),yield logout()}s.updateAccounts()}),function(i){return r.apply(this,arguments)}})();logout=(()=>{var s=this;return(0,E_Git_block_core_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.extensionService.unsetExtension(s.nostr),yield s.authNostrService.logout()})})();setDarkMode=s=>{localStorageSetItem("nl-dark-mode",`${s}`),this.bannerManager.onDarkMode(s),this.modalManager.onDarkMode(s)}}const initializer=new NostrLoginInitializer,{init,launch,logout,setDarkMode}=initializer;document.addEventListener("nlLogout",logout),document.addEventListener("nlLaunch",o=>{launch(o.detail||"")}),document.addEventListener("nlDarkMode",o=>{setDarkMode(!!o.detail)})},5462:(o,s,r)=>{"use strict";r.d(s,{lo:()=>Hc,pC:()=>ha,Bq:()=>tl,dq:()=>ul,lG:()=>Uc,sh:()=>Rl,Qe:()=>Wc});var i={};r.r(i),r.d(i,{OG:()=>j,My:()=>fn,Ph:()=>an,lX:()=>Xn,Id:()=>xn,fg:()=>ot,qj:()=>zt,aT:()=>Qt,lq:()=>En,z:()=>Kt,Q5:()=>In});var a=r(467);function c(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`Wrong positive integer: ${b}`)}function w(b,...x){if(!(b instanceof Uint8Array))throw new Error("Expected Uint8Array");if(x.length>0&&!x.includes(b.length))throw new Error(`Expected Uint8Array of length ${x}, not of length=${b.length}`)}function T(b,x=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(x&&b.finished)throw new Error("Hash#digest() has already been called")}const N="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,K=b=>b instanceof Uint8Array,be=b=>new DataView(b.buffer,b.byteOffset,b.byteLength),me=(b,x)=>b<<32-x|b>>>x;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Ie(b){if("string"==typeof b&&(b=function ae(b){if("string"!=typeof b)throw new Error("utf8ToBytes expected string, got "+typeof b);return new Uint8Array((new TextEncoder).encode(b))}(b)),!K(b))throw new Error("expected Uint8Array, got "+typeof b);return b}class st{clone(){return this._cloneInto()}}function at(b){const x=G=>b().update(Ie(G)).digest(),M=b();return x.outputLen=M.outputLen,x.blockLen=M.blockLen,x.create=()=>b(),x}function yn(b=32){if(N&&"function"==typeof N.getRandomValues)return N.getRandomValues(new Uint8Array(b));throw new Error("crypto.getRandomValues must be defined")}class bn extends st{constructor(x,M,G,J){super(),this.blockLen=x,this.outputLen=M,this.padOffset=G,this.isLE=J,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(x),this.view=be(this.buffer)}update(x){T(this);const{view:M,buffer:G,blockLen:J}=this,ye=(x=Ie(x)).length;for(let Ne=0;NeJ-Ne&&(this.process(G,0),Ne=0);for(let jt=Ne;jt>J&ye),Ue=Number(M&ye),xt=G?0:4;b.setUint32(x+(G?4:0),Ne,G),b.setUint32(x+xt,Ue,G)})(G,J-8,BigInt(8*this.length),ye),this.process(G,0);const Ue=be(x),rt=this.outputLen;if(rt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const xt=rt/4,Gt=this.get();if(xt>Gt.length)throw new Error("_sha2: outputLen bigger than state");for(let jt=0;jtb&x^~b&M,bt=(b,x,M)=>b&x^b&M^x&M,Ge=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]),Fe=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ft=new Uint32Array(64);class ze extends bn{constructor(){super(64,32,8,!1),this.A=0|Fe[0],this.B=0|Fe[1],this.C=0|Fe[2],this.D=0|Fe[3],this.E=0|Fe[4],this.F=0|Fe[5],this.G=0|Fe[6],this.H=0|Fe[7]}get(){const{A:x,B:M,C:G,D:J,E:ye,F:Ne,G:Ue,H:rt}=this;return[x,M,G,J,ye,Ne,Ue,rt]}set(x,M,G,J,ye,Ne,Ue,rt){this.A=0|x,this.B=0|M,this.C=0|G,this.D=0|J,this.E=0|ye,this.F=0|Ne,this.G=0|Ue,this.H=0|rt}process(x,M){for(let jt=0;jt<16;jt++,M+=4)Ft[jt]=x.getUint32(M,!1);for(let jt=16;jt<64;jt++){const cn=Ft[jt-15],gn=Ft[jt-2],tn=me(cn,7)^me(cn,18)^cn>>>3,Yt=me(gn,17)^me(gn,19)^gn>>>10;Ft[jt]=Yt+Ft[jt-7]+tn+Ft[jt-16]|0}let{A:G,B:J,C:ye,D:Ne,E:Ue,F:rt,G:xt,H:Gt}=this;for(let jt=0;jt<64;jt++){const gn=Gt+(me(Ue,6)^me(Ue,11)^me(Ue,25))+Qe(Ue,rt,xt)+Ge[jt]+Ft[jt]|0,Yt=(me(G,2)^me(G,13)^me(G,22))+bt(G,J,ye)|0;Gt=xt,xt=rt,rt=Ue,Ue=Ne+gn|0,Ne=ye,ye=J,J=G,G=gn+Yt|0}G=G+this.A|0,J=J+this.B|0,ye=ye+this.C|0,Ne=Ne+this.D|0,Ue=Ue+this.E|0,rt=rt+this.F|0,xt=xt+this.G|0,Gt=Gt+this.H|0,this.set(G,J,ye,Ne,Ue,rt,xt,Gt)}roundClean(){Ft.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Ke=at(()=>new ze),se=(BigInt(0),BigInt(1)),Ze=BigInt(2),Rt=b=>b instanceof Uint8Array,Jt=Array.from({length:256},(b,x)=>x.toString(16).padStart(2,"0"));function fn(b){if(!Rt(b))throw new Error("Uint8Array expected");let x="";for(let M=0;MG+J.length,0));let M=0;return b.forEach(G=>{if(!Rt(G))throw new Error("Uint8Array expected");x.set(G,M),M+=G.length}),x}const j=b=>(Ze<new Uint8Array(b),it=b=>Uint8Array.from(b);function ot(b,x,M){if("number"!=typeof b||b<2)throw new Error("hashLen must be a number");if("number"!=typeof x||x<2)throw new Error("qByteLen must be a number");if("function"!=typeof M)throw new Error("hmacFn must be a function");let G=De(b),J=De(b),ye=0;const Ne=()=>{G.fill(1),J.fill(0),ye=0},Ue=(...jt)=>M(J,G,...jt),rt=(jt=De())=>{J=Ue(it([0]),jt),G=Ue(),0!==jt.length&&(J=Ue(it([1]),jt),G=Ue())},xt=()=>{if(ye++>=1e3)throw new Error("drbg: tried 1000 values");let jt=0;const cn=[];for(;jt{let gn;for(Ne(),rt(jt);!(gn=cn(xt()));)rt();return Ne(),gn}}const Tt={bigint:b=>"bigint"==typeof b,function:b=>"function"==typeof b,boolean:b=>"boolean"==typeof b,string:b=>"string"==typeof b,stringOrUint8Array:b=>"string"==typeof b||b instanceof Uint8Array,isSafeInteger:b=>Number.isSafeInteger(b),array:b=>Array.isArray(b),field:(b,x)=>x.Fp.isValid(b),hash:b=>"function"==typeof b&&Number.isSafeInteger(b.outputLen)};function In(b,x,M={}){const G=(J,ye,Ne)=>{const Ue=Tt[ye];if("function"!=typeof Ue)throw new Error(`Invalid validator "${ye}", expected function`);const rt=b[J];if(!(Ne&&void 0===rt||Ue(rt,b)))throw new Error(`Invalid param ${String(J)}=${rt} (${typeof rt}), expected ${ye}`)};for(const[J,ye]of Object.entries(x))G(J,ye,!1);for(const[J,ye]of Object.entries(M))G(J,ye,!0);return b}const Vt=BigInt(0),dn=BigInt(1),Pn=BigInt(2),Fn=BigInt(3),Bn=BigInt(4),cr=BigInt(5),Jr=BigInt(8);function Bt(b,x){const M=b%x;return M>=Vt?M:x+M}function Ee(b,x,M){if(M<=Vt||x 0");if(M===dn)return Vt;let G=dn;for(;x>Vt;)x&dn&&(G=G*b%M),b=b*b%M,x>>=dn;return G}function lt(b,x,M){let G=b;for(;x-- >Vt;)G*=G,G%=M;return G}function Pe(b,x){if(b===Vt||x<=Vt)throw new Error(`invert: expected positive integers, got n=${b} mod=${x}`);let M=Bt(b,x),G=x,J=Vt,ye=dn,Ne=dn,Ue=Vt;for(;M!==Vt;){const xt=G/M,Gt=G%M,jt=J-Ne*xt,cn=ye-Ue*xt;G=M,M=Gt,J=Ne,ye=Ue,Ne=jt,Ue=cn}if(G!==dn)throw new Error("invert: does not exist");return Bt(J,x)}BigInt(9),BigInt(16);const mn=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function rn(b,x){const M=void 0!==x?x:b.toString(2).length;return{nBitLength:M,nByteLength:Math.ceil(M/8)}}function Hn(b){if("bigint"!=typeof b)throw new Error("field order must be bigint");const x=b.toString(2).length;return Math.ceil(x/8)}function fr(b){const x=Hn(b);return x+Math.ceil(x/2)}class Oi extends st{constructor(x,M){super(),this.finished=!1,this.destroyed=!1,function C(b){if("function"!=typeof b||"function"!=typeof b.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");c(b.outputLen),c(b.blockLen)}(x);const G=Ie(M);if(this.iHash=x.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 J=this.blockLen,ye=new Uint8Array(J);ye.set(G.length>J?x.create().update(G).digest():G);for(let Ne=0;Nenew Oi(b,x).update(M).digest();Uo.create=(b,x)=>new Oi(b,x);const oi=BigInt(0),ts=BigInt(1);function bo(b){return function or(b){In(b,mn.reduce((G,J)=>(G[J]="function",G),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(b.Fp),In(b,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...rn(b.n,b.nBitLength),...b,p:b.Fp.ORDER})}const{Ph:Co,aT:Is}=i,eo={Err:class extends Error{constructor(x=""){super(x)}},_parseInt(b){const{Err:x}=eo;if(b.length<2||2!==b[0])throw new x("Invalid signature integer tag");const M=b[1],G=b.subarray(2,M+2);if(!M||G.length!==M)throw new x("Invalid signature integer: wrong length");if(128&G[0])throw new x("Invalid signature integer: negative");if(0===G[0]&&!(128&G[1]))throw new x("Invalid signature integer: unnecessary leading zero");return{d:Co(G),l:b.subarray(M+2)}},toSig(b){const{Err:x}=eo,M="string"==typeof b?Is(b):b;if(!(M instanceof Uint8Array))throw new Error("ui8a expected");let G=M.length;if(G<2||48!=M[0])throw new x("Invalid signature tag");if(M[1]!==G-2)throw new x("Invalid signature: incorrect length");const{d:J,l:ye}=eo._parseInt(M.subarray(2)),{d:Ne,l:Ue}=eo._parseInt(ye);if(Ue.length)throw new x("Invalid signature: left bytes after parsing");return{r:J,s:Ne}},hexFromSig(b){const x=xt=>8&Number.parseInt(xt[0],16)?"00"+xt:xt,M=xt=>{const Gt=xt.toString(16);return 1&Gt.length?`0${Gt}`:Gt},G=x(M(b.s)),J=x(M(b.r)),ye=G.length/2,Ne=J.length/2,Ue=M(ye),rt=M(Ne);return`30${M(Ne+ye+4)}02${rt}${J}02${Ue}${G}`}},oo=BigInt(0),Bi=BigInt(1),Je=(BigInt(2),BigInt(3));function et(b){const x=function ve(b){const x=bo(b);return In(x,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...x})}(b),{Fp:M,n:G}=x,J=M.BYTES+1,ye=2*M.BYTES+1;function Ue(er){return Bt(er,G)}function rt(er){return Pe(er,G)}const{ProjectivePoint:xt,normPrivateKeyToScalar:Gt,weierstrassEquation:jt,isWithinCurveOrder:cn}=function Et(b){const x=function Xo(b){const x=bo(b);In(x,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:M,Fp:G,a:J}=x;if(M){if(!G.eql(J,G.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof M||"bigint"!=typeof M.beta||"function"!=typeof M.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...x})}(b),{Fp:M}=x,G=x.toBytes||((tn,Yt,qt)=>{const Dn=Yt.toAffine();return xn(Uint8Array.from([4]),M.toBytes(Dn.x),M.toBytes(Dn.y))}),J=x.fromBytes||(tn=>{const Yt=tn.subarray(1);return{x:M.fromBytes(Yt.subarray(0,M.BYTES)),y:M.fromBytes(Yt.subarray(M.BYTES,2*M.BYTES))}});function ye(tn){const{a:Yt,b:qt}=x,Dn=M.sqr(tn),Tn=M.mul(Dn,tn);return M.add(M.add(Tn,M.mul(tn,Yt)),qt)}if(!M.eql(M.sqr(x.Gy),ye(x.Gx)))throw new Error("bad generator point: equation left != right");function Ne(tn){return"bigint"==typeof tn&&ooM.eql(rr,M.ZERO);return Tn(qt)&&Tn(Dn)?jt.ZERO:new jt(qt,Dn,M.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Yt){const qt=M.invertBatch(Yt.map(Dn=>Dn.pz));return Yt.map((Dn,Tn)=>Dn.toAffine(qt[Tn])).map(jt.fromAffine)}static fromHex(Yt){const qt=jt.fromAffine(J(zt("pointHex",Yt)));return qt.assertValidity(),qt}static fromPrivateKey(Yt){return jt.BASE.multiply(rt(Yt))}_setWindowSize(Yt){this._WINDOW_SIZE=Yt,xt.delete(this)}assertValidity(){if(this.is0()){if(x.allowInfinityPoint&&!M.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:Yt,y:qt}=this.toAffine();if(!M.isValid(Yt)||!M.isValid(qt))throw new Error("bad point: x or y not FE");const Dn=M.sqr(qt),Tn=ye(Yt);if(!M.eql(Dn,Tn))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Yt}=this.toAffine();if(M.isOdd)return!M.isOdd(Yt);throw new Error("Field doesn't support isOdd")}equals(Yt){Gt(Yt);const{px:qt,py:Dn,pz:Tn}=this,{px:rr,py:ar,pz:Br}=Yt,br=M.eql(M.mul(qt,Br),M.mul(rr,Tn)),Nr=M.eql(M.mul(Dn,Br),M.mul(ar,Tn));return br&&Nr}negate(){return new jt(this.px,M.neg(this.py),this.pz)}double(){const{a:Yt,b:qt}=x,Dn=M.mul(qt,Je),{px:Tn,py:rr,pz:ar}=this;let Br=M.ZERO,br=M.ZERO,Nr=M.ZERO,Vr=M.mul(Tn,Tn),Ci=M.mul(rr,rr),fi=M.mul(ar,ar),li=M.mul(Tn,rr);return li=M.add(li,li),Nr=M.mul(Tn,ar),Nr=M.add(Nr,Nr),Br=M.mul(Yt,Nr),br=M.mul(Dn,fi),br=M.add(Br,br),Br=M.sub(Ci,br),br=M.add(Ci,br),br=M.mul(Br,br),Br=M.mul(li,Br),Nr=M.mul(Dn,Nr),fi=M.mul(Yt,fi),li=M.sub(Vr,fi),li=M.mul(Yt,li),li=M.add(li,Nr),Nr=M.add(Vr,Vr),Vr=M.add(Nr,Vr),Vr=M.add(Vr,fi),Vr=M.mul(Vr,li),br=M.add(br,Vr),fi=M.mul(rr,ar),fi=M.add(fi,fi),Vr=M.mul(fi,li),Br=M.sub(Br,Vr),Nr=M.mul(fi,Ci),Nr=M.add(Nr,Nr),Nr=M.add(Nr,Nr),new jt(Br,br,Nr)}add(Yt){Gt(Yt);const{px:qt,py:Dn,pz:Tn}=this,{px:rr,py:ar,pz:Br}=Yt;let br=M.ZERO,Nr=M.ZERO,Vr=M.ZERO;const Ci=x.a,fi=M.mul(x.b,Je);let li=M.mul(qt,rr),Ji=M.mul(Dn,ar),ji=M.mul(Tn,Br),qi=M.add(qt,Dn),er=M.add(rr,ar);qi=M.mul(qi,er),er=M.add(li,Ji),qi=M.sub(qi,er),er=M.add(qt,Tn);let wr=M.add(rr,Br);return er=M.mul(er,wr),wr=M.add(li,ji),er=M.sub(er,wr),wr=M.add(Dn,Tn),br=M.add(ar,Br),wr=M.mul(wr,br),br=M.add(Ji,ji),wr=M.sub(wr,br),Vr=M.mul(Ci,er),br=M.mul(fi,ji),Vr=M.add(br,Vr),br=M.sub(Ji,Vr),Vr=M.add(Ji,Vr),Nr=M.mul(br,Vr),Ji=M.add(li,li),Ji=M.add(Ji,li),ji=M.mul(Ci,ji),er=M.mul(fi,er),Ji=M.add(Ji,ji),ji=M.sub(li,ji),ji=M.mul(Ci,ji),er=M.add(er,ji),li=M.mul(Ji,er),Nr=M.add(Nr,li),li=M.mul(wr,er),br=M.mul(qi,br),br=M.sub(br,li),li=M.mul(qi,Ji),Vr=M.mul(wr,Vr),Vr=M.add(Vr,li),new jt(br,Nr,Vr)}subtract(Yt){return this.add(Yt.negate())}is0(){return this.equals(jt.ZERO)}wNAF(Yt){return gn.wNAFCached(this,xt,Yt,qt=>{const Dn=M.invertBatch(qt.map(Tn=>Tn.pz));return qt.map((Tn,rr)=>Tn.toAffine(Dn[rr])).map(jt.fromAffine)})}multiplyUnsafe(Yt){const qt=jt.ZERO;if(Yt===oo)return qt;if(Ue(Yt),Yt===Bi)return this;const{endo:Dn}=x;if(!Dn)return gn.unsafeLadder(this,Yt);let{k1neg:Tn,k1:rr,k2neg:ar,k2:Br}=Dn.splitScalar(Yt),br=qt,Nr=qt,Vr=this;for(;rr>oo||Br>oo;)rr&Bi&&(br=br.add(Vr)),Br&Bi&&(Nr=Nr.add(Vr)),Vr=Vr.double(),rr>>=Bi,Br>>=Bi;return Tn&&(br=br.negate()),ar&&(Nr=Nr.negate()),Nr=new jt(M.mul(Nr.px,Dn.beta),Nr.py,Nr.pz),br.add(Nr)}multiply(Yt){Ue(Yt);let Dn,Tn,qt=Yt;const{endo:rr}=x;if(rr){const{k1neg:ar,k1:Br,k2neg:br,k2:Nr}=rr.splitScalar(qt);let{p:Vr,f:Ci}=this.wNAF(Br),{p:fi,f:li}=this.wNAF(Nr);Vr=gn.constTimeNegate(ar,Vr),fi=gn.constTimeNegate(br,fi),fi=new jt(M.mul(fi.px,rr.beta),fi.py,fi.pz),Dn=Vr.add(fi),Tn=Ci.add(li)}else{const{p:ar,f:Br}=this.wNAF(qt);Dn=ar,Tn=Br}return jt.normalizeZ([Dn,Tn])[0]}multiplyAndAddUnsafe(Yt,qt,Dn){const Tn=jt.BASE,rr=(Br,br)=>br!==oo&&br!==Bi&&Br.equals(Tn)?Br.multiply(br):Br.multiplyUnsafe(br),ar=rr(this,qt).add(rr(Yt,Dn));return ar.is0()?void 0:ar}toAffine(Yt){const{px:qt,py:Dn,pz:Tn}=this,rr=this.is0();null==Yt&&(Yt=rr?M.ONE:M.inv(Tn));const ar=M.mul(qt,Yt),Br=M.mul(Dn,Yt),br=M.mul(Tn,Yt);if(rr)return{x:M.ZERO,y:M.ZERO};if(!M.eql(br,M.ONE))throw new Error("invZ was invalid");return{x:ar,y:Br}}isTorsionFree(){const{h:Yt,isTorsionFree:qt}=x;if(Yt===Bi)return!0;if(qt)return qt(jt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Yt,clearCofactor:qt}=x;return Yt===Bi?this:qt?qt(jt,this):this.multiplyUnsafe(x.h)}toRawBytes(Yt=!0){return this.assertValidity(),G(jt,this,Yt)}toHex(Yt=!0){return fn(this.toRawBytes(Yt))}}jt.BASE=new jt(x.Gx,x.Gy,M.ONE),jt.ZERO=new jt(M.ZERO,M.ONE,M.ZERO);const cn=x.nBitLength,gn=function so(b,x){const M=(J,ye)=>{const Ne=ye.negate();return J?Ne:ye},G=J=>({windows:Math.ceil(x/J)+1,windowSize:2**(J-1)});return{constTimeNegate:M,unsafeLadder(J,ye){let Ne=b.ZERO,Ue=J;for(;ye>oi;)ye&ts&&(Ne=Ne.add(Ue)),Ue=Ue.double(),ye>>=ts;return Ne},precomputeWindow(J,ye){const{windows:Ne,windowSize:Ue}=G(ye),rt=[];let xt=J,Gt=xt;for(let jt=0;jt>=gn,qt>rt&&(qt-=cn,Ne+=ts);const Dn=Yt,Tn=Yt+Math.abs(qt)-1,ar=qt<0;0===qt?Gt=Gt.add(M(tn%2!=0,ye[Dn])):xt=xt.add(M(ar,ye[Tn]))}return{p:xt,f:Gt}},wNAFCached(J,ye,Ne,Ue){const rt=J._WINDOW_SIZE||1;let xt=ye.get(J);return xt||(xt=this.precomputeWindow(J,rt),1!==rt&&ye.set(J,Ue(xt))),this.wNAF(rt,xt,Ne)}}}(jt,x.endo?Math.ceil(cn/2):cn);return{CURVE:x,ProjectivePoint:jt,normPrivateKeyToScalar:rt,weierstrassEquation:ye,isWithinCurveOrder:Ne}}({...x,toBytes(er,wr,Zr){const pi=wr.toAffine(),xr=M.toBytes(pi.x),Vi=xn;return Zr?Vi(Uint8Array.from([wr.hasEvenY()?2:3]),xr):Vi(Uint8Array.from([4]),xr,M.toBytes(pi.y))},fromBytes(er){const wr=er.length,Zr=er[0],pi=er.subarray(1);if(wr!==J||2!==Zr&&3!==Zr){if(wr===ye&&4===Zr)return{x:M.fromBytes(pi.subarray(0,M.BYTES)),y:M.fromBytes(pi.subarray(M.BYTES,2*M.BYTES))};throw new Error(`Point of length ${wr} was invalid. Expected ${J} compressed bytes or ${ye} uncompressed bytes`)}{const xr=an(pi);if(!function Ne(er){return oofn(En(er,x.nByteLength));function tn(er){return er>G>>Bi}const qt=(er,wr,Zr)=>an(er.slice(wr,Zr));class Dn{constructor(wr,Zr,pi){this.r=wr,this.s=Zr,this.recovery=pi,this.assertValidity()}static fromCompact(wr){const Zr=x.nByteLength;return wr=zt("compactSignature",wr,2*Zr),new Dn(qt(wr,0,Zr),qt(wr,Zr,2*Zr))}static fromDER(wr){const{r:Zr,s:pi}=eo.toSig(zt("DER",wr));return new Dn(Zr,pi)}assertValidity(){if(!cn(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!cn(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(wr){return new Dn(this.r,this.s,wr)}recoverPublicKey(wr){const{r:Zr,s:pi,recovery:xr}=this,Vi=Nr(zt("msgHash",wr));if(null==xr||![0,1,2,3].includes(xr))throw new Error("recovery id invalid");const ki=2===xr||3===xr?Zr+x.n:Zr;if(ki>=M.ORDER)throw new Error("recovery id 2 or 3 invalid");const Hs=xt.fromHex((1&xr?"03":"02")+gn(ki)),Ws=rt(ki),Ma=Ue(-Vi*Ws),gl=Ue(pi*Ws),Ia=xt.BASE.multiplyAndAddUnsafe(Hs,Ma,gl);if(!Ia)throw new Error("point at infinify");return Ia.assertValidity(),Ia}hasHighS(){return tn(this.s)}normalizeS(){return this.hasHighS()?new Dn(this.r,Ue(-this.s),this.recovery):this}toDERRawBytes(){return Qt(this.toDERHex())}toDERHex(){return eo.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Qt(this.toCompactHex())}toCompactHex(){return gn(this.r)+gn(this.s)}}const Tn={isValidPrivateKey(er){try{return Gt(er),!0}catch{return!1}},normPrivateKeyToScalar:Gt,randomPrivateKey:()=>{const er=fr(x.n);return function uo(b,x,M=!1){const G=b.length,J=Hn(x),ye=fr(x);if(G<16||G1024)throw new Error(`expected ${ye}-1024 bytes of input, got ${G}`);const Ue=Bt(M?an(b):Xn(b),x-dn)+dn;return M?Kt(Ue,J):En(Ue,J)}(x.randomBytes(er),x.n)},precompute:(er=8,wr=xt.BASE)=>(wr._setWindowSize(er),wr.multiply(BigInt(3)),wr)};function ar(er){const wr=er instanceof Uint8Array,Zr="string"==typeof er,pi=(wr||Zr)&&er.length;return wr?pi===J||pi===ye:Zr?pi===2*J||pi===2*ye:er instanceof xt}const br=x.bits2int||function(er){const wr=an(er),Zr=8*er.length-x.nBitLength;return Zr>0?wr>>BigInt(Zr):wr},Nr=x.bits2int_modN||function(er){return Ue(br(er))},Vr=j(x.nBitLength);function Ci(er){if("bigint"!=typeof er)throw new Error("bigint expected");if(!(oo<=er&&ervs in Zr))throw new Error("sign() legacy options not supported");const{hash:pi,randomBytes:xr}=x;let{lowS:Vi,prehash:ki,extraEntropy:Ri}=Zr;null==Vi&&(Vi=!0),er=zt("msgHash",er),ki&&(er=zt("prehashed msgHash",pi(er)));const Hs=Nr(er),Ws=Gt(wr),Ma=[Ci(Ws),Ci(Hs)];if(null!=Ri){const vs=!0===Ri?xr(M.BYTES):Ri;Ma.push(zt("extraEntropy",vs))}const gl=xn(...Ma),Ia=Hs;return{seed:gl,k2sig:function Ka(vs){const Ic=br(vs);if(!cn(Ic))return;const kf=rt(Ic),Fl=xt.BASE.multiply(Ic).toAffine(),Bl=Ue(Fl.x);if(Bl===oo)return;const xu=Ue(kf*Ue(Ia+Bl*Ws));if(xu===oo)return;let Cu=(Fl.x===Bl?0:2)|Number(Fl.y&Bi),Yu=xu;return Vi&&tn(xu)&&(Yu=function Yt(er){return tn(er)?Ue(-er):er}(xu),Cu^=1),new Dn(Bl,Yu,Cu)}}}(er,wr,Zr);return ot(x.hash.outputLen,x.nByteLength,x.hmac)(pi,xr)},verify:function qi(er,wr,Zr,pi=Ji){const xr=er;if(wr=zt("msgHash",wr),Zr=zt("publicKey",Zr),"strict"in pi)throw new Error("options.strict was renamed to lowS");const{lowS:Vi,prehash:ki}=pi;let Ri,Hs;try{if("string"==typeof xr||xr instanceof Uint8Array)try{Ri=Dn.fromDER(xr)}catch(Fl){if(!(Fl instanceof eo.Err))throw Fl;Ri=Dn.fromCompact(xr)}else{if("object"!=typeof xr||"bigint"!=typeof xr.r||"bigint"!=typeof xr.s)throw new Error("PARSE");{const{r:Fl,s:Bl}=xr;Ri=new Dn(Fl,Bl)}}Hs=xt.fromHex(Zr)}catch(Fl){if("PARSE"===Fl.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Vi&&Ri.hasHighS())return!1;ki&&(wr=x.hash(wr));const{r:Ws,s:Ma}=Ri,gl=Nr(wr),Ia=rt(Ma),Ka=Ue(gl*Ia),vs=Ue(Ws*Ia),Ic=xt.BASE.multiplyAndAddUnsafe(Hs,Ka,vs)?.toAffine();return!!Ic&&Ue(Ic.x)===Ws},ProjectivePoint:xt,Signature:Dn,utils:Tn}}function $t(b){return{hash:b,hmac:(x,...M)=>Uo(b,x,function $e(...b){const x=new Uint8Array(b.reduce((G,J)=>G+J.length,0));let M=0;return b.forEach(G=>{if(!K(G))throw new Error("Uint8Array expected");x.set(G,M),M+=G.length}),x}(...M)),randomBytes:yn}}BigInt(4);const un=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Cn=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Sn=BigInt(1),kn=BigInt(2),Un=(b,x)=>(b+x/kn)/x;function Jn(b){const x=un,M=BigInt(3),G=BigInt(6),J=BigInt(11),ye=BigInt(22),Ne=BigInt(23),Ue=BigInt(44),rt=BigInt(88),xt=b*b*b%x,Gt=xt*xt*b%x,jt=lt(Gt,M,x)*Gt%x,cn=lt(jt,M,x)*Gt%x,gn=lt(cn,kn,x)*xt%x,tn=lt(gn,J,x)*gn%x,Yt=lt(tn,ye,x)*tn%x,qt=lt(Yt,Ue,x)*Yt%x,Dn=lt(qt,rt,x)*qt%x,Tn=lt(Dn,Ue,x)*Yt%x,rr=lt(Tn,M,x)*Gt%x,ar=lt(rr,Ne,x)*tn%x,Br=lt(ar,G,x)*xt%x,br=lt(Br,kn,x);if(!sr.eql(sr.sqr(br),b))throw new Error("Cannot find square root");return br}const sr=function St(b,x,M=!1,G={}){if(b<=Vt)throw new Error(`Expected Field ORDER > 0, got ${b}`);const{nBitLength:J,nByteLength:ye}=rn(b,x);if(ye>2048)throw new Error("Field lengths over 2048 bytes are not supported");const Ne=function ft(b){if(b%Bn===Fn){const x=(b+dn)/Bn;return function(G,J){const ye=G.pow(J,x);if(!G.eql(G.sqr(ye),J))throw new Error("Cannot find square root");return ye}}if(b%Jr===cr){const x=(b-cr)/Jr;return function(G,J){const ye=G.mul(J,Pn),Ne=G.pow(ye,x),Ue=G.mul(J,Ne),rt=G.mul(G.mul(Ue,Pn),Ne),xt=G.mul(Ue,G.sub(rt,G.ONE));if(!G.eql(G.sqr(xt),J))throw new Error("Cannot find square root");return xt}}return function kt(b){const x=(b-dn)/Pn;let M,G,J;for(M=b-dn,G=0;M%Pn===Vt;M/=Pn,G++);for(J=Pn;JBt(rt,b),isValid:rt=>{if("bigint"!=typeof rt)throw new Error("Invalid field element: expected bigint, got "+typeof rt);return Vt<=rt&&rtrt===Vt,isOdd:rt=>(rt&dn)===dn,neg:rt=>Bt(-rt,b),eql:(rt,xt)=>rt===xt,sqr:rt=>Bt(rt*rt,b),add:(rt,xt)=>Bt(rt+xt,b),sub:(rt,xt)=>Bt(rt-xt,b),mul:(rt,xt)=>Bt(rt*xt,b),pow:(rt,xt)=>function Mr(b,x,M){if(M 0");if(M===Vt)return b.ONE;if(M===dn)return x;let G=b.ONE,J=x;for(;M>Vt;)M&dn&&(G=b.mul(G,J)),J=b.sqr(J),M>>=dn;return G}(Ue,rt,xt),div:(rt,xt)=>Bt(rt*Pe(xt,b),b),sqrN:rt=>rt*rt,addN:(rt,xt)=>rt+xt,subN:(rt,xt)=>rt-xt,mulN:(rt,xt)=>rt*xt,inv:rt=>Pe(rt,b),sqrt:G.sqrt||(rt=>Ne(Ue,rt)),invertBatch:rt=>function ii(b,x){const M=new Array(x.length),G=x.reduce((ye,Ne,Ue)=>b.is0(Ne)?ye:(M[Ue]=ye,b.mul(ye,Ne)),b.ONE),J=b.inv(G);return x.reduceRight((ye,Ne,Ue)=>b.is0(Ne)?ye:(M[Ue]=b.mul(ye,M[Ue]),b.mul(ye,Ne)),J),M}(Ue,rt),cmov:(rt,xt,Gt)=>Gt?xt:rt,toBytes:rt=>M?Kt(rt,ye):En(rt,ye),fromBytes:rt=>{if(rt.length!==ye)throw new Error(`Fp.fromBytes: expected ${ye}, got ${rt.length}`);return M?Xn(rt):an(rt)}});return Object.freeze(Ue)}(un,void 0,void 0,{sqrt:Jn}),kr=function Mt(b,x){const M=G=>et({...b,...$t(G)});return Object.freeze({...M(x),create:M})}({a:BigInt(0),b:BigInt(7),Fp:sr,n:Cn,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:b=>{const x=Cn,M=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),G=-Sn*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),J=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ye=M,Ne=BigInt("0x100000000000000000000000000000000"),Ue=Un(ye*b,x),rt=Un(-G*b,x);let xt=Bt(b-Ue*M-rt*J,x),Gt=Bt(-Ue*G-rt*ye,x);const jt=xt>Ne,cn=Gt>Ne;if(jt&&(xt=x-xt),cn&&(Gt=x-Gt),xt>Ne||Gt>Ne)throw new Error("splitScalar: Endomorphism failed, k="+b);return{k1neg:jt,k1:xt,k2neg:cn,k2:Gt}}}},Ke),mr=BigInt(0),bi=b=>"bigint"==typeof b&&mrJ.charCodeAt(0)));M=xn(G,G),gr[b]=M}return Ke(xn(M,...x))}const vo=b=>b.toRawBytes(!0).slice(1),$r=b=>En(b,32),zi=b=>Bt(b,un),cs=b=>Bt(b,Cn),ws=kr.ProjectivePoint;function Sr(b){let x=kr.utils.normPrivateKeyToScalar(b),M=ws.fromPrivateKey(x);return{scalar:M.hasEvenY()?x:cs(-x),bytes:vo(M)}}function oa(b){if(!bi(b))throw new Error("bad x: need 0 < x < p");const x=zi(b*b);let G=Jn(zi(x*b+BigInt(7)));G%kn!==mr&&(G=zi(-G));const J=new ws(b,G,Sn);return J.assertValidity(),J}function ma(...b){return cs(an(ai("BIP0340/challenge",...b)))}function Ps(b,x,M){const G=zt("signature",b,64),J=zt("message",x),ye=zt("publicKey",M,32);try{const Ne=oa(an(ye)),Ue=an(G.subarray(0,32));if(!bi(Ue))return!1;const rt=an(G.subarray(32,64));if(!(b=>"bigint"==typeof b&&mrws.BASE.multiplyAndAddUnsafe(b,x,M))(Ne,rt,cs(-xt));return!(!Gt||!Gt.hasEvenY()||Gt.toAffine().x!==Ue)}catch{return!1}}const Xs={getPublicKey:function wo(b){return Sr(b).bytes},sign:function Ls(b,x,M=yn(32)){const G=zt("message",b),{bytes:J,scalar:ye}=Sr(x),Ne=zt("auxRand",M,32),Ue=$r(ye^an(ai("BIP0340/aux",Ne))),rt=ai("BIP0340/nonce",Ue,J,G),xt=cs(an(rt));if(xt===mr)throw new Error("sign failed: k is zero");const{bytes:Gt,scalar:jt}=Sr(xt),cn=ma(Gt,J,G),gn=new Uint8Array(64);if(gn.set(Gt,0),gn.set($r(cs(jt+cn*ye)),32),!Ps(gn,G,J))throw new Error("sign: Invalid signature produced");return gn},verify:Ps,utils:{randomPrivateKey:kr.utils.randomPrivateKey,lift_x:oa,pointToBytes:vo,numberToBytesBE:En,bytesToNumberBE:an,taggedHash:ai,mod:Bt}};var qr=r(6391);function rs(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`Wrong positive integer: ${b}`)}function to(b,...x){if(!(b instanceof Uint8Array))throw new Error("Expected Uint8Array");if(x.length>0&&!x.includes(b.length))throw new Error(`Expected Uint8Array of length ${x}, not of length=${b.length}`)}const tr={number:rs,bool:function is(b){if("boolean"!=typeof b)throw new Error(`Expected boolean, not ${b}`)},bytes:to,hash:function Wi(b){if("function"!=typeof b||"function"!=typeof b.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");rs(b.outputLen),rs(b.blockLen)},exists:function Es(b,x=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(x&&b.finished)throw new Error("Hash#digest() has already been called")},output:function Io(b,x){to(b);const M=x.outputLen;if(b.lengthJ-Ne&&(this.process(G,0),Ne=0);for(let jt=Ne;jt>J&ye),Ue=Number(M&ye),xt=G?0:4;b.setUint32(x+(G?4:0),Ne,G),b.setUint32(x+xt,Ue,G)})(G,J-8,BigInt(8*this.length),ye),this.process(G,0);const Ue=(0,qr.O8)(x),rt=this.outputLen;if(rt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const xt=rt/4,Gt=this.get();if(xt>Gt.length)throw new Error("_sha2: outputLen bigger than state");for(let jt=0;jtb&x^~b&M,Bs=(b,x,M)=>b&x^b&M^x&M,va=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]),Yo=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ti=new Uint32Array(64);class sa extends os{constructor(){super(64,32,8,!1),this.A=0|Yo[0],this.B=0|Yo[1],this.C=0|Yo[2],this.D=0|Yo[3],this.E=0|Yo[4],this.F=0|Yo[5],this.G=0|Yo[6],this.H=0|Yo[7]}get(){const{A:x,B:M,C:G,D:J,E:ye,F:Ne,G:Ue,H:rt}=this;return[x,M,G,J,ye,Ne,Ue,rt]}set(x,M,G,J,ye,Ne,Ue,rt){this.A=0|x,this.B=0|M,this.C=0|G,this.D=0|J,this.E=0|ye,this.F=0|Ne,this.G=0|Ue,this.H=0|rt}process(x,M){for(let jt=0;jt<16;jt++,M+=4)Ti[jt]=x.getUint32(M,!1);for(let jt=16;jt<64;jt++){const cn=Ti[jt-15],gn=Ti[jt-2],tn=(0,qr.Ow)(cn,7)^(0,qr.Ow)(cn,18)^cn>>>3,Yt=(0,qr.Ow)(gn,17)^(0,qr.Ow)(gn,19)^gn>>>10;Ti[jt]=Yt+Ti[jt-7]+tn+Ti[jt-16]|0}let{A:G,B:J,C:ye,D:Ne,E:Ue,F:rt,G:xt,H:Gt}=this;for(let jt=0;jt<64;jt++){const gn=Gt+((0,qr.Ow)(Ue,6)^(0,qr.Ow)(Ue,11)^(0,qr.Ow)(Ue,25))+ks(Ue,rt,xt)+va[jt]+Ti[jt]|0,Yt=((0,qr.Ow)(G,2)^(0,qr.Ow)(G,13)^(0,qr.Ow)(G,22))+Bs(G,J,ye)|0;Gt=xt,xt=rt,rt=Ue,Ue=Ne+gn|0,Ne=ye,ye=J,J=G,G=gn+Yt|0}G=G+this.A|0,J=J+this.B|0,ye=ye+this.C|0,Ne=Ne+this.D|0,Ue=Ue+this.E|0,rt=rt+this.F|0,xt=xt+this.G|0,Gt=Gt+this.H|0,this.set(G,J,ye,Ne,Ue,rt,xt,Gt)}roundClean(){Ti.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class yl extends sa{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 Qo=(0,qr.ld)(()=>new sa);(0,qr.ld)(()=>new yl);var ao=r(3813);function ss(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`positive integer expected, not ${b}`)}function _o(b){if("boolean"!=typeof b)throw new Error(`boolean expected, not ${b}`)}function Zo(b){return b instanceof Uint8Array||null!=b&&"object"==typeof b&&"Uint8Array"===b.constructor.name}function _i(b,...x){if(!Zo(b))throw new Error("Uint8Array expected");if(x.length>0&&!x.includes(b.length))throw new Error(`Uint8Array expected of length ${x}, not of length=${b.length}`)}function ko(b,x=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(x&&b.finished)throw new Error("Hash#digest() has already been called")}function Qs(b,x){_i(b);const M=x.outputLen;if(b.lengthnew Uint32Array(b.buffer,b.byteOffset,Math.floor(b.byteLength/4)),re=b=>new DataView(b.buffer,b.byteOffset,b.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Ho(b){if("string"==typeof b)b=function ho(b){if("string"!=typeof b)throw new Error("string expected, got "+typeof b);return new Uint8Array((new TextEncoder).encode(b))}(b);else{if(!Zo(b))throw new Error("Uint8Array expected, got "+typeof b);b=b.slice()}return b}function Qa(b,x){if(b.length!==x.length)return!1;let M=0;for(let G=0;G(Object.assign(x,b),x);function ce(b,x,M,G){if("function"==typeof b.setBigUint64)return b.setBigUint64(x,M,G);const J=BigInt(32),ye=BigInt(4294967295),Ne=Number(M>>J&ye),Ue=Number(M&ye),xt=G?0:4;b.setUint32(x+(G?4:0),Ne,G),b.setUint32(x+xt,Ue,G)}const Ut=new Uint8Array(16),vr=je(Ut),Do=(b,x,M,G)=>({s3:M<<31|G>>>1,s2:x<<31|M>>>1,s1:b<<31|x>>>1,s0:b>>>1^225<<24&-(1&G)}),qo=b=>(b>>>0&255)<<24|(b>>>8&255)<<16|(b>>>16&255)<<8|b>>>24&255;class nc{constructor(x,M){this.blockLen=16,this.outputLen=16,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,_i(x=Ho(x),16);const G=re(x);let J=G.getUint32(0,!1),ye=G.getUint32(4,!1),Ne=G.getUint32(8,!1),Ue=G.getUint32(12,!1);const rt=[];for(let tn=0;tn<128;tn++)rt.push({s0:qo(J),s1:qo(ye),s2:qo(Ne),s3:qo(Ue)}),({s0:J,s1:ye,s2:Ne,s3:Ue}=Do(J,ye,Ne,Ue));const xt=(b=M||1024)>65536?8:b>1024?4:2;var b;if(![1,2,4,8].includes(xt))throw new Error(`ghash: wrong window size=${xt}, should be 2, 4 or 8`);this.W=xt;const jt=128/xt,cn=this.windowSize=2**xt,gn=[];for(let tn=0;tn>>xt-ar-1&1))continue;const{s0:br,s1:Nr,s2:Vr,s3:Ci}=rt[xt*tn+ar];qt^=br,Dn^=Nr,Tn^=Vr,rr^=Ci}gn.push({s0:qt,s1:Dn,s2:Tn,s3:rr})}this.t=gn}_updateBlock(x,M,G,J){x^=this.s0,M^=this.s1,G^=this.s2,J^=this.s3;const{W:ye,t:Ne,windowSize:Ue}=this;let rt=0,xt=0,Gt=0,jt=0;const cn=(1<>>8*Yt&255;for(let Dn=8/ye-1;Dn>=0;Dn--){const Tn=qt>>>ye*Dn&cn,{s0:rr,s1:ar,s2:Br,s3:br}=Ne[gn*Ue+Tn];rt^=rr,xt^=ar,Gt^=Br,jt^=br,gn+=1}}this.s0=rt,this.s1=xt,this.s2=Gt,this.s3=jt}update(x){x=Ho(x),ko(this);const M=je(x),G=Math.floor(x.length/16),J=x.length%16;for(let ye=0;ye>>1|M,M=(1&J)<<7}return b[0]^=225&-x,b}((x=Ho(x)).slice());super(G,M),G.fill(0)}update(x){x=Ho(x),ko(this);const M=je(x),G=x.length%16,J=Math.floor(x.length/16);for(let ye=0;yeb(J,G.length).update(Ho(G)).digest(),M=b(new Uint8Array(16),0);return x.outputLen=M.outputLen,x.blockLen=M.blockLen,x.create=(G,J)=>b(G,J),x}function la(b){return b<<1^283&-(b>>7)}function $a(b,x){let M=0;for(;x>0;x>>=1)M^=b&-(1&x),b=la(b);return M}us((b,x)=>new nc(b,x)),us((b,x)=>new wl(b,x)),new Uint8Array(16);const vc=(()=>{let b=new Uint8Array(256);for(let M=0,G=1;M<256;M++,G^=la(G))b[M]=G;const x=new Uint8Array(256);x[0]=99;for(let M=0;M<255;M++){let G=b[255-M];G|=G<<8,x[b[M]]=255&(G^G>>4^G>>5^G>>6^G>>7^99)}return x})(),Ou=vc.map((b,x)=>vc.indexOf(x)),rc=b=>b<<24|b>>>8,ja=b=>b<<8|b>>>24;function Wl(b,x){if(256!==b.length)throw new Error("Wrong sbox length");const M=new Uint32Array(256).map((xt,Gt)=>x(b[Gt])),G=M.map(ja),J=G.map(ja),ye=J.map(ja),Ne=new Uint32Array(65536),Ue=new Uint32Array(65536),rt=new Uint16Array(65536);for(let xt=0;xt<256;xt++)for(let Gt=0;Gt<256;Gt++){const jt=256*xt+Gt;Ne[jt]=M[xt]^G[Gt],Ue[jt]=J[xt]^ye[Gt],rt[jt]=b[xt]<<8|b[Gt]}return{sbox:b,sbox2:rt,T0:M,T1:G,T2:J,T3:ye,T01:Ne,T23:Ue}}const ba=Wl(vc,b=>$a(b,3)<<24|b<<16|b<<8|$a(b,2)),qa=Wl(Ou,b=>$a(b,11)<<24|$a(b,13)<<16|$a(b,9)<<8|$a(b,14)),Cl=(()=>{const b=new Uint8Array(16);for(let x=0,M=1;x<16;x++,M=la(M))b[x]=M;return b})();function Ro(b){_i(b);const x=b.length;if(![16,24,32].includes(x))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${x}`);const{sbox2:M}=ba,G=je(b),J=G.length,ye=Ue=>Ea(M,Ue,Ue,Ue,Ue),Ne=new Uint32Array(x+28);Ne.set(G);for(let Ue=J;Ue6&&Ue%J==4&&(rt=ye(rt)),Ne[Ue]=Ne[Ue-J]^rt}return Ne}function wa(b,x,M,G,J,ye){return b[M<<8&65280|G>>>8&255]^x[J>>>8&65280|ye>>>24&255]}function Ea(b,x,M,G,J){return b[255&x|65280&M]|b[G>>>16&255|J>>>16&65280]<<16}function Jo(b,x,M,G,J){const{sbox2:ye,T01:Ne,T23:Ue}=ba;let rt=0;x^=b[rt++],M^=b[rt++],G^=b[rt++],J^=b[rt++];const xt=b.length/4-2;for(let tn=0;tn{const Ue=Ro(x),{b:rt,o:xt,out:Gt}=function xa(b,x,M){let G=b.length;const J=G%16;if(!x&&0!==J)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");const ye=je(b);if(x){let rt=16-J;rt||(rt=16),G+=rt}const Ne=al(G,M);return{b:ye,o:je(Ne),out:Ne}}(ye,J,Ne),jt=je(M);let cn=jt[0],gn=jt[1],tn=jt[2],Yt=jt[3],qt=0;for(;qt+4<=rt.length;)cn^=rt[qt+0],gn^=rt[qt+1],tn^=rt[qt+2],Yt^=rt[qt+3],({s0:cn,s1:gn,s2:tn,s3:Yt}=Jo(Ue,cn,gn,tn,Yt)),xt[qt++]=cn,xt[qt++]=gn,xt[qt++]=tn,xt[qt++]=Yt;if(J){const Dn=function Ui(b){const x=new Uint8Array(16),M=je(x);x.set(b);const G=16-b.length;for(let J=16-G;J<16;J++)x[J]=G;return M}(ye.subarray(4*qt));cn^=Dn[0],gn^=Dn[1],tn^=Dn[2],Yt^=Dn[3],({s0:cn,s1:gn,s2:tn,s3:Yt}=Jo(Ue,cn,gn,tn,Yt)),xt[qt++]=cn,xt[qt++]=gn,xt[qt++]=tn,xt[qt++]=Yt}return Ue.fill(0),Gt},decrypt:(ye,Ne)=>{!function zl(b){if(_i(b),b.length%16!=0)throw new Error("aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16")}(ye);const Ue=function co(b){const x=Ro(b),M=x.slice(),G=x.length,{sbox2:J}=ba,{T0:ye,T1:Ne,T2:Ue,T3:rt}=qa;for(let xt=0;xt>>8&255]^Ue[jt>>>16&255]^rt[jt>>>24]}return M}(x),rt=je(M),xt=al(ye.length,Ne),Gt=je(ye),jt=je(xt);let cn=rt[0],gn=rt[1],tn=rt[2],Yt=rt[3];for(let qt=0;qt+4<=Gt.length;){const Dn=cn,Tn=gn,rr=tn,ar=Yt;cn=Gt[qt+0],gn=Gt[qt+1],tn=Gt[qt+2],Yt=Gt[qt+3];const{s0:Br,s1:br,s2:Nr,s3:Vr}=_c(Ue,cn,gn,tn,Yt);jt[qt++]=Br^Dn,jt[qt++]=br^Tn,jt[qt++]=Nr^rr,jt[qt++]=Vr^ar}return Ue.fill(0),function ds(b,x){if(!x)return b;const M=b.length;if(!M)throw new Error("aes/pcks5: empty ciphertext not allowed");const G=b[M-1];if(G<=0||G>16)throw new Error(`aes/pcks5: wrong padding byte: ${G}`);const J=b.subarray(0,-G);for(let ye=0;ye255&b[x++]|(255&b[x++])<<8;class ic{constructor(x){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,_i(x=Ho(x),32);const M=po(x,0),G=po(x,2),J=po(x,4),ye=po(x,6),Ne=po(x,8),Ue=po(x,10),rt=po(x,12),xt=po(x,14);this.r[0]=8191&M,this.r[1]=8191&(M>>>13|G<<3),this.r[2]=7939&(G>>>10|J<<6),this.r[3]=8191&(J>>>7|ye<<9),this.r[4]=255&(ye>>>4|Ne<<12),this.r[5]=Ne>>>1&8190,this.r[6]=8191&(Ne>>>14|Ue<<2),this.r[7]=8065&(Ue>>>11|rt<<5),this.r[8]=8191&(rt>>>8|xt<<8),this.r[9]=xt>>>5&127;for(let Gt=0;Gt<8;Gt++)this.pad[Gt]=po(x,16+2*Gt)}process(x,M,G=!1){const J=G?0:2048,{h:ye,r:Ne}=this,Ue=Ne[0],rt=Ne[1],xt=Ne[2],Gt=Ne[3],jt=Ne[4],cn=Ne[5],gn=Ne[6],tn=Ne[7],Yt=Ne[8],qt=Ne[9],Dn=po(x,M+0),Tn=po(x,M+2),rr=po(x,M+4),ar=po(x,M+6),Br=po(x,M+8),br=po(x,M+10),Nr=po(x,M+12),Vr=po(x,M+14);let Ci=ye[0]+(8191&Dn),fi=ye[1]+(8191&(Dn>>>13|Tn<<3)),li=ye[2]+(8191&(Tn>>>10|rr<<6)),Ji=ye[3]+(8191&(rr>>>7|ar<<9)),ji=ye[4]+(8191&(ar>>>4|Br<<12)),qi=ye[5]+(Br>>>1&8191),er=ye[6]+(8191&(Br>>>14|br<<2)),wr=ye[7]+(8191&(br>>>11|Nr<<5)),Zr=ye[8]+(8191&(Nr>>>8|Vr<<8)),pi=ye[9]+(Vr>>>5|J),xr=0,Vi=xr+Ci*Ue+fi*(5*qt)+li*(5*Yt)+Ji*(5*tn)+ji*(5*gn);xr=Vi>>>13,Vi&=8191,Vi+=qi*(5*cn)+er*(5*jt)+wr*(5*Gt)+Zr*(5*xt)+pi*(5*rt),xr+=Vi>>>13,Vi&=8191;let ki=xr+Ci*rt+fi*Ue+li*(5*qt)+Ji*(5*Yt)+ji*(5*tn);xr=ki>>>13,ki&=8191,ki+=qi*(5*gn)+er*(5*cn)+wr*(5*jt)+Zr*(5*Gt)+pi*(5*xt),xr+=ki>>>13,ki&=8191;let Ri=xr+Ci*xt+fi*rt+li*Ue+Ji*(5*qt)+ji*(5*Yt);xr=Ri>>>13,Ri&=8191,Ri+=qi*(5*tn)+er*(5*gn)+wr*(5*cn)+Zr*(5*jt)+pi*(5*Gt),xr+=Ri>>>13,Ri&=8191;let Hs=xr+Ci*Gt+fi*xt+li*rt+Ji*Ue+ji*(5*qt);xr=Hs>>>13,Hs&=8191,Hs+=qi*(5*Yt)+er*(5*tn)+wr*(5*gn)+Zr*(5*cn)+pi*(5*jt),xr+=Hs>>>13,Hs&=8191;let Ws=xr+Ci*jt+fi*Gt+li*xt+Ji*rt+ji*Ue;xr=Ws>>>13,Ws&=8191,Ws+=qi*(5*qt)+er*(5*Yt)+wr*(5*tn)+Zr*(5*gn)+pi*(5*cn),xr+=Ws>>>13,Ws&=8191;let Ma=xr+Ci*cn+fi*jt+li*Gt+Ji*xt+ji*rt;xr=Ma>>>13,Ma&=8191,Ma+=qi*Ue+er*(5*qt)+wr*(5*Yt)+Zr*(5*tn)+pi*(5*gn),xr+=Ma>>>13,Ma&=8191;let gl=xr+Ci*gn+fi*cn+li*jt+Ji*Gt+ji*xt;xr=gl>>>13,gl&=8191,gl+=qi*rt+er*Ue+wr*(5*qt)+Zr*(5*Yt)+pi*(5*tn),xr+=gl>>>13,gl&=8191;let Ia=xr+Ci*tn+fi*gn+li*cn+Ji*jt+ji*Gt;xr=Ia>>>13,Ia&=8191,Ia+=qi*xt+er*rt+wr*Ue+Zr*(5*qt)+pi*(5*Yt),xr+=Ia>>>13,Ia&=8191;let Ka=xr+Ci*Yt+fi*tn+li*gn+Ji*cn+ji*jt;xr=Ka>>>13,Ka&=8191,Ka+=qi*Gt+er*xt+wr*rt+Zr*Ue+pi*(5*qt),xr+=Ka>>>13,Ka&=8191;let vs=xr+Ci*qt+fi*Yt+li*tn+Ji*gn+ji*cn;xr=vs>>>13,vs&=8191,vs+=qi*jt+er*Gt+wr*xt+Zr*rt+pi*Ue,xr+=vs>>>13,vs&=8191,xr=(xr<<2)+xr|0,xr=xr+Vi|0,Vi=8191&xr,xr>>>=13,ki+=xr,ye[0]=Vi,ye[1]=ki,ye[2]=Ri,ye[3]=Hs,ye[4]=Ws,ye[5]=Ma,ye[6]=gl,ye[7]=Ia,ye[8]=Ka,ye[9]=vs}finalize(){const{h:x,pad:M}=this,G=new Uint16Array(10);let J=x[1]>>>13;x[1]&=8191;for(let Ue=2;Ue<10;Ue++)x[Ue]+=J,J=x[Ue]>>>13,x[Ue]&=8191;x[0]+=5*J,J=x[0]>>>13,x[0]&=8191,x[1]+=J,J=x[1]>>>13,x[1]&=8191,x[2]+=J,G[0]=x[0]+5,J=G[0]>>>13,G[0]&=8191;for(let Ue=1;Ue<10;Ue++)G[Ue]=x[Ue]+J,J=G[Ue]>>>13,G[Ue]&=8191;G[9]-=8192;let ye=(1^J)-1;for(let Ue=0;Ue<10;Ue++)G[Ue]&=ye;ye=~ye;for(let Ue=0;Ue<10;Ue++)x[Ue]=x[Ue]&ye|G[Ue];x[0]=65535&(x[0]|x[1]<<13),x[1]=65535&(x[1]>>>3|x[2]<<10),x[2]=65535&(x[2]>>>6|x[3]<<7),x[3]=65535&(x[3]>>>9|x[4]<<4),x[4]=65535&(x[4]>>>12|x[5]<<1|x[6]<<14),x[5]=65535&(x[6]>>>2|x[7]<<11),x[6]=65535&(x[7]>>>5|x[8]<<8),x[7]=65535&(x[8]>>>8|x[9]<<5);let Ne=x[0]+M[0];x[0]=65535&Ne;for(let Ue=1;Ue<8;Ue++)Ne=(x[Ue]+M[Ue]|0)+(Ne>>>16)|0,x[Ue]=65535&Ne}update(x){ko(this);const{buffer:M,blockLen:G}=this,J=(x=Ho(x)).length;for(let ye=0;ye>>0,x[ye++]=G[Ne]>>>8;return x}digest(){const{buffer:x,outputLen:M}=this;this.digestInto(x);const G=x.slice(0,M);return this.destroy(),G}}const ro=function Va(b){const x=(G,J)=>b(J).update(Ho(G)).digest(),M=b(new Uint8Array(32));return x.outputLen=M.outputLen,x.blockLen=M.blockLen,x.create=G=>b(G),x}(b=>new ic(b)),Ha=b=>Uint8Array.from(b.split("").map(x=>x.charCodeAt(0))),Di=Ha("expand 16-byte k"),$s=Ha("expand 32-byte k"),ca=je(Di),No=je($s);function de(b,x){return b<>>32-x}function q(b){return b.byteOffset%4==0}No.slice();const _n=2**32-1,On=new Uint32Array;function Yr(b,x){const{allowShortKeys:M,extendNonceFn:G,counterLength:J,counterRight:ye,rounds:Ne}=function Hl(b,x){if(null==x||"object"!=typeof x)throw new Error("options must be defined");return Object.assign(b,x)}({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},x);if("function"!=typeof b)throw new Error("core must be a function");return ss(J),ss(Ne),_o(ye),_o(M),(Ue,rt,xt,Gt,jt=0)=>{_i(Ue),_i(rt),_i(xt);const cn=xt.length;if(Gt||(Gt=new Uint8Array(cn)),_i(Gt),ss(jt),jt<0||jt>=_n)throw new Error("arx: counter overflow");if(Gt.length=_n)throw new Error("arx: counter overflow");const Yt=Math.min(64,rt-tn);if(jt&&64===Yt){const qt=tn/4;if(tn%4!=0)throw new Error("arx: invalid block position");for(let Tn,Dn=0;Dn<16;Dn++)Tn=qt+Dn,gn[Tn]=cn[Tn]^Gt[Dn];tn+=64}else{for(let Dn,qt=0;qt0;)gn.pop().fill(0);return Gt}}function Li(b,x,M,G,J,ye=20){let Ne=b[0],Ue=b[1],rt=b[2],xt=b[3],Gt=x[0],jt=x[1],cn=x[2],gn=x[3],tn=x[4],Yt=x[5],qt=x[6],Dn=x[7],Tn=J,rr=M[0],ar=M[1],Br=M[2],br=Ne,Nr=Ue,Vr=rt,Ci=xt,fi=Gt,li=jt,Ji=cn,ji=gn,qi=tn,er=Yt,wr=qt,Zr=Dn,pi=Tn,xr=rr,Vi=ar,ki=Br;for(let Hs=0;Hs{b.update(x);const M=x.length%16;M&&b.update(hs.subarray(M))},Rs=new Uint8Array(32);function Al(b,x,M,G,J){const ye=b(x,M,Rs),Ne=ro.create(ye);J&&jo(Ne,J),jo(Ne,G);const Ue=new Uint8Array(16),rt=re(Ue);ce(rt,0,BigInt(J?J.length:0),!0),ce(rt,8,BigInt(G.length),!0),Ne.update(Ue);const xt=Ne.digest();return ye.fill(0),xt}const Ca=b=>(x,M,G)=>(_i(x,32),_i(M),{encrypt:(ye,Ne)=>{const Ue=ye.length,rt=Ue+16;Ne?_i(Ne,rt):Ne=new Uint8Array(rt),b(x,M,ye,Ne,1);const xt=Al(b,x,M,Ne.subarray(0,-16),G);return Ne.set(xt,Ue),Ne},decrypt:(ye,Ne)=>{const Ue=ye.length,rt=Ue-16;if(Ue<16)throw new Error("encrypted data must be at least 16 bytes");Ne?_i(Ne,rt):Ne=new Uint8Array(rt);const xt=ye.subarray(0,-16);if(!Qa(ye.subarray(-16),Al(b,x,M,xt,G)))throw new Error("invalid tag");return b(x,M,xt,Ne,1),Ne}});Ca(Qr),Ca(di);class ll extends qr.Vw{constructor(x,M){super(),this.finished=!1,this.destroyed=!1,tr.hash(x);const G=(0,qr.ZJ)(M);if(this.iHash=x.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 J=this.blockLen,ye=new Uint8Array(J);ye.set(G.length>J?x.create().update(G).digest():G);for(let Ne=0;Nenew ll(b,x).update(M).digest();Tl.create=(b,x)=>new ll(b,x);const ua=new Uint8Array([0]),Xl=new Uint8Array;var oc=Object.defineProperty,Ao=(b,x)=>{for(var M in x)oc(b,M,{get:x[M],enumerable:!0})},Ja=Symbol("verified"),el=b=>b instanceof Object;function qs(b){if(!el(b)||"number"!=typeof b.kind||"string"!=typeof b.content||"number"!=typeof b.created_at||"string"!=typeof b.pubkey||!b.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(b.tags))return!1;for(let x=0;xBc,QueueNode:()=>ou,binarySearch:()=>iu,insertEventIntoAscendingList:()=>ad,insertEventIntoDescendingList:()=>th,normalizeURL:()=>yc,utf8Decoder:()=>Ns,utf8Encoder:()=>Js});var Ns=new TextDecoder("utf-8"),Js=new TextEncoder;function yc(b){-1===b.indexOf("://")&&(b="wss://"+b);let x=new URL(b);return x.pathname=x.pathname.replace(/\/+/g,"/"),x.pathname.endsWith("/")&&(x.pathname=x.pathname.slice(0,-1)),("80"===x.port&&"ws:"===x.protocol||"443"===x.port&&"wss:"===x.protocol)&&(x.port=""),x.searchParams.sort(),x.hash="",x.toString()}function th(b,x){const[M,G]=iu(b,J=>x.id===J.id?0:x.created_at===J.created_at?-1:J.created_at-x.created_at);return G||b.splice(M,0,x),b}function ad(b,x){const[M,G]=iu(b,J=>x.id===J.id?0:x.created_at===J.created_at?-1:x.created_at-J.created_at);return G||b.splice(M,0,x),b}function iu(b,x){let M=0,G=b.length-1;for(;M<=G;){const J=Math.floor((M+G)/2),ye=x(b[J]);if(0===ye)return[J,!0];ye<0?G=J-1:M=J+1}return[M,!1]}var ou=class{value;next=null;prev=null;constructor(b){this.value=b}},Bc=class{first;last;constructor(){this.first=null,this.last=null}enqueue(b){const x=new ou(b);return this.last?this.last===this.first?(this.last=x,this.last.prev=this.first,this.first.next=x):(x.prev=this.last,this.last.next=x,this.last=x):(this.first=x,this.last=x),!0}dequeue(){if(!this.first)return null;if(this.first===this.last){const x=this.first;return this.first=null,this.last=null,x.value}const b=this.first;return this.first=b.next,b.value}};function ul(b){let x=Qo(Js.encode(function da(b){if(!qs(b))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,b.pubkey,b.created_at,b.kind,b.tags,b.content])}(b)));return(0,qr.My)(x)}var Lr=new class{generateSecretKey(){return Xs.utils.randomPrivateKey()}getPublicKey(b){return(0,qr.My)(Xs.getPublicKey(b))}finalizeEvent(b,x){const M=b;return M.pubkey=(0,qr.My)(Xs.getPublicKey(x)),M.id=ul(M),M.sig=(0,qr.My)(Xs.sign(ul(M),x)),M[Ja]=!0,M}verifyEvent(b){if("boolean"==typeof b[Ja])return b[Ja];const x=ul(b);if(x!==b.id)return b[Ja]=!1,!1;try{const M=Xs.verify(b.sig,x,b.pubkey);return b[Ja]=M,M}catch{return b[Ja]=!1,!1}}},tl=Lr.generateSecretKey,Uc=Lr.getPublicKey,ha=Lr.finalizeEvent,dl=Lr.verifyEvent;function Sa(b){return 1e3<=b&&b<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(b)}function wc(b){return[0,3].includes(b)||1e4<=b&&b<2e4}function su(b){return 2e4<=b&&b<3e4}function Xi(b){return 3e4<=b&&b<4e4}function Nu(b){return Sa(b)?"regular":wc(b)?"replaceable":su(b)?"ephemeral":Xi(b)?"parameterized":"unknown"}function Tr(b,x){const M=x instanceof Array?x:[x];return qs(b)&&M.includes(b.kind)||!1}Ao({},{Application:()=>zn,BadgeAward:()=>Ct,BadgeDefinition:()=>Be,BlockedRelaysList:()=>Il,BookmarkList:()=>lu,Bookmarksets:()=>V,Calendar:()=>Vn,CalendarEventRSVP:()=>dr,ChannelCreation:()=>ri,ChannelHideMessage:()=>as,ChannelMessage:()=>io,ChannelMetadata:()=>hi,ChannelMuteUser:()=>zo,ClassifiedListing:()=>Mn,ClientAuth:()=>cd,CommunitiesList:()=>Mi,CommunityDefinition:()=>Gr,CommunityPostApproval:()=>cf,Contacts:()=>z,CreateOrUpdateProduct:()=>Ht,CreateOrUpdateStall:()=>It,Curationsets:()=>oe,Date:()=>Qn,DirectMessageRelaysList:()=>Aa,DraftClassifiedListing:()=>jn,DraftLong:()=>An,Emojisets:()=>Zt,EncryptedDirectMessage:()=>P,EventDeletion:()=>X,FileMetadata:()=>hl,FileServerPreference:()=>hf,Followsets:()=>Wa,GenericRepost:()=>pr,Genericlists:()=>R,GiftWrap:()=>Wr,HTTPAuth:()=>Bu,Handlerinformation:()=>Ir,Handlerrecommendation:()=>Pr,Highlights:()=>ld,InterestsList:()=>ac,Interestsets:()=>gt,JobFeedback:()=>uf,JobRequest:()=>rh,JobResult:()=>xc,Label:()=>lf,LightningPubRPC:()=>Fu,LiveChatMessage:()=>Ec,LiveEvent:()=>Wn,LongFormArticle:()=>on,Metadata:()=>xs,Mutelist:()=>wn,NWCWalletInfo:()=>Rp,NWCWalletRequest:()=>ea,NWCWalletResponse:()=>js,NostrConnect:()=>kl,OpenTimestamps:()=>Cs,Pinlist:()=>gi,PrivateDirectMessage:()=>nn,ProblemTracker:()=>sc,ProfileBadges:()=>Ae,PublicChatsList:()=>Ml,Reaction:()=>We,RecommendRelay:()=>L,RelayList:()=>Pu,Relaysets:()=>U,Report:()=>Op,Reporting:()=>nh,Repost:()=>he,Seal:()=>vn,SearchRelaysList:()=>fs,ShortTextNote:()=>$c,Time:()=>ir,UserEmojiList:()=>jc,UserStatuses:()=>nr,Zap:()=>Lu,ZapGoal:()=>df,ZapRequest:()=>au,classifyKind:()=>Nu,isEphemeralKind:()=>su,isKind:()=>Tr,isParameterizedReplaceableKind:()=>Xi,isRegularKind:()=>Sa,isReplaceableKind:()=>wc});var xs=0,$c=1,L=2,z=3,P=4,X=5,he=6,We=7,Ct=8,vn=13,nn=14,pr=16,ri=40,hi=41,io=42,as=43,zo=44,Cs=1040,Wr=1059,hl=1063,Ec=1311,sc=1971,Op=1984,nh=1984,lf=1985,cf=4550,rh=5999,xc=6999,uf=7e3,df=9041,au=9734,Lu=9735,ld=9802,wn=1e4,gi=10001,Pu=10002,lu=10003,Mi=10004,Ml=10005,Il=10006,fs=10007,ac=10015,jc=10030,Aa=10050,hf=10096,Rp=13194,Fu=21e3,cd=22242,ea=23194,js=23195,kl=24133,Bu=27235,Wa=3e4,R=30001,U=30002,V=30003,oe=30004,Ae=30008,Be=30009,gt=30015,It=30017,Ht=30018,on=30023,An=30024,Zt=30030,zn=30078,Wn=30311,nr=30315,Mn=30402,jn=30403,Qn=31922,ir=31923,Vn=31924,dr=31925,Pr=31989,Ir=31990,Gr=34550;function Ur(b,x){if(b.ids&&-1===b.ids.indexOf(x.id)||b.kinds&&-1===b.kinds.indexOf(x.kind)||b.authors&&-1===b.authors.indexOf(x.pubkey))return!1;for(let M in b)if("#"===M[0]){let J=b[`#${M.slice(1)}`];if(J&&!x.tags.find(([ye,Ne])=>ye===M.slice(1)&&-1!==J.indexOf(Ne)))return!1}return!(b.since&&x.created_atb.until)}function Bo(b,x){let M=x.length+3,G=b.indexOf(`"${x}":`)+M,J=b.slice(G).indexOf('"')+G+1;return b.slice(J,J+64)}function Ds(b,x){let M=x.length,G=b.indexOf(`"${x}":`)+M+3,J=b.slice(G),ye=Math.min(J.indexOf(","),J.indexOf("}"));return parseInt(J.slice(0,ye),10)}function yr(b){let x=b.slice(0,22).indexOf('"EVENT"');if(-1===x)return null;let M=b.slice(x+7+1).indexOf('"');if(-1===M)return null;let G=x+7+1+M,J=b.slice(G+1,80).indexOf('"');return-1===J?null:b.slice(G+1,G+1+J)}function jr(b,x){return x===Bo(b,"id")}function Fi(b,x){return x===Bo(b,"pubkey")}function $i(b,x){return x===Ds(b,"kind")}function ps(b,x){return{kind:cd,created_at:Math.floor(Date.now()/1e3),tags:[["relay",b],["challenge",x]],content:""}}function gs(){return Ss.apply(this,arguments)}function Ss(){return(Ss=(0,a.A)(function*(){return new Promise(b=>{const x=new MessageChannel,M=()=>{x.port1.removeEventListener("message",M),b()};x.port1.addEventListener("message",M),x.port2.postMessage(0),x.port1.start()})})).apply(this,arguments)}Ao({},{getHex64:()=>Bo,getInt:()=>Ds,getSubscriptionId:()=>yr,matchEventId:()=>jr,matchEventKind:()=>$i,matchEventPubkey:()=>Fi}),Ao({},{makeAuthEvent:()=>ps});var lc=b=>(b[Ja]=!0,!0),nl=class{url;_connected=!1;onclose=null;onnotice=b=>console.debug(`NOTICE from ${this.url}: ${b}`);_onauth=null;baseEoseTimeout=4400;connectionTimeout=4400;publishTimeout=4400;openSubs=new Map;connectionTimeoutHandle;connectionPromise;openCountRequests=new Map;openEventPublishes=new Map;ws;incomingMessageQueue=new Bc;queueRunning=!1;challenge;serial=0;verifyEvent;_WebSocket;constructor(b,x){this.url=yc(b),this.verifyEvent=x.verifyEvent,this._WebSocket=x.websocketImplementation||WebSocket}static connect(b,x){return(0,a.A)(function*(){const M=new nl(b,x);return yield M.connect(),M})()}closeAllSubscriptions(b){for(let[x,M]of this.openSubs)M.close(b);this.openSubs.clear();for(let[x,M]of this.openEventPublishes)M.reject(new Error(b));this.openEventPublishes.clear();for(let[x,M]of this.openCountRequests)M.reject(new Error(b));this.openCountRequests.clear()}get connected(){return this._connected}connect(){var b=this;return(0,a.A)(function*(){return b.connectionPromise||(b.challenge=void 0,b.connectionPromise=new Promise((x,M)=>{b.connectionTimeoutHandle=setTimeout(()=>{M("connection timed out"),b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection timed out")},b.connectionTimeout);try{b.ws=new b._WebSocket(b.url)}catch(G){return void M(G)}b.ws.onopen=()=>{clearTimeout(b.connectionTimeoutHandle),b._connected=!0,x()},b.ws.onerror=G=>{M(G.message||"websocket error"),b._connected&&(b._connected=!1,b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection errored"))},b.ws.onclose=(0,a.A)(function*(){b._connected&&(b._connected=!1,b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection closed"))}),b.ws.onmessage=b._onmessage.bind(b)})),b.connectionPromise})()}runQueue(){var b=this;return(0,a.A)(function*(){for(b.queueRunning=!0;!1!==b.handleNext();)yield gs();b.queueRunning=!1})()}handleNext(){const b=this.incomingMessageQueue.dequeue();if(!b)return!1;const x=yr(b);if(x){const M=this.openSubs.get(x);if(!M)return;const G=Bo(b,"id"),J=M.alreadyHaveEvent?.(G);if(M.receivedEvent?.(this,G),J)return}try{let M=JSON.parse(b);switch(M[0]){case"EVENT":{const G=this.openSubs.get(M[1]),J=M[2];return void(this.verifyEvent(J)&&function Yi(b,x){for(let M=0;M{x.ws?.send(b)})})()}auth(b){var x=this;return(0,a.A)(function*(){if(!x.challenge)throw new Error("can't perform auth, no challenge was received");const M=yield b(ps(x.url,x.challenge)),G=new Promise((J,ye)=>{x.openEventPublishes.set(M.id,{resolve:J,reject:ye})});return x.send('["AUTH",'+JSON.stringify(M)+"]"),G})()}publish(b){var x=this;return(0,a.A)(function*(){const M=new Promise((G,J)=>{x.openEventPublishes.set(b.id,{resolve:G,reject:J})});return x.send('["EVENT",'+JSON.stringify(b)+"]"),setTimeout(()=>{const G=x.openEventPublishes.get(b.id);G&&(G.reject(new Error("publish timed out")),x.openEventPublishes.delete(b.id))},x.publishTimeout),M})()}count(b,x){var M=this;return(0,a.A)(function*(){M.serial++;const G=x?.id||"count:"+M.serial,J=new Promise((ye,Ne)=>{M.openCountRequests.set(G,{resolve:ye,reject:Ne})});return M.send('["COUNT","'+G+'",'+JSON.stringify(b).substring(1)),J})()}subscribe(b,x){const M=this.prepareSubscription(b,x);return M.fire(),M}prepareSubscription(b,x){this.serial++;const M=x.id||"sub:"+this.serial,G=new cc(this,M,b,x);return this.openSubs.set(M,G),G}close(){this.closeAllSubscriptions("relay connection closed by us"),this._connected=!1,this.ws?.close()}_onmessage(b){this.incomingMessageQueue.enqueue(b.data),this.queueRunning||this.runQueue()}},cc=class{relay;id;closed=!1;eosed=!1;filters;alreadyHaveEvent;receivedEvent;onevent;oneose;onclose;eoseTimeout;eoseTimeoutHandle;constructor(b,x,M,G){this.relay=b,this.filters=M,this.id=x,this.alreadyHaveEvent=G.alreadyHaveEvent,this.receivedEvent=G.receivedEvent,this.eoseTimeout=G.eoseTimeout||b.baseEoseTimeout,this.oneose=G.oneose,this.onclose=G.onclose,this.onevent=G.onevent||(J=>{console.warn(`onevent() callback not defined for subscription '${this.id}' in relay ${this.relay.url}. event received:`,J)})}fire(){this.relay.send('["REQ","'+this.id+'",'+JSON.stringify(this.filters).substring(1)),this.eoseTimeoutHandle=setTimeout(this.receivedEose.bind(this),this.eoseTimeout)}receivedEose(){this.eosed||(clearTimeout(this.eoseTimeoutHandle),this.eosed=!0,this.oneose?.())}close(b="closed by caller"){!this.closed&&this.relay.connected&&(this.relay.send('["CLOSE",'+JSON.stringify(this.id)+"]"),this.closed=!0),this.relay.openSubs.delete(this.id),this.onclose?.(b)}};try{WebSocket}catch{}var dc,Cc=class{relays=new Map;seenOn=new Map;trackRelays=!1;verifyEvent;trustedRelayURLs=new Set;_WebSocket;constructor(b){this.verifyEvent=b.verifyEvent,this._WebSocket=b.websocketImplementation}ensureRelay(b,x){var M=this;return(0,a.A)(function*(){b=yc(b);let G=M.relays.get(b);return G||(G=new nl(b,{verifyEvent:M.trustedRelayURLs.has(b)?lc:M.verifyEvent,websocketImplementation:M._WebSocket}),x?.connectionTimeout&&(G.connectionTimeout=x.connectionTimeout),M.relays.set(b,G)),yield G.connect(),G})()}close(b){b.map(yc).forEach(x=>{this.relays.get(x)?.close()})}subscribeMany(b,x,M){return this.subscribeManyMap(Object.fromEntries(b.map(G=>[G,x])),M)}subscribeManyMap(b,x){var M=this;this.trackRelays&&(x.receivedEvent=(cn,gn)=>{let tn=this.seenOn.get(gn);tn||(tn=new Set,this.seenOn.set(gn,tn)),tn.add(cn)});const G=new Set,J=[],ye=Object.keys(b).length,Ne=[];let Ue=cn=>{Ne[cn]=!0,Ne.filter(gn=>gn).length===ye&&(x.oneose?.(),Ue=()=>{})};const rt=[];let xt=(cn,gn)=>{Ue(cn),rt[cn]=gn,rt.filter(tn=>tn).length===ye&&(x.onclose?.(rt),xt=()=>{})};const Gt=cn=>{if(x.alreadyHaveEvent?.(cn))return!0;const gn=G.has(cn);return G.add(cn),gn},jt=Promise.all(Object.entries(b).map(function(){var cn=(0,a.A)(function*(gn,tn,Yt){if(Yt.indexOf(gn)!==tn)return void xt(tn,"duplicate url");let Tn,[qt,Dn]=gn;qt=yc(qt);try{Tn=yield M.ensureRelay(qt,{connectionTimeout:x.maxWait?Math.max(.8*x.maxWait,x.maxWait-1e3):void 0})}catch(ar){return void xt(tn,ar?.message||String(ar))}let rr=Tn.subscribe(Dn,{...x,oneose:()=>Ue(tn),onclose:ar=>xt(tn,ar),alreadyHaveEvent:Gt,eoseTimeout:x.maxWait});J.push(rr)});return function(gn,tn,Yt){return cn.apply(this,arguments)}}()));return{close:()=>(0,a.A)(function*(){yield jt,J.forEach(cn=>{cn.close()})})()}}subscribeManyEose(b,x,M){const G=this.subscribeMany(b,x,{...M,oneose(){G.close()}});return G}querySync(b,x,M){var G=this;return(0,a.A)(function*(){return new Promise(function(){var J=(0,a.A)(function*(ye){const Ne=[];G.subscribeManyEose(b,[x],{...M,onevent(Ue){Ne.push(Ue)},onclose(Ue){ye(Ne)}})});return function(ye){return J.apply(this,arguments)}}())})()}get(b,x,M){var G=this;return(0,a.A)(function*(){x.limit=1;const J=yield G.querySync(b,x,M);return J.sort((ye,Ne)=>Ne.created_at-ye.created_at),J[0]||null})()}publish(b,x){var M=this;return b.map(yc).map(function(){var G=(0,a.A)(function*(J,ye,Ne){if(Ne.indexOf(J)!==ye)return Promise.reject("duplicate url");let Ue=yield M.ensureRelay(J);return Ue.publish(x).then(rt=>{if(M.trackRelays){let xt=M.seenOn.get(x.id);xt||(xt=new Set,M.seenOn.set(x.id,xt)),xt.add(Ue)}return rt})});return function(J,ye,Ne){return G.apply(this,arguments)}}())}listConnectionStatus(){const b=new Map;return this.relays.forEach((x,M)=>b.set(M,x.connected)),b}destroy(){this.relays.forEach(b=>b.close()),this.relays=new Map}};try{dc=WebSocket}catch{}var Hc=class extends Cc{constructor(){super({verifyEvent:dl,websocketImplementation:dc})}},Wc={};Ao(Wc,{BECH32_REGEX:()=>fl,Bech32MaxSize:()=>Ga,NostrTypeGuard:()=>fa,decode:()=>Ql,encodeBytes:()=>dd,naddrEncode:()=>uu,neventEncode:()=>hd,noteEncode:()=>Np,nprofileEncode:()=>ih,npubEncode:()=>Uu,nsecEncode:()=>ud});var fa={isNProfile:b=>/^nprofile1[a-z\d]+$/.test(b||""),isNEvent:b=>/^nevent1[a-z\d]+$/.test(b||""),isNAddr:b=>/^naddr1[a-z\d]+$/.test(b||""),isNSec:b=>/^nsec1[a-z\d]{58}$/.test(b||""),isNPub:b=>/^npub1[a-z\d]{58}$/.test(b||""),isNote:b=>/^note1[a-z\d]+$/.test(b||""),isNcryptsec:b=>/^ncryptsec1[a-z\d]+$/.test(b||"")},Ga=5e3,fl=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function Ql(b){let{prefix:x,words:M}=ao.I.decode(b,Ga),G=new Uint8Array(ao.I.fromWords(M));switch(x){case"nprofile":{let J=Ol(G);if(!J[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==J[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:(0,qr.My)(J[0][0]),relays:J[1]?J[1].map(ye=>Ns.decode(ye)):[]}}}case"nevent":{let J=Ol(G);if(!J[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==J[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(J[2]&&32!==J[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(J[3]&&4!==J[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:(0,qr.My)(J[0][0]),relays:J[1]?J[1].map(ye=>Ns.decode(ye)):[],author:J[2]?.[0]?(0,qr.My)(J[2][0]):void 0,kind:J[3]?.[0]?parseInt((0,qr.My)(J[3][0]),16):void 0}}}case"naddr":{let J=Ol(G);if(!J[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!J[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==J[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!J[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==J[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Ns.decode(J[0][0]),pubkey:(0,qr.My)(J[2][0]),kind:parseInt((0,qr.My)(J[3][0]),16),relays:J[1]?J[1].map(ye=>Ns.decode(ye)):[]}}}case"nsec":return{type:x,data:G};case"npub":case"note":return{type:x,data:(0,qr.My)(G)};default:throw new Error(`unknown prefix ${x}`)}}function Ol(b){let x={},M=b;for(;M.length>0;){let G=M[0],J=M[1],ye=M.slice(2,2+J);if(M=M.slice(2+J),ye.lengthJs.encode(M))}))}function hd(b){let x;return void 0!==b.kind&&(x=function cu(b){const x=new Uint8Array(4);return x[0]=b>>24&255,x[1]=b>>16&255,x[2]=b>>8&255,x[3]=255&b,x}(b.kind)),Dc("nevent",du({0:[(0,qr.aT)(b.id)],1:(b.relays||[]).map(G=>Js.encode(G)),2:b.author?[(0,qr.aT)(b.author)]:[],3:x?[new Uint8Array(x)]:[]}))}function uu(b){let x=new ArrayBuffer(4);return new DataView(x).setUint32(0,b.kind,!1),Dc("naddr",du({0:[Js.encode(b.identifier)],1:(b.relays||[]).map(G=>Js.encode(G)),2:[(0,qr.aT)(b.pubkey)],3:[new Uint8Array(x)]}))}function du(b){let x=[];return Object.entries(b).reverse().forEach(([M,G])=>{G.forEach(J=>{let ye=new Uint8Array(J.length+2);ye.set([parseInt(M)],0),ye.set([J.length],1),ye.set(J,2),x.push(ye)})}),(0,qr.Id)(...x)}var Rl={};function ff(b,x,M){return hu.apply(this,arguments)}function hu(){return(hu=(0,a.A)(function*(b,x,M){const G=b instanceof Uint8Array?(0,qr.My)(b):b,ye=Gc(kr.getSharedSecret(G,"02"+x));let Ne=Uint8Array.from((0,qr.po)(16)),Ue=Js.encode(M),rt=Ar(ye,Ne).encrypt(Ue);return`${ao.K3.encode(new Uint8Array(rt))}?iv=${ao.K3.encode(new Uint8Array(Ne.buffer))}`})).apply(this,arguments)}function sh(b,x,M){return pd.apply(this,arguments)}function pd(){return(pd=(0,a.A)(function*(b,x,M){const G=b instanceof Uint8Array?(0,qr.My)(b):b;let[J,ye]=M.split("?iv="),Ue=Gc(kr.getSharedSecret(G,"02"+x)),rt=ao.K3.decode(ye),xt=ao.K3.decode(J),Gt=Ar(Ue,rt).decrypt(xt);return Ns.decode(Gt)})).apply(this,arguments)}function Gc(b){return b.slice(1,33)}Ao(Rl,{decrypt:()=>sh,encrypt:()=>ff}),Ao({},{NIP05_REGEX:()=>fu,isNip05:()=>md,isValid:()=>mf,queryProfile:()=>pu,searchDomain:()=>lh,useFetchImplementation:()=>pf});var Sc,fu=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,md=b=>fu.test(b||"");try{Sc=fetch}catch{}function pf(b){Sc=b}function lh(b){return ch.apply(this,arguments)}function ch(){return(ch=(0,a.A)(function*(b,x=""){try{const M=`https://${b}/.well-known/nostr.json?name=${x}`,G=yield Sc(M,{redirect:"manual"});if(200!==G.status)throw Error("Wrong response code");return(yield G.json()).names}catch{return{}}})).apply(this,arguments)}function pu(b){return Nl.apply(this,arguments)}function Nl(){return(Nl=(0,a.A)(function*(b){const x=b.match(fu);if(!x)return null;const[,M="_",G]=x;try{const J=`https://${G}/.well-known/nostr.json?name=${M}`,ye=yield Sc(J,{redirect:"manual"});if(200!==ye.status)throw Error("Wrong response code");const Ne=yield ye.json(),Ue=Ne.names[M];return Ue?{pubkey:Ue,relays:Ne.relays?.[Ue]}:null}catch{return null}})).apply(this,arguments)}function mf(b,x){return uh.apply(this,arguments)}function uh(){return(uh=(0,a.A)(function*(b,x){const M=yield pu(x);return!!M&&M.pubkey===b})).apply(this,arguments)}function zc(b){const x={reply:void 0,root:void 0,mentions:[],profiles:[],quotes:[]};let M,G;for(let J=b.tags.length-1;J>=0;J--){const ye=b.tags[J];if("e"===ye[0]&&ye[1]){const[Ne,Ue,rt,xt,Gt]=ye,jt={id:Ue,relays:rt?[rt]:[],author:Gt};if("root"===xt){x.root=jt;continue}if("reply"===xt){x.reply=jt;continue}if("mention"===xt){x.mentions.push(jt);continue}M?G=jt:M=jt,x.mentions.push(jt)}else{if("q"===ye[0]&&ye[1]){const[Ne,Ue,rt]=ye;x.quotes.push({id:Ue,relays:rt?[rt]:[]})}"p"===ye[0]&&ye[1]&&x.profiles.push({pubkey:ye[1],relays:ye[2]?[ye[2]]:[]})}}return x.root||(x.root=G||M||x.reply),x.reply||(x.reply=M||x.root),[x.reply,x.root].forEach(J=>{if(!J)return;let ye=x.mentions.indexOf(J);if(-1!==ye&&x.mentions.splice(ye,1),J.author){let Ne=x.profiles.find(Ue=>Ue.pubkey===J.author);Ne&&Ne.relays&&(J.relays||(J.relays=[]),Ne.relays.forEach(Ue=>{-1===J.relays?.indexOf(Ue)&&J.relays.push(Ue)}),Ne.relays=J.relays)}}),x.mentions.forEach(J=>{if(J.author){let ye=x.profiles.find(Ne=>Ne.pubkey===J.author);ye&&ye.relays&&(J.relays||(J.relays=[]),ye.relays.forEach(Ne=>{-1===J.relays.indexOf(Ne)&&J.relays.push(Ne)}),ye.relays=J.relays)}}),x}Ao({},{parse:()=>zc}),Ao({},{fetchRelayInformation:()=>vf,useFetchImplementation:()=>Lp});try{fetch}catch{}function Lp(b){}function vf(b){return gu.apply(this,arguments)}function gu(){return(gu=(0,a.A)(function*(b){return yield(yield fetch(b.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()})).apply(this,arguments)}function dh(b){let x=0;for(let M=0;M<64;M+=8){const G=parseInt(b.substring(M,M+8),16);if(0!==G){x+=Math.clz32(G);break}x+=32}return x}function $u(b,x){let M=0;const G=b,J=["nonce",M.toString(),x.toString()];for(G.tags.push(J);;){const ye=Math.floor((new Date).getTime()/1e3);if(ye!==G.created_at&&(M=0,G.created_at=ye),J[1]=(++M).toString(),G.id=_f(G),dh(G.id)>=x)break}return G}function _f(b){return(0,qr.My)(Qo(Js.encode(JSON.stringify([0,b.pubkey,b.created_at,b.kind,b.tags,b.content]))))}function hh(b,x,M,G){return ha({kind:he,tags:[...b.tags??[],["e",x.id,M],["p",x.pubkey]],content:""===b.content?"":JSON.stringify(x),created_at:b.created_at},G)}function ju(b){if(b.kind!==he)return;let x,M;for(let G=b.tags.length-1;G>=0&&(void 0===x||void 0===M);G--){const J=b.tags[G];J.length>=2&&("e"===J[0]&&void 0===x?x=J:"p"===J[0]&&void 0===M&&(M=J))}return void 0!==x?{id:x[1],relays:[x[2],M?.[2]].filter(G=>"string"==typeof G),author:M?.[1]}:void 0}function yf(b,{skipVerification:x}={}){const M=ju(b);if(void 0===M||""===b.content)return;let G;try{G=JSON.parse(b.content)}catch{return}return G.id===M.id&&(x||dl(G))?G:void 0}Ao({},{fastEventHash:()=>_f,getPow:()=>dh,minePow:()=>$u}),Ao({},{finishRepostEvent:()=>hh,getRepostedEvent:()=>yf,getRepostedEventPointer:()=>ju}),Ao({},{NOSTR_URI_REGEX:()=>Vu,parse:()=>pl,test:()=>Up});var Vu=new RegExp(`nostr:(${fl.source})`);function Up(b){return"string"==typeof b&&new RegExp(`^${Vu.source}$`).test(b)}function pl(b){const x=b.match(new RegExp(`^${Vu.source}$`));if(!x)throw new Error(`Invalid Nostr URI: ${b}`);return{uri:x[0],value:x[1],decoded:Ql(x[1])}}function vu(b,x,M){const G=x.tags.filter(J=>J.length>=2&&("e"===J[0]||"p"===J[0]));return ha({...b,kind:We,tags:[...b.tags??[],...G,["e",x.id],["p",x.pubkey]],content:b.content??"+"},M)}function ph(b){if(b.kind!==We)return;let x,M;for(let G=b.tags.length-1;G>=0&&(void 0===x||void 0===M);G--){const J=b.tags[G];J.length>=2&&("e"===J[0]&&void 0===x?x=J:"p"===J[0]&&void 0===M&&(M=J))}return void 0!==x&&void 0!==M?{id:x[1],relays:[x[2],M[2]].filter(G=>void 0!==G),author:M[1]}:void 0}Ao({},{finishReactionEvent:()=>vu,getReactedEventPointer:()=>ph}),Ao({},{matchAll:()=>vd,regex:()=>bf,replaceAll:()=>wf});var bf=()=>new RegExp(`\\b${Vu.source}\\b`,"g");function*vd(b){const x=b.matchAll(bf());for(const M of x)try{const[G,J]=M;yield{uri:G,value:J,decoded:Ql(J),start:M.index,end:M.index+G.length}}catch{}}function wf(b,x){return b.replaceAll(bf(),(M,G)=>x({uri:M,value:G,decoded:Ql(G)}))}Ao({},{channelCreateEvent:()=>_d,channelHideMessageEvent:()=>mh,channelMessageEvent:()=>Vp,channelMetadataEvent:()=>jp,channelMuteUserEvent:()=>hc});var _d=(b,x)=>{let M;if("object"==typeof b.content)M=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;M=b.content}return ha({kind:ri,tags:[...b.tags??[]],content:M,created_at:b.created_at},x)},jp=(b,x)=>{let M;if("object"==typeof b.content)M=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;M=b.content}return ha({kind:hi,tags:[["e",b.channel_create_event_id],...b.tags??[]],content:M,created_at:b.created_at},x)},Vp=(b,x)=>{const M=[["e",b.channel_create_event_id,b.relay_url,"root"]];return b.reply_to_channel_message_event_id&&M.push(["e",b.reply_to_channel_message_event_id,b.relay_url,"reply"]),ha({kind:io,tags:[...M,...b.tags??[]],content:b.content,created_at:b.created_at},x)},mh=(b,x)=>{let M;if("object"==typeof b.content)M=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;M=b.content}return ha({kind:as,tags:[["e",b.channel_message_event_id],...b.tags??[]],content:M,created_at:b.created_at},x)},hc=(b,x)=>{let M;if("object"==typeof b.content)M=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;M=b.content}return ha({kind:zo,tags:[["p",b.pubkey_to_mute],...b.tags??[]],content:M,created_at:b.created_at},x)};Ao({},{EMOJI_SHORTCODE_REGEX:()=>Kc,matchAll:()=>Hu,regex:()=>Ll,replaceAll:()=>Hp});var _u,Kc=/:(\w+):/,Ll=()=>new RegExp(`\\B${Kc.source}\\B`,"g");function*Hu(b){const x=b.matchAll(Ll());for(const M of x)try{const[G,J]=M;yield{shortcode:G,name:J,start:M.index,end:M.index+G.length}}catch{}}function Hp(b,x){return b.replaceAll(Ll(),(M,G)=>x({shortcode:M,name:G}))}Ao({},{useFetchImplementation:()=>il,validateGithub:()=>Wp});try{_u=fetch}catch{}function il(b){_u=b}function Wp(b,x,M){return gh.apply(this,arguments)}function gh(){return(gh=(0,a.A)(function*(b,x,M){try{return(yield(yield _u(`https://gist.github.com/${x}/${M}/raw`)).text())===`Verifying that I control the following Nostr public key: ${b}`}catch{return!1}})).apply(this,arguments)}Ao({},{decrypt:()=>yh,encrypt:()=>_h,getConversationKey:()=>Wu,v2:()=>bh});var yu=1,yd=65535;function Wu(b,x){const M=kr.getSharedSecret(b,"02"+x).subarray(1,33);return function cl(b,x,M){return tr.hash(b),void 0===M&&(M=new Uint8Array(b.outputLen)),Tl(b,(0,qr.ZJ)(M),(0,qr.ZJ)(x))}(Qo,M,"nip44-v2")}function yg(b,x){const M=function Fc(b,x,M,G=32){if(tr.hash(b),tr.number(G),G>255*b.outputLen)throw new Error("Length should be <= 255*HashLen");const J=Math.ceil(G/b.outputLen);void 0===M&&(M=Xl);const ye=new Uint8Array(J*b.outputLen),Ne=Tl.create(b,x),Ue=Ne._cloneInto(),rt=new Uint8Array(Ne.outputLen);for(let xt=0;xtyd)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const x=new Uint8Array(2);return new DataView(x.buffer).setUint16(0,b,!1),x}(M),J=new Uint8Array(bd(M)-M);return(0,qr.Id)(G,x,J)}(b),Ue=Qr(G,J,Ne),rt=Cf(ye,Ue,M);return ao.K3.encode((0,qr.Id)(new Uint8Array([2]),M,Ue,rt))}function yh(b,x){const{nonce:M,ciphertext:G,mac:J}=function vh(b){if("string"!=typeof b)throw new Error("payload must be a valid string");const x=b.length;if(x<132||x>87472)throw new Error("invalid payload length: "+x);if("#"===b[0])throw new Error("unknown encryption version");let M;try{M=ao.K3.decode(b)}catch(ye){throw new Error("invalid base64: "+ye.message)}const G=M.length;if(G<99||G>65603)throw new Error("invalid data length: "+G);const J=M[0];if(2!==J)throw new Error("unknown encryption version "+J);return{nonce:M.subarray(1,33),ciphertext:M.subarray(33,-32),mac:M.subarray(-32)}}(b),{chacha_key:ye,chacha_nonce:Ne,hmac_key:Ue}=yg(x,M);if(!Qa(Cf(Ue,G,M),J))throw new Error("invalid MAC");return function Vo(b){const x=new DataView(b.buffer).getUint16(0),M=b.subarray(2,2+x);if(xyd||M.length!==x||b.length!==2+bd(x))throw new Error("invalid padding");return Ns.decode(M)}(Qr(ye,Ne,G))}var Eh,bh={utils:{getConversationKey:Wu,calcPaddedLen:bd},encrypt:_h,decrypt:yh};function Sf(b){const{pathname:x,searchParams:M}=new URL(b),G=x,J=M.get("relay"),ye=M.get("secret");if(!G||!J||!ye)throw new Error("invalid connection string");return{pubkey:G,relay:J,secret:ye}}function wd(b,x,M){return wh.apply(this,arguments)}function wh(){return(wh=(0,a.A)(function*(b,x,M){const J=yield ff(x,b,JSON.stringify({method:"pay_invoice",params:{invoice:M}})),ye={kind:ea,created_at:Math.round(Date.now()/1e3),content:J,tags:[["p",b]]};return ha(ye,x)})).apply(this,arguments)}Ao({},{makeNwcRequestEvent:()=>wd,parseConnectionString:()=>Sf}),Ao({},{getZapEndpoint:()=>Ac,makeZapReceipt:()=>bg,makeZapRequest:()=>Ed,useFetchImplementation:()=>zp,validateZapRequest:()=>xd});try{Eh=fetch}catch{}function zp(b){Eh=b}function Ac(b){return Af.apply(this,arguments)}function Af(){return(Af=(0,a.A)(function*(b){try{let x="",{lud06:M,lud16:G}=JSON.parse(b.content);if(M){let{words:Ne}=ao.I.decode(M,1e3),Ue=ao.I.fromWords(Ne);x=Ns.decode(Ue)}else{if(!G)return null;{let[Ne,Ue]=G.split("@");x=new URL(`/.well-known/lnurlp/${Ne}`,`https://${Ue}`).toString()}}let ye=yield(yield Eh(x)).json();if(ye.allowsNostr&&ye.nostrPubkey)return ye.callback}catch{}return null})).apply(this,arguments)}function Ed({profile:b,event:x,amount:M,relays:G,comment:J=""}){if(!M)throw new Error("amount not given");if(!b)throw new Error("profile not given");let ye={kind:9734,created_at:Math.round(Date.now()/1e3),content:J,tags:[["p",b],["amount",M.toString()],["relays",...G]]};return x&&ye.tags.push(["e",x]),ye}function xd(b){let x;try{x=JSON.parse(b)}catch{return"Invalid zap request JSON."}if(!qs(x))return"Zap request is not a valid Nostr event.";if(!dl(x))return"Invalid signature on zap request.";let M=x.tags.find(([ye,Ne])=>"p"===ye&&Ne);if(!M)return"Zap request doesn't have a 'p' tag.";if(!M[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let G=x.tags.find(([ye,Ne])=>"e"===ye&&Ne);return G&&!G[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":x.tags.find(([ye,Ne])=>"relays"===ye&&Ne)?null:"Zap request doesn't have a 'relays' tag."}function bg({zapRequest:b,preimage:x,bolt11:M,paidAt:G}){let J=JSON.parse(b),ye=J.tags.filter(([Ue])=>"e"===Ue||"p"===Ue||"a"===Ue),Ne={kind:9735,created_at:Math.round(G.getTime()/1e3),content:"",tags:[...ye,["P",J.pubkey],["bolt11",M],["description",b]]};return x&&Ne.tags.push(["preimage",x]),Ne}Ao({},{createRumor:()=>Tf,createSeal:()=>Cd,createWrap:()=>bu,unwrapEvent:()=>Dh,unwrapManyEvents:()=>wu,wrapEvent:()=>xh,wrapManyEvents:()=>Ch});var Yc=()=>Math.round(Date.now()/1e3),Xp=()=>Math.round(Yc()-172800*Math.random()),ml=(b,x)=>Wu(b,x),Tc=(b,x,M)=>_h(JSON.stringify(b),ml(x,M)),Vs=(b,x)=>JSON.parse(yh(b.content,ml(x,b.pubkey)));function Tf(b,x){const M={created_at:Yc(),content:"",tags:[],...b,pubkey:Uc(x)};return M.id=ul(M),M}function Cd(b,x,M){return ha({kind:vn,content:Tc(b,x,M),created_at:Xp(),tags:[]},x)}function bu(b,x){const M=tl();return ha({kind:Wr,content:Tc(b,M,x),created_at:Xp(),tags:[["p",x]]},M)}function xh(b,x,M){return bu(Cd(Tf(b,x),x,M),M)}function Ch(b,x,M){if(!M||0===M.length)throw new Error("At least one recipient is required.");const G=Uc(x),J=[xh(b,x,G)];return M.forEach(ye=>{J.push(xh(b,x,ye))}),J}function Dh(b,x){const M=Vs(b,x);return Vs(M,x)}function wu(b,x){let M=[];return b.forEach(G=>{M.push(Dh(G,x))}),M.sort((G,J)=>G.created_at-J.created_at),M}function Mc(b,x,M){return Zl.apply(this,arguments)}function Zl(){return(Zl=(0,a.A)(function*(b,x,M,G=!1,J){const ye={kind:Bu,tags:[["u",b],["method",x]],created_at:Math.round((new Date).getTime()/1e3),content:""};J&&ye.tags.push(["payload",Qc(J)]);const Ne=yield M(ye);return(G?"Nostr ":"")+ao.K3.encode(Js.encode(JSON.stringify(Ne)))})).apply(this,arguments)}function Yp(b,x,M){return Eu.apply(this,arguments)}function Eu(){return(Eu=(0,a.A)(function*(b,x,M){const G=yield Mf(b).catch(ye=>{throw ye});return yield Dd(G,x,M).catch(ye=>{throw ye})})).apply(this,arguments)}function Mf(b){return zu.apply(this,arguments)}function zu(){return(zu=(0,a.A)(function*(b){if(!b)throw new Error("Missing token");b=b.replace("Nostr ","");const x=Ns.decode(ao.K3.decode(b));if(!x||0===x.length||!x.startsWith("{"))throw new Error("Invalid token");return JSON.parse(x)})).apply(this,arguments)}function Ku(b){return!!b.created_at&&Math.round((new Date).getTime()/1e3)-b.created_at<60}function If(b){return b.kind===Bu}function Ah(b,x){const M=b.tags.find(G=>"u"===G[0]);return!!M&&M.length>0&&M[1]===x}function Ta(b,x){const M=b.tags.find(G=>"method"===G[0]);return!!M&&M.length>0&&M[1].toLowerCase()===x.toLowerCase()}function Qc(b){const x=Qo(Js.encode(JSON.stringify(b)));return(0,qr.My)(x)}function Th(b,x){const M=b.tags.find(J=>"payload"===J[0]);if(!M)return!1;const G=Qc(x);return M.length>0&&M[1]===G}function Dd(b,x,M,G){return Xu.apply(this,arguments)}function Xu(){return(Xu=(0,a.A)(function*(b,x,M,G){if(!dl(b))throw new Error("Invalid nostr event, signature invalid");if(!If(b))throw new Error("Invalid nostr event, kind invalid");if(!Ku(b))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!Ah(b,x))throw new Error("Invalid nostr event, url tag invalid");if(!Ta(b,M))throw new Error("Invalid nostr event, method tag invalid");if(G&&"object"==typeof G&&Object.keys(G).length>0&&!Th(b,G))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})).apply(this,arguments)}Ao({},{getToken:()=>Mc,hashPayload:()=>Qc,unpackEventFromToken:()=>Mf,validateEvent:()=>Dd,validateEventKind:()=>If,validateEventMethodTag:()=>Ta,validateEventPayloadTag:()=>Th,validateEventTimestamp:()=>Ku,validateEventUrlTag:()=>Ah,validateToken:()=>Yp})},8418:(o,s,r)=>{"use strict";r.d(s,{OS:()=>I,av:()=>N,qT:()=>pe,rV:()=>ne}),Symbol("verified");var I=0,N=1,ne=4,pe=7},6391:(o,s,r)=>{"use strict";r.d(s,{Vw:()=>pe,My:()=>A,Id:()=>me,O8:()=>w,aT:()=>I,po:()=>le,Ow:()=>C,ZJ:()=>be,ld:()=>Re});const i="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,a=ae=>ae instanceof Uint8Array,w=ae=>new DataView(ae.buffer,ae.byteOffset,ae.byteLength),C=(ae,Ie)=>ae<<32-Ie|ae>>>Ie;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const S=Array.from({length:256},(ae,Ie)=>Ie.toString(16).padStart(2,"0"));function A(ae){if(!a(ae))throw new Error("Uint8Array expected");let Ie="";for(let $e=0;$est+ht.length,0));let $e=0;return ae.forEach(st=>{if(!a(st))throw new Error("Uint8Array expected");Ie.set(st,$e),$e+=st.length}),Ie}class pe{clone(){return this._cloneInto()}}function Re(ae){const Ie=st=>ae().update(be(st)).digest(),$e=ae();return Ie.outputLen=$e.outputLen,Ie.blockLen=$e.blockLen,Ie.create=()=>ae(),Ie}function le(ae=32){if(i&&"function"==typeof i.getRandomValues)return i.getRandomValues(new Uint8Array(ae));throw new Error("crypto.getRandomValues must be defined")}},7106:(o,s,r)=>{"use strict";function i(a,c){this.v=a,this.k=c}r.d(s,{A:()=>i})},467:(o,s,r)=>{"use strict";function i(c,y,w,C,T,S,A){try{var I=c[S](A),N=I.value}catch(K){return void w(K)}I.done?y(N):Promise.resolve(N).then(C,T)}function a(c){return function(){var y=this,w=arguments;return new Promise(function(C,T){var S=c.apply(y,w);function A(N){i(S,C,T,A,I,"next",N)}function I(N){i(S,C,T,A,I,"throw",N)}A(void 0)})}}r.d(s,{A:()=>a})},6218:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});var i=r(7106);function a(c){return new i.A(c,0)}},600:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});var i=r(7106);function a(y){return function(){return new c(y.apply(this,arguments))}}function c(y){var w,C;function T(A,I){try{var N=y[A](I),K=N.value,Z=K instanceof i.A;Promise.resolve(Z?K.v:K).then(function(ne){if(Z){var be="return"===A?"return":"next";if(!K.k||ne.done)return T(be,ne);ne=y[be](ne).value}S(N.done?"return":"normal",ne)},function(ne){T("throw",ne)})}catch(ne){S("throw",ne)}}function S(A,I){switch(A){case"return":w.resolve({value:I,done:!0});break;case"throw":w.reject(I);break;default:w.resolve({value:I,done:!1})}(w=w.next)?T(w.key,w.arg):C=null}this._invoke=function(A,I){return new Promise(function(N,K){var Z={key:A,arg:I,resolve:N,reject:K,next:null};C?C=C.next=Z:(w=C=Z,T(A,I))})},"function"!=typeof y.return&&(this.return=void 0)}c.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(y){return this._invoke("next",y)},c.prototype.throw=function(y){return this._invoke("throw",y)},c.prototype.return=function(y){return this._invoke("return",y)}},1635:(o,s,r)=>{"use strict";function K(Ge,Fe,Ft,ze){return new(Ft||(Ft=Promise))(function(Ke,He){function mt(Rt){try{Ze(ze.next(Rt))}catch(Jt){He(Jt)}}function se(Rt){try{Ze(ze.throw(Rt))}catch(Jt){He(Jt)}}function Ze(Rt){Rt.done?Ke(Rt.value):function dt(Ke){return Ke instanceof Ft?Ke:new Ft(function(He){He(Ke)})}(Rt.value).then(mt,se)}Ze((ze=ze.apply(Ge,Fe||[])).next())})}function Me(Ge){return this instanceof Me?(this.v=Ge,this):new Me(Ge)}function Ce(Ge,Fe,Ft){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var dt,ze=Ft.apply(Ge,Fe||[]),Ke=[];return dt=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),mt("next"),mt("throw"),mt("return",function He(Kn){return function(Nt){return Promise.resolve(Nt).then(Kn,Jt)}}),dt[Symbol.asyncIterator]=function(){return this},dt;function mt(Kn,Nt){ze[Kn]&&(dt[Kn]=function(Qt){return new Promise(function(an,Xn){Ke.push([Kn,Qt,an,Xn])>1||se(Kn,Qt)})},Nt&&(dt[Kn]=Nt(dt[Kn])))}function se(Kn,Nt){try{!function Ze(Kn){Kn.value instanceof Me?Promise.resolve(Kn.value.v).then(Rt,Jt):fn(Ke[0][2],Kn)}(ze[Kn](Nt))}catch(Qt){fn(Ke[0][3],Qt)}}function Rt(Kn){se("next",Kn)}function Jt(Kn){se("throw",Kn)}function fn(Kn,Nt){Kn(Nt),Ke.shift(),Ke.length&&se(Ke[0][0],Ke[0][1])}}function ae(Ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ft,Fe=Ge[Symbol.asyncIterator];return Fe?Fe.call(Ge):(Ge=function me(Ge){var Fe="function"==typeof Symbol&&Symbol.iterator,Ft=Fe&&Ge[Fe],ze=0;if(Ft)return Ft.call(Ge);if(Ge&&"number"==typeof Ge.length)return{next:function(){return Ge&&ze>=Ge.length&&(Ge=void 0),{value:Ge&&Ge[ze++],done:!Ge}}};throw new TypeError(Fe?"Object is not iterable.":"Symbol.iterator is not defined.")}(Ge),Ft={},ze("next"),ze("throw"),ze("return"),Ft[Symbol.asyncIterator]=function(){return this},Ft);function ze(Ke){Ft[Ke]=Ge[Ke]&&function(He){return new Promise(function(mt,se){!function dt(Ke,He,mt,se){Promise.resolve(se).then(function(Ze){Ke({value:Ze,done:mt})},He)}(mt,se,(He=Ge[Ke](He)).done,He.value)})}}}r.d(s,{AQ:()=>Ce,N3:()=>Me,sH:()=>K,xN:()=>ae}),"function"==typeof SuppressedError&&SuppressedError}},o=>{o(o.s=4626)}]); \ No newline at end of file diff --git a/main.20e2ff52ad4d738d.js b/main.20e2ff52ad4d738d.js deleted file mode 100644 index 72db3e9..0000000 --- a/main.20e2ff52ad4d738d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkangor=self.webpackChunkangor||[]).push([[792],{3365:(o,s,r)=>{"use strict";r.d(s,{F:()=>st});let i=(()=>{class ht{static{this.standard="cubic-bezier(0.4, 0.0, 0.2, 1)"}static{this.deceleration="cubic-bezier(0.0, 0.0, 0.2, 1)"}static{this.acceleration="cubic-bezier(0.4, 0.0, 1, 1)"}static{this.sharp="cubic-bezier(0.4, 0.0, 0.6, 1)"}}return ht})(),a=(()=>{class ht{static{this.complex="375ms"}static{this.entering="225ms"}static{this.exiting="195ms"}}return ht})();var c=r(9969);const ae=(ht,vt,at,Xt,ln=`${a.entering} ${i.deceleration}`,yn=`${a.exiting} ${i.acceleration}`)=>(0,c.hZ)(ht,[(0,c.wk)("void",(0,c.iF)(vt)),(0,c.wk)("*",(0,c.iF)(at)),(0,c.kY)("void => false, * => false",[]),(0,c.kY)("void => *",(0,c.i0)(Xt||ln),{params:{timings:ln}}),(0,c.kY)("* => void",(0,c.i0)(Xt||yn),{params:{timings:yn}})]),st=[(0,c.hZ)("expandCollapse",[(0,c.wk)("void, collapsed",(0,c.iF)({height:"0"})),(0,c.wk)("*, expanded",(0,c.iF)("*")),(0,c.kY)("void <=> false, collapsed <=> false, expanded <=> false",[]),(0,c.kY)("void <=> *, collapsed <=> expanded",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeIn",[(0,c.wk)("void",(0,c.iF)({opacity:0})),(0,c.wk)("*",(0,c.iF)({opacity:1})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInTop",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInBottom",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInLeft",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInRight",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeOut",[(0,c.wk)("*",(0,c.iF)({opacity:1})),(0,c.wk)("void",(0,c.iF)({opacity:0})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutTop",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutBottom",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutLeft",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutRight",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("shake",[(0,c.kY)("void => false",[]),(0,c.kY)("void => *, * => true",[(0,c.i0)("{{timings}}",(0,c.i7)([(0,c.iF)({transform:"translate3d(0, 0, 0)",offset:0}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.1}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.2}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.3}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.4}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.5}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.6}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.7}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.8}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.9}),(0,c.iF)({transform:"translate3d(0, 0, 0)",offset:1})]))],{params:{timings:"0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955)"}})]),(0,c.hZ)("slideInTop",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, -100%, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInBottom",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, 100%, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInLeft",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInRight",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideOutTop",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, -100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutBottom",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, 100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutLeft",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutRight",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),ae("zoomIn",{opacity:0,transform:"scale(0.5)"},{opacity:1,transform:"scale(1)"},""),ae("zoomOut",{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.5)"},"")]},7857:(o,s,r)=>{"use strict";r.d(s,{$w:()=>At,lX:()=>c,Tv:()=>Ya});var i=r(3365),a=r(4438);let c=(()=>{class Y{constructor(){this._componentRegistry=new Map,this._navigationStore=new Map}registerComponent(re,Xe){this._componentRegistry.set(re,Xe)}deregisterComponent(re){this._componentRegistry.delete(re)}getComponent(re){return this._componentRegistry.get(re)}storeNavigation(re,Xe){this._navigationStore.set(re,Xe)}getNavigation(re){return this._navigationStore.get(re)??[]}deleteNavigation(re){this._navigationStore.has(re)||console.warn(`Navigation with the key '${re}' does not exist.`),this._navigationStore.delete(re)}getFlatNavigation(re,Xe=[]){for(const wt of re)"basic"===wt.type?Xe.push(wt):wt.children&&this.getFlatNavigation(wt.children,Xe);return Xe}getItem(re,Xe){for(const wt of Xe){if(wt.id===re)return wt;if(wt.children){const Ln=this.getItem(re,wt.children);if(Ln)return Ln}}return null}getItemParent(re,Xe,wt){for(const Ln of Xe){if(Ln.id===re)return wt;if(Ln.children){const hn=this.getItemParent(re,Ln.children,Ln);if(hn)return hn}}return null}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275prov=a.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})();var y=r(7209),w=r(2771),C=r(1413),T=r(177),S=r(9213),A=r(9115),I=r(4823),N=r(5245),G=r(6977);const Z=Y=>({"angor-horizontal-navigation-item-active-forced":Y}),ne=Y=>[Y];function be(Y,je){1&Y&&a.eu8(0)}function me(Y,je){if(1&Y&&(a.j41(0,"div",2),a.DNE(1,be,1,0,"ng-container",7),a.k0s()),2&Y){let re,Xe,wt,Ln;const hn=a.XpG(),ur=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Z,hn.item.active))("routerLink",a.eq3(12,ne,hn.item.link))("fragment",null!==(re=hn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Xe=hn.item.preserveFragment)&&void 0!==Xe&&Xe)("queryParams",null!==(wt=hn.item.queryParams)&&void 0!==wt?wt:null)("queryParamsHandling",null!==(Ln=hn.item.queryParamsHandling)&&void 0!==Ln?Ln:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",hn.isActiveMatchOptions)("matTooltip",hn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ur)}}function pe(Y,je){1&Y&&a.eu8(0)}function Te(Y,je){if(1&Y&&(a.j41(0,"a",3),a.DNE(1,pe,1,0,"ng-container",7),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("href",re.item.link,a.B4B)("target",re.item.target||"_self")("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function xe(Y,je){1&Y&&a.eu8(0)}function Re(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"div",8),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,xe,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Z,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function Me(Y,je){1&Y&&a.eu8(0)}function Ce(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"div",9),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,Me,1,0,"ng-container",7),a.k0s()}if(2&Y){let re,Xe,wt,Ln;const hn=a.XpG(),ur=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Z,hn.item.active))("routerLink",a.eq3(12,ne,hn.item.link))("fragment",null!==(re=hn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Xe=hn.item.preserveFragment)&&void 0!==Xe&&Xe)("queryParams",null!==(wt=hn.item.queryParams)&&void 0!==wt?wt:null)("queryParamsHandling",null!==(Ln=hn.item.queryParamsHandling)&&void 0!==Ln?Ln:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",hn.isActiveMatchOptions)("matTooltip",hn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ur)}}function le(Y,je){1&Y&&a.eu8(0)}function ae(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"a",10),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,le,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("href",re.item.link,a.B4B)("target",re.item.target||"_self")("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function Ie(Y,je){1&Y&&a.eu8(0)}function $e(Y,je){if(1&Y&&(a.j41(0,"div",4),a.DNE(1,Ie,1,0,"ng-container",7),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Z,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function st(Y,je){1&Y&&a.eu8(0)}function ht(Y,je){if(1&Y&&(a.j41(0,"div",6),a.DNE(1,st,1,0,"ng-container",7),a.k0s()),2&Y){a.XpG();const re=a.sdS(9);a.R7$(),a.Y8G("ngTemplateOutlet",re)}}function vt(Y,je){if(1&Y&&a.nrm(0,"mat-icon",11),2&Y){const re=a.XpG(2);a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function at(Y,je){if(1&Y&&(a.j41(0,"div",15)(1,"span",14),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG(2);a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function Xt(Y,je){if(1&Y&&(a.j41(0,"div",16)(1,"div",17),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG(2);a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function ln(Y,je){if(1&Y&&(a.DNE(0,vt,1,2,"mat-icon",11),a.j41(1,"div",12)(2,"div",13)(3,"span",14),a.EFF(4),a.k0s()(),a.DNE(5,at,3,2,"div",15),a.k0s(),a.DNE(6,Xt,3,2,"div",16)),2&Y){const re=a.XpG();a.vxM(re.item.icon?0:-1),a.R7$(3),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.title),a.R7$(),a.SpI(" ",re.item.title," "),a.R7$(),a.vxM(re.item.subtitle?5:-1),a.R7$(),a.vxM(re.item.badge?6:-1)}}let yn=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new C.B}ngOnInit(){this.isActiveMatchOptions=this.item.isActiveMatchOptions??this.item.exactMatch?this._angorUtilsService.exactMatchOptions:this._angorUtilsService.subsetMatchOptions,this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._changeDetectorRef.markForCheck(),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation-basic-item"]],inputs:{item:"item",name:"name"},decls:10,vars:10,consts:[["itemTemplate",""],[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"],[1,"angor-horizontal-navigation-item",3,"ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-horizontal-navigation-item",3,"href","target","matTooltip"],[1,"angor-horizontal-navigation-item",3,"ngClass","matTooltip"],["mat-menu-item","",1,"angor-horizontal-navigation-item",3,"href","target","matTooltip"],[1,"angor-horizontal-navigation-item","angor-horizontal-navigation-item-disabled"],[4,"ngTemplateOutlet"],[1,"angor-horizontal-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-horizontal-navigation-item",3,"click","ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],["mat-menu-item","",1,"angor-horizontal-navigation-item",3,"click","href","target","matTooltip"],[1,"angor-horizontal-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-horizontal-navigation-item-title-wrapper"],[1,"angor-horizontal-navigation-item-title"],[3,"ngClass"],[1,"angor-horizontal-navigation-item-subtitle","text-hint"],[1,"angor-horizontal-navigation-item-badge"],[1,"angor-horizontal-navigation-item-badge-content",3,"ngClass"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",1),a.DNE(1,me,2,14,"div",2)(2,Te,2,4,"a",3)(3,Re,2,5,"div",4)(4,Ce,2,14,"div",2)(5,ae,2,4,"a",5)(6,$e,2,5,"div",4)(7,ht,2,1,"div",6),a.k0s(),a.DNE(8,ln,7,5,"ng-template",null,0,a.C5r)),2&Xe&&(a.AVh("angor-horizontal-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(),a.vxM(!wt.item.link||wt.item.externalLink||wt.item.function||wt.item.disabled?-1:1),a.R7$(),a.vxM(wt.item.link&&wt.item.externalLink&&!wt.item.function&&!wt.item.disabled?2:-1),a.R7$(),a.vxM(wt.item.link||!wt.item.function||wt.item.disabled?-1:3),a.R7$(),a.vxM(wt.item.link&&!wt.item.externalLink&&wt.item.function&&!wt.item.disabled?4:-1),a.R7$(),a.vxM(wt.item.link&&wt.item.externalLink&&wt.item.function&&!wt.item.disabled?5:-1),a.R7$(),a.vxM(wt.item.link||wt.item.function||wt.item.disabled?-1:6),a.R7$(),a.vxM(wt.item.disabled?7:-1))},dependencies:[T.YU,N.Wk,N.wQ,I.uc,I.oV,T.T3,A.Cn,A.fb,S.m_,S.An],encapsulation:2,changeDetection:0})}}return Y})(),$n=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation-divider-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper","divider",3,"ngClass"]],template:function(Xe,wt){1&Xe&&a.nrm(0,"div",0),2&Xe&&a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return Y})();const bn=["matMenu"],Qe=(Y,je)=>({"angor-horizontal-navigation-menu-active":Y,"angor-horizontal-navigation-menu-active-forced":je}),bt=Y=>({$implicit:Y}),ze=(Y,je)=>({"angor-horizontal-navigation-item-disabled":Y,"angor-horizontal-navigation-item-active-forced":je});function Fe(Y,je){1&Y&&a.eu8(0)}function Ft(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"div",6,2),a.bIt("onMenuOpen",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.triggerChangeDetection())})("onMenuClose",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.triggerChangeDetection())}),a.DNE(2,Fe,1,0,"ng-container",7),a.k0s()}if(2&Y){const re=a.sdS(1),Xe=a.XpG(),wt=a.sdS(2),Ln=a.sdS(6);a.Y8G("ngClass",a.l_i(4,Qe,re.menuOpen,Xe.item.active))("matMenuTriggerFor",wt),a.R7$(2),a.Y8G("ngTemplateOutlet",Ln)("ngTemplateOutletContext",a.eq3(7,bt,Xe.item))}}function Ke(Y,je){if(1&Y&&(a.j41(0,"div",8),a.nrm(1,"angor-horizontal-navigation-basic-item",11),a.k0s()),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("disabled",re.disabled),a.R7$(),a.Y8G("item",re)("name",Xe.name)}}function dt(Y,je){1&Y&&a.eu8(0)}function Ge(Y,je){if(1&Y&&(a.j41(0,"div",9),a.DNE(1,dt,1,0,"ng-container",7),a.nrm(2,"angor-horizontal-navigation-branch-item",12,3),a.k0s()),2&Y){const re=a.sdS(3),Xe=a.XpG(2).$implicit,wt=a.XpG(),Ln=a.sdS(6);a.Y8G("disabled",Xe.disabled)("matMenuTriggerFor",re.matMenu),a.R7$(),a.Y8G("ngTemplateOutlet",Ln)("ngTemplateOutletContext",a.eq3(7,bt,Xe)),a.R7$(),a.Y8G("child",!0)("item",Xe)("name",wt.name)}}function He(Y,je){if(1&Y&&(a.j41(0,"div",10),a.nrm(1,"angor-horizontal-navigation-divider-item",11),a.k0s()),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.R7$(),a.Y8G("item",re)("name",Xe.name)}}function mt(Y,je){if(1&Y&&a.DNE(0,Ke,2,3,"div",8)(1,Ge,4,9,"div",9)(2,He,2,2,"div",10),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("aside"===re.type||"collapsable"===re.type||"group"===re.type?1:-1),a.R7$(),a.vxM("divider"===re.type?2:-1)}}function se(Y,je){if(1&Y&&a.DNE(0,mt,3,3),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function Ze(Y,je){if(1&Y&&a.nrm(0,"mat-icon",15),2&Y){const re=a.XpG().$implicit;a.Y8G("ngClass",null==re.classes?null:re.classes.icon)("svgIcon",re.icon)}}function Rt(Y,je){if(1&Y&&(a.j41(0,"div",19)(1,"span",18),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG().$implicit;a.R7$(),a.Y8G("ngClass",null==re.classes?null:re.classes.subtitle),a.R7$(),a.SpI(" ",re.subtitle," ")}}function Jt(Y,je){if(1&Y&&(a.j41(0,"div",20)(1,"div",21),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG().$implicit;a.R7$(),a.Y8G("ngClass",re.badge.classes),a.R7$(),a.SpI(" ",re.badge.title," ")}}function fn(Y,je){if(1&Y&&(a.j41(0,"div",13)(1,"div",14),a.DNE(2,Ze,1,2,"mat-icon",15),a.j41(3,"div",16)(4,"div",17)(5,"span",18),a.EFF(6),a.k0s()(),a.DNE(7,Rt,3,2,"div",19),a.k0s(),a.DNE(8,Jt,3,2,"div",20),a.k0s()()),2&Y){const re=je.$implicit;a.AVh("angor-horizontal-navigation-item-has-subtitle",!!re.subtitle),a.Y8G("ngClass",null==re.classes?null:re.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.l_i(10,ze,re.disabled,re.active))("matTooltip",re.tooltip||""),a.R7$(),a.vxM(re.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==re.classes?null:re.classes.title),a.R7$(),a.SpI(" ",re.title," "),a.R7$(),a.vxM(re.subtitle?7:-1),a.R7$(),a.vxM(re.badge?8:-1)}}let Gn=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this.child=!1,this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}triggerChangeDetection(){this._changeDetectorRef.markForCheck()}trackByFn(re,Xe){return Xe.id||re}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation-branch-item"]],viewQuery:function(Xe,wt){if(1&Xe&&a.GBs(bn,7),2&Xe){let Ln;a.mGM(Ln=a.lsd())&&(wt.matMenu=Ln.first)}},inputs:{child:"child",item:"item",name:"name"},decls:7,vars:2,consts:[["matMenu","matMenu"],["itemTemplate",""],["trigger","matMenuTrigger"],["branch",""],[3,"ngClass","matMenuTriggerFor"],[1,"angor-horizontal-navigation-menu-panel",3,"overlapTrigger"],[3,"onMenuOpen","onMenuClose","ngClass","matMenuTriggerFor"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item",3,"disabled"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item"],[3,"item","name"],[3,"child","item","name"],[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"],[1,"angor-horizontal-navigation-item",3,"ngClass","matTooltip"],[1,"angor-horizontal-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-horizontal-navigation-item-title-wrapper"],[1,"angor-horizontal-navigation-item-title"],[3,"ngClass"],[1,"angor-horizontal-navigation-item-subtitle","text-hint"],[1,"angor-horizontal-navigation-item-badge"],[1,"angor-horizontal-navigation-item-badge-content",3,"ngClass"]],template:function(Xe,wt){1&Xe&&(a.DNE(0,Ft,3,9,"div",4),a.j41(1,"mat-menu",5,0),a.Z7z(3,se,1,1,null,null,wt.trackByFn,!0),a.k0s(),a.DNE(5,fn,9,13,"ng-template",null,1,a.C5r)),2&Xe&&(a.vxM(wt.child?-1:0),a.R7$(),a.Y8G("overlapTrigger",!1),a.R7$(2),a.Dyx(wt.item.children))},dependencies:()=>[Y,T.YU,A.Cn,A.kk,A.fb,A.Cp,T.T3,yn,$n,I.uc,I.oV,S.m_,S.An],encapsulation:2,changeDetection:0})}}return Y})(),Nt=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation-spacer-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"]],template:function(Xe,wt){1&Xe&&a.nrm(0,"div",0),2&Xe&&a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return Y})();function Qt(Y,je){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-basic-item",1),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function an(Y,je){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-branch-item",1),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function Xn(Y,je){if(1&Y&&a.nrm(0,"angor-horizontal-navigation-spacer-item",1),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function En(Y,je){if(1&Y&&a.DNE(0,Qt,1,2,"angor-horizontal-navigation-basic-item",1)(1,an,1,2,"angor-horizontal-navigation-branch-item",1)(2,Xn,1,2,"angor-horizontal-navigation-spacer-item",1),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("aside"===re.type||"collapsable"===re.type||"group"===re.type?1:-1),a.R7$(),a.vxM("spacer"===re.type?2:-1)}}function Gt(Y,je){if(1&Y&&a.DNE(0,En,3,3),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}let At=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.name=this._angorUtilsService.randomId(),this.onRefreshed=new w.m(1),this._unsubscribeAll=new C.B}ngOnChanges(re){"navigation"in re&&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(re,Xe){return Xe.id||re}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-horizontal-navigation"]],inputs:{name:"name",navigation:"navigation"},exportAs:["angorHorizontalNavigation"],features:[a.OA$],decls:3,vars:0,consts:[[1,"angor-horizontal-navigation-wrapper"],[1,"angor-horizontal-navigation-menu-item",3,"item","name"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",0),a.Z7z(1,Gt,1,1,null,null,wt.trackByFn,!0),a.k0s()),2&Xe&&(a.R7$(),a.Dyx(wt.navigation))},dependencies:[yn,Gn,Nt],styles:["angor-horizontal-navigation .angor-horizontal-navigation-wrapper{display:flex;align-items:center}@media (min-width: 600px){angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item:hover .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item:hover .angor-horizontal-navigation-item-wrapper{background-color:var(--angor-bg-hover)}}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper{border-radius:4px;overflow:hidden}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item{padding:0 16px;cursor:pointer;-webkit-user-select:none;user-select:none}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-icon,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-icon{margin-right:12px}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-title,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-title{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))!important}.dark angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.dark angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-icon,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-menu-active .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-menu-active-forced .angor-horizontal-navigation-item-wrapper{background-color:var(--angor-bg-hover)}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-spacer-item{margin:12px 0}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item{height:auto;min-height:0;line-height:normal;white-space:normal}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item,.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-branch-item,.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item{display:flex;flex:1 1 auto}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item{margin:8px -16px}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item .angor-horizontal-navigation-item-wrapper{height:1px;box-shadow:0 1px}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-title,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-title{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))!important}.dark .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.dark .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1))!important}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-icon,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper{width:100%}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper.angor-horizontal-navigation-item-has-subtitle .angor-horizontal-navigation-item{min-height:56px}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item{position:relative;display:flex;align-items:center;justify-content:flex-start;min-height:48px;width:100%;font-size:13px;font-weight:500;text-decoration:none}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-title-wrapper .angor-horizontal-navigation-item-subtitle{font-size:12px}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-badge{margin-left:auto}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-badge .angor-horizontal-navigation-item-badge-content{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;white-space:nowrap;height:20px}\n"],encapsulation:2,data:{animation:i.F},changeDetection:0})}}return Y})();const Kt=Y=>({"angor-vertical-navigation-item-active-forced":Y}),xn=Y=>[Y];function Yn(Y,je){1&Y&&a.eu8(0)}function tt(Y,je){if(1&Y&&(a.j41(0,"a",2),a.DNE(1,Yn,1,0,"ng-container",6),a.k0s()),2&Y){let re,Xe,wt,Ln;const hn=a.XpG(),ur=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Kt,hn.item.active))("routerLink",a.eq3(12,xn,hn.item.link))("fragment",null!==(re=hn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Xe=hn.item.preserveFragment)&&void 0!==Xe&&Xe)("queryParams",null!==(wt=hn.item.queryParams)&&void 0!==wt?wt:null)("queryParamsHandling",null!==(Ln=hn.item.queryParamsHandling)&&void 0!==Ln?Ln:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",hn.isActiveMatchOptions)("matTooltip",hn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ur)}}function ke(Y,je){1&Y&&a.eu8(0)}function B(Y,je){if(1&Y&&(a.j41(0,"a",3),a.DNE(1,ke,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("href",re.item.link,a.B4B)("target",re.item.target||"_self")("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function k(Y,je){1&Y&&a.eu8(0)}function j(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"div",7),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,k,1,0,"ng-container",6),a.k0s()}if(2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Kt,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function De(Y,je){1&Y&&a.eu8(0)}function it(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"a",8),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,De,1,0,"ng-container",6),a.k0s()}if(2&Y){let re,Xe,wt,Ln;const hn=a.XpG(),ur=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Kt,hn.item.active))("routerLink",a.eq3(12,xn,hn.item.link))("fragment",null!==(re=hn.item.fragment)&&void 0!==re?re:null)("preserveFragment",null!==(Xe=hn.item.preserveFragment)&&void 0!==Xe&&Xe)("queryParams",null!==(wt=hn.item.queryParams)&&void 0!==wt?wt:null)("queryParamsHandling",null!==(Ln=hn.item.queryParamsHandling)&&void 0!==Ln?Ln:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",hn.isActiveMatchOptions)("matTooltip",hn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ur)}}function ot(Y,je){1&Y&&a.eu8(0)}function Tt(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"a",9),a.bIt("click",function(){a.eBV(re);const wt=a.XpG();return a.Njj(wt.item.function(wt.item))}),a.DNE(1,ot,1,0,"ng-container",6),a.k0s()}if(2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("href",re.item.link,a.B4B)("target",re.item.target||"_self")("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function In(Y,je){1&Y&&a.eu8(0)}function Vt(Y,je){if(1&Y&&(a.j41(0,"div",4),a.DNE(1,In,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Kt,re.item.active))("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function dn(Y,je){1&Y&&a.eu8(0)}function Pn(Y,je){if(1&Y&&(a.j41(0,"div",5),a.DNE(1,dn,1,0,"ng-container",6),a.k0s()),2&Y){const re=a.XpG(),Xe=a.sdS(9);a.Y8G("matTooltip",re.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Xe)}}function Fn(Y,je){if(1&Y&&a.nrm(0,"mat-icon",10),2&Y){const re=a.XpG(2);a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function Bn(Y,je){if(1&Y&&(a.j41(0,"div",14)(1,"span",13),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG(2);a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function cr(Y,je){if(1&Y&&(a.j41(0,"div",15)(1,"div",16),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG(2);a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function Jr(Y,je){if(1&Y&&(a.DNE(0,Fn,1,2,"mat-icon",10),a.j41(1,"div",11)(2,"div",12)(3,"span",13),a.EFF(4),a.k0s()(),a.DNE(5,Bn,3,2,"div",14),a.k0s(),a.DNE(6,cr,3,2,"div",15)),2&Y){const re=a.XpG();a.vxM(re.item.icon?0:-1),a.R7$(3),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.title),a.R7$(),a.SpI(" ",re.item.title," "),a.R7$(),a.vxM(re.item.subtitle?5:-1),a.R7$(),a.vxM(re.item.badge?6:-1)}}let Xr=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new C.B}ngOnInit(){this.isActiveMatchOptions=this.item.isActiveMatchOptions??this.item.exactMatch?this._angorUtilsService.exactMatchOptions:this._angorUtilsService.subsetMatchOptions,this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._changeDetectorRef.markForCheck(),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-basic-item"]],inputs:{item:"item",name:"name"},decls:10,vars:10,consts:[["itemTemplate",""],[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-vertical-navigation-item",3,"href","target","matTooltip"],[1,"angor-vertical-navigation-item",3,"ngClass","matTooltip"],[1,"angor-vertical-navigation-item","angor-vertical-navigation-item-disabled",3,"matTooltip"],[4,"ngTemplateOutlet"],[1,"angor-vertical-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-vertical-navigation-item",3,"click","ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-vertical-navigation-item",3,"click","href","target","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",1),a.DNE(1,tt,2,14,"a",2)(2,B,2,4,"a",3)(3,j,2,5,"div",4)(4,it,2,14,"a",2)(5,Tt,2,4,"a",3)(6,Vt,2,5,"div",4)(7,Pn,2,2,"div",5),a.k0s(),a.DNE(8,Jr,7,5,"ng-template",null,0,a.C5r)),2&Xe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(),a.vxM(!wt.item.link||wt.item.externalLink||wt.item.function||wt.item.disabled?-1:1),a.R7$(),a.vxM(wt.item.link&&wt.item.externalLink&&!wt.item.function&&!wt.item.disabled?2:-1),a.R7$(),a.vxM(wt.item.link||!wt.item.function||wt.item.disabled?-1:3),a.R7$(),a.vxM(wt.item.link&&!wt.item.externalLink&&wt.item.function&&!wt.item.disabled?4:-1),a.R7$(),a.vxM(wt.item.link&&wt.item.externalLink&&wt.item.function&&!wt.item.disabled?5:-1),a.R7$(),a.vxM(wt.item.link||wt.item.function||wt.item.disabled?-1:6),a.R7$(),a.vxM(wt.item.disabled?7:-1))},dependencies:[T.YU,N.Wk,N.wQ,I.uc,I.oV,T.T3,S.m_,S.An],encapsulation:2,changeDetection:0})}}return Y})(),_t=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-divider-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper","divider",3,"ngClass"]],template:function(Xe,wt){1&Xe&&a.nrm(0,"div",0),2&Xe&&a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return Y})(),Bt=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-spacer-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"]],template:function(Xe,wt){1&Xe&&a.nrm(0,"div",0),2&Xe&&a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return Y})();function Ee(Y,je){if(1&Y&&a.nrm(0,"mat-icon",2),2&Y){const re=a.XpG();a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function lt(Y,je){if(1&Y&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function Pe(Y,je){if(1&Y&&(a.j41(0,"div",7)(1,"div",8),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function kt(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function ft(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function Pt(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function mn(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function or(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function Mr(Y,je){if(1&Y&&a.DNE(0,kt,1,2,"angor-vertical-navigation-basic-item",9)(1,ft,1,3,"angor-vertical-navigation-collapsable-item",10)(2,Pt,1,2,"angor-vertical-navigation-divider-item",9)(3,mn,1,2,"angor-vertical-navigation-group-item",9)(4,or,1,2,"angor-vertical-navigation-spacer-item",9),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("collapsable"===re.type?1:-1),a.R7$(),a.vxM("divider"===re.type?2:-1),a.R7$(),a.vxM("group"===re.type?3:-1),a.R7$(),a.vxM("spacer"===re.type?4:-1)}}function ii(Y,je){if(1&Y&&a.DNE(0,Mr,5,5),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}let ci=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(re,Xe){return Xe.id||re}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-group-item"]],inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},decls:11,vars:8,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,Ee,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,lt,3,2,"div",6),a.k0s(),a.DNE(8,Pe,3,2,"div",7),a.k0s()(),a.Z7z(9,ii,1,1,null,null,wt.trackByFn,!0)),2&Xe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(2),a.vxM(wt.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.title),a.R7$(),a.SpI(" ",wt.item.title," "),a.R7$(),a.vxM(wt.item.subtitle?7:-1),a.R7$(),a.vxM(wt.item.badge?8:-1),a.R7$(),a.Dyx(wt.item.children))},dependencies:()=>[Y,T.YU,S.m_,S.An,Xr,so,_t,Bt],encapsulation:2,changeDetection:0})}}return Y})();var Ai=r(5964);const rn=Y=>({"angor-vertical-navigation-item-disabled":Y});function St(Y,je){if(1&Y&&a.nrm(0,"mat-icon",2),2&Y){const re=a.XpG();a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function qe(Y,je){if(1&Y&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function Dt(Y,je){if(1&Y&&(a.j41(0,"div",7)(1,"div",10),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function Wt(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Hn(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",12),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function fr(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function uo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Oi(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Uo(Y,je){if(1&Y&&a.DNE(0,Wt,1,2,"angor-vertical-navigation-basic-item",11)(1,Hn,1,3,"angor-vertical-navigation-collapsable-item",12)(2,fr,1,2,"angor-vertical-navigation-divider-item",11)(3,uo,1,2,"angor-vertical-navigation-group-item",11)(4,Oi,1,2,"angor-vertical-navigation-spacer-item",11),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("collapsable"===re.type?1:-1),a.R7$(),a.vxM("divider"===re.type?2:-1),a.R7$(),a.vxM("group"===re.type?3:-1),a.R7$(),a.vxM("spacer"===re.type?4:-1)}}function oi(Y,je){if(1&Y&&a.DNE(0,Uo,5,5),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function ts(Y,je){if(1&Y&&(a.j41(0,"div",9),a.Z7z(1,oi,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&Y){const re=a.XpG();a.Y8G("@expandCollapse",void 0),a.R7$(),a.Dyx(re.item.children)}}let so=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._router=(0,a.WQX)(N.Ix),this._angorNavigationService=(0,a.WQX)(c),this.isCollapsed=!0,this.isExpanded=!1,this._unsubscribeAll=new C.B}get classList(){return{"angor-vertical-navigation-item-collapsed":this.isCollapsed,"angor-vertical-navigation-item-expanded":this.isExpanded}}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._hasActiveChild(this.item,this._router.url)?this.expand():this.autoCollapse&&this.collapse(),this._angorVerticalNavigationComponent.onCollapsableItemCollapsed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(re=>{null!==re&&this._isChildrenOf(re,this.item)&&this.collapse()}),this.autoCollapse&&this._angorVerticalNavigationComponent.onCollapsableItemExpanded.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(re=>{null!==re&&(this._isChildrenOf(this.item,re)||this._hasActiveChild(this.item,this._router.url)||this.item!==re&&this.collapse())}),this._router.events.pipe((0,Ai.p)(re=>re instanceof N.wF),(0,G.Q)(this._unsubscribeAll)).subscribe(re=>{this._hasActiveChild(this.item,re.urlAfterRedirects)?this.expand():this.autoCollapse&&this.collapse()}),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,G.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(re,Xe){return Xe.id||re}_hasActiveChild(re,Xe){const wt=re.children;if(!wt)return!1;for(const Ln of wt)if(Ln.children&&this._hasActiveChild(Ln,Xe)||Ln.link&&this._router.isActive(Ln.link,Ln.exactMatch||!1))return!0;return!1}_isChildrenOf(re,Xe){const wt=re.children;if(!wt)return!1;if(wt.indexOf(Xe)>-1)return!0;for(const Ln of wt)if(Ln.children&&this._isChildrenOf(Ln,Xe))return!0;return!1}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-collapsable-item"]],hostVars:2,hostBindings:function(Xe,wt){2&Xe&&a.HbH(wt.classList)},inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},decls:11,vars:14,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-arrow","icon-size-4",3,"svgIcon"],[1,"angor-vertical-navigation-item-children"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",0)(1,"div",1),a.bIt("click",function(){return wt.toggleCollapsable()}),a.DNE(2,St,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,qe,3,2,"div",6),a.k0s(),a.DNE(8,Dt,3,2,"div",7),a.nrm(9,"mat-icon",8),a.k0s()(),a.DNE(10,ts,3,1,"div",9)),2&Xe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.eq3(12,rn,wt.item.disabled))("matTooltip",wt.item.tooltip||""),a.R7$(),a.vxM(wt.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.title),a.R7$(),a.SpI(" ",wt.item.title," "),a.R7$(),a.vxM(wt.item.subtitle?7:-1),a.R7$(),a.vxM(wt.item.badge?8:-1),a.R7$(),a.Y8G("svgIcon","heroicons_solid:chevron-right"),a.R7$(),a.vxM(wt.isCollapsed?-1:10))},dependencies:()=>[Y,T.YU,I.uc,I.oV,S.m_,S.An,Xr,_t,ci,Bt],encapsulation:2,data:{animation:i.F},changeDetection:0})}}return Y})();const bo=(Y,je,re)=>({"angor-vertical-navigation-item-active":Y,"angor-vertical-navigation-item-disabled":je,"angor-vertical-navigation-item-active-forced":re});function Xo(Y,je){if(1&Y&&a.nrm(0,"mat-icon",2),2&Y){const re=a.XpG();a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.icon)("svgIcon",re.item.icon)}}function Co(Y,je){if(1&Y&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",null==re.item.classes?null:re.item.classes.subtitle),a.R7$(),a.SpI(" ",re.item.subtitle," ")}}function Is(Y,je){if(1&Y&&(a.j41(0,"div",7)(1,"div",9),a.EFF(2),a.k0s()()),2&Y){const re=a.XpG();a.R7$(),a.Y8G("ngClass",re.item.badge.classes),a.R7$(),a.SpI(" ",re.item.badge.title," ")}}function eo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function oo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",11),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function Bi(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Mo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function Je(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",10),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)}}function ct(Y,je){if(1&Y&&a.DNE(0,eo,1,2,"angor-vertical-navigation-basic-item",10)(1,oo,1,3,"angor-vertical-navigation-collapsable-item",11)(2,Bi,1,2,"angor-vertical-navigation-divider-item",10)(3,Mo,1,2,"angor-vertical-navigation-group-item",10)(4,Je,1,2,"angor-vertical-navigation-spacer-item",10),2&Y){const re=a.XpG().$implicit;a.vxM("basic"===re.type?0:-1),a.R7$(),a.vxM("collapsable"===re.type?1:-1),a.R7$(),a.vxM("divider"===re.type?2:-1),a.R7$(),a.vxM("group"===re.type?3:-1),a.R7$(),a.vxM("spacer"===re.type?4:-1)}}function Et(Y,je){if(1&Y&&a.DNE(0,ct,5,5),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function ve(Y,je){if(1&Y&&(a.j41(0,"div",8),a.Z7z(1,Et,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&Y){const re=a.XpG();a.R7$(),a.Dyx(re.item.children)}}let et=(()=>{class Y{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._router=(0,a.WQX)(N.Ix),this._angorNavigationService=(0,a.WQX)(c),this.active=!1,this._unsubscribeAll=new C.B}ngOnChanges(re){"activeItemId"in re&&this._markIfActive(this._router.url)}ngOnInit(){this._markIfActive(this._router.url),this._router.events.pipe((0,Ai.p)(re=>re instanceof N.wF),(0,G.Q)(this._unsubscribeAll)).subscribe(re=>{this._markIfActive(re.urlAfterRedirects)}),this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,G.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(re,Xe){return Xe.id||re}_hasActiveChild(re,Xe){const wt=re.children;if(!wt)return!1;for(const Ln of wt){if(Ln.children&&this._hasActiveChild(Ln,Xe))return!0;if("basic"===Ln.type&&Ln.link&&this._router.isActive(Ln.link,Ln.exactMatch||!1))return!0}return!1}_markIfActive(re){this.active=this.activeItemId===this.item.id,this._hasActiveChild(this.item,re)&&(this.active=!0),this._changeDetectorRef.markForCheck()}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation-aside-item"]],inputs:{activeItemId:"activeItemId",autoCollapse:"autoCollapse",item:"item",name:"name",skipChildren:"skipChildren"},features:[a.OA$],decls:10,vars:15,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"ngClass","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-children"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(Xe,wt){1&Xe&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,Xo,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,Co,3,2,"div",6),a.k0s(),a.DNE(8,Is,3,2,"div",7),a.k0s()(),a.DNE(9,ve,3,0,"div",8)),2&Xe&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!wt.item.subtitle),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.sMw(11,bo,wt.active,wt.item.disabled,wt.item.active))("matTooltip",wt.item.tooltip||""),a.R7$(),a.vxM(wt.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==wt.item.classes?null:wt.item.classes.title),a.R7$(),a.SpI(" ",wt.item.title," "),a.R7$(),a.vxM(wt.item.subtitle?7:-1),a.R7$(),a.vxM(wt.item.badge?8:-1),a.R7$(),a.vxM(wt.skipChildren?-1:9))},dependencies:[T.YU,I.uc,I.oV,S.m_,S.An,Xr,so,_t,ci,Bt],encapsulation:2,changeDetection:0})}}return Y})();class Oe{constructor(je,re,Xe,wt){this.x=je,this.y=re,this.w=Xe,this.h=wt}}class pt{constructor(je,re){this.x=je,this.y=re}}var $t=r(4085),Mt=r(6860),un=r(2401);function Cn(Y){return getComputedStyle(Y)}function Sn(Y,je){for(var re in je){var Xe=je[re];"number"==typeof Xe&&(Xe+="px"),Y.style[re]=Xe}return Y}function kn(Y){var je=document.createElement("div");return je.className=Y,je}var Un=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Jn(Y,je){if(!Un)throw new Error("No element matching method supported");return Un.call(Y,je)}function sr(Y){Y.remove?Y.remove():Y.parentNode&&Y.parentNode.removeChild(Y)}function kr(Y,je){return Array.prototype.filter.call(Y.children,function(re){return Jn(re,je)})}var mr_element_thumb=function(Y){return"ps__thumb-"+Y},mr_element_rail=function(Y){return"ps__rail-"+Y},mr_element_consuming="ps__child--consume",mr_state_focus="ps--focus",mr_state_clicking="ps--clicking",mr_state_active=function(Y){return"ps--active-"+Y},mr_state_scrolling=function(Y){return"ps--scrolling-"+Y},bi={x:null,y:null};function si(Y,je){var re=Y.element.classList,Xe=mr_state_scrolling(je);re.contains(Xe)?clearTimeout(bi[je]):re.add(Xe)}function gr(Y,je){bi[je]=setTimeout(function(){return Y.isAlive&&Y.element.classList.remove(mr_state_scrolling(je))},Y.settings.scrollingThreshold)}var vo=function(je){this.element=je,this.handlers={}},$r={isEmpty:{configurable:!0}};vo.prototype.bind=function(je,re){typeof this.handlers[je]>"u"&&(this.handlers[je]=[]),this.handlers[je].push(re),this.element.addEventListener(je,re,!1)},vo.prototype.unbind=function(je,re){var Xe=this;this.handlers[je]=this.handlers[je].filter(function(wt){return!(!re||wt===re)||(Xe.element.removeEventListener(je,wt,!1),!1)})},vo.prototype.unbindAll=function(){for(var je in this.handlers)this.unbind(je)},$r.isEmpty.get=function(){var Y=this;return Object.keys(this.handlers).every(function(je){return 0===Y.handlers[je].length})},Object.defineProperties(vo.prototype,$r);var Ki=function(){this.eventElements=[]};function cs(Y){if("function"==typeof window.CustomEvent)return new CustomEvent(Y);var je=document.createEvent("CustomEvent");return je.initCustomEvent(Y,!1,!1,void 0),je}function ws(Y,je,re,Xe,wt){var Ln;if(void 0===Xe&&(Xe=!0),void 0===wt&&(wt=!1),"top"===je)Ln=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==je)throw new Error("A proper axis should be provided");Ln=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function ia(Y,je,re,Xe,wt){var Ln=re[0],hn=re[1],ur=re[2],hr=re[3],Gr=re[4],zi=re[5];void 0===Xe&&(Xe=!0),void 0===wt&&(wt=!1);var Or=Y.element;Y.reach[hr]=null,Or[ur]<1&&(Y.reach[hr]="start"),Or[ur]>Y[Ln]-Y[hn]-1&&(Y.reach[hr]="end"),je&&(Or.dispatchEvent(cs("ps-scroll-"+hr)),je<0?Or.dispatchEvent(cs("ps-scroll-"+Gr)):je>0&&Or.dispatchEvent(cs("ps-scroll-"+zi)),Xe&&function ai(Y,je){si(Y,je),gr(Y,je)}(Y,hr)),Y.reach[hr]&&(je||wt)&&Or.dispatchEvent(cs("ps-"+hr+"-reach-"+Y.reach[hr]))}(Y,re,Ln,Xe,wt)}function Sr(Y){return parseInt(Y,10)||0}Ki.prototype.eventElement=function(je){var re=this.eventElements.filter(function(Xe){return Xe.element===je})[0];return re||(re=new vo(je),this.eventElements.push(re)),re},Ki.prototype.bind=function(je,re,Xe){this.eventElement(je).bind(re,Xe)},Ki.prototype.unbind=function(je,re,Xe){var wt=this.eventElement(je);wt.unbind(re,Xe),wt.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(wt),1)},Ki.prototype.unbindAll=function(){this.eventElements.forEach(function(je){return je.unbindAll()}),this.eventElements=[]},Ki.prototype.once=function(je,re,Xe){var wt=this.eventElement(je),Ln=function(hn){wt.unbind(re,Ln),Xe(hn)};wt.bind(re,Ln)};var wo={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 Ls(Y){var je=Y.element,re=Math.floor(je.scrollTop),Xe=je.getBoundingClientRect();Y.containerWidth=Math.floor(Xe.width),Y.containerHeight=Math.floor(Xe.height),Y.contentWidth=je.scrollWidth,Y.contentHeight=je.scrollHeight,je.contains(Y.scrollbarXRail)||(kr(je,mr_element_rail("x")).forEach(function(wt){return sr(wt)}),je.appendChild(Y.scrollbarXRail)),je.contains(Y.scrollbarYRail)||(kr(je,mr_element_rail("y")).forEach(function(wt){return sr(wt)}),je.appendChild(Y.scrollbarYRail)),!Y.settings.suppressScrollX&&Y.containerWidth+Y.settings.scrollXMarginOffset=Y.railXWidth-Y.scrollbarXWidth&&(Y.scrollbarXLeft=Y.railXWidth-Y.scrollbarXWidth),Y.scrollbarYTop>=Y.railYHeight-Y.scrollbarYHeight&&(Y.scrollbarYTop=Y.railYHeight-Y.scrollbarYHeight),function Xs(Y,je){var re={width:je.railXWidth},Xe=Math.floor(Y.scrollTop);re.left=je.isRtl?je.negativeScrollAdjustment+Y.scrollLeft+je.containerWidth-je.contentWidth:Y.scrollLeft,je.isScrollbarXUsingBottom?re.bottom=je.scrollbarXBottom-Xe:re.top=je.scrollbarXTop+Xe,Sn(je.scrollbarXRail,re);var wt={top:Xe,height:je.railYHeight};je.isScrollbarYUsingRight?wt.right=je.isRtl?je.contentWidth-(je.negativeScrollAdjustment+Y.scrollLeft)-je.scrollbarYRight-je.scrollbarYOuterWidth-9:je.scrollbarYRight-Y.scrollLeft:wt.left=je.isRtl?je.negativeScrollAdjustment+Y.scrollLeft+2*je.containerWidth-je.contentWidth-je.scrollbarYLeft-je.scrollbarYOuterWidth:je.scrollbarYLeft+Y.scrollLeft,Sn(je.scrollbarYRail,wt),Sn(je.scrollbarX,{left:je.scrollbarXLeft,width:je.scrollbarXWidth-je.railBorderXWidth}),Sn(je.scrollbarY,{top:je.scrollbarYTop,height:je.scrollbarYHeight-je.railBorderYWidth})}(je,Y),Y.scrollbarXActive?je.classList.add(mr_state_active("x")):(je.classList.remove(mr_state_active("x")),Y.scrollbarXWidth=0,Y.scrollbarXLeft=0,je.scrollLeft=!0===Y.isRtl?Y.contentWidth:0),Y.scrollbarYActive?je.classList.add(mr_state_active("y")):(je.classList.remove(mr_state_active("y")),Y.scrollbarYHeight=0,Y.scrollbarYTop=0,je.scrollTop=0)}function Ps(Y,je){return Y.settings.minScrollbarLength&&(je=Math.max(je,Y.settings.minScrollbarLength)),Y.settings.maxScrollbarLength&&(je=Math.min(je,Y.settings.maxScrollbarLength)),je}var Ys=null;function Fs(Y,je){var re=je[0],Xe=je[1],wt=je[2],Ln=je[3],hn=je[4],ur=je[5],hr=je[6],Gr=je[7],zi=je[8],Or=Y.element,Dr=null,Ei=null,ui=null;function ho(Oo){Oo.touches&&Oo.touches[0]&&(Oo[wt]=Oo.touches[0]["page"+Gr.toUpperCase()]),Ys===hn&&(Or[hr]=Dr+ui*(Oo[wt]-Ei),si(Y,Gr),Ls(Y),Oo.stopPropagation(),Oo.preventDefault())}function lo(){gr(Y,Gr),Y[zi].classList.remove(mr_state_clicking),document.removeEventListener("mousemove",ho),document.removeEventListener("mouseup",lo),document.removeEventListener("touchmove",ho),document.removeEventListener("touchend",lo),Ys=null}function Ho(Oo){null===Ys&&(Ys=hn,Dr=Or[hr],Oo.touches&&(Oo[wt]=Oo.touches[0]["page"+Gr.toUpperCase()]),Ei=Oo[wt],ui=(Y[Xe]-Y[re])/(Y[Ln]-Y[ur]),Oo.touches?(document.addEventListener("touchmove",ho,{passive:!1}),document.addEventListener("touchend",lo)):(document.addEventListener("mousemove",ho),document.addEventListener("mouseup",lo)),Y[zi].classList.add(mr_state_clicking)),Oo.stopPropagation(),Oo.cancelable&&Oo.preventDefault()}Y[hn].addEventListener("mousedown",Ho),Y[hn].addEventListener("touchstart",Ho)}var to={"click-rail":function Gi(Y){Y.event.bind(Y.scrollbarY,"mousedown",function(je){return je.stopPropagation()}),Y.event.bind(Y.scrollbarYRail,"mousedown",function(je){var re=je.pageY-window.pageYOffset-Y.scrollbarYRail.getBoundingClientRect().top;Y.element.scrollTop+=(re>Y.scrollbarYTop?1:-1)*Y.containerHeight,Ls(Y),je.stopPropagation()}),Y.event.bind(Y.scrollbarX,"mousedown",function(je){return je.stopPropagation()}),Y.event.bind(Y.scrollbarXRail,"mousedown",function(je){var re=je.pageX-window.pageXOffset-Y.scrollbarXRail.getBoundingClientRect().left;Y.element.scrollLeft+=(re>Y.scrollbarXLeft?1:-1)*Y.containerWidth,Ls(Y),je.stopPropagation()})},"drag-thumb":function Ni(Y){Fs(Y,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),Fs(Y,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])},keyboard:function ns(Y){var je=Y.element;Y.event.bind(Y.ownerDocument,"keydown",function(Ln){if(!(Ln.isDefaultPrevented&&Ln.isDefaultPrevented()||Ln.defaultPrevented)&&(Jn(je,":hover")||Jn(Y.scrollbarX,":focus")||Jn(Y.scrollbarY,":focus"))){var hn=document.activeElement?document.activeElement:Y.ownerDocument.activeElement;if(hn){if("IFRAME"===hn.tagName)hn=hn.contentDocument.activeElement;else for(;hn.shadowRoot;)hn=hn.shadowRoot.activeElement;if(function oa(Y){return Jn(Y,"input,[contenteditable]")||Jn(Y,"select,[contenteditable]")||Jn(Y,"textarea,[contenteditable]")||Jn(Y,"button,[contenteditable]")}(hn))return}var ur=0,hr=0;switch(Ln.which){case 37:ur=Ln.metaKey?-Y.contentWidth:Ln.altKey?-Y.containerWidth:-30;break;case 38:hr=Ln.metaKey?Y.contentHeight:Ln.altKey?Y.containerHeight:30;break;case 39:ur=Ln.metaKey?Y.contentWidth:Ln.altKey?Y.containerWidth:30;break;case 40:hr=Ln.metaKey?-Y.contentHeight:Ln.altKey?-Y.containerHeight:-30;break;case 32:hr=Ln.shiftKey?Y.containerHeight:-Y.containerHeight;break;case 33:hr=Y.containerHeight;break;case 34:hr=-Y.containerHeight;break;case 36:hr=Y.contentHeight;break;case 35:hr=-Y.contentHeight;break;default:return}Y.settings.suppressScrollX&&0!==ur||Y.settings.suppressScrollY&&0!==hr||(je.scrollTop-=hr,je.scrollLeft+=ur,Ls(Y),function wt(Ln,hn){var ur=Math.floor(je.scrollTop);if(0===Ln){if(!Y.scrollbarYActive)return!1;if(0===ur&&hn>0||ur>=Y.contentHeight-Y.containerHeight&&hn<0)return!Y.settings.wheelPropagation}var hr=je.scrollLeft;if(0===hn){if(!Y.scrollbarXActive)return!1;if(0===hr&&Ln<0||hr>=Y.contentWidth-Y.containerWidth&&Ln>0)return!Y.settings.wheelPropagation}return!0}(ur,hr)&&Ln.preventDefault())}})},wheel:function qr(Y){var je=Y.element;function Ln(hn){var ur=function Xe(hn){var ur=hn.deltaX,hr=-1*hn.deltaY;return(typeof ur>"u"||typeof hr>"u")&&(ur=-1*hn.wheelDeltaX/6,hr=hn.wheelDeltaY/6),hn.deltaMode&&1===hn.deltaMode&&(ur*=10,hr*=10),ur!=ur&&hr!=hr&&(ur=0,hr=hn.wheelDelta),hn.shiftKey?[-hr,-ur]:[ur,hr]}(hn),hr=ur[0],Gr=ur[1];if(!function wt(hn,ur,hr){if(!wo.isWebKit&&je.querySelector("select:focus"))return!0;if(!je.contains(hn))return!1;for(var Gr=hn;Gr&&Gr!==je;){if(Gr.classList.contains(mr_element_consuming))return!0;var zi=Cn(Gr);if(hr&&zi.overflowY.match(/(scroll|auto)/)){var Or=Gr.scrollHeight-Gr.clientHeight;if(Or>0&&(Gr.scrollTop>0&&hr<0||Gr.scrollTop0))return!0}if(ur&&zi.overflowX.match(/(scroll|auto)/)){var Dr=Gr.scrollWidth-Gr.clientWidth;if(Dr>0&&(Gr.scrollLeft>0&&ur<0||Gr.scrollLeft0))return!0}Gr=Gr.parentNode}return!1}(hn.target,hr,Gr)){var zi=!1;Y.settings.useBothWheelAxes?Y.scrollbarYActive&&!Y.scrollbarXActive?(Gr?je.scrollTop-=Gr*Y.settings.wheelSpeed:je.scrollTop+=hr*Y.settings.wheelSpeed,zi=!0):Y.scrollbarXActive&&!Y.scrollbarYActive&&(hr?je.scrollLeft+=hr*Y.settings.wheelSpeed:je.scrollLeft-=Gr*Y.settings.wheelSpeed,zi=!0):(je.scrollTop-=Gr*Y.settings.wheelSpeed,je.scrollLeft+=hr*Y.settings.wheelSpeed),Ls(Y),zi=zi||function re(hn,ur){var hr=Math.floor(je.scrollTop),Gr=0===je.scrollTop,zi=hr+je.offsetHeight===je.scrollHeight,Or=0===je.scrollLeft,Dr=je.scrollLeft+je.offsetWidth===je.scrollWidth;return!(Math.abs(ur)>Math.abs(hn)?Gr||zi:Or||Dr)||!Y.settings.wheelPropagation}(hr,Gr),zi&&!hn.ctrlKey&&(hn.stopPropagation(),hn.preventDefault())}}typeof window.onwheel<"u"?Y.event.bind(je,"wheel",Ln):typeof window.onmousewheel<"u"&&Y.event.bind(je,"mousewheel",Ln)},touch:function rs(Y){if(wo.supportsTouch||wo.supportsIePointer){var je=Y.element,re={startOffset:{},startTime:0,speed:{},easingLoop:null};wo.supportsTouch?(Y.event.bind(je,"touchstart",ur),Y.event.bind(je,"touchmove",Gr),Y.event.bind(je,"touchend",zi)):wo.supportsIePointer&&(window.PointerEvent?(Y.event.bind(je,"pointerdown",ur),Y.event.bind(je,"pointermove",Gr),Y.event.bind(je,"pointerup",zi)):window.MSPointerEvent&&(Y.event.bind(je,"MSPointerDown",ur),Y.event.bind(je,"MSPointerMove",Gr),Y.event.bind(je,"MSPointerUp",zi)))}function wt(Or,Dr){je.scrollTop-=Dr,je.scrollLeft-=Or,Ls(Y)}function Ln(Or){return Or.targetTouches?Or.targetTouches[0]:Or}function hn(Or){return!(Or.target===Y.scrollbarX||Or.target===Y.scrollbarY||Or.pointerType&&"pen"===Or.pointerType&&0===Or.buttons||!(Or.targetTouches&&1===Or.targetTouches.length||Or.pointerType&&"mouse"!==Or.pointerType&&Or.pointerType!==Or.MSPOINTER_TYPE_MOUSE))}function ur(Or){if(hn(Or)){var Dr=Ln(Or);re.startOffset.pageX=Dr.pageX,re.startOffset.pageY=Dr.pageY,re.startTime=(new Date).getTime(),null!==re.easingLoop&&clearInterval(re.easingLoop)}}function Gr(Or){if(hn(Or)){var Dr=Ln(Or),Ei={pageX:Dr.pageX,pageY:Dr.pageY},ui=Ei.pageX-re.startOffset.pageX,ho=Ei.pageY-re.startOffset.pageY;if(function hr(Or,Dr,Ei){if(!je.contains(Or))return!1;for(var ui=Or;ui&&ui!==je;){if(ui.classList.contains(mr_element_consuming))return!0;var ho=Cn(ui);if(Ei&&ho.overflowY.match(/(scroll|auto)/)){var lo=ui.scrollHeight-ui.clientHeight;if(lo>0&&(ui.scrollTop>0&&Ei<0||ui.scrollTop0))return!0}if(Dr&&ho.overflowX.match(/(scroll|auto)/)){var Ho=ui.scrollWidth-ui.clientWidth;if(Ho>0&&(ui.scrollLeft>0&&Dr<0||ui.scrollLeft0))return!0}ui=ui.parentNode}return!1}(Or.target,ui,ho))return;wt(ui,ho),re.startOffset=Ei;var lo=(new Date).getTime(),Ho=lo-re.startTime;Ho>0&&(re.speed.x=ui/Ho,re.speed.y=ho/Ho,re.startTime=lo),function Xe(Or,Dr){var Ei=Math.floor(je.scrollTop),ui=je.scrollLeft,ho=Math.abs(Or),lo=Math.abs(Dr);if(lo>ho){if(Dr<0&&Ei===Y.contentHeight-Y.containerHeight||Dr>0&&0===Ei)return 0===window.scrollY&&Dr>0&&wo.isChrome}else if(ho>lo&&(Or<0&&ui===Y.contentWidth-Y.containerWidth||Or>0&&0===ui))return!0;return!0}(ui,ho)&&Or.cancelable&&Or.preventDefault()}}function zi(){Y.settings.swipeEasing&&(clearInterval(re.easingLoop),re.easingLoop=setInterval(function(){Y.isInitialized?clearInterval(re.easingLoop):re.speed.x||re.speed.y?Math.abs(re.speed.x)<.01&&Math.abs(re.speed.y)<.01?clearInterval(re.easingLoop):(wt(30*re.speed.x,30*re.speed.y),re.speed.x*=.8,re.speed.y*=.8):clearInterval(re.easingLoop)},10))}}},Wi=function(je,re){var Xe=this;if(void 0===re&&(re={}),"string"==typeof je&&(je=document.querySelector(je)),!je||!je.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var wt in this.element=je,je.classList.add("ps"),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},re)this.settings[wt]=re[wt];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var zi,Gr,Ln=function(){return je.classList.add(mr_state_focus)},hn=function(){return je.classList.remove(mr_state_focus)};this.isRtl="rtl"===Cn(je).direction,!0===this.isRtl&&je.classList.add("ps__rtl"),this.isNegativeScroll=(Gr=je.scrollLeft,je.scrollLeft=-1,zi=je.scrollLeft<0,je.scrollLeft=Gr,zi),this.negativeScrollAdjustment=this.isNegativeScroll?je.scrollWidth-je.clientWidth:0,this.event=new Ki,this.ownerDocument=je.ownerDocument||document,this.scrollbarXRail=kn(mr_element_rail("x")),je.appendChild(this.scrollbarXRail),this.scrollbarX=kn(mr_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Ln),this.event.bind(this.scrollbarX,"blur",hn),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var ur=Cn(this.scrollbarXRail);this.scrollbarXBottom=parseInt(ur.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Sr(ur.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Sr(ur.borderLeftWidth)+Sr(ur.borderRightWidth),Sn(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Sr(ur.marginLeft)+Sr(ur.marginRight),Sn(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=kn(mr_element_rail("y")),je.appendChild(this.scrollbarYRail),this.scrollbarY=kn(mr_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Ln),this.event.bind(this.scrollbarY,"blur",hn),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var hr=Cn(this.scrollbarYRail);this.scrollbarYRight=parseInt(hr.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Sr(hr.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function ma(Y){var je=Cn(Y);return Sr(je.width)+Sr(je.paddingLeft)+Sr(je.paddingRight)+Sr(je.borderLeftWidth)+Sr(je.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Sr(hr.borderTopWidth)+Sr(hr.borderBottomWidth),Sn(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Sr(hr.marginTop)+Sr(hr.marginBottom),Sn(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:je.scrollLeft<=0?"start":je.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:je.scrollTop<=0?"start":je.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Gr){return to[Gr](Xe)}),this.lastScrollTop=Math.floor(je.scrollTop),this.lastScrollLeft=je.scrollLeft,this.event.bind(this.element,"scroll",function(Gr){return Xe.onScroll(Gr)}),Ls(this)};Wi.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Sn(this.scrollbarXRail,{display:"block"}),Sn(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Sr(Cn(this.scrollbarXRail).marginLeft)+Sr(Cn(this.scrollbarXRail).marginRight),this.railYMarginHeight=Sr(Cn(this.scrollbarYRail).marginTop)+Sr(Cn(this.scrollbarYRail).marginBottom),Sn(this.scrollbarXRail,{display:"none"}),Sn(this.scrollbarYRail,{display:"none"}),Ls(this),ws(this,"top",0,!1,!0),ws(this,"left",0,!1,!0),Sn(this.scrollbarXRail,{display:""}),Sn(this.scrollbarYRail,{display:""}))},Wi.prototype.onScroll=function(je){this.isAlive&&(Ls(this),ws(this,"top",this.element.scrollTop-this.lastScrollTop),ws(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Wi.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),sr(this.scrollbarX),sr(this.scrollbarY),sr(this.scrollbarXRail),sr(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Wi.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(je){return!je.match(/^ps([-_].+|)$/)}).join(" ")};const Es=Wi;var Io=r(3726),ga=r(152);let tr=(()=>{class Y{constructor(){this._elementRef=(0,a.WQX)(a.aKT),this._platform=(0,a.WQX)(Mt.OD),this.angorScrollbar=!0,this._ps=null,this._unsubscribeAll=new C.B}get elementRef(){return this._elementRef}get ps(){return this._ps}ngOnChanges(re){"angorScrollbar"in re&&(this.angorScrollbar=(0,$t.he)(re.angorScrollbar.currentValue),this.angorScrollbar?this._initScrollbar():this._destroyScrollbar()),"angorScrollbarOptions"in re&&(this._options=(0,un.A)({},this._options,re.angorScrollbarOptions.currentValue),this._reinitializeScrollbar())}ngOnInit(){(0,Io.R)(window,"resize").pipe((0,G.Q)(this._unsubscribeAll),(0,ga.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(re="scroll"){return new Oe(this._elementRef.nativeElement[`${re}Left`],this._elementRef.nativeElement[`${re}Top`],this._elementRef.nativeElement[`${re}Width`],this._elementRef.nativeElement[`${re}Height`])}position(re=!1){return!re&&this._ps?new pt(this._ps.reach.x||0,this._ps.reach.y||0):new pt(this._elementRef.nativeElement.scrollLeft,this._elementRef.nativeElement.scrollTop)}scrollTo(re,Xe,wt){null==Xe&&null==wt?this.animateScrolling("scrollTop",re,wt):(null!=re&&this.scrollToX(re,wt),null!=Xe&&this.scrollToY(Xe,wt))}scrollToX(re,Xe){this.animateScrolling("scrollLeft",re,Xe)}scrollToY(re,Xe){this.animateScrolling("scrollTop",re,Xe)}scrollToTop(re=0,Xe){this.animateScrolling("scrollTop",re,Xe)}scrollToBottom(re=0,Xe){this.animateScrolling("scrollTop",this._elementRef.nativeElement.scrollHeight-this._elementRef.nativeElement.clientHeight-re,Xe)}scrollToLeft(re=0,Xe){this.animateScrolling("scrollLeft",re,Xe)}scrollToRight(re=0,Xe){this.animateScrolling("scrollLeft",this._elementRef.nativeElement.scrollWidth-this._elementRef.nativeElement.clientWidth-re,Xe)}scrollToElement(re,Xe=0,wt=!1,Ln){const hn=this._elementRef.nativeElement.querySelector(re);if(!hn)return;const ur=hn.getBoundingClientRect(),hr=this._elementRef.nativeElement.getBoundingClientRect();this._elementRef.nativeElement.classList.contains("ps--active-x")&&this._scrollToInAxis(ur.left,hr.left,"scrollLeft",Xe,wt,Ln),this._elementRef.nativeElement.classList.contains("ps--active-y")&&this._scrollToInAxis(ur.top,hr.top,"scrollTop",Xe,wt,Ln)}animateScrolling(re,Xe,wt){this._animation&&window.cancelAnimationFrame(this._animation),!wt||typeof window>"u"?this._elementRef.nativeElement[re]=Xe:Xe!==this._elementRef.nativeElement[re]&&this._smoothScroll(re,Xe,wt)}_initScrollbar(){this._ps||this._platform.ANDROID||this._platform.IOS||!this._platform.isBrowser||(this._ps=new Es(this._elementRef.nativeElement,{...this._options}))}_destroyScrollbar(){this._ps?.destroy(),this._ps=null}_reinitializeScrollbar(){setTimeout(()=>this._destroyScrollbar()),setTimeout(()=>this._initScrollbar())}_scrollToInAxis(re,Xe,wt,Ln,hn,ur){hn&&re<=Xe-Math.abs(Ln)||this.animateScrolling(wt,re-Xe+this._elementRef.nativeElement[wt]+Ln,ur)}_smoothScroll(re,Xe,wt){let Ln=0,hn=this._elementRef.nativeElement[re];const ur=(hn-Xe)/2;let hr=performance.now();const Gr=zi=>{Ln+=Math.PI/(wt/(zi-hr));const Or=Math.round(Xe+ur+ur*Math.cos(Ln));this._elementRef.nativeElement[re]===hn&&(Ln>=Math.PI?this.animateScrolling(re,Xe,0):(this._elementRef.nativeElement[re]=Or,hn=this._elementRef.nativeElement[re],hr=zi,this._animation=window.requestAnimationFrame(Gr)))};window.requestAnimationFrame(Gr)}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275dir=a.FsC({type:Y,selectors:[["","angorScrollbar",""]],inputs:{angorScrollbar:"angorScrollbar",angorScrollbarOptions:"angorScrollbarOptions"},exportAs:["angorScrollbar"],features:[a.OA$]})}}return Y})();var Eo=r(9969),os=r(6969),ks=r(7786),Bs=r(1986);const va=["navigationContent"],Yo=[[["","angorVerticalNavigationHeader",""]],[["","angorVerticalNavigationContentHeader",""]],[["","angorVerticalNavigationFooter",""]]],Ti=["[angorVerticalNavigationHeader]","[angorVerticalNavigationContentHeader]","[angorVerticalNavigationFooter]"],sa=Y=>({wheelPropagation:Y,suppressScrollX:!0}),yl=()=>({wheelPropagation:!1,suppressScrollX:!0});function Qo(Y,je){if(1&Y){const re=a.RV6();a.j41(0,"angor-vertical-navigation-aside-item",10),a.bIt("click",function(){a.eBV(re);const wt=a.XpG(2).$implicit,Ln=a.XpG();return a.Njj(Ln.toggleAside(wt))}),a.k0s()}if(2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)("activeItemId",Xe.activeAsideItemId)("autoCollapse",Xe.autoCollapse)("skipChildren",!0)}}function aa(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-basic-item",8),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function ao(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-collapsable-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function ss(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-divider-item",8),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function _o(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-group-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function Zo(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-spacer-item",8),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG();a.Y8G("item",re)("name",Xe.name)}}function _i(Y,je){if(1&Y&&a.DNE(0,Qo,1,5,"angor-vertical-navigation-aside-item",7)(1,aa,1,2,"angor-vertical-navigation-basic-item",8)(2,ao,1,3,"angor-vertical-navigation-collapsable-item",9)(3,ss,1,2,"angor-vertical-navigation-divider-item",8)(4,_o,1,3,"angor-vertical-navigation-group-item",9)(5,Zo,1,2,"angor-vertical-navigation-spacer-item",8),2&Y){const re=a.XpG().$implicit;a.vxM("aside"===re.type?0:-1),a.R7$(),a.vxM("basic"===re.type?1:-1),a.R7$(),a.vxM("collapsable"===re.type?2:-1),a.R7$(),a.vxM("divider"===re.type?3:-1),a.R7$(),a.vxM("group"===re.type?4:-1),a.R7$(),a.vxM("spacer"===re.type?5:-1)}}function Fa(Y,je){if(1&Y&&a.DNE(0,_i,6,6),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function ko(Y,je){if(1&Y&&a.nrm(0,"angor-vertical-navigation-aside-item",9),2&Y){const re=a.XpG(2).$implicit,Xe=a.XpG(2);a.Y8G("item",re)("name",Xe.name)("autoCollapse",Xe.autoCollapse)}}function Qs(Y,je){if(1&Y&&a.DNE(0,ko,1,3,"angor-vertical-navigation-aside-item",9),2&Y){const re=a.XpG().$implicit,Xe=a.XpG(2);a.vxM("aside"===re.type&&re.id===Xe.activeAsideItemId?0:-1)}}function bl(Y,je){if(1&Y&&a.DNE(0,Qs,1,1),2&Y){const re=je.$implicit;a.vxM(re.hidden&&!re.hidden(re)||!re.hidden?0:-1)}}function Xa(Y,je){if(1&Y&&(a.j41(0,"div",6),a.Z7z(1,bl,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&Y){const re=a.XpG();a.Y8G("angorScrollbarOptions",a.lJ4(5,yl))("@fadeInLeft","left"===re.position)("@fadeInRight","right"===re.position)("@fadeOutLeft","left"===re.position)("@fadeOutRight","right"===re.position),a.R7$(),a.Dyx(re.navigation)}}let Ya=(()=>{class Y{constructor(){this._animationBuilder=(0,a.WQX)(Eo.S6),this._changeDetectorRef=(0,a.WQX)(a.gRc),this._document=(0,a.WQX)(T.qQ),this._elementRef=(0,a.WQX)(a.aKT),this._renderer2=(0,a.WQX)(a.sFG),this._router=(0,a.WQX)(N.Ix),this._scrollStrategyOptions=(0,a.WQX)(os.Tv),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.appearance="default",this.autoCollapse=!0,this.inner=!1,this.mode="side",this.name=this._angorUtilsService.randomId(),this.opened=!0,this.position="left",this.transparentOverlay=!1,this.appearanceChanged=new a.bkB,this.modeChanged=new a.bkB,this.openedChanged=new a.bkB,this.positionChanged=new a.bkB,this.activeAsideItemId=null,this.onCollapsableItemCollapsed=new w.m(1),this.onCollapsableItemExpanded=new w.m(1),this.onRefreshed=new w.m(1),this._animationsEnabled=!1,this._hovered=!1,this._scrollStrategy=this._scrollStrategyOptions.block(),this._unsubscribeAll=new C.B,this._handleAsideOverlayClick=()=>{this.closeAside()},this._handleOverlayClick=()=>{this.close()}}get classList(){return{"angor-vertical-navigation-animations-enabled":this._animationsEnabled,[`angor-vertical-navigation-appearance-${this.appearance}`]:!0,"angor-vertical-navigation-hover":this._hovered,"angor-vertical-navigation-inner":this.inner,"angor-vertical-navigation-mode-over":"over"===this.mode,"angor-vertical-navigation-mode-side":"side"===this.mode,"angor-vertical-navigation-opened":this.opened,"angor-vertical-navigation-position-left":"left"===this.position,"angor-vertical-navigation-position-right":"right"===this.position}}get styleList(){return{visibility:this.opened?"visible":"hidden"}}set angorScrollbarDirectives(re){this._angorScrollbarDirectives=re,0!==re.length&&(this._angorScrollbarDirectivesSubscription&&this._angorScrollbarDirectivesSubscription.unsubscribe(),this._angorScrollbarDirectivesSubscription=(0,ks.h)(this.onCollapsableItemCollapsed,this.onCollapsableItemExpanded).pipe((0,G.Q)(this._unsubscribeAll),(0,Bs.c)(250)).subscribe(()=>{re.forEach(Xe=>{Xe.update()})}))}_onMouseenter(){this._enableAnimations(),this._hovered=!0}_onMouseleave(){this._enableAnimations(),this._hovered=!1}ngOnChanges(re){if("appearance"in re&&this.appearanceChanged.next(re.appearance.currentValue),"inner"in re&&(this.inner=(0,$t.he)(re.inner.currentValue)),"mode"in re){const Xe=re.mode.currentValue,wt=re.mode.previousValue;this._disableAnimations(),"over"===wt&&"side"===Xe&&this._hideOverlay(),"side"===wt&&"over"===Xe&&(this.closeAside(),this.opened&&this._showOverlay()),this.modeChanged.next(Xe),setTimeout(()=>{this._enableAnimations()},500)}"navigation"in re&&this._changeDetectorRef.markForCheck(),"opened"in re&&(this.opened=(0,$t.he)(re.opened.currentValue),this._toggleOpened(this.opened)),"position"in re&&this.positionChanged.next(re.position.currentValue),"transparentOverlay"in re&&(this.transparentOverlay=(0,$t.he)(re.transparentOverlay.currentValue))}ngOnInit(){""===this.name&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this),this._router.events.pipe((0,Ai.p)(re=>re instanceof N.wF),(0,G.Q)(this._unsubscribeAll)).subscribe(()=>{"over"===this.mode&&this.opened&&this.close(),"side"===this.mode&&this.activeAsideItemId&&this.closeAside()})}ngAfterViewInit(){this._mutationObserver=new MutationObserver(re=>{re.forEach(Xe=>{const wt=Xe.target;if("class"===Xe.attributeName)if(wt.classList.contains("cdk-global-scrollblock")){const Ln=parseInt(wt.style.top,10);this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",`${Math.abs(Ln)}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(re=>{re.isEnabled()&&re.scrollToElement(".angor-vertical-navigation-item-active",-120,!0)});else{const re=this._navigationContentEl.nativeElement.querySelector(".angor-vertical-navigation-item-active");re&&re.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(re){re.disabled||!re.id||(this.activeAsideItemId=re.id,this._showAsideOverlay(),this._changeDetectorRef.markForCheck())}closeAside(){this.activeAsideItemId=null,this._hideAsideOverlay(),this._changeDetectorRef.markForCheck()}toggleAside(re){this.activeAsideItemId===re.id?this.closeAside():this.openAside(re)}trackByFn(re,Xe){return Xe.id||re}_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,Eo.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,Eo.iF)({opacity:1}))]).create(this._overlay),this._player.play(),this._overlay.addEventListener("click",this._handleOverlayClick))}_hideOverlay(){this._overlay&&(this._player=this._animationBuilder.build([(0,Eo.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,Eo.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,Eo.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,Eo.iF)({opacity:1}))]).create(this._asideOverlay),this._player.play(),this._asideOverlay.addEventListener("click",this._handleAsideOverlayClick))}_hideAsideOverlay(){this._asideOverlay&&(this._player=this._animationBuilder.build([(0,Eo.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,Eo.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(re){this.opened=re,this._enableAnimations(),"over"===this.mode&&(this.opened?this._showOverlay():this._hideOverlay()),this.openedChanged.next(re)}static{this.\u0275fac=function(Xe){return new(Xe||Y)}}static{this.\u0275cmp=a.VBU({type:Y,selectors:[["angor-vertical-navigation"]],viewQuery:function(Xe,wt){if(1&Xe&&(a.GBs(va,5),a.GBs(tr,5)),2&Xe){let Ln;a.mGM(Ln=a.lsd())&&(wt._navigationContentEl=Ln.first),a.mGM(Ln=a.lsd())&&(wt.angorScrollbarDirectives=Ln)}},hostVars:4,hostBindings:function(Xe,wt){1&Xe&&a.bIt("mouseenter",function(){return wt._onMouseenter()})("mouseleave",function(){return wt._onMouseleave()}),2&Xe&&(a.Aen(wt.styleList),a.HbH(wt.classList))},inputs:{appearance:"appearance",autoCollapse:"autoCollapse",inner:"inner",mode:"mode",name:"name",navigation:"navigation",opened:"opened",position:"position",transparentOverlay:"transparentOverlay"},outputs:{appearanceChanged:"appearanceChanged",modeChanged:"modeChanged",openedChanged:"openedChanged",positionChanged:"positionChanged"},exportAs:["angorVerticalNavigation"],features:[a.OA$],ngContentSelectors:Ti,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(Xe,wt){1&Xe&&(a.NAR(Yo),a.j41(0,"div",1)(1,"div",2),a.SdG(2),a.k0s(),a.j41(3,"div",3,0)(5,"div",4),a.SdG(6,1),a.k0s(),a.Z7z(7,Fa,1,1,null,null,wt.trackByFn,!0),a.k0s(),a.j41(9,"div",5),a.SdG(10,2),a.k0s()(),a.DNE(11,Xa,3,6,"div",6)),2&Xe&&(a.R7$(3),a.Y8G("angorScrollbarOptions",a.eq3(2,sa,wt.inner)),a.R7$(4),a.Dyx(wt.navigation),a.R7$(4),a.vxM(wt.activeAsideItemId?11:-1))},dependencies:[tr,et,Xr,so,_t,ci,Bt],styles:[':root{--angor-vertical-navigation-width: 280px}angor-vertical-navigation{position:sticky;display:flex;flex-direction:column;flex:1 0 auto;top:0;width:var(--angor-vertical-navigation-width);min-width:var(--angor-vertical-navigation-width);max-width:var(--angor-vertical-navigation-width);height:100vh;min-height:100vh;max-height:100vh;z-index:200}angor-vertical-navigation.angor-vertical-navigation-animations-enabled{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:visibility,margin-left,margin-right,transform,width,max-width,min-width}angor-vertical-navigation.angor-vertical-navigation-animations-enabled .angor-vertical-navigation-wrapper{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:width,max-width,min-width}angor-vertical-navigation.angor-vertical-navigation-mode-over{position:fixed;top:0;bottom:0}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-over{left:0;transform:translate3d(-100%,0,0)}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-over.angor-vertical-navigation-opened{transform:translateZ(0)}angor-vertical-navigation.angor-vertical-navigation-position-left .angor-vertical-navigation-wrapper{left:0}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-over{right:0;transform:translate3d(100%,0,0)}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-over.angor-vertical-navigation-opened{transform:translateZ(0)}angor-vertical-navigation.angor-vertical-navigation-position-right .angor-vertical-navigation-wrapper{right:0}angor-vertical-navigation.angor-vertical-navigation-inner{position:relative;width:auto;min-width:0;max-width:none;height:auto;min-height:0;max-height:none;box-shadow:none}angor-vertical-navigation.angor-vertical-navigation-inner .angor-vertical-navigation-wrapper{position:relative;overflow:visible;height:auto}angor-vertical-navigation.angor-vertical-navigation-inner .angor-vertical-navigation-wrapper .angor-vertical-navigation-content{overflow:visible!important}angor-vertical-navigation .angor-vertical-navigation-wrapper{position:absolute;display:flex;flex:1 1 auto;flex-direction:column;top:0;bottom:0;width:100%;height:100%;overflow:hidden;z-index:10;background:inherit;box-shadow:inset -1px 0 0 var(--angor-border)}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content{flex:1 1 auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-divider-item{margin:24px 0}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-group-item{margin-top:24px}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper{position:absolute;display:flex;flex:1 1 auto;flex-direction:column;top:0;bottom:0;left:var(--angor-vertical-navigation-width);width:var(--angor-vertical-navigation-width);height:100%;z-index:5;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;transition-duration:.4s;transition-property:left,right;transition-timing-function:cubic-bezier(.25,.8,.25,1);background:inherit}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper>angor-vertical-navigation-aside-item{padding:24px 0}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper>angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper{display:none!important}angor-vertical-navigation.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-width)}angor-vertical-navigation angor-vertical-navigation-aside-item,angor-vertical-navigation angor-vertical-navigation-basic-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item,angor-vertical-navigation angor-vertical-navigation-divider-item,angor-vertical-navigation angor-vertical-navigation-group-item,angor-vertical-navigation angor-vertical-navigation-spacer-item{display:flex;flex-direction:column;flex:1 0 auto;-webkit-user-select:none;user-select:none}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{position:relative;display:flex;align-items:center;justify-content:flex-start;padding:10px 16px;font-size:13px;font-weight:500;line-height:20px;text-decoration:none;border-radius:6px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled{cursor:default;opacity:.4}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin-right:16px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{font-size:11px;line-height:1.5}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge{margin-left:auto}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;white-space:nowrap;height:20px}angor-vertical-navigation angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{margin:0 12px}angor-vertical-navigation angor-vertical-navigation-aside-item,angor-vertical-navigation angor-vertical-navigation-basic-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item{margin-bottom:4px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item{cursor:pointer}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge+.angor-vertical-navigation-item-arrow{margin-left:8px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{height:20px;line-height:20px;margin-left:auto;transition:transform .3s cubic-bezier(.25,.8,.25,1),color 375ms cubic-bezier(.25,.8,.25,1)}angor-vertical-navigation angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{transform:rotate(90deg)}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:first-child{margin-top:6px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:last-child{padding-bottom:6px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:last-child>.angor-vertical-navigation-item-children>*:last-child{padding-bottom:0}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding:10px 16px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children{overflow:hidden}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:56px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:72px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:88px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:104px}angor-vertical-navigation angor-vertical-navigation-divider-item{margin:12px 0}angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper{height:1px;box-shadow:0 1px}angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{display:none!important}angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}angor-vertical-navigation angor-vertical-navigation-spacer-item{margin:6px 0}.angor-vertical-navigation-overlay{position:absolute;inset:0;z-index:170;opacity:0;background-color:#0009}.angor-vertical-navigation-overlay+.angor-vertical-navigation-aside-overlay{background-color:transparent}.angor-vertical-navigation-aside-overlay{position:absolute;inset:0;z-index:169;opacity:0;background-color:#0000004d}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{color:currentColor}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{color:currentColor;opacity:.6}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{color:currentColor;opacity:.8}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{color:currentColor;opacity:.5}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced{background-color:rgb(3 33 40 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .05}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *){background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .12}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover{background-color:rgb(3 33 40 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .05}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *){background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .12}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{--tw-text-opacity: 1;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1));opacity:1}angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title:is(.dark *){--tw-text-opacity: 1;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))}:root{--angor-vertical-navigation-compact-width: 112px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact{width:var(--angor-vertical-navigation-compact-width);min-width:var(--angor-vertical-navigation-compact-width);max-width:var(--angor-vertical-navigation-compact-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-compact-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-compact-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-compact-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper{margin:4px 8px 0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{flex-direction:column;justify-content:center;padding:12px;border-radius:6px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{margin-top:8px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{font-size:12px;font-weight:500;text-align:center;line-height:16px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{display:none!important}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge{position:absolute;top:12px;left:64px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item>angor-vertical-navigation-collapsable-item,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item>angor-vertical-navigation-collapsable-item{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-compact-width)}:root{--angor-vertical-navigation-width: 280px;--angor-vertical-navigation-dense-width: 80px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over){width:var(--angor-vertical-navigation-dense-width);min-width:var(--angor-vertical-navigation-dense-width);max-width:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-dense-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-dense-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-hover .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{width:calc(var(--angor-vertical-navigation-dense-width) - 24px);min-width:calc(var(--angor-vertical-navigation-dense-width) - 24px);max-width:calc(var(--angor-vertical-navigation-dense-width) - 24px)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item:first-of-type{margin-top:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{padding:10px 16px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{white-space:nowrap;opacity:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:before{content:"";position:absolute;top:20px;width:23px;border-top-width:2px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper{width:var(--angor-vertical-navigation-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{width:calc(var(--angor-vertical-navigation-width) - 24px);min-width:calc(var(--angor-vertical-navigation-width) - 24px);max-width:calc(var(--angor-vertical-navigation-width) - 24px)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{white-space:nowrap;animation:removeWhiteSpaceNoWrap 1ms linear .35s;animation-fill-mode:forwards}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-width)}@keyframes removeWhiteSpaceNoWrap{0%{white-space:nowrap}99%{white-space:nowrap}to{white-space:normal}}:root{--angor-vertical-navigation-thin-width: 80px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin{width:var(--angor-vertical-navigation-thin-width);min-width:var(--angor-vertical-navigation-thin-width);max-width:var(--angor-vertical-navigation-thin-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-thin-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-thin-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-thin-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item{flex-direction:column;justify-content:center;height:64px;min-height:64px;max-height:64px;padding:0 16px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper{display:flex;align-items:center;justify-content:center}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{justify-content:center;padding:12px;border-radius:4px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge-content,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge-content,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-collapsable-item{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-thin-width)}\n'],encapsulation:2,data:{animation:i.F},changeDetection:0})}}return Y})()},9097:(o,s,r)=>{"use strict";r.d(s,{t:()=>a});const a=new(r(4438).nKC)("ANGOR_APP_CONFIG")},881:(o,s,r)=>{"use strict";r.d(s,{P:()=>w});var i=r(9097),a=r(4438),c=r(2401),y=r(4412);let w=(()=>{class C{constructor(){this._defaultConfig=(0,a.WQX)(i.t),this._configSubject=new y.t(this._defaultConfig)}get config$(){return this._configSubject.asObservable()}set config(S){const A=(0,c.A)({},this._configSubject.getValue(),S);this._configSubject.next(A)}reset(){this._configSubject.next(this._defaultConfig)}static{this.\u0275fac=function(A){return new(A||C)}}static{this.\u0275prov=a.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},9979:(o,s,r)=>{"use strict";r.d(s,{m:()=>pe});var i=r(177),a=r(4438),c=r(8834),y=r(5351),w=r(9213);const C=(Te,xe,Re,Me,Ce,le,ae,Ie)=>({"bg-primary-100 text-primary-600 dark:bg-primary-600 dark:text-primary-50":Te,"bg-accent-100 text-accent-600 dark:bg-accent-600 dark:text-accent-50":xe,"bg-warn-100 text-warn-600 dark:bg-warn-600 dark:text-warn-50":Re,"bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-50":Me,"bg-blue-100 text-blue-600 dark:bg-blue-600 dark:text-blue-50":Ce,"bg-green-100 text-green-500 dark:bg-green-500 dark:text-green-50":le,"bg-amber-100 text-amber-500 dark:bg-amber-500 dark:text-amber-50":ae,"bg-red-100 text-red-600 dark:bg-red-600 dark:text-red-50":Ie});function T(Te,xe){1&Te&&(a.j41(0,"div",1)(1,"button",6),a.nrm(2,"mat-icon",7),a.k0s()()),2&Te&&(a.R7$(),a.Y8G("matDialogClose",void 0),a.R7$(),a.Y8G("svgIcon","heroicons_outline:x-mark"))}function S(Te,xe){if(1&Te&&(a.j41(0,"div",3),a.nrm(1,"mat-icon",8),a.k0s()),2&Te){const Re=a.XpG();a.Y8G("ngClass",a.lV(2,C,"primary"===Re.data.icon.color,"accent"===Re.data.icon.color,"warn"===Re.data.icon.color,"basic"===Re.data.icon.color,"info"===Re.data.icon.color,"success"===Re.data.icon.color,"warning"===Re.data.icon.color,"error"===Re.data.icon.color)),a.R7$(),a.Y8G("svgIcon",Re.data.icon.name)}}function A(Te,xe){if(1&Te&&a.nrm(0,"div",9),2&Te){const Re=a.XpG(2);a.Y8G("innerHTML",Re.data.title,a.npT)}}function I(Te,xe){if(1&Te&&a.nrm(0,"div",10),2&Te){const Re=a.XpG(2);a.Y8G("innerHTML",Re.data.message,a.npT)}}function N(Te,xe){if(1&Te&&(a.j41(0,"div",4),a.DNE(1,A,1,1,"div",9)(2,I,1,1,"div",10),a.k0s()),2&Te){const Re=a.XpG();a.R7$(),a.vxM(Re.data.title?1:-1),a.R7$(),a.vxM(Re.data.message?2:-1)}}function G(Te,xe){if(1&Te&&(a.j41(0,"button",11),a.EFF(1),a.k0s()),2&Te){const Re=a.XpG(2);a.Y8G("matDialogClose","cancelled"),a.R7$(),a.SpI(" ",Re.data.actions.cancel.label," ")}}function Z(Te,xe){if(1&Te&&(a.j41(0,"button",12),a.EFF(1),a.k0s()),2&Te){const Re=a.XpG(2);a.Y8G("color",Re.data.actions.confirm.color)("matDialogClose","confirmed"),a.R7$(),a.SpI(" ",Re.data.actions.confirm.label," ")}}function ne(Te,xe){if(1&Te&&(a.j41(0,"div",5),a.DNE(1,G,2,2,"button",11)(2,Z,2,3,"button",12),a.k0s()),2&Te){const Re=a.XpG();a.R7$(),a.vxM(Re.data.actions.cancel.show?1:-1),a.R7$(),a.vxM(Re.data.actions.confirm.show?2:-1)}}let be=(()=>{class Te{constructor(){this.data=(0,a.WQX)(y.Vh)}static{this.\u0275fac=function(Me){return new(Me||Te)}}static{this.\u0275cmp=a.VBU({type:Te,selectors:[["angor-confirmation-dialog"]],decls:6,vars:4,consts:[[1,"relative","flex","h-full","w-full","flex-col"],[1,"absolute","right-0","top-0","pr-4","pt-4"],[1,"flex","flex-auto","flex-col","items-center","p-8","pb-6","sm:flex-row","sm:items-start","sm:pb-8"],[1,"flex","h-10","w-10","flex-0","items-center","justify-center","rounded-full","sm:mr-4",3,"ngClass"],[1,"mt-4","flex","flex-col","items-center","space-y-1","text-center","sm:mt-0","sm:items-start","sm:pr-8","sm:text-left"],[1,"flex","items-center","justify-center","space-x-3","bg-gray-50","px-6","py-4","dark:bg-black","dark:bg-opacity-10","sm:justify-end"],["mat-icon-button","",3,"matDialogClose"],[1,"text-secondary",3,"svgIcon"],[1,"text-current",3,"svgIcon"],[1,"text-xl","font-medium","leading-6",3,"innerHTML"],[1,"text-secondary",3,"innerHTML"],["mat-stroked-button","",3,"matDialogClose"],["mat-flat-button","",3,"color","matDialogClose"]],template:function(Me,Ce){1&Me&&(a.j41(0,"div",0),a.DNE(1,T,3,2,"div",1),a.j41(2,"div",2),a.DNE(3,S,2,11,"div",3)(4,N,3,2,"div",4),a.k0s(),a.DNE(5,ne,3,2,"div",5),a.k0s()),2&Me&&(a.R7$(),a.vxM(Ce.data.dismissible?1:-1),a.R7$(2),a.vxM(Ce.data.icon.show?3:-1),a.R7$(),a.vxM(Ce.data.title||Ce.data.message?4:-1),a.R7$(),a.vxM(Ce.data.actions.confirm.show||Ce.data.actions.cancel.show?5:-1))},dependencies:[c.Hl,c.$z,c.iY,y.hM,y.tx,w.m_,w.An,i.YU],styles:["@media (min-width: 960px){.angor-confirmation-dialog-panel{width:32rem}}.angor-confirmation-dialog-panel .mat-mdc-dialog-container .mat-mdc-dialog-surface{padding:0!important}\n"],encapsulation:2})}}return Te})();var me=r(2401);let pe=(()=>{class Te{constructor(){this._matDialog=(0,a.WQX)(y.bZ),this._defaultConfig={title:"Confirm action",message:"Are you sure you want to confirm this action?",icon:{show:!0,name:"heroicons_outline:exclamation-triangle",color:"warn"},actions:{confirm:{show:!0,label:"Confirm",color:"warn"},cancel:{show:!0,label:"Cancel"}},dismissible:!1}}open(Re={}){const Me=(0,me.A)({},this._defaultConfig,Re);return this._matDialog.open(be,{autoFocus:!1,disableClose:!Me.dismissible,data:Me,panelClass:"angor-confirmation-dialog-panel"})}static{this.\u0275fac=function(Me){return new(Me||Te)}}static{this.\u0275prov=a.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})()},4977:(o,s,r)=>{"use strict";r.d(s,{l:()=>S});var i=r(881),a=r(9327),c=r(4438),y=r(7680),w=r(2771),C=r(6354),T=r(5558);let S=(()=>{class A{constructor(){this._breakpointObserver=(0,c.WQX)(a.QP),this._angorConfigService=(0,c.WQX)(i.P),this._onMediaChange=new w.m(1),this._angorConfigService.config$.pipe((0,C.T)(N=>(0,y.A)(Object.entries(N.screens).map(([G,Z])=>[G,`(min-width: ${Z})`]))),(0,T.n)(N=>this._breakpointObserver.observe(Object.values(N)).pipe((0,C.T)(G=>{const Z=[],ne={},be=Object.entries(G.breakpoints).filter(([me,pe])=>pe)??[];for(const[me]of be){const pe=Object.entries(N).find(([Te,xe])=>xe===me)[0];pe&&(Z.push(pe),ne[pe]=me)}this._onMediaChange.next({matchingAliases:Z,matchingQueries:ne})})))).subscribe()}get onMediaChange$(){return this._onMediaChange.asObservable()}onMediaQueryChange$(N){return this._breakpointObserver.observe(N)}static{this.\u0275fac=function(G){return new(G||A)}}static{this.\u0275prov=c.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},7209:(o,s,r)=>{"use strict";r.d(s,{Q:()=>a});var i=r(4438);let a=(()=>{class c{get exactMatchOptions(){return{paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"}}get subsetMatchOptions(){return{paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"}}randomId(w=10){let T="";for(let S=0;S<10;S++)T+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return T}static{this.\u0275fac=function(C){return new(C||c)}}static{this.\u0275prov=i.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},2332:(o,s,r)=>{"use strict";r.d(s,{v:()=>y});var i=r(5373),a=r(1413),c=r(4438);let y=(()=>{class w{constructor(){this.publicKeySubject=new a.B,this.previousPublicKey=null,this.initializeNostrLogin(),this.setupEventListeners()}initializeNostrLogin(){(0,i.Ts)({theme:"ocean",noBanner:!0,title:"Angor Hub",onAuth:(T,S)=>{this.handleAuthSuccess(T,S)}})}setupEventListeners(){document.addEventListener("nlAuth",this.handleNlAuthEvent.bind(this)),document.addEventListener("nlLogout",this.handleNlLogoutEvent.bind(this)),document.addEventListener("nlDarkMode",this.handleNlDarkModeEvent.bind(this)),document.addEventListener("nlLaunch",this.handleNlLaunchEvent.bind(this))}handleNlLogoutEvent(){console.log("Logout event detected"),this.handleLogout()}handleNlAuthEvent(T){const{type:S,pubkey:A,options:I}=T.detail;switch(S){case"login":console.log("User logged in:",A),this.handleAuthSuccess(A,I);break;case"signup":console.log("User signed up:",A),this.handleSignupSuccess(A,I);break;case"logout":console.log("User logged out"),this.handleLogout();break;case"switch-account":console.log("User switched account:",A),this.handleAccountSwitch(A,I);break;default:console.warn("Unknown nlAuth event type:",S)}this.previousPublicKey&&this.previousPublicKey!==A&&(console.log("Account switched to:",A),this.handleAccountSwitch(A,I)),this.previousPublicKey=A}handleAuthSuccess(T,S){console.log("Authenticated successfully with public key:",T),this.publicKeySubject.next(T)}handleSignupSuccess(T,S){console.log("Signup successful with public key:",T),this.publicKeySubject.next(T)}handleAccountSwitch(T,S){console.log("Account switched to:",T),this.publicKeySubject.next(T),window.location.reload()}handleLogout(){console.log("Logged out"),this.publicKeySubject.next("")}handleNlDarkModeEvent(T){const S=T.detail;console.log("Dark mode changed to:",S?"enabled":"disabled"),this.updateDarkMode(S)}handleNlLaunchEvent(T){const S=T.detail||"welcome";console.log(`Launching Nostr login screen: ${S}`),this.launchScreen(S)}launchScreen(T){(0,i.ql)(T)}updateDarkMode(T){document.body.classList.toggle("dark-mode",T),console.log("Dark mode is now "+(T?"enabled":"disabled"))}getPublicKeyObservable(){return this.publicKeySubject.asObservable()}launchWelcomeScreen(){(0,i.ql)("welcome")}launchSignupScreen(){(0,i.ql)("welcome-signup")}launchLoginScreen(){(0,i.ql)("welcome-login")}switchAccount(){document.dispatchEvent(new CustomEvent("nlLaunch",{detail:"switch-account"}))}logout(){document.dispatchEvent(new Event("nlLogout"))}toggleDarkMode(T){document.dispatchEvent(new CustomEvent("nlDarkMode",{detail:T}))}static{this.\u0275fac=function(S){return new(S||w)}}static{this.\u0275prov=c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}}return w})()},6231:(o,s,r)=>{"use strict";r.d(s,{b:()=>T});var i=r(467),a=r(4438),c=r(5462),y=r(4412),w=r(1413),C=r(177);let T=(()=>{class S{constructor(I,N){this.document=I,this.platformId=N,this.pool=new c.lo,this.relays=[],this.maxRetries=10,this.retryDelay=15e3,this.eventSubject=new y.t(null),this.relaysSubject=new y.t([]),this.destroy$=new w.B,this.initializeRelays(),this.setupVisibilityHandling()}initializeRelays(){this.relays=this.loadRelaysFromLocalStorage(),this.connectToRelays(),this.relaysSubject.next(this.relays)}loadRelaysFromLocalStorage(){const I=JSON.parse(localStorage.getItem("nostrRelays")||"[]");return I.length>0?I.map(G=>({...G,connected:!1,retries:0,retryTimeout:null,ws:void 0})):[{url:"wss://relay.primal.net",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://nos.lol",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay2.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"}]}saveRelaysToLocalStorage(){const I=this.relays.map(N=>({url:N.url,accessType:N.accessType,connected:N.connected,retries:N.retries,retryTimeout:N.retryTimeout}));localStorage.setItem("nostrRelays",JSON.stringify(I)),this.relaysSubject.next(this.relays)}connectToRelay(I){I.connected||(I.ws=new WebSocket(I.url),I.ws.onopen=()=>{I.connected=!0,I.retries=0,clearTimeout(I.retryTimeout),this.saveRelaysToLocalStorage()},I.ws.onerror=()=>this.handleRelayError(I),I.ws.onclose=()=>{I.connected=!1,this.handleRelayError(I)},I.ws.onmessage=({data:N})=>{try{const G=JSON.parse("string"==typeof N?N:N.toString("utf-8"));this.eventSubject.next(G)}catch(G){console.warn("Error parsing WebSocket message:",G)}})}handleRelayError(I){I.retries>=this.maxRetries?console.warn(`Max retries reached for relay: ${I.url}. No further attempts will be made.`):(I.retries++,I.retryTimeout=setTimeout(()=>this.connectToRelay(I),this.retryDelay*I.retries))}connectToRelays(){this.relays.forEach(I=>!I.connected&&this.connectToRelay(I))}ensureConnectedRelays(){var I=this;return(0,i.A)(function*(){return I.connectToRelays(),new Promise(N=>{const G=setInterval(()=>{I.getConnectedRelays().length>0&&(clearInterval(G),N())},1e3)})})()}setupVisibilityHandling(){(0,C.UE)(this.platformId)&&(this.document.addEventListener("visibilitychange",()=>{"visible"===this.document.visibilityState&&this.connectToRelays()}),window.addEventListener("beforeunload",()=>{this.relays.forEach(I=>I.ws?.close())}))}getConnectedRelays(){return this.relays.filter(I=>I.connected).map(I=>I.url)}getRelays(){return this.relaysSubject.asObservable()}publishEventToWriteRelays(I){var N=this;return(0,i.A)(function*(){const G=N.relays.filter(Z=>["write","read-write"].includes(Z.accessType)&&Z.connected);if(!G.length)throw new Error("No connected write relays available");try{return yield Promise.any(G.map(Z=>N.pool.publish([Z.url],I))),N.eventSubject.next(I),I}catch(Z){throw console.error("Failed to publish event to relays:",Z),Z}})()}addRelay(I,N="read-write"){if(!this.relays.some(G=>G.url===I)){const G={url:I,connected:!1,retries:0,retryTimeout:null,accessType:N};this.relays.push(G),this.connectToRelay(G),this.saveRelaysToLocalStorage()}}removeRelay(I){const N=this.relays.find(G=>G.url===I);N&&(N.ws?.close(),clearTimeout(N.retryTimeout)),this.relays=this.relays.filter(G=>G.url!==I),this.saveRelaysToLocalStorage()}removeAllCustomRelays(){const I=["wss://relay.angor.io","wss://relay2.angor.io"];this.relays.forEach(N=>{I.includes(N.url)||(N.ws?.close(),clearTimeout(N.retryTimeout))}),this.relays=this.relays.filter(N=>I.includes(N.url)),this.saveRelaysToLocalStorage()}updateRelayAccessType(I,N){const G=this.relays.find(Z=>Z.url===I);G&&(G.accessType=N,this.saveRelaysToLocalStorage())}getPool(){return this.pool}getEventStream(){return this.eventSubject.asObservable()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.relays.forEach(I=>I.ws?.close())}static{this.\u0275fac=function(N){return new(N||S)(a.KVO(C.qQ,8),a.KVO(a.Agw))}}static{this.\u0275prov=a.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},6324:(o,s,r)=>{"use strict";r.d(s,{A:()=>Wa});var i={};r.r(i),r.d(i,{OG:()=>Va,My:()=>xa,Ph:()=>Ar,lX:()=>So,Id:()=>Fr,fg:()=>Di,qj:()=>Po,aT:()=>zn,lq:()=>no,z:()=>$o,Q5:()=>ca});var a=r(467),c=r(5766),y=r(7292),w=r(3838),C=r(5462);function A(R){if(!Number.isSafeInteger(R)||R<0)throw new Error(`Wrong positive integer: ${R}`)}function G(R,...U){if(!function N(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name}(R))throw new Error("Expected Uint8Array");if(U.length>0&&!U.includes(R.length))throw new Error(`Expected Uint8Array of length ${U}, not of length=${R.length}`)}function Z(R){if("function"!=typeof R||"function"!=typeof R.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");A(R.outputLen),A(R.blockLen)}function ne(R,U=!0){if(R.destroyed)throw new Error("Hash instance has been destroyed");if(U&&R.finished)throw new Error("Hash#digest() has already been called")}r(6391),"abandon\nability\nable\nabout\nabove\nabsent\nabsorb\nabstract\nabsurd\nabuse\naccess\naccident\naccount\naccuse\nachieve\nacid\nacoustic\nacquire\nacross\nact\naction\nactor\nactress\nactual\nadapt\nadd\naddict\naddress\nadjust\nadmit\nadult\nadvance\nadvice\naerobic\naffair\nafford\nafraid\nagain\nage\nagent\nagree\nahead\naim\nair\nairport\naisle\nalarm\nalbum\nalcohol\nalert\nalien\nall\nalley\nallow\nalmost\nalone\nalpha\nalready\nalso\nalter\nalways\namateur\namazing\namong\namount\namused\nanalyst\nanchor\nancient\nanger\nangle\nangry\nanimal\nankle\nannounce\nannual\nanother\nanswer\nantenna\nantique\nanxiety\nany\napart\napology\nappear\napple\napprove\napril\narch\narctic\narea\narena\nargue\narm\narmed\narmor\narmy\naround\narrange\narrest\narrive\narrow\nart\nartefact\nartist\nartwork\nask\naspect\nassault\nasset\nassist\nassume\nasthma\nathlete\natom\nattack\nattend\nattitude\nattract\nauction\naudit\naugust\naunt\nauthor\nauto\nautumn\naverage\navocado\navoid\nawake\naware\naway\nawesome\nawful\nawkward\naxis\nbaby\nbachelor\nbacon\nbadge\nbag\nbalance\nbalcony\nball\nbamboo\nbanana\nbanner\nbar\nbarely\nbargain\nbarrel\nbase\nbasic\nbasket\nbattle\nbeach\nbean\nbeauty\nbecause\nbecome\nbeef\nbefore\nbegin\nbehave\nbehind\nbelieve\nbelow\nbelt\nbench\nbenefit\nbest\nbetray\nbetter\nbetween\nbeyond\nbicycle\nbid\nbike\nbind\nbiology\nbird\nbirth\nbitter\nblack\nblade\nblame\nblanket\nblast\nbleak\nbless\nblind\nblood\nblossom\nblouse\nblue\nblur\nblush\nboard\nboat\nbody\nboil\nbomb\nbone\nbonus\nbook\nboost\nborder\nboring\nborrow\nboss\nbottom\nbounce\nbox\nboy\nbracket\nbrain\nbrand\nbrass\nbrave\nbread\nbreeze\nbrick\nbridge\nbrief\nbright\nbring\nbrisk\nbroccoli\nbroken\nbronze\nbroom\nbrother\nbrown\nbrush\nbubble\nbuddy\nbudget\nbuffalo\nbuild\nbulb\nbulk\nbullet\nbundle\nbunker\nburden\nburger\nburst\nbus\nbusiness\nbusy\nbutter\nbuyer\nbuzz\ncabbage\ncabin\ncable\ncactus\ncage\ncake\ncall\ncalm\ncamera\ncamp\ncan\ncanal\ncancel\ncandy\ncannon\ncanoe\ncanvas\ncanyon\ncapable\ncapital\ncaptain\ncar\ncarbon\ncard\ncargo\ncarpet\ncarry\ncart\ncase\ncash\ncasino\ncastle\ncasual\ncat\ncatalog\ncatch\ncategory\ncattle\ncaught\ncause\ncaution\ncave\nceiling\ncelery\ncement\ncensus\ncentury\ncereal\ncertain\nchair\nchalk\nchampion\nchange\nchaos\nchapter\ncharge\nchase\nchat\ncheap\ncheck\ncheese\nchef\ncherry\nchest\nchicken\nchief\nchild\nchimney\nchoice\nchoose\nchronic\nchuckle\nchunk\nchurn\ncigar\ncinnamon\ncircle\ncitizen\ncity\ncivil\nclaim\nclap\nclarify\nclaw\nclay\nclean\nclerk\nclever\nclick\nclient\ncliff\nclimb\nclinic\nclip\nclock\nclog\nclose\ncloth\ncloud\nclown\nclub\nclump\ncluster\nclutch\ncoach\ncoast\ncoconut\ncode\ncoffee\ncoil\ncoin\ncollect\ncolor\ncolumn\ncombine\ncome\ncomfort\ncomic\ncommon\ncompany\nconcert\nconduct\nconfirm\ncongress\nconnect\nconsider\ncontrol\nconvince\ncook\ncool\ncopper\ncopy\ncoral\ncore\ncorn\ncorrect\ncost\ncotton\ncouch\ncountry\ncouple\ncourse\ncousin\ncover\ncoyote\ncrack\ncradle\ncraft\ncram\ncrane\ncrash\ncrater\ncrawl\ncrazy\ncream\ncredit\ncreek\ncrew\ncricket\ncrime\ncrisp\ncritic\ncrop\ncross\ncrouch\ncrowd\ncrucial\ncruel\ncruise\ncrumble\ncrunch\ncrush\ncry\ncrystal\ncube\nculture\ncup\ncupboard\ncurious\ncurrent\ncurtain\ncurve\ncushion\ncustom\ncute\ncycle\ndad\ndamage\ndamp\ndance\ndanger\ndaring\ndash\ndaughter\ndawn\nday\ndeal\ndebate\ndebris\ndecade\ndecember\ndecide\ndecline\ndecorate\ndecrease\ndeer\ndefense\ndefine\ndefy\ndegree\ndelay\ndeliver\ndemand\ndemise\ndenial\ndentist\ndeny\ndepart\ndepend\ndeposit\ndepth\ndeputy\nderive\ndescribe\ndesert\ndesign\ndesk\ndespair\ndestroy\ndetail\ndetect\ndevelop\ndevice\ndevote\ndiagram\ndial\ndiamond\ndiary\ndice\ndiesel\ndiet\ndiffer\ndigital\ndignity\ndilemma\ndinner\ndinosaur\ndirect\ndirt\ndisagree\ndiscover\ndisease\ndish\ndismiss\ndisorder\ndisplay\ndistance\ndivert\ndivide\ndivorce\ndizzy\ndoctor\ndocument\ndog\ndoll\ndolphin\ndomain\ndonate\ndonkey\ndonor\ndoor\ndose\ndouble\ndove\ndraft\ndragon\ndrama\ndrastic\ndraw\ndream\ndress\ndrift\ndrill\ndrink\ndrip\ndrive\ndrop\ndrum\ndry\nduck\ndumb\ndune\nduring\ndust\ndutch\nduty\ndwarf\ndynamic\neager\neagle\nearly\nearn\nearth\neasily\neast\neasy\necho\necology\neconomy\nedge\nedit\neducate\neffort\negg\neight\neither\nelbow\nelder\nelectric\nelegant\nelement\nelephant\nelevator\nelite\nelse\nembark\nembody\nembrace\nemerge\nemotion\nemploy\nempower\nempty\nenable\nenact\nend\nendless\nendorse\nenemy\nenergy\nenforce\nengage\nengine\nenhance\nenjoy\nenlist\nenough\nenrich\nenroll\nensure\nenter\nentire\nentry\nenvelope\nepisode\nequal\nequip\nera\nerase\nerode\nerosion\nerror\nerupt\nescape\nessay\nessence\nestate\neternal\nethics\nevidence\nevil\nevoke\nevolve\nexact\nexample\nexcess\nexchange\nexcite\nexclude\nexcuse\nexecute\nexercise\nexhaust\nexhibit\nexile\nexist\nexit\nexotic\nexpand\nexpect\nexpire\nexplain\nexpose\nexpress\nextend\nextra\neye\neyebrow\nfabric\nface\nfaculty\nfade\nfaint\nfaith\nfall\nfalse\nfame\nfamily\nfamous\nfan\nfancy\nfantasy\nfarm\nfashion\nfat\nfatal\nfather\nfatigue\nfault\nfavorite\nfeature\nfebruary\nfederal\nfee\nfeed\nfeel\nfemale\nfence\nfestival\nfetch\nfever\nfew\nfiber\nfiction\nfield\nfigure\nfile\nfilm\nfilter\nfinal\nfind\nfine\nfinger\nfinish\nfire\nfirm\nfirst\nfiscal\nfish\nfit\nfitness\nfix\nflag\nflame\nflash\nflat\nflavor\nflee\nflight\nflip\nfloat\nflock\nfloor\nflower\nfluid\nflush\nfly\nfoam\nfocus\nfog\nfoil\nfold\nfollow\nfood\nfoot\nforce\nforest\nforget\nfork\nfortune\nforum\nforward\nfossil\nfoster\nfound\nfox\nfragile\nframe\nfrequent\nfresh\nfriend\nfringe\nfrog\nfront\nfrost\nfrown\nfrozen\nfruit\nfuel\nfun\nfunny\nfurnace\nfury\nfuture\ngadget\ngain\ngalaxy\ngallery\ngame\ngap\ngarage\ngarbage\ngarden\ngarlic\ngarment\ngas\ngasp\ngate\ngather\ngauge\ngaze\ngeneral\ngenius\ngenre\ngentle\ngenuine\ngesture\nghost\ngiant\ngift\ngiggle\nginger\ngiraffe\ngirl\ngive\nglad\nglance\nglare\nglass\nglide\nglimpse\nglobe\ngloom\nglory\nglove\nglow\nglue\ngoat\ngoddess\ngold\ngood\ngoose\ngorilla\ngospel\ngossip\ngovern\ngown\ngrab\ngrace\ngrain\ngrant\ngrape\ngrass\ngravity\ngreat\ngreen\ngrid\ngrief\ngrit\ngrocery\ngroup\ngrow\ngrunt\nguard\nguess\nguide\nguilt\nguitar\ngun\ngym\nhabit\nhair\nhalf\nhammer\nhamster\nhand\nhappy\nharbor\nhard\nharsh\nharvest\nhat\nhave\nhawk\nhazard\nhead\nhealth\nheart\nheavy\nhedgehog\nheight\nhello\nhelmet\nhelp\nhen\nhero\nhidden\nhigh\nhill\nhint\nhip\nhire\nhistory\nhobby\nhockey\nhold\nhole\nholiday\nhollow\nhome\nhoney\nhood\nhope\nhorn\nhorror\nhorse\nhospital\nhost\nhotel\nhour\nhover\nhub\nhuge\nhuman\nhumble\nhumor\nhundred\nhungry\nhunt\nhurdle\nhurry\nhurt\nhusband\nhybrid\nice\nicon\nidea\nidentify\nidle\nignore\nill\nillegal\nillness\nimage\nimitate\nimmense\nimmune\nimpact\nimpose\nimprove\nimpulse\ninch\ninclude\nincome\nincrease\nindex\nindicate\nindoor\nindustry\ninfant\ninflict\ninform\ninhale\ninherit\ninitial\ninject\ninjury\ninmate\ninner\ninnocent\ninput\ninquiry\ninsane\ninsect\ninside\ninspire\ninstall\nintact\ninterest\ninto\ninvest\ninvite\ninvolve\niron\nisland\nisolate\nissue\nitem\nivory\njacket\njaguar\njar\njazz\njealous\njeans\njelly\njewel\njob\njoin\njoke\njourney\njoy\njudge\njuice\njump\njungle\njunior\njunk\njust\nkangaroo\nkeen\nkeep\nketchup\nkey\nkick\nkid\nkidney\nkind\nkingdom\nkiss\nkit\nkitchen\nkite\nkitten\nkiwi\nknee\nknife\nknock\nknow\nlab\nlabel\nlabor\nladder\nlady\nlake\nlamp\nlanguage\nlaptop\nlarge\nlater\nlatin\nlaugh\nlaundry\nlava\nlaw\nlawn\nlawsuit\nlayer\nlazy\nleader\nleaf\nlearn\nleave\nlecture\nleft\nleg\nlegal\nlegend\nleisure\nlemon\nlend\nlength\nlens\nleopard\nlesson\nletter\nlevel\nliar\nliberty\nlibrary\nlicense\nlife\nlift\nlight\nlike\nlimb\nlimit\nlink\nlion\nliquid\nlist\nlittle\nlive\nlizard\nload\nloan\nlobster\nlocal\nlock\nlogic\nlonely\nlong\nloop\nlottery\nloud\nlounge\nlove\nloyal\nlucky\nluggage\nlumber\nlunar\nlunch\nluxury\nlyrics\nmachine\nmad\nmagic\nmagnet\nmaid\nmail\nmain\nmajor\nmake\nmammal\nman\nmanage\nmandate\nmango\nmansion\nmanual\nmaple\nmarble\nmarch\nmargin\nmarine\nmarket\nmarriage\nmask\nmass\nmaster\nmatch\nmaterial\nmath\nmatrix\nmatter\nmaximum\nmaze\nmeadow\nmean\nmeasure\nmeat\nmechanic\nmedal\nmedia\nmelody\nmelt\nmember\nmemory\nmention\nmenu\nmercy\nmerge\nmerit\nmerry\nmesh\nmessage\nmetal\nmethod\nmiddle\nmidnight\nmilk\nmillion\nmimic\nmind\nminimum\nminor\nminute\nmiracle\nmirror\nmisery\nmiss\nmistake\nmix\nmixed\nmixture\nmobile\nmodel\nmodify\nmom\nmoment\nmonitor\nmonkey\nmonster\nmonth\nmoon\nmoral\nmore\nmorning\nmosquito\nmother\nmotion\nmotor\nmountain\nmouse\nmove\nmovie\nmuch\nmuffin\nmule\nmultiply\nmuscle\nmuseum\nmushroom\nmusic\nmust\nmutual\nmyself\nmystery\nmyth\nnaive\nname\nnapkin\nnarrow\nnasty\nnation\nnature\nnear\nneck\nneed\nnegative\nneglect\nneither\nnephew\nnerve\nnest\nnet\nnetwork\nneutral\nnever\nnews\nnext\nnice\nnight\nnoble\nnoise\nnominee\nnoodle\nnormal\nnorth\nnose\nnotable\nnote\nnothing\nnotice\nnovel\nnow\nnuclear\nnumber\nnurse\nnut\noak\nobey\nobject\noblige\nobscure\nobserve\nobtain\nobvious\noccur\nocean\noctober\nodor\noff\noffer\noffice\noften\noil\nokay\nold\nolive\nolympic\nomit\nonce\none\nonion\nonline\nonly\nopen\nopera\nopinion\noppose\noption\norange\norbit\norchard\norder\nordinary\norgan\norient\noriginal\norphan\nostrich\nother\noutdoor\nouter\noutput\noutside\noval\noven\nover\nown\nowner\noxygen\noyster\nozone\npact\npaddle\npage\npair\npalace\npalm\npanda\npanel\npanic\npanther\npaper\nparade\nparent\npark\nparrot\nparty\npass\npatch\npath\npatient\npatrol\npattern\npause\npave\npayment\npeace\npeanut\npear\npeasant\npelican\npen\npenalty\npencil\npeople\npepper\nperfect\npermit\nperson\npet\nphone\nphoto\nphrase\nphysical\npiano\npicnic\npicture\npiece\npig\npigeon\npill\npilot\npink\npioneer\npipe\npistol\npitch\npizza\nplace\nplanet\nplastic\nplate\nplay\nplease\npledge\npluck\nplug\nplunge\npoem\npoet\npoint\npolar\npole\npolice\npond\npony\npool\npopular\nportion\nposition\npossible\npost\npotato\npottery\npoverty\npowder\npower\npractice\npraise\npredict\nprefer\nprepare\npresent\npretty\nprevent\nprice\npride\nprimary\nprint\npriority\nprison\nprivate\nprize\nproblem\nprocess\nproduce\nprofit\nprogram\nproject\npromote\nproof\nproperty\nprosper\nprotect\nproud\nprovide\npublic\npudding\npull\npulp\npulse\npumpkin\npunch\npupil\npuppy\npurchase\npurity\npurpose\npurse\npush\nput\npuzzle\npyramid\nquality\nquantum\nquarter\nquestion\nquick\nquit\nquiz\nquote\nrabbit\nraccoon\nrace\nrack\nradar\nradio\nrail\nrain\nraise\nrally\nramp\nranch\nrandom\nrange\nrapid\nrare\nrate\nrather\nraven\nraw\nrazor\nready\nreal\nreason\nrebel\nrebuild\nrecall\nreceive\nrecipe\nrecord\nrecycle\nreduce\nreflect\nreform\nrefuse\nregion\nregret\nregular\nreject\nrelax\nrelease\nrelief\nrely\nremain\nremember\nremind\nremove\nrender\nrenew\nrent\nreopen\nrepair\nrepeat\nreplace\nreport\nrequire\nrescue\nresemble\nresist\nresource\nresponse\nresult\nretire\nretreat\nreturn\nreunion\nreveal\nreview\nreward\nrhythm\nrib\nribbon\nrice\nrich\nride\nridge\nrifle\nright\nrigid\nring\nriot\nripple\nrisk\nritual\nrival\nriver\nroad\nroast\nrobot\nrobust\nrocket\nromance\nroof\nrookie\nroom\nrose\nrotate\nrough\nround\nroute\nroyal\nrubber\nrude\nrug\nrule\nrun\nrunway\nrural\nsad\nsaddle\nsadness\nsafe\nsail\nsalad\nsalmon\nsalon\nsalt\nsalute\nsame\nsample\nsand\nsatisfy\nsatoshi\nsauce\nsausage\nsave\nsay\nscale\nscan\nscare\nscatter\nscene\nscheme\nschool\nscience\nscissors\nscorpion\nscout\nscrap\nscreen\nscript\nscrub\nsea\nsearch\nseason\nseat\nsecond\nsecret\nsection\nsecurity\nseed\nseek\nsegment\nselect\nsell\nseminar\nsenior\nsense\nsentence\nseries\nservice\nsession\nsettle\nsetup\nseven\nshadow\nshaft\nshallow\nshare\nshed\nshell\nsheriff\nshield\nshift\nshine\nship\nshiver\nshock\nshoe\nshoot\nshop\nshort\nshoulder\nshove\nshrimp\nshrug\nshuffle\nshy\nsibling\nsick\nside\nsiege\nsight\nsign\nsilent\nsilk\nsilly\nsilver\nsimilar\nsimple\nsince\nsing\nsiren\nsister\nsituate\nsix\nsize\nskate\nsketch\nski\nskill\nskin\nskirt\nskull\nslab\nslam\nsleep\nslender\nslice\nslide\nslight\nslim\nslogan\nslot\nslow\nslush\nsmall\nsmart\nsmile\nsmoke\nsmooth\nsnack\nsnake\nsnap\nsniff\nsnow\nsoap\nsoccer\nsocial\nsock\nsoda\nsoft\nsolar\nsoldier\nsolid\nsolution\nsolve\nsomeone\nsong\nsoon\nsorry\nsort\nsoul\nsound\nsoup\nsource\nsouth\nspace\nspare\nspatial\nspawn\nspeak\nspecial\nspeed\nspell\nspend\nsphere\nspice\nspider\nspike\nspin\nspirit\nsplit\nspoil\nsponsor\nspoon\nsport\nspot\nspray\nspread\nspring\nspy\nsquare\nsqueeze\nsquirrel\nstable\nstadium\nstaff\nstage\nstairs\nstamp\nstand\nstart\nstate\nstay\nsteak\nsteel\nstem\nstep\nstereo\nstick\nstill\nsting\nstock\nstomach\nstone\nstool\nstory\nstove\nstrategy\nstreet\nstrike\nstrong\nstruggle\nstudent\nstuff\nstumble\nstyle\nsubject\nsubmit\nsubway\nsuccess\nsuch\nsudden\nsuffer\nsugar\nsuggest\nsuit\nsummer\nsun\nsunny\nsunset\nsuper\nsupply\nsupreme\nsure\nsurface\nsurge\nsurprise\nsurround\nsurvey\nsuspect\nsustain\nswallow\nswamp\nswap\nswarm\nswear\nsweet\nswift\nswim\nswing\nswitch\nsword\nsymbol\nsymptom\nsyrup\nsystem\ntable\ntackle\ntag\ntail\ntalent\ntalk\ntank\ntape\ntarget\ntask\ntaste\ntattoo\ntaxi\nteach\nteam\ntell\nten\ntenant\ntennis\ntent\nterm\ntest\ntext\nthank\nthat\ntheme\nthen\ntheory\nthere\nthey\nthing\nthis\nthought\nthree\nthrive\nthrow\nthumb\nthunder\nticket\ntide\ntiger\ntilt\ntimber\ntime\ntiny\ntip\ntired\ntissue\ntitle\ntoast\ntobacco\ntoday\ntoddler\ntoe\ntogether\ntoilet\ntoken\ntomato\ntomorrow\ntone\ntongue\ntonight\ntool\ntooth\ntop\ntopic\ntopple\ntorch\ntornado\ntortoise\ntoss\ntotal\ntourist\ntoward\ntower\ntown\ntoy\ntrack\ntrade\ntraffic\ntragic\ntrain\ntransfer\ntrap\ntrash\ntravel\ntray\ntreat\ntree\ntrend\ntrial\ntribe\ntrick\ntrigger\ntrim\ntrip\ntrophy\ntrouble\ntruck\ntrue\ntruly\ntrumpet\ntrust\ntruth\ntry\ntube\ntuition\ntumble\ntuna\ntunnel\nturkey\nturn\nturtle\ntwelve\ntwenty\ntwice\ntwin\ntwist\ntwo\ntype\ntypical\nugly\numbrella\nunable\nunaware\nuncle\nuncover\nunder\nundo\nunfair\nunfold\nunhappy\nuniform\nunique\nunit\nuniverse\nunknown\nunlock\nuntil\nunusual\nunveil\nupdate\nupgrade\nuphold\nupon\nupper\nupset\nurban\nurge\nusage\nuse\nused\nuseful\nuseless\nusual\nutility\nvacant\nvacuum\nvague\nvalid\nvalley\nvalve\nvan\nvanish\nvapor\nvarious\nvast\nvault\nvehicle\nvelvet\nvendor\nventure\nvenue\nverb\nverify\nversion\nvery\nvessel\nveteran\nviable\nvibrant\nvicious\nvictory\nvideo\nview\nvillage\nvintage\nviolin\nvirtual\nvirus\nvisa\nvisit\nvisual\nvital\nvivid\nvocal\nvoice\nvoid\nvolcano\nvolume\nvote\nvoyage\nwage\nwagon\nwait\nwalk\nwall\nwalnut\nwant\nwarfare\nwarm\nwarrior\nwash\nwasp\nwaste\nwater\nwave\nway\nwealth\nweapon\nwear\nweasel\nweather\nweb\nwedding\nweekend\nweird\nwelcome\nwest\nwet\nwhale\nwhat\nwheat\nwheel\nwhen\nwhere\nwhip\nwhisper\nwide\nwidth\nwife\nwild\nwill\nwin\nwindow\nwine\nwing\nwink\nwinner\nwinter\nwire\nwisdom\nwise\nwish\nwitness\nwolf\nwoman\nwonder\nwood\nwool\nword\nwork\nworld\nworry\nworth\nwrap\nwreck\nwrestle\nwrist\nwrite\nwrong\nyard\nyear\nyellow\nyou\nyoung\nyouth\nzebra\nzero\nzone\nzoo".split("\n");const Me=R=>new DataView(R.buffer,R.byteOffset,R.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function yn(R){if("string"==typeof R&&(R=function ln(R){if("string"!=typeof R)throw new Error("utf8ToBytes expected string, got "+typeof R);return new Uint8Array((new TextEncoder).encode(R))}(R)),!function Re(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name}(R))throw new Error("expected Uint8Array, got "+typeof R);return R}class bn{clone(){return this._cloneInto()}}const Qe={}.toString;function ze(R){const U=oe=>R().update(yn(oe)).digest(),V=R();return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=()=>R(),U}class dt extends bn{constructor(U,V){super(),this.finished=!1,this.destroyed=!1,Z(U);const oe=yn(V);if(this.iHash=U.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 Ae=this.blockLen,Be=new Uint8Array(Ae);Be.set(oe.length>Ae?U.create().update(oe).digest():oe);for(let gt=0;gtnew dt(R,U).update(V).digest();Ge.create=(R,U)=>new dt(R,U);class fn extends bn{constructor(U,V,oe,Ae){super(),this.blockLen=U,this.outputLen=V,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(U),this.view=Me(this.buffer)}update(U){ne(this);const{view:V,buffer:oe,blockLen:Ae}=this,Be=(U=yn(U)).length;for(let gt=0;gtAe-gt&&(this.process(oe,0),gt=0);for(let Zt=gt;Zt>Ae&Be),It=Number(V&Be),on=oe?0:4;R.setUint32(U+(oe?4:0),gt,oe),R.setUint32(U+on,It,oe)})(oe,Ae-8,BigInt(8*this.length),Be),this.process(oe,0);const It=Me(U),Ht=this.outputLen;if(Ht%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const on=Ht/4,An=this.get();if(on>An.length)throw new Error("_sha2: outputLen bigger than state");for(let Zt=0;Zt>Nt&Gn)}:{h:0|Number(R>>Nt&Gn),l:0|Number(R&Gn)}}const Bn_split=function an(R,U=!1){let V=new Uint32Array(R.length),oe=new Uint32Array(R.length);for(let Ae=0;AeR>>>V,Bn_shrSL=(R,U,V)=>R<<32-V|U>>>V,Bn_rotrSH=(R,U,V)=>R>>>V|U<<32-V,Bn_rotrSL=(R,U,V)=>R<<32-V|U>>>V,Bn_rotrBH=(R,U,V)=>R<<64-V|U>>>V-32,Bn_rotrBL=(R,U,V)=>R>>>V-32|U<<64-V,Bn_add=function it(R,U,V,oe){const Ae=(U>>>0)+(oe>>>0);return{h:R+V+(Ae/2**32|0)|0,l:0|Ae}},Bn_add3L=(R,U,V)=>(R>>>0)+(U>>>0)+(V>>>0),Bn_add3H=(R,U,V,oe)=>U+V+oe+(R/2**32|0)|0,Bn_add4L=(R,U,V,oe)=>(R>>>0)+(U>>>0)+(V>>>0)+(oe>>>0),Bn_add4H=(R,U,V,oe,Ae)=>U+V+oe+Ae+(R/2**32|0)|0,Bn_add5H=(R,U,V,oe,Ae,Be)=>U+V+oe+Ae+Be+(R/2**32|0)|0,Bn_add5L=(R,U,V,oe,Ae)=>(R>>>0)+(U>>>0)+(V>>>0)+(oe>>>0)+(Ae>>>0),[cr,Jr]=Bn_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(R=>BigInt(R))),Xr=new Uint32Array(80),_t=new Uint32Array(80);class Bt extends fn{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:U,Al:V,Bh:oe,Bl:Ae,Ch:Be,Cl:gt,Dh:It,Dl:Ht,Eh:on,El:An,Fh:Zt,Fl:Kn,Gh:Wn,Gl:nr,Hh:Mn,Hl:jn}=this;return[U,V,oe,Ae,Be,gt,It,Ht,on,An,Zt,Kn,Wn,nr,Mn,jn]}set(U,V,oe,Ae,Be,gt,It,Ht,on,An,Zt,Kn,Wn,nr,Mn,jn){this.Ah=0|U,this.Al=0|V,this.Bh=0|oe,this.Bl=0|Ae,this.Ch=0|Be,this.Cl=0|gt,this.Dh=0|It,this.Dl=0|Ht,this.Eh=0|on,this.El=0|An,this.Fh=0|Zt,this.Fl=0|Kn,this.Gh=0|Wn,this.Gl=0|nr,this.Hh=0|Mn,this.Hl=0|jn}process(U,V){for(let Vn=0;Vn<16;Vn++,V+=4)Xr[Vn]=U.getUint32(V),_t[Vn]=U.getUint32(V+=4);for(let Vn=16;Vn<80;Vn++){const dr=0|Xr[Vn-15],Pr=0|_t[Vn-15],Ir=Bn_rotrSH(dr,Pr,1)^Bn_rotrSH(dr,Pr,8)^Bn_shrSH(dr,Pr,7),zr=Bn_rotrSL(dr,Pr,1)^Bn_rotrSL(dr,Pr,8)^Bn_shrSL(dr,Pr,7),Ur=0|Xr[Vn-2],Yi=0|_t[Vn-2],Qi=Bn_rotrSH(Ur,Yi,19)^Bn_rotrBH(Ur,Yi,61)^Bn_shrSH(Ur,Yi,6),Ii=Bn_rotrSL(Ur,Yi,19)^Bn_rotrBL(Ur,Yi,61)^Bn_shrSL(Ur,Yi,6),Zi=Bn_add4L(zr,Ii,_t[Vn-7],_t[Vn-16]),Bo=Bn_add4H(Zi,Ir,Qi,Xr[Vn-7],Xr[Vn-16]);Xr[Vn]=0|Bo,_t[Vn]=0|Zi}let{Ah:oe,Al:Ae,Bh:Be,Bl:gt,Ch:It,Cl:Ht,Dh:on,Dl:An,Eh:Zt,El:Kn,Fh:Wn,Fl:nr,Gh:Mn,Gl:jn,Hh:Qn,Hl:ir}=this;for(let Vn=0;Vn<80;Vn++){const dr=Bn_rotrSH(Zt,Kn,14)^Bn_rotrSH(Zt,Kn,18)^Bn_rotrBH(Zt,Kn,41),Pr=Bn_rotrSL(Zt,Kn,14)^Bn_rotrSL(Zt,Kn,18)^Bn_rotrBL(Zt,Kn,41),Ir=Zt&Wn^~Zt&Mn,Ur=Bn_add5L(ir,Pr,Kn&nr^~Kn&jn,Jr[Vn],_t[Vn]),Yi=Bn_add5H(Ur,Qn,dr,Ir,cr[Vn],Xr[Vn]),Qi=0|Ur,Ii=Bn_rotrSH(oe,Ae,28)^Bn_rotrBH(oe,Ae,34)^Bn_rotrBH(oe,Ae,39),Zi=Bn_rotrSL(oe,Ae,28)^Bn_rotrBL(oe,Ae,34)^Bn_rotrBL(oe,Ae,39),Bo=oe&Be^oe&It^Be&It,Ds=Ae>^Ae&Ht^gt&Ht;Qn=0|Mn,ir=0|jn,Mn=0|Wn,jn=0|nr,Wn=0|Zt,nr=0|Kn,({h:Zt,l:Kn}=Bn_add(0|on,0|An,0|Yi,0|Qi)),on=0|It,An=0|Ht,It=0|Be,Ht=0|gt,Be=0|oe,gt=0|Ae;const yr=Bn_add3L(Qi,Zi,Ds);oe=Bn_add3H(yr,Yi,Ii,Bo),Ae=0|yr}({h:oe,l:Ae}=Bn_add(0|this.Ah,0|this.Al,0|oe,0|Ae)),({h:Be,l:gt}=Bn_add(0|this.Bh,0|this.Bl,0|Be,0|gt)),({h:It,l:Ht}=Bn_add(0|this.Ch,0|this.Cl,0|It,0|Ht)),({h:on,l:An}=Bn_add(0|this.Dh,0|this.Dl,0|on,0|An)),({h:Zt,l:Kn}=Bn_add(0|this.Eh,0|this.El,0|Zt,0|Kn)),({h:Wn,l:nr}=Bn_add(0|this.Fh,0|this.Fl,0|Wn,0|nr)),({h:Mn,l:jn}=Bn_add(0|this.Gh,0|this.Gl,0|Mn,0|jn)),({h:Qn,l:ir}=Bn_add(0|this.Hh,0|this.Hl,0|Qn,0|ir)),this.set(oe,Ae,Be,gt,It,Ht,on,An,Zt,Kn,Wn,nr,Mn,jn,Qn,ir)}roundClean(){Xr.fill(0),_t.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 kt=ze(()=>new Bt);var or=r(3813);function ii(R){if("string"!=typeof R)throw new TypeError("Invalid mnemonic type: "+typeof R);return R.normalize("NFKD")}function Oi(R,U=""){return function se(R,U,V,oe){const{c:Ae,dkLen:Be,DK:gt,PRF:It,PRFSalt:Ht}=function He(R,U,V,oe){Z(R);const Ae=function bt(R,U){if(void 0!==U&&"[object Object]"!==Qe.call(U))throw new Error("Options should be object or undefined");return Object.assign(R,U)}({dkLen:32,asyncTick:10},oe),{c:Be,dkLen:gt,asyncTick:It}=Ae;if(A(Be),A(gt),A(It),Be<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const Ht=yn(U),on=yn(V),An=new Uint8Array(gt),Zt=Ge.create(R,Ht),Kn=Zt._cloneInto().update(on);return{c:Be,dkLen:gt,asyncTick:It,DK:An,PRF:Zt,PRFSalt:Kn}}(R,U,V,oe);let on;const An=new Uint8Array(4),Zt=Me(An),Kn=new Uint8Array(It.outputLen);for(let Wn=1,nr=0;nrii(`mnemonic${R}`))(U),{c:2048,dkLen:64})}function Uo(R){if(!Number.isSafeInteger(R)||R<0)throw new Error(`Wrong positive integer: ${R}`)}function so(R,...U){if(!function ts(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name}(R))throw new Error("Expected Uint8Array");if(U.length>0&&!U.includes(R.length))throw new Error(`Expected Uint8Array of length ${U}, not of length=${R.length}`)}function Xo(R,U=!0){if(R.destroyed)throw new Error("Hash instance has been destroyed");if(U&&R.finished)throw new Error("Hash#digest() has already been called")}function Mo(R){return R instanceof Uint8Array||null!=R&&"object"==typeof R&&"Uint8Array"===R.constructor.name}const Je=R=>new DataView(R.buffer,R.byteOffset,R.byteLength),ct=(R,U)=>R<<32-U|R>>>U;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const ve=Array.from({length:256},(R,U)=>U.toString(16).padStart(2,"0"));function pt(R){return R>=48&&R<=57?R-48:R>=65&&R<=70?R-55:R>=97&&R<=102?R-87:void 0}function Sn(R){if("string"!=typeof R)throw new Error("utf8ToBytes expected string, got "+typeof R);return new Uint8Array((new TextEncoder).encode(R))}function kn(R){if("string"==typeof R&&(R=Sn(R)),!Mo(R))throw new Error("expected Uint8Array, got "+typeof R);return R}function Un(...R){let U=0;for(let oe=0;oeR().update(kn(oe)).digest(),V=R();return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=()=>R(),U}class ai extends Jn{constructor(U,V){super(),this.finished=!1,this.destroyed=!1,function bo(R){if("function"!=typeof R||"function"!=typeof R.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Uo(R.outputLen),Uo(R.blockLen)}(U);const oe=kn(V);if(this.iHash=U.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 Ae=this.blockLen,Be=new Uint8Array(Ae);Be.set(oe.length>Ae?U.create().update(oe).digest():oe);for(let gt=0;gtnew ai(R,U).update(V).digest();vo.create=(R,U)=>new ai(R,U);class Ki extends Jn{constructor(U,V,oe,Ae){super(),this.blockLen=U,this.outputLen=V,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(U),this.view=Je(this.buffer)}update(U){Xo(this);const{view:V,buffer:oe,blockLen:Ae}=this,Be=(U=kn(U)).length;for(let gt=0;gtAe-gt&&(this.process(oe,0),gt=0);for(let Zt=gt;Zt>Ae&Be),It=Number(V&Be),on=oe?0:4;R.setUint32(U+(oe?4:0),gt,oe),R.setUint32(U+on,It,oe)})(oe,Ae-8,BigInt(8*this.length),Be),this.process(oe,0);const It=Je(U),Ht=this.outputLen;if(Ht%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const on=Ht/4,An=this.get();if(on>An.length)throw new Error("_sha2: outputLen bigger than state");for(let Zt=0;ZtU);let Sr=[ws],oa=[ws.map(R=>(9*R+5)%16)];for(let R=0;R<4;R++)for(let U of[Sr,oa])U.push(U[R].map(V=>cs[V]));const ma=[[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(R=>new Uint8Array(R)),wo=Sr.map((R,U)=>R.map(V=>ma[U][V])),Ls=oa.map((R,U)=>R.map(V=>ma[U][V])),Ps=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Xs=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),Gi=(R,U)=>R<>>32-U;function Ys(R,U,V,oe){return 0===R?U^V^oe:1===R?U&V|~U&oe:2===R?(U|~V)^oe:3===R?U&oe|V&~oe:U^(V|~oe)}const Ni=new Uint32Array(16);class Fs extends Ki{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:U,h1:V,h2:oe,h3:Ae,h4:Be}=this;return[U,V,oe,Ae,Be]}set(U,V,oe,Ae,Be){this.h0=0|U,this.h1=0|V,this.h2=0|oe,this.h3=0|Ae,this.h4=0|Be}process(U,V){for(let Wn=0;Wn<16;Wn++,V+=4)Ni[Wn]=U.getUint32(V,!0);let oe=0|this.h0,Ae=oe,Be=0|this.h1,gt=Be,It=0|this.h2,Ht=It,on=0|this.h3,An=on,Zt=0|this.h4,Kn=Zt;for(let Wn=0;Wn<5;Wn++){const nr=4-Wn,Mn=Ps[Wn],jn=Xs[Wn],Qn=Sr[Wn],ir=oa[Wn],Vn=wo[Wn],dr=Ls[Wn];for(let Pr=0;Pr<16;Pr++){const Ir=Gi(oe+Ys(Wn,Be,It,on)+Ni[Qn[Pr]]+Mn,Vn[Pr])+Zt|0;oe=Zt,Zt=on,on=0|Gi(It,10),It=Be,Be=Ir}for(let Pr=0;Pr<16;Pr++){const Ir=Gi(Ae+Ys(nr,gt,Ht,An)+Ni[ir[Pr]]+jn,dr[Pr])+Kn|0;Ae=Kn,Kn=An,An=0|Gi(Ht,10),Ht=gt,gt=Ir}}this.set(this.h1+It+An|0,this.h2+on+Kn|0,this.h3+Zt+Ae|0,this.h4+oe+gt|0,this.h0+Be+Ht|0)}roundClean(){Ni.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const ns=mr(()=>new Fs),qr=(R,U,V)=>R&U^~R&V,rs=(R,U,V)=>R&U^R&V^U&V,is=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]),to=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Wi=new Uint32Array(64);class Es extends Ki{constructor(){super(64,32,8,!1),this.A=0|to[0],this.B=0|to[1],this.C=0|to[2],this.D=0|to[3],this.E=0|to[4],this.F=0|to[5],this.G=0|to[6],this.H=0|to[7]}get(){const{A:U,B:V,C:oe,D:Ae,E:Be,F:gt,G:It,H:Ht}=this;return[U,V,oe,Ae,Be,gt,It,Ht]}set(U,V,oe,Ae,Be,gt,It,Ht){this.A=0|U,this.B=0|V,this.C=0|oe,this.D=0|Ae,this.E=0|Be,this.F=0|gt,this.G=0|It,this.H=0|Ht}process(U,V){for(let Zt=0;Zt<16;Zt++,V+=4)Wi[Zt]=U.getUint32(V,!1);for(let Zt=16;Zt<64;Zt++){const Kn=Wi[Zt-15],Wn=Wi[Zt-2],nr=ct(Kn,7)^ct(Kn,18)^Kn>>>3,Mn=ct(Wn,17)^ct(Wn,19)^Wn>>>10;Wi[Zt]=Mn+Wi[Zt-7]+nr+Wi[Zt-16]|0}let{A:oe,B:Ae,C:Be,D:gt,E:It,F:Ht,G:on,H:An}=this;for(let Zt=0;Zt<64;Zt++){const Wn=An+(ct(It,6)^ct(It,11)^ct(It,25))+qr(It,Ht,on)+is[Zt]+Wi[Zt]|0,Mn=(ct(oe,2)^ct(oe,13)^ct(oe,22))+rs(oe,Ae,Be)|0;An=on,on=Ht,Ht=It,It=gt+Wn|0,gt=Be,Be=Ae,Ae=oe,oe=Wn+Mn|0}oe=oe+this.A|0,Ae=Ae+this.B|0,Be=Be+this.C|0,gt=gt+this.D|0,It=It+this.E|0,Ht=Ht+this.F|0,on=on+this.G|0,An=An+this.H|0,this.set(oe,Ae,Be,gt,It,Ht,on,An)}roundClean(){Wi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const ga=mr(()=>new Es),Eo=BigInt(2**32-1),os=BigInt(32);function ks(R,U=!1){return U?{h:Number(R&Eo),l:Number(R>>os&Eo)}:{h:0|Number(R>>os&Eo),l:0|Number(R&Eo)}}const Xe_split=function Bs(R,U=!1){let V=new Uint32Array(R.length),oe=new Uint32Array(R.length);for(let Ae=0;AeR>>>V,Xe_shrSL=(R,U,V)=>R<<32-V|U>>>V,Xe_rotrSH=(R,U,V)=>R>>>V|U<<32-V,Xe_rotrSL=(R,U,V)=>R<<32-V|U>>>V,Xe_rotrBH=(R,U,V)=>R<<64-V|U>>>V-32,Xe_rotrBL=(R,U,V)=>R>>>V-32|U<<64-V,Xe_add=function ko(R,U,V,oe){const Ae=(U>>>0)+(oe>>>0);return{h:R+V+(Ae/2**32|0)|0,l:0|Ae}},Xe_add3L=(R,U,V)=>(R>>>0)+(U>>>0)+(V>>>0),Xe_add3H=(R,U,V,oe)=>U+V+oe+(R/2**32|0)|0,Xe_add4L=(R,U,V,oe)=>(R>>>0)+(U>>>0)+(V>>>0)+(oe>>>0),Xe_add4H=(R,U,V,oe,Ae)=>U+V+oe+Ae+(R/2**32|0)|0,Xe_add5H=(R,U,V,oe,Ae,Be)=>U+V+oe+Ae+Be+(R/2**32|0)|0,Xe_add5L=(R,U,V,oe,Ae)=>(R>>>0)+(U>>>0)+(V>>>0)+(oe>>>0)+(Ae>>>0),[wt,Ln]=Xe_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(R=>BigInt(R))),hn=new Uint32Array(80),ur=new Uint32Array(80);class hr extends Ki{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:U,Al:V,Bh:oe,Bl:Ae,Ch:Be,Cl:gt,Dh:It,Dl:Ht,Eh:on,El:An,Fh:Zt,Fl:Kn,Gh:Wn,Gl:nr,Hh:Mn,Hl:jn}=this;return[U,V,oe,Ae,Be,gt,It,Ht,on,An,Zt,Kn,Wn,nr,Mn,jn]}set(U,V,oe,Ae,Be,gt,It,Ht,on,An,Zt,Kn,Wn,nr,Mn,jn){this.Ah=0|U,this.Al=0|V,this.Bh=0|oe,this.Bl=0|Ae,this.Ch=0|Be,this.Cl=0|gt,this.Dh=0|It,this.Dl=0|Ht,this.Eh=0|on,this.El=0|An,this.Fh=0|Zt,this.Fl=0|Kn,this.Gh=0|Wn,this.Gl=0|nr,this.Hh=0|Mn,this.Hl=0|jn}process(U,V){for(let Vn=0;Vn<16;Vn++,V+=4)hn[Vn]=U.getUint32(V),ur[Vn]=U.getUint32(V+=4);for(let Vn=16;Vn<80;Vn++){const dr=0|hn[Vn-15],Pr=0|ur[Vn-15],Ir=Xe_rotrSH(dr,Pr,1)^Xe_rotrSH(dr,Pr,8)^Xe_shrSH(dr,Pr,7),zr=Xe_rotrSL(dr,Pr,1)^Xe_rotrSL(dr,Pr,8)^Xe_shrSL(dr,Pr,7),Ur=0|hn[Vn-2],Yi=0|ur[Vn-2],Qi=Xe_rotrSH(Ur,Yi,19)^Xe_rotrBH(Ur,Yi,61)^Xe_shrSH(Ur,Yi,6),Ii=Xe_rotrSL(Ur,Yi,19)^Xe_rotrBL(Ur,Yi,61)^Xe_shrSL(Ur,Yi,6),Zi=Xe_add4L(zr,Ii,ur[Vn-7],ur[Vn-16]),Bo=Xe_add4H(Zi,Ir,Qi,hn[Vn-7],hn[Vn-16]);hn[Vn]=0|Bo,ur[Vn]=0|Zi}let{Ah:oe,Al:Ae,Bh:Be,Bl:gt,Ch:It,Cl:Ht,Dh:on,Dl:An,Eh:Zt,El:Kn,Fh:Wn,Fl:nr,Gh:Mn,Gl:jn,Hh:Qn,Hl:ir}=this;for(let Vn=0;Vn<80;Vn++){const dr=Xe_rotrSH(Zt,Kn,14)^Xe_rotrSH(Zt,Kn,18)^Xe_rotrBH(Zt,Kn,41),Pr=Xe_rotrSL(Zt,Kn,14)^Xe_rotrSL(Zt,Kn,18)^Xe_rotrBL(Zt,Kn,41),Ir=Zt&Wn^~Zt&Mn,Ur=Xe_add5L(ir,Pr,Kn&nr^~Kn&jn,Ln[Vn],ur[Vn]),Yi=Xe_add5H(Ur,Qn,dr,Ir,wt[Vn],hn[Vn]),Qi=0|Ur,Ii=Xe_rotrSH(oe,Ae,28)^Xe_rotrBH(oe,Ae,34)^Xe_rotrBH(oe,Ae,39),Zi=Xe_rotrSL(oe,Ae,28)^Xe_rotrBL(oe,Ae,34)^Xe_rotrBL(oe,Ae,39),Bo=oe&Be^oe&It^Be&It,Ds=Ae>^Ae&Ht^gt&Ht;Qn=0|Mn,ir=0|jn,Mn=0|Wn,jn=0|nr,Wn=0|Zt,nr=0|Kn,({h:Zt,l:Kn}=Xe_add(0|on,0|An,0|Yi,0|Qi)),on=0|It,An=0|Ht,It=0|Be,Ht=0|gt,Be=0|oe,gt=0|Ae;const yr=Xe_add3L(Qi,Zi,Ds);oe=Xe_add3H(yr,Yi,Ii,Bo),Ae=0|yr}({h:oe,l:Ae}=Xe_add(0|this.Ah,0|this.Al,0|oe,0|Ae)),({h:Be,l:gt}=Xe_add(0|this.Bh,0|this.Bl,0|Be,0|gt)),({h:It,l:Ht}=Xe_add(0|this.Ch,0|this.Cl,0|It,0|Ht)),({h:on,l:An}=Xe_add(0|this.Dh,0|this.Dl,0|on,0|An)),({h:Zt,l:Kn}=Xe_add(0|this.Eh,0|this.El,0|Zt,0|Kn)),({h:Wn,l:nr}=Xe_add(0|this.Fh,0|this.Fl,0|Wn,0|nr)),({h:Mn,l:jn}=Xe_add(0|this.Gh,0|this.Gl,0|Mn,0|jn)),({h:Qn,l:ir}=Xe_add(0|this.Hh,0|this.Hl,0|Qn,0|ir)),this.set(oe,Ae,Be,gt,It,Ht,on,An,Zt,Kn,Wn,nr,Mn,jn,Qn,ir)}roundClean(){hn.fill(0),ur.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 Dr=mr(()=>new hr);function lo(R){if(!Number.isSafeInteger(R)||R<0)throw new Error(`Wrong positive integer: ${R}`)}function Oo(R,...U){if(!(R instanceof Uint8Array))throw new Error("Expected Uint8Array");if(U.length>0&&!U.includes(R.length))throw new Error(`Expected Uint8Array of length ${U}, not of length=${R.length}`)}const ce={number:lo,bool:function Ho(R){if("boolean"!=typeof R)throw new Error(`Expected boolean, not ${R}`)},bytes:Oo,hash:function Hl(R){if("function"!=typeof R||"function"!=typeof R.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");lo(R.outputLen),lo(R.blockLen)},exists:function Qa(R,U=!0){if(R.destroyed)throw new Error("Hash instance has been destroyed");if(U&&R.finished)throw new Error("Hash#digest() has already been called")},output:function ya(R,U){Oo(R);const V=U.outputLen;if(R.lengthR instanceof Uint8Array,ni=R=>new DataView(R.buffer,R.byteOffset,R.byteLength),Do=(R,U)=>R<<32-U|R>>>U;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Lo(R){if("string"==typeof R&&(R=function Ua(R){if("string"!=typeof R)throw new Error("utf8ToBytes expected string, got "+typeof R);return new Uint8Array((new TextEncoder).encode(R))}(R)),!Le(R))throw new Error("expected Uint8Array, got "+typeof R);return R}Array.from({length:256},(R,U)=>U.toString(16).padStart(2,"0"));class El{clone(){return this._cloneInto()}}function $a(R){const U=oe=>R().update(Lo(oe)).digest(),V=R();return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=()=>R(),U}function rc(R=32){if(Q&&"function"==typeof Q.getRandomValues)return Q.getRandomValues(new Uint8Array(R));throw new Error("crypto.getRandomValues must be defined")}class Wl extends El{constructor(U,V,oe,Ae){super(),this.blockLen=U,this.outputLen=V,this.padOffset=oe,this.isLE=Ae,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(U),this.view=ni(this.buffer)}update(U){ce.exists(this);const{view:V,buffer:oe,blockLen:Ae}=this,Be=(U=Lo(U)).length;for(let gt=0;gtAe-gt&&(this.process(oe,0),gt=0);for(let Zt=gt;Zt>Ae&Be),It=Number(V&Be),on=oe?0:4;R.setUint32(U+(oe?4:0),gt,oe),R.setUint32(U+on,It,oe)})(oe,Ae-8,BigInt(8*this.length),Be),this.process(oe,0);const It=ni(U),Ht=this.outputLen;if(Ht%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const on=Ht/4,An=this.get();if(on>An.length)throw new Error("_sha2: outputLen bigger than state");for(let Zt=0;ZtR&U^~R&V,qa=(R,U,V)=>R&U^R&V^U&V,Cl=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]),Ro=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),co=new Uint32Array(64);class wa extends Wl{constructor(){super(64,32,8,!1),this.A=0|Ro[0],this.B=0|Ro[1],this.C=0|Ro[2],this.D=0|Ro[3],this.E=0|Ro[4],this.F=0|Ro[5],this.G=0|Ro[6],this.H=0|Ro[7]}get(){const{A:U,B:V,C:oe,D:Ae,E:Be,F:gt,G:It,H:Ht}=this;return[U,V,oe,Ae,Be,gt,It,Ht]}set(U,V,oe,Ae,Be,gt,It,Ht){this.A=0|U,this.B=0|V,this.C=0|oe,this.D=0|Ae,this.E=0|Be,this.F=0|gt,this.G=0|It,this.H=0|Ht}process(U,V){for(let Zt=0;Zt<16;Zt++,V+=4)co[Zt]=U.getUint32(V,!1);for(let Zt=16;Zt<64;Zt++){const Kn=co[Zt-15],Wn=co[Zt-2],nr=Do(Kn,7)^Do(Kn,18)^Kn>>>3,Mn=Do(Wn,17)^Do(Wn,19)^Wn>>>10;co[Zt]=Mn+co[Zt-7]+nr+co[Zt-16]|0}let{A:oe,B:Ae,C:Be,D:gt,E:It,F:Ht,G:on,H:An}=this;for(let Zt=0;Zt<64;Zt++){const Wn=An+(Do(It,6)^Do(It,11)^Do(It,25))+ba(It,Ht,on)+Cl[Zt]+co[Zt]|0,Mn=(Do(oe,2)^Do(oe,13)^Do(oe,22))+qa(oe,Ae,Be)|0;An=on,on=Ht,Ht=It,It=gt+Wn|0,gt=Be,Be=Ae,Ae=oe,oe=Wn+Mn|0}oe=oe+this.A|0,Ae=Ae+this.B|0,Be=Be+this.C|0,gt=gt+this.D|0,It=It+this.E|0,Ht=Ht+this.F|0,on=on+this.G|0,An=An+this.H|0,this.set(oe,Ae,Be,gt,It,Ht,on,An)}roundClean(){co.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class Ea extends wa{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 Jo=$a(()=>new wa),Dl=($a(()=>new Ea),BigInt(0),BigInt(1)),zl=BigInt(2),Sl=R=>R instanceof Uint8Array,Gl=Array.from({length:256},(R,U)=>U.toString(16).padStart(2,"0"));function xa(R){if(!Sl(R))throw new Error("Uint8Array expected");let U="";for(let V=0;Voe+Ae.length,0));let V=0;return R.forEach(oe=>{if(!Sl(oe))throw new Error("Uint8Array expected");U.set(oe,V),V+=oe.length}),U}const Va=R=>(zl<new Uint8Array(R),Ha=R=>Uint8Array.from(R);function Di(R,U,V){if("number"!=typeof R||R<2)throw new Error("hashLen must be a number");if("number"!=typeof U||U<2)throw new Error("qByteLen must be a number");if("function"!=typeof V)throw new Error("hmacFn must be a function");let oe=ro(R),Ae=ro(R),Be=0;const gt=()=>{oe.fill(1),Ae.fill(0),Be=0},It=(...Zt)=>V(Ae,oe,...Zt),Ht=(Zt=ro())=>{Ae=It(Ha([0]),Zt),oe=It(),0!==Zt.length&&(Ae=It(Ha([1]),Zt),oe=It())},on=()=>{if(Be++>=1e3)throw new Error("drbg: tried 1000 values");let Zt=0;const Kn=[];for(;Zt{let Wn;for(gt(),Ht(Zt);!(Wn=Kn(on()));)Ht();return gt(),Wn}}const $s={bigint:R=>"bigint"==typeof R,function:R=>"function"==typeof R,boolean:R=>"boolean"==typeof R,string:R=>"string"==typeof R,isSafeInteger:R=>Number.isSafeInteger(R),array:R=>Array.isArray(R),field:(R,U)=>U.Fp.isValid(R),hash:R=>"function"==typeof R&&Number.isSafeInteger(R.outputLen)};function ca(R,U,V={}){const oe=(Ae,Be,gt)=>{const It=$s[Be];if("function"!=typeof It)throw new Error(`Invalid validator "${Be}", expected function`);const Ht=R[Ae];if(!(gt&&void 0===Ht||It(Ht,R)))throw new Error(`Invalid param ${String(Ae)}=${Ht} (${typeof Ht}), expected ${Be}`)};for(const[Ae,Be]of Object.entries(U))oe(Ae,Be,!1);for(const[Ae,Be]of Object.entries(V))oe(Ae,Be,!0);return R}const No=BigInt(0),$=BigInt(1),de=BigInt(2),q=BigInt(3),_e=BigInt(4),nt=BigInt(5),_n=BigInt(8);function Yr(R,U){const V=R%U;return V>=No?V:U+V}function Li(R,U,V){if(V<=No||U 0");if(V===$)return No;let oe=$;for(;U>No;)U&$&&(oe=oe*R%V),R=R*R%V,U>>=$;return oe}function Hr(R,U,V){let oe=R;for(;U-- >No;)oe*=oe,oe%=V;return oe}function xi(R,U){if(R===No||U<=No)throw new Error(`invert: expected positive integers, got n=${R} mod=${U}`);let V=Yr(R,U),oe=U,Ae=No,Be=$,gt=$,It=No;for(;V!==No;){const on=oe/V,An=oe%V,Zt=Ae-gt*on,Kn=Be-It*on;oe=V,V=An,Ae=gt,Be=It,gt=Zt,It=Kn}if(oe!==$)throw new Error("invert: does not exist");return Yr(Ae,U)}BigInt(9),BigInt(16);const Wo=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Zs(R,U){const V=void 0!==U?U:R.toString(2).length;return{nBitLength:V,nByteLength:Math.ceil(V/8)}}const ua=BigInt(0),Xl=BigInt(1);function sd(R){return function hs(R){ca(R,Wo.reduce((oe,Ae)=>(oe[Ae]="function",oe),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(R.Fp),ca(R,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Zs(R.n,R.nBitLength),...R,p:R.Fp.ORDER})}const{Ph:Ao,aT:Ja}=i,el={Err:class extends Error{constructor(U=""){super(U)}},_parseInt(R){const{Err:U}=el;if(R.length<2||2!==R[0])throw new U("Invalid signature integer tag");const V=R[1],oe=R.subarray(2,V+2);if(!V||oe.length!==V)throw new U("Invalid signature integer: wrong length");if(128&oe[0])throw new U("Invalid signature integer: negative");if(0===oe[0]&&!(128&oe[1]))throw new U("Invalid signature integer: unnecessary leading zero");return{d:Ao(oe),l:R.subarray(V+2)}},toSig(R){const{Err:U}=el,V="string"==typeof R?Ja(R):R;if(!(V instanceof Uint8Array))throw new Error("ui8a expected");let oe=V.length;if(oe<2||48!=V[0])throw new U("Invalid signature tag");if(V[1]!==oe-2)throw new U("Invalid signature: incorrect length");const{d:Ae,l:Be}=el._parseInt(V.subarray(2)),{d:gt,l:It}=el._parseInt(Be);if(It.length)throw new U("Invalid signature: left bytes after parsing");return{r:Ae,s:gt}},hexFromSig(R){const U=on=>8&Number.parseInt(on[0],16)?"00"+on:on,V=on=>{const An=on.toString(16);return 1&An.length?`0${An}`:An},oe=U(V(R.s)),Ae=U(V(R.r)),Be=oe.length/2,gt=Ae.length/2,It=V(Be),Ht=V(gt);return`30${V(gt+Be+4)}02${Ht}${Ae}02${It}${oe}`}},qs=BigInt(0),zo=BigInt(1),Ns=(BigInt(2),BigInt(3));function ad(R){const U=function th(R){const U=sd(R);return ca(U,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...U})}(R),{Fp:V,n:oe}=U,Ae=V.BYTES+1,Be=2*V.BYTES+1;function It(yr){return Yr(yr,oe)}function Ht(yr){return xi(yr,oe)}const{ProjectivePoint:on,normPrivateKeyToScalar:An,weierstrassEquation:Zt,isWithinCurveOrder:Kn}=function yc(R){const U=function oc(R){const U=sd(R);ca(U,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:V,Fp:oe,a:Ae}=U;if(V){if(!oe.eql(Ae,oe.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof V||"bigint"!=typeof V.beta||"function"!=typeof V.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...U})}(R),{Fp:V}=U,oe=U.toBytes||((nr,Mn,jn)=>{const Qn=Mn.toAffine();return Fr(Uint8Array.from([4]),V.toBytes(Qn.x),V.toBytes(Qn.y))}),Ae=U.fromBytes||(nr=>{const Mn=nr.subarray(1);return{x:V.fromBytes(Mn.subarray(0,V.BYTES)),y:V.fromBytes(Mn.subarray(V.BYTES,2*V.BYTES))}});function Be(nr){const{a:Mn,b:jn}=U,Qn=V.sqr(nr),ir=V.mul(Qn,nr);return V.add(V.add(ir,V.mul(nr,Mn)),jn)}if(!V.eql(V.sqr(U.Gy),Be(U.Gx)))throw new Error("bad generator point: equation left != right");function gt(nr){return"bigint"==typeof nr&&qsV.eql(Vn,V.ZERO);return ir(jn)&&ir(Qn)?Zt.ZERO:new Zt(jn,Qn,V.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Mn){const jn=V.invertBatch(Mn.map(Qn=>Qn.pz));return Mn.map((Qn,ir)=>Qn.toAffine(jn[ir])).map(Zt.fromAffine)}static fromHex(Mn){const jn=Zt.fromAffine(Ae(Po("pointHex",Mn)));return jn.assertValidity(),jn}static fromPrivateKey(Mn){return Zt.BASE.multiply(Ht(Mn))}_setWindowSize(Mn){this._WINDOW_SIZE=Mn,on.delete(this)}assertValidity(){if(this.is0()){if(U.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:Mn,y:jn}=this.toAffine();if(!V.isValid(Mn)||!V.isValid(jn))throw new Error("bad point: x or y not FE");const Qn=V.sqr(jn),ir=Be(Mn);if(!V.eql(Qn,ir))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Mn}=this.toAffine();if(V.isOdd)return!V.isOdd(Mn);throw new Error("Field doesn't support isOdd")}equals(Mn){An(Mn);const{px:jn,py:Qn,pz:ir}=this,{px:Vn,py:dr,pz:Pr}=Mn,Ir=V.eql(V.mul(jn,Pr),V.mul(Vn,ir)),zr=V.eql(V.mul(Qn,Pr),V.mul(dr,ir));return Ir&&zr}negate(){return new Zt(this.px,V.neg(this.py),this.pz)}double(){const{a:Mn,b:jn}=U,Qn=V.mul(jn,Ns),{px:ir,py:Vn,pz:dr}=this;let Pr=V.ZERO,Ir=V.ZERO,zr=V.ZERO,Ur=V.mul(ir,ir),Yi=V.mul(Vn,Vn),Qi=V.mul(dr,dr),Ii=V.mul(ir,Vn);return Ii=V.add(Ii,Ii),zr=V.mul(ir,dr),zr=V.add(zr,zr),Pr=V.mul(Mn,zr),Ir=V.mul(Qn,Qi),Ir=V.add(Pr,Ir),Pr=V.sub(Yi,Ir),Ir=V.add(Yi,Ir),Ir=V.mul(Pr,Ir),Pr=V.mul(Ii,Pr),zr=V.mul(Qn,zr),Qi=V.mul(Mn,Qi),Ii=V.sub(Ur,Qi),Ii=V.mul(Mn,Ii),Ii=V.add(Ii,zr),zr=V.add(Ur,Ur),Ur=V.add(zr,Ur),Ur=V.add(Ur,Qi),Ur=V.mul(Ur,Ii),Ir=V.add(Ir,Ur),Qi=V.mul(Vn,dr),Qi=V.add(Qi,Qi),Ur=V.mul(Qi,Ii),Pr=V.sub(Pr,Ur),zr=V.mul(Qi,Yi),zr=V.add(zr,zr),zr=V.add(zr,zr),new Zt(Pr,Ir,zr)}add(Mn){An(Mn);const{px:jn,py:Qn,pz:ir}=this,{px:Vn,py:dr,pz:Pr}=Mn;let Ir=V.ZERO,zr=V.ZERO,Ur=V.ZERO;const Yi=U.a,Qi=V.mul(U.b,Ns);let Ii=V.mul(jn,Vn),Zi=V.mul(Qn,dr),Bo=V.mul(ir,Pr),Ds=V.add(jn,Qn),yr=V.add(Vn,dr);Ds=V.mul(Ds,yr),yr=V.add(Ii,Zi),Ds=V.sub(Ds,yr),yr=V.add(jn,ir);let jr=V.add(Vn,Pr);return yr=V.mul(yr,jr),jr=V.add(Ii,Bo),yr=V.sub(yr,jr),jr=V.add(Qn,ir),Ir=V.add(dr,Pr),jr=V.mul(jr,Ir),Ir=V.add(Zi,Bo),jr=V.sub(jr,Ir),Ur=V.mul(Yi,yr),Ir=V.mul(Qi,Bo),Ur=V.add(Ir,Ur),Ir=V.sub(Zi,Ur),Ur=V.add(Zi,Ur),zr=V.mul(Ir,Ur),Zi=V.add(Ii,Ii),Zi=V.add(Zi,Ii),Bo=V.mul(Yi,Bo),yr=V.mul(Qi,yr),Zi=V.add(Zi,Bo),Bo=V.sub(Ii,Bo),Bo=V.mul(Yi,Bo),yr=V.add(yr,Bo),Ii=V.mul(Zi,yr),zr=V.add(zr,Ii),Ii=V.mul(jr,yr),Ir=V.mul(Ds,Ir),Ir=V.sub(Ir,Ii),Ii=V.mul(Ds,Zi),Ur=V.mul(jr,Ur),Ur=V.add(Ur,Ii),new Zt(Ir,zr,Ur)}subtract(Mn){return this.add(Mn.negate())}is0(){return this.equals(Zt.ZERO)}wNAF(Mn){return Wn.wNAFCached(this,on,Mn,jn=>{const Qn=V.invertBatch(jn.map(ir=>ir.pz));return jn.map((ir,Vn)=>ir.toAffine(Qn[Vn])).map(Zt.fromAffine)})}multiplyUnsafe(Mn){const jn=Zt.ZERO;if(Mn===qs)return jn;if(It(Mn),Mn===zo)return this;const{endo:Qn}=U;if(!Qn)return Wn.unsafeLadder(this,Mn);let{k1neg:ir,k1:Vn,k2neg:dr,k2:Pr}=Qn.splitScalar(Mn),Ir=jn,zr=jn,Ur=this;for(;Vn>qs||Pr>qs;)Vn&zo&&(Ir=Ir.add(Ur)),Pr&zo&&(zr=zr.add(Ur)),Ur=Ur.double(),Vn>>=zo,Pr>>=zo;return ir&&(Ir=Ir.negate()),dr&&(zr=zr.negate()),zr=new Zt(V.mul(zr.px,Qn.beta),zr.py,zr.pz),Ir.add(zr)}multiply(Mn){It(Mn);let Qn,ir,jn=Mn;const{endo:Vn}=U;if(Vn){const{k1neg:dr,k1:Pr,k2neg:Ir,k2:zr}=Vn.splitScalar(jn);let{p:Ur,f:Yi}=this.wNAF(Pr),{p:Qi,f:Ii}=this.wNAF(zr);Ur=Wn.constTimeNegate(dr,Ur),Qi=Wn.constTimeNegate(Ir,Qi),Qi=new Zt(V.mul(Qi.px,Vn.beta),Qi.py,Qi.pz),Qn=Ur.add(Qi),ir=Yi.add(Ii)}else{const{p:dr,f:Pr}=this.wNAF(jn);Qn=dr,ir=Pr}return Zt.normalizeZ([Qn,ir])[0]}multiplyAndAddUnsafe(Mn,jn,Qn){const ir=Zt.BASE,Vn=(Pr,Ir)=>Ir!==qs&&Ir!==zo&&Pr.equals(ir)?Pr.multiply(Ir):Pr.multiplyUnsafe(Ir),dr=Vn(this,jn).add(Vn(Mn,Qn));return dr.is0()?void 0:dr}toAffine(Mn){const{px:jn,py:Qn,pz:ir}=this,Vn=this.is0();null==Mn&&(Mn=Vn?V.ONE:V.inv(ir));const dr=V.mul(jn,Mn),Pr=V.mul(Qn,Mn),Ir=V.mul(ir,Mn);if(Vn)return{x:V.ZERO,y:V.ZERO};if(!V.eql(Ir,V.ONE))throw new Error("invZ was invalid");return{x:dr,y:Pr}}isTorsionFree(){const{h:Mn,isTorsionFree:jn}=U;if(Mn===zo)return!0;if(jn)return jn(Zt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Mn,clearCofactor:jn}=U;return Mn===zo?this:jn?jn(Zt,this):this.multiplyUnsafe(U.h)}toRawBytes(Mn=!0){return this.assertValidity(),oe(Zt,this,Mn)}toHex(Mn=!0){return xa(this.toRawBytes(Mn))}}Zt.BASE=new Zt(U.Gx,U.Gy,V.ONE),Zt.ZERO=new Zt(V.ZERO,V.ONE,V.ZERO);const Kn=U.nBitLength,Wn=function Fc(R,U){const V=(Ae,Be)=>{const gt=Be.negate();return Ae?gt:Be},oe=Ae=>({windows:Math.ceil(U/Ae)+1,windowSize:2**(Ae-1)});return{constTimeNegate:V,unsafeLadder(Ae,Be){let gt=R.ZERO,It=Ae;for(;Be>ua;)Be&Xl&&(gt=gt.add(It)),It=It.double(),Be>>=Xl;return gt},precomputeWindow(Ae,Be){const{windows:gt,windowSize:It}=oe(Be),Ht=[];let on=Ae,An=on;for(let Zt=0;Zt>=Wn,jn>Ht&&(jn-=Kn,gt+=Xl);const Qn=Mn,ir=Mn+Math.abs(jn)-1,dr=jn<0;0===jn?An=An.add(V(nr%2!=0,Be[Qn])):on=on.add(V(dr,Be[ir]))}return{p:on,f:An}},wNAFCached(Ae,Be,gt,It){const Ht=Ae._WINDOW_SIZE||1;let on=Be.get(Ae);return on||(on=this.precomputeWindow(Ae,Ht),1!==Ht&&Be.set(Ae,It(on))),this.wNAF(Ht,on,gt)}}}(Zt,U.endo?Math.ceil(Kn/2):Kn);return{CURVE:U,ProjectivePoint:Zt,normPrivateKeyToScalar:Ht,weierstrassEquation:Be,isWithinCurveOrder:gt}}({...U,toBytes(yr,jr,Fi){const $i=jr.toAffine(),mo=V.toBytes($i.x),ps=Fr;return Fi?ps(Uint8Array.from([jr.hasEvenY()?2:3]),mo):ps(Uint8Array.from([4]),mo,V.toBytes($i.y))},fromBytes(yr){const jr=yr.length,Fi=yr[0],$i=yr.subarray(1);if(jr!==Ae||2!==Fi&&3!==Fi){if(jr===Be&&4===Fi)return{x:V.fromBytes($i.subarray(0,V.BYTES)),y:V.fromBytes($i.subarray(V.BYTES,2*V.BYTES))};throw new Error(`Point of length ${jr} was invalid. Expected ${Ae} compressed bytes or ${Be} uncompressed bytes`)}{const mo=Ar($i);if(!function gt(yr){return qsxa(no(yr,U.nByteLength));function nr(yr){return yr>oe>>zo}const jn=(yr,jr,Fi)=>Ar(yr.slice(jr,Fi));class Qn{constructor(jr,Fi,$i){this.r=jr,this.s=Fi,this.recovery=$i,this.assertValidity()}static fromCompact(jr){const Fi=U.nByteLength;return jr=Po("compactSignature",jr,2*Fi),new Qn(jn(jr,0,Fi),jn(jr,Fi,2*Fi))}static fromDER(jr){const{r:Fi,s:$i}=el.toSig(Po("DER",jr));return new Qn(Fi,$i)}assertValidity(){if(!Kn(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Kn(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(jr){return new Qn(this.r,this.s,jr)}recoverPublicKey(jr){const{r:Fi,s:$i,recovery:mo}=this,ps=zr(Po("msgHash",jr));if(null==mo||![0,1,2,3].includes(mo))throw new Error("recovery id invalid");const gs=2===mo||3===mo?Fi+U.n:Fi;if(gs>=V.ORDER)throw new Error("recovery id 2 or 3 invalid");const lc=on.fromHex((1&mo?"03":"02")+Wn(gs)),nl=Ht(gs),cc=It(-ps*nl),Vc=It($i*nl),uc=on.BASE.multiplyAndAddUnsafe(lc,cc,Vc);if(!uc)throw new Error("point at infinify");return uc.assertValidity(),uc}hasHighS(){return nr(this.s)}normalizeS(){return this.hasHighS()?new Qn(this.r,It(-this.s),this.recovery):this}toDERRawBytes(){return zn(this.toDERHex())}toDERHex(){return el.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return zn(this.toCompactHex())}toCompactHex(){return Wn(this.r)+Wn(this.s)}}const ir={isValidPrivateKey(yr){try{return An(yr),!0}catch{return!1}},normPrivateKeyToScalar:An,randomPrivateKey:()=>{const jr=function cl(R,U,V=!1){const oe=(R=Po("privateHash",R)).length,Ae=Zs(U).nByteLength+8;if(Ae<24||oe1024)throw new Error(`hashToPrivateScalar: expected ${Ae}-1024 bytes of input, got ${oe}`);return Yr(V?So(R):Ar(R),U-$)+$}(U.randomBytes(V.BYTES+8),oe);return no(jr,U.nByteLength)},precompute:(yr=8,jr=on.BASE)=>(jr._setWindowSize(yr),jr.multiply(BigInt(3)),jr)};function dr(yr){const jr=yr instanceof Uint8Array,Fi="string"==typeof yr,$i=(jr||Fi)&&yr.length;return jr?$i===Ae||$i===Be:Fi?$i===2*Ae||$i===2*Be:yr instanceof on}const Ir=U.bits2int||function(yr){const jr=Ar(yr),Fi=8*yr.length-U.nBitLength;return Fi>0?jr>>BigInt(Fi):jr},zr=U.bits2int_modN||function(yr){return It(Ir(yr))},Ur=Va(U.nBitLength);function Yi(yr){if("bigint"!=typeof yr)throw new Error("bigint expected");if(!(qs<=yr&&yrdc in Fi))throw new Error("sign() legacy options not supported");const{hash:$i,randomBytes:mo}=U;let{lowS:ps,prehash:gs,extraEntropy:Ss}=Fi;null==ps&&(ps=!0),yr=Po("msgHash",yr),gs&&(yr=Po("prehashed msgHash",$i(yr)));const lc=zr(yr),nl=An(jr),cc=[Yi(nl),Yi(lc)];if(null!=Ss){const dc=!0===Ss?mo(V.BYTES):Ss;cc.push(Po("extraEntropy",dc,V.BYTES))}const Vc=Fr(...cc),uc=lc;return{seed:Vc,k2sig:function Cc(dc){const Hc=Ir(dc);if(!Kn(Hc))return;const Wc=Ht(Hc),fa=on.BASE.multiply(Hc).toAffine(),za=It(fa.x);if(za===qs)return;const fl=It(Wc*It(uc+za*nl));if(fl===qs)return;let cu=(fa.x===za?0:2)|Number(fa.y&zo),Ql=fl;return ps&&nr(fl)&&(Ql=function Mn(yr){return nr(yr)?It(-yr):yr}(fl),cu^=1),new Qn(za,Ql,cu)}}}(yr,jr,Fi);return Di(U.hash.outputLen,U.nByteLength,U.hmac)($i,mo)},verify:function Ds(yr,jr,Fi,$i=Zi){const mo=yr;if(jr=Po("msgHash",jr),Fi=Po("publicKey",Fi),"strict"in $i)throw new Error("options.strict was renamed to lowS");const{lowS:ps,prehash:gs}=$i;let Ss,lc;try{if("string"==typeof mo||mo instanceof Uint8Array)try{Ss=Qn.fromDER(mo)}catch(fa){if(!(fa instanceof el.Err))throw fa;Ss=Qn.fromCompact(mo)}else{if("object"!=typeof mo||"bigint"!=typeof mo.r||"bigint"!=typeof mo.s)throw new Error("PARSE");{const{r:fa,s:za}=mo;Ss=new Qn(fa,za)}}lc=on.fromHex(Fi)}catch(fa){if("PARSE"===fa.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(ps&&Ss.hasHighS())return!1;gs&&(jr=U.hash(jr));const{r:nl,s:cc}=Ss,Vc=zr(jr),uc=Ht(cc),Cc=It(Vc*uc),dc=It(nl*uc),Hc=on.BASE.multiplyAndAddUnsafe(lc,Cc,dc)?.toAffine();return!!Hc&&It(Hc.x)===nl},ProjectivePoint:on,Signature:Qn,utils:ir}}BigInt(4);class wc extends El{constructor(U,V){super(),this.finished=!1,this.destroyed=!1,ce.hash(U);const oe=Lo(V);if(this.iHash=U.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 Ae=this.blockLen,Be=new Uint8Array(Ae);Be.set(oe.length>Ae?U.create().update(oe).digest():oe);for(let gt=0;gtnew wc(R,U).update(V).digest();function Xi(R){return{hash:R,hmac:(U,...V)=>su(R,U,function Za(...R){const U=new Uint8Array(R.reduce((oe,Ae)=>oe+Ae.length,0));let V=0;return R.forEach(oe=>{if(!Le(oe))throw new Error("Uint8Array expected");U.set(oe,V),V+=oe.length}),U}(...V)),randomBytes:rc}}su.create=(R,U)=>new wc(R,U);const Tr=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),xs=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),$c=BigInt(1),L=BigInt(2),K=(R,U)=>(R+U/L)/U;const X=function Da(R,U,V=!1,oe={}){if(R<=No)throw new Error(`Expected Fp ORDER > 0, got ${R}`);const{nBitLength:Ae,nByteLength:Be}=Zs(R,U);if(Be>2048)throw new Error("Field lengths over 2048 bytes are not supported");const gt=function di(R){if(R%_e===q){const U=(R+$)/_e;return function(oe,Ae){const Be=oe.pow(Ae,U);if(!oe.eql(oe.sqr(Be),Ae))throw new Error("Cannot find square root");return Be}}if(R%_n===nt){const U=(R-nt)/_n;return function(oe,Ae){const Be=oe.mul(Ae,de),gt=oe.pow(Be,U),It=oe.mul(Ae,gt),Ht=oe.mul(oe.mul(It,de),gt),on=oe.mul(It,oe.sub(Ht,oe.ONE));if(!oe.eql(oe.sqr(on),Ae))throw new Error("Cannot find square root");return on}}return function Qr(R){const U=(R-$)/de;let V,oe,Ae;for(V=R-$,oe=0;V%de===No;V/=de,oe++);for(Ae=de;AeYr(Ht,R),isValid:Ht=>{if("bigint"!=typeof Ht)throw new Error("Invalid field element: expected bigint, got "+typeof Ht);return No<=Ht&&HtHt===No,isOdd:Ht=>(Ht&$)===$,neg:Ht=>Yr(-Ht,R),eql:(Ht,on)=>Ht===on,sqr:Ht=>Yr(Ht*Ht,R),add:(Ht,on)=>Yr(Ht+on,R),sub:(Ht,on)=>Yr(Ht-on,R),mul:(Ht,on)=>Yr(Ht*on,R),pow:(Ht,on)=>function jo(R,U,V){if(V 0");if(V===No)return R.ONE;if(V===$)return U;let oe=R.ONE,Ae=U;for(;V>No;)V&$&&(oe=R.mul(oe,Ae)),Ae=R.sqr(Ae),V>>=$;return oe}(It,Ht,on),div:(Ht,on)=>Yr(Ht*xi(on,R),R),sqrN:Ht=>Ht*Ht,addN:(Ht,on)=>Ht+on,subN:(Ht,on)=>Ht-on,mulN:(Ht,on)=>Ht*on,inv:Ht=>xi(Ht,R),sqrt:oe.sqrt||(Ht=>gt(It,Ht)),invertBatch:Ht=>function Rs(R,U){const V=new Array(U.length),oe=U.reduce((Be,gt,It)=>R.is0(gt)?Be:(V[It]=Be,R.mul(Be,gt)),R.ONE),Ae=R.inv(oe);return U.reduceRight((Be,gt,It)=>R.is0(gt)?Be:(V[It]=R.mul(Be,V[It]),R.mul(Be,gt)),Ae),V}(It,Ht),cmov:(Ht,on,An)=>An?on:Ht,toBytes:Ht=>V?$o(Ht,Be):no(Ht,Be),fromBytes:Ht=>{if(Ht.length!==Be)throw new Error(`Fp.fromBytes: expected ${Be}, got ${Ht.length}`);return V?So(Ht):Ar(Ht)}});return Object.freeze(It)}(Tr,void 0,void 0,{sqrt:function P(R){const U=Tr,V=BigInt(3),oe=BigInt(6),Ae=BigInt(11),Be=BigInt(22),gt=BigInt(23),It=BigInt(44),Ht=BigInt(88),on=R*R*R%U,An=on*on*R%U,Zt=Hr(An,V,U)*An%U,Kn=Hr(Zt,V,U)*An%U,Wn=Hr(Kn,L,U)*on%U,nr=Hr(Wn,Ae,U)*Wn%U,Mn=Hr(nr,Be,U)*nr%U,jn=Hr(Mn,It,U)*Mn%U,Qn=Hr(jn,Ht,U)*jn%U,ir=Hr(Qn,It,U)*Mn%U,Vn=Hr(ir,V,U)*An%U,dr=Hr(Vn,gt,U)*nr%U,Pr=Hr(dr,oe,U)*on%U,Ir=Hr(Pr,L,U);if(!X.eql(X.sqr(Ir),R))throw new Error("Cannot find square root");return Ir}}),he=function Nu(R,U){const V=oe=>ad({...R,...Xi(oe)});return Object.freeze({...V(U),create:V})}({a:BigInt(0),b:BigInt(7),Fp:X,n:xs,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:R=>{const U=xs,V=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),oe=-$c*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),Ae=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),Be=V,gt=BigInt("0x100000000000000000000000000000000"),It=K(Be*R,U),Ht=K(-oe*R,U);let on=Yr(R-It*V-Ht*Ae,U),An=Yr(-It*oe-Ht*Be,U);const Zt=on>gt,Kn=An>gt;if(Zt&&(on=U-on),Kn&&(An=U-An),on>gt||An>gt)throw new Error("splitScalar: Endomorphism failed, k="+R);return{k1neg:Zt,k1:on,k2neg:Kn,k2:An}}}},Jo);BigInt(0);const au=he.ProjectivePoint,Lu=(0,or.Tq)(ga);function ld(R){return BigInt(`0x${function et(R){if(!Mo(R))throw new Error("Uint8Array expected");let U="";for(let V=0;V{if(!Number.isSafeInteger(R)||R<0||R>2**32-1)throw new Error(`Invalid number=${R}. Should be from 0 to 2 ** 32 - 1`);const U=new Uint8Array(4);return Je(U).setUint32(0,R,!1),U};class fs{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return Je(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 U=this.privateKey;if(!U)throw new Error("No private key");return Lu.encode(this.serialize(this.versions.private,Un(new Uint8Array([0]),U)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return Lu.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(U,V=Pu){if(so(U),8*U.length<128||8*U.length>512)throw new Error(`HDKey: wrong seed length=${U.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const oe=vo(Dr,gi,U);return new fs({versions:V,chainCode:oe.slice(32),privateKey:oe.slice(0,32)})}static fromExtendedKey(U,V=Pu){const oe=Lu.decode(U),Ae=Je(oe),Be=Ae.getUint32(0,!1),gt={versions:V,depth:oe[4],parentFingerprint:Ae.getUint32(5,!1),index:Ae.getUint32(9,!1),chainCode:oe.slice(13,45)},It=oe.slice(45),Ht=0===It[0];if(Be!==V[Ht?"private":"public"])throw new Error("Version mismatch");return new fs(Ht?{...gt,privateKey:It.slice(1)}:{...gt,publicKey:It})}static fromJSON(U){return fs.fromExtendedKey(U.xpriv)}constructor(U){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!U||"object"!=typeof U)throw new Error("HDKey.constructor must not be called directly");if(this.versions=U.versions||Pu,this.depth=U.depth||0,this.chainCode=U.chainCode,this.index=U.index||0,this.parentFingerprint=U.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(U.publicKey&&U.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(U.privateKey){if(!he.utils.isValidPrivateKey(U.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof U.privateKey?U.privateKey:ld(U.privateKey),this.privKeyBytes=function wn(R){return function $t(R){if("string"!=typeof R)throw new Error("hex string expected, got "+typeof R);const U=R.length,V=U/2;if(U%2)throw new Error("padded hex string expected, got unpadded hex of length "+U);const oe=new Uint8Array(V);for(let Ae=0,Be=0;Ae=lu)throw new Error("Invalid index");"'"===Be[2]&&(gt+=lu),oe=oe.deriveChild(gt)}return oe}deriveChild(U){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let V=Il(U);if(U>=lu){const It=this.privateKey;if(!It)throw new Error("Could not derive hardened child key");V=Un(new Uint8Array([0]),It,V)}else V=Un(this.pubKey,V);const oe=vo(Dr,this.chainCode,V),Ae=ld(oe.slice(0,32)),Be=oe.slice(32);if(!he.utils.isValidPrivateKey(Ae))throw new Error("Tweak bigger than curve order");const gt={versions:this.versions,chainCode:Be,depth:this.depth+1,parentFingerprint:this.fingerprint,index:U};try{if(this.privateKey){const It=Yr(this.privKey+Ae,he.CURVE.n);if(!he.utils.isValidPrivateKey(It))throw new Error("The tweak was out of range or the resulted private key is invalid");gt.privateKey=It}else{const It=au.fromHex(this.pubKey).add(au.fromPrivateKey(Ae));if(It.equals(au.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");gt.publicKey=It.toRawBytes(!0)}return new fs(gt)}catch{return this.deriveChild(U+1)}}sign(U){if(!this.privateKey)throw new Error("No privateKey set!");return so(U,32),he.sign(U,this.privKey).toCompactRawBytes()}verify(U,V){if(so(U,32),so(V,64),!this.publicKey)throw new Error("No publicKey set!");let oe;try{oe=he.Signature.fromCompact(V)}catch{return!1}return he.verify(oe,U,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(U,V){if(!this.chainCode)throw new Error("No chainCode set");return so(V,33),Un(Il(U),new Uint8Array([this.depth]),Il(this.parentFingerprint),Il(this.index),this.chainCode,V)}}var ea=r(4438);let js=(()=>{class R{constructor(){this.encoder=new TextEncoder,this.decoder=new TextDecoder}getPasswordKey(V){var oe=this;return(0,a.A)(function*(){return window.crypto.subtle.importKey("raw",oe.encoder.encode(V),"PBKDF2",!1,["deriveKey"])})()}deriveKey(V,oe,Ae){return(0,a.A)(function*(){return window.crypto.subtle.deriveKey({name:"PBKDF2",salt:oe,iterations:25e4,hash:"SHA-256"},V,{name:"AES-GCM",length:256},!1,Ae)})()}encryptData(V,oe){var Ae=this;return(0,a.A)(function*(){try{const Be=window.crypto.getRandomValues(new Uint8Array(16)),gt=window.crypto.getRandomValues(new Uint8Array(12)),It=yield Ae.getPasswordKey(oe),Ht=yield Ae.deriveKey(It,Be,["encrypt"]),on=new Uint8Array(yield window.crypto.subtle.encrypt({name:"AES-GCM",iv:gt},Ht,Ae.encoder.encode(V))),An=new Uint8Array(Be.length+gt.length+on.length);return An.set(Be,0),An.set(gt,Be.length),An.set(on,Be.length+gt.length),or.K3.encode(An)}catch(Be){throw console.error("Encryption failed:",Be),new Error("Failed to encrypt data.")}})()}decryptData(V,oe){var Ae=this;return(0,a.A)(function*(){try{const Be=or.K3.decode(V),gt=Be.slice(0,16),It=Be.slice(16,28),Ht=Be.slice(28),on=yield Ae.getPasswordKey(oe),An=yield Ae.deriveKey(on,gt,["decrypt"]),Zt=yield window.crypto.subtle.decrypt({name:"AES-GCM",iv:It},An,Ht);return Ae.decoder.decode(Zt)}catch(Be){throw console.error("Decryption failed:",Be),new Error("Failed to decrypt data.")}})()}static{this.\u0275fac=function(oe){return new(oe||R)}}static{this.\u0275prov=ea.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})();var kl=r(5351),Bu=r(2332);let Wa=(()=>{class R{constructor(V,oe,Ae){this.securityService=V,this.dialog=oe,this._nostrLoginService=Ae,this.localStorageSecretKeyName="secretKey",this.localStoragePublicKeyName="publicKey",this.localStorageNpubName="npub",this.localStorageNsecName="nsec",this.storageKey="userPassword"}savePassword(V,oe){const Ae=Date.now()+60*oe*1e3;sessionStorage.setItem(this.storageKey,JSON.stringify({password:V,expirationTime:Ae}))}getPassword(){const V=sessionStorage.getItem(this.storageKey);if(!V)return null;const{password:oe,expirationTime:Ae}=JSON.parse(V);return Date.now()>Ae?(this.clearPassword(),null):oe}clearPassword(){sessionStorage.removeItem(this.storageKey)}changePassword(V,oe,Ae){var Be=this;return(0,a.A)(function*(){try{const gt=yield Be.getSecretKey(V);if(!gt)throw new Error("Incorrect current password.");yield Be.setSecretKey(gt,oe);const It=yield Be.getNsec(V);return It&&(yield Be.setNsec(It,oe)),Be.clearPassword(),Ae&&Be.savePassword(oe,60),!0}catch(gt){return console.error("Failed to change password: ",gt),!1}})()}getUsername(V){return V.startsWith("npub")&&(V=C.Qe.decode(V).data.toString()),`@${localStorage.getItem(`${V}`)||C.Qe.npubEncode(V)}`}npub(){let V=this.getPublicKey();return C.Qe.npubEncode(V)}requestPassword(){var V=this;return(0,a.A)(function*(){return V.dialog.open(y.b,{width:"300px",disableClose:!0}).afterClosed().toPromise()})()}nsec(V){var oe=this;return(0,a.A)(function*(){if(oe.usingSecretKey()){let Ae=yield oe.getSecretKey(V);const Be=Uint8Array.from(w.hp.from(Ae,"hex"));return C.Qe.nsecEncode(Be)}return""})()}pubkey(V){return C.Qe.decode(V).data.toString()}setPublicKey(V){const oe=C.Qe.npubEncode(V);window.localStorage.setItem(this.localStoragePublicKeyName,V),window.localStorage.setItem(this.localStorageNpubName,oe)}getPublicKey(){const V=localStorage.getItem("__nostrlogin_nip46");if(V)try{return JSON.parse(V).pubkey||""}catch(oe){console.error("Error parsing nostr login data:",oe)}return localStorage.getItem(this.localStoragePublicKeyName)||""}setNpub(V){localStorage.setItem(this.localStorageNpubName,V)}getNpub(){return window.localStorage.getItem(this.localStorageNpubName)||""}setSecretKey(V,oe=""){var Ae=this;return(0,a.A)(function*(){if(""===oe)localStorage.setItem(Ae.localStorageSecretKeyName,V),localStorage.setItem("usePassword","false");else{const Be=yield Ae.securityService.encryptData(V,oe);localStorage.setItem(Ae.localStorageSecretKeyName,Be),localStorage.setItem("usePassword","true")}})()}getSecretKey(V=""){var oe=this;return(0,a.A)(function*(){const Ae=localStorage.getItem(oe.localStorageSecretKeyName),Be="true"===localStorage.getItem("usePassword");return Ae?Be?yield oe.securityService.decryptData(Ae,V):Ae:null})()}getDecryptedSecretKey(){var V=this;return(0,a.A)(function*(){try{if("true"!==localStorage.getItem("usePassword"))return V.getSecretKey();const Ae=V.getPassword();if(Ae)return yield V.getSecretKey(Ae);const Be=yield V.requestPassword();if(Be?.password){const gt=yield V.getSecretKey(Be.password);return 0!==Be.duration&&V.savePassword(Be.password,Be.duration),gt}return console.error("Password not provided"),null}catch(oe){return console.error("Error decrypting private key:",oe),null}})()}setNsec(V,oe=""){var Ae=this;return(0,a.A)(function*(){if(""===oe)localStorage.setItem(Ae.localStorageNsecName,V),localStorage.setItem("usePassword","false");else{const Be=yield Ae.securityService.encryptData(V,oe);localStorage.setItem(Ae.localStorageNsecName,Be),localStorage.setItem("usePassword","true")}})()}getNsec(V=""){var oe=this;return(0,a.A)(function*(){const Ae=localStorage.getItem(oe.localStorageNsecName),Be="true"===localStorage.getItem("usePassword");return Ae?Be?yield oe.securityService.decryptData(Ae,V):Ae:null})()}setPublicKeyFromExtension(V){this.setPublicKey(V)}handleLoginWithKey(V,oe=""){let Ae,Be,gt,It;try{if(V.startsWith(this.localStorageNsecName)){const on=C.Qe.decode(V);if(on.type!==this.localStorageNsecName)throw new Error("Invalid nsec key.");Ae=w.hp.from(on.data).toString("hex")}else{if(!/^[0-9a-fA-F]{64}$/.test(V))throw new Error("Invalid key format. Must be either nsec or hex.");Ae=V}const Ht=new Uint8Array(w.hp.from(Ae,"hex"));return Be=(0,C.lG)(Ht),It=C.Qe.npubEncode(Be),gt=C.Qe.nsecEncode(Ht),this.setSecretKey(Ae,oe),this.setNsec(It,oe),this.setPublicKey(Be),this.setNpub(It),!0}catch(Ht){return console.error("Error during key handling: ",Ht),!1}}handleLoginWithMnemonic(V,oe="",Ae=""){try{const gt=function jc(R,U,V=0){let Ae=fs.fromMasterSeed(Oi(R,U)).derive(`m/44'/1237'/${V}'/0/0`).privateKey;if(!Ae)throw new Error("could not derive private key");return Ae}(V,oe,0),It=(0,c.My)(gt),Ht=(0,C.lG)(gt),on=C.Qe.npubEncode(Ht),An=C.Qe.nsecEncode(gt);return this.setSecretKey(It,Ae),this.setNsec(An,Ae),this.setPublicKey(Ht),this.setNpub(on),window.localStorage.setItem(this.localStorageNsecName,An),!0}catch(Be){return console.error("Error during login with mnemonic:",Be),!1}}logout(){window.localStorage.removeItem(this.localStorageSecretKeyName),window.localStorage.removeItem(this.localStoragePublicKeyName),window.localStorage.removeItem(this.localStorageNpubName),window.localStorage.removeItem(this.localStorageNsecName),this._nostrLoginService.logout()}usingNostrBrowserExtension(){return!this.usingSecretKey()&&!!globalThis.nostr}usingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}generateAndStoreKeys(V=""){try{const oe=(0,C.Bq)(),Ae=w.hp.from(oe).toString("hex"),Be=(0,C.lG)(oe),gt=C.Qe.npubEncode(Be),It=C.Qe.nsecEncode(oe);return this.setSecretKey(Ae,V),this.setNsec(It,V),this.setPublicKey(Be),this.setNpub(gt),{secretKey:Ae,pubkey:Be,npub:gt,nsec:It}}catch(oe){return console.error("Error during key generation:",oe),null}}handleLoginWithExtension(){var V=this;return(0,a.A)(function*(){const oe=globalThis;if(!oe.nostr)return!1;try{const Ae=yield oe.nostr.getPublicKey();if(!Ae)throw new Error("Public key not available from Nostr extension.");return V.setPublicKeyFromExtension(Ae),!0}catch(Ae){return console.error("Failed to connect to Nostr extension:",Ae),!1}})()}encryptMessage(V,oe,Ae){return(0,a.A)(function*(){console.log(Ae);try{return yield C.sh.encrypt(V,oe,Ae)}catch(Be){throw console.error("Error encrypting message:",Be),Be}})()}encryptMessageWithExtension(V,oe){return(0,a.A)(function*(){return yield globalThis.nostr.nip04.encrypt(oe,V)})()}decryptMessageWithExtension(V,oe){return(0,a.A)(function*(){const Ae=globalThis;if(Ae.nostr&&"function"==typeof Ae.nostr.nip04?.decrypt)try{return yield Ae.nostr.nip04.decrypt(V,oe)}catch(Be){return console.error("Decryption failed:",Be),"*Failed to decrypt content: "+Be.message+"*"}return console.warn("Nostr extension or decrypt method is unavailable"),"Attempted Nostr Window decryption and failed."})()}decryptMessage(V,oe,Ae){return(0,a.A)(function*(){try{if(!V||!oe||!Ae)throw new Error("Private key, public key, or encrypted message is missing or undefined.");const Be=yield C.sh.decrypt(V,oe,Ae);if(!Be)throw new Error("Decryption returned an empty message.");return Be}catch(Be){throw Be}})()}getUnsignedEvent(V,oe,Ae){return{kind:V,pubkey:this.getPublicKey(),tags:oe,content:Ae,created_at:Math.floor(Date.now()/1e3)}}getSignedEvent(V,oe){const Ae=(0,c.aT)(oe);return(0,C.pC)(V,Ae)}getMuteList(){return(localStorage.getItem("muteList")||"").split(",")}setMuteListFromTags(V){let oe=[];V.forEach(Ae=>{oe.push(Ae[1])}),this.setMuteList(oe)}setMuteList(V){if(0===V.length)localStorage.setItem("muteList","");else{let oe=Array.from(new Set(V));localStorage.setItem("muteList",oe.filter(Ae=>Ae).join(","))}}signEventWithExtension(V){return(0,a.A)(function*(){const oe=globalThis;if(oe.nostr)return yield oe.nostr.signEvent(V);throw new Error("Tried to sign event with extension but failed")})()}signDMWithExtension(V,oe){return(0,a.A)(function*(){const Ae=globalThis;if(Ae.nostr&&Ae.nostr.nip04?.encrypt)return yield Ae.nostr.nip04.encrypt(V,oe);throw new Error("Failed to Sign with extension")})()}isUsingExtension(){var V=this;return(0,a.A)(function*(){const oe=globalThis;if(oe.nostr&&oe.nostr.getPublicKey)try{return!localStorage.getItem(V.localStorageSecretKeyName)}catch(Ae){return console.error("Failed to check Nostr extension:",Ae),!1}return!1})()}isUsingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}getNpubFromPubkey(V){try{return C.Qe.npubEncode(V)}catch(oe){return console.error("Error converting hex to npub:",oe),""}}getNsecFromSeckey(V){try{const oe=Uint8Array.from(w.hp.from(V,"hex"));return C.Qe.nsecEncode(oe)}catch(oe){return console.error("Error converting hex to nsec:",oe),""}}getHexFromNpub(V){try{const oe=C.Qe.decode(V);if("npub"!==oe.type)throw new Error("Invalid npub format.");return oe.data.toString()}catch(oe){return console.error("Error converting npub to hex:",oe),""}}processKey(V){try{if(V.startsWith("npub")){const oe=this.getHexFromNpub(V);if(!oe)throw new Error("Failed to convert npub to hex.");return oe}if(/^[0-9a-fA-F]{64}$/.test(V))return V;throw new Error("Invalid key format. Must be either hex or npub.")}catch(oe){return console.error("Error processing key:",oe),""}}static{this.\u0275fac=function(oe){return new(oe||R)(ea.KVO(js),ea.KVO(kl.bZ),ea.KVO(Bu.v))}}static{this.\u0275prov=ea.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})()},2083:(o,s,r)=>{"use strict";r.d(s,{d:()=>C});var i=r(467),a=r(8418),c=r(4438),y=r(5645),w=r(7291);let C=(()=>{class T{constructor(A,I){this.subscriptionService=A,this.storageService=I,this.isProfileLoaded=!1}loadUserProfile(A){var I=this;return(0,i.A)(function*(){I.isProfileLoaded||(yield I.subscribeToUserProfile(A),yield I.subscribeToUserChats(A),yield I.subscribeToUserPosts(A),yield I.subscribeToMyLikes(A),I.isProfileLoaded=!0)})()}subscribeToUserProfile(A){var I=this;return(0,i.A)(function*(){const N=yield I.storageService.getLastUpdateDate("users"),G={kinds:[0],authors:[A],limit:1};N&&(G.since=parseInt(N,10)),I.subscriptionService.addSubscriptions([G],Z=>{const ne=I.parseMetadataEvent(Z);I.storageService.saveProfile(A,ne)})})()}subscribeToUserChats(A){var I=this;return(0,i.A)(function*(){const N=yield I.storageService.getLastUpdateDate("chats"),G=[{kinds:[a.rV],authors:[A],limit:300},{kinds:[a.rV],"#p":[A],limit:300}];if(N){const Z=parseInt(N,10);G.forEach(ne=>ne.since=Z)}else I.storageService.removeAllChats();I.subscriptionService.addSubscriptions(G,Z=>{const ne=I.parseChatEvent(Z);I.storageService.saveChatEvent(ne)})})()}subscribeToUserPosts(A){var I=this;return(0,i.A)(function*(){const N=yield I.storageService.getLastUpdateDate("posts"),G={kinds:[a.av],authors:[A]};N&&(G.since=parseInt(N,10)),I.subscriptionService.addSubscriptions([G],Z=>{I.isReply(Z)||I.storageService.savePost(Z)})})()}isReply(A){return A.tags.filter(N=>"e"===N[0]||"p"===N[0]).length>0}subscribeToMyLikes(A){var I=this;return(0,i.A)(function*(){const N=yield I.storageService.getLastUpdateDate("myLikes"),G={kinds:[a.qT],authors:[A]};N&&(G.since=parseInt(N,10)),I.subscriptionService.addSubscriptions([G],Z=>{I.storageService.saveLike(Z)})})()}parseMetadataEvent(A){try{return JSON.parse(A.content)}catch(I){return console.error("Error parsing metadata event:",I),null}}parseChatEvent(A){try{const I=A.content.split("?iv=");return{id:A.id,kind:A.kind,pubkey:A.pubkey,created_at:A.created_at,tags:A.tags,content:I[0],iv:I[1],IsRead:!1}}catch(I){return console.error("Error parsing chat event:",I),null}}static{this.\u0275fac=function(I){return new(I||T)(c.KVO(y.n),c.KVO(w.n))}}static{this.\u0275prov=c.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},7291:(o,s,r)=>{"use strict";r.d(s,{n:()=>C});var i=r(467),a=r(119),c=r.n(a),y=r(4412),w=r(4438);let C=(()=>{class T{constructor(){this.profileSubject=new y.t(null),this.projectsSubject=new y.t([]),this.projectStatsSubject=new y.t({}),this.chatEventsSubject=new y.t([]),this.unreadChatCountSubject=new y.t(0),this.contactsSubject=new y.t({pubKey:"",contacts:[]}),this.postsSubject=new y.t(null),this.myLikesSubject=new y.t([]),this.notificationsSubject=new y.t([]),this.contactStatsSubject=new y.t({totalContacts:0,followersCount:0,followingCount:0}),this.investorsSubject=new y.t([]),this.projectDetailsSubject=new y.t([]),this.contactStatsMap={},this.profileStore=this.createStore("profiles"),this.updateHistoryStore=this.createStore("updateHistory"),this.contactsStore=this.createStore("contacts"),this.chatsStore=this.createStore("chats"),this.postsStore=this.createStore("posts"),this.myLikesStore=this.createStore("myLikes"),this.notificationsStore=this.createStore("notifications"),this.projectsStore=this.createStore("projects"),this.projectDetailsStore=this.createStore("projectDetails"),this.projectStatsStore=this.createStore("projectStatistics"),this.investorsStore=this.createStore("investors"),this.loadAllProjectsFromDB(),this.loadAllProjectDetailsFromDB(),this.loadAllProjectStatsFromDB(),this.loadAllInvestorsFromDB(),this.loadAllContactsFromDB(),this.loadAllChatEventsFromDB(),this.loadAllMyLikesFromDB(),this.loadAllNotificationsFromDB(),this.calculateAndStoreAllContactStats()}createStore(A){return c().createInstance({driver:c().INDEXEDDB,name:"angor-hub",version:1,storeName:A})}get profile$(){return this.profileSubject.asObservable()}get projects$(){return this.projectsSubject.asObservable()}get projectStats$(){return this.projectStatsSubject.asObservable()}get chatEvents$(){return this.chatEventsSubject.asObservable()}get unreadChatCount$(){return this.unreadChatCountSubject.asObservable()}get contacts$(){return this.contactsSubject.asObservable()}get posts$(){return this.postsSubject.asObservable()}get contactStats$(){return this.contactStatsSubject.asObservable()}get myLikes$(){return this.myLikesSubject.asObservable()}get notifications$(){return this.notificationsSubject.asObservable()}get investors$(){return this.investorsSubject.asObservable()}get projectDetails$(){return this.projectDetailsSubject.asObservable()}saveInvestor(A){var I=this;return(0,i.A)(function*(){try{const N=`${A.projectIdentifier}-${A.investorPublicKey}`;yield I.investorsStore.setItem(N,A);const Z=[...I.investorsSubject.value.filter(ne=>ne.projectIdentifier!==A.projectIdentifier||ne.investorPublicKey!==A.investorPublicKey),A];I.investorsSubject.next(Z),console.log("Investor saved successfully:",A)}catch(N){console.error("Error saving investor:",N)}})()}getInvestor(A,I){var N=this;return(0,i.A)(function*(){try{const G=`${A}-${I}`;return(yield N.investorsStore.getItem(G))||null}catch(G){return console.error("Error retrieving investor:",G),null}})()}getAllInvestors(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.investorsStore.iterate(N=>{I.push(N)}),console.log("Retrieved all investors:",I),I}catch(I){return console.error("Error retrieving all investors:",I),[]}})()}saveProjectDetails(A){var I=this;return(0,i.A)(function*(){try{const N=A.projectIdentifier;yield I.projectDetailsStore.setItem(N,A);const Z=[...I.projectDetailsSubject.value.filter(ne=>ne.projectIdentifier!==A.projectIdentifier),A];I.projectDetailsSubject.next(Z),console.log("Project details saved successfully:",A)}catch(N){console.error("Error saving project details:",N)}})()}getProjectDetails(A){var I=this;return(0,i.A)(function*(){try{return(yield I.projectDetailsStore.getItem(A))||null}catch(N){return console.error("Error retrieving project details:",N),null}})()}getAllProjectDetails(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.projectDetailsStore.iterate(N=>{I.push(N)}),console.log("Retrieved all project details:",I),I}catch(I){return console.error("Error retrieving all project details:",I),[]}})()}saveContacts(A,I){var N=this;return(0,i.A)(function*(){try{const G=[];for(const Z of I){const ne=`${A}:${Z.id}`;yield N.contactsStore.setItem(ne,Z),G.push(Z)}N.contactsSubject.next({pubKey:A,contacts:G}),yield N.calculateAndStoreAllContactStats(),yield N.setUpdateHistory("contacts")}catch(G){console.error("Error saving contacts:",G)}})()}calculateAndStoreAllContactStats(){var A=this;return(0,i.A)(function*(){try{const I={};yield A.contactsStore.iterate((N,G)=>{const[Z]=G.split(":");I[Z]||(I[Z]={totalContacts:0,followersCount:0,followingCount:0}),I[Z].totalContacts++,N.isFollower?I[Z].followersCount++:I[Z].followingCount++});for(const N in I)A.contactStatsMap[N]||(A.contactStatsMap[N]=new y.t({pubKey:N,totalContacts:0,followersCount:0,followingCount:0})),A.contactStatsMap[N].next({pubKey:N,totalContacts:I[N].totalContacts,followersCount:I[N].followersCount,followingCount:I[N].followingCount})}catch(I){console.error("Error calculating and storing contact stats:",I)}})()}getContactStats$(A){return this.contactStatsMap[A]||(this.contactStatsMap[A]=new y.t({pubKey:A,totalContacts:0,followersCount:0,followingCount:0}),this.calculateAndStoreAllContactStats()),this.contactStatsMap[A].asObservable()}getAllContactsPaginated(A,I,N){var G=this;return(0,i.A)(function*(){try{const Z=[];yield G.contactsStore.iterate((pe,Te)=>{const[xe]=Te.split(":");xe===A&&Z.push(pe)});const ne=Z.length,be=(I-1)*N;return{contacts:Z.slice(be,be+N),totalCount:ne}}catch(Z){return console.error("Error retrieving paginated contacts for pubKey:",Z),{contacts:[],totalCount:0}}})()}getAllContacts(A=""){var I=this;return(0,i.A)(function*(){try{const N=[];return yield I.contactsStore.iterate((G,Z)=>{const[ne,be]=Z.split(":");(""===A||ne===A)&&N.push({pubKey:ne,contact:G})}),N}catch(N){return console.error("Error retrieving contacts:",N),[]}})()}getContactStats(A){var I=this;return(0,i.A)(function*(){try{let N=0,G=0,Z=0;return yield I.contactsStore.iterate((ne,be)=>{const[me,pe]=be.split(":");me===A&&(N++,ne.isFollower?G++:Z++)}),{totalContacts:N,followersCount:G,followingCount:Z}}catch(N){return console.error("Error retrieving contact stats for pubKey:",N),{totalContacts:0,followersCount:0,followingCount:0}}})()}removeAllContacts(A){var I=this;return(0,i.A)(function*(){try{const N=[];yield I.contactsStore.iterate((G,Z)=>{const[ne]=Z.split(":");ne===A&&N.push(Z)});for(const G of N)yield I.contactsStore.removeItem(G);yield I.contactsStore.clear(),I.contactStatsSubject.next({totalContacts:0,followersCount:0,followingCount:0}),I.contactsSubject.next({pubKey:A,contacts:[]}),yield I.setUpdateHistory("contacts")}catch(N){console.error("Error removing all contacts for pubKey:",N)}})()}saveProfile(A,I){var N=this;return(0,i.A)(function*(){try{if(!A||!I)return void console.error("Invalid pubKey or metadata:",A,I);I.pubKey=A,yield N.profileStore.setItem(A,I),N.profileSubject.next({pubKey:A,metadata:I}),yield N.setUpdateHistory("profiles")}catch(G){console.error("Error saving profile",G)}})()}getProfile(A){var I=this;return(0,i.A)(function*(){try{return(yield I.profileStore.getItem(A))||null}catch(N){return console.error("Error retrieving profile metadata:",N),null}})()}getAllProfiles(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.profileStore.iterate(N=>{I.push(N)}),I}catch(I){return console.error("Error retrieving all Profile:",I),[]}})()}searchProfile(A){var I=this;return(0,i.A)(function*(){try{const N=[],G=A.toLowerCase();return yield I.profileStore.iterate((Z,ne)=>{JSON.stringify(Z).toLowerCase().includes(G)&&N.push({pubKey:ne,profile:Z})}),N}catch(N){return console.error("Error searching profiles by metadata:",N),[]}})()}getLastUpdateDate(A){var I=this;return(0,i.A)(function*(){try{return(yield I.updateHistoryStore.getItem(A))||null}catch(N){return console.error("Error retrieving last update date:",N),null}})()}saveProject(A){var I=this;return(0,i.A)(function*(){try{yield I.projectsStore.setItem(A.projectIdentifier,A);const N=yield I.getAllProjects();I.projectsSubject.next(N),yield I.setUpdateHistory("projects")}catch(N){console.error("Error saving project:",N)}})()}getProjectsByNostrPubKeys(A){var I=this;return(0,i.A)(function*(){if(!A||0===A.length)return[];const N=[],G=yield I.projectDetailsStore.keys();for(const Z of G){const ne=yield I.projectDetailsStore.getItem(Z);ne&&A.includes(ne.nostrPubKey)&&N.push(ne)}return N})()}getAllProjects(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.projectsStore.iterate(N=>{I.push(N)}),I}catch(I){return console.error("Error retrieving all projects:",I),[]}})()}getProjectStats(A){var I=this;return(0,i.A)(function*(){try{return(yield I.projectStatsStore.getItem(A))||null}catch(N){return console.error("Error retrieving project stats:",N),null}})()}saveProjectStats(A,I){var N=this;return(0,i.A)(function*(){try{yield N.projectStatsStore.setItem(A,I);const G=yield N.getAllProjectStats();N.projectStatsSubject.next(G),yield N.setUpdateHistory("projectStats")}catch(G){console.error("Error saving project stats:",G)}})()}getAllProjectStats(){var A=this;return(0,i.A)(function*(){try{const I={};return yield A.projectStatsStore.iterate((N,G)=>{I[G]=N}),I}catch(I){return console.error("Error retrieving all project stats:",I),{}}})()}savePost(A){var I=this;return(0,i.A)(function*(){try{yield I.postsStore.setItem(A.id,A),yield I.setUpdateHistory("posts"),I.postsSubject.next(A)}catch(N){console.error("Error saving event type 1 and sending it to clients:",N)}})()}getPostsByPubKey(A){var I=this;return(0,i.A)(function*(){try{const N=[];return yield I.postsStore.iterate(G=>{G.pubkey===A&&1===G.kind&&N.push(G)}),N.sort((G,Z)=>Z.createdAt-G.createdAt)}catch(N){return console.error("Error retrieving events for pubKey:",N),[]}})()}getPostById(A){var I=this;return(0,i.A)(function*(){try{let N=null;return yield I.postsStore.iterate(G=>{if(G.id===A&&1===G.kind)return N=G,N}),N}catch(N){return console.error("Error retrieving post by ID:",N),null}})()}getAllPostsWithPagination(A,I=10){var N=this;return(0,i.A)(function*(){try{const G=[],Z=(A-1)*I;return yield N.postsStore.iterate(ne=>{1===ne.kind&&G.push(ne)}),G.sort((ne,be)=>be.created_at-ne.created_at).slice(Z,Z+I)}catch(G){return console.error("Error retrieving all posts with pagination:",G),[]}})()}getPostsByPubKeysWithPagination(A,I,N=10){var G=this;return(0,i.A)(function*(){try{const Z=[],ne=(I-1)*N;return yield G.postsStore.iterate(be=>{A.includes(be.pubkey)&&1===be.kind&&Z.push(be)}),Z.sort((be,me)=>me.created_at-be.created_at).slice(ne,ne+N)}catch(Z){return console.error("Error retrieving events for pubKeys with pagination:",Z),[]}})()}saveLike(A){var I=this;return(0,i.A)(function*(){try{yield I.myLikesStore.setItem(A.id,A);const N=yield I.getAllMyLikes();I.myLikesSubject.next(N),yield I.setUpdateHistory("myLikes")}catch(N){console.error("Error saving like:",N)}})()}getAllMyLikes(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.myLikesStore.iterate(N=>{try{const G=N.tags.find(Z=>"e"===Z[0]);G&&I.push(G[1])}catch(G){console.warn("Error parsing like:",N,G)}}),I}catch(I){return console.error("Error retrieving all likes:",I),[]}})()}saveNotification(A){var I=this;return(0,i.A)(function*(){try{yield I.notificationsStore.setItem(A.id,A);const N=yield I.getAllNotifications();I.notificationsSubject.next(N),yield I.setUpdateHistory("notifications")}catch(N){console.error("Error saving notification:",N)}})()}getAllNotifications(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.notificationsStore.iterate(N=>{I.push(N)}),I}catch(I){return console.error("Error retrieving all notifications:",I),[]}})()}saveChatEvent(A){var I=this;return(0,i.A)(function*(){try{yield I.chatsStore.setItem(A.id,A),yield I.setUpdateHistory("chats");const N=yield I.getAllChatEvents();I.chatEventsSubject.next(N),I.updateUnreadChatCount(N)}catch(N){console.error("Error saving chat event:",N)}})()}getAllChatEvents(){var A=this;return(0,i.A)(function*(){try{const I=[];return yield A.chatsStore.iterate(N=>{I.push(N)}),I}catch(I){return console.error("Error retrieving all chat events:",I),[]}})()}getChatEventsByPubKey(A){var I=this;return(0,i.A)(function*(){try{const N=[];return yield I.chatsStore.iterate(G=>{const Z=I.getReceiverPubKeyFromTags(G.tags);(G.pubkey===A||Z===A)&&N.push(G)}),N}catch(N){return console.error("Error retrieving chat events by pubkey:",N),[]}})()}updateChatEventReadStatus(A,I){var N=this;return(0,i.A)(function*(){try{const G=yield N.chatsStore.getItem(A);if(G){G.IsRead=I,yield N.chatsStore.setItem(A,G);const Z=yield N.getAllChatEvents();N.chatEventsSubject.next(Z),N.updateUnreadChatCount(Z)}}catch(G){console.error("Error updating chat event read status:",G)}})()}markAllChatEventsAsRead(A){var I=this;return(0,i.A)(function*(){try{yield I.chatsStore.iterate(function(){var G=(0,i.A)(function*(Z,ne){const be=I.getReceiverPubKeyFromTags(Z.tags);(Z.pubkey===A||be===A)&&!Z.IsRead&&(Z.IsRead=!0,yield I.chatsStore.setItem(ne,Z))});return function(Z,ne){return G.apply(this,arguments)}}());const N=yield I.getAllChatEvents();I.chatEventsSubject.next(N),I.updateUnreadChatCount(N)}catch(N){console.error("Error marking all chat events as read:",N)}})()}getReceiverPubKeyFromTags(A){for(const I of A)if("p"===I[0]&&I[1])return I[1];return null}updateUnreadChatCount(A){const I=A.filter(N=>!N.IsRead).length;this.unreadChatCountSubject.next(I)}removeAllChats(){var A=this;return(0,i.A)(function*(){try{yield A.chatsStore.clear(),A.chatEventsSubject.next([]),A.unreadChatCountSubject.next(0),console.log("All chat events have been removed successfully.")}catch(I){console.error("Error removing all chat events:",I)}})()}setUpdateHistory(A){var I=this;return(0,i.A)(function*(){try{const N=Math.floor(Date.now()/1e3);yield I.updateHistoryStore.setItem(A,N)}catch(N){console.error("Error updating history:",N)}})()}loadAllProjectsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllProjects();A.projectsSubject.next(I)}catch(I){console.error("Error loading projects from DB:",I)}})()}loadAllProjectStatsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllProjectStats();A.projectStatsSubject.next(I)}catch(I){console.error("Error loading project stats from DB:",I)}})()}loadAllContactsFromDB(A=""){var I=this;return(0,i.A)(function*(){try{const N=yield I.getAllContacts(A);if(N.length>0){const G={};for(const Z of N)G[Z.pubKey]||(G[Z.pubKey]=[]),G[Z.pubKey].push(Z.contact);for(const Z in G)I.contactsSubject.next({pubKey:Z,contacts:G[Z]})}}catch(N){console.error("Error loading contacts from DB:",N)}})()}loadAllChatEventsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllChatEvents();A.chatEventsSubject.next(I)}catch(I){console.error("Error loading chat events from DB:",I)}})()}loadPostsFromDB(A,I=10,N=0){var G=this;return(0,i.A)(function*(){try{const Z=[];return yield G.postsStore.iterate(ne=>{A.includes(ne.pubkey)&&Z.push(ne)}),Z.sort((ne,be)=>be.created_at-ne.created_at).slice(N,N+I)}catch(Z){return console.error("Error retrieving events from DB:",Z),[]}})()}loadPosts(A,I){var N=this;return(0,i.A)(function*(){const Z=10*(I-1),ne=yield N.loadPostsFromDB(A,10,Z);ne.length>0&&ne.forEach(be=>{N.postsSubject.next(be)})})()}loadAllMyLikesFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllMyLikes();A.myLikesSubject.next(I)}catch(I){console.error("Error loading likes from DB:",I)}})()}loadAllNotificationsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=yield A.getAllNotifications();A.notificationsSubject.next(I)}catch(I){console.error("Error loading notifications from DB:",I)}})()}loadContactStatsFromDB(){var A=this;return(0,i.A)(function*(){try{let I=0,N=0,G=0;yield A.contactsStore.iterate((Z,ne)=>{const[be]=ne.split(":");I++,Z.isFollower?N++:G++}),A.contactStatsSubject.next({totalContacts:I,followersCount:N,followingCount:G})}catch(I){console.error("Error loading contact stats from DB:",I)}})()}loadAllInvestorsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=[];yield A.investorsStore.iterate(N=>{I.push(N)}),console.log("Loaded Investors:",I),A.investorsSubject.next(I)}catch(I){console.error("Error loading investors from DB:",I)}})()}loadAllProjectDetailsFromDB(){var A=this;return(0,i.A)(function*(){try{const I=[];yield A.projectDetailsStore.iterate(N=>{I.push(N)}),console.log("Loaded Project Details:",I),A.projectDetailsSubject.next(I)}catch(I){console.error("Error loading project details from DB:",I)}})()}static{this.\u0275fac=function(I){return new(I||T)}}static{this.\u0275prov=w.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},5645:(o,s,r)=>{"use strict";r.d(s,{n:()=>me});var a,i=r(4412),c=new Uint8Array(16);function y(){if(!a&&!(a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(c)}const w=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var S=[],A=0;A<256;++A)S.push((A+256).toString(16).substr(1));const N=function I(pe){var Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,xe=(S[pe[Te+0]]+S[pe[Te+1]]+S[pe[Te+2]]+S[pe[Te+3]]+"-"+S[pe[Te+4]]+S[pe[Te+5]]+"-"+S[pe[Te+6]]+S[pe[Te+7]]+"-"+S[pe[Te+8]]+S[pe[Te+9]]+"-"+S[pe[Te+10]]+S[pe[Te+11]]+S[pe[Te+12]]+S[pe[Te+13]]+S[pe[Te+14]]+S[pe[Te+15]]).toLowerCase();if(!function C(pe){return"string"==typeof pe&&w.test(pe)}(xe))throw TypeError("Stringified UUID is invalid");return xe},Z=function G(pe,Te,xe){var Re=(pe=pe||{}).random||(pe.rng||y)();if(Re[6]=15&Re[6]|64,Re[8]=63&Re[8]|128,Te){xe=xe||0;for(var Me=0;Me<16;++Me)Te[xe+Me]=Re[Me];return Te}return N(Re)};var ne=r(4438),be=r(6231);let me=(()=>{class pe{constructor(xe){this.relayService=xe,this.subscriptions=new Map,this.activeRelays=[],this.pendingSubscriptions=new Map,this.subscriptionsSubject=new i.t(new Map),this.subscriptions$=this.subscriptionsSubject.asObservable(),this.subscriptionQueue=[],this.isProcessingQueue=!1,this.queueInterval=1e3,this.maxSubscriptionsPerBatch=5,this.debounceInterval=1e3,this.lastActionTimestamp=new Map,this.connectToAllRelays(),this.processSubscriptionQueue()}addSubscriptions(xe,Re,Me){const Ce=this.findExistingSubscription(xe);if(Ce)return Ce.callbacks.push(Re),Ce.id;const le=Z();this.lastActionTimestamp.set(le,Date.now());const ae={filter:xe,callbacks:[Re],id:le};return this.subscriptions.set(ae.id,ae),this.subscriptionsSubject.next(this.subscriptions),this.addToQueue(ae),ae.id}findExistingSubscription(xe){return Array.from(this.subscriptions.values()).find(Re=>JSON.stringify(Re.filter)===JSON.stringify(xe))}removeSubscriptionById(xe){const Re=Date.now(),Me=this.lastActionTimestamp.get(xe);Me&&Re-Me{this.subscriptionQueue.length>0&&this.subscriptionQueue.splice(0,this.maxSubscriptionsPerBatch).forEach(Me=>this.subscribeToRelays(Me.filter,Me))},this.queueInterval))}subscribeToRelays(xe,Re){0!==this.activeRelays.length?this.relayService.ensureConnectedRelays().then(()=>{const Me=this.relayService.getConnectedRelays();this.relayService.getPool().subscribeMany(Me,xe,{onevent:Ce=>{Re.callbacks.forEach(le=>le(Ce))},onclose:()=>console.log("Subscription closed")})}).catch(Me=>{console.error("Error subscribing to relays:",Me)}):this.pendingSubscriptions.set(Re.id,Re)}subscribeToAllRelays(){this.pendingSubscriptions.forEach(xe=>{this.subscribeToRelays(xe.filter,xe)}),this.pendingSubscriptions.clear()}connectToAllRelays(){this.relayService.ensureConnectedRelays().then(()=>{this.activeRelays=this.relayService.getConnectedRelays(),this.subscribeToAllRelays()}).catch(xe=>{console.error("Error connecting to relays:",xe)})}clearAllSubscriptions(){this.subscriptions.clear(),this.pendingSubscriptions.clear(),this.subscriptionsSubject.next(new Map)}getSubscriptions(){return Array.from(this.subscriptions.values())}static{this.\u0275fac=function(Re){return new(Re||pe)(ne.KVO(be.b))}}static{this.\u0275prov=ne.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}}return pe})()},7292:(o,s,r)=>{"use strict";r.d(s,{b:()=>Z});var i=r(177),a=r(9417),c=r(8834),y=r(3),w=r(5351),C=r(2408),T=r(9213),S=r(9042),A=r(7250),I=r(882),N=r(4438);function G(ne,be){1&ne&&(N.j41(0,"mat-error"),N.EFF(1," Password is required "),N.k0s())}let Z=(()=>{class ne{constructor(me,pe,Te){this.fb=me,this.dialogRef=pe,this.data=Te,this.passwordForm=this.fb.group({password:["",a.k0.required],duration:["0",a.k0.required]})}onCancel(){this.dialogRef.close()}onSubmit(){this.dialogRef.close(this.passwordForm.value)}static{this.\u0275fac=function(pe){return new(pe||ne)(N.rXU(a.ok),N.rXU(w.CP),N.rXU(w.Vh))}}static{this.\u0275cmp=N.VBU({type:ne,selectors:[["password-dialog"]],decls:30,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"formGroup"],[1,"w-full",3,"subscriptSizing"],["matPrefix",""],["matInput","","type","password",3,"formControlName"],[4,"ngIf"],[1,"mt-5","w-full"],["formControlName","duration"],["value","0"],["value","1"],["value","5"],["value","10"],["value","60"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(pe,Te){1&pe&&(N.j41(0,"h1",0),N.EFF(1,"Enter Password"),N.k0s(),N.j41(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),N.EFF(6,"Password"),N.k0s(),N.j41(7,"mat-icon",4),N.EFF(8,"lock"),N.k0s(),N.nrm(9,"input",5),N.DNE(10,G,2,0,"mat-error",6),N.k0s(),N.j41(11,"mat-form-field",7)(12,"mat-label"),N.EFF(13,"Duration"),N.k0s(),N.j41(14,"mat-select",8)(15,"mat-option",9),N.EFF(16,"0 Minute"),N.k0s(),N.j41(17,"mat-option",10),N.EFF(18,"1 Minute"),N.k0s(),N.j41(19,"mat-option",11),N.EFF(20,"5 Minutes"),N.k0s(),N.j41(21,"mat-option",12),N.EFF(22,"10 Minutes"),N.k0s(),N.j41(23,"mat-option",13),N.EFF(24,"1 Hour"),N.k0s()()()()(),N.j41(25,"div",14)(26,"button",15),N.bIt("click",function(){return Te.onCancel()}),N.EFF(27,"Cancel"),N.k0s(),N.j41(28,"button",16),N.bIt("click",function(){return Te.onSubmit()}),N.EFF(29," Submit "),N.k0s()()),2&pe&&(N.R7$(3),N.Y8G("formGroup",Te.passwordForm),N.R7$(),N.Y8G("subscriptSizing","dynamic"),N.R7$(5),N.Y8G("formControlName","password"),N.R7$(),N.Y8G("ngIf",Te.passwordForm.get("password").hasError("required")),N.R7$(18),N.Y8G("disabled",Te.passwordForm.invalid))},dependencies:[I.vg,c.Hl,c.$z,T.m_,T.An,a.YN,a.qT,a.me,a.BC,a.cb,y.wT,C.nJ,C.rl,a.X1,a.j4,a.JD,i.MD,i.bT,A.Ve,C.TL,C.JW,A.VO,C.RG,S.fS,S.fg],styles:[".full-width[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}}return ne})()},4626:(o,s,r)=>{"use strict";var i=r(345),a=r(5245),c=r(4438);let y=(()=>{class _{constructor(){}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["app-root"]],decls:1,vars:0,template:function(v,D){1&v&&c.nrm(0,"router-outlet")},dependencies:[a.n3],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto;width:100%;height:100%}"]})}}return _})();var w=r(467);const C=new c.nKC("ANGOR_MOCK_API_DEFAULT_DELAY");var T=r(8810),S=r(1985),A=r(6697),I=r(7673);class N{constructor(m,d){this.url=m,this.delay=d,this._replyCount=0,this._replied=0}get response(){if(this._replyCount>0&&this._replyCount<=this._replied)return(0,T.$)(()=>new Error("Execution limit has been reached!"));if(!this._reply)return(0,T.$)(()=>new Error("Response callback function does not exist!"));if(!this.request)return(0,T.$)(()=>new Error("Request does not exist!"));this._replied++;const m=this._reply({request:this.request,urlParams:this.urlParams});return m instanceof S.c?m.pipe((0,A.s)(1)):(0,I.of)(m).pipe((0,A.s)(1))}reply(m){this._reply=m}replyCount(m){this._replyCount=m}}var G=r(7680);let Z=(()=>{class _{constructor(){this._handlers={get:new Map,post:new Map,patch:new Map,delete:new Map,put:new Map,head:new Map,jsonp:new Map,options:new Map}}findHandler(d,v){const D={handler:void 0,urlParams:{}},W=v.split("/"),te=this._handlers[d.toLowerCase()];for(const[we,Ye]of te){const yt=we.split("/");if(W.length===yt.length&&yt.every((pn,Er)=>pn.startsWith(":")||pn===W[Er])){D.handler=Ye,D.urlParams=(0,G.A)(yt.map((pn,Er)=>pn.startsWith(":")?[pn.substring(1),W[Er]]:void 0).filter(Boolean));break}}return D}onGet(d,v){return this._registerHandler("get",d,v)}onPost(d,v){return this._registerHandler("post",d,v)}onPatch(d,v){return this._registerHandler("patch",d,v)}onDelete(d,v){return this._registerHandler("delete",d,v)}onPut(d,v){return this._registerHandler("put",d,v)}onHead(d,v){return this._registerHandler("head",d,v)}onJsonp(d,v){return this._registerHandler("jsonp",d,v)}onOptions(d,v){return this._registerHandler("options",d,v)}_registerHandler(d,v,D){const W=new N(v,D);return this._handlers[d].set(v,W),W}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var ne=r(1626),be=r(1986),me=r(5558);const pe=(_,m)=>{const d=(0,c.WQX)(C),v=(0,c.WQX)(Z),{handler:D,urlParams:W}=v.findHandler(_.method.toUpperCase(),_.url);return D?(D.request=_,D.urlParams=W,D.response.pipe((0,be.c)(D.delay??d??0),(0,me.n)(te=>{if(!te)return(0,T.$)(()=>new ne.yz({error:"NOT FOUND",status:404,statusText:"NOT FOUND"}));const we={status:te[0],body:te[1]};return we.status>=200&&we.status<300?(0,I.of)(new ne.cS({body:we.body,status:we.status,statusText:"OK"})):(0,T.$)(()=>new ne.yz({error:we.body?.error,status:we.status,statusText:"ERROR"}))}))):m(_)};var Te=r(9097),xe=r(9979),Re=r(4412);let Me=(()=>{class _{constructor(){this._auto$=new Re.t(!0),this._mode$=new Re.t("indeterminate"),this._progress$=new Re.t(0),this._show$=new Re.t(!1),this._urlMap=new Map}get auto$(){return this._auto$.asObservable()}get mode$(){return this._mode$.asObservable()}get progress$(){return this._progress$.asObservable()}get show$(){return this._show$.asObservable()}show(){this._show$.next(!0)}hide(){this._show$.next(!1)}setAutoMode(d){this._auto$.next(d)}setMode(d){this._mode$.next(d)}setProgress(d){d<0||d>100?console.error("Progress value must be between 0 and 100!"):this._progress$.next(d)}_setLoadingStatus(d,v){v?(!0===d?(this._urlMap.set(v,d),this._show$.next(!0)):!1===d&&this._urlMap.has(v)&&this._urlMap.delete(v),0===this._urlMap.size&&this._show$.next(!1)):console.error("The request URL must be provided!")}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var Ce=r(980);const le=(_,m)=>{const d=(0,c.WQX)(Me);let v=!1;return d.auto$.pipe((0,A.s)(1)).subscribe(D=>{v=D}),v?(d._setLoadingStatus(!0,_.url),m(_).pipe((0,Ce.j)(()=>{d._setLoadingStatus(!1,_.url)}))):m(_)};var ae=r(4977),Ie=r(6860);let $e=(()=>{class _{constructor(){this._platform=(0,c.WQX)(Ie.OD),this.osName="os-unknown",this._platform.isBrowser&&(navigator.userAgent.includes("Win")&&(this.osName="os-windows"),navigator.userAgent.includes("Mac")&&(this.osName="os-mac"),navigator.userAgent.includes("X11")&&(this.osName="os-unix"),navigator.userAgent.includes("Linux")&&(this.osName="os-linux"),this._platform.IOS&&(this.osName="os-ios"),this._platform.ANDROID&&(this.osName="os-android"))}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var st=r(177),ht=r(5964);let vt=(()=>{class _{constructor(){this._document=(0,c.WQX)(st.qQ),this._router=(0,c.WQX)(a.Ix),this._router.events.pipe((0,ht.p)(d=>d instanceof a.wF),(0,A.s)(1)).subscribe(()=>{this.hide()})}show(){this._document.body.classList.remove("angor-splash-screen-hidden")}hide(){this._document.body.classList.add("angor-splash-screen-hidden")}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var at=r(7209),Xt=r(3),ln=r(5351),yn=r(2408);class bn extends Error{}class Qe extends bn{constructor(m){super(`Invalid DateTime: ${m.toMessage()}`)}}class bt extends bn{constructor(m){super(`Invalid Interval: ${m.toMessage()}`)}}class ze extends bn{constructor(m){super(`Invalid Duration: ${m.toMessage()}`)}}class Fe extends bn{}class Ft extends bn{constructor(m){super(`Invalid unit ${m}`)}}class Ke extends bn{}class dt extends bn{constructor(){super("Zone is an abstract class")}}const Ge="numeric",He="short",mt="long",se={year:Ge,month:Ge,day:Ge},Ze={year:Ge,month:He,day:Ge},Rt={year:Ge,month:He,day:Ge,weekday:He},Jt={year:Ge,month:mt,day:Ge},fn={year:Ge,month:mt,day:Ge,weekday:mt},Gn={hour:Ge,minute:Ge},Nt={hour:Ge,minute:Ge,second:Ge},Qt={hour:Ge,minute:Ge,second:Ge,timeZoneName:He},an={hour:Ge,minute:Ge,second:Ge,timeZoneName:mt},Xn={hour:Ge,minute:Ge,hourCycle:"h23"},En={hour:Ge,minute:Ge,second:Ge,hourCycle:"h23"},Gt={hour:Ge,minute:Ge,second:Ge,hourCycle:"h23",timeZoneName:He},At={hour:Ge,minute:Ge,second:Ge,hourCycle:"h23",timeZoneName:mt},Kt={year:Ge,month:Ge,day:Ge,hour:Ge,minute:Ge},xn={year:Ge,month:Ge,day:Ge,hour:Ge,minute:Ge,second:Ge},Yn={year:Ge,month:He,day:Ge,hour:Ge,minute:Ge},tt={year:Ge,month:He,day:Ge,hour:Ge,minute:Ge,second:Ge},ke={year:Ge,month:He,day:Ge,weekday:He,hour:Ge,minute:Ge},B={year:Ge,month:mt,day:Ge,hour:Ge,minute:Ge,timeZoneName:He},k={year:Ge,month:mt,day:Ge,hour:Ge,minute:Ge,second:Ge,timeZoneName:He},j={year:Ge,month:mt,day:Ge,weekday:mt,hour:Ge,minute:Ge,timeZoneName:mt},De={year:Ge,month:mt,day:Ge,weekday:mt,hour:Ge,minute:Ge,second:Ge,timeZoneName:mt};class it{get type(){throw new dt}get name(){throw new dt}get ianaName(){return this.name}get isUniversal(){throw new dt}offsetName(m,d){throw new dt}formatOffset(m,d){throw new dt}offset(m){throw new dt}equals(m){throw new dt}get isValid(){throw new dt}}let ot=null;class Tt extends it{static get instance(){return null===ot&&(ot=new Tt),ot}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(m,{format:d,locale:v}){return Eo(m,d,v)}formatOffset(m,d){return va(this.offset(m),d)}offset(m){return-new Date(m).getTimezoneOffset()}equals(m){return"system"===m.type}get isValid(){return!0}}let In={};const dn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Bn={};class cr extends it{static create(m){return Bn[m]||(Bn[m]=new cr(m)),Bn[m]}static resetCache(){Bn={},In={}}static isValidSpecifier(m){return this.isValidZone(m)}static isValidZone(m){if(!m)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:m}).format(),!0}catch{return!1}}constructor(m){super(),this.zoneName=m,this.valid=cr.isValidZone(m)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(m,{format:d,locale:v}){return Eo(m,d,v,this.name)}formatOffset(m,d){return va(this.offset(m),d)}offset(m){const d=new Date(m);if(isNaN(d))return NaN;const v=function Vt(_){return In[_]||(In[_]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:_,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),In[_]}(this.name);let[D,W,te,we,Ye,yt,sn]=v.formatToParts?function Fn(_,m){const d=_.formatToParts(m),v=[];for(let D=0;D=0?_r:1e3+_r,(Es({year:D,month:W,day:te,hour:24===Ye?0:Ye,minute:yt,second:sn,millisecond:0})-Zn)/6e4}equals(m){return"iana"===m.type&&m.name===this.name}get isValid(){return this.valid}}let Jr={},_t={};function Bt(_,m={}){const d=JSON.stringify([_,m]);let v=_t[d];return v||(v=new Intl.DateTimeFormat(_,m),_t[d]=v),v}let Ee={},Pe={},ft=null,mn={};function rn(_,m,d,v){const D=_.listingMode();return"error"===D?null:"en"===D?d(m):v(m)}class qe{constructor(m,d,v){this.padTo=v.padTo||0,this.floor=v.floor||!1;const{padTo:D,floor:W,...te}=v;if(!d||Object.keys(te).length>0){const we={useGrouping:!1,...v};v.padTo>0&&(we.minimumIntegerDigits=v.padTo),this.inf=function lt(_,m={}){const d=JSON.stringify([_,m]);let v=Ee[d];return v||(v=new Intl.NumberFormat(_,m),Ee[d]=v),v}(m,we)}}format(m){if(this.inf){const d=this.floor?Math.floor(m):m;return this.inf.format(d)}return Ni(this.floor?Math.floor(m):rs(m,3),this.padTo)}}class Dt{constructor(m,d,v){let D;if(this.opts=v,this.originalZone=void 0,this.opts.timeZone)this.dt=m;else if("fixed"===m.zone.type){const te=m.offset/60*-1,we=te>=0?`Etc/GMT+${te}`:`Etc/GMT${te}`;0!==m.offset&&cr.create(we).valid?(D=we,this.dt=m):(D="UTC",this.dt=0===m.offset?m:m.setZone("UTC").plus({minutes:m.offset}),this.originalZone=m.zone)}else"system"===m.zone.type?this.dt=m:"iana"===m.zone.type?(this.dt=m,D=m.zone.name):(D="UTC",this.dt=m.setZone("UTC").plus({minutes:m.offset}),this.originalZone=m.zone);const W={...this.opts};W.timeZone=W.timeZone||D,this.dtf=Bt(d,W)}format(){return this.originalZone?this.formatToParts().map(({value:m})=>m).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const m=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?m.map(d=>{if("timeZoneName"===d.type){const v=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...d,value:v}}return d}):m}resolvedOptions(){return this.dtf.resolvedOptions()}}class Wt{constructor(m,d,v){this.opts={style:"long",...v},!d&&Sr()&&(this.rtf=function kt(_,m={}){const{base:d,...v}=m,D=JSON.stringify([_,v]);let W=Pe[D];return W||(W=new Intl.RelativeTimeFormat(_,m),Pe[D]=W),W}(m,v))}format(m,d){return this.rtf?this.rtf.format(m,d):function re(_,m,d="always",v=!1){const D={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},W=-1===["hours","minutes","seconds"].indexOf(_);if("auto"===d&&W){const pn="days"===_;switch(m){case 1:return pn?"tomorrow":`next ${D[_][0]}`;case-1:return pn?"yesterday":`last ${D[_][0]}`;case 0:return pn?"today":`this ${D[_][0]}`}}const te=Object.is(m,-0)||m<0,we=Math.abs(m),Ye=1===we,yt=D[_],sn=v?Ye?yt[1]:yt[2]||yt[1]:Ye?D[_][0]:_;return te?`${we} ${sn} ago`:`in ${we} ${sn}`}(d,m,this.opts.numeric,"long"!==this.opts.style)}formatToParts(m,d){return this.rtf?this.rtf.formatToParts(m,d):[]}}const Hn={firstDay:1,minimalDays:4,weekend:[6,7]};class fr{static fromOpts(m){return fr.create(m.locale,m.numberingSystem,m.outputCalendar,m.weekSettings,m.defaultToEN)}static create(m,d,v,D,W=!1){const te=m||Oe.defaultLocale,we=te||(W?"en-US":function Pt(){return ft||(ft=(new Intl.DateTimeFormat).resolvedOptions().locale,ft)}()),Ye=d||Oe.defaultNumberingSystem,yt=v||Oe.defaultOutputCalendar,sn=Xs(D)||Oe.defaultWeekSettings;return new fr(we,Ye,yt,sn,te)}static resetCache(){ft=null,_t={},Ee={},Pe={}}static fromObject({locale:m,numberingSystem:d,outputCalendar:v,weekSettings:D}={}){return fr.create(m,d,v,D)}constructor(m,d,v,D,W){const[te,we,Ye]=function Mr(_){const m=_.indexOf("-x-");-1!==m&&(_=_.substring(0,m));const d=_.indexOf("-u-");if(-1===d)return[_];{let v,D;try{v=Bt(_).resolvedOptions(),D=_}catch{const Ye=_.substring(0,d);v=Bt(Ye).resolvedOptions(),D=Ye}const{numberingSystem:W,calendar:te}=v;return[D,W,te]}}(m);this.locale=te,this.numberingSystem=d||we||null,this.outputCalendar=v||Ye||null,this.weekSettings=D,this.intl=function ii(_,m,d){return(d||m)&&(_.includes("-u-")||(_+="-u"),d&&(_+=`-ca-${d}`),m&&(_+=`-nu-${m}`)),_}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=W,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function St(_){return(!_.numberingSystem||"latn"===_.numberingSystem)&&("latn"===_.numberingSystem||!_.locale||_.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(_.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(m){return m&&0!==Object.getOwnPropertyNames(m).length?fr.create(m.locale||this.specifiedLocale,m.numberingSystem||this.numberingSystem,m.outputCalendar||this.outputCalendar,Xs(m.weekSettings)||this.weekSettings,m.defaultToEN||!1):this}redefaultToEN(m={}){return this.clone({...m,defaultToEN:!0})}redefaultToSystem(m={}){return this.clone({...m,defaultToEN:!1})}months(m,d=!1){return rn(this,m,aa,()=>{const v=d?{month:m,day:"numeric"}:{month:m},D=d?"format":"standalone";return this.monthsCache[D][m]||(this.monthsCache[D][m]=function ci(_){const m=[];for(let d=1;d<=12;d++){const v=Lr.utc(2009,d,1);m.push(_(v))}return m}(W=>this.extract(W,v,"month"))),this.monthsCache[D][m]})}weekdays(m,d=!1){return rn(this,m,Zo,()=>{const v=d?{weekday:m,year:"numeric",month:"long",day:"numeric"}:{weekday:m},D=d?"format":"standalone";return this.weekdaysCache[D][m]||(this.weekdaysCache[D][m]=function Ai(_){const m=[];for(let d=1;d<=7;d++){const v=Lr.utc(2016,11,13+d);m.push(_(v))}return m}(W=>this.extract(W,v,"weekday"))),this.weekdaysCache[D][m]})}meridiems(){return rn(this,void 0,()=>_i,()=>{if(!this.meridiemCache){const m={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Lr.utc(2016,11,13,9),Lr.utc(2016,11,13,19)].map(d=>this.extract(d,m,"dayperiod"))}return this.meridiemCache})}eras(m){return rn(this,m,bl,()=>{const d={era:m};return this.eraCache[m]||(this.eraCache[m]=[Lr.utc(-40,1,1),Lr.utc(2017,1,1)].map(v=>this.extract(v,d,"era"))),this.eraCache[m]})}extract(m,d,v){const te=this.dtFormatter(m,d).formatToParts().find(we=>we.type.toLowerCase()===v);return te?te.value:null}numberFormatter(m={}){return new qe(this.intl,m.forceSimple||this.fastNumbers,m)}dtFormatter(m,d={}){return new Dt(m,this.intl,d)}relFormatter(m={}){return new Wt(this.intl,this.isEnglish(),m)}listFormatter(m={}){return function Xr(_,m={}){const d=JSON.stringify([_,m]);let v=Jr[d];return v||(v=new Intl.ListFormat(_,m),Jr[d]=v),v}(this.intl,m)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:oa()?function or(_){let m=mn[_];if(!m){const d=new Intl.Locale(_);m="getWeekInfo"in d?d.getWeekInfo():d.weekInfo,mn[_]=m}return m}(this.locale):Hn}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(m){return this.locale===m.locale&&this.numberingSystem===m.numberingSystem&&this.outputCalendar===m.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let uo=null;class Oi extends it{static get utcInstance(){return null===uo&&(uo=new Oi(0)),uo}static instance(m){return 0===m?Oi.utcInstance:new Oi(m)}static parseSpecifier(m){if(m){const d=m.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(d)return new Oi(os(d[1],d[2]))}return null}constructor(m){super(),this.fixed=m}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${va(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${va(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(m,d){return va(this.fixed,d)}get isUniversal(){return!0}offset(){return this.fixed}equals(m){return"fixed"===m.type&&m.fixed===this.fixed}get isValid(){return!0}}class Uo extends it{constructor(m){super(),this.zoneName=m}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function oi(_,m){if($r(_)||null===_)return m;if(_ instanceof it)return _;if(function ws(_){return"string"==typeof _}(_)){const v=_.toLowerCase();return"default"===v?m:"local"===v||"system"===v?Tt.instance:"utc"===v||"gmt"===v?Oi.utcInstance:Oi.parseSpecifier(v)||cr.create(_)}return Ki(_)?Oi.instance(_):"object"==typeof _&&"offset"in _&&"function"==typeof _.offset?_:new Uo(_)}const ts={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"},so={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]},bo=ts.hanidec.replace(/[\[|\]]/g,"").split("");let Co={};function eo({numberingSystem:_},m=""){const d=_||"latn";return Co[d]||(Co[d]={}),Co[d][m]||(Co[d][m]=new RegExp(`${ts[d]}${m}`)),Co[d][m]}let ve,oo=()=>Date.now(),Bi="system",Mo=null,Je=null,ct=null,Et=60,et=null;class Oe{static get now(){return oo}static set now(m){oo=m}static set defaultZone(m){Bi=m}static get defaultZone(){return oi(Bi,Tt.instance)}static get defaultLocale(){return Mo}static set defaultLocale(m){Mo=m}static get defaultNumberingSystem(){return Je}static set defaultNumberingSystem(m){Je=m}static get defaultOutputCalendar(){return ct}static set defaultOutputCalendar(m){ct=m}static get defaultWeekSettings(){return et}static set defaultWeekSettings(m){et=Xs(m)}static get twoDigitCutoffYear(){return Et}static set twoDigitCutoffYear(m){Et=m%100}static get throwOnInvalid(){return ve}static set throwOnInvalid(m){ve=m}static resetCaches(){fr.resetCache(),cr.resetCache(),Lr.resetCache(),function Is(){Co={}}()}}class pt{constructor(m,d){this.reason=m,this.explanation=d}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const $t=[0,31,59,90,120,151,181,212,243,273,304,334],Mt=[0,31,60,91,121,152,182,213,244,274,305,335];function un(_,m){return new pt("unit out of range",`you specified ${m} (of type ${typeof m}) as a ${_}, which is invalid`)}function Cn(_,m,d){const v=new Date(Date.UTC(_,m-1,d));_<100&&_>=0&&v.setUTCFullYear(v.getUTCFullYear()-1900);const D=v.getUTCDay();return 0===D?7:D}function Sn(_,m,d){return d+(is(_)?Mt:$t)[m-1]}function kn(_,m){const d=is(_)?Mt:$t,v=d.findIndex(W=>Wga(v,m,d)?(yt=v+1,Ye=1):yt=v,{weekYear:yt,weekNumber:Ye,weekday:we,...Yo(_)}}function sr(_,m=4,d=1){const{weekYear:v,weekNumber:D,weekday:W}=_,te=Un(Cn(v,1,m),d),we=to(v);let yt,Ye=7*D+W-te-7+m;Ye<1?(yt=v-1,Ye+=to(yt)):Ye>we?(yt=v+1,Ye-=to(v)):yt=v;const{month:sn,day:pn}=kn(yt,Ye);return{year:yt,month:sn,day:pn,...Yo(_)}}function kr(_){const{year:m,month:d,day:v}=_;return{year:m,ordinal:Sn(m,d,v),...Yo(_)}}function mr(_){const{year:m,ordinal:d}=_,{month:v,day:D}=kn(m,d);return{year:m,month:v,day:D,...Yo(_)}}function bi(_,m){if($r(_.localWeekday)&&$r(_.localWeekNumber)&&$r(_.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!$r(_.weekday)||!$r(_.weekNumber)||!$r(_.weekYear))throw new Fe("Cannot mix locale-based week fields with ISO-based week fields");return $r(_.localWeekday)||(_.weekday=_.localWeekday),$r(_.localWeekNumber)||(_.weekNumber=_.localWeekNumber),$r(_.localWeekYear)||(_.weekYear=_.localWeekYear),delete _.localWeekday,delete _.localWeekNumber,delete _.localWeekYear,{minDaysInFirstWeek:m.getMinDaysInFirstWeek(),startOfWeek:m.getStartOfWeek()}}function ai(_){const m=cs(_.year),d=Gi(_.month,1,12),v=Gi(_.day,1,Wi(_.year,_.month));return m?d?!v&&un("day",_.day):un("month",_.month):un("year",_.year)}function vo(_){const{hour:m,minute:d,second:v,millisecond:D}=_,W=Gi(m,0,23)||24===m&&0===d&&0===v&&0===D,te=Gi(d,0,59),we=Gi(v,0,59),Ye=Gi(D,0,999);return W?te?we?!Ye&&un("millisecond",D):un("second",v):un("minute",d):un("hour",m)}function $r(_){return typeof _>"u"}function Ki(_){return"number"==typeof _}function cs(_){return"number"==typeof _&&_%1==0}function Sr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function oa(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function wo(_,m,d){if(0!==_.length)return _.reduce((v,D)=>{const W=[m(D),D];return v&&d(v[0],W[0])===v[0]?v:W},null)[1]}function Ps(_,m){return Object.prototype.hasOwnProperty.call(_,m)}function Xs(_){if(null==_)return null;if("object"!=typeof _)throw new Ke("Week settings must be an object");if(!Gi(_.firstDay,1,7)||!Gi(_.minimalDays,1,7)||!Array.isArray(_.weekend)||_.weekend.some(m=>!Gi(m,1,7)))throw new Ke("Invalid week settings");return{firstDay:_.firstDay,minimalDays:_.minimalDays,weekend:Array.from(_.weekend)}}function Gi(_,m,d){return cs(_)&&_>=m&&_<=d}function Ni(_,m=2){let v;return v=_<0?"-"+(""+-_).padStart(m,"0"):(""+_).padStart(m,"0"),v}function Fs(_){if(!$r(_)&&null!==_&&""!==_)return parseInt(_,10)}function ns(_){if(!$r(_)&&null!==_&&""!==_)return parseFloat(_)}function qr(_){if(!$r(_)&&null!==_&&""!==_){const m=1e3*parseFloat("0."+_);return Math.floor(m)}}function rs(_,m,d=!1){const v=10**m;return(d?Math.trunc:Math.round)(_*v)/v}function is(_){return _%4==0&&(_%100!=0||_%400==0)}function to(_){return is(_)?366:365}function Wi(_,m){const d=function Ys(_,m){return _-m*Math.floor(_/m)}(m-1,12)+1;return 2===d?is(_+(m-d)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][d-1]}function Es(_){let m=Date.UTC(_.year,_.month-1,_.day,_.hour,_.minute,_.second,_.millisecond);return _.year<100&&_.year>=0&&(m=new Date(m),m.setUTCFullYear(_.year,_.month-1,_.day)),+m}function Io(_,m,d){return-Un(Cn(_,1,m),d)+m-1}function ga(_,m=4,d=1){const v=Io(_,m,d),D=Io(_+1,m,d);return(to(_)-v+D)/7}function tr(_){return _>99?_:_>Oe.twoDigitCutoffYear?1900+_:2e3+_}function Eo(_,m,d,v=null){const D=new Date(_),W={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};v&&(W.timeZone=v);const te={timeZoneName:m,...W},we=new Intl.DateTimeFormat(d,te).formatToParts(D).find(Ye=>"timezonename"===Ye.type.toLowerCase());return we?we.value:null}function os(_,m){let d=parseInt(_,10);Number.isNaN(d)&&(d=0);const v=parseInt(m,10)||0;return 60*d+(d<0||Object.is(d,-0)?-v:v)}function ks(_){const m=Number(_);if("boolean"==typeof _||""===_||Number.isNaN(m))throw new Ke(`Invalid unit value ${_}`);return m}function Bs(_,m){const d={};for(const v in _)if(Ps(_,v)){const D=_[v];if(null==D)continue;d[m(v)]=ks(D)}return d}function va(_,m){const d=Math.trunc(Math.abs(_/60)),v=Math.trunc(Math.abs(_%60)),D=_>=0?"+":"-";switch(m){case"short":return`${D}${Ni(d,2)}:${Ni(v,2)}`;case"narrow":return`${D}${d}${v>0?`:${v}`:""}`;case"techie":return`${D}${Ni(d,2)}${Ni(v,2)}`;default:throw new RangeError(`Value format ${m} is out of range for property format`)}}function Yo(_){return function Ls(_,m){return m.reduce((d,v)=>(d[v]=_[v],d),{})}(_,["hour","minute","second","millisecond"])}const sa=["January","February","March","April","May","June","July","August","September","October","November","December"],yl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Qo=["J","F","M","A","M","J","J","A","S","O","N","D"];function aa(_){switch(_){case"narrow":return[...Qo];case"short":return[...yl];case"long":return[...sa];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 ao=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ss=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],_o=["M","T","W","T","F","S","S"];function Zo(_){switch(_){case"narrow":return[..._o];case"short":return[...ss];case"long":return[...ao];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const _i=["AM","PM"],Fa=["Before Christ","Anno Domini"],ko=["BC","AD"],Qs=["B","A"];function bl(_){switch(_){case"narrow":return[...Qs];case"short":return[...ko];case"long":return[...Fa];default:return null}}function wt(_,m){let d="";for(const v of _)d+=v.literal?v.val:m(v.val);return d}const Ln={D:se,DD:Ze,DDD:Jt,DDDD:fn,t:Gn,tt:Nt,ttt:Qt,tttt:an,T:Xn,TT:En,TTT:Gt,TTTT:At,f:Kt,ff:Yn,fff:B,ffff:j,F:xn,FF:tt,FFF:k,FFFF:De};class hn{static create(m,d={}){return new hn(m,d)}static parseFormat(m){let d=null,v="",D=!1;const W=[];for(let te=0;te0&&W.push({literal:D||/^\s+$/.test(v),val:v}),d=null,v="",D=!D):D||we===d?v+=we:(v.length>0&&W.push({literal:/^\s+$/.test(v),val:v}),v=we,d=we)}return v.length>0&&W.push({literal:D||/^\s+$/.test(v),val:v}),W}static macroTokenToFormatOpts(m){return Ln[m]}constructor(m,d){this.opts=d,this.loc=m,this.systemLoc=null}formatWithSystemDefault(m,d){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(m,{...this.opts,...d}).format()}dtFormatter(m,d={}){return this.loc.dtFormatter(m,{...this.opts,...d})}formatDateTime(m,d){return this.dtFormatter(m,d).format()}formatDateTimeParts(m,d){return this.dtFormatter(m,d).formatToParts()}formatInterval(m,d){return this.dtFormatter(m.start,d).dtf.formatRange(m.start.toJSDate(),m.end.toJSDate())}resolvedOptions(m,d){return this.dtFormatter(m,d).resolvedOptions()}num(m,d=0){if(this.opts.forceSimple)return Ni(m,d);const v={...this.opts};return d>0&&(v.padTo=d),this.loc.numberFormatter(v).format(m)}formatDateTimeFromString(m,d){const v="en"===this.loc.listingMode(),D=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,W=(Zn,_r)=>this.loc.extract(m,Zn,_r),te=Zn=>m.isOffsetFixed&&0===m.offset&&Zn.allowZ?"Z":m.isValid?m.zone.formatOffset(m.ts,Zn.format):"",Ye=(Zn,_r)=>v?function Y(_,m){return aa(m)[_.month-1]}(m,Zn):W(_r?{month:Zn}:{month:Zn,day:"numeric"},"month"),yt=(Zn,_r)=>v?function Ya(_,m){return Zo(m)[_.weekday-1]}(m,Zn):W(_r?{weekday:Zn}:{weekday:Zn,month:"long",day:"numeric"},"weekday"),sn=Zn=>{const _r=hn.macroTokenToFormatOpts(Zn);return _r?this.formatWithSystemDefault(m,_r):Zn},pn=Zn=>v?function je(_,m){return bl(m)[_.year<0?0:1]}(m,Zn):W({era:Zn},"era");return wt(hn.parseFormat(d),Zn=>{switch(Zn){case"S":return this.num(m.millisecond);case"u":case"SSS":return this.num(m.millisecond,3);case"s":return this.num(m.second);case"ss":return this.num(m.second,2);case"uu":return this.num(Math.floor(m.millisecond/10),2);case"uuu":return this.num(Math.floor(m.millisecond/100));case"m":return this.num(m.minute);case"mm":return this.num(m.minute,2);case"h":return this.num(m.hour%12==0?12:m.hour%12);case"hh":return this.num(m.hour%12==0?12:m.hour%12,2);case"H":return this.num(m.hour);case"HH":return this.num(m.hour,2);case"Z":return te({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return te({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return te({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return m.zone.offsetName(m.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return m.zone.offsetName(m.ts,{format:"long",locale:this.loc.locale});case"z":return m.zoneName;case"a":return v?function Xa(_){return _i[_.hour<12?0:1]}(m):W({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return D?W({day:"numeric"},"day"):this.num(m.day);case"dd":return D?W({day:"2-digit"},"day"):this.num(m.day,2);case"c":case"E":return this.num(m.weekday);case"ccc":return yt("short",!0);case"cccc":return yt("long",!0);case"ccccc":return yt("narrow",!0);case"EEE":return yt("short",!1);case"EEEE":return yt("long",!1);case"EEEEE":return yt("narrow",!1);case"L":return D?W({month:"numeric",day:"numeric"},"month"):this.num(m.month);case"LL":return D?W({month:"2-digit",day:"numeric"},"month"):this.num(m.month,2);case"LLL":return Ye("short",!0);case"LLLL":return Ye("long",!0);case"LLLLL":return Ye("narrow",!0);case"M":return D?W({month:"numeric"},"month"):this.num(m.month);case"MM":return D?W({month:"2-digit"},"month"):this.num(m.month,2);case"MMM":return Ye("short",!1);case"MMMM":return Ye("long",!1);case"MMMMM":return Ye("narrow",!1);case"y":return D?W({year:"numeric"},"year"):this.num(m.year);case"yy":return D?W({year:"2-digit"},"year"):this.num(m.year.toString().slice(-2),2);case"yyyy":return D?W({year:"numeric"},"year"):this.num(m.year,4);case"yyyyyy":return D?W({year:"numeric"},"year"):this.num(m.year,6);case"G":return pn("short");case"GG":return pn("long");case"GGGGG":return pn("narrow");case"kk":return this.num(m.weekYear.toString().slice(-2),2);case"kkkk":return this.num(m.weekYear,4);case"W":return this.num(m.weekNumber);case"WW":return this.num(m.weekNumber,2);case"n":return this.num(m.localWeekNumber);case"nn":return this.num(m.localWeekNumber,2);case"ii":return this.num(m.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(m.localWeekYear,4);case"o":return this.num(m.ordinal);case"ooo":return this.num(m.ordinal,3);case"q":return this.num(m.quarter);case"qq":return this.num(m.quarter,2);case"X":return this.num(Math.floor(m.ts/1e3));case"x":return this.num(m.ts);default:return sn(Zn)}})}formatDurationFromString(m,d){const v=Ye=>{switch(Ye[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},W=hn.parseFormat(d),te=W.reduce((Ye,{literal:yt,val:sn})=>yt?Ye:Ye.concat(sn),[]);return wt(W,(Ye=>yt=>{const sn=v(yt);return sn?this.num(Ye.get(sn),yt.length):yt})(m.shiftTo(...te.map(v).filter(Ye=>Ye))))}}const ur=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function hr(..._){const m=_.reduce((d,v)=>d+v.source,"");return RegExp(`^${m}$`)}function Gr(..._){return m=>_.reduce(([d,v,D],W)=>{const[te,we,Ye]=W(m,D);return[{...d,...te},we||v,Ye]},[{},null,1]).slice(0,2)}function zi(_,...m){if(null==_)return[null,null];for(const[d,v]of m){const D=d.exec(_);if(D)return v(D)}return[null,null]}function Or(..._){return(m,d)=>{const v={};let D;for(D=0;D<_.length;D++)v[_[D]]=Fs(m[d+D]);return[v,null,d+D]}}const Dr=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,ui=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ho=RegExp(`${ui.source}(?:${Dr.source}?(?:\\[(${ur.source})\\])?)?`),lo=RegExp(`(?:T${ho.source})?`),Qa=Or("weekYear","weekNumber","weekDay"),ya=Or("year","ordinal"),ce=RegExp(`${ui.source} ?(?:${Dr.source}|(${ur.source}))?`),Q=RegExp(`(?: ${ce.source})?`);function Le(_,m,d){const v=_[m];return $r(v)?d:Fs(v)}function vr(_,m){return[{hours:Le(_,m,0),minutes:Le(_,m+1,0),seconds:Le(_,m+2,0),milliseconds:qr(_[m+3])},null,m+4]}function ni(_,m){const d=!_[m]&&!_[m+1],v=os(_[m+1],_[m+2]);return[{},d?null:Oi.instance(v),m+3]}function Do(_,m){return[{},_[m]?cr.create(_[m]):null,m+1]}const qo=RegExp(`^T?${ui.source}$`),Ba=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ku(_){const[m,d,v,D,W,te,we,Ye,yt]=_,sn="-"===m[0],pn=Ye&&"-"===Ye[0],Er=(Zn,_r=!1)=>void 0!==Zn&&(_r||Zn&&sn)?-Zn:Zn;return[{years:Er(ns(d)),months:Er(ns(v)),weeks:Er(ns(D)),days:Er(ns(W)),hours:Er(ns(te)),minutes:Er(ns(we)),seconds:Er(ns(Ye),"-0"===Ye),milliseconds:Er(qr(yt),pn)}]}const nc={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wl(_,m,d,v,D,W,te){const we={year:2===m.length?tr(Fs(m)):Fs(m),month:yl.indexOf(d)+1,day:Fs(v),hour:Fs(D),minute:Fs(W)};return te&&(we.second=Fs(te)),_&&(we.weekday=_.length>3?ao.indexOf(_)+1:ss.indexOf(_)+1),we}const us=/^(?:(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 Us(_){const[,m,d,v,D,W,te,we,Ye,yt,sn,pn]=_,Er=wl(m,D,v,d,W,te,we);let Zn;return Zn=Ye?nc[Ye]:yt?0:os(sn,pn),[Er,new Oi(Zn)]}const Lo=/^(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$/,Za=/^(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$/,El=/^(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 xl(_){const[,m,d,v,D,W,te,we]=_;return[wl(m,D,v,d,W,te,we),Oi.utcInstance]}function la(_){const[,m,d,v,D,W,te,we]=_;return[wl(m,we,d,v,D,W,te),Oi.utcInstance]}const $a=hr(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,lo),vc=hr(/(\d{4})-?W(\d\d)(?:-?(\d))?/,lo),Ou=hr(/(\d{4})-?(\d{3})/,lo),rc=hr(ho),ja=Gr(function Ut(_,m){return[{year:Le(_,m),month:Le(_,m+1,1),day:Le(_,m+2,1)},null,m+3]},vr,ni,Do),Wl=Gr(Qa,vr,ni,Do),ba=Gr(ya,vr,ni,Do),qa=Gr(vr,ni,Do),Ea=Gr(vr),_c=hr(/(\d{4})-(\d\d)-(\d\d)/,Q),al=hr(ce),Dl=Gr(vr,ni,Do),Sl="Invalid Duration",Gl={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}},xa={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},...Gl},ds=365.2425,Ui=30.436875,zn={years:{quarters:4,months:12,weeks:ds/7,days:ds,hours:24*ds,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:ds/28,days:ds/4,hours:24*ds/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:Ui/7,days:Ui,hours:24*Ui,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Gl},Ar=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],So=Ar.slice(0).reverse();function no(_,m,d=!1){const v={values:d?m.values:{..._.values,...m.values||{}},loc:_.loc.clone(m.loc),conversionAccuracy:m.conversionAccuracy||_.conversionAccuracy,matrix:m.matrix||_.matrix};return new Fr(v)}function $o(_,m){let d=m.milliseconds??0;for(const v of So.slice(1))m[v]&&(d+=m[v]*_[v].milliseconds);return d}function es(_,m){const d=$o(_,m)<0?-1:1;Ar.reduceRight((v,D)=>{if($r(m[D]))return v;if(v){const te=_[D][v],we=Math.floor(m[v]*d/te);m[D]+=we*d,m[v]-=we*te*d}return D},null),Ar.reduce((v,D)=>{if($r(m[D]))return v;if(v){const W=m[v]%1;m[v]-=W,m[D]+=W*_[v][D]}return D},null)}class Fr{constructor(m){const d="longterm"===m.conversionAccuracy||!1;let v=d?zn:xa;m.matrix&&(v=m.matrix),this.values=m.values,this.loc=m.loc||fr.create(),this.conversionAccuracy=d?"longterm":"casual",this.invalid=m.invalid||null,this.matrix=v,this.isLuxonDuration=!0}static fromMillis(m,d){return Fr.fromObject({milliseconds:m},d)}static fromObject(m,d={}){if(null==m||"object"!=typeof m)throw new Ke("Duration.fromObject: argument expected to be an object, got "+(null===m?"null":typeof m));return new Fr({values:Bs(m,Fr.normalizeUnit),loc:fr.fromObject(d),conversionAccuracy:d.conversionAccuracy,matrix:d.matrix})}static fromDurationLike(m){if(Ki(m))return Fr.fromMillis(m);if(Fr.isDuration(m))return m;if("object"==typeof m)return Fr.fromObject(m);throw new Ke(`Unknown duration argument ${m} of type ${typeof m}`)}static fromISO(m,d){const[v]=function wa(_){return zi(_,[Ba,ku])}(m);return v?Fr.fromObject(v,d):Fr.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static fromISOTime(m,d){const[v]=function Jo(_){return zi(_,[qo,Ea])}(m);return v?Fr.fromObject(v,d):Fr.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static invalid(m,d=null){if(!m)throw new Ke("need to specify a reason the Duration is invalid");const v=m instanceof pt?m:new pt(m,d);if(Oe.throwOnInvalid)throw new ze(v);return new Fr({invalid:v})}static normalizeUnit(m){const d={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[m&&m.toLowerCase()];if(!d)throw new Ft(m);return d}static isDuration(m){return m&&m.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(m,d={}){const v={...d,floor:!1!==d.round&&!1!==d.floor};return this.isValid?hn.create(this.loc,v).formatDurationFromString(this,m):Sl}toHuman(m={}){if(!this.isValid)return Sl;const d=Ar.map(v=>{const D=this.values[v];return $r(D)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...m,unit:v.slice(0,-1)}).format(D)}).filter(v=>v);return this.loc.listFormatter({type:"conjunction",style:m.listStyle||"narrow",...m}).format(d)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let m="P";return 0!==this.years&&(m+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(m+=this.months+3*this.quarters+"M"),0!==this.weeks&&(m+=this.weeks+"W"),0!==this.days&&(m+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(m+="T"),0!==this.hours&&(m+=this.hours+"H"),0!==this.minutes&&(m+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(m+=rs(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===m&&(m+="T0S"),m}toISOTime(m={}){if(!this.isValid)return null;const d=this.toMillis();return d<0||d>=864e5?null:(m={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...m,includeOffset:!1},Lr.fromMillis(d,{zone:"UTC"}).toISOTime(m))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?$o(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(m){if(!this.isValid)return this;const d=Fr.fromDurationLike(m),v={};for(const D of Ar)(Ps(d.values,D)||Ps(this.values,D))&&(v[D]=d.get(D)+this.get(D));return no(this,{values:v},!0)}minus(m){if(!this.isValid)return this;const d=Fr.fromDurationLike(m);return this.plus(d.negate())}mapUnits(m){if(!this.isValid)return this;const d={};for(const v of Object.keys(this.values))d[v]=ks(m(this.values[v],v));return no(this,{values:d},!0)}get(m){return this[Fr.normalizeUnit(m)]}set(m){return this.isValid?no(this,{values:{...this.values,...Bs(m,Fr.normalizeUnit)}}):this}reconfigure({locale:m,numberingSystem:d,conversionAccuracy:v,matrix:D}={}){return no(this,{loc:this.loc.clone({locale:m,numberingSystem:d}),matrix:D,conversionAccuracy:v})}as(m){return this.isValid?this.shiftTo(m).get(m):NaN}normalize(){if(!this.isValid)return this;const m=this.toObject();return es(this.matrix,m),no(this,{values:m},!0)}rescale(){return this.isValid?no(this,{values:function Po(_){const m={};for(const[d,v]of Object.entries(_))0!==v&&(m[d]=v);return m}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...m){if(!this.isValid)return this;if(0===m.length)return this;m=m.map(te=>Fr.normalizeUnit(te));const d={},v={},D=this.toObject();let W;for(const te of Ar)if(m.indexOf(te)>=0){W=te;let we=0;for(const yt in v)we+=this.matrix[yt][te]*v[yt],v[yt]=0;Ki(D[te])&&(we+=D[te]);const Ye=Math.trunc(we);d[te]=Ye,v[te]=(1e3*we-1e3*Ye)/1e3}else Ki(D[te])&&(v[te]=D[te]);for(const te in v)0!==v[te]&&(d[W]+=te===W?v[te]:v[te]/this.matrix[W][te]);return es(this.matrix,d),no(this,{values:d},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const m={};for(const d of Object.keys(this.values))m[d]=0===this.values[d]?0:-this.values[d];return no(this,{values:m},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(m){if(!this.isValid||!m.isValid||!this.loc.equals(m.loc))return!1;function d(v,D){return void 0===v||0===v?void 0===D||0===D:v===D}for(const v of Ar)if(!d(this.values[v],m.values[v]))return!1;return!0}}const fo="Invalid Interval";class Rr{constructor(m){this.s=m.start,this.e=m.end,this.invalid=m.invalid||null,this.isLuxonInterval=!0}static invalid(m,d=null){if(!m)throw new Ke("need to specify a reason the Interval is invalid");const v=m instanceof pt?m:new pt(m,d);if(Oe.throwOnInvalid)throw new bt(v);return new Rr({invalid:v})}static fromDateTimes(m,d){const v=tl(m),D=tl(d),W=function Os(_,m){return _&&_.isValid?m&&m.isValid?m<_?Rr.invalid("end before start",`The end of an interval must be after its start, but you had start=${_.toISO()} and end=${m.toISO()}`):null:Rr.invalid("missing or invalid end"):Rr.invalid("missing or invalid start")}(v,D);return W??new Rr({start:v,end:D})}static after(m,d){const v=Fr.fromDurationLike(d),D=tl(m);return Rr.fromDateTimes(D,D.plus(v))}static before(m,d){const v=Fr.fromDurationLike(d),D=tl(m);return Rr.fromDateTimes(D.minus(v),D)}static fromISO(m,d){const[v,D]=(m||"").split("/",2);if(v&&D){let W,te,we,Ye;try{W=Lr.fromISO(v,d),te=W.isValid}catch{te=!1}try{we=Lr.fromISO(D,d),Ye=we.isValid}catch{Ye=!1}if(te&&Ye)return Rr.fromDateTimes(W,we);if(te){const yt=Fr.fromISO(D,d);if(yt.isValid)return Rr.after(W,yt)}else if(Ye){const yt=Fr.fromISO(v,d);if(yt.isValid)return Rr.before(we,yt)}}return Rr.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static isInterval(m){return m&&m.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(m="milliseconds"){return this.isValid?this.toDuration(m).get(m):NaN}count(m="milliseconds",d){if(!this.isValid)return NaN;const v=this.start.startOf(m,d);let D;return D=d?.useLocaleWeeks?this.end.reconfigure({locale:v.locale}):this.end,D=D.startOf(m,d),Math.floor(D.diff(v,m).get(m))+(D.valueOf()!==this.end.valueOf())}hasSame(m){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,m))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(m){return!!this.isValid&&this.s>m}isBefore(m){return!!this.isValid&&this.e<=m}contains(m){return!!this.isValid&&this.s<=m&&this.e>m}set({start:m,end:d}={}){return this.isValid?Rr.fromDateTimes(m||this.s,d||this.e):this}splitAt(...m){if(!this.isValid)return[];const d=m.map(tl).filter(te=>this.contains(te)).sort((te,we)=>te.toMillis()-we.toMillis()),v=[];let{s:D}=this,W=0;for(;D+this.e?this.e:te;v.push(Rr.fromDateTimes(D,we)),D=we,W+=1}return v}splitBy(m){const d=Fr.fromDurationLike(m);if(!this.isValid||!d.isValid||0===d.as("milliseconds"))return[];let W,{s:v}=this,D=1;const te=[];for(;vYe*D));W=+we>+this.e?this.e:we,te.push(Rr.fromDateTimes(v,W)),v=W,D+=1}return te}divideEqually(m){return this.isValid?this.splitBy(this.length()/m).slice(0,m):[]}overlaps(m){return this.e>m.s&&this.s=m.e}equals(m){return!(!this.isValid||!m.isValid)&&this.s.equals(m.s)&&this.e.equals(m.e)}intersection(m){if(!this.isValid)return this;const d=this.s>m.s?this.s:m.s,v=this.e=v?null:Rr.fromDateTimes(d,v)}union(m){return this.isValid?Rr.fromDateTimes(this.sm.e?this.e:m.e):this}static merge(m){const[d,v]=m.sort((D,W)=>D.s-W.s).reduce(([D,W],te)=>W?W.overlaps(te)||W.abutsStart(te)?[D,W.union(te)]:[D.concat([W]),te]:[D,te],[[],null]);return v&&d.push(v),d}static xor(m){let d=null,v=0;const D=[],W=m.map(Ye=>[{time:Ye.s,type:"s"},{time:Ye.e,type:"e"}]),we=Array.prototype.concat(...W).sort((Ye,yt)=>Ye.time-yt.time);for(const Ye of we)v+="s"===Ye.type?1:-1,1===v?d=Ye.time:(d&&+d!=+Ye.time&&D.push(Rr.fromDateTimes(d,Ye.time)),d=null);return Rr.merge(D)}difference(...m){return Rr.xor([this].concat(m)).map(d=>this.intersection(d)).filter(d=>d&&!d.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:fo}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(m=se,d={}){return this.isValid?hn.create(this.s.loc.clone(d),m).formatInterval(this):fo}toISO(m){return this.isValid?`${this.s.toISO(m)}/${this.e.toISO(m)}`:fo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:fo}toISOTime(m){return this.isValid?`${this.s.toISOTime(m)}/${this.e.toISOTime(m)}`:fo}toFormat(m,{separator:d=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(m)}${d}${this.e.toFormat(m)}`:fo}toDuration(m,d){return this.isValid?this.e.diff(this.s,m,d):Fr.invalid(this.invalidReason)}mapEndpoints(m){return Rr.fromDateTimes(m(this.s),m(this.e))}}class po{static hasDST(m=Oe.defaultZone){const d=Lr.now().setZone(m).set({month:12});return!m.isUniversal&&d.offset!==d.set({month:6}).offset}static isValidIANAZone(m){return cr.isValidZone(m)}static normalizeZone(m){return oi(m,Oe.defaultZone)}static getStartOfWeek({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getWeekendDays().slice()}static months(m="long",{locale:d=null,numberingSystem:v=null,locObj:D=null,outputCalendar:W="gregory"}={}){return(D||fr.create(d,v,W)).months(m)}static monthsFormat(m="long",{locale:d=null,numberingSystem:v=null,locObj:D=null,outputCalendar:W="gregory"}={}){return(D||fr.create(d,v,W)).months(m,!0)}static weekdays(m="long",{locale:d=null,numberingSystem:v=null,locObj:D=null}={}){return(D||fr.create(d,v,null)).weekdays(m)}static weekdaysFormat(m="long",{locale:d=null,numberingSystem:v=null,locObj:D=null}={}){return(D||fr.create(d,v,null)).weekdays(m,!0)}static meridiems({locale:m=null}={}){return fr.create(m).meridiems()}static eras(m="short",{locale:d=null}={}){return fr.create(d,null,"gregory").eras(m)}static features(){return{relative:Sr(),localeWeek:oa()}}}function ic(_,m){const d=D=>D.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),v=d(m)-d(_);return Math.floor(Fr.fromMillis(v).as("days"))}function Di(_,m=d=>d){return{regex:_,deser:([d])=>m(function Xo(_){let m=parseInt(_,10);if(isNaN(m)){m="";for(let d=0;d<_.length;d++){const v=_.charCodeAt(d);if(-1!==_[d].search(ts.hanidec))m+=bo.indexOf(_[d]);else for(const D in so){const[W,te]=so[D];v>=W&&v<=te&&(m+=v-W)}}return parseInt(m,10)}return m}(d))}}const No=new RegExp("[ \xa0]","g");function $(_){return _.replace(/\./g,"\\.?").replace(No,"[ \xa0]")}function de(_){return _.replace(/\./g,"").replace(No," ").toLowerCase()}function q(_,m){return null===_?null:{regex:RegExp(_.map($).join("|")),deser:([d])=>_.findIndex(v=>de(d)===de(v))+m}}function _e(_,m){return{regex:_,deser:([,d,v])=>os(d,v),groups:m}}function nt(_){return{regex:_,deser:([m])=>m}}function _n(_){return _.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const Cr={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 Qr=null;function Wo(_,m){return Array.prototype.concat(..._.map(d=>function Fo(_,m){if(_.literal)return _;const v=Al(hn.macroTokenToFormatOpts(_.val),m);return null==v||v.includes(void 0)?_:v}(d,m)))}class hs{constructor(m,d){if(this.locale=m,this.format=d,this.tokens=Wo(hn.parseFormat(d),m),this.units=this.tokens.map(v=>function On(_,m){const d=eo(m),v=eo(m,"{2}"),D=eo(m,"{3}"),W=eo(m,"{4}"),te=eo(m,"{6}"),we=eo(m,"{1,2}"),Ye=eo(m,"{1,3}"),yt=eo(m,"{1,6}"),sn=eo(m,"{1,9}"),pn=eo(m,"{2,4}"),Er=eo(m,"{4,6}"),Zn=yi=>({regex:RegExp(_n(yi.val)),deser:([go])=>go,literal:!0}),ti=(yi=>{if(_.literal)return Zn(yi);switch(yi.val){case"G":return q(m.eras("short"),0);case"GG":return q(m.eras("long"),0);case"y":return Di(yt);case"yy":case"kk":return Di(pn,tr);case"yyyy":case"kkkk":return Di(W);case"yyyyy":return Di(Er);case"yyyyyy":return Di(te);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Di(we);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Di(v);case"MMM":return q(m.months("short",!0),1);case"MMMM":return q(m.months("long",!0),1);case"LLL":return q(m.months("short",!1),1);case"LLLL":return q(m.months("long",!1),1);case"o":case"S":return Di(Ye);case"ooo":case"SSS":return Di(D);case"u":return nt(sn);case"uu":return nt(we);case"uuu":case"E":case"c":return Di(d);case"a":return q(m.meridiems(),0);case"EEE":return q(m.weekdays("short",!1),1);case"EEEE":return q(m.weekdays("long",!1),1);case"ccc":return q(m.weekdays("short",!0),1);case"cccc":return q(m.weekdays("long",!0),1);case"Z":case"ZZ":return _e(new RegExp(`([+-]${we.source})(?::(${v.source}))?`),2);case"ZZZ":return _e(new RegExp(`([+-]${we.source})(${v.source})?`),2);case"z":return nt(/[a-z_+-/]{1,256}?/i);case" ":return nt(/[^\S\n\r]/);default:return Zn(yi)}})(_)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return ti.token=_,ti}(v,m)),this.disqualifyingUnit=this.units.find(v=>v.invalidReason),!this.disqualifyingUnit){const[v,D]=function Li(_){return[`^${_.map(d=>d.regex).reduce((d,v)=>`${d}(${v.source})`,"")}$`,_]}(this.units);this.regex=RegExp(v,"i"),this.handlers=D}}explainFromTokens(m){if(this.isValid){const[d,v]=function Hr(_,m,d){const v=_.match(m);if(v){const D={};let W=1;for(const te in d)if(Ps(d,te)){const we=d[te],Ye=we.groups?we.groups+1:1;!we.literal&&we.token&&(D[we.token.val[0]]=we.deser(v.slice(W,W+Ye))),W+=Ye}return[v,D]}return[v,{}]}(m,this.regex,this.handlers),[D,W,te]=v?function xi(_){let v,d=null;return $r(_.z)||(d=cr.create(_.z)),$r(_.Z)||(d||(d=new Oi(_.Z)),v=_.Z),$r(_.q)||(_.M=3*(_.q-1)+1),$r(_.h)||(_.h<12&&1===_.a?_.h+=12:12===_.h&&0===_.a&&(_.h=0)),0===_.G&&_.y&&(_.y=-_.y),$r(_.u)||(_.S=qr(_.u)),[Object.keys(_).reduce((W,te)=>{const we=(W=>{switch(W){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(te);return we&&(W[we]=_[te]),W},{}),d,v]}(v):[null,null,void 0];if(Ps(v,"a")&&Ps(v,"H"))throw new Fe("Can't include meridiem when specifying 24-hour format");return{input:m,tokens:this.tokens,regex:this.regex,rawMatches:d,matches:v,result:D,zone:W,specificOffset:te}}return{input:m,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function jo(_,m,d){return new hs(_,d).explainFromTokens(m)}function Al(_,m){if(!_)return null;const v=hn.create(m,_).dtFormatter(function di(){return Qr||(Qr=Lr.fromMillis(1555555555555)),Qr}()),D=v.formatToParts(),W=v.resolvedOptions();return D.map(te=>function Yr(_,m,d){const{type:v,value:D}=_;if("literal"===v){const Ye=/^\s+$/.test(D);return{literal:!Ye,val:Ye?" ":D}}let te=v;"hour"===v&&(te=null!=m.hour12?m.hour12?"hour12":"hour24":null!=m.hourCycle?"h11"===m.hourCycle||"h12"===m.hourCycle?"hour12":"hour24":d.hour12?"hour12":"hour24");let we=Cr[te];if("object"==typeof we&&(we=we[m[v]]),we)return{literal:!1,val:we}}(te,_,W))}const Ca="Invalid DateTime",Zs=864e13;function Da(_){return new pt("unsupported zone",`the zone "${_.name}" is not supported`)}function ll(_){return null===_.weekData&&(_.weekData=Jn(_.c)),_.weekData}function Tl(_){return null===_.localWeekData&&(_.localWeekData=Jn(_.c,_.loc.getMinDaysInFirstWeek(),_.loc.getStartOfWeek())),_.localWeekData}function cl(_,m){const d={ts:_.ts,zone:_.zone,c:_.c,o:_.o,loc:_.loc,invalid:_.invalid};return new Lr({...d,...m,old:d})}function ua(_,m,d){let v=_-60*m*1e3;const D=d.offset(v);if(m===D)return[v,m];v-=60*(D-m)*1e3;const W=d.offset(v);return D===W?[v,D]:[_-60*Math.min(D,W)*1e3,Math.max(D,W)]}function Xl(_,m){const d=new Date(_+=60*m*1e3);return{year:d.getUTCFullYear(),month:d.getUTCMonth()+1,day:d.getUTCDate(),hour:d.getUTCHours(),minute:d.getUTCMinutes(),second:d.getUTCSeconds(),millisecond:d.getUTCMilliseconds()}}function Fc(_,m,d){return ua(Es(_),m,d)}function sd(_,m){const d=_.o,v=_.c.year+Math.trunc(m.years),D=_.c.month+Math.trunc(m.months)+3*Math.trunc(m.quarters),W={..._.c,year:v,month:D,day:Math.min(_.c.day,Wi(v,D))+Math.trunc(m.days)+7*Math.trunc(m.weeks)},te=Fr.fromObject({years:m.years-Math.trunc(m.years),quarters:m.quarters-Math.trunc(m.quarters),months:m.months-Math.trunc(m.months),weeks:m.weeks-Math.trunc(m.weeks),days:m.days-Math.trunc(m.days),hours:m.hours,minutes:m.minutes,seconds:m.seconds,milliseconds:m.milliseconds}).as("milliseconds"),we=Es(W);let[Ye,yt]=ua(we,d,_.zone);return 0!==te&&(Ye+=te,yt=_.zone.offset(Ye)),{ts:Ye,o:yt}}function oc(_,m,d,v,D,W){const{setZone:te,zone:we}=d;if(_&&0!==Object.keys(_).length||m){const Ye=m||we,yt=Lr.fromObject(_,{...d,zone:Ye,specificOffset:W});return te?yt:yt.setZone(we)}return Lr.invalid(new pt("unparsable",`the input "${D}" can't be parsed as ${v}`))}function Ao(_,m,d=!0){return _.isValid?hn.create(fr.create("en-US"),{allowZ:d,forceSimple:!0}).formatDateTimeFromString(_,m):null}function Ja(_,m){const d=_.c.year>9999||_.c.year<0;let v="";return d&&_.c.year>=0&&(v+="+"),v+=Ni(_.c.year,d?6:4),m?(v+="-",v+=Ni(_.c.month),v+="-",v+=Ni(_.c.day)):(v+=Ni(_.c.month),v+=Ni(_.c.day)),v}function el(_,m,d,v,D,W){let te=Ni(_.c.hour);return m?(te+=":",te+=Ni(_.c.minute),(0!==_.c.millisecond||0!==_.c.second||!d)&&(te+=":")):te+=Ni(_.c.minute),(0!==_.c.millisecond||0!==_.c.second||!d)&&(te+=Ni(_.c.second),(0!==_.c.millisecond||!v)&&(te+=".",te+=Ni(_.c.millisecond,3))),D&&(_.isOffsetFixed&&0===_.offset&&!W?te+="Z":_.o<0?(te+="-",te+=Ni(Math.trunc(-_.o/60)),te+=":",te+=Ni(Math.trunc(-_.o%60))):(te+="+",te+=Ni(Math.trunc(_.o/60)),te+=":",te+=Ni(Math.trunc(_.o%60)))),W&&(te+="["+_.zone.ianaName+"]"),te}const qs={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},zo={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Yl={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ns=["year","month","day","hour","minute","second","millisecond"],Js=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],yc=["year","ordinal","hour","minute","second","millisecond"];function ad(_){switch(_.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function th(_){const m={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[_.toLowerCase()];if(!m)throw new Ft(_);return m}(_)}}function ou(_,m){const d=oi(m.zone,Oe.defaultZone);if(!d.isValid)return Lr.invalid(Da(d));const v=fr.fromObject(m);let D,W;if($r(_.year))D=Oe.now();else{for(const Ye of Ns)$r(_[Ye])&&(_[Ye]=qs[Ye]);const te=ai(_)||vo(_);if(te)return Lr.invalid(te);const we=function iu(_){return ul[_]||(void 0===da&&(da=Oe.now()),ul[_]=_.offset(da)),ul[_]}(d);[D,W]=Fc(_,we,d)}return new Lr({ts:D,zone:d,loc:v,o:W})}function Bc(_,m,d){const v=!!$r(d.round)||d.round,D=(te,we)=>(te=rs(te,v||d.calendary?0:2,!0),m.loc.clone(d).relFormatter(d).format(te,we)),W=te=>d.calendary?m.hasSame(_,te)?0:m.startOf(te).diff(_.startOf(te),te).get(te):m.diff(_,te).get(te);if(d.unit)return D(W(d.unit),d.unit);for(const te of d.units){const we=W(te);if(Math.abs(we)>=1)return D(we,te)}return D(_>m?-0:0,d.units[d.units.length-1])}function bc(_){let d,m={};return _.length>0&&"object"==typeof _[_.length-1]?(m=_[_.length-1],d=Array.from(_).slice(0,_.length-1)):d=Array.from(_),[m,d]}let da,ul={};class Lr{constructor(m){const d=m.zone||Oe.defaultZone;let v=m.invalid||(Number.isNaN(m.ts)?new pt("invalid input"):null)||(d.isValid?null:Da(d));this.ts=$r(m.ts)?Oe.now():m.ts;let D=null,W=null;if(!v)if(m.old&&m.old.ts===this.ts&&m.old.zone.equals(d))[D,W]=[m.old.c,m.old.o];else{const we=Ki(m.o)&&!m.old?m.o:d.offset(this.ts);D=Xl(this.ts,we),v=Number.isNaN(D.year)?new pt("invalid input"):null,D=v?null:D,W=v?null:we}this._zone=d,this.loc=m.loc||fr.create(),this.invalid=v,this.weekData=null,this.localWeekData=null,this.c=D,this.o=W,this.isLuxonDateTime=!0}static now(){return new Lr({})}static local(){const[m,d]=bc(arguments),[v,D,W,te,we,Ye,yt]=d;return ou({year:v,month:D,day:W,hour:te,minute:we,second:Ye,millisecond:yt},m)}static utc(){const[m,d]=bc(arguments),[v,D,W,te,we,Ye,yt]=d;return m.zone=Oi.utcInstance,ou({year:v,month:D,day:W,hour:te,minute:we,second:Ye,millisecond:yt},m)}static fromJSDate(m,d={}){const v=function ia(_){return"[object Date]"===Object.prototype.toString.call(_)}(m)?m.valueOf():NaN;if(Number.isNaN(v))return Lr.invalid("invalid input");const D=oi(d.zone,Oe.defaultZone);return D.isValid?new Lr({ts:v,zone:D,loc:fr.fromObject(d)}):Lr.invalid(Da(D))}static fromMillis(m,d={}){if(Ki(m))return m<-Zs||m>Zs?Lr.invalid("Timestamp out of range"):new Lr({ts:m,zone:oi(d.zone,Oe.defaultZone),loc:fr.fromObject(d)});throw new Ke(`fromMillis requires a numerical input, but received a ${typeof m} with value ${m}`)}static fromSeconds(m,d={}){if(Ki(m))return new Lr({ts:1e3*m,zone:oi(d.zone,Oe.defaultZone),loc:fr.fromObject(d)});throw new Ke("fromSeconds requires a numerical input")}static fromObject(m,d={}){m=m||{};const v=oi(d.zone,Oe.defaultZone);if(!v.isValid)return Lr.invalid(Da(v));const D=fr.fromObject(d),W=Bs(m,ad),{minDaysInFirstWeek:te,startOfWeek:we}=bi(W,D),Ye=Oe.now(),yt=$r(d.specificOffset)?v.offset(Ye):d.specificOffset,sn=!$r(W.ordinal),pn=!$r(W.year),Er=!$r(W.month)||!$r(W.day),Zn=pn||Er,_r=W.weekYear||W.weekNumber;if((Zn||sn)&&_r)throw new Fe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Er&&sn)throw new Fe("Can't mix ordinal dates with month/day");const ti=_r||W.weekday&&!Zn;let yi,go,ls=Xl(Ye,yt);ti?(yi=Js,go=zo,ls=Jn(ls,te,we)):sn?(yi=yc,go=Yl,ls=kr(ls)):(yi=Ns,go=qs);let To=!1;for(const Jl of yi)$r(W[Jl])?W[Jl]=To?go[Jl]:ls[Jl]:To=!0;const ta=ti?function si(_,m=4,d=1){const v=cs(_.weekYear),D=Gi(_.weekNumber,1,ga(_.weekYear,m,d)),W=Gi(_.weekday,1,7);return v?D?!W&&un("weekday",_.weekday):un("week",_.weekNumber):un("weekYear",_.weekYear)}(W,te,we):sn?function gr(_){const m=cs(_.year),d=Gi(_.ordinal,1,to(_.year));return m?!d&&un("ordinal",_.ordinal):un("year",_.year)}(W):ai(W),eu=ta||vo(W);if(eu)return Lr.invalid(eu);const gc=ti?sr(W,te,we):sn?mr(W):W,[na,Ra]=Fc(gc,yt,v),jl=new Lr({ts:na,zone:v,o:Ra,loc:D});return W.weekday&&Zn&&m.weekday!==jl.weekday?Lr.invalid("mismatched weekday",`you can't specify both a weekday of ${W.weekday} and a date of ${jl.toISO()}`):jl.isValid?jl:Lr.invalid(jl.invalid)}static fromISO(m,d={}){const[v,D]=function Cl(_){return zi(_,[$a,ja],[vc,Wl],[Ou,ba],[rc,qa])}(m);return oc(v,D,d,"ISO 8601",m)}static fromRFC2822(m,d={}){const[v,D]=function Ro(_){return zi(function Ua(_){return _.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(_),[us,Us])}(m);return oc(v,D,d,"RFC 2822",m)}static fromHTTP(m,d={}){const[v,D]=function co(_){return zi(_,[Lo,xl],[Za,xl],[El,la])}(m);return oc(v,D,d,"HTTP",d)}static fromFormat(m,d,v={}){if($r(m)||$r(d))throw new Ke("fromFormat requires an input string and a format");const{locale:D=null,numberingSystem:W=null}=v,te=fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0}),[we,Ye,yt,sn]=function Rs(_,m,d){const{result:v,zone:D,specificOffset:W,invalidReason:te}=jo(_,m,d);return[v,D,W,te]}(te,m,d);return sn?Lr.invalid(sn):oc(we,Ye,v,`format ${d}`,m,yt)}static fromString(m,d,v={}){return Lr.fromFormat(m,d,v)}static fromSQL(m,d={}){const[v,D]=function zl(_){return zi(_,[_c,ja],[al,Dl])}(m);return oc(v,D,d,"SQL",m)}static invalid(m,d=null){if(!m)throw new Ke("need to specify a reason the DateTime is invalid");const v=m instanceof pt?m:new pt(m,d);if(Oe.throwOnInvalid)throw new Qe(v);return new Lr({invalid:v})}static isDateTime(m){return m&&m.isLuxonDateTime||!1}static parseFormatForOpts(m,d={}){const v=Al(m,fr.fromObject(d));return v?v.map(D=>D?D.val:null).join(""):null}static expandFormat(m,d={}){return Wo(hn.parseFormat(m),fr.fromObject(d)).map(D=>D.val).join("")}static resetCache(){da=void 0,ul={}}get(m){return this[m]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ll(this).weekYear:NaN}get weekNumber(){return this.isValid?ll(this).weekNumber:NaN}get weekday(){return this.isValid?ll(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Tl(this).weekday:NaN}get localWeekNumber(){return this.isValid?Tl(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Tl(this).weekYear:NaN}get ordinal(){return this.isValid?kr(this.c).ordinal:NaN}get monthShort(){return this.isValid?po.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?po.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?po.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?po.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const m=864e5,d=6e4,v=Es(this.c),D=this.zone.offset(v-m),W=this.zone.offset(v+m),te=this.zone.offset(v-D*d),we=this.zone.offset(v-W*d);if(te===we)return[this];const Ye=v-te*d,yt=v-we*d,sn=Xl(Ye,te),pn=Xl(yt,we);return sn.hour===pn.hour&&sn.minute===pn.minute&&sn.second===pn.second&&sn.millisecond===pn.millisecond?[cl(this,{ts:Ye}),cl(this,{ts:yt})]:[this]}get isInLeapYear(){return is(this.year)}get daysInMonth(){return Wi(this.year,this.month)}get daysInYear(){return this.isValid?to(this.year):NaN}get weeksInWeekYear(){return this.isValid?ga(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ga(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(m={}){const{locale:d,numberingSystem:v,calendar:D}=hn.create(this.loc.clone(m),m).resolvedOptions(this);return{locale:d,numberingSystem:v,outputCalendar:D}}toUTC(m=0,d={}){return this.setZone(Oi.instance(m),d)}toLocal(){return this.setZone(Oe.defaultZone)}setZone(m,{keepLocalTime:d=!1,keepCalendarTime:v=!1}={}){if((m=oi(m,Oe.defaultZone)).equals(this.zone))return this;if(m.isValid){let D=this.ts;if(d||v){const W=m.offset(this.ts),te=this.toObject();[D]=Fc(te,W,m)}return cl(this,{ts:D,zone:m})}return Lr.invalid(Da(m))}reconfigure({locale:m,numberingSystem:d,outputCalendar:v}={}){return cl(this,{loc:this.loc.clone({locale:m,numberingSystem:d,outputCalendar:v})})}setLocale(m){return this.reconfigure({locale:m})}set(m){if(!this.isValid)return this;const d=Bs(m,ad),{minDaysInFirstWeek:v,startOfWeek:D}=bi(d,this.loc),W=!$r(d.weekYear)||!$r(d.weekNumber)||!$r(d.weekday),te=!$r(d.ordinal),we=!$r(d.year),Ye=!$r(d.month)||!$r(d.day);if((we||Ye||te)&&(d.weekYear||d.weekNumber))throw new Fe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Ye&&te)throw new Fe("Can't mix ordinal dates with month/day");let pn;W?pn=sr({...Jn(this.c,v,D),...d},v,D):$r(d.ordinal)?(pn={...this.toObject(),...d},$r(d.day)&&(pn.day=Math.min(Wi(pn.year,pn.month),pn.day))):pn=mr({...kr(this.c),...d});const[Er,Zn]=Fc(pn,this.o,this.zone);return cl(this,{ts:Er,o:Zn})}plus(m){return this.isValid?cl(this,sd(this,Fr.fromDurationLike(m))):this}minus(m){return this.isValid?cl(this,sd(this,Fr.fromDurationLike(m).negate())):this}startOf(m,{useLocaleWeeks:d=!1}={}){if(!this.isValid)return this;const v={},D=Fr.normalizeUnit(m);switch(D){case"years":v.month=1;case"quarters":case"months":v.day=1;case"weeks":case"days":v.hour=0;case"hours":v.minute=0;case"minutes":v.second=0;case"seconds":v.millisecond=0}if("weeks"===D)if(d){const W=this.loc.getStartOfWeek(),{weekday:te}=this;tethis.valueOf(),yt=function ro(_,m,d,v){let[D,W,te,we]=function Va(_,m,d){const v=[["years",(Ye,yt)=>yt.year-Ye.year],["quarters",(Ye,yt)=>yt.quarter-Ye.quarter+4*(yt.year-Ye.year)],["months",(Ye,yt)=>yt.month-Ye.month+12*(yt.year-Ye.year)],["weeks",(Ye,yt)=>{const sn=ic(Ye,yt);return(sn-sn%7)/7}],["days",ic]],D={},W=_;let te,we;for(const[Ye,yt]of v)d.indexOf(Ye)>=0&&(te=Ye,D[Ye]=yt(_,m),we=W.plus(D),we>m?(D[Ye]--,(_=W.plus(D))>m&&(we=_,D[Ye]--,_=W.plus(D))):_=we);return[_,D,we,te]}(_,m,d);const Ye=m-D,yt=d.filter(pn=>["hours","minutes","seconds","milliseconds"].indexOf(pn)>=0);0===yt.length&&(te0?Fr.fromMillis(Ye,v).shiftTo(...yt).plus(sn):sn}(te?this:m,te?m:this,W,D);return te?yt.negate():yt}diffNow(m="milliseconds",d={}){return this.diff(Lr.now(),m,d)}until(m){return this.isValid?Rr.fromDateTimes(this,m):this}hasSame(m,d,v){if(!this.isValid)return!1;const D=m.valueOf(),W=this.setZone(m.zone,{keepLocalTime:!0});return W.startOf(d,v)<=D&&D<=W.endOf(d,v)}equals(m){return this.isValid&&m.isValid&&this.valueOf()===m.valueOf()&&this.zone.equals(m.zone)&&this.loc.equals(m.loc)}toRelative(m={}){if(!this.isValid)return null;const d=m.base||Lr.fromObject({},{zone:this.zone}),v=m.padding?thisd.valueOf(),Math.min)}static max(...m){if(!m.every(Lr.isDateTime))throw new Ke("max requires all arguments be DateTimes");return wo(m,d=>d.valueOf(),Math.max)}static fromFormatExplain(m,d,v={}){const{locale:D=null,numberingSystem:W=null}=v;return jo(fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0}),m,d)}static fromStringExplain(m,d,v={}){return Lr.fromFormatExplain(m,d,v)}static buildFormatParser(m,d={}){const{locale:v=null,numberingSystem:D=null}=d,W=fr.fromOpts({locale:v,numberingSystem:D,defaultToEN:!0});return new hs(W,m)}static fromFormatParser(m,d,v={}){if($r(m)||$r(d))throw new Ke("fromFormatParser requires an input string and a format parser");const{locale:D=null,numberingSystem:W=null}=v,te=fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0});if(!te.equals(d.locale))throw new Ke(`fromFormatParser called with a locale of ${te}, but the format parser was created for ${d.locale}`);const{result:we,zone:Ye,specificOffset:yt,invalidReason:sn}=d.explainFromTokens(m);return sn?Lr.invalid(sn):oc(we,Ye,v,`format ${d.format}`,m,yt)}static get DATE_SHORT(){return se}static get DATE_MED(){return Ze}static get DATE_MED_WITH_WEEKDAY(){return Rt}static get DATE_FULL(){return Jt}static get DATE_HUGE(){return fn}static get TIME_SIMPLE(){return Gn}static get TIME_WITH_SECONDS(){return Nt}static get TIME_WITH_SHORT_OFFSET(){return Qt}static get TIME_WITH_LONG_OFFSET(){return an}static get TIME_24_SIMPLE(){return Xn}static get TIME_24_WITH_SECONDS(){return En}static get TIME_24_WITH_SHORT_OFFSET(){return Gt}static get TIME_24_WITH_LONG_OFFSET(){return At}static get DATETIME_SHORT(){return Kt}static get DATETIME_SHORT_WITH_SECONDS(){return xn}static get DATETIME_MED(){return Yn}static get DATETIME_MED_WITH_SECONDS(){return tt}static get DATETIME_MED_WITH_WEEKDAY(){return ke}static get DATETIME_FULL(){return B}static get DATETIME_FULL_WITH_SECONDS(){return k}static get DATETIME_HUGE(){return j}static get DATETIME_HUGE_WITH_SECONDS(){return De}}function tl(_){if(Lr.isDateTime(_))return _;if(_&&_.valueOf&&Ki(_.valueOf()))return Lr.fromJSDate(_);if(_&&"object"==typeof _)return Lr.fromObject(_);throw new Ke(`Unknown datetime argument: ${_}, of type ${typeof _}`)}const ha=new c.nKC("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function dl(){return{useUtc:!1,firstDayOfWeek:0,defaultOutputCalendar:"gregory"}}});let Sa=(()=>{class _ extends Xt.MJ{_useUTC;_firstDayOfWeek;_defaultOutputCalendar;constructor(){super();const d=(0,c.WQX)(Xt.Ju,{optional:!0}),v=(0,c.WQX)(ha,{optional:!0});this._useUTC=!!v?.useUtc,this._firstDayOfWeek=v?.firstDayOfWeek||0,this._defaultOutputCalendar=v?.defaultOutputCalendar||"gregory",this.setLocale(d||Lr.local().locale)}getYear(d){return d.year}getMonth(d){return d.month-1}getDate(d){return d.day}getDayOfWeek(d){return d.weekday}getMonthNames(d){return po.months(d,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){const d=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return function Ru(_,m){const d=Array(_);for(let v=0;v<_;v++)d[v]=m(v);return d}(31,v=>d.format(Lr.utc(2017,1,v+1).toJSDate()))}getDayOfWeekNames(d){const v=po.weekdays(d,{locale:this.locale});return v.unshift(v.pop()),v}getYearName(d){return d.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(d){return d.daysInMonth}clone(d){return Lr.fromObject(d.toObject(),this._getOptions())}createDate(d,v,D){const W=this._getOptions();if(v<0||v>11)throw Error(`Invalid month index "${v}". Month index has to be between 0 and 11.`);if(D<1)throw Error(`Invalid date "${D}". Date has to be greater than 0.`);const te=this._useUTC?Lr.utc(d,v+1,D,W):Lr.local(d,v+1,D,W);if(!this.isValid(te))throw Error(`Invalid date "${D}". Reason: "${te.invalidReason}".`);return te}today(){const d=this._getOptions();return this._useUTC?Lr.utc(d):Lr.local(d)}parse(d,v){const D=this._getOptions();if("string"==typeof d&&d.length>0){const W=Lr.fromISO(d,D);if(this.isValid(W))return W;const te=Array.isArray(v)?v:[v];if(!v.length)throw Error("Formats array must not be empty.");for(const we of te){const Ye=Lr.fromFormat(d,we,D);if(this.isValid(Ye))return Ye}return this.invalid()}return"number"==typeof d?Lr.fromMillis(d,D):d instanceof Date?Lr.fromJSDate(d,D):d instanceof Lr?Lr.fromMillis(d.toMillis(),D):null}format(d,v){if(!this.isValid(d))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?d.setLocale(this.locale).setZone("utc").toFormat(v):d.setLocale(this.locale).toFormat(v)}addCalendarYears(d,v){return d.reconfigure(this._getOptions()).plus({years:v})}addCalendarMonths(d,v){return d.reconfigure(this._getOptions()).plus({months:v})}addCalendarDays(d,v){return d.reconfigure(this._getOptions()).plus({days:v})}toIso8601(d){return d.toISO()}deserialize(d){const v=this._getOptions();let D;if(d instanceof Date&&(D=Lr.fromJSDate(d,v)),"string"==typeof d){if(!d)return null;D=Lr.fromISO(d,v)}return D&&this.isValid(D)?D:super.deserialize(d)}isDateInstance(d){return d instanceof Lr}isValid(d){return d.isValid}invalid(){return Lr.invalid("Invalid Luxon DateTime object.")}setTime(d,v,D,W){return this.clone(d).set({hour:v,minute:D,second:W,millisecond:0})}getHours(d){return d.hour}getMinutes(d){return d.minute}getSeconds(d){return d.second}parseTime(d,v){const D=this.parse(d,v);return(!D||!this.isValid(D))&&"string"==typeof d&&this.parse(d.replace(/[^0-9:(AM|PM)]/gi,""),v)||D}addSeconds(d,v){return d.reconfigure(this._getOptions()).plus({seconds:v})}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}static \u0275fac=function(v){return new(v||_)};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();var Tr=r(9969);function $c(_){return new c.wOt(3e3,!1)}function Ml(_){switch(_.length){case 0:return new Tr.sf;case 1:return _[0];default:return new Tr.ui(_)}}function Il(_,m,d=new Map,v=new Map){const D=[],W=[];let te=-1,we=null;if(m.forEach(Ye=>{const yt=Ye.get("offset"),sn=yt==te,pn=sn&&we||new Map;Ye.forEach((Er,Zn)=>{let _r=Zn,ti=Er;if("offset"!==Zn)switch(_r=_.normalizePropertyName(_r,D),ti){case Tr.FX:ti=d.get(Zn);break;case Tr.kp:ti=v.get(Zn);break;default:ti=_.normalizeStyleValue(Zn,_r,ti,D)}pn.set(_r,ti)}),sn||W.push(pn),we=pn,te=yt}),D.length)throw function cf(){return new c.wOt(3502,!1)}();return W}function fs(_,m,d,v){switch(m){case"start":_.onStart(()=>v(d&&ac(d,"start",_)));break;case"done":_.onDone(()=>v(d&&ac(d,"done",_)));break;case"destroy":_.onDestroy(()=>v(d&&ac(d,"destroy",_)))}}function ac(_,m,d){const W=jc(_.element,_.triggerName,_.fromState,_.toState,m||_.phaseName,d.totalTime??_.totalTime,!!d.disabled),te=_._data;return null!=te&&(W._data=te),W}function jc(_,m,d,v,D="",W=0,te){return{element:_,triggerName:m,fromState:d,toState:v,phaseName:D,totalTime:W,disabled:!!te}}function Aa(_,m,d){let v=_.get(m);return v||_.set(m,v=d),v}function hf(_){const m=_.indexOf(":");return[_.substring(1,m),_.slice(m+1)]}const Rp=typeof document>"u"?null:document.documentElement;function Fu(_){const m=_.parentNode||_.host||null;return m===Rp?null:m}let ea=null,js=!1;function R(_,m){for(;m;){if(m===_)return!0;m=Fu(m)}return!1}function U(_,m,d){if(d)return Array.from(_.querySelectorAll(m));const v=_.querySelector(m);return v?[v]:[]}let oe=(()=>{class _{validateStyleProperty(d){return function kl(_){ea||(ea=function Wa(){return typeof document<"u"?document.body:null}()||{},js=!!ea.style&&"WebkitAppearance"in ea.style);let m=!0;return ea.style&&!function cd(_){return"ebkit"==_.substring(1,6)}(_)&&(m=_ in ea.style,!m&&js&&(m="Webkit"+_.charAt(0).toUpperCase()+_.slice(1)in ea.style)),m}(d)}containsElement(d,v){return R(d,v)}getParentElement(d){return Fu(d)}query(d,v,D){return U(d,v,D)}computeStyle(d,v,D){return D||""}animate(d,v,D,W,te,we=[],Ye){return new Tr.sf(D,W)}static \u0275fac=function(v){return new(v||_)};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();class Ae{static NOOP=new oe}class Be{}const An="ng-enter",Zt="ng-leave",Kn="ng-trigger",Wn=".ng-trigger",nr="ng-animating",Mn=".ng-animating";function jn(_){if("number"==typeof _)return _;const m=_.match(/^(-?[\.\d]+)(m?s)/);return!m||m.length<2?0:Qn(parseFloat(m[1]),m[2])}function Qn(_,m){return"s"===m?1e3*_:_}function ir(_,m,d){return _.hasOwnProperty("duration")?_:function Vn(_,m,d){let D,W=0,te="";if("string"==typeof _){const we=_.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===we)return m.push($c()),{duration:0,delay:0,easing:""};D=Qn(parseFloat(we[1]),we[2]);const Ye=we[3];null!=Ye&&(W=Qn(parseFloat(Ye),we[4]));const yt=we[5];yt&&(te=yt)}else D=_;if(!d){let we=!1,Ye=m.length;D<0&&(m.push(function L(){return new c.wOt(3100,!1)}()),we=!0),W<0&&(m.push(function K(){return new c.wOt(3101,!1)}()),we=!0),we&&m.splice(Ye,0,$c())}return{duration:D,delay:W,easing:te}}(_,m,d)}function Ir(_,m,d){m.forEach((v,D)=>{const W=Ds(D);d&&!d.has(D)&&d.set(D,_.style[W]),_.style[W]=v})}function zr(_,m){m.forEach((d,v)=>{const D=Ds(v);_.style[D]=""})}function Ur(_){return Array.isArray(_)?1==_.length?_[0]:(0,Tr.K2)(_):_}const Qi=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ii(_){let m=[];if("string"==typeof _){let d;for(;d=Qi.exec(_);)m.push(d[1]);Qi.lastIndex=0}return m}function Zi(_,m,d){const v=`${_}`,D=v.replace(Qi,(W,te)=>{let we=m[te];return null==we&&(d.push(function X(){return new c.wOt(3003,!1)}()),we=""),we.toString()});return D==v?_:D}const Bo=/-+([a-z0-9])/g;function Ds(_){return _.replace(Bo,(...m)=>m[1].toUpperCase())}function $i(_,m,d){switch(m.type){case Tr.If.Trigger:return _.visitTrigger(m,d);case Tr.If.State:return _.visitState(m,d);case Tr.If.Transition:return _.visitTransition(m,d);case Tr.If.Sequence:return _.visitSequence(m,d);case Tr.If.Group:return _.visitGroup(m,d);case Tr.If.Animate:return _.visitAnimate(m,d);case Tr.If.Keyframes:return _.visitKeyframes(m,d);case Tr.If.Style:return _.visitStyle(m,d);case Tr.If.Reference:return _.visitReference(m,d);case Tr.If.AnimateChild:return _.visitAnimateChild(m,d);case Tr.If.AnimateRef:return _.visitAnimateRef(m,d);case Tr.If.Query:return _.visitQuery(m,d);case Tr.If.Stagger:return _.visitStagger(m,d);default:throw function he(){return new c.wOt(3004,!1)}()}}function mo(_,m){return window.getComputedStyle(_)[m]}const ps=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 gs extends Be{normalizePropertyName(m,d){return Ds(m)}normalizeStyleValue(m,d,v,D){let W="";const te=v.toString().trim();if(ps.has(d)&&0!==v&&"0"!==v)if("number"==typeof v)W="px";else{const we=v.match(/^[+-]?[\d\.]+([a-z]*)$/);we&&0==we[1].length&&D.push(function We(){return new c.wOt(3005,!1)}())}return te+W}}const fa=new Set(["true","1"]),za=new Set(["false","0"]);function fl(_,m){const d=fa.has(_)||za.has(_),v=fa.has(m)||za.has(m);return(D,W)=>{let te="*"==_||_==D,we="*"==m||m==W;return!te&&d&&"boolean"==typeof D&&(te=D?fa.has(_):za.has(_)),!we&&v&&"boolean"==typeof W&&(we=W?fa.has(m):za.has(m)),te&&we}}const Ql=new RegExp("s*:selfs*,?","g");function Ol(_,m,d,v){return new Uu(_).build(m,d,v)}class Uu{_driver;constructor(m){this._driver=m}build(m,d,v){const D=new dd(d);return this._resetContextStyleTimingState(D),$i(this,Ur(m),D)}_resetContextStyleTimingState(m){m.currentQuerySelector="",m.collectedStyles=new Map,m.collectedStyles.set("",new Map),m.currentTime=0}visitTrigger(m,d){let v=d.queryCount=0,D=d.depCount=0;const W=[],te=[];return"@"==m.name.charAt(0)&&d.errors.push(function Ct(){return new c.wOt(3006,!1)}()),m.definitions.forEach(we=>{if(this._resetContextStyleTimingState(d),we.type==Tr.If.State){const Ye=we,yt=Ye.name;yt.toString().split(/\s*,\s*/).forEach(sn=>{Ye.name=sn,W.push(this.visitState(Ye,d))}),Ye.name=yt}else if(we.type==Tr.If.Transition){const Ye=this.visitTransition(we,d);v+=Ye.queryCount,D+=Ye.depCount,te.push(Ye)}else d.errors.push(function vn(){return new c.wOt(3007,!1)}())}),{type:Tr.If.Trigger,name:m.name,states:W,transitions:te,queryCount:v,depCount:D,options:null}}visitState(m,d){const v=this.visitStyle(m.styles,d),D=m.options&&m.options.params||null;if(v.containsDynamicStyles){const W=new Set,te=D||{};v.styles.forEach(we=>{we instanceof Map&&we.forEach(Ye=>{Ii(Ye).forEach(yt=>{te.hasOwnProperty(yt)||W.add(yt)})})}),W.size&&d.errors.push(function nn(){return new c.wOt(3008,!1)}(0,W.values()))}return{type:Tr.If.State,name:m.name,style:v,options:D?{params:D}:null}}visitTransition(m,d){d.queryCount=0,d.depCount=0;const v=$i(this,Ur(m.animation),d),D=function dc(_,m){const d=[];return"string"==typeof _?_.split(/\s*,\s*/).forEach(v=>function Hc(_,m,d){if(":"==_[0]){const Ye=function Wc(_,m){switch(_){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(d,v)=>parseFloat(v)>parseFloat(d);case":decrement":return(d,v)=>parseFloat(v) *"}}(_,d);if("function"==typeof Ye)return void m.push(Ye);_=Ye}const v=_.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return d.push(function Ec(){return new c.wOt(3015,!1)}()),m;const D=v[1],W=v[2],te=v[3];m.push(fl(D,te)),"<"==W[0]&&("*"!=D||"*"!=te)&&m.push(fl(te,D))}(v,d,m)):d.push(_),d}(m.expr,d.errors);return{type:Tr.If.Transition,matchers:D,animation:v,queryCount:d.queryCount,depCount:d.depCount,options:uu(m.options)}}visitSequence(m,d){return{type:Tr.If.Sequence,steps:m.steps.map(v=>$i(this,v,d)),options:uu(m.options)}}visitGroup(m,d){const v=d.currentTime;let D=0;const W=m.steps.map(te=>{d.currentTime=v;const we=$i(this,te,d);return D=Math.max(D,d.currentTime),we});return d.currentTime=D,{type:Tr.If.Group,steps:W,options:uu(m.options)}}visitAnimate(m,d){const v=function hd(_,m){if(_.hasOwnProperty("duration"))return _;if("number"==typeof _)return du(ir(_,m).duration,0,"");const d=_;if(d.split(/\s+/).some(W=>"{"==W.charAt(0)&&"{"==W.charAt(1))){const W=du(0,0,"");return W.dynamic=!0,W.strValue=d,W}const D=ir(d,m);return du(D.duration,D.delay,D.easing)}(m.timings,d.errors);d.currentAnimateTimings=v;let D,W=m.styles?m.styles:(0,Tr.iF)({});if(W.type==Tr.If.Keyframes)D=this.visitKeyframes(W,d);else{let te=m.styles,we=!1;if(!te){we=!0;const yt={};v.easing&&(yt.easing=v.easing),te=(0,Tr.iF)(yt)}d.currentTime+=v.duration+v.delay;const Ye=this.visitStyle(te,d);Ye.isEmptyStep=we,D=Ye}return d.currentAnimateTimings=null,{type:Tr.If.Animate,timings:v,style:D,options:null}}visitStyle(m,d){const v=this._makeStyleAst(m,d);return this._validateStyleAst(v,d),v}_makeStyleAst(m,d){const v=[],D=Array.isArray(m.styles)?m.styles:[m.styles];for(let we of D)"string"==typeof we?we===Tr.kp?v.push(we):d.errors.push(new c.wOt(3002,!1)):v.push(new Map(Object.entries(we)));let W=!1,te=null;return v.forEach(we=>{if(we instanceof Map&&(we.has("easing")&&(te=we.get("easing"),we.delete("easing")),!W))for(let Ye of we.values())if(Ye.toString().indexOf("{{")>=0){W=!0;break}}),{type:Tr.If.Style,styles:v,easing:te,offset:m.offset,containsDynamicStyles:W,options:null}}_validateStyleAst(m,d){const v=d.currentAnimateTimings;let D=d.currentTime,W=d.currentTime;v&&W>0&&(W-=v.duration+v.delay),m.styles.forEach(te=>{"string"!=typeof te&&te.forEach((we,Ye)=>{const yt=d.collectedStyles.get(d.currentQuerySelector),sn=yt.get(Ye);let pn=!0;sn&&(W!=D&&W>=sn.startTime&&D<=sn.endTime&&(d.errors.push(function hi(){return new c.wOt(3010,!1)}()),pn=!1),W=sn.startTime),pn&&yt.set(Ye,{startTime:W,endTime:D}),d.options&&function Yi(_,m,d){const v=m.params||{},D=Ii(_);D.length&&D.forEach(W=>{v.hasOwnProperty(W)||d.push(function P(){return new c.wOt(3001,!1)}())})}(we,d.options,d.errors)})})}visitKeyframes(m,d){const v={type:Tr.If.Keyframes,styles:[],options:null};if(!d.currentAnimateTimings)return d.errors.push(function io(){return new c.wOt(3011,!1)}()),v;let W=0;const te=[];let we=!1,Ye=!1,yt=0;const sn=m.steps.map(go=>{const ls=this._makeStyleAst(go,d);let To=null!=ls.offset?ls.offset:function ih(_){if("string"==typeof _)return null;let m=null;if(Array.isArray(_))_.forEach(d=>{if(d instanceof Map&&d.has("offset")){const v=d;m=parseFloat(v.get("offset")),v.delete("offset")}});else if(_ instanceof Map&&_.has("offset")){const d=_;m=parseFloat(d.get("offset")),d.delete("offset")}return m}(ls.styles),ta=0;return null!=To&&(W++,ta=ls.offset=To),Ye=Ye||ta<0||ta>1,we=we||ta0&&W{const To=Er>0?ls==Zn?1:Er*ls:te[ls],ta=To*yi;d.currentTime=_r+ti.delay+ta,ti.duration=ta,this._validateStyleAst(go,d),go.offset=To,v.styles.push(go)}),v}visitReference(m,d){return{type:Tr.If.Reference,animation:$i(this,Ur(m.animation),d),options:uu(m.options)}}visitAnimateChild(m,d){return d.depCount++,{type:Tr.If.AnimateChild,options:uu(m.options)}}visitAnimateRef(m,d){return{type:Tr.If.AnimateRef,animation:this.visitReference(m.animation,d),options:uu(m.options)}}visitQuery(m,d){const v=d.currentQuerySelector,D=m.options||{};d.queryCount++,d.currentQuery=m;const[W,te]=function Np(_){const m=!!_.split(/\s*,\s*/).find(d=>":self"==d);return m&&(_=_.replace(Ql,"")),_=_.replace(/@\*/g,Wn).replace(/@\w+/g,d=>Wn+"-"+d.slice(1)).replace(/:animating/g,Mn),[_,m]}(m.selector);d.currentQuerySelector=v.length?v+" "+W:W,Aa(d.collectedStyles,d.currentQuerySelector,new Map);const we=$i(this,Ur(m.animation),d);return d.currentQuery=null,d.currentQuerySelector=v,{type:Tr.If.Query,selector:W,limit:D.limit||0,optional:!!D.optional,includeSelf:te,animation:we,originalSelector:m.selector,options:uu(m.options)}}visitStagger(m,d){d.currentQuery||d.errors.push(function Wr(){return new c.wOt(3013,!1)}());const v="full"===m.timings?{duration:0,delay:0,easing:"full"}:ir(m.timings,d.errors,!0);return{type:Tr.If.Stagger,animation:$i(this,Ur(m.animation),d),timings:v,options:null}}}class dd{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(m){this.errors=m}}function uu(_){return _?(_={..._}).params&&(_.params=function Dc(_){return _?{..._}:null}(_.params)):_={},_}function du(_,m,d){return{duration:_,delay:m,easing:d}}function fd(_,m,d,v,D,W,te=null,we=!1){return{type:1,element:_,keyframes:m,preStyleProps:d,postStyleProps:v,duration:D,delay:W,totalTime:D+W,easing:te,subTimeline:we}}class oh{_map=new Map;get(m){return this._map.get(m)||[]}append(m,d){let v=this._map.get(m);v||this._map.set(m,v=[]),v.push(...d)}has(m){return this._map.has(m)}clear(){this._map.clear()}}const hu=new RegExp(":enter","g"),pd=new RegExp(":leave","g");function zc(_,m,d,v,D,W=new Map,te=new Map,we,Ye,yt=[]){return(new ah).buildKeyframes(_,m,d,v,D,W,te,we,Ye,yt)}class ah{buildKeyframes(m,d,v,D,W,te,we,Ye,yt,sn=[]){yt=yt||new oh;const pn=new md(m,d,yt,D,W,sn,[]);pn.options=Ye;const Er=Ye.delay?jn(Ye.delay):0;pn.currentTimeline.delayNextStep(Er),pn.currentTimeline.setStyles([te],null,pn.errors,Ye),$i(this,v,pn);const Zn=pn.timelines.filter(_r=>_r.containsAnimation());if(Zn.length&&we.size){let _r;for(let ti=Zn.length-1;ti>=0;ti--){const yi=Zn[ti];if(yi.element===d){_r=yi;break}}_r&&!_r.allowOnlyTimelineStyles()&&_r.setStyles([we],null,pn.errors,Ye)}return Zn.length?Zn.map(_r=>_r.buildKeyframes()):[fd(d,[],[],[],0,Er,"",!1)]}visitTrigger(m,d){}visitState(m,d){}visitTransition(m,d){}visitAnimateChild(m,d){const v=d.subInstructions.get(d.element);if(v){const D=d.createSubContext(m.options),W=d.currentTimeline.currentTime,te=this._visitSubInstructions(v,D,D.options);W!=te&&d.transformIntoNewTimeline(te)}d.previousNode=m}visitAnimateRef(m,d){const v=d.createSubContext(m.options);v.transformIntoNewTimeline(),this._applyAnimationRefDelays([m.options,m.animation.options],d,v),this.visitReference(m.animation,v),d.transformIntoNewTimeline(v.currentTimeline.currentTime),d.previousNode=m}_applyAnimationRefDelays(m,d,v){for(const D of m){const W=D?.delay;if(W){const te="number"==typeof W?W:jn(Zi(W,D?.params??{},d.errors));v.delayNextStep(te)}}}_visitSubInstructions(m,d,v){let W=d.currentTimeline.currentTime;const te=null!=v.duration?jn(v.duration):null,we=null!=v.delay?jn(v.delay):null;return 0!==te&&m.forEach(Ye=>{const yt=d.appendInstructionToTimeline(Ye,te,we);W=Math.max(W,yt.duration+yt.delay)}),W}visitReference(m,d){d.updateOptions(m.options,!0),$i(this,m.animation,d),d.previousNode=m}visitSequence(m,d){const v=d.subContextCount;let D=d;const W=m.options;if(W&&(W.params||W.delay)&&(D=d.createSubContext(W),D.transformIntoNewTimeline(),null!=W.delay)){D.previousNode.type==Tr.If.Style&&(D.currentTimeline.snapshotCurrentStyles(),D.previousNode=fu);const te=jn(W.delay);D.delayNextStep(te)}m.steps.length&&(m.steps.forEach(te=>$i(this,te,D)),D.currentTimeline.applyStylesToKeyframe(),D.subContextCount>v&&D.transformIntoNewTimeline()),d.previousNode=m}visitGroup(m,d){const v=[];let D=d.currentTimeline.currentTime;const W=m.options&&m.options.delay?jn(m.options.delay):0;m.steps.forEach(te=>{const we=d.createSubContext(m.options);W&&we.delayNextStep(W),$i(this,te,we),D=Math.max(D,we.currentTimeline.currentTime),v.push(we.currentTimeline)}),v.forEach(te=>d.currentTimeline.mergeTimelineCollectedStyles(te)),d.transformIntoNewTimeline(D),d.previousNode=m}_visitTiming(m,d){if(m.dynamic){const v=m.strValue;return ir(d.params?Zi(v,d.params,d.errors):v,d.errors)}return{duration:m.duration,delay:m.delay,easing:m.easing}}visitAnimate(m,d){const v=d.currentAnimateTimings=this._visitTiming(m.timings,d),D=d.currentTimeline;v.delay&&(d.incrementTime(v.delay),D.snapshotCurrentStyles());const W=m.style;W.type==Tr.If.Keyframes?this.visitKeyframes(W,d):(d.incrementTime(v.duration),this.visitStyle(W,d),D.applyStylesToKeyframe()),d.currentAnimateTimings=null,d.previousNode=m}visitStyle(m,d){const v=d.currentTimeline,D=d.currentAnimateTimings;!D&&v.hasCurrentStyleProperties()&&v.forwardFrame();const W=D&&D.easing||m.easing;m.isEmptyStep?v.applyEmptyStep(W):v.setStyles(m.styles,W,d.errors,d.options),d.previousNode=m}visitKeyframes(m,d){const v=d.currentAnimateTimings,D=d.currentTimeline.duration,W=v.duration,we=d.createSubContext().currentTimeline;we.easing=v.easing,m.styles.forEach(Ye=>{we.forwardTime((Ye.offset||0)*W),we.setStyles(Ye.styles,Ye.easing,d.errors,d.options),we.applyStylesToKeyframe()}),d.currentTimeline.mergeTimelineCollectedStyles(we),d.transformIntoNewTimeline(D+W),d.previousNode=m}visitQuery(m,d){const v=d.currentTimeline.currentTime,D=m.options||{},W=D.delay?jn(D.delay):0;W&&(d.previousNode.type===Tr.If.Style||0==v&&d.currentTimeline.hasCurrentStyleProperties())&&(d.currentTimeline.snapshotCurrentStyles(),d.previousNode=fu);let te=v;const we=d.invokeQuery(m.selector,m.originalSelector,m.limit,m.includeSelf,!!D.optional,d.errors);d.currentQueryTotal=we.length;let Ye=null;we.forEach((yt,sn)=>{d.currentQueryIndex=sn;const pn=d.createSubContext(m.options,yt);W&&pn.delayNextStep(W),yt===d.element&&(Ye=pn.currentTimeline),$i(this,m.animation,pn),pn.currentTimeline.applyStylesToKeyframe(),te=Math.max(te,pn.currentTimeline.currentTime)}),d.currentQueryIndex=0,d.currentQueryTotal=0,d.transformIntoNewTimeline(te),Ye&&(d.currentTimeline.mergeTimelineCollectedStyles(Ye),d.currentTimeline.snapshotCurrentStyles()),d.previousNode=m}visitStagger(m,d){const v=d.parentContext,D=d.currentTimeline,W=m.timings,te=Math.abs(W.duration),we=te*(d.currentQueryTotal-1);let Ye=te*d.currentQueryIndex;switch(W.duration<0?"reverse":W.easing){case"reverse":Ye=we-Ye;break;case"full":Ye=v.currentStaggerTime}const sn=d.currentTimeline;Ye&&sn.delayNextStep(Ye);const pn=sn.currentTime;$i(this,m.animation,d),d.previousNode=m,v.currentStaggerTime=D.currentTime-pn+(D.startTime-v.currentTimeline.startTime)}}const fu={};class md{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=fu;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(m,d,v,D,W,te,we,Ye){this._driver=m,this.element=d,this.subInstructions=v,this._enterClassName=D,this._leaveClassName=W,this.errors=te,this.timelines=we,this.currentTimeline=Ye||new Sc(this._driver,d,0),we.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(m,d){if(!m)return;const v=m;let D=this.options;null!=v.duration&&(D.duration=jn(v.duration)),null!=v.delay&&(D.delay=jn(v.delay));const W=v.params;if(W){let te=D.params;te||(te=this.options.params={}),Object.keys(W).forEach(we=>{(!d||!te.hasOwnProperty(we))&&(te[we]=Zi(W[we],te,this.errors))})}}_copyOptions(){const m={};if(this.options){const d=this.options.params;if(d){const v=m.params={};Object.keys(d).forEach(D=>{v[D]=d[D]})}}return m}createSubContext(m=null,d,v){const D=d||this.element,W=new md(this._driver,D,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(D,v||0));return W.previousNode=this.previousNode,W.currentAnimateTimings=this.currentAnimateTimings,W.options=this._copyOptions(),W.updateOptions(m),W.currentQueryIndex=this.currentQueryIndex,W.currentQueryTotal=this.currentQueryTotal,W.parentContext=this,this.subContextCount++,W}transformIntoNewTimeline(m){return this.previousNode=fu,this.currentTimeline=this.currentTimeline.fork(this.element,m),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(m,d,v){const D={duration:d??m.duration,delay:this.currentTimeline.currentTime+(v??0)+m.delay,easing:""},W=new pf(this._driver,m.element,m.keyframes,m.preStyleProps,m.postStyleProps,D,m.stretchStartingKeyframe);return this.timelines.push(W),D}incrementTime(m){this.currentTimeline.forwardTime(this.currentTimeline.duration+m)}delayNextStep(m){m>0&&this.currentTimeline.delayNextStep(m)}invokeQuery(m,d,v,D,W,te){let we=[];if(D&&we.push(this.element),m.length>0){m=(m=m.replace(hu,"."+this._enterClassName)).replace(pd,"."+this._leaveClassName);let yt=this._driver.query(this.element,m,1!=v);0!==v&&(yt=v<0?yt.slice(yt.length+v,yt.length):yt.slice(0,v)),we.push(...yt)}return!W&&0==we.length&&te.push(function hl(){return new c.wOt(3014,!1)}()),we}}class Sc{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(m,d,v,D){this._driver=m,this.element=d,this.startTime=v,this._elementTimelineStylesLookup=D,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(d),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(d,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(m){const d=1===this._keyframes.size&&this._pendingStyles.size;this.duration||d?(this.forwardTime(this.currentTime+m),d&&this.snapshotCurrentStyles()):this.startTime+=m}fork(m,d){return this.applyStylesToKeyframe(),new Sc(this._driver,m,d||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(m){this.applyStylesToKeyframe(),this.duration=m,this._loadKeyframe()}_updateStyle(m,d){this._localTimelineStyles.set(m,d),this._globalTimelineStyles.set(m,d),this._styleSummary.set(m,{time:this.currentTime,value:d})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(m){m&&this._previousKeyframe.set("easing",m);for(let[d,v]of this._globalTimelineStyles)this._backFill.set(d,v||Tr.kp),this._currentKeyframe.set(d,Tr.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(m,d,v,D){d&&this._previousKeyframe.set("easing",d);const W=D&&D.params||{},te=function ch(_,m){const d=new Map;let v;return _.forEach(D=>{if("*"===D){v??=m.keys();for(let W of v)d.set(W,Tr.kp)}else for(let[W,te]of D)d.set(W,te)}),d}(m,this._globalTimelineStyles);for(let[we,Ye]of te){const yt=Zi(Ye,W,v);this._pendingStyles.set(we,yt),this._localTimelineStyles.has(we)||this._backFill.set(we,this._globalTimelineStyles.get(we)??Tr.kp),this._updateStyle(we,yt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((m,d)=>{this._currentKeyframe.set(d,m)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((m,d)=>{this._currentKeyframe.has(d)||this._currentKeyframe.set(d,m)}))}snapshotCurrentStyles(){for(let[m,d]of this._localTimelineStyles)this._pendingStyles.set(m,d),this._updateStyle(m,d)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const m=[];for(let d in this._currentKeyframe)m.push(d);return m}mergeTimelineCollectedStyles(m){m._styleSummary.forEach((d,v)=>{const D=this._styleSummary.get(v);(!D||d.time>D.time)&&this._updateStyle(v,d.value)})}buildKeyframes(){this.applyStylesToKeyframe();const m=new Set,d=new Set,v=1===this._keyframes.size&&0===this.duration;let D=[];this._keyframes.forEach((we,Ye)=>{const yt=new Map([...this._backFill,...we]);yt.forEach((sn,pn)=>{sn===Tr.FX?m.add(pn):sn===Tr.kp&&d.add(pn)}),v||yt.set("offset",Ye/this.duration),D.push(yt)});const W=[...m.values()],te=[...d.values()];if(v){const we=D[0],Ye=new Map(we);we.set("offset",0),Ye.set("offset",1),D=[we,Ye]}return fd(this.element,D,W,te,this.duration,this.startTime,this.easing,!1)}}class pf extends Sc{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(m,d,v,D,W,te,we=!1){super(m,d,te.delay),this.keyframes=v,this.preStyleProps=D,this.postStyleProps=W,this._stretchStartingKeyframe=we,this.timings={duration:te.duration,delay:te.delay,easing:te.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let m=this.keyframes,{delay:d,duration:v,easing:D}=this.timings;if(this._stretchStartingKeyframe&&d){const W=[],te=v+d,we=d/te,Ye=new Map(m[0]);Ye.set("offset",0),W.push(Ye);const yt=new Map(m[0]);yt.set("offset",lh(we)),W.push(yt);const sn=m.length-1;for(let pn=1;pn<=sn;pn++){let Er=new Map(m[pn]);const Zn=Er.get("offset");Er.set("offset",lh((d+Zn*v)/te)),W.push(Er)}v=te,d=0,D="",m=W}return fd(this.element,m,this.preStyleProps,this.postStyleProps,v,d,D,!0)}}function lh(_,m=3){const d=Math.pow(10,m-1);return Math.round(_*d)/d}function pu(_,m,d,v,D,W,te,we,Ye,yt,sn,pn,Er){return{type:0,element:_,triggerName:m,isRemovalTransition:D,fromState:d,fromStyles:W,toState:v,toStyles:te,timelines:we,queriedElements:Ye,preStyleProps:yt,postStyleProps:sn,totalTime:pn,errors:Er}}const Nl={};class mf{_triggerName;ast;_stateStyles;constructor(m,d,v){this._triggerName=m,this.ast=d,this._stateStyles=v}match(m,d,v,D){return function gf(_,m,d,v,D){return _.some(W=>W(m,d,v,D))}(this.ast.matchers,m,d,v,D)}buildStyles(m,d,v){let D=this._stateStyles.get("*");return void 0!==m&&(D=this._stateStyles.get(m?.toString())||D),D?D.buildStyles(d,v):new Map}build(m,d,v,D,W,te,we,Ye,yt,sn){const pn=[],Er=this.ast.options&&this.ast.options.params||Nl,_r=this.buildStyles(v,we&&we.params||Nl,pn),ti=Ye&&Ye.params||Nl,yi=this.buildStyles(D,ti,pn),go=new Set,ls=new Map,To=new Map,ta="void"===D,eu={params:Kc(ti,Er),delay:this.ast.options?.delay},gc=sn?[]:zc(m,d,this.ast.animation,W,te,_r,yi,eu,yt,pn);let na=0;return gc.forEach(Ra=>{na=Math.max(Ra.duration+Ra.delay,na)}),pn.length?pu(d,this._triggerName,v,D,ta,_r,yi,[],[],ls,To,na,pn):(gc.forEach(Ra=>{const jl=Ra.element,Jl=Aa(ls,jl,new Set);Ra.preStyleProps.forEach(Tu=>Jl.add(Tu));const op=Aa(To,jl,new Set);Ra.postStyleProps.forEach(Tu=>op.add(Tu)),jl!==d&&go.add(jl)}),pu(d,this._triggerName,v,D,ta,_r,yi,gc,[...go.values()],ls,To,na))}}function Kc(_,m){const d={...m};return Object.entries(_).forEach(([v,D])=>{null!=D&&(d[v]=D)}),d}class mu{styles;defaultParams;normalizer;constructor(m,d,v){this.styles=m,this.defaultParams=d,this.normalizer=v}buildStyles(m,d){const v=new Map,D=Kc(m,this.defaultParams);return this.styles.styles.forEach(W=>{"string"!=typeof W&&W.forEach((te,we)=>{te&&(te=Zi(te,D,d));const Ye=this.normalizer.normalizePropertyName(we,d);te=this.normalizer.normalizeStyleValue(we,Ye,te,d),v.set(we,te)})}),v}}class Lp{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(m,d,v){this.name=m,this.ast=d,this._normalizer=v,d.states.forEach(D=>{this.states.set(D.name,new mu(D.style,D.options&&D.options.params||{},v))}),gu(this.states,"true","1"),gu(this.states,"false","0"),d.transitions.forEach(D=>{this.transitionFactories.push(new mf(m,D,this.states))}),this.fallbackTransition=function vf(_,m){return new mf(_,{type:Tr.If.Transition,animation:{type:Tr.If.Sequence,steps:[],options:null},matchers:[(te,we)=>!0],options:null,queryCount:0,depCount:0},m)}(m,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(m,d,v,D){return this.transitionFactories.find(te=>te.match(m,d,v,D))||null}matchStyles(m,d,v){return this.fallbackTransition.buildStyles(m,d,v)}}function gu(_,m,d){_.has(m)?_.has(d)||_.set(d,_.get(m)):_.has(d)&&_.set(m,_.get(d))}const Pp=new oh;class dh{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(m,d,v){this.bodyNode=m,this._driver=d,this._normalizer=v}register(m,d){const v=[],W=Ol(this._driver,d,v,[]);if(v.length)throw function rh(){return new c.wOt(3503,!1)}();this._animations.set(m,W)}_buildPlayer(m,d,v){const D=m.element,W=Il(this._normalizer,m.keyframes,d,v);return this._driver.animate(D,W,m.duration,m.delay,m.easing,[],!0)}create(m,d,v={}){const D=[],W=this._animations.get(m);let te;const we=new Map;if(W?(te=zc(this._driver,d,W,An,Zt,new Map,new Map,v,Pp,D),te.forEach(sn=>{const pn=Aa(we,sn.element,new Map);sn.postStyleProps.forEach(Er=>pn.set(Er,null))})):(D.push(function xc(){return new c.wOt(3300,!1)}()),te=[]),D.length)throw function uf(){return new c.wOt(3504,!1)}();we.forEach((sn,pn)=>{sn.forEach((Er,Zn)=>{sn.set(Zn,this._driver.computeStyle(pn,Zn,Tr.kp))})});const yt=Ml(te.map(sn=>{const pn=we.get(sn.element);return this._buildPlayer(sn,new Map,pn)}));return this._playersById.set(m,yt),yt.onDestroy(()=>this.destroy(m)),this.players.push(yt),yt}destroy(m){const d=this._getPlayer(m);d.destroy(),this._playersById.delete(m);const v=this.players.indexOf(d);v>=0&&this.players.splice(v,1)}_getPlayer(m){const d=this._playersById.get(m);if(!d)throw function df(){return new c.wOt(3301,!1)}();return d}listen(m,d,v,D){const W=jc(d,"","","");return fs(this._getPlayer(m),v,W,D),()=>{}}command(m,d,v,D){if("register"==v)return void this.register(m,D[0]);if("create"==v)return void this.create(m,d,D[0]||{});const W=this._getPlayer(m);switch(v){case"play":W.play();break;case"pause":W.pause();break;case"reset":W.reset();break;case"restart":W.restart();break;case"finish":W.finish();break;case"init":W.init();break;case"setPosition":W.setPosition(parseFloat(D[0]));break;case"destroy":this.destroy(m)}}}const $u="ng-animate-queued",gd="ng-animate-disabled",Bp=[],Vu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Up={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},pl="__ng_removed";class fh{namespaceId;value;options;get params(){return this.options.params}constructor(m,d=""){this.namespaceId=d;const v=m&&m.hasOwnProperty("value");if(this.value=function Ts(_){return _??null}(v?m.value:m),v){const{value:W,...te}=m;this.options=te}else this.options={};this.options.params||(this.options.params={})}absorbOptions(m){const d=m.params;if(d){const v=this.options.params;Object.keys(d).forEach(D=>{null==v[D]&&(v[D]=d[D])})}}}const vu="void",ph=new fh(vu);class $p{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(m,d,v){this.id=m,this.hostElement=d,this._engine=v,this._hostClassName="ng-tns-"+m,rl(d,this._hostClassName)}listen(m,d,v,D){if(!this._triggers.has(d))throw function au(){return new c.wOt(3302,!1)}();if(null==v||0==v.length)throw function Lu(){return new c.wOt(3303,!1)}();if(!function jp(_){return"start"==_||"done"==_}(v))throw function ld(){return new c.wOt(3400,!1)}();const W=Aa(this._elementListeners,m,[]),te={name:d,phase:v,callback:D};W.push(te);const we=Aa(this._engine.statesByElement,m,new Map);return we.has(d)||(rl(m,Kn),rl(m,Kn+"-"+d),we.set(d,ph)),()=>{this._engine.afterFlush(()=>{const Ye=W.indexOf(te);Ye>=0&&W.splice(Ye,1),this._triggers.has(d)||we.delete(d)})}}register(m,d){return!this._triggers.has(m)&&(this._triggers.set(m,d),!0)}_getTrigger(m){const d=this._triggers.get(m);if(!d)throw function wn(){return new c.wOt(3401,!1)}();return d}trigger(m,d,v,D=!0){const W=this._getTrigger(d),te=new vd(this.id,d,m);let we=this._engine.statesByElement.get(m);we||(rl(m,Kn),rl(m,Kn+"-"+d),this._engine.statesByElement.set(m,we=new Map));let Ye=we.get(d);const yt=new fh(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&Ye&&yt.absorbOptions(Ye.options),we.set(d,yt),Ye||(Ye=ph),yt.value!==vu&&Ye.value===yt.value){if(!function Ef(_,m){const d=Object.keys(_),v=Object.keys(m);if(d.length!=v.length)return!1;for(let D=0;D{zr(m,yi),Ir(m,go)})}return}const Er=Aa(this._engine.playersByElement,m,[]);Er.forEach(ti=>{ti.namespaceId==this.id&&ti.triggerName==d&&ti.queued&&ti.destroy()});let Zn=W.matchTransition(Ye.value,yt.value,m,yt.params),_r=!1;if(!Zn){if(!D)return;Zn=W.fallbackTransition,_r=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:m,triggerName:d,transition:Zn,fromState:Ye,toState:yt,player:te,isFallbackTransition:_r}),_r||(rl(m,$u),te.onStart(()=>{Gc(m,$u)})),te.onDone(()=>{let ti=this.players.indexOf(te);ti>=0&&this.players.splice(ti,1);const yi=this._engine.playersByElement.get(m);if(yi){let go=yi.indexOf(te);go>=0&&yi.splice(go,1)}}),this.players.push(te),Er.push(te),te}deregister(m){this._triggers.delete(m),this._engine.statesByElement.forEach(d=>d.delete(m)),this._elementListeners.forEach((d,v)=>{this._elementListeners.set(v,d.filter(D=>D.name!=m))})}clearElementCache(m){this._engine.statesByElement.delete(m),this._elementListeners.delete(m);const d=this._engine.playersByElement.get(m);d&&(d.forEach(v=>v.destroy()),this._engine.playersByElement.delete(m))}_signalRemovalForInnerTriggers(m,d){const v=this._engine.driver.query(m,Wn,!0);v.forEach(D=>{if(D[pl])return;const W=this._engine.fetchNamespacesByElement(D);W.size?W.forEach(te=>te.triggerLeaveAnimation(D,d,!1,!0)):this.clearElementCache(D)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(D=>this.clearElementCache(D)))}triggerLeaveAnimation(m,d,v,D){const W=this._engine.statesByElement.get(m),te=new Map;if(W){const we=[];if(W.forEach((Ye,yt)=>{if(te.set(yt,Ye.value),this._triggers.has(yt)){const sn=this.trigger(m,yt,vu,D);sn&&we.push(sn)}}),we.length)return this._engine.markElementAsRemoved(this.id,m,!0,d,te),v&&Ml(we).onDone(()=>this._engine.processLeaveNode(m)),!0}return!1}prepareLeaveAnimationListeners(m){const d=this._elementListeners.get(m),v=this._engine.statesByElement.get(m);if(d&&v){const D=new Set;d.forEach(W=>{const te=W.name;if(D.has(te))return;D.add(te);const Ye=this._triggers.get(te).fallbackTransition,yt=v.get(te)||ph,sn=new fh(vu),pn=new vd(this.id,te,m);this._engine.totalQueuedPlayers++,this._queue.push({element:m,triggerName:te,transition:Ye,fromState:yt,toState:sn,player:pn,isFallbackTransition:!0})})}}removeNode(m,d){const v=this._engine;if(m.childElementCount&&this._signalRemovalForInnerTriggers(m,d),this.triggerLeaveAnimation(m,d,!0))return;let D=!1;if(v.totalAnimations){const W=v.players.length?v.playersByQueriedElement.get(m):[];if(W&&W.length)D=!0;else{let te=m;for(;te=te.parentNode;)if(v.statesByElement.get(te)){D=!0;break}}}if(this.prepareLeaveAnimationListeners(m),D)v.markElementAsRemoved(this.id,m,!1,d);else{const W=m[pl];(!W||W===Vu)&&(v.afterFlush(()=>this.clearElementCache(m)),v.destroyInnerAnimations(m),v._onRemovalComplete(m,d))}}insertNode(m,d){rl(m,this._hostClassName)}drainQueuedTransitions(m){const d=[];return this._queue.forEach(v=>{const D=v.player;if(D.destroyed)return;const W=v.element,te=this._elementListeners.get(W);te&&te.forEach(we=>{if(we.name==v.triggerName){const Ye=jc(W,v.triggerName,v.fromState.value,v.toState.value);Ye._data=m,fs(v.player,we.phase,Ye,we.callback)}}),D.markedForDestroy?this._engine.afterFlush(()=>{D.destroy()}):d.push(v)}),this._queue=[],d.sort((v,D)=>{const W=v.transition.ast.depCount,te=D.transition.ast.depCount;return 0==W||0==te?W-te:this._engine.driver.containsElement(v.element,D.element)?1:-1})}destroy(m){this.players.forEach(d=>d.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,m)}}class bf{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(m,d)=>{};_onRemovalComplete(m,d){this.onRemovalComplete(m,d)}constructor(m,d,v){this.bodyNode=m,this.driver=d,this._normalizer=v}get queuedPlayers(){const m=[];return this._namespaceList.forEach(d=>{d.players.forEach(v=>{v.queued&&m.push(v)})}),m}createNamespace(m,d){const v=new $p(m,d,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,d)?this._balanceNamespaceList(v,d):(this.newHostElements.set(d,v),this.collectEnterElement(d)),this._namespaceLookup[m]=v}_balanceNamespaceList(m,d){const v=this._namespaceList,D=this.namespacesByHostElement;if(v.length-1>=0){let te=!1,we=this.driver.getParentElement(d);for(;we;){const Ye=D.get(we);if(Ye){const yt=v.indexOf(Ye);v.splice(yt+1,0,m),te=!0;break}we=this.driver.getParentElement(we)}te||v.unshift(m)}else v.push(m);return D.set(d,m),m}register(m,d){let v=this._namespaceLookup[m];return v||(v=this.createNamespace(m,d)),v}registerTrigger(m,d,v){let D=this._namespaceLookup[m];D&&D.register(d,v)&&this.totalAnimations++}destroy(m,d){m&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const v=this._fetchNamespace(m);this.namespacesByHostElement.delete(v.hostElement);const D=this._namespaceList.indexOf(v);D>=0&&this._namespaceList.splice(D,1),v.destroy(d),delete this._namespaceLookup[m]}))}_fetchNamespace(m){return this._namespaceLookup[m]}fetchNamespacesByElement(m){const d=new Set,v=this.statesByElement.get(m);if(v)for(let D of v.values())if(D.namespaceId){const W=this._fetchNamespace(D.namespaceId);W&&d.add(W)}return d}trigger(m,d,v,D){if(_d(d)){const W=this._fetchNamespace(m);if(W)return W.trigger(d,v,D),!0}return!1}insertNode(m,d,v,D){if(!_d(d))return;const W=d[pl];if(W&&W.setForRemoval){W.setForRemoval=!1,W.setForMove=!0;const te=this.collectedLeaveElements.indexOf(d);te>=0&&this.collectedLeaveElements.splice(te,1)}if(m){const te=this._fetchNamespace(m);te&&te.insertNode(d,v)}D&&this.collectEnterElement(d)}collectEnterElement(m){this.collectedEnterElements.push(m)}markElementAsDisabled(m,d){d?this.disabledNodes.has(m)||(this.disabledNodes.add(m),rl(m,gd)):this.disabledNodes.has(m)&&(this.disabledNodes.delete(m),Gc(m,gd))}removeNode(m,d,v){if(_d(d)){const D=m?this._fetchNamespace(m):null;D?D.removeNode(d,v):this.markElementAsRemoved(m,d,!1,v);const W=this.namespacesByHostElement.get(d);W&&W.id!==m&&W.removeNode(d,v)}else this._onRemovalComplete(d,v)}markElementAsRemoved(m,d,v,D,W){this.collectedLeaveElements.push(d),d[pl]={namespaceId:m,setForRemoval:D,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:W}}listen(m,d,v,D,W){return _d(d)?this._fetchNamespace(m).listen(d,v,D,W):()=>{}}_buildInstruction(m,d,v,D,W){return m.transition.build(this.driver,m.element,m.fromState.value,m.toState.value,v,D,m.fromState.options,m.toState.options,d,W)}destroyInnerAnimations(m){let d=this.driver.query(m,Wn,!0);d.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(d=this.driver.query(m,Mn,!0),d.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(m){const d=this.playersByElement.get(m);d&&d.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(m){const d=this.playersByQueriedElement.get(m);d&&d.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(m=>{if(this.players.length)return Ml(this.players).onDone(()=>m());m()})}processLeaveNode(m){const d=m[pl];if(d&&d.setForRemoval){if(m[pl]=Vu,d.namespaceId){this.destroyInnerAnimations(m);const v=this._fetchNamespace(d.namespaceId);v&&v.clearElementCache(m)}this._onRemovalComplete(m,d.setForRemoval)}m.classList?.contains(gd)&&this.markElementAsDisabled(m,!1),this.driver.query(m,".ng-animate-disabled",!0).forEach(v=>{this.markElementAsDisabled(v,!1)})}flush(m=-1){let d=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,D)=>this._balanceNamespaceList(v,D)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;vv()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],d.length?Ml(d).onDone(()=>{v.forEach(D=>D())}):v.forEach(D=>D())}}reportError(m){throw function gi(){return new c.wOt(3402,!1)}()}_flushAnimations(m,d){const v=new oh,D=[],W=new Map,te=[],we=new Map,Ye=new Map,yt=new Map,sn=new Set;this.disabledNodes.forEach(ei=>{sn.add(ei);const mi=this.driver.query(ei,".ng-animate-queued",!0);for(let wi=0;wi{const wi=An+ti++;_r.set(mi,wi),ei.forEach(yo=>rl(yo,wi))});const yi=[],go=new Set,ls=new Set;for(let ei=0;eigo.add(yo)):ls.add(mi))}const To=new Map,ta=hc(Er,Array.from(go));ta.forEach((ei,mi)=>{const wi=Zt+ti++;To.set(mi,wi),ei.forEach(yo=>rl(yo,wi))}),m.push(()=>{Zn.forEach((ei,mi)=>{const wi=_r.get(mi);ei.forEach(yo=>Gc(yo,wi))}),ta.forEach((ei,mi)=>{const wi=To.get(mi);ei.forEach(yo=>Gc(yo,wi))}),yi.forEach(ei=>{this.processLeaveNode(ei)})});const eu=[],gc=[];for(let ei=this._namespaceList.length-1;ei>=0;ei--)this._namespaceList[ei].drainQueuedTransitions(d).forEach(wi=>{const yo=wi.player,zs=wi.element;if(eu.push(yo),this.collectedEnterElements.length){const Na=zs[pl];if(Na&&Na.setForMove){if(Na.previousTriggersValues&&Na.previousTriggersValues.has(wi.triggerName)){const Nc=Na.previousTriggersValues.get(wi.triggerName),_l=this.statesByElement.get(wi.element);if(_l&&_l.has(wi.triggerName)){const Um=_l.get(wi.triggerName);Um.value=Nc,_l.set(wi.triggerName,Um)}}return void yo.destroy()}}const Oc=!pn||!this.driver.containsElement(pn,zs),Ms=To.get(zs),Rc=_r.get(zs),bs=this._buildInstruction(wi,v,Rc,Ms,Oc);if(bs.errors&&bs.errors.length)return void gc.push(bs);if(Oc)return yo.onStart(()=>zr(zs,bs.fromStyles)),yo.onDestroy(()=>Ir(zs,bs.toStyles)),void D.push(yo);if(wi.isFallbackTransition)return yo.onStart(()=>zr(zs,bs.fromStyles)),yo.onDestroy(()=>Ir(zs,bs.toStyles)),void D.push(yo);const Gv=[];bs.timelines.forEach(Na=>{Na.stretchStartingKeyframe=!0,this.disabledNodes.has(Na.element)||Gv.push(Na)}),bs.timelines=Gv,v.append(zs,bs.timelines),te.push({instruction:bs,player:yo,element:zs}),bs.queriedElements.forEach(Na=>Aa(we,Na,[]).push(yo)),bs.preStyleProps.forEach((Na,Nc)=>{if(Na.size){let _l=Ye.get(Nc);_l||Ye.set(Nc,_l=new Set),Na.forEach((Um,ap)=>_l.add(ap))}}),bs.postStyleProps.forEach((Na,Nc)=>{let _l=yt.get(Nc);_l||yt.set(Nc,_l=new Set),Na.forEach((Um,ap)=>_l.add(ap))})});if(gc.length){const ei=[];gc.forEach(mi=>{ei.push(function lu(){return new c.wOt(3505,!1)}())}),eu.forEach(mi=>mi.destroy()),this.reportError(ei)}const na=new Map,Ra=new Map;te.forEach(ei=>{const mi=ei.element;v.has(mi)&&(Ra.set(mi,mi),this._beforeAnimationBuild(ei.player.namespaceId,ei.instruction,na))}),D.forEach(ei=>{const mi=ei.element;this._getPreviousPlayers(mi,!1,ei.namespaceId,ei.triggerName,null).forEach(yo=>{Aa(na,mi,[]).push(yo),yo.destroy()})});const jl=yi.filter(ei=>_u(ei,Ye,yt)),Jl=new Map;mh(Jl,this.driver,ls,yt,Tr.kp).forEach(ei=>{_u(ei,Ye,yt)&&jl.push(ei)});const Tu=new Map;Zn.forEach((ei,mi)=>{mh(Tu,this.driver,new Set(ei),Ye,Tr.FX)}),jl.forEach(ei=>{const mi=Jl.get(ei),wi=Tu.get(ei);Jl.set(ei,new Map([...mi?.entries()??[],...wi?.entries()??[]]))});const Bm=[],Kv=[],sp={};te.forEach(ei=>{const{element:mi,player:wi,instruction:yo}=ei;if(v.has(mi)){if(sn.has(mi))return wi.onDestroy(()=>Ir(mi,yo.toStyles)),wi.disabled=!0,wi.overrideTotalTime(yo.totalTime),void D.push(wi);let zs=sp;if(Ra.size>1){let Ms=mi;const Rc=[];for(;Ms=Ms.parentNode;){const bs=Ra.get(Ms);if(bs){zs=bs;break}Rc.push(Ms)}Rc.forEach(bs=>Ra.set(bs,zs))}const Oc=this._buildAnimation(wi.namespaceId,yo,na,W,Tu,Jl);if(wi.setRealPlayer(Oc),zs===sp)Bm.push(wi);else{const Ms=this.playersByElement.get(zs);Ms&&Ms.length&&(wi.parentPlayer=Ml(Ms)),D.push(wi)}}else zr(mi,yo.fromStyles),wi.onDestroy(()=>Ir(mi,yo.toStyles)),Kv.push(wi),sn.has(mi)&&D.push(wi)}),Kv.forEach(ei=>{const mi=W.get(ei.element);if(mi&&mi.length){const wi=Ml(mi);ei.setRealPlayer(wi)}}),D.forEach(ei=>{ei.parentPlayer?ei.syncPlayerEvents(ei.parentPlayer):ei.destroy()});for(let ei=0;ei!Oc.destroyed);zs.length?Ll(this,mi,zs):this.processLeaveNode(mi)}return yi.length=0,Bm.forEach(ei=>{this.players.push(ei),ei.onDone(()=>{ei.destroy();const mi=this.players.indexOf(ei);this.players.splice(mi,1)}),ei.play()}),Bm}afterFlush(m){this._flushFns.push(m)}afterFlushAnimationsDone(m){this._whenQuietFns.push(m)}_getPreviousPlayers(m,d,v,D,W){let te=[];if(d){const we=this.playersByQueriedElement.get(m);we&&(te=we)}else{const we=this.playersByElement.get(m);if(we){const Ye=!W||W==vu;we.forEach(yt=>{yt.queued||!Ye&&yt.triggerName!=D||te.push(yt)})}}return(v||D)&&(te=te.filter(we=>!(v&&v!=we.namespaceId||D&&D!=we.triggerName))),te}_beforeAnimationBuild(m,d,v){const W=d.element,te=d.isRemovalTransition?void 0:m,we=d.isRemovalTransition?void 0:d.triggerName;for(const Ye of d.timelines){const yt=Ye.element,sn=yt!==W,pn=Aa(v,yt,[]);this._getPreviousPlayers(yt,sn,te,we,d.toState).forEach(Zn=>{const _r=Zn.getRealPlayer();_r.beforeDestroy&&_r.beforeDestroy(),Zn.destroy(),pn.push(Zn)})}zr(W,d.fromStyles)}_buildAnimation(m,d,v,D,W,te){const we=d.triggerName,Ye=d.element,yt=[],sn=new Set,pn=new Set,Er=d.timelines.map(_r=>{const ti=_r.element;sn.add(ti);const yi=ti[pl];if(yi&&yi.removedBeforeQueried)return new Tr.sf(_r.duration,_r.delay);const go=ti!==Ye,ls=function Hu(_){const m=[];return Hp(_,m),m}((v.get(ti)||Bp).map(na=>na.getRealPlayer())).filter(na=>!!na.element&&na.element===ti),To=W.get(ti),ta=te.get(ti),eu=Il(this._normalizer,_r.keyframes,To,ta),gc=this._buildPlayer(_r,eu,ls);if(_r.subTimeline&&D&&pn.add(ti),go){const na=new vd(m,we,ti);na.setRealPlayer(gc),yt.push(na)}return gc});yt.forEach(_r=>{Aa(this.playersByQueriedElement,_r.element,[]).push(_r),_r.onDone(()=>function wf(_,m,d){let v=_.get(m);if(v){if(v.length){const D=v.indexOf(d);v.splice(D,1)}0==v.length&&_.delete(m)}return v}(this.playersByQueriedElement,_r.element,_r))}),sn.forEach(_r=>rl(_r,nr));const Zn=Ml(Er);return Zn.onDestroy(()=>{sn.forEach(_r=>Gc(_r,nr)),Ir(Ye,d.toStyles)}),pn.forEach(_r=>{Aa(D,_r,[]).push(Zn)}),Zn}_buildPlayer(m,d,v){return d.length>0?this.driver.animate(m.element,d,m.duration,m.delay,m.easing,v):new Tr.sf(m.duration,m.delay)}}class vd{namespaceId;triggerName;element;_player=new Tr.sf;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(m,d,v){this.namespaceId=m,this.triggerName=d,this.element=v}setRealPlayer(m){this._containsRealPlayer||(this._player=m,this._queuedCallbacks.forEach((d,v)=>{d.forEach(D=>fs(m,v,void 0,D))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(m.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(m){this.totalTime=m}syncPlayerEvents(m){const d=this._player;d.triggerCallback&&m.onStart(()=>d.triggerCallback("start")),m.onDone(()=>this.finish()),m.onDestroy(()=>this.destroy())}_queueEvent(m,d){Aa(this._queuedCallbacks,m,[]).push(d)}onDone(m){this.queued&&this._queueEvent("done",m),this._player.onDone(m)}onStart(m){this.queued&&this._queueEvent("start",m),this._player.onStart(m)}onDestroy(m){this.queued&&this._queueEvent("destroy",m),this._player.onDestroy(m)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(m){this.queued||this._player.setPosition(m)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(m){const d=this._player;d.triggerCallback&&d.triggerCallback(m)}}function _d(_){return _&&1===_.nodeType}function Vp(_,m){const d=_.style.display;return _.style.display=m??"none",d}function mh(_,m,d,v,D){const W=[];d.forEach(Ye=>W.push(Vp(Ye)));const te=[];v.forEach((Ye,yt)=>{const sn=new Map;Ye.forEach(pn=>{const Er=m.computeStyle(yt,pn,D);sn.set(pn,Er),(!Er||0==Er.length)&&(yt[pl]=Up,te.push(yt))}),_.set(yt,sn)});let we=0;return d.forEach(Ye=>Vp(Ye,W[we++])),te}function hc(_,m){const d=new Map;if(_.forEach(we=>d.set(we,[])),0==m.length)return d;const D=new Set(m),W=new Map;function te(we){if(!we)return 1;let Ye=W.get(we);if(Ye)return Ye;const yt=we.parentNode;return Ye=d.has(yt)?yt:D.has(yt)?1:te(yt),W.set(we,Ye),Ye}return m.forEach(we=>{const Ye=te(we);1!==Ye&&d.get(Ye).push(we)}),d}function rl(_,m){_.classList?.add(m)}function Gc(_,m){_.classList?.remove(m)}function Ll(_,m,d){Ml(d).onDone(()=>_.processLeaveNode(m))}function Hp(_,m){for(let d=0;d<_.length;d++){const v=_[d];v instanceof Tr.ui?Hp(v.players,m):m.push(v)}}function _u(_,m,d){const v=d.get(_);if(!v)return!1;let D=m.get(_);return D?v.forEach(W=>D.add(W)):m.set(_,v),d.delete(_),!0}class il{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(m,d)=>{};constructor(m,d,v){this._driver=d,this._normalizer=v,this._transitionEngine=new bf(m.body,d,v),this._timelineEngine=new dh(m.body,d,v),this._transitionEngine.onRemovalComplete=(D,W)=>this.onRemovalComplete(D,W)}registerTrigger(m,d,v,D,W){const te=m+"-"+D;let we=this._triggerCache[te];if(!we){const Ye=[],sn=Ol(this._driver,W,Ye,[]);if(Ye.length)throw function lf(){return new c.wOt(3404,!1)}();we=function As(_,m,d){return new Lp(_,m,d)}(D,sn,this._normalizer),this._triggerCache[te]=we}this._transitionEngine.registerTrigger(d,D,we)}register(m,d){this._transitionEngine.register(m,d)}destroy(m,d){this._transitionEngine.destroy(m,d)}onInsert(m,d,v,D){this._transitionEngine.insertNode(m,d,v,D)}onRemove(m,d,v){this._transitionEngine.removeNode(m,d,v)}disableAnimations(m,d){this._transitionEngine.markElementAsDisabled(m,d)}process(m,d,v,D){if("@"==v.charAt(0)){const[W,te]=hf(v);this._timelineEngine.command(W,d,te,D)}else this._transitionEngine.trigger(m,d,v,D)}listen(m,d,v,D,W){if("@"==v.charAt(0)){const[te,we]=hf(v);return this._timelineEngine.listen(te,d,we,W)}return this._transitionEngine.listen(m,d,v,D,W)}flush(m=-1){this._transitionEngine.flush(m)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(m){this._transitionEngine.afterFlushAnimationsDone(m)}}let gh=(()=>{class _{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(d,v,D){this._element=d,this._startStyles=v,this._endStyles=D;let W=_.initialStylesByElement.get(d);W||_.initialStylesByElement.set(d,W=new Map),this._initialStyles=W}start(){this._state<1&&(this._startStyles&&Ir(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ir(this._element,this._initialStyles),this._endStyles&&(Ir(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(_.initialStylesByElement.delete(this._element),this._startStyles&&(zr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zr(this._element,this._endStyles),this._endStyles=null),Ir(this._element,this._initialStyles),this._state=3)}}return _})();function Pl(_){let m=null;return _.forEach((d,v)=>{(function yu(_){return"display"===_||"position"===_})(v)&&(m=m||new Map,m.set(v,d))}),m}class yd{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(m,d,v,D){this.element=m,this.keyframes=d,this.options=v,this._specialStyles=D,this._duration=v.duration,this._delay=v.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(m=>m()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const m=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,m,this.options),this._finalKeyframe=m.length?m[m.length-1]:new Map;const d=()=>this._onFinish();this.domPlayer.addEventListener("finish",d),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",d)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(m){const d=[];return m.forEach(v=>{d.push(Object.fromEntries(v))}),d}_triggerWebAnimation(m,d,v){return m.animate(this._convertKeyframesToObject(d),v)}onStart(m){this._originalOnStartFns.push(m),this._onStartFns.push(m)}onDone(m){this._originalOnDoneFns.push(m),this._onDoneFns.push(m)}onDestroy(m){this._onDestroyFns.push(m)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(m=>m()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(m=>m()),this._onDestroyFns=[])}setPosition(m){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=m*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const m=new Map;this.hasStarted()&&this._finalKeyframe.forEach((v,D)=>{"offset"!==D&&m.set(D,this._finished?v:mo(this.element,D))}),this.currentSnapshot=m}triggerCallback(m){const d="start"===m?this._onStartFns:this._onDoneFns;d.forEach(v=>v()),d.length=0}}class Wu{validateStyleProperty(m){return!0}validateAnimatableStyleProperty(m){return!0}containsElement(m,d){return R(m,d)}getParentElement(m){return Fu(m)}query(m,d,v){return U(m,d,v)}computeStyle(m,d,v){return mo(m,d)}animate(m,d,v,D,W,te=[]){const Ye={duration:v,delay:D,fill:0==D?"both":"forwards"};W&&(Ye.easing=W);const yt=new Map,sn=te.filter(Zn=>Zn instanceof yd);(function jr(_,m){return 0===_||0===m})(v,D)&&sn.forEach(Zn=>{Zn.currentSnapshot.forEach((_r,ti)=>yt.set(ti,_r))});let pn=function dr(_){return _.length?_[0]instanceof Map?_:_.map(m=>new Map(Object.entries(m))):[]}(d).map(Zn=>new Map(Zn));pn=function Fi(_,m,d){if(d.size&&m.length){let v=m[0],D=[];if(d.forEach((W,te)=>{v.has(te)||D.push(te),v.set(te,W)}),D.length)for(let W=1;Wte.set(we,mo(_,we)))}}return m}(m,pn,yt);const Er=function Wp(_,m){let d=null,v=null;return Array.isArray(m)&&m.length?(d=Pl(m[0]),m.length>1&&(v=Pl(m[m.length-1]))):m instanceof Map&&(d=Pl(m)),d||v?new gh(_,d,v):null}(m,pn);return new yd(m,pn,Ye,Er)}}const xf="@.disabled";class Vo{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(m,d,v,D){this.namespaceId=m,this.delegate=d,this.engine=v,this._onDestroy=D}get data(){return this.delegate.data}destroyNode(m){this.delegate.destroyNode?.(m)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(m,d){return this.delegate.createElement(m,d)}createComment(m){return this.delegate.createComment(m)}createText(m){return this.delegate.createText(m)}appendChild(m,d){this.delegate.appendChild(m,d),this.engine.onInsert(this.namespaceId,d,m,!1)}insertBefore(m,d,v,D=!0){this.delegate.insertBefore(m,d,v),this.engine.onInsert(this.namespaceId,d,m,D)}removeChild(m,d,v){this.parentNode(d)&&this.engine.onRemove(this.namespaceId,d,this.delegate)}selectRootElement(m,d){return this.delegate.selectRootElement(m,d)}parentNode(m){return this.delegate.parentNode(m)}nextSibling(m){return this.delegate.nextSibling(m)}setAttribute(m,d,v,D){this.delegate.setAttribute(m,d,v,D)}removeAttribute(m,d,v){this.delegate.removeAttribute(m,d,v)}addClass(m,d){this.delegate.addClass(m,d)}removeClass(m,d){this.delegate.removeClass(m,d)}setStyle(m,d,v,D){this.delegate.setStyle(m,d,v,D)}removeStyle(m,d,v){this.delegate.removeStyle(m,d,v)}setProperty(m,d,v){"@"==d.charAt(0)&&d==xf?this.disableAnimations(m,!!v):this.delegate.setProperty(m,d,v)}setValue(m,d){this.delegate.setValue(m,d)}listen(m,d,v){return this.delegate.listen(m,d,v)}disableAnimations(m,d){this.engine.disableAnimations(m,d)}}class Cf extends Vo{factory;constructor(m,d,v,D,W){super(d,v,D,W),this.factory=m,this.namespaceId=d}setProperty(m,d,v){"@"==d.charAt(0)?"."==d.charAt(1)&&d==xf?this.disableAnimations(m,v=void 0===v||!!v):this.engine.process(this.namespaceId,m,d.slice(1),v):this.delegate.setProperty(m,d,v)}listen(m,d,v){if("@"==d.charAt(0)){const D=function vh(_){switch(_){case"body":return document.body;case"document":return document;case"window":return window;default:return _}}(m);let W=d.slice(1),te="";return"@"!=W.charAt(0)&&([W,te]=function _h(_){const m=_.indexOf(".");return[_.substring(0,m),_.slice(m+1)]}(W)),this.engine.listen(this.namespaceId,D,W,te,we=>{this.factory.scheduleListenerCallback(we._data||-1,v,we)})}return this.delegate.listen(m,d,v)}}class yh{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(m,d,v){this.delegate=m,this.engine=d,this._zone=v,d.onRemovalComplete=(D,W)=>{W?.removeChild(null,D)}}createRenderer(m,d){const D=this.delegate.createRenderer(m,d);if(!m||!d?.data?.animation){const yt=this._rendererCache;let sn=yt.get(D);return sn||(sn=new Vo("",D,this.engine,()=>yt.delete(D)),yt.set(D,sn)),sn}const W=d.id,te=d.id+"-"+this._currentId;this._currentId++,this.engine.register(te,m);const we=yt=>{Array.isArray(yt)?yt.forEach(we):this.engine.registerTrigger(W,te,m,yt.name,yt)};return d.data.animation.forEach(we),new Cf(this,te,D,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(m,d,v){if(m>=0&&md(v));const D=this._animationCallbacksBuffer;0==D.length&&queueMicrotask(()=>{this._zone.run(()=>{D.forEach(W=>{const[te,we]=W;te(we)}),this._animationCallbacksBuffer=[]})}),D.push([d,v])}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 wd=[{provide:Be,useFactory:function Df(){return new gs}},{provide:il,useClass:(()=>{class _ extends il{constructor(d,v,D){super(d,v,D)}ngOnDestroy(){this.flush()}static \u0275fac=function(v){return new(v||_)(c.KVO(st.qQ),c.KVO(Ae),c.KVO(Be))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})()},{provide:c._9s,useFactory:function Sf(_,m,d){return new yh(_,m,d)},deps:[i.B7,il,c.SKi]}],wh=[{provide:Ae,useFactory:()=>new Wu},{provide:c.bc$,useValue:"BrowserAnimations"},...wd];var Ed=r(9030),xd=r(3726),bg=r(8793),Ka=r(1413),Gp=r(5343);const Yc=new S.c(Gp.l);var ml=r(7786),Tc=r(6648),Vs=r(6354),Tf=r(17),Cd=r(8071),bu=r(8750),xh=r(9974);const Dh={connector:()=>new Ka.B};function wu(_,m=Dh){const{connector:d}=m;return(0,xh.N)((v,D)=>{const W=d();(0,bu.Tg)(_(function Ch(_){return new S.c(m=>_.subscribe(m))}(W))).subscribe(D),D.add(v.subscribe(W))})}var Mc=r(8141);const Zl="Service workers are disabled or not supported by this browser";class Eu{serviceWorker;worker;registration;events;constructor(m){if(this.serviceWorker=m,m){const v=(0,xd.R)(m,"controllerchange").pipe((0,Vs.T)(()=>m.controller)),D=(0,Ed.v)(()=>(0,I.of)(m.controller)),W=(0,bg.x)(D,v);this.worker=W.pipe((0,ht.p)(sn=>!!sn)),this.registration=this.worker.pipe((0,me.n)(()=>m.getRegistration()));const yt=(0,xd.R)(m,"message").pipe((0,Vs.T)(sn=>sn.data)).pipe((0,ht.p)(sn=>sn&&sn.type)).pipe(function Sh(_){return _?m=>wu(_)(m):m=>function zu(_,m){const d=(0,Cd.T)(_)?_:()=>_;return(0,Cd.T)(m)?wu(m,{connector:d}):v=>new Tf.G(v,d)}(new Ka.B)(m)}());yt.connect(),this.events=yt}else this.worker=this.events=this.registration=function Yp(_){return(0,Ed.v)(()=>(0,T.$)(new Error(_)))}(Zl)}postMessage(m,d){return this.worker.pipe((0,A.s)(1),(0,Mc.M)(v=>{v.postMessage({action:m,...d})})).toPromise().then(()=>{})}postMessageWithOperation(m,d,v){const D=this.waitForOperationCompleted(v),W=this.postMessage(m,d);return Promise.all([W,D]).then(([,te])=>te)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(m){let d;return d="string"==typeof m?v=>v.type===m:v=>m.includes(v.type),this.events.pipe((0,ht.p)(d))}nextEventOfType(m){return this.eventsOfType(m).pipe((0,A.s)(1))}waitForOperationCompleted(m){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,ht.p)(d=>d.nonce===m),(0,A.s)(1),(0,Vs.T)(d=>{if(void 0!==d.result)return d.result;throw new Error(d.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Mf=(()=>{class _{sw;messages;notificationClicks;subscription;get isEnabled(){return this.sw.isEnabled}pushManager=null;subscriptionChanges=new Ka.B;constructor(d){if(this.sw=d,!d.isEnabled)return this.messages=Yc,this.notificationClicks=Yc,void(this.subscription=Yc);this.messages=this.sw.eventsOfType("PUSH").pipe((0,Vs.T)(D=>D.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,Vs.T)(D=>D.data)),this.pushManager=this.sw.registration.pipe((0,Vs.T)(D=>D.pushManager));const v=this.pushManager.pipe((0,me.n)(D=>D.getSubscription()));this.subscription=(0,ml.h)(v,this.subscriptionChanges)}requestSubscription(d){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(Zl));const v={userVisibleOnly:!0};let D=this.decodeBase64(d.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),W=new Uint8Array(new ArrayBuffer(D.length));for(let te=0;tete.subscribe(v)),(0,A.s)(1)).toPromise().then(te=>(this.subscriptionChanges.next(te),te))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,A.s)(1),(0,me.n)(v=>{if(null===v)throw new Error("Not subscribed to push notifications.");return v.unsubscribe().then(D=>{if(!D)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Zl))}decodeBase64(d){return atob(d)}static \u0275fac=function(v){return new(v||_)(c.KVO(Eu))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})(),Ku=(()=>{class _{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled}constructor(d){if(this.sw=d,!d.isEnabled)return this.versionUpdates=Yc,void(this.unrecoverable=Yc);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(Zl));const d=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:d},d)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Zl));const d=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:d},d)}static \u0275fac=function(v){return new(v||_)(c.KVO(Eu))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();const Gu=new c.nKC("");function If(_,m,d,v){return()=>{if(!(0,st.UE)(v)||!("serviceWorker"in navigator)||!1===d.enabled)return;const D=_.get(c.SKi),W=_.get(c.o8S);let te;if(D.runOutsideAngular(()=>{const we=navigator.serviceWorker,Ye=()=>we.controller?.postMessage({action:"INITIALIZE"});we.addEventListener("controllerchange",Ye),W.onDestroy(()=>{we.removeEventListener("controllerchange",Ye)})}),"function"==typeof d.registrationStrategy)te=d.registrationStrategy();else{const[we,...Ye]=(d.registrationStrategy||"registerWhenStable:30000").split(":");switch(we){case"registerImmediately":te=(0,I.of)(null);break;case"registerWithDelay":te=Ah(+Ye[0]||0);break;case"registerWhenStable":const yt=(0,Tc.H)(_.get(c.o8S).whenStable());te=Ye[0]?(0,ml.h)(yt,Ah(+Ye[0])):yt;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${d.registrationStrategy}`)}}D.runOutsideAngular(()=>te.pipe((0,A.s)(1)).subscribe(()=>navigator.serviceWorker.register(m,{scope:d.scope}).catch(we=>console.error("Service worker registration failed with:",we))))}}function Ah(_){return(0,I.of)(null).pipe((0,be.c)(_))}function Ta(_,m){return new Eu((0,st.UE)(m)&&!1!==_.enabled?navigator.serviceWorker:void 0)}class Qc{enabled;scope;registrationStrategy}var Xu=r(7468),b=r(2498),x=r(9437),M=r(4668),z=r(4572),J=r(983);function ye(_){return _&&_.constructor&&"function"==typeof _.constructor.isBuffer&&_.constructor.isBuffer(_)}function Ne(_){return _}function Ue(_,m){const d=(m=m||{}).delimiter||".",v=m.maxDepth,D=m.transformKey||Ne,W={};return function te(we,Ye,yt){yt=yt||1,Object.keys(we).forEach(function(sn){const pn=we[sn],Er=m.safe&&Array.isArray(pn),Zn=Object.prototype.toString.call(pn),_r=ye(pn),ti="[object Object]"===Zn||"[object Array]"===Zn,yi=Ye?Ye+d+D(sn):D(sn);if(!Er&&!_r&&ti&&Object.keys(pn).length&&(!m.maxDepth||yt0&&(Er=we(pn.shift()),Zn=we(pn[0]))}_r[Er]=rt(_[sn],m)}),W}class xt{translations;constructor(m){this.translations=m}getTranslation(m){return(0,I.of)(this.translations.get(m)||{})}}const zt=new c.nKC("TRANSLOCO_LOADER");function jt(_,m){return _&&(Object.prototype.hasOwnProperty.call(_,m)?_[m]:m.split(".").reduce((d,v)=>d?.[v],_))}function gn(_){return _?Array.isArray(_)?_.length:Tn(_)?Object.keys(_).length:_?_.length:0:0}function qt(_){return"string"==typeof _}function Tn(_){return!!_&&"object"==typeof _&&!Array.isArray(_)}function br(_){return null==_}function Nr(_){return!1===br(_)}function Ci(_){return _&&"string"==typeof _.scope}function ji(_){return Ue(_,{safe:!0})}const qi=new c.nKC("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>er}),er={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};function wr(_={}){return{...er,..._,missingHandler:{...er.missingHandler,..._.missingHandler},flatten:{...er.flatten,..._.flatten}}}const Zr=new c.nKC("TRANSLOCO_TRANSPILER");let pi=(()=>{class _{interpolationMatcher;constructor(d){this.interpolationMatcher=function xr(_){const[m,d]=_.interpolation;return new RegExp(`${m}(.*?)${d}`,"g")}(d??er)}transpile(d,v={},D,W){return qt(d)?d.replace(this.interpolationMatcher,(te,we)=>(we=we.trim(),Nr(v[we])?v[we]:Nr(D[we])?this.transpile(D[we],v,D,W):"")):(v&&(Tn(d)?d=this.handleObject(d,v,D,W):Array.isArray(d)&&(d=this.handleArray(d,v,D,W))),d)}handleObject(d,v={},D,W){let te=d;return Object.keys(v).forEach(we=>{const Ye=jt(te,we),yt=jt(v,we),sn=this.transpile(Ye,yt,D,W);te=function cn(_,m,d){_={..._};const v=m.split("."),D=v.length-1;return v.reduce((W,te,we)=>(W[te]=we===D?d:Array.isArray(W[te])?W[te].slice():{...W[te]},W&&W[te]),_),_}(te,we,sn)}),te}handleArray(d,v={},D,W){return d.map(te=>this.transpile(te,v,D,W))}static \u0275fac=function(v){return new(v||_)(c.KVO(qi,8))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();const Ri=new c.nKC("TRANSLOCO_MISSING_HANDLER");let Hs=(()=>{class _{handle(d,v){return v.missingHandler.logMissingKey&&!v.prodMode&&console.warn(`%c Missing translation for '${d}'`,"font-size: 12px; color: red"),d}static \u0275fac=function(v){return new(v||_)};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();const Ws=new c.nKC("TRANSLOCO_INTERCEPTOR");let Ma=(()=>{class _{preSaveTranslation(d){return d}preSaveTranslationKey(d,v){return v}static \u0275fac=function(v){return new(v||_)};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();const gl=new c.nKC("TRANSLOCO_FALLBACK_STRATEGY");let Ad,Ia=(()=>{class _{userConfig;constructor(d){this.userConfig=d}getNextLangs(){const d=this.userConfig.fallbackLang;if(!d)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(d)?d:[d]}static \u0275fac=function(v){return new(v||_)(c.KVO(qi))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac})}return _})();function Ga(_){if(!_)return"";const m=_.split("/");return m.pop(),m.join("/")}function vs(_){return _?_.split("/").pop():""}function Cu(_){return{scope:Ga(_)||null,langName:vs(_)}}function Yu(_){const{path:m,inlineLoader:d,mainLoader:v,data:D}=_;if(d){if(!1===function Yt(_){return"function"==typeof _}(d[m]))throw`You're using an inline loader but didn't provide a loader for ${m}`;return d[m]().then(te=>te.default?te.default:te)}return v.getTranslation(m,D)}let Td=(()=>{class _{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 Ka.B;events$=this.events.asObservable();config;constructor(d,v,D,W,te,we){this.loader=d,this.parser=v,this.missingHandler=D,this.interceptor=W,this.fallbackStrategy=we,this.loader||(this.loader=new xt(this.translations)),Ad=this,this.config=JSON.parse(JSON.stringify(te)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new Re.t(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.subscription=this.events$.subscribe(Ye=>{"translationLoadSuccess"===Ye.type&&Ye.wasFailure&&this.setActiveLang(Ye.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(d){this.defaultLang=d}getActiveLang(){return this.lang.getValue()}setActiveLang(d){return this.parser.onLangChanged?.(d),this.lang.next(d),this.events.next({type:"langChanged",payload:Cu(d)}),this}setAvailableLangs(d){this.availableLangs=d}getAvailableLangs(){return this.availableLangs}load(d,v={}){const D=this.cache.get(d);if(D)return D;let W;const te=this._isLangScoped(d);let we;te&&(we=Ga(d));const Ye={path:d,mainLoader:this.loader,inlineLoader:v.inlineLoader,data:te?{scope:we}:void 0};if(this.useFallbackTranslation(d)){const sn=te?`${we}/${this.firstFallbackLang}`:this.firstFallbackLang,pn=function Sd({mainLoader:_,path:m,data:d,fallbackPath:v,inlineLoader:D}){return(v?[m,v]:[m]).map(te=>{const we=Yu({path:te,mainLoader:_,inlineLoader:D,data:d});return(0,Tc.H)(we).pipe((0,Vs.T)(Ye=>({translation:Ye,lang:te})))})}({...Ye,fallbackPath:sn});W=(0,Xu.p)(pn)}else{const sn=Yu(Ye);W=(0,Tc.H)(sn)}const yt=W.pipe((0,b.L)(this.config.failedRetries),(0,Mc.M)(sn=>{Array.isArray(sn)?sn.forEach(pn=>{this.handleSuccess(pn.lang,pn.translation),pn.lang!==d&&this.cache.set(pn.lang,(0,I.of)({}))}):this.handleSuccess(d,sn)}),(0,x.W)(sn=>(this.config.prodMode||console.error(`Error while trying to load "${d}"`,sn),this.handleFailure(d,v))),(0,M.t)(1));return this.cache.set(d,yt),yt}translate(d,v={},D=this.getActiveLang()){if(!d)return d;const{scope:W,resolveLang:te}=this.resolveLangAndScope(D);if(Array.isArray(d))return d.map(yt=>this.translate(W?`${W}.${yt}`:yt,v,te));d=W?`${W}.${d}`:d;const we=this.getTranslation(te),Ye=we[d];return Ye?this.parser.transpile(Ye,v,we,d):this._handleMissingKey(d,Ye,v)}selectTranslate(d,v,D,W=!1){let te;const we=(yt,sn)=>this.load(yt,sn).pipe((0,Vs.T)(()=>W?this.translateObject(d,v,yt):this.translate(d,v,yt)));if(br(D))return this.langChanges$.pipe((0,me.n)(yt=>we(yt)));if(function fi(_){return Array.isArray(_)&&_.every(Ci)}(D)||Ci(D)){const yt=Array.isArray(D)?D[0]:D;D=yt.scope,te=function xu(_,m){return function li(_){return _&&Tn(_.loader)}(_)?function Bl(_,m){return Object.keys(_).reduce((d,v)=>(d[`${m}/${v}`]=_[v],d),{})}(_.loader,m):void 0}(yt,yt.scope)}if(this.isLang(D)||this.isScopeWithLang(D))return we(D);const Ye=D;return this.langChanges$.pipe((0,me.n)(yt=>we(`${Ye}/${yt}`,{inlineLoader:te})))}isScopeWithLang(d){return this.isLang(vs(d))}translateObject(d,v={},D=this.getActiveLang()){if(qt(d)||Array.isArray(d)){const{resolveLang:te,scope:we}=this.resolveLangAndScope(D);if(Array.isArray(d))return d.map(sn=>this.translateObject(we?`${we}.${sn}`:sn,v,te));const Ye=this.getTranslation(te),yt=function Ji(_){return rt(_)}(this.getObjectByKey(Ye,d=we?`${we}.${d}`:d));return function tn(_){return 0===gn(_)}(yt)?this.translate(d,v,D):this.parser.transpile(yt,v,Ye,d)}const W=[];for(const[te,we]of this.getEntries(d))W.push(this.translateObject(te,we,D));return W}selectTranslateObject(d,v,D){if(qt(d)||Array.isArray(d))return this.selectTranslate(d,v,D,!0);const[[W,te],...we]=this.getEntries(d);return this.selectTranslateObject(W,te,D).pipe((0,Vs.T)(Ye=>{const yt=[Ye];for(const[sn,pn]of we)yt.push(this.translateObject(sn,pn,D));return yt}))}getTranslation(d){if(d){if(this.isLang(d))return this.translations.get(d)||{};{const{scope:v,resolveLang:D}=this.resolveLangAndScope(d),W=this.translations.get(D)||{};return this.getObjectByKey(W,v)}}return this.translations}selectTranslation(d){let v=this.langChanges$;if(d){const D=vs(d)!==d;v=this.isLang(d)||D?(0,I.of)(d):this.langChanges$.pipe((0,Vs.T)(W=>`${d}/${W}`))}return v.pipe((0,me.n)(D=>this.load(D).pipe((0,Vs.T)(()=>this.getTranslation(D)))))}setTranslation(d,v=this.getActiveLang(),D={}){const te={merge:!0,emitChange:!0,...D},we=Ga(v);let Ye=d;if(we){const Zn=this.getMappedScope(we);Ye=ji({[Zn]:d})}const yt=we?vs(v):v,sn={...te.merge&&this.getTranslation(yt),...Ye},pn=this.config.flatten.aot?sn:ji(sn),Er=this.interceptor.preSaveTranslation(pn,yt);this.translations.set(yt,Er),te.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(d,v,D=this.getActiveLang(),W={}){const te=this.interceptor.preSaveTranslationKey(d,v,D);this.setTranslation({[d]:te},D,{...W,merge:!0})}setFallbackLangForMissingTranslation({fallbackLang:d}){const v=Array.isArray(d)?d[0]:d;d&&this.useFallbackTranslation(v)&&(this.firstFallbackLang=v)}_handleMissingKey(d,v,D){if(this.config.missingHandler.allowEmpty&&""===v)return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;const W=this.translate(d,D,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,W}return this.missingHandler.handle(d,this.getMissingHandlerData(),D)}_isLangScoped(d){return-1===this.getAvailableLangsIds().indexOf(d)}isLang(d){return-1!==this.getAvailableLangsIds().indexOf(d)}_loadDependencies(d,v){const D=vs(d);return this._isLangScoped(d)&&!this.isLoadedTranslation(D)?(0,z.z)([this.load(D),this.load(d,{inlineLoader:v})]):this.load(d,{inlineLoader:v})}_completeScopeWithLang(d){return this._isLangScoped(d)&&!this.isLang(vs(d))?`${d}/${this.getActiveLang()}`:d}_setScopeAlias(d,v){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[d]=v}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.cache.clear()}isLoadedTranslation(d){return gn(this.getTranslation(d))}getAvailableLangsIds(){return qt(this.getAvailableLangs()[0])?this.getAvailableLangs():this.getAvailableLangs().map(v=>v.id)}getMissingHandlerData(){return{...this.config,activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang}}useFallbackTranslation(d){return this.config.missingHandler.useFallbackTranslation&&d!==this.firstFallbackLang}handleSuccess(d,v){this.setTranslation(v,d,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:Cu(d)}),this.failedLangs.forEach(D=>this.cache.delete(D)),this.failedLangs.clear()}handleFailure(d,v){br(v.failedCounter)&&(v.failedCounter=0,v.fallbackLangs||(v.fallbackLangs=this.fallbackStrategy.getNextLangs(d)));const D=d.split("/"),te=v.fallbackLangs[v.failedCounter];if(this.failedLangs.add(d),this.cache.has(te))return this.handleSuccess(te,this.getTranslation(te)),J.w;if(!te||te===D[D.length-1]){let yt="Unable to load translation and all the fallback languages";throw D.length>1&&(yt+=", did you misspelled the scope name?"),new Error(yt)}let Ye=te;return D.length>1&&(D[D.length-1]=te,Ye=D.join("/")),v.failedCounter++,this.events.next({type:"translationLoadFailure",payload:Cu(d)}),this.load(Ye,v)}getMappedScope(d){const{scopeMapping:v={}}=this.config;return v[d]||function ar(_){return _.replace(/(?:^\w|[A-Z]|\b\w)/g,(m,d)=>0==d?m.toLowerCase():m.toUpperCase()).replace(/\s+|_|-|\//g,"")}(d)}resolveLangAndScope(d){let D,v=d;if(this._isLangScoped(d)){const W=vs(d),te=this.isLang(W);v=te?W:this.getActiveLang(),D=this.getMappedScope(te?Ga(d):d)}return{scope:D,resolveLang:v}}getObjectByKey(d,v){const D={},W=`${v}.`;for(const te in d)te.startsWith(W)&&(D[te.replace(W,"")]=d[te]);return D}getEntries(d){return d instanceof Map?d.entries():Object.entries(d)}static \u0275fac=function(v){return new(v||_)(c.KVO(zt,8),c.KVO(Zr),c.KVO(Ri),c.KVO(Ws),c.KVO(qi),c.KVO(gl))};static \u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})();function Ag(_){return(0,c.EmA)([{provide:Zr,useClass:_,deps:[qi]}])}function Zp(_){return(0,c.EmA)([{provide:gl,useClass:_,deps:[qi]}])}function qp(_){return(0,c.EmA)([{provide:Ri,useClass:_}])}function Oh(_){return(0,c.EmA)([{provide:Ws,useClass:_}])}new c.nKC("TRANSLOCO_LANG"),new c.nKC("TRANSLOCO_LOADING_TEMPLATE"),new c.nKC("TRANSLOCO_SCOPE"),new c.nKC("TRANSLOCO_TEST_LANGS - Available testing languages"),new c.nKC("TRANSLOCO_TEST_OPTIONS - Testing options");var Ig=r(2771);let Qu=(()=>{class _{constructor(){this._httpClient=(0,c.WQX)(ne.Qq),this._navigation=new Ig.m(1)}get navigation$(){return this._navigation.asObservable()}get(){return this._httpClient.get("api/navigation").pipe((0,Mc.M)(d=>{this._navigation.next(d)}))}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})(),Q_=(()=>{class _{constructor(d){this._httpClient=d,this._chat=new Re.t(null),this._chats=new Re.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,Mc.M)(d=>{this._chats.next(d)}))}getChatById(d){return this._httpClient.get("api/apps/chat/chat",{params:{id:d}}).pipe((0,Vs.T)(v=>(this._chat.next(v),v)),(0,me.n)(v=>v?(0,I.of)(v):(0,T.$)("Could not found chat with id of "+d+"!")))}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(ne.Qq))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();const _s=new class pw{constructor(m){this.version=m,this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}("0.0.13").full;var vl=r(6977),Z_=r(4085),ys=r(7575);function Rh(_,m){if(1&_&&c.nrm(0,"mat-progress-bar",0),2&_){const d=c.XpG();c.Y8G("mode",d.mode)("value",d.progress)}}let Su=(()=>{class _{constructor(){this._angorLoadingService=(0,c.WQX)(Me),this.autoMode=!0,this.progress=0,this.show=!1,this._unsubscribeAll=new Ka.B}ngOnChanges(d){"autoMode"in d&&this._angorLoadingService.setAutoMode((0,Z_.he)(d.autoMode.currentValue))}ngOnInit(){this._angorLoadingService.mode$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.mode=d}),this._angorLoadingService.progress$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.progress=d}),this._angorLoadingService.show$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.show=d})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["angor-loading-bar"]],inputs:{autoMode:"autoMode"},exportAs:["angorLoadingBar"],features:[c.OA$],decls:1,vars:1,consts:[[3,"mode","value"]],template:function(v,D){1&v&&c.DNE(0,Rh,1,2,"mat-progress-bar",0),2&v&&c.vxM(D.show?0:-1)},dependencies:[ys.PO,ys.HM],styles:["angor-loading-bar{position:fixed;top:0;z-index:999;width:100%;height:6px}\n"],encapsulation:2})}}return _})();function Zu(_,m){1&_&&c.nrm(0,"router-outlet")}let Nh=(()=>{class _{constructor(){this._unsubscribeAll=new Ka.B}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["empty-layout"]],decls:4,vars:1,consts:[[1,"flex","w-full","flex-auto","flex-col"],[1,"flex","flex-auto","flex-col"]],template:function(v,D){1&v&&(c.nrm(0,"angor-loading-bar"),c.j41(1,"div",0)(2,"div",1),c.DNE(3,Zu,1,0,"router-outlet"),c.k0s()()),2&v&&(c.R7$(3),c.vxM(3))},dependencies:[Su,a.n3],encapsulation:2})}}return _})();var ka=r(8834),ol=r(9213),Rd=r(4823);function Nf(_,m){1&_&&c.nrm(0,"mat-icon",3)}let Og=(()=>{class _{constructor(){this._document=(0,c.WQX)(st.qQ)}toggleFullscreen(){this._document.fullscreenEnabled?this._document.fullscreenElement?this._document.exitFullscreen():this._document.documentElement.requestFullscreen().catch(()=>{console.error("Entering fullscreen mode failed.")}):console.log("Fullscreen is not available in this browser.")}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["angor-fullscreen"]],inputs:{iconTpl:"iconTpl",tooltip:"tooltip"},exportAs:["angorFullscreen"],decls:4,vars:2,consts:[["defaultIconTpl",""],["mat-icon-button","",3,"click","matTooltip"],[3,"ngTemplateOutlet"],["svgIcon","heroicons_outline:arrows-pointing-out"]],template:function(v,D){if(1&v){const W=c.RV6();c.j41(0,"button",1),c.bIt("click",function(){return c.eBV(W),c.Njj(D.toggleFullscreen())}),c.eu8(1,2),c.k0s(),c.DNE(2,Nf,1,0,"ng-template",null,0,c.C5r)}if(2&v){const W=c.sdS(3);c.Y8G("matTooltip",D.tooltip||"Toggle Fullscreen"),c.R7$(),c.Y8G("ngTemplateOutlet",D.iconTpl||W)}},dependencies:[ka.Hl,ka.iY,Rd.uc,Rd.oV,st.T3,ol.m_,ol.An],encapsulation:2,changeDetection:0})}}return _})();var kc=r(7857),Nd=r(6969),Jp=r(6939),Lh=r(6231);let Lf=(()=>{class _{constructor(d){this.relayService=d,this.notificationSubject=new Re.t([]),this.notificationCount=new Re.t(0),this.lastNotificationTimestamp=null,this.initializeNotificationData()}initializeNotificationData(){this.notificationCount.next(this.loadCountFromLocalStorage()),this.lastNotificationTimestamp=this.loadTimestampFromLocalStorage()}loadCountFromLocalStorage(){const d=localStorage.getItem("notificationCount");return d?parseInt(d,10):0}loadTimestampFromLocalStorage(){const d=localStorage.getItem("lastNotificationTimestamp");return d?parseInt(d,10):null}saveNotificationData(d,v){localStorage.setItem("notificationCount",d.toString()),localStorage.setItem("lastNotificationTimestamp",v.toString())}getNotificationObservable(){return this.notificationSubject.asObservable()}getNotificationCount(){return this.notificationCount.asObservable()}loadFilterPreferences(){const d=localStorage.getItem("notificationSettings");return d?JSON.parse(d):[1,3,4,7,9735]}subscribeToNotifications(d){var v=this;return(0,w.A)(function*(){yield v.relayService.ensureConnectedRelays();const D=v.relayService.getPool(),W=v.relayService.getConnectedRelays();if(0===W.length)throw new Error("No connected relays");const te=v.loadTimestampFromLocalStorage(),we=v.loadFilterPreferences();0===we.length&&we.push(1,3,4,7,9735);const Ye={kinds:we,"#p":[d],limit:50,since:te||void 0};return new Promise(yt=>{D.subscribeMany(W,[Ye],{onevent:pn=>v.handleNotificationEvent(pn,d),oneose(){yt()}})})})()}handleNotificationEvent(d,v){if(this.isNotificationEvent(d,v)){const W=new Date(1e3*d.created_at);let te="",we="",Ye="";switch(d.kind){case 1:te="Mention",we="Mentioned you in an event.",Ye="heroicons_outline:at-symbol";break;case 4:te="Private Message",we="Sent a private message.",Ye="heroicons_outline:envelope-open";break;case 9735:te="Zap",we="Received a zap event.",Ye="feather:zap";break;case 3:te="New Follower",we="You have a new follower.",Ye="heroicons_outline:user-plus";break;case 7:te="New Like",we="You have a new Like.",Ye="heroicons_outline:hand-thumb-up";break;default:te="Notification",Ye="heroicons_outline:bell"}const pn=[{id:d.id,icon:Ye,title:te,description:we,time:W,kind:d.kind,read:!1},...this.notificationSubject.value].slice(0,50);this.notificationSubject.next(pn),this.incrementNotificationCount(d.created_at)}}incrementNotificationCount(d){const v=this.notificationCount.value+1;this.notificationCount.next(v),this.saveNotificationData(v,d)}markAllAsRead(){this.notificationSubject.value.map(D=>({...D,read:!0})),this.notificationSubject.next([]),this.notificationCount.next(0);const v=Math.floor(Date.now()/1e3);this.saveNotificationData(0,v)}isNotificationEvent(d,v){return d.tags.some(D=>"p"===D[0]&&D[1]===v)}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(Lh.b))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var qu=r(6324);const Rg=["notificationsOrigin"],Ph=["notificationsPanel"],Ul=_=>({unread:_});function q_(_,m){if(1&_&&(c.j41(0,"span",4)(1,"span",6),c.EFF(2),c.k0s()()),2&_){const d=c.XpG();c.R7$(2),c.SpI(" ",d.unreadCount()," ")}}function Oa(_,m){1&_&&c.eu8(0)}function J_(_,m){if(1&_&&(c.j41(0,"a",18),c.DNE(1,Oa,1,0,"ng-container",20),c.k0s()),2&_){const d=c.XpG(2).$implicit,v=c.sdS(4);c.Y8G("href",d.link,c.B4B),c.R7$(),c.Y8G("ngTemplateOutlet",v)}}function ey(_,m){1&_&&c.eu8(0)}function em(_,m){if(1&_&&(c.j41(0,"a",19),c.DNE(1,ey,1,0,"ng-container",20),c.k0s()),2&_){const d=c.XpG(2).$implicit,v=c.sdS(4);c.Y8G("routerLink",d.link),c.R7$(),c.Y8G("ngTemplateOutlet",v)}}function Ng(_,m){if(1&_&&c.DNE(0,J_,2,2,"a",18)(1,em,2,2,"a",19),2&_){const d=c.XpG().$implicit;c.vxM(d.useRouter?-1:0),c.R7$(),c.vxM(d.useRouter?1:-1)}}function Lg(_,m){1&_&&c.eu8(0)}function ty(_,m){if(1&_&&(c.j41(0,"div",17),c.DNE(1,Lg,1,0,"ng-container",20),c.k0s()),2&_){c.XpG();const d=c.sdS(4);c.R7$(),c.Y8G("ngTemplateOutlet",d)}}function mw(_,m){if(1&_&&(c.j41(0,"div",21),c.nrm(1,"mat-icon",27),c.k0s()),2&_){const d=c.XpG(2).$implicit;c.R7$(),c.Y8G("svgIcon",d.icon)}}function Pg(_,m){if(1&_&&c.nrm(0,"img",22),2&_){const d=c.XpG(2).$implicit;c.Y8G("src",d.image,c.B4B)("alt","Notification image")}}function ny(_,m){if(1&_&&c.nrm(0,"div",24),2&_){const d=c.XpG(2).$implicit;c.Y8G("innerHTML",d.title,c.npT)}}function Pf(_,m){if(1&_&&c.nrm(0,"div",25),2&_){const d=c.XpG(2).$implicit;c.Y8G("innerHTML",d.description,c.npT)}}function tm(_,m){if(1&_&&(c.DNE(0,mw,2,1,"div",21)(1,Pg,1,2,"img",22),c.j41(2,"div",23),c.DNE(3,ny,1,1,"div",24)(4,Pf,1,1,"div",25),c.j41(5,"div",26),c.EFF(6),c.nI1(7,"date"),c.k0s()()),2&_){const d=c.XpG().$implicit;c.vxM(d.icon&&!d.image?0:-1),c.R7$(),c.vxM(d.image?1:-1),c.R7$(2),c.vxM(d.title?3:-1),c.R7$(),c.vxM(d.description?4:-1),c.R7$(2),c.SpI(" ",c.i5U(7,5,d.time,"MMM dd, h:mm a")," ")}}function nm(_,m){if(1&_&&(c.j41(0,"div",16),c.DNE(1,Ng,2,2)(2,ty,2,1,"div",17),c.k0s(),c.DNE(3,tm,8,8,"ng-template",null,2,c.C5r)),2&_){const d=m.$implicit;c.Y8G("ngClass",c.eq3(3,Ul,!d.read)),c.R7$(),c.vxM(d.link?1:-1),c.R7$(),c.vxM(d.link?-1:2)}}function Ld(_,m){1&_&&(c.j41(0,"div",15)(1,"div",28),c.nrm(2,"mat-icon",29),c.k0s(),c.j41(3,"div",30),c.EFF(4," No notifications "),c.k0s(),c.j41(5,"div",31),c.EFF(6," When you have notifications, they will appear here. "),c.k0s()()),2&_&&(c.R7$(2),c.Y8G("svgIcon","heroicons_outline:bell"))}function Ff(_,m){if(1&_){const d=c.RV6();c.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"button",3),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.closePanel())}),c.nrm(4,"mat-icon",10),c.k0s()(),c.j41(5,"div",11),c.EFF(6,"Notifications"),c.k0s(),c.j41(7,"div",12)(8,"button",13),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.markAllAsRead())}),c.nrm(9,"mat-icon",10),c.k0s()()(),c.j41(10,"div",14),c.Z7z(11,nm,5,5,null,null,c.BUC().trackByFn,!0),c.DNE(13,Ld,7,1,"div",15),c.k0s()()}if(2&_){const d=c.XpG();c.R7$(4),c.Y8G("svgIcon","heroicons_solid:x-mark"),c.R7$(4),c.Y8G("matTooltip","Mark all as read")("disabled",0===d.unreadCount()),c.R7$(),c.Y8G("svgIcon","heroicons_solid:envelope-open"),c.R7$(2),c.Dyx(d.notifications()),c.R7$(2),c.vxM(d.notifications()&&d.notifications().length?-1:13)}}let Fh=(()=>{class _{constructor(){this.notifications=(0,c.vPA)([]),this.unreadCount=(0,c.vPA)(0),this._unsubscribeAll=new Ka.B,this._notificationService=(0,c.WQX)(Lf),this._changeDetectorRef=(0,c.WQX)(c.gRc),this._overlay=(0,c.WQX)(Nd.hJ),this._viewContainerRef=(0,c.WQX)(c.c1b),this._signerService=(0,c.WQX)(qu.A)}ngOnInit(){const d=this._signerService.getPublicKey();this._notificationService.subscribeToNotifications(d).then(()=>{this._notificationService.getNotificationObservable().pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(v=>{this.notifications.set(v),this._changeDetectorRef.markForCheck()}),this._notificationService.getNotificationCount().pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(v=>{this.unreadCount.set(v),this._changeDetectorRef.markForCheck()})})}deleteNotification(d){throw new Error("Method not implemented.")}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openPanel(){!this._notificationsPanel||!this._notificationsOrigin||(this._overlayRef||this._createOverlay(),this._overlayRef.attach(new Jp.VA(this._notificationsPanel,this._viewContainerRef)))}closePanel(){this._overlayRef&&this._overlayRef.detach()}markAllAsRead(){this._notificationService.markAllAsRead(),this.notifications.set([]),this._changeDetectorRef.markForCheck()}trackByFn(d,v){return v.id}_createOverlay(){this._overlayRef=this._overlay.create({hasBackdrop:!0,backdropClass:"angor-backdrop-on-mobile",scrollStrategy:this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().flexibleConnectedTo(this._notificationsOrigin._elementRef.nativeElement).withLockedPosition(!0).withPush(!0).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"}])}),this._overlayRef.backdropClick().subscribe(()=>{this._overlayRef.detach()})}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["notifications"]],viewQuery:function(v,D){if(1&v&&(c.GBs(Rg,5),c.GBs(Ph,5)),2&v){let W;c.mGM(W=c.lsd())&&(D._notificationsOrigin=W.first),c.mGM(W=c.lsd())&&(D._notificationsPanel=W.first)}},exportAs:["notifications"],decls:6,vars:2,consts:[["notificationsOrigin",""],["notificationsPanel",""],["notificationContent",""],["mat-icon-button","",3,"click"],[1,"absolute","left-0","right-0","top-0","flex","h-3","items-center","justify-center"],[3,"svgIcon"],[1,"ml-4","mt-2.5","flex","h-4","min-w-4","shrink-0","items-center","justify-center","rounded-full","bg-teal-600","px-1","text-xs","font-medium","text-indigo-50"],[1,"fixed","inset-0","flex","flex-col","overflow-hidden","shadow-lg","sm:static","sm:inset-auto","sm:w-90","sm:min-w-90","sm:rounded-2xl"],[1,"flex","shrink-0","items-center","bg-primary","py-4","pl-6","pr-4","text-on-primary"],[1,"-ml-1","mr-3","sm:hidden"],[1,"text-current","icon-size-5",3,"svgIcon"],[1,"text-lg","font-medium","leading-10"],[1,"ml-auto"],["mat-icon-button","",1,"dark:text-white",3,"click","matTooltip","disabled"],[1,"bg-card","relative","flex","flex-auto","flex-col","divide-y","overflow-y-auto","sm:max-h-120"],[1,"flex","flex-auto","flex-col","items-center","justify-center","px-8","py-12","sm:justify-start"],[1,"group","flex","hover:bg-gray-50","dark:hover:bg-black","dark:hover:bg-opacity-5",3,"ngClass"],[1,"flex","flex-auto","py-5","pl-6"],[1,"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(v,D){if(1&v){const W=c.RV6();c.j41(0,"button",3,0),c.bIt("click",function(){return c.eBV(W),c.Njj(D.openPanel())}),c.DNE(2,q_,3,1,"span",4),c.nrm(3,"mat-icon",5),c.k0s(),c.DNE(4,Ff,14,5,"ng-template",null,1,c.C5r)}2&v&&(c.R7$(2),c.vxM(D.unreadCount()>0?2:-1),c.R7$(),c.Y8G("svgIcon","heroicons_outline:bell"))},dependencies:[ka.Hl,ka.iY,ol.m_,ol.An,Rd.uc,Rd.oV,st.YU,st.T3,a.Wk,st.vh],encapsulation:2,changeDetection:0})}}return _})();var fc=r(9417),Bf=r(5542),Zc=r(9888),Uf=r(8359),Fg=r(8203),ql=r(7336),Bg=r(9327),ry=r(9172);const Pd=["panel"],Bh=["*"];function gw(_,m){if(1&_){const d=c.RV6();c.j41(0,"div",1,0),c.bIt("@panelAnimation.done",function(D){c.eBV(d);const W=c.XpG();return c.Njj(W._animationDone.next(D))}),c.SdG(2),c.k0s()}if(2&_){const d=m.id,v=c.XpG();c.HbH(v._classList),c.AVh("mat-mdc-autocomplete-visible",v.showPanel)("mat-mdc-autocomplete-hidden",!v.showPanel)("mat-primary","primary"===v._color)("mat-accent","accent"===v._color)("mat-warn","warn"===v._color),c.Y8G("id",v.id)("@panelAnimation",v.isOpen?"visible":"hidden"),c.BMQ("aria-label",v.ariaLabel||null)("aria-labelledby",v._getPanelAriaLabelledby(d))}}const Ug=(0,Tr.hZ)("panelAnimation",[(0,Tr.wk)("void, hidden",(0,Tr.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,Tr.kY)(":enter, hidden => visible",[(0,Tr.Os)([(0,Tr.i0)("0.03s linear",(0,Tr.iF)({opacity:1})),(0,Tr.i0)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,Tr.iF)({transform:"scaleY(1)"}))])]),(0,Tr.kY)(":leave, visible => hidden",[(0,Tr.i0)("0.075s linear",(0,Tr.iF)({opacity:0}))])]);class iy{source;option;constructor(m,d){this.source=m,this.option=d}}const rm=new c.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function vw(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let $g=(()=>{class _{_changeDetectorRef=(0,c.WQX)(c.gRc);_elementRef=(0,c.WQX)(c.aKT);_defaults=(0,c.WQX)(rm);_activeOptionChanges=Uf.yU.EMPTY;_animationDone=new c.bkB;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(d){this._color=d,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new c.bkB;opened=new c.bkB;closed=new c.bkB;optionActivated=new c.bkB;set classList(d){this._classList=d,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(d){this._hideSingleSelectionIndicator=d,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(const d of this.options)d._changeDetectorRef.markForCheck()}id=(0,c.WQX)(Zc.g7).getId("mat-autocomplete-");inertGroups;constructor(){const d=(0,c.WQX)(Ie.OD);this.inertGroups=d?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Zc.Au(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(d=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[d]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(d){this.panel&&(this.panel.nativeElement.scrollTop=d)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(d){const v=new iy(this,d);this.optionSelected.emit(v)}_getPanelAriaLabelledby(d){return this.ariaLabel?null:this.ariaLabelledby?(d?d+" ":"")+this.ariaLabelledby:d}_skipPredicate(){return!1}static \u0275fac=function(v){return new(v||_)};static \u0275cmp=c.VBU({type:_,selectors:[["mat-autocomplete"]],contentQueries:function(v,D,W){if(1&v&&(c.wni(W,Xt.wT,5),c.wni(W,Xt.QC,5)),2&v){let te;c.mGM(te=c.lsd())&&(D.options=te),c.mGM(te=c.lsd())&&(D.optionGroups=te)}},viewQuery:function(v,D){if(1&v&&(c.GBs(c.C4Q,7),c.GBs(Pd,5)),2&v){let W;c.mGM(W=c.lsd())&&(D.template=W.first),c.mGM(W=c.lsd())&&(D.panel=W.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",c.L39],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",c.L39],requireSelection:[2,"requireSelection","requireSelection",c.L39],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",c.L39],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",c.L39]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[c.Jv_([{provide:Xt.is,useExisting:_}]),c.GFd],ngContentSelectors:Bh,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(v,D){1&v&&(c.NAR(),c.DNE(0,gw,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Ug]},changeDetection:0})}return _})();const jg={provide:fc.kq,useExisting:(0,c.Rfq)(()=>oy),multi:!0},Vg=new c.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const _=(0,c.WQX)(Nd.hJ);return()=>_.scrollStrategies.reposition()}}),im={provide:Vg,deps:[Nd.hJ],useFactory:function yw(_){return()=>_.scrollStrategies.reposition()}};let oy=(()=>{class _{_element=(0,c.WQX)(c.aKT);_overlay=(0,c.WQX)(Nd.hJ);_viewContainerRef=(0,c.WQX)(c.c1b);_zone=(0,c.WQX)(c.SKi);_changeDetectorRef=(0,c.WQX)(c.gRc);_dir=(0,c.WQX)(Fg.dS,{optional:!0});_formField=(0,c.WQX)(yn.xb,{optional:!0,host:!0});_document=(0,c.WQX)(st.qQ);_viewportRuler=(0,c.WQX)(Bf.Xj);_defaults=(0,c.WQX)(rm,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_scrollStrategy=(0,c.WQX)(Vg);_keydownSubscription;_outsideClickSubscription;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Uf.yU.EMPTY;_breakpointObserver=(0,c.WQX)(Bg.QP);_handsetLandscapeSubscription=Uf.yU.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new Ka.B;_windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;_initialized=new Ka.B;_injector=(0,c.WQX)(c.zZn);constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete();const d=this._getWindow();typeof d<"u"&&this._zone.runOutsideAngular(()=>d.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(d){d.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const d=this._getWindow();typeof d<"u"&&d.removeEventListener("blur",this._windowBlurHandler),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&(0,Zc.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,ml.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ht.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ht.p)(()=>this._overlayAttached)):(0,I.of)()).pipe((0,Vs.T)(d=>d instanceof Xt.MI?d:null))}optionSelections=(0,Ed.v)(()=>{const d=this.autocomplete?this.autocomplete.options:null;return d?d.changes.pipe((0,ry.Z)(d),(0,me.n)(()=>(0,ml.h)(...d.map(v=>v.onSelectionChange)))):this._initialized.pipe((0,me.n)(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,ml.h)((0,xd.R)(this._document,"click"),(0,xd.R)(this._document,"auxclick"),(0,xd.R)(this._document,"touchend")).pipe((0,ht.p)(d=>{const v=(0,Ie.Fb)(d),D=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,W=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&v!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!D||!D.contains(v))&&(!W||!W.contains(v))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(v)}))}writeValue(d){Promise.resolve(null).then(()=>this._assignOptionValue(d))}registerOnChange(d){this._onChange=d}registerOnTouched(d){this._onTouched=d}setDisabledState(d){this._element.nativeElement.disabled=d}_handleKeydown(d){const v=d.keyCode,D=(0,ql.rp)(d);if(v===ql._f&&!D&&d.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&v===ql.Fm&&this.panelOpen&&!D)this.activeOption._selectViaInteraction(),this._resetActiveItem(),d.preventDefault();else if(this.autocomplete){const W=this.autocomplete._keyManager.activeItem,te=v===ql.i7||v===ql.n6;v===ql.wn||te&&!D&&this.panelOpen?this.autocomplete._keyManager.onKeydown(d):te&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(te||this.autocomplete._keyManager.activeItem!==W)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(d){let v=d.target,D=v.value;if("number"===v.type&&(D=""==D?null:parseFloat(D)),this._previousValue!==D){if(this._previousValue=D,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(D),D){if(this.panelOpen&&!this.autocomplete.requireSelection){const W=this.autocomplete.options?.find(te=>te.selected);W&&D!==this._getDisplayValue(W.value)&&W.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===d.target){const W=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(W)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(d=!1){this._formField&&"auto"===this._formField.floatLabel&&(d?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const d=new S.c(D=>{(0,c.mal)(()=>{D.next()},{injector:this._injector})}),v=this.autocomplete.options.changes.pipe((0,Mc.M)(()=>this._positionStrategy.reapplyLastPosition()),(0,be.c)(0));return(0,ml.h)(d,v).pipe((0,me.n)(()=>this._zone.run(()=>{const D=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),D!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),(0,A.s)(1)).subscribe(D=>this._setValueAndClose(D))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(d){const v=this.autocomplete;return v&&v.displayWith?v.displayWith(d):d}_assignOptionValue(d){const v=this._getDisplayValue(d);null==d&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(v??"")}_updateNativeInputValue(d){this._formField?this._formField._control.value=d:this._element.nativeElement.value=d,this._previousValue=d}_setValueAndClose(d){const v=this.autocomplete,D=d?d.source:this._pendingAutoselectedOption;D?(this._clearPreviousSelectedOption(D),this._assignOptionValue(D.value),this._onChange(D.value),v._emitSelectEvent(D),this._element.nativeElement.focus()):v.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),v._animationDone?v._animationDone.pipe((0,A.s)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(d,v){this.autocomplete?.options?.forEach(D=>{D!==d&&D.selected&&D.deselect(v)})}_openPanelInternal(d=this._element.nativeElement.value){this._attachOverlay(d),this._floatLabel(),this._trackedModal&&(0,Zc.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(d){let v=this._overlayRef;v?(this._positionStrategy.setOrigin(this._getConnectedElement()),v.updateSize({width:this._getPanelWidth()})):(this._portal=new Jp.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),v=this._overlay.create(this._getOverlayConfig()),this._overlayRef=v,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&v&&v.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(Bg.Rp.HandsetLandscape).subscribe(W=>{W.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),v&&!v.hasAttached()&&(v.attach(this._portal),this._valueOnAttach=d,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const D=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&D!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=d=>{(d.keyCode===ql._f&&!(0,ql.rp)(d)||d.keyCode===ql.i7&&(0,ql.rp)(d,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),d.stopPropagation(),d.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const d=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=d.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=d.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Nd.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const d=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(d),this._positionStrategy=d,d}_setStrategyPositions(d){const v=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],D=this._aboveClass,W=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:D},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:D}];let te;te="above"===this.position?W:"below"===this.position?v:[...v,...W],d.withPositions(te)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const d=this.autocomplete;if(d.autoActiveFirstOption){let v=-1;for(let D=0;D .cdk-overlay-container [aria-modal="true"]');if(!d)return;const v=this.autocomplete.id;this._trackedModal&&(0,Zc.Ae)(this._trackedModal,"aria-owns",v),(0,Zc.px)(d,"aria-owns",v),this._trackedModal=d}_clearFromModal(){this._trackedModal&&((0,Zc.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static \u0275fac=function(v){return new(v||_)};static \u0275dir=c.FsC({type:_,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(v,D){1&v&&c.bIt("focusin",function(){return D._handleFocus()})("blur",function(){return D._onTouched()})("input",function(te){return D._handleInput(te)})("keydown",function(te){return D._handleKeydown(te)})("click",function(){return D._handleClick()}),2&v&&c.BMQ("autocomplete",D.autocompleteAttribute)("role",D.autocompleteDisabled?null:"combobox")("aria-autocomplete",D.autocompleteDisabled?null:"list")("aria-activedescendant",D.panelOpen&&D.activeOption?D.activeOption.id:null)("aria-expanded",D.autocompleteDisabled?null:D.panelOpen.toString())("aria-controls",D.autocompleteDisabled||!D.panelOpen||null==D.autocomplete?null:D.autocomplete.id)("aria-haspopup",D.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",c.L39]},exportAs:["matAutocompleteTrigger"],features:[c.Jv_([jg]),c.GFd,c.OA$]})}return _})(),$f=(()=>{class _{static \u0275fac=function(v){return new(v||_)};static \u0275mod=c.$C({type:_});static \u0275inj=c.G2t({providers:[im],imports:[Nd.z_,Xt.Sy,Xt.yE,Bf.Gj,Xt.Sy,Xt.yE]})}return _})();var Uh=r(9042),Hg=r(7291),Wg=r(152);const sy=["barSearchInput"],ay=["matAutocomplete"],jf=(_,m)=>m.id;function zg(_,m){if(1&_){const d=c.RV6();c.j41(0,"button",4),c.bIt("click",function(){c.eBV(d);const D=c.XpG(2);return c.Njj(D.open())}),c.nrm(1,"mat-icon",5),c.k0s()}2&_&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:magnifying-glass"))}function ly(_,m){1&_&&(c.j41(0,"mat-option",9),c.EFF(1," No results found! "),c.k0s())}function cy(_,m){if(1&_){const d=c.RV6();c.j41(0,"img",19),c.bIt("error",function(D){c.eBV(d);const W=c.XpG(5);return c.Njj(W.handleImageError(D))}),c.k0s()}if(2&_){const d=c.XpG().$implicit;c.FS9("alt",d.name),c.Y8G("src",d.avatar,c.B4B)}}function $h(_,m){1&_&&c.nrm(0,"mat-icon",15),2&_&&c.Y8G("svgIcon","heroicons_outline:user-circle")}function Kg(_,m){if(1&_&&(c.j41(0,"div",18),c.EFF(1),c.k0s()),2&_){const d=c.XpG().$implicit;c.R7$(),c.JRh(d.about)}}function om(_,m){if(1&_&&(c.j41(0,"mat-option",11)(1,"div",12)(2,"div",13),c.DNE(3,cy,1,2,"img",14)(4,$h,1,1,"mat-icon",15),c.k0s(),c.j41(5,"div",16)(6,"span",17),c.EFF(7),c.k0s(),c.DNE(8,Kg,2,1,"div",18),c.k0s()()()),2&_){const d=m.$implicit;c.Y8G("routerLink",d.link)("value",d.name),c.R7$(3),c.vxM(d.avatar?3:4),c.R7$(4),c.JRh(d.name),c.R7$(),c.vxM(d.about?8:-1)}}function uy(_,m){1&_&&c.Z7z(0,om,9,5,"mat-option",11,jf),2&_&&c.Dyx(m.$implicit.results)}function bw(_,m){if(1&_){const d=c.RV6();c.j41(0,"div",3),c.nrm(1,"mat-icon",6),c.j41(2,"input",7,0),c.bIt("keydown",function(D){c.eBV(d);const W=c.XpG(2);return c.Njj(W.onKeydown(D))}),c.k0s(),c.j41(4,"mat-autocomplete",8,1),c.DNE(6,ly,2,0,"mat-option",9),c.Z7z(7,uy,2,0,null,null,jf),c.k0s(),c.j41(9,"button",10),c.bIt("click",function(){c.eBV(d);const D=c.XpG(2);return c.Njj(D.close())}),c.nrm(10,"mat-icon",5),c.k0s()()}if(2&_){let d;const v=c.sdS(5),D=c.XpG(2);c.R7$(),c.Y8G("svgIcon","heroicons_outline:magnifying-glass"),c.R7$(),c.Y8G("formControl",D.searchControl)("matAutocomplete",v),c.R7$(4),c.vxM(0===(null==(d=D.resultSets())?null:d.length)?6:-1),c.R7$(),c.Dyx(D.resultSets()),c.R7$(3),c.Y8G("svgIcon","heroicons_outline:x-mark")}}function ww(_,m){if(1&_&&c.DNE(0,zg,2,1,"button",2)(1,bw,11,5,"div",3),2&_){const d=c.XpG();c.vxM(d.opened()?-1:0),c.R7$(),c.vxM(d.opened()?1:-1)}}let Bd=(()=>{class _{constructor(){this.appearance="basic",this.debounce=300,this.minLength=2,this.search=new c.bkB,this.searchControl=new fc.hs,this.resultSets=(0,c.vPA)([]),this.opened=(0,c.vPA)(!1),this.unsubscribeAll=new Ka.B,this.storageService=(0,c.WQX)(Hg.n)}ngOnInit(){this.initializeSearch()}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}initializeSearch(){var d=this;this.searchControl.valueChanges.pipe((0,Wg.B)(this.debounce),(0,vl.Q)(this.unsubscribeAll),(0,Vs.T)(v=>((!v||v.lengthv&&v.length>=this.minLength)).subscribe(function(){var v=(0,w.A)(function*(D){const te=(yield d.storageService.searchProfile(D)).map(we=>({label:"Project",results:[{name:we.profile.name||we.profile.displayName||we.pubKey,pubkey:we.pubKey,about:we.profile.about?.replace(/<\/?[^>]+(>|$)/g,"")||"",avatar:we.profile.picture||null,link:`/profile/${we.pubKey}`}]}));d.resultSets.set(te),d.search.emit(te)});return function(D){return v.apply(this,arguments)}}())}onKeydown(d){"Escape"===d.key&&this.close()}open(){this.opened()||this.opened.set(!0)}close(){this.opened()&&(this.searchControl.setValue(""),this.opened.set(!1))}handleImageError(d){const v=d.target;v.onerror=null,v.src="images/avatars/avatar-placeholder.png"}trackByFn(d,v){return v.id||d}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["search"]],viewQuery:function(v,D){if(1&v&&(c.GBs(sy,5),c.GBs(ay,5)),2&v){let W;c.mGM(W=c.lsd())&&(D.barSearchInput=W.first),c.mGM(W=c.lsd())&&(D.matAutocomplete=W.first)}},inputs:{appearance:"appearance",debounce:"debounce",minLength:"minLength"},outputs:{search:"search"},decls:2,vars:1,consts:[["barSearchInput",""],["matAutocomplete","matAutocomplete"],["mat-icon-button",""],[1,"bg-card","absolute","inset-0","z-99","flex","items-center"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"absolute","ml-6","sm:ml-8",3,"svgIcon"],["placeholder","Search...",1,"h-full","w-full","px-16","sm:px-18",3,"keydown","formControl","matAutocomplete"],[1,"max-h-128","rounded-b","border-t","shadow-md"],[1,"text-secondary","pointer-events-none"],["mat-icon-button","",1,"absolute","right-5","top-1/2","-mt-5",3,"click"],[3,"routerLink","value"],[1,"flex","items-center"],[1,"h-8","w-8","rounded-full","bg-primary-100","dark:bg-primary-800"],[1,"h-full","w-full","object-cover",3,"src","alt"],[1,"m-0","text-primary",3,"svgIcon"],[1,"ml-3","truncate"],[1,"font-semibold"],[1,"text-sm","text-gray-500"],[1,"h-full","w-full","object-cover",3,"error","src","alt"]],template:function(v,D){1&v&&(c.j41(0,"div"),c.DNE(1,ww,2,2),c.k0s()),2&v&&(c.R7$(),c.vxM("bar"===D.appearance?1:-1))},dependencies:[ka.Hl,ka.iY,ol.m_,ol.An,fc.X1,fc.me,fc.BC,fc.l_,$f,$g,Xt.wT,oy,Xt.Sy,a.Wk,yn.RG,Uh.fS,st.MD],encapsulation:2})}}return _})();var Gg=r(881),jh=r(1997),Ud=r(9115),Vf=r(2332);let Xg=(()=>{class _{constructor(){this.signerService=(0,c.WQX)(qu.A),this.router=(0,c.WQX)(a.Ix),this.angorConfirmationService=(0,c.WQX)(xe.m)}isLoggedIn(){return!!this.signerService.getPublicKey()}promptLogin(){this.angorConfirmationService.open({title:"Login",message:"Would you like to login now?",icon:{show:!0,name:"heroicons_solid:user",color:"primary"},actions:{confirm:{show:!0,label:"Yes, Login",color:"primary"},cancel:{show:!0,label:"No, Thanks"}},dismissible:!0}).afterClosed().subscribe(v=>{"confirmed"===v&&this.router.navigate(["/login"])})}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();const Ew=()=>["/settings"];function Yg(_,m){if(1&_&&c.nrm(0,"img",5),2&_){let d;const v=c.XpG();c.Y8G("src",v.getSafeUrl(null==(d=v.user())?null:d.picture),c.B4B)}}function dy(_,m){1&_&&c.nrm(0,"mat-icon",6),2&_&&c.Y8G("svgIcon","heroicons_outline:user-circle")}function Qg(_,m){if(1&_){const d=c.RV6();c.qex(0),c.j41(1,"button",9),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.Switch())}),c.nrm(2,"mat-icon",6),c.j41(3,"span"),c.EFF(4,"Switch account"),c.k0s()(),c.j41(5,"button",9),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.profile())}),c.nrm(6,"mat-icon",6),c.j41(7,"span"),c.EFF(8,"Profile"),c.k0s()(),c.j41(9,"button",11),c.nrm(10,"mat-icon",6),c.j41(11,"span"),c.EFF(12,"Options"),c.k0s()(),c.nrm(13,"mat-divider",12),c.j41(14,"button",9),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.logout())}),c.nrm(15,"mat-icon",6),c.j41(16,"span"),c.EFF(17,"logout"),c.k0s()(),c.bVm()}if(2&_){c.XpG();const d=c.sdS(10);c.R7$(2),c.Y8G("svgIcon","heroicons_outline:user-circle"),c.R7$(4),c.Y8G("svgIcon","heroicons_outline:user-circle"),c.R7$(3),c.Y8G("matMenuTriggerFor",d),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cog-8-tooth"),c.R7$(5),c.Y8G("svgIcon","heroicons_outline:arrow-right-on-rectangle")}}function sm(_,m){if(1&_){const d=c.RV6();c.j41(0,"button",9),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.authService.promptLogin())}),c.nrm(1,"mat-icon",6),c.j41(2,"span"),c.EFF(3,"Login"),c.k0s()()}2&_&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:login"))}let am=(()=>{class _{constructor(){this.user=(0,c.vPA)(null),this.config=(0,c.vPA)(null),this.userPubKey=(0,c.vPA)(""),this.signerService=(0,c.WQX)(qu.A),this.storageService=(0,c.WQX)(Hg.n),this.angorConfigService=(0,c.WQX)(Gg.P),this.router=(0,c.WQX)(a.Ix),this.sanitizer=(0,c.WQX)(i.up),this.nostrLoginService=(0,c.WQX)(Vf.v),this.authService=(0,c.WQX)(Xg),this.userPubKey.set(this.signerService.getPublicKey()),this.authService.isLoggedIn()&&this.loadUserProfile(),(0,c.QZP)(()=>{this.config.set(this.angorConfigService.config),this.config()&&localStorage.setItem("angorConfig",JSON.stringify(this.config()))}),this.storageService.profile$.subscribe(d=>{d&&d.pubKey===this.userPubKey()&&this.user.set(d.metadata||{})})}loadUserProfile(){this.storageService.getProfile(this.userPubKey()).then(d=>{this.user.set(d||{})})}logout(){this.router.navigate(["/logout"])}Switch(){this.nostrLoginService.switchAccount()}profile(){this.router.navigate(["/profile"])}setScheme(d){this.angorConfigService.config={scheme:d}}setTheme(d){this.angorConfigService.config={theme:d}}getSafeUrl(d){return this.sanitizer.bypassSecurityTrustUrl(d)}switchAccount(){this.nostrLoginService.switchAccount()}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["user"]],decls:28,vars:11,consts:[["userActions","matMenu"],["loginMenu",""],["settingsMenu","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"relative"],["alt","","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-7","w-7","rounded-full","object-cover",3,"src"],[3,"svgIcon"],[3,"xPosition"],[4,"ngIf","ngIfElse"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"matMenuTriggerFor"],[1,"my-2"]],template:function(v,D){if(1&v){const W=c.RV6();c.j41(0,"button",3)(1,"span",4),c.DNE(2,Yg,1,1,"img",5)(3,dy,1,1,"mat-icon",6),c.k0s()(),c.j41(4,"mat-menu",7,0),c.DNE(6,Qg,18,5,"ng-container",8)(7,sm,4,1,"ng-template",null,1,c.C5r),c.k0s(),c.j41(9,"mat-menu",null,2)(11,"button",9),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("auto"))}),c.nrm(12,"mat-icon",6),c.j41(13,"span"),c.EFF(14,"Auto Theme"),c.k0s()(),c.j41(15,"button",9),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("light"))}),c.nrm(16,"mat-icon",6),c.j41(17,"span"),c.EFF(18,"Light Theme"),c.k0s()(),c.j41(19,"button",9),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("dark"))}),c.nrm(20,"mat-icon",6),c.j41(21,"span"),c.EFF(22,"Dark Theme"),c.k0s()(),c.nrm(23,"mat-divider"),c.j41(24,"button",10),c.nrm(25,"mat-icon",6),c.j41(26,"span"),c.EFF(27,"Settings"),c.k0s()()()}if(2&v){let W;const te=c.sdS(5),we=c.sdS(8);c.Y8G("matMenuTriggerFor",te),c.R7$(2),c.vxM(null!=(W=D.user())&&W.picture?2:3),c.R7$(2),c.Y8G("xPosition","before"),c.R7$(2),c.Y8G("ngIf",D.authService.isLoggedIn())("ngIfElse",we),c.R7$(6),c.Y8G("svgIcon","heroicons_solid:bolt"),c.R7$(4),c.Y8G("svgIcon","heroicons_solid:sun"),c.R7$(4),c.Y8G("svgIcon","heroicons_solid:moon"),c.R7$(4),c.Y8G("routerLink",c.lJ4(10,Ew)),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cog-8-tooth")}},dependencies:[ka.Hl,ka.iY,Ud.Cn,Ud.kk,Ud.fb,Ud.Cp,ol.m_,ol.An,jh.w,jh.q,st.MD,st.bT,a.iI,a.Wk],encapsulation:2,changeDetection:0})}}return _})();var Ju=r(605);let Zg=(()=>{class _{constructor(d,v){this.swUpdate=d,this.zone=v,this.newVersionAvailableSubject=new Re.t(!1),this.isNewVersionAvailable$=this.newVersionAvailableSubject.asObservable(),this.intervalSource=(0,Ju.Y)(9e5),this.checkForUpdateOnLoad(),this.checkForUpdateOnInterval()}applyUpdate(){this.swUpdate.activateUpdate().then(()=>document.location.reload()).catch(d=>console.error("Failed to apply updates:",d))}checkForUpdateOnInterval(){var d=this;this.unsubscribeInterval(),this.swUpdate.isEnabled&&this.zone.runOutsideAngular(()=>{this.intervalSubscription=this.intervalSource.subscribe((0,w.A)(function*(){try{(yield d.swUpdate.checkForUpdate())&&d.newVersionAvailableSubject.next(!0)}catch(v){console.error("Failed to check for updates:",v)}}))})}checkForUpdateOnLoad(){this.unsubscribeNewVersion(),this.swUpdate.isEnabled&&(this.newVersionSubscription=this.swUpdate.versionUpdates.subscribe(d=>{switch(d.type){case"VERSION_DETECTED":break;case"VERSION_READY":this.newVersionAvailableSubject.next(!0);break;case"VERSION_INSTALLATION_FAILED":console.error(`Failed to install app version '${d.version.hash}': ${d.error}`)}}))}unsubscribeInterval(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}unsubscribeNewVersion(){this.newVersionSubscription&&this.newVersionSubscription.unsubscribe()}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(Ku),c.KVO(c.SKi))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();function hy(_,m){if(1&_){const d=c.RV6();c.j41(0,"button",1),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.applyUpdate())}),c.nrm(1,"mat-icon",2),c.k0s()}if(2&_){const d=c.XpG();c.Y8G("matTooltip",d.tooltip()),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cloud-arrow-down")}}let qg=(()=>{class _{constructor(){this.tooltip=(0,c.vPA)("Update App"),this.isNewVersionAvailable=(0,c.vPA)(!1),this.updateService=(0,c.WQX)(Zg),this.updateService.isNewVersionAvailable$.subscribe(d=>{this.isNewVersionAvailable.set(d)})}applyUpdate(){this.updateService.applyUpdate()}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["update"]],decls:1,vars:1,consts:[["mat-icon-button","",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(v,D){1&v&&c.DNE(0,hy,2,2,"button",0),2&v&&c.vxM(D.isNewVersionAvailable()?0:-1)},dependencies:[st.MD,ka.Hl,ka.iY,ol.m_,ol.An,Rd.uc,Rd.oV],encapsulation:2,changeDetection:0})}}return _})();function fy(_,m){if(1&_&&(c.j41(0,"angor-vertical-navigation",0),c.qex(1,10),c.j41(2,"div",11),c.nrm(3,"img",12),c.k0s(),c.bVm(),c.k0s()),2&_){const d=c.XpG();c.Y8G("mode","over")("name","mainNavigation")("navigation",d.navigation.default)("opened",!1)}}function py(_,m){if(1&_&&(c.j41(0,"div",13)(1,"div",14),c.nrm(2,"img",15)(3,"img",16),c.k0s(),c.nrm(4,"img",17),c.k0s(),c.nrm(5,"angor-horizontal-navigation",18)),2&_){const d=c.XpG();c.R7$(5),c.Y8G("name","mainNavigation")("navigation",d.navigation.horizontal)}}function Jg(_,m){if(1&_){const d=c.RV6();c.j41(0,"button",19),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.toggleNavigation("mainNavigation"))}),c.nrm(1,"mat-icon",20),c.k0s()}2&_&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:bars-3"))}function my(_,m){1&_&&c.nrm(0,"router-outlet")}let gy=(()=>{class _{constructor(d,v,D,W,te){this._activatedRoute=d,this._router=v,this._navigationService=D,this._angorMediaWatcherService=W,this._angorNavigationService=te,this._unsubscribeAll=new Ka.B,this.version=_s}ngOnInit(){this._navigationService.navigation$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.navigation=d}),this._angorMediaWatcherService.onMediaChange$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:d})=>{this.isScreenSmall=!d.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(d){const v=this._angorNavigationService.getComponent(d);v&&v.toggle()}static{this.\u0275fac=function(v){return new(v||_)(c.rXU(a.nX),c.rXU(a.Ix),c.rXU(Qu),c.rXU(ae.l),c.rXU(kc.lX))}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["modern-layout"]],decls:17,vars:6,consts:[[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","sm:h-20","md:px-6","print:hidden"],["mat-icon-button",""],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],[1,"flex","w-full","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","border-t","px-4","dark:bg-transparent","sm:h-20","md:px-6","print:hidden"],[1,"text-secondary","font-medium"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","px-8","pt-6"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"h-10","w-24"],[1,"mx-2","flex","items-center","lg:mr-8"],[1,"hidden","lg:flex"],["src","images/logo/logo-text.svg",1,"h-10","w-24","dark:hidden"],["src","images/logo/logo-text-on-dark.svg",1,"hidden","h-10","w-24","dark:flex"],["src","images/logo/logo.svg",1,"flex","w-8","lg:hidden"],[1,"mr-2",3,"name","navigation"],["mat-icon-button","",3,"click"],[3,"svgIcon"]],template:function(v,D){1&v&&(c.nrm(0,"angor-loading-bar"),c.DNE(1,fy,4,4,"angor-vertical-navigation",0),c.j41(2,"div",1)(3,"div",2),c.DNE(4,py,6,2)(5,Jg,2,1,"button",3),c.j41(6,"div",4),c.nrm(7,"update")(8,"angor-fullscreen",5)(9,"search",6)(10,"notifications")(11,"user"),c.k0s()(),c.j41(12,"div",7),c.DNE(13,my,1,0,"router-outlet"),c.k0s(),c.j41(14,"div",8)(15,"span",9),c.EFF(16),c.k0s()()()),2&v&&(c.R7$(),c.vxM(D.isScreenSmall?1:-1),c.R7$(3),c.vxM(D.isScreenSmall?-1:4),c.R7$(),c.vxM(D.isScreenSmall?5:-1),c.R7$(4),c.Y8G("appearance","bar"),c.R7$(4),c.vxM(13),c.R7$(3),c.SpI("Angor Hub - version ",D.version,""))},dependencies:[Su,kc.Tv,kc.$w,ka.Hl,ka.iY,ol.m_,ol.An,Og,Bd,Fh,am,a.n3,qg],encapsulation:2})}}return _})();function vy(_,m){1&_&&c.nrm(0,"router-outlet")}let _y=(()=>{class _{constructor(d,v,D,W,te){this._activatedRoute=d,this._router=v,this._navigationService=D,this._angorMediaWatcherService=W,this._angorNavigationService=te,this._unsubscribeAll=new Ka.B,this.version=_s}ngOnInit(){this._navigationService.navigation$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.navigation=d}),this._angorMediaWatcherService.onMediaChange$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:d})=>{this.isScreenSmall=!d.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(d){const v=this._angorNavigationService.getComponent(d);v&&v.toggle()}static{this.\u0275fac=function(v){return new(v||_)(c.rXU(a.nX),c.rXU(a.Ix),c.rXU(Qu),c.rXU(ae.l),c.rXU(kc.lX))}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["classic-layout"]],decls:21,vars:8,consts:[[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","p-6"],["src","images/logo/logo-text.svg","alt","Angor Hub",1,"w-30","dark:hidden"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"hidden","w-30","dark:flex"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","md:px-6","print:hidden"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],[1,"flex","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","justify-start","border-t","px-4","dark:bg-transparent","md:px-6","print:hidden"],[1,"text-secondary","font-medium"]],template:function(v,D){1&v&&(c.nrm(0,"angor-loading-bar"),c.j41(1,"angor-vertical-navigation",0),c.qex(2,1),c.j41(3,"div",2),c.nrm(4,"img",3)(5,"img",4),c.k0s(),c.bVm(),c.k0s(),c.j41(6,"div",5)(7,"div",6)(8,"button",7),c.bIt("click",function(){return D.toggleNavigation("mainNavigation")}),c.nrm(9,"mat-icon",8),c.k0s(),c.j41(10,"div",9),c.nrm(11,"update")(12,"angor-fullscreen",10)(13,"search",11)(14,"notifications")(15,"user"),c.k0s()(),c.j41(16,"div",12),c.DNE(17,vy,1,0,"router-outlet"),c.k0s(),c.j41(18,"div",13)(19,"span",14),c.EFF(20),c.k0s()()()),2&v&&(c.R7$(),c.Y8G("mode",D.isScreenSmall?"over":"side")("name","mainNavigation")("navigation",D.navigation.default)("opened",!D.isScreenSmall),c.R7$(8),c.Y8G("svgIcon","heroicons_outline:bars-3"),c.R7$(4),c.Y8G("appearance","bar"),c.R7$(4),c.vxM(17),c.R7$(3),c.SpI("Angor Hub - version ",D.version,""))},dependencies:[Su,kc.Tv,ka.Hl,ka.iY,ol.m_,ol.An,Og,Bd,Fh,am,a.n3,qg],encapsulation:2})}}return _})();function yy(_,m){1&_&&c.nrm(0,"empty-layout")}function lm(_,m){1&_&&c.nrm(0,"modern-layout")}function by(_,m){1&_&&c.nrm(0,"classic-layout")}let cm=(()=>{class _{constructor(d,v,D,W,te,we,Ye){this._activatedRoute=d,this._document=v,this._renderer2=D,this._router=W,this._angorConfigService=te,this._angorMediaWatcherService=we,this._angorPlatformService=Ye,this._unsubscribeAll=new Ka.B}ngOnInit(){(0,z.z)([this._angorConfigService.config$,this._angorMediaWatcherService.onMediaQueryChange$(["(prefers-color-scheme: dark)","(prefers-color-scheme: light)"])]).pipe((0,vl.Q)(this._unsubscribeAll),(0,Vs.T)(([d,v])=>{const D={scheme:d.scheme,theme:d.theme};return"auto"===d.scheme&&(D.scheme=v.breakpoints["(prefers-color-scheme: dark)"]?"dark":"light"),D})).subscribe(d=>{this.scheme=d.scheme,this.theme=d.theme,this._updateScheme(),this._updateTheme()}),this._angorConfigService.config$.pipe((0,vl.Q)(this._unsubscribeAll)).subscribe(d=>{this.config=d,this._updateLayout()}),this._router.events.pipe((0,ht.p)(d=>d instanceof a.wF),(0,vl.Q)(this._unsubscribeAll)).subscribe(()=>{this._updateLayout()}),this._renderer2.setAttribute(this._document.querySelector("[ng-version]"),"angor-version",_s),this._renderer2.addClass(this._document.body,this._angorPlatformService.osName)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_updateLayout(){let d=this._activatedRoute;for(;d.firstChild;)d=d.firstChild;this.layout=this.config.layout;const v=d.snapshot.queryParamMap.get("layout");v&&(this.layout=v,this.config&&(this.config.layout=v)),d.pathFromRoot.forEach(W=>{W.routeConfig&&W.routeConfig.data&&W.routeConfig.data.layout&&(this.layout=W.routeConfig.data.layout)})}_updateScheme(){this._document.body.classList.remove("light","dark"),this._document.body.classList.add(this.scheme)}_updateTheme(){this._document.body.classList.forEach(d=>{d.startsWith("theme-")&&this._document.body.classList.remove(d,d.split("-")[1])}),this._document.body.classList.add(this.theme)}static{this.\u0275fac=function(v){return new(v||_)(c.rXU(a.nX),c.rXU(st.qQ),c.rXU(c.sFG),c.rXU(a.Ix),c.rXU(Gg.P),c.rXU(ae.l),c.rXU($e))}}static{this.\u0275cmp=c.VBU({type:_,selectors:[["layout"]],decls:3,vars:3,template:function(v,D){1&v&&c.DNE(0,yy,1,0,"empty-layout")(1,lm,1,0,"modern-layout")(2,by,1,0,"classic-layout"),2&v&&(c.vxM("empty"===D.layout?0:-1),c.R7$(),c.vxM("modern"===D.layout?1:-1),c.R7$(),c.vxM("classic"===D.layout?2:-1))},dependencies:[Nh,gy,_y],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 _})();const pc=()=>((0,c.WQX)(qu.A),!0),Hf=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"project/:pubkey",pathMatch:"full",redirectTo:"explore"},{path:"login-redirect",pathMatch:"full",redirectTo:"explore"},{path:"",component:cm,data:{layout:"empty"},children:[{path:"login",loadChildren:()=>Promise.all([r.e(588),r.e(770)]).then(r.bind(r,770))},{path:"create",loadChildren:()=>Promise.all([r.e(588),r.e(408)]).then(r.bind(r,1408))}]},{path:"",canActivate:[pc],canActivateChild:[pc],component:cm,data:{layout:"empty"},children:[{path:"logout",loadChildren:()=>r.e(514).then(r.bind(r,1514))}]},{path:"",canActivate:[pc],canActivateChild:[pc],component:cm,resolve:{initialData:()=>{const _=(0,c.WQX)(Qu);return(0,c.WQX)(Q_),(0,Xu.p)([_.get()])}},children:[{path:"home",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(888),r.e(541)]).then(r.bind(r,5541))},{path:"explore",loadChildren:()=>Promise.all([r.e(735),r.e(450),r.e(76),r.e(569)]).then(r.bind(r,3329))},{path:"zap",loadChildren:()=>Promise.all([r.e(416),r.e(551)]).then(r.bind(r,8551))},{path:"bookmark",loadChildren:()=>Promise.all([r.e(735),r.e(450),r.e(76),r.e(524)]).then(r.bind(r,8364))},{path:"profile",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(450),r.e(865),r.e(888),r.e(790)]).then(r.bind(r,6790))},{path:"profile/:pubkey",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(450),r.e(865),r.e(888),r.e(790)]).then(r.bind(r,6790))},{path:"profile/:pubkey/:project",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(450),r.e(865),r.e(888),r.e(790)]).then(r.bind(r,6790))},{path:"post",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(865),r.e(888),r.e(218)]).then(r.bind(r,2218))},{path:"post/:id",loadChildren:()=>Promise.all([r.e(416),r.e(735),r.e(861),r.e(865),r.e(888),r.e(218)]).then(r.bind(r,2218))},{path:"settings",loadChildren:()=>Promise.all([r.e(416),r.e(450),r.e(740)]).then(r.bind(r,1740))},{path:"settings/:id",loadChildren:()=>Promise.all([r.e(416),r.e(450),r.e(740)]).then(r.bind(r,1740))},{path:"chat",loadChildren:()=>Promise.all([r.e(416),r.e(861),r.e(865),r.e(307)]).then(r.bind(r,6307))},{path:"404-not-found",pathMatch:"full",loadChildren:()=>r.e(258).then(r.bind(r,5258))},{path:"**",redirectTo:"404-not-found"}]}];let um=(()=>{class _{constructor(){const d=(0,c.WQX)(i.up),v=(0,c.WQX)(ol.tp);v.addSvgIconSet(d.bypassSecurityTrustResourceUrl("icons/material-twotone.svg")),v.addSvgIconSetInNamespace("mat_outline",d.bypassSecurityTrustResourceUrl("icons/material-outline.svg")),v.addSvgIconSetInNamespace("mat_solid",d.bypassSecurityTrustResourceUrl("icons/material-solid.svg")),v.addSvgIconSetInNamespace("feather",d.bypassSecurityTrustResourceUrl("icons/feather.svg")),v.addSvgIconSetInNamespace("heroicons_outline",d.bypassSecurityTrustResourceUrl("icons/heroicons-outline.svg")),v.addSvgIconSetInNamespace("heroicons_solid",d.bypassSecurityTrustResourceUrl("icons/heroicons-solid.svg")),v.addSvgIconSetInNamespace("heroicons_mini",d.bypassSecurityTrustResourceUrl("icons/heroicons-mini.svg"))}static{this.\u0275fac=function(v){return new(v||_)}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var wy=r(9350),Ey=r(7707);let Wf=(()=>{class _{constructor(d){this.httpClient=d}getTranslation(d){return this.httpClient.get(`./i18n/${d}.json`)}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(ne.Qq))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();const dm=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"bookmark",title:"Bookmark",type:"basic",icon:"heroicons_outline:bookmark",link:"/bookmark",requiresLogin:!0},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat",badge:{title:"0",classes:"px-2 bg-[#086c81] text-white rounded-full"},requiresLogin:!0},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile",requiresLogin:!0},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings",requiresLogin:!0}],ev=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"bookmark",title:"Bookmark",type:"basic",icon:"heroicons_outline:bookmark",link:"/bookmark",requiresLogin:!0},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat",badge:{title:"27",classes:"px-2 bg-[#086c81] text-white rounded-full"},requiresLogin:!0},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile",requiresLogin:!0},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings",requiresLogin:!0}];var tv=r(7730);var xy=r(1984),zf=r(7517),Cy=r(6726),Dy=r(5776);const jd=(0,r(8992).A)(Object.keys,Object);var Ty=Object.prototype.hasOwnProperty;var ky=r(1287);const Kf=function Oy(_){return(0,ky.A)(_)?(0,Cy.A)(_):function My(_){if(!(0,Dy.A)(_))return jd(_);var m=[];for(var d in Object(_))Ty.call(_,d)&&"constructor"!=d&&m.push(d);return m}(_)};var hm=r(133);var Jc=r(9933),Vh=r(4528);const Py=function ov(){return[]};var Dw=Object.prototype.propertyIsEnumerable,Xf=Object.getOwnPropertySymbols;const sv=Xf?function(_){return null==_?[]:(_=Object(_),function rv(_,m){for(var d=-1,v=null==_?0:_.length,D=0,W=[];++d{class _{constructor(d,v){this._angorMockApiService=d,this._authService=v,this._defaultNavigation=dm,this._horizontalNavigation=ev,this.registerHandlers()}registerHandlers(){this._angorMockApiService.onGet("api/navigation").reply(()=>{const d=this._authService.isLoggedIn(),v=this._defaultNavigation.filter(W=>!W.requiresLogin||d),D=this._horizontalNavigation.filter(W=>!W.requiresLogin||d);return this._horizontalNavigation.forEach(W=>{this._defaultNavigation.forEach(te=>{te.id===W.id&&(W.children=Si(te.children))})}),[200,{default:Si(v),horizontal:Si(D)}]})}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(Z),c.KVO(Xg))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})(),Xg];let Gd=(()=>{class _{constructor(d){this.http=d,this.timestamp=null,this.ngswFilePath="/ngsw.json"}load(){var d=this;return(0,w.A)(function*(){try{const v=yield d.http.get(d.ngswFilePath).toPromise();v&&v.timestamp?(d.timestamp=v.timestamp,console.log("Timestamp successfully loaded:",d.timestamp)):console.error("Invalid data format in ngsw.json")}catch(v){console.error("Error loading ngsw.json:",v)}})()}getTimestamp(){return this.timestamp}loadHash(){return this.http.get(this.ngswFilePath).pipe((0,Vs.T)(d=>d.timestamp||null),(0,x.W)(d=>(console.error("Error fetching ngsw.json hash:",d),(0,T.$)(()=>new Error("Failed to load hash.")))))}static{this.\u0275fac=function(v){return new(v||_)(c.KVO(ne.Qq))}}static{this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var Pm=r(2083),zv=r(5373);const Fm={providers:[function Kp(){return(0,c.ngT)("NgEagerAnimations"),[...wh]}(),(0,ne.$R)(),function Th(_,m={}){return(0,c.EmA)([Mf,Ku,{provide:Gu,useValue:_},{provide:Qc,useValue:m},{provide:Eu,useFactory:Ta,deps:[Qc,c.Agw]},{provide:c.hnV,useFactory:If,deps:[c.zZn,Gu,Qc,c.Agw],multi:!0}])}("ngsw-worker.js",{enabled:!(0,c.naY)(),registrationStrategy:"registerWhenStable:30000"}),{provide:c.hnV,useFactory:function id(_){return()=>_.load()},deps:[Gd,qu.A,Pm.d],multi:!0},{provide:c.hnV,useFactory:function vb(_,m){return(0,w.A)(function*(){const d=_.getPublicKey();d&&(yield m.loadUserProfile(d))})},deps:[qu.A,Pm.d],multi:!0},{provide:c.hnV,useFactory:function Zh(){return()=>{(0,zv.Ts)({theme:"ocean",noBanner:!0,title:"Angor Hub",onAuth:(_,m)=>{}})}},multi:!0},(0,a.lh)(Hf,(0,a.oH)({scrollPositionRestoration:"enabled"})),{provide:Xt.MJ,useClass:Sa},{provide:Xt.de,useValue:{parse:{dateInput:"D"},display:{dateInput:"DDD",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy"}}},function xg(_){const m=[Ag(pi),qp(Hs),Oh(Ma),Zp(Ia)];return _.config&&m.push(function Cg(_){return(0,c.EmA)([{provide:qi,useValue:wr(_)}])}(_.config)),_.loader&&m.push(function Dg(_){return(0,c.EmA)([{provide:zt,useClass:_}])}(_.loader)),m}({config:{availableLangs:[{id:"en",label:"English"}],defaultLang:"en",fallbackLang:"en",reRenderOnLangChange:!0,prodMode:!0},loader:Wf}),{provide:c.hnV,useFactory:()=>{const _=(0,c.WQX)(Td),m=_.getDefaultLang();return _.setActiveLang(m),()=>function xw(_,m){const d="object"==typeof m;return new Promise((v,D)=>{const W=new Ey.Ms({next:te=>{v(te),W.unsubscribe()},error:D,complete:()=>{d?v(m.defaultValue):D(new wy.G)}});_.subscribe(W)})}(_.load(m))},multi:!0},[{provide:c.Z63,useValue:()=>(0,c.WQX)(um),multi:!0}],(_=>{const m=[{provide:Xt.N,useValue:{doctype:!0,theme:!1,version:!0}},{provide:yn.U$,useValue:{appearance:"fill"}},{provide:C,useValue:_?.mockApi?.delay??0},{provide:Te.t,useValue:_?.angor??{}},(0,c.oKB)(ln.hM),{provide:c.Z63,useValue:()=>(0,c.WQX)(xe.m),multi:!0},(0,ne.$R)((0,ne.b$)([le])),{provide:c.Z63,useValue:()=>(0,c.WQX)(Me),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(ae.l),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)($e),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(vt),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(at.Q),multi:!0}];return _?.mockApi?.services&&m.push((0,ne.$R)((0,ne.b$)([pe])),{provide:c.hnV,deps:[..._.mockApi.services],useFactory:()=>()=>null,multi:!0}),m})({mockApi:{delay:0,services:Wv},angor:JSON.parse(localStorage.getItem("angorConfig"))??{layout:"classic",scheme:"light",screens:{sm:"600px",md:"960px",lg:"1280px",xl:"1440px"},theme:"theme-brand",themes:[{id:"theme-brand",name:"Brand"},{id:"theme-default",name:"Default"},{id:"theme-teal",name:"Teal"},{id:"theme-rose",name:"Rose"},{id:"theme-purple",name:"Purple"},{id:"theme-amber",name:"Amber"}]}})]};(0,i.B8)(y,Fm).catch(_=>console.error(_))},3981:(o,s)=>{"use strict";s.byteLength=function T(Z){var ne=C(Z),me=ne[1];return 3*(ne[0]+me)/4-me},s.toByteArray=function A(Z){var ne,Me,be=C(Z),me=be[0],pe=be[1],Te=new a(function S(Z,ne,be){return 3*(ne+be)/4-be}(0,me,pe)),xe=0,Re=pe>0?me-4:me;for(Me=0;Me>16&255,Te[xe++]=ne>>8&255,Te[xe++]=255≠return 2===pe&&(ne=i[Z.charCodeAt(Me)]<<2|i[Z.charCodeAt(Me+1)]>>4,Te[xe++]=255&ne),1===pe&&(ne=i[Z.charCodeAt(Me)]<<10|i[Z.charCodeAt(Me+1)]<<4|i[Z.charCodeAt(Me+2)]>>2,Te[xe++]=ne>>8&255,Te[xe++]=255&ne),Te},s.fromByteArray=function G(Z){for(var ne,be=Z.length,me=be%3,pe=[],xe=0,Re=be-me;xeRe?Re:xe+16383));return 1===me?pe.push(r[(ne=Z[be-1])>>2]+r[ne<<4&63]+"=="):2===me&&pe.push(r[(ne=(Z[be-2]<<8)+Z[be-1])>>10]+r[ne>>4&63]+r[ne<<2&63]+"="),pe.join("")};for(var r=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0;y<64;++y)r[y]=c[y],i[c.charCodeAt(y)]=y;function C(Z){var ne=Z.length;if(ne%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var be=Z.indexOf("=");return-1===be&&(be=ne),[be,be===ne?0:4-be%4]}function I(Z){return r[Z>>18&63]+r[Z>>12&63]+r[Z>>6&63]+r[63&Z]}function N(Z,ne,be){for(var pe=[],Te=ne;Te{"use strict";const a=r(3981),c=r(2020),y="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;s.hp=S,s.IS=50;const w=2147483647;function T(B){if(B>w)throw new RangeError('The value "'+B+'" is invalid for option "size"');const k=new Uint8Array(B);return Object.setPrototypeOf(k,S.prototype),k}function S(B,k,j){if("number"==typeof B){if("string"==typeof k)throw new TypeError('The "string" argument must be of type string. Received type number');return G(B)}return A(B,k,j)}function A(B,k,j){if("string"==typeof B)return function Z(B,k){if(("string"!=typeof k||""===k)&&(k="utf8"),!S.isEncoding(k))throw new TypeError("Unknown encoding: "+k);const j=0|Re(B,k);let De=T(j);const it=De.write(B,k);return it!==j&&(De=De.slice(0,it)),De}(B,k);if(ArrayBuffer.isView(B))return function be(B){if(Kt(B,Uint8Array)){const k=new Uint8Array(B);return me(k.buffer,k.byteOffset,k.byteLength)}return ne(B)}(B);if(null==B)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(Kt(B,ArrayBuffer)||B&&Kt(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Kt(B,SharedArrayBuffer)||B&&Kt(B.buffer,SharedArrayBuffer)))return me(B,k,j);if("number"==typeof B)throw new TypeError('The "value" argument must not be of type number. Received type number');const De=B.valueOf&&B.valueOf();if(null!=De&&De!==B)return S.from(De,k,j);const it=function pe(B){if(S.isBuffer(B)){const k=0|Te(B.length),j=T(k);return 0===j.length||B.copy(j,0,0,k),j}return void 0!==B.length?"number"!=typeof B.length||xn(B.length)?T(0):ne(B):"Buffer"===B.type&&Array.isArray(B.data)?ne(B.data):void 0}(B);if(it)return it;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof B[Symbol.toPrimitive])return S.from(B[Symbol.toPrimitive]("string"),k,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}function I(B){if("number"!=typeof B)throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function G(B){return I(B),T(B<0?0:0|Te(B))}function ne(B){const k=B.length<0?0:0|Te(B.length),j=T(k);for(let De=0;De=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return 0|B}function Re(B,k){if(S.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||Kt(B,ArrayBuffer))return B.byteLength;if("string"!=typeof B)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const j=B.length,De=arguments.length>2&&!0===arguments[2];if(!De&&0===j)return 0;let it=!1;for(;;)switch(k){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return an(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*j;case"hex":return j>>>1;case"base64":return Gt(B).length;default:if(it)return De?-1:an(B).length;k=(""+k).toLowerCase(),it=!0}}function Me(B,k,j){let De=!1;if((void 0===k||k<0)&&(k=0),k>this.length||((void 0===j||j>this.length)&&(j=this.length),j<=0)||(j>>>=0)<=(k>>>=0))return"";for(B||(B="utf8");;)switch(B){case"hex":return Qe(this,k,j);case"utf8":case"utf-8":return Xt(this,k,j);case"ascii":return $n(this,k,j);case"latin1":case"binary":return bn(this,k,j);case"base64":return at(this,k,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,k,j);default:if(De)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),De=!0}}function Ce(B,k,j){const De=B[k];B[k]=B[j],B[j]=De}function le(B,k,j,De,it){if(0===B.length)return-1;if("string"==typeof j?(De=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),xn(j=+j)&&(j=it?0:B.length-1),j<0&&(j=B.length+j),j>=B.length){if(it)return-1;j=B.length-1}else if(j<0){if(!it)return-1;j=0}if("string"==typeof k&&(k=S.from(k,De)),S.isBuffer(k))return 0===k.length?-1:ae(B,k,j,De,it);if("number"==typeof k)return k&=255,"function"==typeof Uint8Array.prototype.indexOf?it?Uint8Array.prototype.indexOf.call(B,k,j):Uint8Array.prototype.lastIndexOf.call(B,k,j):ae(B,[k],j,De,it);throw new TypeError("val must be string, number or Buffer")}function ae(B,k,j,De,it){let dn,ot=1,Tt=B.length,In=k.length;if(void 0!==De&&("ucs2"===(De=String(De).toLowerCase())||"ucs-2"===De||"utf16le"===De||"utf-16le"===De)){if(B.length<2||k.length<2)return-1;ot=2,Tt/=2,In/=2,j/=2}function Vt(Pn,Fn){return 1===ot?Pn[Fn]:Pn.readUInt16BE(Fn*ot)}if(it){let Pn=-1;for(dn=j;dnTt&&(j=Tt-In),dn=j;dn>=0;dn--){let Pn=!0;for(let Fn=0;Fnit&&(De=it):De=it;const ot=k.length;let Tt;for(De>ot/2&&(De=ot/2),Tt=0;Tt>8,it=j%256,ot.push(it),ot.push(De);return ot}(k,B.length-j),B,j,De)}function at(B,k,j){return a.fromByteArray(0===k&&j===B.length?B:B.slice(k,j))}function Xt(B,k,j){j=Math.min(B.length,j);const De=[];let it=k;for(;it239?4:ot>223?3:ot>191?2:1;if(it+In<=j){let Vt,dn,Pn,Fn;switch(In){case 1:ot<128&&(Tt=ot);break;case 2:Vt=B[it+1],128==(192&Vt)&&(Fn=(31&ot)<<6|63&Vt,Fn>127&&(Tt=Fn));break;case 3:Vt=B[it+1],dn=B[it+2],128==(192&Vt)&&128==(192&dn)&&(Fn=(15&ot)<<12|(63&Vt)<<6|63&dn,Fn>2047&&(Fn<55296||Fn>57343)&&(Tt=Fn));break;case 4:Vt=B[it+1],dn=B[it+2],Pn=B[it+3],128==(192&Vt)&&128==(192&dn)&&128==(192&Pn)&&(Fn=(15&ot)<<18|(63&Vt)<<12|(63&dn)<<6|63&Pn,Fn>65535&&Fn<1114112&&(Tt=Fn))}}null===Tt?(Tt=65533,In=1):Tt>65535&&(Tt-=65536,De.push(Tt>>>10&1023|55296),Tt=56320|1023&Tt),De.push(Tt),it+=In}return function yn(B){const k=B.length;if(k<=ln)return String.fromCharCode.apply(String,B);let j="",De=0;for(;Deit.length?(S.isBuffer(Tt)||(Tt=S.from(Tt)),Tt.copy(it,ot)):Uint8Array.prototype.set.call(it,Tt,ot);else{if(!S.isBuffer(Tt))throw new TypeError('"list" argument must be an Array of Buffers');Tt.copy(it,ot)}ot+=Tt.length}return it},S.byteLength=Re,S.prototype._isBuffer=!0,S.prototype.swap16=function(){const k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;jj&&(k+=" ... "),""},y&&(S.prototype[y]=S.prototype.inspect),S.prototype.compare=function(k,j,De,it,ot){if(Kt(k,Uint8Array)&&(k=S.from(k,k.offset,k.byteLength)),!S.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(void 0===j&&(j=0),void 0===De&&(De=k?k.length:0),void 0===it&&(it=0),void 0===ot&&(ot=this.length),j<0||De>k.length||it<0||ot>this.length)throw new RangeError("out of range index");if(it>=ot&&j>=De)return 0;if(it>=ot)return-1;if(j>=De)return 1;if(this===k)return 0;let Tt=(ot>>>=0)-(it>>>=0),In=(De>>>=0)-(j>>>=0);const Vt=Math.min(Tt,In),dn=this.slice(it,ot),Pn=k.slice(j,De);for(let Fn=0;Fn>>=0,isFinite(De)?(De>>>=0,void 0===it&&(it="utf8")):(it=De,De=void 0)}const ot=this.length-j;if((void 0===De||De>ot)&&(De=ot),k.length>0&&(De<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");it||(it="utf8");let Tt=!1;for(;;)switch(it){case"hex":return Ie(this,k,j,De);case"utf8":case"utf-8":return $e(this,k,j,De);case"ascii":case"latin1":case"binary":return st(this,k,j,De);case"base64":return ht(this,k,j,De);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vt(this,k,j,De);default:if(Tt)throw new TypeError("Unknown encoding: "+it);it=(""+it).toLowerCase(),Tt=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const ln=4096;function $n(B,k,j){let De="";j=Math.min(B.length,j);for(let it=k;itDe)&&(j=De);let it="";for(let ot=k;otj)throw new RangeError("Trying to access beyond buffer length")}function Fe(B,k,j,De,it,ot){if(!S.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>it||kB.length)throw new RangeError("Index out of range")}function Ft(B,k,j,De,it){Jt(k,De,it,B,j,7);let ot=Number(k&BigInt(4294967295));B[j++]=ot,ot>>=8,B[j++]=ot,ot>>=8,B[j++]=ot,ot>>=8,B[j++]=ot;let Tt=Number(k>>BigInt(32)&BigInt(4294967295));return B[j++]=Tt,Tt>>=8,B[j++]=Tt,Tt>>=8,B[j++]=Tt,Tt>>=8,B[j++]=Tt,j}function Ke(B,k,j,De,it){Jt(k,De,it,B,j,7);let ot=Number(k&BigInt(4294967295));B[j+7]=ot,ot>>=8,B[j+6]=ot,ot>>=8,B[j+5]=ot,ot>>=8,B[j+4]=ot;let Tt=Number(k>>BigInt(32)&BigInt(4294967295));return B[j+3]=Tt,Tt>>=8,B[j+2]=Tt,Tt>>=8,B[j+1]=Tt,Tt>>=8,B[j]=Tt,j+8}function dt(B,k,j,De,it,ot){if(j+De>B.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function Ge(B,k,j,De,it){return k=+k,j>>>=0,it||dt(B,0,j,4),c.write(B,k,j,De,23,4),j+4}function He(B,k,j,De,it){return k=+k,j>>>=0,it||dt(B,0,j,8),c.write(B,k,j,De,52,8),j+8}S.prototype.slice=function(k,j){const De=this.length;(k=~~k)<0?(k+=De)<0&&(k=0):k>De&&(k=De),(j=void 0===j?De:~~j)<0?(j+=De)<0&&(j=0):j>De&&(j=De),j>>=0,j>>>=0,De||ze(k,j,this.length);let it=this[k],ot=1,Tt=0;for(;++Tt>>=0,j>>>=0,De||ze(k,j,this.length);let it=this[k+--j],ot=1;for(;j>0&&(ot*=256);)it+=this[k+--j]*ot;return it},S.prototype.readUint8=S.prototype.readUInt8=function(k,j){return k>>>=0,j||ze(k,1,this.length),this[k]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(k,j){return k>>>=0,j||ze(k,2,this.length),this[k]|this[k+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(k,j){return k>>>=0,j||ze(k,2,this.length),this[k]<<8|this[k+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function(k,j){return k>>>=0,j||ze(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},S.prototype.readUint32BE=S.prototype.readUInt32BE=function(k,j){return k>>>=0,j||ze(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},S.prototype.readBigUInt64LE=tt(function(k){fn(k>>>=0,"offset");const j=this[k],De=this[k+7];(void 0===j||void 0===De)&&Gn(k,this.length-8);const it=j+256*this[++k]+65536*this[++k]+this[++k]*2**24,ot=this[++k]+256*this[++k]+65536*this[++k]+De*2**24;return BigInt(it)+(BigInt(ot)<>>=0,"offset");const j=this[k],De=this[k+7];(void 0===j||void 0===De)&&Gn(k,this.length-8);const it=j*2**24+65536*this[++k]+256*this[++k]+this[++k],ot=this[++k]*2**24+65536*this[++k]+256*this[++k]+De;return(BigInt(it)<>>=0,j>>>=0,De||ze(k,j,this.length);let it=this[k],ot=1,Tt=0;for(;++Tt=ot&&(it-=Math.pow(2,8*j)),it},S.prototype.readIntBE=function(k,j,De){k>>>=0,j>>>=0,De||ze(k,j,this.length);let it=j,ot=1,Tt=this[k+--it];for(;it>0&&(ot*=256);)Tt+=this[k+--it]*ot;return ot*=128,Tt>=ot&&(Tt-=Math.pow(2,8*j)),Tt},S.prototype.readInt8=function(k,j){return k>>>=0,j||ze(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},S.prototype.readInt16LE=function(k,j){k>>>=0,j||ze(k,2,this.length);const De=this[k]|this[k+1]<<8;return 32768&De?4294901760|De:De},S.prototype.readInt16BE=function(k,j){k>>>=0,j||ze(k,2,this.length);const De=this[k+1]|this[k]<<8;return 32768&De?4294901760|De:De},S.prototype.readInt32LE=function(k,j){return k>>>=0,j||ze(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},S.prototype.readInt32BE=function(k,j){return k>>>=0,j||ze(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},S.prototype.readBigInt64LE=tt(function(k){fn(k>>>=0,"offset");const j=this[k],De=this[k+7];return(void 0===j||void 0===De)&&Gn(k,this.length-8),(BigInt(this[k+4]+256*this[k+5]+65536*this[k+6]+(De<<24))<>>=0,"offset");const j=this[k],De=this[k+7];(void 0===j||void 0===De)&&Gn(k,this.length-8);const it=(j<<24)+65536*this[++k]+256*this[++k]+this[++k];return(BigInt(it)<>>=0,j||ze(k,4,this.length),c.read(this,k,!0,23,4)},S.prototype.readFloatBE=function(k,j){return k>>>=0,j||ze(k,4,this.length),c.read(this,k,!1,23,4)},S.prototype.readDoubleLE=function(k,j){return k>>>=0,j||ze(k,8,this.length),c.read(this,k,!0,52,8)},S.prototype.readDoubleBE=function(k,j){return k>>>=0,j||ze(k,8,this.length),c.read(this,k,!1,52,8)},S.prototype.writeUintLE=S.prototype.writeUIntLE=function(k,j,De,it){k=+k,j>>>=0,De>>>=0,it||Fe(this,k,j,De,Math.pow(2,8*De)-1,0);let ot=1,Tt=0;for(this[j]=255&k;++Tt>>=0,De>>>=0,it||Fe(this,k,j,De,Math.pow(2,8*De)-1,0);let ot=De-1,Tt=1;for(this[j+ot]=255&k;--ot>=0&&(Tt*=256);)this[j+ot]=k/Tt&255;return j+De},S.prototype.writeUint8=S.prototype.writeUInt8=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,1,255,0),this[j]=255&k,j+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,2,65535,0),this[j]=255&k,this[j+1]=k>>>8,j+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,2,65535,0),this[j]=k>>>8,this[j+1]=255&k,j+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,4,4294967295,0),this[j+3]=k>>>24,this[j+2]=k>>>16,this[j+1]=k>>>8,this[j]=255&k,j+4},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,4,4294967295,0),this[j]=k>>>24,this[j+1]=k>>>16,this[j+2]=k>>>8,this[j+3]=255&k,j+4},S.prototype.writeBigUInt64LE=tt(function(k,j=0){return Ft(this,k,j,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeBigUInt64BE=tt(function(k,j=0){return Ke(this,k,j,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeIntLE=function(k,j,De,it){if(k=+k,j>>>=0,!it){const Vt=Math.pow(2,8*De-1);Fe(this,k,j,De,Vt-1,-Vt)}let ot=0,Tt=1,In=0;for(this[j]=255&k;++ot>>=0,!it){const Vt=Math.pow(2,8*De-1);Fe(this,k,j,De,Vt-1,-Vt)}let ot=De-1,Tt=1,In=0;for(this[j+ot]=255&k;--ot>=0&&(Tt*=256);)k<0&&0===In&&0!==this[j+ot+1]&&(In=1),this[j+ot]=(k/Tt|0)-In&255;return j+De},S.prototype.writeInt8=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,1,127,-128),k<0&&(k=255+k+1),this[j]=255&k,j+1},S.prototype.writeInt16LE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,2,32767,-32768),this[j]=255&k,this[j+1]=k>>>8,j+2},S.prototype.writeInt16BE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,2,32767,-32768),this[j]=k>>>8,this[j+1]=255&k,j+2},S.prototype.writeInt32LE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,4,2147483647,-2147483648),this[j]=255&k,this[j+1]=k>>>8,this[j+2]=k>>>16,this[j+3]=k>>>24,j+4},S.prototype.writeInt32BE=function(k,j,De){return k=+k,j>>>=0,De||Fe(this,k,j,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[j]=k>>>24,this[j+1]=k>>>16,this[j+2]=k>>>8,this[j+3]=255&k,j+4},S.prototype.writeBigInt64LE=tt(function(k,j=0){return Ft(this,k,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeBigInt64BE=tt(function(k,j=0){return Ke(this,k,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeFloatLE=function(k,j,De){return Ge(this,k,j,!0,De)},S.prototype.writeFloatBE=function(k,j,De){return Ge(this,k,j,!1,De)},S.prototype.writeDoubleLE=function(k,j,De){return He(this,k,j,!0,De)},S.prototype.writeDoubleBE=function(k,j,De){return He(this,k,j,!1,De)},S.prototype.copy=function(k,j,De,it){if(!S.isBuffer(k))throw new TypeError("argument should be a Buffer");if(De||(De=0),!it&&0!==it&&(it=this.length),j>=k.length&&(j=k.length),j||(j=0),it>0&&it=this.length)throw new RangeError("Index out of range");if(it<0)throw new RangeError("sourceEnd out of bounds");it>this.length&&(it=this.length),k.length-j>>=0,De=void 0===De?this.length:De>>>0,k||(k=0),"number"==typeof k)for(ot=j;ot=De+4;j-=3)k=`_${B.slice(j-3,j)}${k}`;return`${B.slice(0,j)}${k}`}function Jt(B,k,j,De,it,ot){if(B>j||B3?0===k||k===BigInt(0)?`>= 0${Tt} and < 2${Tt} ** ${8*(ot+1)}${Tt}`:`>= -(2${Tt} ** ${8*(ot+1)-1}${Tt}) and < 2 ** ${8*(ot+1)-1}${Tt}`:`>= ${k}${Tt} and <= ${j}${Tt}`,new mt.ERR_OUT_OF_RANGE("value",In,B)}!function Rt(B,k,j){fn(k,"offset"),(void 0===B[k]||void 0===B[k+j])&&Gn(k,B.length-(j+1))}(De,it,ot)}function fn(B,k){if("number"!=typeof B)throw new mt.ERR_INVALID_ARG_TYPE(k,"number",B)}function Gn(B,k,j){throw Math.floor(B)!==B?(fn(B,j),new mt.ERR_OUT_OF_RANGE(j||"offset","an integer",B)):k<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE(j||"offset",`>= ${j?1:0} and <= ${k}`,B)}se("ERR_BUFFER_OUT_OF_BOUNDS",function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),se("ERR_INVALID_ARG_TYPE",function(B,k){return`The "${B}" argument must be of type number. Received type ${typeof k}`},TypeError),se("ERR_OUT_OF_RANGE",function(B,k,j){let De=`The value of "${B}" is out of range.`,it=j;return Number.isInteger(j)&&Math.abs(j)>2**32?it=Ze(String(j)):"bigint"==typeof j&&(it=String(j),(j>BigInt(2)**BigInt(32)||j<-(BigInt(2)**BigInt(32)))&&(it=Ze(it)),it+="n"),De+=` It must be ${k}. Received ${it}`,De},RangeError);const Nt=/[^+/0-9A-Za-z-_]/g;function an(B,k){let j;k=k||1/0;const De=B.length;let it=null;const ot=[];for(let Tt=0;Tt55295&&j<57344){if(!it){if(j>56319){(k-=3)>-1&&ot.push(239,191,189);continue}if(Tt+1===De){(k-=3)>-1&&ot.push(239,191,189);continue}it=j;continue}if(j<56320){(k-=3)>-1&&ot.push(239,191,189),it=j;continue}j=65536+(it-55296<<10|j-56320)}else it&&(k-=3)>-1&&ot.push(239,191,189);if(it=null,j<128){if((k-=1)<0)break;ot.push(j)}else if(j<2048){if((k-=2)<0)break;ot.push(j>>6|192,63&j|128)}else if(j<65536){if((k-=3)<0)break;ot.push(j>>12|224,j>>6&63|128,63&j|128)}else{if(!(j<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;ot.push(j>>18|240,j>>12&63|128,j>>6&63|128,63&j|128)}}return ot}function Gt(B){return a.toByteArray(function Qt(B){if((B=(B=B.split("=")[0]).trim().replace(Nt,"")).length<2)return"";for(;B.length%4!=0;)B+="=";return B}(B))}function At(B,k,j,De){let it;for(it=0;it=k.length||it>=B.length);++it)k[it+j]=B[it];return it}function Kt(B,k){return B instanceof k||null!=B&&null!=B.constructor&&null!=B.constructor.name&&B.constructor.name===k.name}function xn(B){return B!=B}const Yn=function(){const B="0123456789abcdef",k=new Array(256);for(let j=0;j<16;++j){const De=16*j;for(let it=0;it<16;++it)k[De+it]=B[j]+B[it]}return k}();function tt(B){return typeof BigInt>"u"?ke:B}function ke(){throw new Error("BigInt not supported")}},2020:(o,s)=>{s.read=function(r,i,a,c,y){var w,C,T=8*y-c-1,S=(1<>1,I=-7,N=a?y-1:0,G=a?-1:1,Z=r[i+N];for(N+=G,w=Z&(1<<-I)-1,Z>>=-I,I+=T;I>0;w=256*w+r[i+N],N+=G,I-=8);for(C=w&(1<<-I)-1,w>>=-I,I+=c;I>0;C=256*C+r[i+N],N+=G,I-=8);if(0===w)w=1-A;else{if(w===S)return C?NaN:1/0*(Z?-1:1);C+=Math.pow(2,c),w-=A}return(Z?-1:1)*C*Math.pow(2,w-c)},s.write=function(r,i,a,c,y,w){var C,T,S,A=8*w-y-1,I=(1<>1,G=23===y?Math.pow(2,-24)-Math.pow(2,-77):0,Z=c?0:w-1,ne=c?1:-1,be=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(T=isNaN(i)?1:0,C=I):(C=Math.floor(Math.log(i)/Math.LN2),i*(S=Math.pow(2,-C))<1&&(C--,S*=2),(i+=C+N>=1?G/S:G*Math.pow(2,1-N))*S>=2&&(C++,S/=2),C+N>=I?(T=0,C=I):C+N>=1?(T=(i*S-1)*Math.pow(2,y),C+=N):(T=i*Math.pow(2,N-1)*Math.pow(2,y),C=0));y>=8;r[a+Z]=255&T,Z+=ne,T/=256,y-=8);for(C=C<0;r[a+Z]=255&C,Z+=ne,C/=256,A-=8);r[a+Z-ne]|=128*be}},119:o=>{o.exports=function a(c,y,w){function C(A,I){if(!y[A]){if(!c[A]){if(T)return T(A,!0);var G=new Error("Cannot find module '"+A+"'");throw G.code="MODULE_NOT_FOUND",G}var Z=y[A]={exports:{}};c[A][0].call(Z.exports,function(ne){return C(c[A][1][ne]||ne)},Z,Z.exports,a,c,y,w)}return y[A].exports}for(var T=void 0,S=0;S"u"&&a(3);var N=Promise;function G(ve,et){et&&ve.then(function(Oe){et(null,Oe)},function(Oe){et(Oe)})}function Z(ve,et,Oe){"function"==typeof et&&ve.then(et),"function"==typeof Oe&&ve.catch(Oe)}function ne(ve){return"string"!=typeof ve&&(console.warn(ve+" used as a key, but it is not a string."),ve=String(ve)),ve}function be(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var me="local-forage-detect-blob-support",pe=void 0,Te={},xe=Object.prototype.toString,Re="readonly",Me="readwrite";function Ce(ve){for(var et=ve.length,Oe=new ArrayBuffer(et),pt=new Uint8Array(Oe),$t=0;$t=43)}}).catch(function(){return!1})}(ve).then(function(et){return pe=et})}function Ie(ve){var et=Te[ve.name],Oe={};Oe.promise=new N(function(pt,$t){Oe.resolve=pt,Oe.reject=$t}),et.deferredOperations.push(Oe),et.dbReady=et.dbReady?et.dbReady.then(function(){return Oe.promise}):Oe.promise}function $e(ve){var Oe=Te[ve.name].deferredOperations.pop();if(Oe)return Oe.resolve(),Oe.promise}function st(ve,et){var pt=Te[ve.name].deferredOperations.pop();if(pt)return pt.reject(et),pt.promise}function ht(ve,et){return new N(function(Oe,pt){if(Te[ve.name]=Te[ve.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},ve.db){if(!et)return Oe(ve.db);Ie(ve),ve.db.close()}var $t=[ve.name];et&&$t.push(ve.version);var Mt=S.open.apply(S,$t);et&&(Mt.onupgradeneeded=function(un){var Cn=Mt.result;try{Cn.createObjectStore(ve.storeName),un.oldVersion<=1&&Cn.createObjectStore(me)}catch(Sn){if("ConstraintError"!==Sn.name)throw Sn;console.warn('The database "'+ve.name+'" has been upgraded from version '+un.oldVersion+" to version "+un.newVersion+', but the storage "'+ve.storeName+'" already exists.')}}),Mt.onerror=function(un){un.preventDefault(),pt(Mt.error)},Mt.onsuccess=function(){var un=Mt.result;un.onversionchange=function(Cn){Cn.target.close()},Oe(un),$e(ve)}})}function vt(ve){return ht(ve,!1)}function at(ve){return ht(ve,!0)}function Xt(ve,et){if(!ve.db)return!0;var Oe=!ve.db.objectStoreNames.contains(ve.storeName),$t=ve.version>ve.db.version;if(ve.versionve.version&&(ve.version=Mt)}return!0}return!1}function yn(ve){return I([Ce(atob(ve.data))],{type:ve.type})}function $n(ve){return ve&&ve.__local_forage_encoded_blob}function bn(ve){var et=this,Oe=et._initReady().then(function(){var pt=Te[et._dbInfo.name];if(pt&&pt.dbReady)return pt.dbReady});return Z(Oe,ve,ve),Oe}function bt(ve,et,Oe,pt){void 0===pt&&(pt=1);try{var $t=ve.db.transaction(ve.storeName,et);Oe(null,$t)}catch(Mt){if(pt>0&&(!ve.db||"InvalidStateError"===Mt.name||"NotFoundError"===Mt.name))return N.resolve().then(function(){if(!ve.db||"NotFoundError"===Mt.name&&!ve.db.objectStoreNames.contains(ve.storeName)&&ve.version<=ve.db.version)return ve.db&&(ve.version=ve.db.version+1),at(ve)}).then(function(){return function Qe(ve){Ie(ve);for(var et=Te[ve.name],Oe=et.forages,pt=0;pt>4,Un[$t++]=(15&un)<<4|Cn>>2,Un[$t++]=(3&Cn)<<6|63&Sn;return kn}function Tt(ve){var pt,et=new Uint8Array(ve),Oe="";for(pt=0;pt>2],Oe+=Gn[(3&et[pt])<<4|et[pt+1]>>4],Oe+=Gn[(15&et[pt+1])<<2|et[pt+2]>>6],Oe+=Gn[63&et[pt+2]];return et.length%3==2?Oe=Oe.substring(0,Oe.length-1)+"=":et.length%3==1&&(Oe=Oe.substring(0,Oe.length-2)+"=="),Oe}var dn={serialize:function In(ve,et){var Oe="";if(ve&&(Oe=it.call(ve)),ve&&("[object ArrayBuffer]"===Oe||ve.buffer&&"[object ArrayBuffer]"===it.call(ve.buffer))){var pt,$t=an;ve instanceof ArrayBuffer?(pt=ve,$t+=En):(pt=ve.buffer,"[object Int8Array]"===Oe?$t+="si08":"[object Uint8Array]"===Oe?$t+="ui08":"[object Uint8ClampedArray]"===Oe?$t+="uic8":"[object Int16Array]"===Oe?$t+="si16":"[object Uint16Array]"===Oe?$t+="ur16":"[object Int32Array]"===Oe?$t+="si32":"[object Uint32Array]"===Oe?$t+=B:"[object Float32Array]"===Oe?$t+=k:"[object Float64Array]"===Oe?$t+=j:et(new Error("Failed to get type for BinaryArray"))),et($t+Tt(pt))}else if("[object Blob]"===Oe){var Mt=new FileReader;Mt.onload=function(){var un="~~local_forage_type~"+ve.type+"~"+Tt(this.result);et(an+Gt+un)},Mt.readAsArrayBuffer(ve)}else try{et(JSON.stringify(ve))}catch(un){console.error("Couldn't convert value into a JSON string: ",ve),et(null,un)}},deserialize:function Vt(ve){if(ve.substring(0,9)!==an)return JSON.parse(ve);var pt,et=ve.substring(13),Oe=ve.substring(9,13);if(Oe===Gt&&Qt.test(et)){var $t=et.match(Qt);pt=$t[1],et=et.substring($t[0].length)}var Mt=ot(et);switch(Oe){case En:return Mt;case Gt:return I([Mt],{type:pt});case"si08":return new Int8Array(Mt);case"ui08":return new Uint8Array(Mt);case"uic8":return new Uint8ClampedArray(Mt);case"si16":return new Int16Array(Mt);case"ur16":return new Uint16Array(Mt);case"si32":return new Int32Array(Mt);case B:return new Uint32Array(Mt);case k:return new Float32Array(Mt);case j:return new Float64Array(Mt);default:throw new Error("Unkown type: "+Oe)}},stringToBuffer:ot,bufferToString:Tt};function Pn(ve,et,Oe,pt){ve.executeSql("CREATE TABLE IF NOT EXISTS "+et.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Oe,pt)}function Bn(ve,et,Oe,pt,$t,Mt){ve.executeSql(Oe,pt,$t,function(un,Cn){Cn.code===Cn.SYNTAX_ERR?un.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[et.storeName],function(Sn,kn){kn.rows.length?Mt(Sn,Cn):Pn(Sn,et,function(){Sn.executeSql(Oe,pt,$t,Mt)},Mt)},Mt):Mt(un,Cn)},Mt)}function Xr(ve,et,Oe,pt){var $t=this;ve=ne(ve);var Mt=new N(function(un,Cn){$t.ready().then(function(){void 0===et&&(et=null);var Sn=et,kn=$t._dbInfo;kn.serializer.serialize(et,function(Un,Jn){Jn?Cn(Jn):kn.db.transaction(function(sr){Bn(sr,kn,"INSERT OR REPLACE INTO "+kn.storeName+" (key, value) VALUES (?, ?)",[ve,Un],function(){un(Sn)},function(kr,mr){Cn(mr)})},function(sr){if(sr.code===sr.QUOTA_ERR){if(pt>0)return void un(Xr.apply($t,[ve,Sn,Oe,pt-1]));Cn(sr)}})})}).catch(Cn)});return G(Mt,Oe),Mt}var mn={_driver:"webSQLStorage",_initStorage:function Fn(ve){var et=this,Oe={db:null};if(ve)for(var pt in ve)Oe[pt]="string"!=typeof ve[pt]?ve[pt].toString():ve[pt];var $t=new N(function(Mt,un){try{Oe.db=openDatabase(Oe.name,String(Oe.version),Oe.description,Oe.size)}catch(Cn){return un(Cn)}Oe.db.transaction(function(Cn){Pn(Cn,Oe,function(){et._dbInfo=Oe,Mt()},function(Sn,kn){un(kn)})},un)});return Oe.serializer=dn,$t},_support:function fn(){return"function"==typeof openDatabase}(),iterate:function Jr(ve,et){var Oe=this,pt=new N(function($t,Mt){Oe.ready().then(function(){var un=Oe._dbInfo;un.db.transaction(function(Cn){Bn(Cn,un,"SELECT * FROM "+un.storeName,[],function(Sn,kn){for(var Un=kn.rows,Jn=Un.length,sr=0;sr '__WebKitDatabaseInfoTable__'",[],function($t,Mt){for(var un=[],Cn=0;Cn0}var Uo={_driver:"localStorageWrapper",_initStorage:function Ai(ve){var Oe={};if(ve)for(var pt in ve)Oe[pt]=ve[pt];return Oe.keyPrefix=Mr(ve,this._defaultConfig),ci()?(this._dbInfo=Oe,Oe.serializer=dn,N.resolve()):N.reject()},_support:function or(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function qe(ve,et){var Oe=this,pt=Oe.ready().then(function(){for(var $t=Oe._dbInfo,Mt=$t.keyPrefix,un=Mt.length,Cn=localStorage.length,Sn=1,kn=0;kn=0;$t--){var Mt=localStorage.key($t);0===Mt.indexOf(pt)&&localStorage.removeItem(Mt)}});return G(Oe,ve),Oe},length:function Hn(ve){var Oe=this.keys().then(function(pt){return pt.length});return G(Oe,ve),Oe},key:function Dt(ve,et){var Oe=this,pt=Oe.ready().then(function(){var Mt,$t=Oe._dbInfo;try{Mt=localStorage.key(ve)}catch{Mt=null}return Mt&&(Mt=Mt.substring($t.keyPrefix.length)),Mt});return G(pt,et),pt},keys:function Wt(ve){var et=this,Oe=et.ready().then(function(){for(var pt=et._dbInfo,$t=localStorage.length,Mt=[],un=0;un<$t;un++){var Cn=localStorage.key(un);0===Cn.indexOf(pt.keyPrefix)&&Mt.push(Cn.substring(pt.keyPrefix.length))}return Mt});return G(Oe,ve),Oe},dropInstance:function Oi(ve,et){if(et=be.apply(this,arguments),!(ve="function"!=typeof ve&&ve||{}).name){var Oe=this.config();ve.name=ve.name||Oe.name,ve.storeName=ve.storeName||Oe.storeName}var $t,pt=this;return G($t=ve.name?new N(function(Mt){Mt(ve.storeName?Mr(ve,pt._defaultConfig):ve.name+"/")}).then(function(Mt){for(var un=localStorage.length-1;un>=0;un--){var Cn=localStorage.key(un);0===Cn.indexOf(Mt)&&localStorage.removeItem(Cn)}}):N.reject("Invalid arguments"),et),$t}},oi=function(et,Oe){return et===Oe||"number"==typeof et&&"number"==typeof Oe&&isNaN(et)&&isNaN(Oe)},ts=function(et,Oe){for(var pt=et.length,$t=0;$t"u"?"undefined":w(Oe))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var pt in Oe){if("storeName"===pt&&(Oe[pt]=Oe[pt].replace(/\W/g,"_")),"version"===pt&&"number"!=typeof Oe[pt])return new Error("Database version must be a number.");this._config[pt]=Oe[pt]}return!("driver"in Oe)||!Oe.driver||this.setDriver(this._config.driver)}return"string"==typeof Oe?this._config[Oe]:this._config},ve.prototype.defineDriver=function(Oe,pt,$t){var Mt=new N(function(un,Cn){try{var Sn=Oe._driver,kn=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!Oe._driver)return void Cn(kn);for(var Un=oo.concat("_initStorage"),Jn=0,sr=Un.length;Jn{"use strict";r.d(s,{t:()=>a});var i=r(1413);class a extends i.B{constructor(y){super(),this._value=y}get value(){return this.getValue()}_subscribe(y){const w=super._subscribe(y);return!w.closed&&y.next(this._value),w}getValue(){const{hasError:y,thrownError:w,_value:C}=this;if(y)throw w;return this._throwIfClosed(),C}next(y){super.next(this._value=y)}}},1985:(o,s,r)=>{"use strict";r.d(s,{c:()=>S});var i=r(7707),a=r(8359),c=r(3494),y=r(1203),w=r(1026),C=r(8071),T=r(9786);let S=(()=>{class G{constructor(ne){ne&&(this._subscribe=ne)}lift(ne){const be=new G;return be.source=this,be.operator=ne,be}subscribe(ne,be,me){const pe=function N(G){return G&&G instanceof i.vU||function I(G){return G&&(0,C.T)(G.next)&&(0,C.T)(G.error)&&(0,C.T)(G.complete)}(G)&&(0,a.Uv)(G)}(ne)?ne:new i.Ms(ne,be,me);return(0,T.Y)(()=>{const{operator:Te,source:xe}=this;pe.add(Te?Te.call(pe,xe):xe?this._subscribe(pe):this._trySubscribe(pe))}),pe}_trySubscribe(ne){try{return this._subscribe(ne)}catch(be){ne.error(be)}}forEach(ne,be){return new(be=A(be))((me,pe)=>{const Te=new i.Ms({next:xe=>{try{ne(xe)}catch(Re){pe(Re),Te.unsubscribe()}},error:pe,complete:me});this.subscribe(Te)})}_subscribe(ne){var be;return null===(be=this.source)||void 0===be?void 0:be.subscribe(ne)}[c.s](){return this}pipe(...ne){return(0,y.m)(ne)(this)}toPromise(ne){return new(ne=A(ne))((be,me)=>{let pe;this.subscribe(Te=>pe=Te,Te=>me(Te),()=>be(pe))})}}return G.create=Z=>new G(Z),G})();function A(G){var Z;return null!==(Z=G??w.$.Promise)&&void 0!==Z?Z:Promise}},2771:(o,s,r)=>{"use strict";r.d(s,{m:()=>c});var i=r(1413),a=r(6129);class c extends i.B{constructor(w=1/0,C=1/0,T=a.U){super(),this._bufferSize=w,this._windowTime=C,this._timestampProvider=T,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=C===1/0,this._bufferSize=Math.max(1,w),this._windowTime=Math.max(1,C)}next(w){const{isStopped:C,_buffer:T,_infiniteTimeWindow:S,_timestampProvider:A,_windowTime:I}=this;C||(T.push(w),!S&&T.push(A.now()+I)),this._trimBuffer(),super.next(w)}_subscribe(w){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(w),{_infiniteTimeWindow:T,_buffer:S}=this,A=S.slice();for(let I=0;I{"use strict";r.d(s,{B:()=>T});var i=r(1985),a=r(8359);const y=(0,r(1853).L)(A=>function(){A(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var w=r(7908),C=r(9786);let T=(()=>{class A extends i.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(N){const G=new S(this,this);return G.operator=N,G}_throwIfClosed(){if(this.closed)throw new y}next(N){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const G of this.currentObservers)G.next(N)}})}error(N){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=N;const{observers:G}=this;for(;G.length;)G.shift().error(N)}})}complete(){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:N}=this;for(;N.length;)N.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var N;return(null===(N=this.observers)||void 0===N?void 0:N.length)>0}_trySubscribe(N){return this._throwIfClosed(),super._trySubscribe(N)}_subscribe(N){return this._throwIfClosed(),this._checkFinalizedStatuses(N),this._innerSubscribe(N)}_innerSubscribe(N){const{hasError:G,isStopped:Z,observers:ne}=this;return G||Z?a.Kn:(this.currentObservers=null,ne.push(N),new a.yU(()=>{this.currentObservers=null,(0,w.o)(ne,N)}))}_checkFinalizedStatuses(N){const{hasError:G,thrownError:Z,isStopped:ne}=this;G?N.error(Z):ne&&N.complete()}asObservable(){const N=new i.c;return N.source=this,N}}return A.create=(I,N)=>new S(I,N),A})();class S extends T{constructor(I,N){super(),this.destination=I,this.source=N}next(I){var N,G;null===(G=null===(N=this.destination)||void 0===N?void 0:N.next)||void 0===G||G.call(N,I)}error(I){var N,G;null===(G=null===(N=this.destination)||void 0===N?void 0:N.error)||void 0===G||G.call(N,I)}complete(){var I,N;null===(N=null===(I=this.destination)||void 0===I?void 0:I.complete)||void 0===N||N.call(I)}_subscribe(I){var N,G;return null!==(G=null===(N=this.source)||void 0===N?void 0:N.subscribe(I))&&void 0!==G?G:a.Kn}}},7707:(o,s,r)=>{"use strict";r.d(s,{Ms:()=>me,vU:()=>G});var i=r(8071),a=r(8359),c=r(1026),y=r(5334),w=r(5343);const C=A("C",void 0,void 0);function A(Me,Ce,le){return{kind:Me,value:Ce,error:le}}var I=r(9270),N=r(9786);class G extends a.yU{constructor(Ce){super(),this.isStopped=!1,Ce?(this.destination=Ce,(0,a.Uv)(Ce)&&Ce.add(this)):this.destination=Re}static create(Ce,le,ae){return new me(Ce,le,ae)}next(Ce){this.isStopped?xe(function S(Me){return A("N",Me,void 0)}(Ce),this):this._next(Ce)}error(Ce){this.isStopped?xe(function T(Me){return A("E",void 0,Me)}(Ce),this):(this.isStopped=!0,this._error(Ce))}complete(){this.isStopped?xe(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ce){this.destination.next(Ce)}_error(Ce){try{this.destination.error(Ce)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Z=Function.prototype.bind;function ne(Me,Ce){return Z.call(Me,Ce)}class be{constructor(Ce){this.partialObserver=Ce}next(Ce){const{partialObserver:le}=this;if(le.next)try{le.next(Ce)}catch(ae){pe(ae)}}error(Ce){const{partialObserver:le}=this;if(le.error)try{le.error(Ce)}catch(ae){pe(ae)}else pe(Ce)}complete(){const{partialObserver:Ce}=this;if(Ce.complete)try{Ce.complete()}catch(le){pe(le)}}}class me extends G{constructor(Ce,le,ae){let Ie;if(super(),(0,i.T)(Ce)||!Ce)Ie={next:Ce??void 0,error:le??void 0,complete:ae??void 0};else{let $e;this&&c.$.useDeprecatedNextContext?($e=Object.create(Ce),$e.unsubscribe=()=>this.unsubscribe(),Ie={next:Ce.next&&ne(Ce.next,$e),error:Ce.error&&ne(Ce.error,$e),complete:Ce.complete&&ne(Ce.complete,$e)}):Ie=Ce}this.destination=new be(Ie)}}function pe(Me){c.$.useDeprecatedSynchronousErrorHandling?(0,N.l)(Me):(0,y.m)(Me)}function xe(Me,Ce){const{onStoppedNotification:le}=c.$;le&&I.f.setTimeout(()=>le(Me,Ce))}const Re={closed:!0,next:w.l,error:function Te(Me){throw Me},complete:w.l}},8359:(o,s,r)=>{"use strict";r.d(s,{Kn:()=>C,yU:()=>w,Uv:()=>T});var i=r(8071);const c=(0,r(1853).L)(A=>function(N){A(this),this.message=N?`${N.length} errors occurred during unsubscription:\n${N.map((G,Z)=>`${Z+1}) ${G.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=N});var y=r(7908);class w{constructor(I){this.initialTeardown=I,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let I;if(!this.closed){this.closed=!0;const{_parentage:N}=this;if(N)if(this._parentage=null,Array.isArray(N))for(const ne of N)ne.remove(this);else N.remove(this);const{initialTeardown:G}=this;if((0,i.T)(G))try{G()}catch(ne){I=ne instanceof c?ne.errors:[ne]}const{_finalizers:Z}=this;if(Z){this._finalizers=null;for(const ne of Z)try{S(ne)}catch(be){I=I??[],be instanceof c?I=[...I,...be.errors]:I.push(be)}}if(I)throw new c(I)}}add(I){var N;if(I&&I!==this)if(this.closed)S(I);else{if(I instanceof w){if(I.closed||I._hasParent(this))return;I._addParent(this)}(this._finalizers=null!==(N=this._finalizers)&&void 0!==N?N:[]).push(I)}}_hasParent(I){const{_parentage:N}=this;return N===I||Array.isArray(N)&&N.includes(I)}_addParent(I){const{_parentage:N}=this;this._parentage=Array.isArray(N)?(N.push(I),N):N?[N,I]:I}_removeParent(I){const{_parentage:N}=this;N===I?this._parentage=null:Array.isArray(N)&&(0,y.o)(N,I)}remove(I){const{_finalizers:N}=this;N&&(0,y.o)(N,I),I instanceof w&&I._removeParent(this)}}w.EMPTY=(()=>{const A=new w;return A.closed=!0,A})();const C=w.EMPTY;function T(A){return A instanceof w||A&&"closed"in A&&(0,i.T)(A.remove)&&(0,i.T)(A.add)&&(0,i.T)(A.unsubscribe)}function S(A){(0,i.T)(A)?A():A.unsubscribe()}},1026:(o,s,r)=>{"use strict";r.d(s,{$:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(o,s,r)=>{"use strict";r.d(s,{G:()=>C});var i=r(1985),a=r(8359),c=r(9898),y=r(4360),w=r(9974);class C extends i.c{constructor(S,A){super(),this.source=S,this.subjectFactory=A,this._subject=null,this._refCount=0,this._connection=null,(0,w.S)(S)&&(this.lift=S.lift)}_subscribe(S){return this.getSubject().subscribe(S)}getSubject(){const S=this._subject;return(!S||S.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:S}=this;this._subject=this._connection=null,S?.unsubscribe()}connect(){let S=this._connection;if(!S){S=this._connection=new a.yU;const A=this.getSubject();S.add(this.source.subscribe((0,y._)(A,void 0,()=>{this._teardown(),A.complete()},I=>{this._teardown(),A.error(I)},()=>this._teardown()))),S.closed&&(this._connection=null,S=a.yU.EMPTY)}return S}refCount(){return(0,c.B)()(this)}}},4572:(o,s,r)=>{"use strict";r.d(s,{z:()=>I});var i=r(1985),a=r(3073),c=r(6648),y=r(3669),w=r(6450),C=r(9326),T=r(8496),S=r(4360),A=r(5225);function I(...Z){const ne=(0,C.lI)(Z),be=(0,C.ms)(Z),{args:me,keys:pe}=(0,a.D)(Z);if(0===me.length)return(0,c.H)([],ne);const Te=new i.c(function N(Z,ne,be=y.D){return me=>{G(ne,()=>{const{length:pe}=Z,Te=new Array(pe);let xe=pe,Re=pe;for(let Me=0;Me{const Ce=(0,c.H)(Z[Me],ne);let le=!1;Ce.subscribe((0,S._)(me,ae=>{Te[Me]=ae,le||(le=!0,Re--),Re||me.next(be(Te.slice()))},()=>{--xe||me.complete()}))},me)},me)}}(me,ne,pe?xe=>(0,T.e)(pe,xe):y.D));return be?Te.pipe((0,w.I)(be)):Te}function G(Z,ne,be){Z?(0,A.N)(be,Z,ne):ne()}},8793:(o,s,r)=>{"use strict";r.d(s,{x:()=>w});var i=r(6365),c=r(9326),y=r(6648);function w(...C){return function a(){return(0,i.U)(1)}()((0,y.H)(C,(0,c.lI)(C)))}},9030:(o,s,r)=>{"use strict";r.d(s,{v:()=>c});var i=r(1985),a=r(8750);function c(y){return new i.c(w=>{(0,a.Tg)(y()).subscribe(w)})}},983:(o,s,r)=>{"use strict";r.d(s,{w:()=>a});const a=new(r(1985).c)(w=>w.complete())},7468:(o,s,r)=>{"use strict";r.d(s,{p:()=>S});var i=r(1985),a=r(3073),c=r(8750),y=r(9326),w=r(4360),C=r(6450),T=r(8496);function S(...A){const I=(0,y.ms)(A),{args:N,keys:G}=(0,a.D)(A),Z=new i.c(ne=>{const{length:be}=N;if(!be)return void ne.complete();const me=new Array(be);let pe=be,Te=be;for(let xe=0;xe{Re||(Re=!0,Te--),me[xe]=Me},()=>pe--,void 0,()=>{(!pe||!Re)&&(Te||ne.next(G?(0,T.e)(G,me):me),ne.complete())}))}});return I?Z.pipe((0,C.I)(I)):Z}},6648:(o,s,r)=>{"use strict";r.d(s,{H:()=>ae});var i=r(8750),a=r(5225),c=r(9974),y=r(4360);function w(Ie,$e=0){return(0,c.N)((st,ht)=>{st.subscribe((0,y._)(ht,vt=>(0,a.N)(ht,Ie,()=>ht.next(vt),$e),()=>(0,a.N)(ht,Ie,()=>ht.complete(),$e),vt=>(0,a.N)(ht,Ie,()=>ht.error(vt),$e)))})}function C(Ie,$e=0){return(0,c.N)((st,ht)=>{ht.add(Ie.schedule(()=>st.subscribe(ht),$e))})}var A=r(1985),N=r(4761),G=r(8071);function ne(Ie,$e){if(!Ie)throw new Error("Iterable cannot be null");return new A.c(st=>{(0,a.N)(st,$e,()=>{const ht=Ie[Symbol.asyncIterator]();(0,a.N)(st,$e,()=>{ht.next().then(vt=>{vt.done?st.complete():st.next(vt.value)})},0,!0)})})}var be=r(5055),me=r(9858),pe=r(7441),Te=r(5397),xe=r(7953),Re=r(591),Me=r(5196);function ae(Ie,$e){return $e?function le(Ie,$e){if(null!=Ie){if((0,be.l)(Ie))return function T(Ie,$e){return(0,i.Tg)(Ie).pipe(C($e),w($e))}(Ie,$e);if((0,pe.X)(Ie))return function I(Ie,$e){return new A.c(st=>{let ht=0;return $e.schedule(function(){ht===Ie.length?st.complete():(st.next(Ie[ht++]),st.closed||this.schedule())})})}(Ie,$e);if((0,me.y)(Ie))return function S(Ie,$e){return(0,i.Tg)(Ie).pipe(C($e),w($e))}(Ie,$e);if((0,xe.T)(Ie))return ne(Ie,$e);if((0,Te.x)(Ie))return function Z(Ie,$e){return new A.c(st=>{let ht;return(0,a.N)(st,$e,()=>{ht=Ie[N.l](),(0,a.N)(st,$e,()=>{let vt,at;try{({value:vt,done:at}=ht.next())}catch(Xt){return void st.error(Xt)}at?st.complete():st.next(vt)},0,!0)}),()=>(0,G.T)(ht?.return)&&ht.return()})}(Ie,$e);if((0,Me.U)(Ie))return function Ce(Ie,$e){return ne((0,Me.C)(Ie),$e)}(Ie,$e)}throw(0,Re.L)(Ie)}(Ie,$e):(0,i.Tg)(Ie)}},3726:(o,s,r)=>{"use strict";r.d(s,{R:()=>I});var i=r(8750),a=r(1985),c=r(1397),y=r(7441),w=r(8071),C=r(6450);const T=["addListener","removeListener"],S=["addEventListener","removeEventListener"],A=["on","off"];function I(be,me,pe,Te){if((0,w.T)(pe)&&(Te=pe,pe=void 0),Te)return I(be,me,pe).pipe((0,C.I)(Te));const[xe,Re]=function ne(be){return(0,w.T)(be.addEventListener)&&(0,w.T)(be.removeEventListener)}(be)?S.map(Me=>Ce=>be[Me](me,Ce,pe)):function G(be){return(0,w.T)(be.addListener)&&(0,w.T)(be.removeListener)}(be)?T.map(N(be,me)):function Z(be){return(0,w.T)(be.on)&&(0,w.T)(be.off)}(be)?A.map(N(be,me)):[];if(!xe&&(0,y.X)(be))return(0,c.Z)(Me=>I(Me,me,pe))((0,i.Tg)(be));if(!xe)throw new TypeError("Invalid event target");return new a.c(Me=>{const Ce=(...le)=>Me.next(1Re(Ce)})}function N(be,me){return pe=>Te=>be[pe](me,Te)}},8750:(o,s,r)=>{"use strict";r.d(s,{Tg:()=>Z});var i=r(1635),a=r(7441),c=r(9858),y=r(1985),w=r(5055),C=r(7953),T=r(591),S=r(5397),A=r(5196),I=r(8071),N=r(5334),G=r(3494);function Z(Me){if(Me instanceof y.c)return Me;if(null!=Me){if((0,w.l)(Me))return function ne(Me){return new y.c(Ce=>{const le=Me[G.s]();if((0,I.T)(le.subscribe))return le.subscribe(Ce);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Me);if((0,a.X)(Me))return function be(Me){return new y.c(Ce=>{for(let le=0;le{Me.then(le=>{Ce.closed||(Ce.next(le),Ce.complete())},le=>Ce.error(le)).then(null,N.m)})}(Me);if((0,C.T)(Me))return Te(Me);if((0,S.x)(Me))return function pe(Me){return new y.c(Ce=>{for(const le of Me)if(Ce.next(le),Ce.closed)return;Ce.complete()})}(Me);if((0,A.U)(Me))return function xe(Me){return Te((0,A.C)(Me))}(Me)}throw(0,T.L)(Me)}function Te(Me){return new y.c(Ce=>{(function Re(Me,Ce){var le,ae,Ie,$e;return(0,i.sH)(this,void 0,void 0,function*(){try{for(le=(0,i.xN)(Me);!(ae=yield le.next()).done;)if(Ce.next(ae.value),Ce.closed)return}catch(st){Ie={error:st}}finally{try{ae&&!ae.done&&($e=le.return)&&(yield $e.call(le))}finally{if(Ie)throw Ie.error}}Ce.complete()})})(Me,Ce).catch(le=>Ce.error(le))})}},605:(o,s,r)=>{"use strict";r.d(s,{Y:()=>c});var i=r(3236),a=r(1584);function c(y=0,w=i.E){return y<0&&(y=0),(0,a.O)(y,y,w)}},7786:(o,s,r)=>{"use strict";r.d(s,{h:()=>C});var i=r(6365),a=r(8750),c=r(983),y=r(9326),w=r(6648);function C(...T){const S=(0,y.lI)(T),A=(0,y.R0)(T,1/0),I=T;return I.length?1===I.length?(0,a.Tg)(I[0]):(0,i.U)(A)((0,w.H)(I,S)):c.w}},7673:(o,s,r)=>{"use strict";r.d(s,{of:()=>c});var i=r(9326),a=r(6648);function c(...y){const w=(0,i.lI)(y);return(0,a.H)(y,w)}},8810:(o,s,r)=>{"use strict";r.d(s,{$:()=>c});var i=r(1985),a=r(8071);function c(y,w){const C=(0,a.T)(y)?y:()=>y,T=S=>S.error(C());return new i.c(w?S=>w.schedule(T,0,S):T)}},1584:(o,s,r)=>{"use strict";r.d(s,{O:()=>w});var i=r(1985),a=r(3236),c=r(9470);function w(C=0,T,S=a.b){let A=-1;return null!=T&&((0,c.m)(T)?S=T:A=T),new i.c(I=>{let N=function y(C){return C instanceof Date&&!isNaN(C)}(C)?+C-S.now():C;N<0&&(N=0);let G=0;return S.schedule(function(){I.closed||(I.next(G++),0<=A?this.schedule(void 0,A):I.complete())},N)})}},4360:(o,s,r)=>{"use strict";r.d(s,{_:()=>a});var i=r(7707);function a(y,w,C,T,S){return new c(y,w,C,T,S)}class c extends i.vU{constructor(w,C,T,S,A,I){super(w),this.onFinalize=A,this.shouldUnsubscribe=I,this._next=C?function(N){try{C(N)}catch(G){w.error(G)}}:super._next,this._error=S?function(N){try{S(N)}catch(G){w.error(G)}finally{this.unsubscribe()}}:super._error,this._complete=T?function(){try{T()}catch(N){w.error(N)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var w;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(w=this.onFinalize)||void 0===w||w.call(this))}}}},3798:(o,s,r)=>{"use strict";r.d(s,{Z:()=>T});var i=r(3236),a=r(9974),c=r(8750),y=r(4360),C=r(1584);function T(S,A=i.E){return function w(S){return(0,a.N)((A,I)=>{let N=!1,G=null,Z=null,ne=!1;const be=()=>{if(Z?.unsubscribe(),Z=null,N){N=!1;const pe=G;G=null,I.next(pe)}ne&&I.complete()},me=()=>{Z=null,ne&&I.complete()};A.subscribe((0,y._)(I,pe=>{N=!0,G=pe,Z||(0,c.Tg)(S(pe)).subscribe(Z=(0,y._)(I,be,me))},()=>{ne=!0,(!N||!Z||Z.closed)&&I.complete()}))})}(()=>(0,C.O)(S,A))}},9437:(o,s,r)=>{"use strict";r.d(s,{W:()=>y});var i=r(8750),a=r(4360),c=r(9974);function y(w){return(0,c.N)((C,T)=>{let I,S=null,A=!1;S=C.subscribe((0,a._)(T,void 0,void 0,N=>{I=(0,i.Tg)(w(N,y(w)(C))),S?(S.unsubscribe(),S=null,I.subscribe(T)):A=!0})),A&&(S.unsubscribe(),S=null,I.subscribe(T))})}},274:(o,s,r)=>{"use strict";r.d(s,{H:()=>c});var i=r(1397),a=r(8071);function c(y,w){return(0,a.T)(w)?(0,i.Z)(y,w,1):(0,i.Z)(y,1)}},152:(o,s,r)=>{"use strict";r.d(s,{B:()=>y});var i=r(3236),a=r(9974),c=r(4360);function y(w,C=i.E){return(0,a.N)((T,S)=>{let A=null,I=null,N=null;const G=()=>{if(A){A.unsubscribe(),A=null;const ne=I;I=null,S.next(ne)}};function Z(){const ne=N+w,be=C.now();if(be{I=ne,N=C.now(),A||(A=C.schedule(Z,w),S.add(A))},()=>{G(),S.complete()},void 0,()=>{I=A=null}))})}},1986:(o,s,r)=>{"use strict";r.d(s,{c:()=>Z});var i=r(3236),a=r(8793),c=r(6697),y=r(9974),w=r(4360),C=r(5343),S=r(3703),A=r(1397),I=r(8750);function N(ne,be){return be?me=>(0,a.x)(be.pipe((0,c.s)(1),function T(){return(0,y.N)((ne,be)=>{ne.subscribe((0,w._)(be,C.l))})}()),me.pipe(N(ne))):(0,A.Z)((me,pe)=>(0,I.Tg)(ne(me,pe)).pipe((0,c.s)(1),(0,S.u)(me)))}var G=r(1584);function Z(ne,be=i.E){const me=(0,G.O)(ne,be);return N(()=>me)}},3294:(o,s,r)=>{"use strict";r.d(s,{F:()=>y});var i=r(3669),a=r(9974),c=r(4360);function y(C,T=i.D){return C=C??w,(0,a.N)((S,A)=>{let I,N=!0;S.subscribe((0,c._)(A,G=>{const Z=T(G);(N||!C(I,Z))&&(N=!1,I=Z,A.next(G))}))})}function w(C,T){return C===T}},5964:(o,s,r)=>{"use strict";r.d(s,{p:()=>c});var i=r(9974),a=r(4360);function c(y,w){return(0,i.N)((C,T)=>{let S=0;C.subscribe((0,a._)(T,A=>y.call(w,A,S++)&&T.next(A)))})}},980:(o,s,r)=>{"use strict";r.d(s,{j:()=>a});var i=r(9974);function a(c){return(0,i.N)((y,w)=>{try{y.subscribe(w)}finally{w.add(c)}})}},6354:(o,s,r)=>{"use strict";r.d(s,{T:()=>c});var i=r(9974),a=r(4360);function c(y,w){return(0,i.N)((C,T)=>{let S=0;C.subscribe((0,a._)(T,A=>{T.next(y.call(w,A,S++))}))})}},3703:(o,s,r)=>{"use strict";r.d(s,{u:()=>a});var i=r(6354);function a(c){return(0,i.T)(()=>c)}},6365:(o,s,r)=>{"use strict";r.d(s,{U:()=>c});var i=r(1397),a=r(3669);function c(y=1/0){return(0,i.Z)(a.D,y)}},1397:(o,s,r)=>{"use strict";r.d(s,{Z:()=>S});var i=r(6354),a=r(8750),c=r(9974),y=r(5225),w=r(4360),T=r(8071);function S(A,I,N=1/0){return(0,T.T)(I)?S((G,Z)=>(0,i.T)((ne,be)=>I(G,ne,Z,be))((0,a.Tg)(A(G,Z))),N):("number"==typeof I&&(N=I),(0,c.N)((G,Z)=>function C(A,I,N,G,Z,ne,be,me){const pe=[];let Te=0,xe=0,Re=!1;const Me=()=>{Re&&!pe.length&&!Te&&I.complete()},Ce=ae=>Te{ne&&I.next(ae),Te++;let Ie=!1;(0,a.Tg)(N(ae,xe++)).subscribe((0,w._)(I,$e=>{Z?.($e),ne?Ce($e):I.next($e)},()=>{Ie=!0},void 0,()=>{if(Ie)try{for(Te--;pe.length&&Tele($e)):le($e)}Me()}catch($e){I.error($e)}}))};return A.subscribe((0,w._)(I,Ce,()=>{Re=!0,Me()})),()=>{me?.()}}(G,Z,A,N)))}},9898:(o,s,r)=>{"use strict";r.d(s,{B:()=>c});var i=r(9974),a=r(4360);function c(){return(0,i.N)((y,w)=>{let C=null;y._refCount++;const T=(0,a._)(w,void 0,void 0,void 0,()=>{if(!y||y._refCount<=0||0<--y._refCount)return void(C=null);const S=y._connection,A=C;C=null,S&&(!A||S===A)&&S.unsubscribe(),w.unsubscribe()});y.subscribe(T),T.closed||(C=y.connect())})}},2498:(o,s,r)=>{"use strict";r.d(s,{L:()=>C});var i=r(9974),a=r(4360),c=r(3669),y=r(1584),w=r(8750);function C(T=1/0){let S;S=T&&"object"==typeof T?T:{count:T};const{count:A=1/0,delay:I,resetOnSuccess:N=!1}=S;return A<=0?c.D:(0,i.N)((G,Z)=>{let be,ne=0;const me=()=>{let pe=!1;be=G.subscribe((0,a._)(Z,Te=>{N&&(ne=0),Z.next(Te)},void 0,Te=>{if(ne++{be?(be.unsubscribe(),be=null,me()):pe=!0};if(null!=I){const Re="number"==typeof I?(0,y.O)(I):(0,w.Tg)(I(Te,ne)),Me=(0,a._)(Z,()=>{Me.unsubscribe(),xe()},()=>{Z.complete()});Re.subscribe(Me)}else xe()}else Z.error(Te)})),pe&&(be.unsubscribe(),be=null,me())};me()})}},6649:(o,s,r)=>{"use strict";r.d(s,{S:()=>a});var i=r(4360);function a(c,y,w,C,T){return(S,A)=>{let I=w,N=y,G=0;S.subscribe((0,i._)(A,Z=>{const ne=G++;N=I?c(N,Z,ne):(I=!0,Z),C&&A.next(N)},T&&(()=>{I&&A.next(N),A.complete()})))}}},7647:(o,s,r)=>{"use strict";r.d(s,{u:()=>w});var i=r(8750),a=r(1413),c=r(7707),y=r(9974);function w(T={}){const{connector:S=()=>new a.B,resetOnError:A=!0,resetOnComplete:I=!0,resetOnRefCountZero:N=!0}=T;return G=>{let Z,ne,be,me=0,pe=!1,Te=!1;const xe=()=>{ne?.unsubscribe(),ne=void 0},Re=()=>{xe(),Z=be=void 0,pe=Te=!1},Me=()=>{const Ce=Z;Re(),Ce?.unsubscribe()};return(0,y.N)((Ce,le)=>{me++,!Te&&!pe&&xe();const ae=be=be??S();le.add(()=>{me--,0===me&&!Te&&!pe&&(ne=C(Me,N))}),ae.subscribe(le),!Z&&me>0&&(Z=new c.Ms({next:Ie=>ae.next(Ie),error:Ie=>{Te=!0,xe(),ne=C(Re,A,Ie),ae.error(Ie)},complete:()=>{pe=!0,xe(),ne=C(Re,I),ae.complete()}}),(0,i.Tg)(Ce).subscribe(Z))})(G)}}function C(T,S,...A){if(!0===S)return void T();if(!1===S)return;const I=new c.Ms({next:()=>{I.unsubscribe(),T()}});return(0,i.Tg)(S(...A)).subscribe(I)}},4668:(o,s,r)=>{"use strict";r.d(s,{t:()=>c});var i=r(2771),a=r(7647);function c(y,w,C){let T,S=!1;return y&&"object"==typeof y?({bufferSize:T=1/0,windowTime:w=1/0,refCount:S=!1,scheduler:C}=y):T=y??1/0,(0,a.u)({connector:()=>new i.m(T,w,C),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:S})}},7626:(o,s,r)=>{"use strict";r.d(s,{i:()=>a});var i=r(5964);function a(c){return(0,i.p)((y,w)=>c<=w)}},9172:(o,s,r)=>{"use strict";r.d(s,{Z:()=>y});var i=r(8793),a=r(9326),c=r(9974);function y(...w){const C=(0,a.lI)(w);return(0,c.N)((T,S)=>{(C?(0,i.x)(w,T,C):(0,i.x)(w,T)).subscribe(S)})}},5558:(o,s,r)=>{"use strict";r.d(s,{n:()=>y});var i=r(8750),a=r(9974),c=r(4360);function y(w,C){return(0,a.N)((T,S)=>{let A=null,I=0,N=!1;const G=()=>N&&!A&&S.complete();T.subscribe((0,c._)(S,Z=>{A?.unsubscribe();let ne=0;const be=I++;(0,i.Tg)(w(Z,be)).subscribe(A=(0,c._)(S,me=>S.next(C?C(Z,me,be,ne++):me),()=>{A=null,G()}))},()=>{N=!0,G()}))})}},6697:(o,s,r)=>{"use strict";r.d(s,{s:()=>y});var i=r(983),a=r(9974),c=r(4360);function y(w){return w<=0?()=>i.w:(0,a.N)((C,T)=>{let S=0;C.subscribe((0,c._)(T,A=>{++S<=w&&(T.next(A),w<=S&&T.complete())}))})}},6977:(o,s,r)=>{"use strict";r.d(s,{Q:()=>w});var i=r(9974),a=r(4360),c=r(8750),y=r(5343);function w(C){return(0,i.N)((T,S)=>{(0,c.Tg)(C).subscribe((0,a._)(S,()=>S.complete(),y.l)),!S.closed&&T.subscribe(S)})}},8141:(o,s,r)=>{"use strict";r.d(s,{M:()=>w});var i=r(8071),a=r(9974),c=r(4360),y=r(3669);function w(C,T,S){const A=(0,i.T)(C)||T||S?{next:C,error:T,complete:S}:C;return A?(0,a.N)((I,N)=>{var G;null===(G=A.subscribe)||void 0===G||G.call(A);let Z=!0;I.subscribe((0,c._)(N,ne=>{var be;null===(be=A.next)||void 0===be||be.call(A,ne),N.next(ne)},()=>{var ne;Z=!1,null===(ne=A.complete)||void 0===ne||ne.call(A),N.complete()},ne=>{var be;Z=!1,null===(be=A.error)||void 0===be||be.call(A,ne),N.error(ne)},()=>{var ne,be;Z&&(null===(ne=A.unsubscribe)||void 0===ne||ne.call(A)),null===(be=A.finalize)||void 0===be||be.call(A)}))}):y.D}},6780:(o,s,r)=>{"use strict";r.d(s,{R:()=>w});var i=r(8359);class a extends i.yU{constructor(T,S){super()}schedule(T,S=0){return this}}const c={setInterval(C,T,...S){const{delegate:A}=c;return A?.setInterval?A.setInterval(C,T,...S):setInterval(C,T,...S)},clearInterval(C){const{delegate:T}=c;return(T?.clearInterval||clearInterval)(C)},delegate:void 0};var y=r(7908);class w extends a{constructor(T,S){super(T,S),this.scheduler=T,this.work=S,this.pending=!1}schedule(T,S=0){var A;if(this.closed)return this;this.state=T;const I=this.id,N=this.scheduler;return null!=I&&(this.id=this.recycleAsyncId(N,I,S)),this.pending=!0,this.delay=S,this.id=null!==(A=this.id)&&void 0!==A?A:this.requestAsyncId(N,this.id,S),this}requestAsyncId(T,S,A=0){return c.setInterval(T.flush.bind(T,this),A)}recycleAsyncId(T,S,A=0){if(null!=A&&this.delay===A&&!1===this.pending)return S;null!=S&&c.clearInterval(S)}execute(T,S){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const A=this._execute(T,S);if(A)return A;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(T,S){let I,A=!1;try{this.work(T)}catch(N){A=!0,I=N||new Error("Scheduled action threw falsy error")}if(A)return this.unsubscribe(),I}unsubscribe(){if(!this.closed){const{id:T,scheduler:S}=this,{actions:A}=S;this.work=this.state=this.scheduler=null,this.pending=!1,(0,y.o)(A,this),null!=T&&(this.id=this.recycleAsyncId(S,T,null)),this.delay=null,super.unsubscribe()}}}},9687:(o,s,r)=>{"use strict";r.d(s,{q:()=>c});var i=r(6129);class a{constructor(w,C=a.now){this.schedulerActionCtor=w,this.now=C}schedule(w,C=0,T){return new this.schedulerActionCtor(this,w).schedule(T,C)}}a.now=i.U.now;class c extends a{constructor(w,C=a.now){super(w,C),this.actions=[],this._active=!1}flush(w){const{actions:C}=this;if(this._active)return void C.push(w);let T;this._active=!0;do{if(T=w.execute(w.state,w.delay))break}while(w=C.shift());if(this._active=!1,T){for(;w=C.shift();)w.unsubscribe();throw T}}}},5007:(o,s,r)=>{"use strict";r.d(s,{$:()=>ne});var i=r(6780);let c,a=1;const y={};function w(me){return me in y&&(delete y[me],!0)}const C={setImmediate(me){const pe=a++;return y[pe]=!0,c||(c=Promise.resolve()),c.then(()=>w(pe)&&me()),pe},clearImmediate(me){w(me)}},{setImmediate:S,clearImmediate:A}=C,I={setImmediate(...me){const{delegate:pe}=I;return(pe?.setImmediate||S)(...me)},clearImmediate(me){const{delegate:pe}=I;return(pe?.clearImmediate||A)(me)},delegate:void 0};var G=r(9687);const ne=new class Z extends G.q{flush(pe){this._active=!0;const Te=this._scheduled;this._scheduled=void 0;const{actions:xe}=this;let Re;pe=pe||xe.shift();do{if(Re=pe.execute(pe.state,pe.delay))break}while((pe=xe[0])&&pe.id===Te&&xe.shift());if(this._active=!1,Re){for(;(pe=xe[0])&&pe.id===Te&&xe.shift();)pe.unsubscribe();throw Re}}}(class N extends i.R{constructor(pe,Te){super(pe,Te),this.scheduler=pe,this.work=Te}requestAsyncId(pe,Te,xe=0){return null!==xe&&xe>0?super.requestAsyncId(pe,Te,xe):(pe.actions.push(this),pe._scheduled||(pe._scheduled=I.setImmediate(pe.flush.bind(pe,void 0))))}recycleAsyncId(pe,Te,xe=0){var Re;if(null!=xe?xe>0:this.delay>0)return super.recycleAsyncId(pe,Te,xe);const{actions:Me}=pe;null!=Te&&(null===(Re=Me[Me.length-1])||void 0===Re?void 0:Re.id)!==Te&&(I.clearImmediate(Te),pe._scheduled===Te&&(pe._scheduled=void 0))}})},3236:(o,s,r)=>{"use strict";r.d(s,{E:()=>c,b:()=>y});var i=r(6780);const c=new(r(9687).q)(i.R),y=c},6129:(o,s,r)=>{"use strict";r.d(s,{U:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},9270:(o,s,r)=>{"use strict";r.d(s,{f:()=>i});const i={setTimeout(a,c,...y){const{delegate:w}=i;return w?.setTimeout?w.setTimeout(a,c,...y):setTimeout(a,c,...y)},clearTimeout(a){const{delegate:c}=i;return(c?.clearTimeout||clearTimeout)(a)},delegate:void 0}},4761:(o,s,r)=>{"use strict";r.d(s,{l:()=>a});const a=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(o,s,r)=>{"use strict";r.d(s,{s:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(o,s,r)=>{"use strict";r.d(s,{G:()=>a});const a=(0,r(1853).L)(c=>function(){c(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(o,s,r)=>{"use strict";r.d(s,{R0:()=>C,lI:()=>w,ms:()=>y});var i=r(8071),a=r(9470);function c(T){return T[T.length-1]}function y(T){return(0,i.T)(c(T))?T.pop():void 0}function w(T){return(0,a.m)(c(T))?T.pop():void 0}function C(T,S){return"number"==typeof c(T)?T.pop():S}},3073:(o,s,r)=>{"use strict";r.d(s,{D:()=>w});const{isArray:i}=Array,{getPrototypeOf:a,prototype:c,keys:y}=Object;function w(T){if(1===T.length){const S=T[0];if(i(S))return{args:S,keys:null};if(function C(T){return T&&"object"==typeof T&&a(T)===c}(S)){const A=y(S);return{args:A.map(I=>S[I]),keys:A}}}return{args:T,keys:null}}},7908:(o,s,r)=>{"use strict";function i(a,c){if(a){const y=a.indexOf(c);0<=y&&a.splice(y,1)}}r.d(s,{o:()=>i})},1853:(o,s,r)=>{"use strict";function i(a){const y=a(w=>{Error.call(w),w.stack=(new Error).stack});return y.prototype=Object.create(Error.prototype),y.prototype.constructor=y,y}r.d(s,{L:()=>i})},8496:(o,s,r)=>{"use strict";function i(a,c){return a.reduce((y,w,C)=>(y[w]=c[C],y),{})}r.d(s,{e:()=>i})},9786:(o,s,r)=>{"use strict";r.d(s,{Y:()=>c,l:()=>y});var i=r(1026);let a=null;function c(w){if(i.$.useDeprecatedSynchronousErrorHandling){const C=!a;if(C&&(a={errorThrown:!1,error:null}),w(),C){const{errorThrown:T,error:S}=a;if(a=null,T)throw S}}else w()}function y(w){i.$.useDeprecatedSynchronousErrorHandling&&a&&(a.errorThrown=!0,a.error=w)}},5225:(o,s,r)=>{"use strict";function i(a,c,y,w=0,C=!1){const T=c.schedule(function(){y(),C?a.add(this.schedule(null,w)):this.unsubscribe()},w);if(a.add(T),!C)return T}r.d(s,{N:()=>i})},3669:(o,s,r)=>{"use strict";function i(a){return a}r.d(s,{D:()=>i})},7441:(o,s,r)=>{"use strict";r.d(s,{X:()=>i});const i=a=>a&&"number"==typeof a.length&&"function"!=typeof a},7953:(o,s,r)=>{"use strict";r.d(s,{T:()=>a});var i=r(8071);function a(c){return Symbol.asyncIterator&&(0,i.T)(c?.[Symbol.asyncIterator])}},8071:(o,s,r)=>{"use strict";function i(a){return"function"==typeof a}r.d(s,{T:()=>i})},5055:(o,s,r)=>{"use strict";r.d(s,{l:()=>c});var i=r(3494),a=r(8071);function c(y){return(0,a.T)(y[i.s])}},5397:(o,s,r)=>{"use strict";r.d(s,{x:()=>c});var i=r(4761),a=r(8071);function c(y){return(0,a.T)(y?.[i.l])}},4402:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(1985),a=r(8071);function c(y){return!!y&&(y instanceof i.c||(0,a.T)(y.lift)&&(0,a.T)(y.subscribe))}},9858:(o,s,r)=>{"use strict";r.d(s,{y:()=>a});var i=r(8071);function a(c){return(0,i.T)(c?.then)}},5196:(o,s,r)=>{"use strict";r.d(s,{C:()=>c,U:()=>y});var i=r(1635),a=r(8071);function c(w){return(0,i.AQ)(this,arguments,function*(){const T=w.getReader();try{for(;;){const{value:S,done:A}=yield(0,i.N3)(T.read());if(A)return yield(0,i.N3)(void 0);yield yield(0,i.N3)(S)}}finally{T.releaseLock()}})}function y(w){return(0,a.T)(w?.getReader)}},9470:(o,s,r)=>{"use strict";r.d(s,{m:()=>a});var i=r(8071);function a(c){return c&&(0,i.T)(c.schedule)}},9974:(o,s,r)=>{"use strict";r.d(s,{N:()=>c,S:()=>a});var i=r(8071);function a(y){return(0,i.T)(y?.lift)}function c(y){return w=>{if(a(w))return w.lift(function(C){try{return y(C,this)}catch(T){this.error(T)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(o,s,r)=>{"use strict";r.d(s,{I:()=>y});var i=r(6354);const{isArray:a}=Array;function y(w){return(0,i.T)(C=>function c(w,C){return a(C)?w(...C):w(C)}(w,C))}},5343:(o,s,r)=>{"use strict";function i(){}r.d(s,{l:()=>i})},1203:(o,s,r)=>{"use strict";r.d(s,{F:()=>a,m:()=>c});var i=r(3669);function a(...y){return c(y)}function c(y){return 0===y.length?i.D:1===y.length?y[0]:function(C){return y.reduce((T,S)=>S(T),C)}}},5334:(o,s,r)=>{"use strict";r.d(s,{m:()=>c});var i=r(1026),a=r(9270);function c(y){a.f.setTimeout(()=>{const{onUnhandledError:w}=i.$;if(!w)throw y;w(y)})}},591:(o,s,r)=>{"use strict";function i(a){return new TypeError(`You provided ${null!==a&&"object"==typeof a?"an invalid object":`'${a}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}r.d(s,{L:()=>i})},9969:(o,s,r)=>{"use strict";r.d(s,{FX:()=>ht,If:()=>c,K2:()=>S,MA:()=>ne,Os:()=>T,P:()=>me,S6:()=>Te,hZ:()=>w,i0:()=>C,i7:()=>N,iF:()=>A,kY:()=>G,kp:()=>y,sf:()=>$e,ui:()=>st,wk:()=>I});var i=r(177),a=r(4438),c=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}(c||{});const y="*";function w(vt,at){return{type:c.Trigger,name:vt,definitions:at,options:{}}}function C(vt,at=null){return{type:c.Animate,styles:at,timings:vt}}function T(vt,at=null){return{type:c.Group,steps:vt,options:at}}function S(vt,at=null){return{type:c.Sequence,steps:vt,options:at}}function A(vt){return{type:c.Style,styles:vt,offset:null}}function I(vt,at,Xt){return{type:c.State,name:vt,styles:at,options:Xt}}function N(vt){return{type:c.Keyframes,steps:vt}}function G(vt,at,Xt=null){return{type:c.Transition,expr:vt,animation:at,options:Xt}}function ne(vt=null){return{type:c.AnimateChild,options:vt}}function me(vt,at,Xt=null){return{type:c.Query,selector:vt,animation:at,options:Xt}}let Te=(()=>{class vt{static \u0275fac=function(ln){return new(ln||vt)};static \u0275prov=a.jDH({token:vt,factory:()=>(0,a.WQX)(Re),providedIn:"root"})}return vt})();class xe{}let Re=(()=>{class vt extends Te{animationModuleType=(0,a.WQX)(a.bc$,{optional:!0});_nextAnimationId=0;_renderer;constructor(Xt,ln){if(super(),this._renderer=Xt.createRenderer(ln.body,{id:"0",encapsulation:a.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function Ie(vt){const at=vt.\u0275type;return 0===at||1===at}(this._renderer))throw new a.wOt(3600,!1)}build(Xt){const ln=this._nextAnimationId;this._nextAnimationId++;const yn=Array.isArray(Xt)?S(Xt):Xt;return le(this._renderer,null,ln,"register",[yn]),new Me(ln,this._renderer)}static \u0275fac=function(ln){return new(ln||vt)(a.KVO(a._9s),a.KVO(i.qQ))};static \u0275prov=a.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})();class Me extends xe{_id;_renderer;constructor(at,Xt){super(),this._id=at,this._renderer=Xt}create(at,Xt){return new Ce(this._id,at,Xt||{},this._renderer)}}class Ce{id;element;_renderer;parentPlayer=null;_started=!1;constructor(at,Xt,ln,yn){this.id=at,this.element=Xt,this._renderer=yn,this._command("create",ln)}_listen(at,Xt){return this._renderer.listen(this.element,`@@${this.id}:${at}`,Xt)}_command(at,...Xt){le(this._renderer,this.element,this.id,at,Xt)}onDone(at){this._listen("done",at)}onStart(at){this._listen("start",at)}onDestroy(at){this._listen("destroy",at)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(at){this._command("setPosition",at)}getPosition(){return function ae(vt){const at=vt.\u0275type;return 0===at?vt:1===at?vt.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}totalTime=0}function le(vt,at,Xt,ln,yn){vt.setProperty(at,`@@${Xt}:${ln}`,yn)}class $e{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(at=0,Xt=0){this.totalTime=at+Xt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(at=>at()),this._onDoneFns=[])}onStart(at){this._originalOnStartFns.push(at),this._onStartFns.push(at)}onDone(at){this._originalOnDoneFns.push(at),this._onDoneFns.push(at)}onDestroy(at){this._onDestroyFns.push(at)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(at=>at()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(at=>at()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(at){this._position=this.totalTime?at*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(at){const Xt="start"==at?this._onStartFns:this._onDoneFns;Xt.forEach(ln=>ln()),Xt.length=0}}class st{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(at){this.players=at;let Xt=0,ln=0,yn=0;const $n=this.players.length;0==$n?queueMicrotask(()=>this._onFinish()):this.players.forEach(bn=>{bn.onDone(()=>{++Xt==$n&&this._onFinish()}),bn.onDestroy(()=>{++ln==$n&&this._onDestroy()}),bn.onStart(()=>{++yn==$n&&this._onStart()})}),this.totalTime=this.players.reduce((bn,Qe)=>Math.max(bn,Qe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(at=>at()),this._onDoneFns=[])}init(){this.players.forEach(at=>at.init())}onStart(at){this._onStartFns.push(at)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(at=>at()),this._onStartFns=[])}onDone(at){this._onDoneFns.push(at)}onDestroy(at){this._onDestroyFns.push(at)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(at=>at.play())}pause(){this.players.forEach(at=>at.pause())}restart(){this.players.forEach(at=>at.restart())}finish(){this._onFinish(),this.players.forEach(at=>at.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(at=>at.destroy()),this._onDestroyFns.forEach(at=>at()),this._onDestroyFns=[])}reset(){this.players.forEach(at=>at.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(at){const Xt=at*this.totalTime;this.players.forEach(ln=>{const yn=ln.totalTime?Math.min(1,Xt/ln.totalTime):1;ln.setPosition(yn)})}getPosition(){const at=this.players.reduce((Xt,ln)=>null===Xt||ln.totalTime>Xt.totalTime?ln:Xt,null);return null!=at?at.getPosition():0}beforeDestroy(){this.players.forEach(at=>{at.beforeDestroy&&at.beforeDestroy()})}triggerCallback(at){const Xt="start"==at?this._onStartFns:this._onDoneFns;Xt.forEach(ln=>ln()),Xt.length=0}}const ht="!"},9888:(o,s,r)=>{"use strict";r.d(s,{Pd:()=>ii,Au:()=>bt,vr:()=>Xt,Bu:()=>ze,FN:()=>Pe,GX:()=>Yn,Q_:()=>Mr,Z7:()=>Ze,Ai:()=>Xr,g7:()=>Ai,px:()=>ae,_G:()=>it,w6:()=>ot,Ae:()=>Ie});var i=r(177),a=r(4438),c=r(6860),y=r(9046),w=r(7336),C=r(1413),T=r(8359),A=(r(4402),r(7673)),I=r(4412),N=r(8141),G=r(152),Z=r(5964),ne=r(6354),me=(r(6697),r(7626)),pe=r(3294),Te=r(6977),Re=r(2318),Me=r(4085),Ce=r(9327);const le=" ";function ae(rn,St,qe){const Dt=$e(rn,St);qe=qe.trim(),!Dt.some(Wt=>Wt.trim()===qe)&&(Dt.push(qe),rn.setAttribute(St,Dt.join(le)))}function Ie(rn,St,qe){const Dt=$e(rn,St);qe=qe.trim();const Wt=Dt.filter(Hn=>Hn!==qe);Wt.length?rn.setAttribute(St,Wt.join(le)):rn.removeAttribute(St)}function $e(rn,St){return rn.getAttribute(St)?.match(/\S+/g)??[]}const ht="cdk-describedby-message",vt="cdk-describedby-host";let at=0,Xt=(()=>{class rn{_platform=(0,a.WQX)(c.OD);_document=(0,a.WQX)(i.qQ);_messageRegistry=new Map;_messagesContainer=null;_id=""+at++;constructor(){(0,a.WQX)(y.l).load(y.Y),this._id=(0,a.WQX)(a.sZ2)+"-"+at++}describe(qe,Dt,Wt){if(!this._canBeDescribed(qe,Dt))return;const Hn=ln(Dt,Wt);"string"!=typeof Dt?(yn(Dt,this._id),this._messageRegistry.set(Hn,{messageElement:Dt,referenceCount:0})):this._messageRegistry.has(Hn)||this._createMessageElement(Dt,Wt),this._isElementDescribedByMessage(qe,Hn)||this._addMessageReference(qe,Hn)}removeDescription(qe,Dt,Wt){if(!Dt||!this._isElementNode(qe))return;const Hn=ln(Dt,Wt);if(this._isElementDescribedByMessage(qe,Hn)&&this._removeMessageReference(qe,Hn),"string"==typeof Dt){const fr=this._messageRegistry.get(Hn);fr&&0===fr.referenceCount&&this._deleteMessageElement(Hn)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const qe=this._document.querySelectorAll(`[${vt}="${this._id}"]`);for(let Dt=0;Dt0!=Wt.indexOf(ht));qe.setAttribute("aria-describedby",Dt.join(" "))}_addMessageReference(qe,Dt){const Wt=this._messageRegistry.get(Dt);ae(qe,"aria-describedby",Wt.messageElement.id),qe.setAttribute(vt,this._id),Wt.referenceCount++}_removeMessageReference(qe,Dt){const Wt=this._messageRegistry.get(Dt);Wt.referenceCount--,Ie(qe,"aria-describedby",Wt.messageElement.id),qe.removeAttribute(vt)}_isElementDescribedByMessage(qe,Dt){const Wt=$e(qe,"aria-describedby"),Hn=this._messageRegistry.get(Dt),fr=Hn&&Hn.messageElement.id;return!!fr&&-1!=Wt.indexOf(fr)}_canBeDescribed(qe,Dt){if(!this._isElementNode(qe))return!1;if(Dt&&"object"==typeof Dt)return!0;const Wt=null==Dt?"":`${Dt}`.trim(),Hn=qe.getAttribute("aria-label");return!(!Wt||Hn&&Hn.trim()===Wt)}_isElementNode(qe){return qe.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})();function ln(rn,St){return"string"==typeof rn?`${St||""}/${rn}`:rn}function yn(rn,St){rn.id||(rn.id=`${ht}-${St}-${at++}`)}class bn{_letterKeyStream=new C.B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new C.B;selectedItem=this._selectedItem;constructor(St,qe){const Dt="number"==typeof qe?.debounceInterval?qe.debounceInterval:200;qe?.skipPredicate&&(this._skipPredicateFn=qe.skipPredicate),this.setItems(St),this._setupKeyHandler(Dt)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(St){this._selectedItemIndex=St}setItems(St){this._items=St}handleKey(St){const qe=St.keyCode;St.key&&1===St.key.length?this._letterKeyStream.next(St.key.toLocaleUpperCase()):(qe>=w.A&&qe<=w.Z||qe>=w.f2&&qe<=w.bn)&&this._letterKeyStream.next(String.fromCharCode(qe))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(St){this._letterKeyStream.pipe((0,N.M)(qe=>this._pressedLetters.push(qe)),(0,G.B)(St),(0,Z.p)(()=>this._pressedLetters.length>0),(0,ne.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(qe=>{for(let Dt=1;DtSt.disabled;constructor(St,qe){this._items=St,St instanceof a.rOR?this._itemChangesSubscription=St.changes.subscribe(Dt=>this._itemsChanged(Dt.toArray())):(0,a.Hps)(St)&&(this._effectRef=(0,a.QZP)(()=>this._itemsChanged(St()),{injector:qe}))}tabOut=new C.B;change=new C.B;skipPredicate(St){return this._skipPredicateFn=St,this}withWrap(St=!0){return this._wrap=St,this}withVerticalOrientation(St=!0){return this._vertical=St,this}withHorizontalOrientation(St){return this._horizontal=St,this}withAllowedModifierKeys(St){return this._allowedModifierKeys=St,this}withTypeAhead(St=200){this._typeaheadSubscription.unsubscribe();const qe=this._getItemsArray();return this._typeahead=new bn(qe,{debounceInterval:"number"==typeof St?St:void 0,skipPredicate:Dt=>this._skipPredicateFn(Dt)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(Dt=>{this.setActiveItem(Dt)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(St=!0){return this._homeAndEnd=St,this}withPageUpDown(St=!0,qe=10){return this._pageUpAndDown={enabled:St,delta:qe},this}setActiveItem(St){const qe=this._activeItem();this.updateActiveItem(St),this._activeItem()!==qe&&this.change.next(this._activeItemIndex)}onKeydown(St){const qe=St.keyCode,Wt=["altKey","ctrlKey","metaKey","shiftKey"].every(Hn=>!St[Hn]||this._allowedModifierKeys.indexOf(Hn)>-1);switch(qe){case w.wn:return void this.tabOut.next();case w.n6:if(this._vertical&&Wt){this.setNextItemActive();break}return;case w.i7:if(this._vertical&&Wt){this.setPreviousItemActive();break}return;case w.LE:if(this._horizontal&&Wt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.UQ:if(this._horizontal&&Wt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.yZ:if(this._homeAndEnd&&Wt){this.setFirstItemActive();break}return;case w.Kp:if(this._homeAndEnd&&Wt){this.setLastItemActive();break}return;case w.w_:if(this._pageUpAndDown.enabled&&Wt){const Hn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Hn>0?Hn:0,1);break}return;case w.dB:if(this._pageUpAndDown.enabled&&Wt){const Hn=this._activeItemIndex+this._pageUpAndDown.delta,fr=this._getItemsArray().length;this._setActiveItemByIndex(Hn-1&&Dt!==this._activeItemIndex&&(this._activeItemIndex=Dt,this._typeahead?.setCurrentSelectedItemIndex(Dt))}}}class bt extends Qe{setActiveItem(St){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(St),this.activeItem&&this.activeItem.setActiveStyles()}}class ze extends Qe{_origin="program";setFocusOrigin(St){return this._origin=St,this}setActiveItem(St){super.setActiveItem(St),this.activeItem&&this.activeItem.focus(this._origin)}}let Ze=(()=>{class rn{_platform=(0,a.WQX)(c.OD);constructor(){}isDisabled(qe){return qe.hasAttribute("disabled")}isVisible(qe){return function Jt(rn){return!!(rn.offsetWidth||rn.offsetHeight||"function"==typeof rn.getClientRects&&rn.getClientRects().length)}(qe)&&"visible"===getComputedStyle(qe).visibility}isTabbable(qe){if(!this._platform.isBrowser)return!1;const Dt=function Rt(rn){try{return rn.frameElement}catch{return null}}(function Kt(rn){return rn.ownerDocument&&rn.ownerDocument.defaultView||window}(qe));if(Dt&&(-1===En(Dt)||!this.isVisible(Dt)))return!1;let Wt=qe.nodeName.toLowerCase(),Hn=En(qe);return qe.hasAttribute("contenteditable")?-1!==Hn:!("iframe"===Wt||"object"===Wt||this._platform.WEBKIT&&this._platform.IOS&&!function Gt(rn){let St=rn.nodeName.toLowerCase(),qe="input"===St&&rn.type;return"text"===qe||"password"===qe||"select"===St||"textarea"===St}(qe))&&("audio"===Wt?!!qe.hasAttribute("controls")&&-1!==Hn:"video"===Wt?-1!==Hn&&(null!==Hn||this._platform.FIREFOX||qe.hasAttribute("controls")):qe.tabIndex>=0)}isFocusable(qe,Dt){return function At(rn){return!function Gn(rn){return function Qt(rn){return"input"==rn.nodeName.toLowerCase()}(rn)&&"hidden"==rn.type}(rn)&&(function fn(rn){let St=rn.nodeName.toLowerCase();return"input"===St||"select"===St||"button"===St||"textarea"===St}(rn)||function Nt(rn){return function an(rn){return"a"==rn.nodeName.toLowerCase()}(rn)&&rn.hasAttribute("href")}(rn)||rn.hasAttribute("contenteditable")||Xn(rn))}(qe)&&!this.isDisabled(qe)&&(Dt?.ignoreVisibility||this.isVisible(qe))}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})();function Xn(rn){if(!rn.hasAttribute("tabindex")||void 0===rn.tabIndex)return!1;let St=rn.getAttribute("tabindex");return!(!St||isNaN(parseInt(St,10)))}function En(rn){if(!Xn(rn))return null;const St=parseInt(rn.getAttribute("tabindex")||"",10);return isNaN(St)?-1:St}class xn{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(St){this._enabled=St,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(St,this._startAnchor),this._toggleAnchorTabIndex(St,this._endAnchor))}_enabled=!0;constructor(St,qe,Dt,Wt,Hn=!1,fr){this._element=St,this._checker=qe,this._ngZone=Dt,this._document=Wt,this._injector=fr,Hn||this.attachAnchors()}destroy(){const St=this._startAnchor,qe=this._endAnchor;St&&(St.removeEventListener("focus",this.startAnchorListener),St.remove()),qe&&(qe.removeEventListener("focus",this.endAnchorListener),qe.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(St){return new Promise(qe=>{this._executeOnStable(()=>qe(this.focusInitialElement(St)))})}focusFirstTabbableElementWhenReady(St){return new Promise(qe=>{this._executeOnStable(()=>qe(this.focusFirstTabbableElement(St)))})}focusLastTabbableElementWhenReady(St){return new Promise(qe=>{this._executeOnStable(()=>qe(this.focusLastTabbableElement(St)))})}_getRegionBoundary(St){const qe=this._element.querySelectorAll(`[cdk-focus-region-${St}], [cdkFocusRegion${St}], [cdk-focus-${St}]`);return"start"==St?qe.length?qe[0]:this._getFirstTabbableElement(this._element):qe.length?qe[qe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(St){const qe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(qe){if(!this._checker.isFocusable(qe)){const Dt=this._getFirstTabbableElement(qe);return Dt?.focus(St),!!Dt}return qe.focus(St),!0}return this.focusFirstTabbableElement(St)}focusFirstTabbableElement(St){const qe=this._getRegionBoundary("start");return qe&&qe.focus(St),!!qe}focusLastTabbableElement(St){const qe=this._getRegionBoundary("end");return qe&&qe.focus(St),!!qe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(St){if(this._checker.isFocusable(St)&&this._checker.isTabbable(St))return St;const qe=St.children;for(let Dt=0;Dt=0;Dt--){const Wt=qe[Dt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(qe[Dt]):null;if(Wt)return Wt}return null}_createAnchor(){const St=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,St),St.classList.add("cdk-visually-hidden"),St.classList.add("cdk-focus-trap-anchor"),St.setAttribute("aria-hidden","true"),St}_toggleAnchorTabIndex(St,qe){St?qe.setAttribute("tabindex","0"):qe.removeAttribute("tabindex")}toggleAnchors(St){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(St,this._startAnchor),this._toggleAnchorTabIndex(St,this._endAnchor))}_executeOnStable(St){this._injector?(0,a.mal)(St,{injector:this._injector}):setTimeout(St)}}let Yn=(()=>{class rn{_checker=(0,a.WQX)(Ze);_ngZone=(0,a.WQX)(a.SKi);_document=(0,a.WQX)(i.qQ);_injector=(0,a.WQX)(a.zZn);constructor(){(0,a.WQX)(y.l).load(y.Y)}create(qe,Dt=!1){return new xn(qe,this._checker,this._ngZone,this._document,Dt,this._injector)}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})();function it(rn){return 0===rn.buttons||0===rn.detail}function ot(rn){const St=rn.touches&&rn.touches[0]||rn.changedTouches&&rn.changedTouches[0];return!(!St||-1!==St.identifier||null!=St.radiusX&&1!==St.radiusX||null!=St.radiusY&&1!==St.radiusY)}const Tt=new a.nKC("cdk-input-modality-detector-options"),In={ignoreKeys:[w.A$,w.W3,w.eg,w.Ge,w.FX]},dn=(0,c.BQ)({passive:!0,capture:!0});let Pn=(()=>{class rn{_platform=(0,a.WQX)(c.OD);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new I.t(null);_options;_lastTouchMs=0;_onKeydown=qe=>{this._options?.ignoreKeys?.some(Dt=>Dt===qe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,c.Fb)(qe))};_onMousedown=qe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(it(qe)?"keyboard":"mouse"),this._mostRecentTarget=(0,c.Fb)(qe))};_onTouchstart=qe=>{ot(qe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,c.Fb)(qe))};constructor(){const qe=(0,a.WQX)(a.SKi),Dt=(0,a.WQX)(i.qQ),Wt=(0,a.WQX)(Tt,{optional:!0});this._options={...In,...Wt},this.modalityDetected=this._modality.pipe((0,me.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,pe.F)()),this._platform.isBrowser&&qe.runOutsideAngular(()=>{Dt.addEventListener("keydown",this._onKeydown,dn),Dt.addEventListener("mousedown",this._onMousedown,dn),Dt.addEventListener("touchstart",this._onTouchstart,dn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,dn),document.removeEventListener("mousedown",this._onMousedown,dn),document.removeEventListener("touchstart",this._onTouchstart,dn))}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})();const Fn=new a.nKC("liveAnnouncerElement",{providedIn:"root",factory:function Bn(){return null}}),cr=new a.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Jr=0,Xr=(()=>{class rn{_ngZone=(0,a.WQX)(a.SKi);_defaultOptions=(0,a.WQX)(cr,{optional:!0});_liveElement;_document=(0,a.WQX)(i.qQ);_previousTimeout;_currentPromise;_currentResolve;constructor(){const qe=(0,a.WQX)(Fn,{optional:!0});this._liveElement=qe||this._createLiveElement()}announce(qe,...Dt){const Wt=this._defaultOptions;let Hn,fr;return 1===Dt.length&&"number"==typeof Dt[0]?fr=Dt[0]:[Hn,fr]=Dt,this.clear(),clearTimeout(this._previousTimeout),Hn||(Hn=Wt&&Wt.politeness?Wt.politeness:"polite"),null==fr&&Wt&&(fr=Wt.duration),this._liveElement.setAttribute("aria-live",Hn),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(uo=>this._currentResolve=uo)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=qe,"number"==typeof fr&&(this._previousTimeout=setTimeout(()=>this.clear(),fr)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const qe="cdk-live-announcer-element",Dt=this._document.getElementsByClassName(qe),Wt=this._document.createElement("div");for(let Hn=0;Hn .cdk-overlay-container [aria-modal="true"]');for(let Wt=0;Wt{class rn{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(c.OD);_inputModalityDetector=(0,a.WQX)(Pn);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=(0,a.WQX)(i.qQ,{optional:!0});_stopInputModalityDetector=new C.B;constructor(){const qe=(0,a.WQX)(Ee,{optional:!0});this._detectionMode=qe?.detectionMode||Bt.IMMEDIATE}_rootNodeFocusAndBlurListener=qe=>{for(let Wt=(0,c.Fb)(qe);Wt;Wt=Wt.parentElement)"focus"===qe.type?this._onFocus(qe,Wt):this._onBlur(qe,Wt)};monitor(qe,Dt=!1){const Wt=(0,Me.i8)(qe);if(!this._platform.isBrowser||1!==Wt.nodeType)return(0,A.of)();const Hn=(0,c.KT)(Wt)||this._getDocument(),fr=this._elementInfo.get(Wt);if(fr)return Dt&&(fr.checkChildren=!0),fr.subject;const uo={checkChildren:Dt,subject:new C.B,rootNode:Hn};return this._elementInfo.set(Wt,uo),this._registerGlobalListeners(uo),uo.subject}stopMonitoring(qe){const Dt=(0,Me.i8)(qe),Wt=this._elementInfo.get(Dt);Wt&&(Wt.subject.complete(),this._setClasses(Dt),this._elementInfo.delete(Dt),this._removeGlobalListeners(Wt))}focusVia(qe,Dt,Wt){const Hn=(0,Me.i8)(qe);Hn===this._getDocument().activeElement?this._getClosestElementsInfo(Hn).forEach(([uo,Oi])=>this._originChanged(uo,Dt,Oi)):(this._setOrigin(Dt),"function"==typeof Hn.focus&&Hn.focus(Wt))}ngOnDestroy(){this._elementInfo.forEach((qe,Dt)=>this.stopMonitoring(Dt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(qe){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(qe)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:qe&&this._isLastInteractionFromInputLabel(qe)?"mouse":"program"}_shouldBeAttributedToTouch(qe){return this._detectionMode===Bt.EVENTUAL||!!qe?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(qe,Dt){qe.classList.toggle("cdk-focused",!!Dt),qe.classList.toggle("cdk-touch-focused","touch"===Dt),qe.classList.toggle("cdk-keyboard-focused","keyboard"===Dt),qe.classList.toggle("cdk-mouse-focused","mouse"===Dt),qe.classList.toggle("cdk-program-focused","program"===Dt)}_setOrigin(qe,Dt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=qe,this._originFromTouchInteraction="touch"===qe&&Dt,this._detectionMode===Bt.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(qe,Dt){const Wt=this._elementInfo.get(Dt),Hn=(0,c.Fb)(qe);!Wt||!Wt.checkChildren&&Dt!==Hn||this._originChanged(Dt,this._getFocusOrigin(Hn),Wt)}_onBlur(qe,Dt){const Wt=this._elementInfo.get(Dt);!Wt||Wt.checkChildren&&qe.relatedTarget instanceof Node&&Dt.contains(qe.relatedTarget)||(this._setClasses(Dt),this._emitOrigin(Wt,null))}_emitOrigin(qe,Dt){qe.subject.observers.length&&this._ngZone.run(()=>qe.subject.next(Dt))}_registerGlobalListeners(qe){if(!this._platform.isBrowser)return;const Dt=qe.rootNode,Wt=this._rootNodeFocusListenerCount.get(Dt)||0;Wt||this._ngZone.runOutsideAngular(()=>{Dt.addEventListener("focus",this._rootNodeFocusAndBlurListener,lt),Dt.addEventListener("blur",this._rootNodeFocusAndBlurListener,lt)}),this._rootNodeFocusListenerCount.set(Dt,Wt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Te.Q)(this._stopInputModalityDetector)).subscribe(Hn=>{this._setOrigin(Hn,!0)}))}_removeGlobalListeners(qe){const Dt=qe.rootNode;if(this._rootNodeFocusListenerCount.has(Dt)){const Wt=this._rootNodeFocusListenerCount.get(Dt);Wt>1?this._rootNodeFocusListenerCount.set(Dt,Wt-1):(Dt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,lt),Dt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,lt),this._rootNodeFocusListenerCount.delete(Dt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(qe,Dt,Wt){this._setClasses(qe,Dt),this._emitOrigin(Wt,Dt),this._lastFocusOrigin=Dt}_getClosestElementsInfo(qe){const Dt=[];return this._elementInfo.forEach((Wt,Hn)=>{(Hn===qe||Wt.checkChildren&&Hn.contains(qe))&&Dt.push([Hn,Wt])}),Dt}_isLastInteractionFromInputLabel(qe){const{_mostRecentTarget:Dt,mostRecentModality:Wt}=this._inputModalityDetector;if("mouse"!==Wt||!Dt||Dt===qe||"INPUT"!==qe.nodeName&&"TEXTAREA"!==qe.nodeName||qe.disabled)return!1;const Hn=qe.labels;if(Hn)for(let fr=0;fr{class rn{_platform=(0,a.WQX)(c.OD);_hasCheckedHighContrastMode;_document=(0,a.WQX)(i.qQ);_breakpointSubscription;constructor(){this._breakpointSubscription=(0,a.WQX)(Ce.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return ft.NONE;const qe=this._document.createElement("div");qe.style.backgroundColor="rgb(1,2,3)",qe.style.position="absolute",this._document.body.appendChild(qe);const Dt=this._document.defaultView||window,Wt=Dt&&Dt.getComputedStyle?Dt.getComputedStyle(qe):null,Hn=(Wt&&Wt.backgroundColor||"").replace(/ /g,"");switch(qe.remove(),Hn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return ft.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return ft.BLACK_ON_WHITE}return ft.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const qe=this._document.body.classList;qe.remove(or,Pt,mn),this._hasCheckedHighContrastMode=!0;const Dt=this.getHighContrastMode();Dt===ft.BLACK_ON_WHITE?qe.add(or,Pt):Dt===ft.WHITE_ON_BLACK&&qe.add(or,mn)}}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})(),ii=(()=>{class rn{constructor(){(0,a.WQX)(Mr)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275mod=a.$C({type:rn});static \u0275inj=a.G2t({imports:[Re.w5]})}return rn})();const ci={};let Ai=(()=>{class rn{_appId=(0,a.WQX)(a.sZ2);getId(qe){return"ng"!==this._appId&&(qe+=this._appId),ci.hasOwnProperty(qe)||(ci[qe]=0),`${qe}${ci[qe]++}`}static \u0275fac=function(Dt){return new(Dt||rn)};static \u0275prov=a.jDH({token:rn,factory:rn.\u0275fac,providedIn:"root"})}return rn})()},8203:(o,s,r)=>{"use strict";r.d(s,{dS:()=>T,jI:()=>A});var i=r(4438),a=r(177);const c=new i.nKC("cdk-dir-doc",{providedIn:"root",factory:function y(){return(0,i.WQX)(a.qQ)}}),w=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let T=(()=>{class I{value="ltr";change=new i.bkB;constructor(){const G=(0,i.WQX)(c,{optional:!0});G&&(this.value=function C(I){const N=I?.toLowerCase()||"";return"auto"===N&&typeof navigator<"u"&&navigator?.language?w.test(navigator.language)?"rtl":"ltr":"rtl"===N?"rtl":"ltr"}((G.body?G.body.dir:null)||(G.documentElement?G.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(Z){return new(Z||I)};static \u0275prov=i.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})(),A=(()=>{class I{static \u0275fac=function(Z){return new(Z||I)};static \u0275mod=i.$C({type:I});static \u0275inj=i.G2t({})}return I})()},4085:(o,s,r)=>{"use strict";r.d(s,{FG:()=>w,OE:()=>c,a1:()=>C,he:()=>a,i8:()=>T});var i=r(4438);function a(A){return null!=A&&"false"!=`${A}`}function c(A,I=0){return function y(A){return!isNaN(parseFloat(A))&&!isNaN(Number(A))}(A)?Number(A):2===arguments.length?I:0}function w(A){return Array.isArray(A)?A:[A]}function C(A){return null==A?"":"string"==typeof A?A:`${A}px`}function T(A){return A instanceof i.aKT?A.nativeElement:A}},7336:(o,s,r)=>{"use strict";r.d(s,{A:()=>Fe,A$:()=>S,FX:()=>C,Fm:()=>w,Ge:()=>k,Kp:()=>be,LE:()=>xe,UQ:()=>pe,W3:()=>T,Z:()=>B,_f:()=>N,bn:()=>$n,dB:()=>ne,eg:()=>et,f2:()=>Ie,i7:()=>Te,n6:()=>Re,rp:()=>Oe,t6:()=>G,w_:()=>Z,wn:()=>c,yZ:()=>me});const c=9,w=13,C=16,T=17,S=18,N=27,G=32,Z=33,ne=34,be=35,me=36,pe=37,Te=38,xe=39,Re=40,Ie=48,$n=57,Fe=65,B=90,k=91,et=224;function Oe(pt,...$t){return $t.length?$t.some(Mt=>pt[Mt]):pt.altKey||pt.shiftKey||pt.ctrlKey||pt.metaKey}},9327:(o,s,r)=>{"use strict";r.d(s,{QP:()=>Re,Rp:()=>Ce});var i=r(4438),a=r(4085),c=r(1413),y=r(4572),w=r(8793),C=r(1985),T=r(6697),S=r(7626),A=r(152),I=r(6354),N=r(9172),G=r(6977),Z=r(6860);const be=new Set;let me,pe=(()=>{class le{_platform=(0,i.WQX)(Z.OD);_nonce=(0,i.WQX)(i.BIS,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):xe}matchMedia(Ie){return(this._platform.WEBKIT||this._platform.BLINK)&&function Te(le,ae){if(!be.has(le))try{me||(me=document.createElement("style"),ae&&me.setAttribute("nonce",ae),me.setAttribute("type","text/css"),document.head.appendChild(me)),me.sheet&&(me.sheet.insertRule(`@media ${le} {body{ }}`,0),be.add(le))}catch(Ie){console.error(Ie)}}(Ie,this._nonce),this._matchMedia(Ie)}static \u0275fac=function($e){return new($e||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();function xe(le){return{matches:"all"===le||""===le,media:le,addListener:()=>{},removeListener:()=>{}}}let Re=(()=>{class le{_mediaMatcher=(0,i.WQX)(pe);_zone=(0,i.WQX)(i.SKi);_queries=new Map;_destroySubject=new c.B;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Ie){return Me((0,a.FG)(Ie)).some(st=>this._registerQuery(st).mql.matches)}observe(Ie){const st=Me((0,a.FG)(Ie)).map(vt=>this._registerQuery(vt).observable);let ht=(0,y.z)(st);return ht=(0,w.x)(ht.pipe((0,T.s)(1)),ht.pipe((0,S.i)(1),(0,A.B)(0))),ht.pipe((0,I.T)(vt=>{const at={matches:!1,breakpoints:{}};return vt.forEach(({matches:Xt,query:ln})=>{at.matches=at.matches||Xt,at.breakpoints[ln]=Xt}),at}))}_registerQuery(Ie){if(this._queries.has(Ie))return this._queries.get(Ie);const $e=this._mediaMatcher.matchMedia(Ie),ht={observable:new C.c(vt=>{const at=Xt=>this._zone.run(()=>vt.next(Xt));return $e.addListener(at),()=>{$e.removeListener(at)}}).pipe((0,N.Z)($e),(0,I.T)(({matches:vt})=>({query:Ie,matches:vt})),(0,G.Q)(this._destroySubject)),mql:$e};return this._queries.set(Ie,ht),ht}static \u0275fac=function($e){return new($e||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();function Me(le){return le.map(ae=>ae.split(",")).reduce((ae,Ie)=>ae.concat(Ie)).map(ae=>ae.trim())}const Ce={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:(o,s,r)=>{"use strict";r.d(s,{w5:()=>C});var i=r(4438);let c=(()=>{class T{create(A){return typeof MutationObserver>"u"?null:new MutationObserver(A)}static \u0275fac=function(I){return new(I||T)};static \u0275prov=i.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})(),C=(()=>{class T{static \u0275fac=function(I){return new(I||T)};static \u0275mod=i.$C({type:T});static \u0275inj=i.G2t({providers:[c]})}return T})()},6969:(o,s,r)=>{"use strict";r.d(s,{WB:()=>Gt,$Q:()=>En,hJ:()=>Qt,rR:()=>ht,Sf:()=>Fe,z_:()=>xn,yY:()=>Ft,Tv:()=>st});var i=r(5542),a=r(177),c=r(4438),y=r(4085),w=r(6860),C=r(5964),T=r(6977),S=r(9974),A=r(4360),N=r(8203),G=r(6939),Z=r(9888),ne=r(9046),be=r(1413),me=r(8359),pe=r(7786),Te=r(7336);const xe=(0,w.CZ)();class Re{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(ke,B){this._viewportRuler=ke,this._document=B}attach(){}enable(){if(this._canBeEnabled()){const ke=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ke.style.left||"",this._previousHTMLStyles.top=ke.style.top||"",ke.style.left=(0,y.a1)(-this._previousScrollPosition.left),ke.style.top=(0,y.a1)(-this._previousScrollPosition.top),ke.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ke=this._document.documentElement,k=ke.style,j=this._document.body.style,De=k.scrollBehavior||"",it=j.scrollBehavior||"";this._isEnabled=!1,k.left=this._previousHTMLStyles.left,k.top=this._previousHTMLStyles.top,ke.classList.remove("cdk-global-scrollblock"),xe&&(k.scrollBehavior=j.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),xe&&(k.scrollBehavior=De,j.scrollBehavior=it)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const B=this._document.body,k=this._viewportRuler.getViewportSize();return B.scrollHeight>k.height||B.scrollWidth>k.width}}class Ce{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(ke,B,k,j){this._scrollDispatcher=ke,this._ngZone=B,this._viewportRuler=k,this._config=j}attach(ke){this._overlayRef=ke}enable(){if(this._scrollSubscription)return;const ke=this._scrollDispatcher.scrolled(0).pipe((0,C.p)(B=>!B||!this._overlayRef.overlayElement.contains(B.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ke.subscribe(()=>{const B=this._viewportRuler.getViewportScrollPosition().top;Math.abs(B-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ke.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class le{enable(){}disable(){}attach(){}}function ae(tt,ke){return ke.some(B=>tt.bottomB.bottom||tt.rightB.right)}function Ie(tt,ke){return ke.some(B=>tt.topB.bottom||tt.leftB.right)}class $e{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(ke,B,k,j){this._scrollDispatcher=ke,this._viewportRuler=B,this._ngZone=k,this._config=j}attach(ke){this._overlayRef=ke}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 B=this._overlayRef.overlayElement.getBoundingClientRect(),{width:k,height:j}=this._viewportRuler.getViewportSize();ae(B,[{width:k,height:j,bottom:j,right:k,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 st=(()=>{class tt{_scrollDispatcher=(0,c.WQX)(i.R);_viewportRuler=(0,c.WQX)(i.Xj);_ngZone=(0,c.WQX)(c.SKi);_document=(0,c.WQX)(a.qQ);constructor(){}noop=()=>new le;close=B=>new Ce(this._scrollDispatcher,this._ngZone,this._viewportRuler,B);block=()=>new Re(this._viewportRuler,this._document);reposition=B=>new $e(this._scrollDispatcher,this._viewportRuler,this._ngZone,B);static \u0275fac=function(k){return new(k||tt)};static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})();class ht{positionStrategy;scrollStrategy=new le;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(ke){if(ke){const B=Object.keys(ke);for(const k of B)void 0!==ke[k]&&(this[k]=ke[k])}}}class Xt{connectionPair;scrollableViewProperties;constructor(ke,B){this.connectionPair=ke,this.scrollableViewProperties=B}}let $n=(()=>{class tt{_attachedOverlays=[];_document=(0,c.WQX)(a.qQ);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(B){this.remove(B),this._attachedOverlays.push(B)}remove(B){const k=this._attachedOverlays.indexOf(B);k>-1&&this._attachedOverlays.splice(k,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})(),bn=(()=>{class tt extends $n{_ngZone=(0,c.WQX)(c.SKi,{optional:!0});add(B){super.add(B),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}_keydownListener=B=>{const k=this._attachedOverlays;for(let j=k.length-1;j>-1;j--)if(k[j]._keydownEvents.observers.length>0){const De=k[j]._keydownEvents;this._ngZone?this._ngZone.run(()=>De.next(B)):De.next(B);break}};static \u0275fac=(()=>{let B;return function(j){return(B||(B=c.xGo(tt)))(j||tt)}})();static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})(),Qe=(()=>{class tt extends $n{_platform=(0,c.WQX)(w.OD);_ngZone=(0,c.WQX)(c.SKi,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(B){if(super.add(B),!this._isAttached){const k=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(k)):this._addEventListeners(k),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=k.style.cursor,k.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const B=this._document.body;B.removeEventListener("pointerdown",this._pointerDownListener,!0),B.removeEventListener("click",this._clickListener,!0),B.removeEventListener("auxclick",this._clickListener,!0),B.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(B.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(B){B.addEventListener("pointerdown",this._pointerDownListener,!0),B.addEventListener("click",this._clickListener,!0),B.addEventListener("auxclick",this._clickListener,!0),B.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=B=>{this._pointerDownEventTarget=(0,w.Fb)(B)};_clickListener=B=>{const k=(0,w.Fb)(B),j="click"===B.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:k;this._pointerDownEventTarget=null;const De=this._attachedOverlays.slice();for(let it=De.length-1;it>-1;it--){const ot=De[it];if(ot._outsidePointerEvents.observers.length<1||!ot.hasAttached())continue;if(bt(ot.overlayElement,k)||bt(ot.overlayElement,j))break;const Tt=ot._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Tt.next(B)):Tt.next(B)}};static \u0275fac=(()=>{let B;return function(j){return(B||(B=c.xGo(tt)))(j||tt)}})();static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})();function bt(tt,ke){const B=typeof ShadowRoot<"u"&&ShadowRoot;let k=ke;for(;k;){if(k===tt)return!0;k=B&&k instanceof ShadowRoot?k.host:k.parentNode}return!1}let ze=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275cmp=c.VBU({type:tt,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(k,j){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return tt})(),Fe=(()=>{class tt{_platform=(0,c.WQX)(w.OD);_containerElement;_document=(0,c.WQX)(a.qQ);_styleLoader=(0,c.WQX)(ne.l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const B="cdk-overlay-container";if(this._platform.isBrowser||(0,w.v8)()){const j=this._document.querySelectorAll(`.${B}[platform="server"], .${B}[platform="test"]`);for(let De=0;Dethis._backdropClick.next(ke);_backdropTransitionendHandler=ke=>{this._disposeBackdrop(ke.target)};_previousHostParent;_keydownEvents=new be.B;_outsidePointerEvents=new be.B;_renders=new be.B;_afterRenderRef;_afterNextRenderRef;constructor(ke,B,k,j,De,it,ot,Tt,In,Vt=!1,dn){this._portalOutlet=ke,this._host=B,this._pane=k,this._config=j,this._ngZone=De,this._keyboardDispatcher=it,this._document=ot,this._location=Tt,this._outsideClickDispatcher=In,this._animationsDisabled=Vt,this._injector=dn,j.scrollStrategy&&(this._scrollStrategy=j.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=j.positionStrategy,this._afterRenderRef=(0,c.O8t)(()=>(0,c.Tzd)(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ke){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const B=this._portalOutlet.attach(ke);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,c.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof B?.onDestroy&&B.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),B}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ke=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ke}dispose(){const ke=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,ke&&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(ke){ke!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ke,this.hasAttached()&&(ke.attach(this),this.updatePosition()))}updateSize(ke){this._config={...this._config,...ke},this._updateElementSize()}setDirection(ke){this._config={...this._config,direction:ke},this._updateElementDirection()}addPanelClass(ke){this._pane&&this._toggleClasses(this._pane,ke,!0)}removePanelClass(ke){this._pane&&this._toggleClasses(this._pane,ke,!1)}getDirection(){const ke=this._config.direction;return ke?"string"==typeof ke?ke:ke.value:"ltr"}updateScrollStrategy(ke){ke!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ke,this.hasAttached()&&(ke.attach(this),ke.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ke=this._pane.style;ke.width=(0,y.a1)(this._config.width),ke.height=(0,y.a1)(this._config.height),ke.minWidth=(0,y.a1)(this._config.minWidth),ke.minHeight=(0,y.a1)(this._config.minHeight),ke.maxWidth=(0,y.a1)(this._config.maxWidth),ke.maxHeight=(0,y.a1)(this._config.maxHeight)}_togglePointerEvents(ke){this._pane.style.pointerEvents=ke?"":"none"}_attachBackdrop(){const ke="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(ke)})}):this._backdropElement.classList.add(ke)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ke=this._backdropElement;if(ke){if(this._animationsDisabled)return void this._disposeBackdrop(ke);ke.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ke.addEventListener("transitionend",this._backdropTransitionendHandler)}),ke.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ke)},500))}}_toggleClasses(ke,B,k){const j=(0,y.FG)(B||[]).filter(De=>!!De);j.length&&(k?ke.classList.add(...j):ke.classList.remove(...j))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const ke=this._renders.pipe((0,T.Q)((0,pe.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()),ke.unsubscribe())})})}_disposeScrollStrategy(){const ke=this._scrollStrategy;ke&&(ke.disable(),ke.detach&&ke.detach())}_disposeBackdrop(ke){ke&&(ke.removeEventListener("click",this._backdropClickHandler),ke.removeEventListener("transitionend",this._backdropTransitionendHandler),ke.remove(),this._backdropElement===ke&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Ke="cdk-overlay-connected-position-bounding-box",dt=/([A-Za-z%]+)$/;class Ge{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new be.B;_resizeSubscription=me.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(ke,B,k,j,De){this._viewportRuler=B,this._document=k,this._platform=j,this._overlayContainer=De,this.setOrigin(ke)}attach(ke){this._validatePositions(),ke.hostElement.classList.add(Ke),this._overlayRef=ke,this._boundingBox=ke.hostElement,this._pane=ke.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 ke=this._originRect,B=this._overlayRect,k=this._viewportRect,j=this._containerRect,De=[];let it;for(let ot of this._preferredPositions){let Tt=this._getOriginPoint(ke,j,ot),In=this._getOverlayPoint(Tt,B,ot),Vt=this._getOverlayFit(In,B,k,ot);if(Vt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ot,Tt);this._canFitWithFlexibleDimensions(Vt,In,k)?De.push({position:ot,origin:Tt,overlayRect:B,boundingBoxRect:this._calculateBoundingBoxRect(Tt,ot)}):(!it||it.overlayFit.visibleAreaTt&&(Tt=Vt,ot=In)}return this._isPushed=!1,void this._applyPosition(ot.position,ot.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(it.position,it.originPoint);this._applyPosition(it.position,it.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&He(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ke),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ke=this._lastPosition;if(ke){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const B=this._getOriginPoint(this._originRect,this._containerRect,ke);this._applyPosition(ke,B)}else this.apply()}withScrollableContainers(ke){return this._scrollables=ke,this}withPositions(ke){return this._preferredPositions=ke,-1===ke.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ke){return this._viewportMargin=ke,this}withFlexibleDimensions(ke=!0){return this._hasFlexibleDimensions=ke,this}withGrowAfterOpen(ke=!0){return this._growAfterOpen=ke,this}withPush(ke=!0){return this._canPush=ke,this}withLockedPosition(ke=!0){return this._positionLocked=ke,this}setOrigin(ke){return this._origin=ke,this}withDefaultOffsetX(ke){return this._offsetX=ke,this}withDefaultOffsetY(ke){return this._offsetY=ke,this}withTransformOriginOn(ke){return this._transformOriginSelector=ke,this}_getOriginPoint(ke,B,k){let j,De;if("center"==k.originX)j=ke.left+ke.width/2;else{const it=this._isRtl()?ke.right:ke.left,ot=this._isRtl()?ke.left:ke.right;j="start"==k.originX?it:ot}return B.left<0&&(j-=B.left),De="center"==k.originY?ke.top+ke.height/2:"top"==k.originY?ke.top:ke.bottom,B.top<0&&(De-=B.top),{x:j,y:De}}_getOverlayPoint(ke,B,k){let j,De;return j="center"==k.overlayX?-B.width/2:"start"===k.overlayX?this._isRtl()?-B.width:0:this._isRtl()?0:-B.width,De="center"==k.overlayY?-B.height/2:"top"==k.overlayY?0:-B.height,{x:ke.x+j,y:ke.y+De}}_getOverlayFit(ke,B,k,j){const De=se(B);let{x:it,y:ot}=ke,Tt=this._getOffset(j,"x"),In=this._getOffset(j,"y");Tt&&(it+=Tt),In&&(ot+=In);let Pn=0-ot,Fn=ot+De.height-k.height,Bn=this._subtractOverflows(De.width,0-it,it+De.width-k.width),cr=this._subtractOverflows(De.height,Pn,Fn),Jr=Bn*cr;return{visibleArea:Jr,isCompletelyWithinViewport:De.width*De.height===Jr,fitsInViewportVertically:cr===De.height,fitsInViewportHorizontally:Bn==De.width}}_canFitWithFlexibleDimensions(ke,B,k){if(this._hasFlexibleDimensions){const j=k.bottom-B.y,De=k.right-B.x,it=mt(this._overlayRef.getConfig().minHeight),ot=mt(this._overlayRef.getConfig().minWidth);return(ke.fitsInViewportVertically||null!=it&&it<=j)&&(ke.fitsInViewportHorizontally||null!=ot&&ot<=De)}return!1}_pushOverlayOnScreen(ke,B,k){if(this._previousPushAmount&&this._positionLocked)return{x:ke.x+this._previousPushAmount.x,y:ke.y+this._previousPushAmount.y};const j=se(B),De=this._viewportRect,it=Math.max(ke.x+j.width-De.width,0),ot=Math.max(ke.y+j.height-De.height,0),Tt=Math.max(De.top-k.top-ke.y,0),In=Math.max(De.left-k.left-ke.x,0);let Vt=0,dn=0;return Vt=j.width<=De.width?In||-it:ke.xBn&&!this._isInitialRender&&!this._growAfterOpen&&(it=ke.y-Bn/2)}if("end"===B.overlayX&&!j||"start"===B.overlayX&&j)Pn=k.width-ke.x+2*this._viewportMargin,Vt=ke.x-this._viewportMargin;else if("start"===B.overlayX&&!j||"end"===B.overlayX&&j)dn=ke.x,Vt=k.right-ke.x;else{const Fn=Math.min(k.right-ke.x+k.left,ke.x),Bn=this._lastBoundingBoxSize.width;Vt=2*Fn,dn=ke.x-Fn,Vt>Bn&&!this._isInitialRender&&!this._growAfterOpen&&(dn=ke.x-Bn/2)}return{top:it,left:dn,bottom:ot,right:Pn,width:Vt,height:De}}_setBoundingBoxStyles(ke,B){const k=this._calculateBoundingBoxRect(ke,B);!this._isInitialRender&&!this._growAfterOpen&&(k.height=Math.min(k.height,this._lastBoundingBoxSize.height),k.width=Math.min(k.width,this._lastBoundingBoxSize.width));const j={};if(this._hasExactPosition())j.top=j.left="0",j.bottom=j.right=j.maxHeight=j.maxWidth="",j.width=j.height="100%";else{const De=this._overlayRef.getConfig().maxHeight,it=this._overlayRef.getConfig().maxWidth;j.height=(0,y.a1)(k.height),j.top=(0,y.a1)(k.top),j.bottom=(0,y.a1)(k.bottom),j.width=(0,y.a1)(k.width),j.left=(0,y.a1)(k.left),j.right=(0,y.a1)(k.right),j.alignItems="center"===B.overlayX?"center":"end"===B.overlayX?"flex-end":"flex-start",j.justifyContent="center"===B.overlayY?"center":"bottom"===B.overlayY?"flex-end":"flex-start",De&&(j.maxHeight=(0,y.a1)(De)),it&&(j.maxWidth=(0,y.a1)(it))}this._lastBoundingBoxSize=k,He(this._boundingBox.style,j)}_resetBoundingBoxStyles(){He(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){He(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ke,B){const k={},j=this._hasExactPosition(),De=this._hasFlexibleDimensions,it=this._overlayRef.getConfig();if(j){const Vt=this._viewportRuler.getViewportScrollPosition();He(k,this._getExactOverlayY(B,ke,Vt)),He(k,this._getExactOverlayX(B,ke,Vt))}else k.position="static";let ot="",Tt=this._getOffset(B,"x"),In=this._getOffset(B,"y");Tt&&(ot+=`translateX(${Tt}px) `),In&&(ot+=`translateY(${In}px)`),k.transform=ot.trim(),it.maxHeight&&(j?k.maxHeight=(0,y.a1)(it.maxHeight):De&&(k.maxHeight="")),it.maxWidth&&(j?k.maxWidth=(0,y.a1)(it.maxWidth):De&&(k.maxWidth="")),He(this._pane.style,k)}_getExactOverlayY(ke,B,k){let j={top:"",bottom:""},De=this._getOverlayPoint(B,this._overlayRect,ke);return this._isPushed&&(De=this._pushOverlayOnScreen(De,this._overlayRect,k)),"bottom"===ke.overlayY?j.bottom=this._document.documentElement.clientHeight-(De.y+this._overlayRect.height)+"px":j.top=(0,y.a1)(De.y),j}_getExactOverlayX(ke,B,k){let it,j={left:"",right:""},De=this._getOverlayPoint(B,this._overlayRect,ke);return this._isPushed&&(De=this._pushOverlayOnScreen(De,this._overlayRect,k)),it=this._isRtl()?"end"===ke.overlayX?"left":"right":"end"===ke.overlayX?"right":"left","right"===it?j.right=this._document.documentElement.clientWidth-(De.x+this._overlayRect.width)+"px":j.left=(0,y.a1)(De.x),j}_getScrollVisibility(){const ke=this._getOriginRect(),B=this._pane.getBoundingClientRect(),k=this._scrollables.map(j=>j.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ie(ke,k),isOriginOutsideView:ae(ke,k),isOverlayClipped:Ie(B,k),isOverlayOutsideView:ae(B,k)}}_subtractOverflows(ke,...B){return B.reduce((k,j)=>k-Math.max(j,0),ke)}_getNarrowedViewportRect(){const ke=this._document.documentElement.clientWidth,B=this._document.documentElement.clientHeight,k=this._viewportRuler.getViewportScrollPosition();return{top:k.top+this._viewportMargin,left:k.left+this._viewportMargin,right:k.left+ke-this._viewportMargin,bottom:k.top+B-this._viewportMargin,width:ke-2*this._viewportMargin,height:B-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ke,B){return"x"===B?null==ke.offsetX?this._offsetX:ke.offsetX:null==ke.offsetY?this._offsetY:ke.offsetY}_validatePositions(){}_addPanelClasses(ke){this._pane&&(0,y.FG)(ke).forEach(B=>{""!==B&&-1===this._appliedPanelClasses.indexOf(B)&&(this._appliedPanelClasses.push(B),this._pane.classList.add(B))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ke=>{this._pane.classList.remove(ke)}),this._appliedPanelClasses=[])}_getOriginRect(){const ke=this._origin;if(ke instanceof c.aKT)return ke.nativeElement.getBoundingClientRect();if(ke instanceof Element)return ke.getBoundingClientRect();const B=ke.width||0,k=ke.height||0;return{top:ke.y,bottom:ke.y+k,left:ke.x,right:ke.x+B,height:k,width:B}}}function He(tt,ke){for(let B in ke)ke.hasOwnProperty(B)&&(tt[B]=ke[B]);return tt}function mt(tt){if("number"!=typeof tt&&null!=tt){const[ke,B]=tt.split(dt);return B&&"px"!==B?null:parseFloat(ke)}return tt||null}function se(tt){return{top:Math.floor(tt.top),right:Math.floor(tt.right),bottom:Math.floor(tt.bottom),left:Math.floor(tt.left),width:Math.floor(tt.width),height:Math.floor(tt.height)}}const fn="cdk-global-overlay-wrapper";class Gn{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(ke){const B=ke.getConfig();this._overlayRef=ke,this._width&&!B.width&&ke.updateSize({width:this._width}),this._height&&!B.height&&ke.updateSize({height:this._height}),ke.hostElement.classList.add(fn),this._isDisposed=!1}top(ke=""){return this._bottomOffset="",this._topOffset=ke,this._alignItems="flex-start",this}left(ke=""){return this._xOffset=ke,this._xPosition="left",this}bottom(ke=""){return this._topOffset="",this._bottomOffset=ke,this._alignItems="flex-end",this}right(ke=""){return this._xOffset=ke,this._xPosition="right",this}start(ke=""){return this._xOffset=ke,this._xPosition="start",this}end(ke=""){return this._xOffset=ke,this._xPosition="end",this}width(ke=""){return this._overlayRef?this._overlayRef.updateSize({width:ke}):this._width=ke,this}height(ke=""){return this._overlayRef?this._overlayRef.updateSize({height:ke}):this._height=ke,this}centerHorizontally(ke=""){return this.left(ke),this._xPosition="center",this}centerVertically(ke=""){return this.top(ke),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ke=this._overlayRef.overlayElement.style,B=this._overlayRef.hostElement.style,k=this._overlayRef.getConfig(),{width:j,height:De,maxWidth:it,maxHeight:ot}=k,Tt=!("100%"!==j&&"100vw"!==j||it&&"100%"!==it&&"100vw"!==it),In=!("100%"!==De&&"100vh"!==De||ot&&"100%"!==ot&&"100vh"!==ot),Vt=this._xPosition,dn=this._xOffset,Pn="rtl"===this._overlayRef.getConfig().direction;let Fn="",Bn="",cr="";Tt?cr="flex-start":"center"===Vt?(cr="center",Pn?Bn=dn:Fn=dn):Pn?"left"===Vt||"end"===Vt?(cr="flex-end",Fn=dn):("right"===Vt||"start"===Vt)&&(cr="flex-start",Bn=dn):"left"===Vt||"start"===Vt?(cr="flex-start",Fn=dn):("right"===Vt||"end"===Vt)&&(cr="flex-end",Bn=dn),ke.position=this._cssPosition,ke.marginLeft=Tt?"0":Fn,ke.marginTop=In?"0":this._topOffset,ke.marginBottom=this._bottomOffset,ke.marginRight=Tt?"0":Bn,B.justifyContent=cr,B.alignItems=In?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ke=this._overlayRef.overlayElement.style,B=this._overlayRef.hostElement,k=B.style;B.classList.remove(fn),k.justifyContent=k.alignItems=ke.marginTop=ke.marginBottom=ke.marginLeft=ke.marginRight=ke.position="",this._overlayRef=null,this._isDisposed=!0}}let Nt=(()=>{class tt{_viewportRuler=(0,c.WQX)(i.Xj);_document=(0,c.WQX)(a.qQ);_platform=(0,c.WQX)(w.OD);_overlayContainer=(0,c.WQX)(Fe);constructor(){}global(){return new Gn}flexibleConnectedTo(B){return new Ge(B,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})(),Qt=(()=>{class tt{scrollStrategies=(0,c.WQX)(st);_overlayContainer=(0,c.WQX)(Fe);_positionBuilder=(0,c.WQX)(Nt);_keyboardDispatcher=(0,c.WQX)(bn);_injector=(0,c.WQX)(c.zZn);_ngZone=(0,c.WQX)(c.SKi);_document=(0,c.WQX)(a.qQ);_directionality=(0,c.WQX)(N.dS);_location=(0,c.WQX)(a.aZ);_outsideClickDispatcher=(0,c.WQX)(Qe);_animationsModuleType=(0,c.WQX)(c.bc$,{optional:!0});_idGenerator=(0,c.WQX)(Z.g7);_appRef;_styleLoader=(0,c.WQX)(ne.l);constructor(){}create(B){this._styleLoader.load(ze);const k=this._createHostElement(),j=this._createPaneElement(k),De=this._createPortalOutlet(j),it=new ht(B);return it.direction=it.direction||this._directionality.value,new Ft(De,k,j,it,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(c.uvJ))}position(){return this._positionBuilder}_createPaneElement(B){const k=this._document.createElement("div");return k.id=this._idGenerator.getId("cdk-overlay-"),k.classList.add("cdk-overlay-pane"),B.appendChild(k),k}_createHostElement(){const B=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(B),B}_createPortalOutlet(B){return this._appRef||(this._appRef=this._injector.get(c.o8S)),new G.aI(B,null,this._appRef,this._injector,this._document)}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})();const an=[{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"}],Xn=new c.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const tt=(0,c.WQX)(Qt);return()=>tt.scrollStrategies.reposition()}});let En=(()=>{class tt{elementRef=(0,c.WQX)(c.aKT);constructor(){}static \u0275fac=function(k){return new(k||tt)};static \u0275dir=c.FsC({type:tt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return tt})(),Gt=(()=>{class tt{_overlay=(0,c.WQX)(Qt);_dir=(0,c.WQX)(N.dS,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=me.yU.EMPTY;_attachSubscription=me.yU.EMPTY;_detachSubscription=me.yU.EMPTY;_positionSubscription=me.yU.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=(0,c.WQX)(Xn);_disposeOnNavigation=!1;_ngZone=(0,c.WQX)(c.SKi);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(B){this._offsetX=B,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(B){this._offsetY=B,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(B){this._disposeOnNavigation=B}backdropClick=new c.bkB;positionChange=new c.bkB;attach=new c.bkB;detach=new c.bkB;overlayKeydown=new c.bkB;overlayOutsideClick=new c.bkB;constructor(){const B=(0,c.WQX)(c.C4Q),k=(0,c.WQX)(c.c1b);this._templatePortal=new G.VA(B,k),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(B){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),B.origin&&this.open&&this._position.apply()),B.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=an);const B=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=B.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=B.detachments().subscribe(()=>this.detach.emit()),B.keydownEvents().subscribe(k=>{this.overlayKeydown.next(k),k.keyCode===Te._f&&!this.disableClose&&!(0,Te.rp)(k)&&(k.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(k=>{const j=this._getOriginElement(),De=(0,w.Fb)(k);(!j||j!==De&&!j.contains(De))&&this.overlayOutsideClick.next(k)})}_buildConfig(){const B=this._position=this.positionStrategy||this._createPositionStrategy(),k=new ht({direction:this._dir||"ltr",positionStrategy:B,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(k.width=this.width),(this.height||0===this.height)&&(k.height=this.height),(this.minWidth||0===this.minWidth)&&(k.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(k.minHeight=this.minHeight),this.backdropClass&&(k.backdropClass=this.backdropClass),this.panelClass&&(k.panelClass=this.panelClass),k}_updatePositionStrategy(B){const k=this.positions.map(j=>({originX:j.originX,originY:j.originY,overlayX:j.overlayX,overlayY:j.overlayY,offsetX:j.offsetX||this.offsetX,offsetY:j.offsetY||this.offsetY,panelClass:j.panelClass||void 0}));return B.setOrigin(this._getOrigin()).withPositions(k).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const B=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(B),B}_getOrigin(){return this.origin instanceof En?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof En?this.origin.elementRef.nativeElement:this.origin instanceof c.aKT?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(B=>{this.backdropClick.emit(B)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function I(tt,ke=!1){return(0,S.N)((B,k)=>{let j=0;B.subscribe((0,A._)(k,De=>{const it=tt(De,j++);(it||ke)&&k.next(De),!it&&k.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(B=>{this._ngZone.run(()=>this.positionChange.emit(B)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(k){return new(k||tt)};static \u0275dir=c.FsC({type:tt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",c.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",c.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",c.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",c.L39],push:[2,"cdkConnectedOverlayPush","push",c.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",c.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[c.GFd,c.OA$]})}return tt})();const Kt={provide:Xn,deps:[Qt],useFactory:function At(tt){return()=>tt.scrollStrategies.reposition()}};let xn=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275mod=c.$C({type:tt});static \u0275inj=c.G2t({providers:[Qt,Kt],imports:[N.jI,G.jc,i.E9,i.E9]})}return tt})()},6860:(o,s,r)=>{"use strict";r.d(s,{BD:()=>me,BQ:()=>N,CZ:()=>be,Fb:()=>Me,KT:()=>xe,MU:()=>S,OD:()=>y,r5:()=>G,v8:()=>Ce,vc:()=>Re});var i=r(4438),a=r(177);let c;try{c=typeof Intl<"u"&&Intl.v8BreakIterator}catch{c=!1}let C,y=(()=>{class le{_platformId=(0,i.WQX)(i.Agw);isBrowser=this._platformId?(0,a.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!c)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function($e){return new($e||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();const T=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function S(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(T),C;let le=document.createElement("input");return C=new Set(T.filter(ae=>(le.setAttribute("type",ae),le.type===ae))),C}let A;function N(le){return function I(){if(null==A&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>A=!0}))}finally{A=A||!1}return A}()?le:!!le.capture}var G=function(le){return le[le.NORMAL=0]="NORMAL",le[le.NEGATED=1]="NEGATED",le[le.INVERTED=2]="INVERTED",le}(G||{});let Z,ne,pe;function be(){if(null==ne){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ne=!1,ne;if("scrollBehavior"in document.documentElement.style)ne=!0;else{const le=Element.prototype.scrollTo;ne=!!le&&!/\{\s*\[native code\]\s*\}/.test(le.toString())}}return ne}function me(){if("object"!=typeof document||!document)return G.NORMAL;if(null==Z){const le=document.createElement("div"),ae=le.style;le.dir="rtl",ae.width="1px",ae.overflow="auto",ae.visibility="hidden",ae.pointerEvents="none",ae.position="absolute";const Ie=document.createElement("div"),$e=Ie.style;$e.width="2px",$e.height="1px",le.appendChild(Ie),document.body.appendChild(le),Z=G.NORMAL,0===le.scrollLeft&&(le.scrollLeft=1,Z=0===le.scrollLeft?G.NEGATED:G.INVERTED),le.remove()}return Z}function xe(le){if(function Te(){if(null==pe){const le=typeof document<"u"?document.head:null;pe=!(!le||!le.createShadowRoot&&!le.attachShadow)}return pe}()){const ae=le.getRootNode?le.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ae instanceof ShadowRoot)return ae}return null}function Re(){let le=typeof document<"u"&&document?document.activeElement:null;for(;le&&le.shadowRoot;){const ae=le.shadowRoot.activeElement;if(ae===le)break;le=ae}return le}function Me(le){return le.composedPath?le.composedPath()[0]:le.target}function Ce(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(o,s,r)=>{"use strict";r.d(s,{A8:()=>I,I3:()=>xe,VA:()=>N,aI:()=>be,jc:()=>Me,lb:()=>Z});var i=r(4438),a=r(177);class A{_attachedHost;attach(ae){return this._attachedHost=ae,ae.attach(this)}detach(){let ae=this._attachedHost;null!=ae&&(this._attachedHost=null,ae.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ae){this._attachedHost=ae}}class I extends A{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(ae,Ie,$e,st,ht){super(),this.component=ae,this.viewContainerRef=Ie,this.injector=$e,this.projectableNodes=ht}}class N extends A{templateRef;viewContainerRef;context;injector;constructor(ae,Ie,$e,st){super(),this.templateRef=ae,this.viewContainerRef=Ie,this.context=$e,this.injector=st}get origin(){return this.templateRef.elementRef}attach(ae,Ie=this.context){return this.context=Ie,super.attach(ae)}detach(){return this.context=void 0,super.detach()}}class G extends A{element;constructor(ae){super(),this.element=ae instanceof i.aKT?ae.nativeElement:ae}}class Z{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(ae){return ae instanceof I?(this._attachedPortal=ae,this.attachComponentPortal(ae)):ae instanceof N?(this._attachedPortal=ae,this.attachTemplatePortal(ae)):this.attachDomPortal&&ae instanceof G?(this._attachedPortal=ae,this.attachDomPortal(ae)):void 0}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(ae){this._disposeFn=ae}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class be extends Z{outletElement;_appRef;_defaultInjector;_document;constructor(ae,Ie,$e,st,ht){super(),this.outletElement=ae,this._appRef=$e,this._defaultInjector=st,this._document=ht}attachComponentPortal(ae){let Ie;if(ae.viewContainerRef){const $e=ae.injector||ae.viewContainerRef.injector,st=$e.get(i.Vns,null,{optional:!0})||void 0;Ie=ae.viewContainerRef.createComponent(ae.component,{index:ae.viewContainerRef.length,injector:$e,ngModuleRef:st,projectableNodes:ae.projectableNodes||void 0}),this.setDisposeFn(()=>Ie.destroy())}else Ie=(0,i.a0P)(ae.component,{elementInjector:ae.injector||this._defaultInjector||i.zZn.NULL,environmentInjector:this._appRef.injector,projectableNodes:ae.projectableNodes||void 0}),this._appRef.attachView(Ie.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Ie.hostView),Ie.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(Ie)),this._attachedPortal=ae,Ie}attachTemplatePortal(ae){let Ie=ae.viewContainerRef,$e=Ie.createEmbeddedView(ae.templateRef,ae.context,{injector:ae.injector});return $e.rootNodes.forEach(st=>this.outletElement.appendChild(st)),$e.detectChanges(),this.setDisposeFn(()=>{let st=Ie.indexOf($e);-1!==st&&Ie.remove(st)}),this._attachedPortal=ae,$e}attachDomPortal=ae=>{const Ie=ae.element,$e=this._document.createComment("dom-portal");Ie.parentNode.insertBefore($e,Ie),this.outletElement.appendChild(Ie),this._attachedPortal=ae,super.setDisposeFn(()=>{$e.parentNode&&$e.parentNode.replaceChild(Ie,$e)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ae){return ae.hostView.rootNodes[0]}}let xe=(()=>{class le extends Z{_moduleRef=(0,i.WQX)(i.Vns,{optional:!0});_document=(0,i.WQX)(a.qQ);_viewContainerRef=(0,i.WQX)(i.c1b);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(Ie){this.hasAttached()&&!Ie&&!this._isInitialized||(this.hasAttached()&&super.detach(),Ie&&super.attach(Ie),this._attachedPortal=Ie||null)}attached=new i.bkB;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(Ie){Ie.setAttachedHost(this);const $e=null!=Ie.viewContainerRef?Ie.viewContainerRef:this._viewContainerRef,st=$e.createComponent(Ie.component,{index:$e.length,injector:Ie.injector||$e.injector,projectableNodes:Ie.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return $e!==this._viewContainerRef&&this._getRootNode().appendChild(st.hostView.rootNodes[0]),super.setDisposeFn(()=>st.destroy()),this._attachedPortal=Ie,this._attachedRef=st,this.attached.emit(st),st}attachTemplatePortal(Ie){Ie.setAttachedHost(this);const $e=this._viewContainerRef.createEmbeddedView(Ie.templateRef,Ie.context,{injector:Ie.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Ie,this._attachedRef=$e,this.attached.emit($e),$e}attachDomPortal=Ie=>{const $e=Ie.element,st=this._document.createComment("dom-portal");Ie.setAttachedHost(this),$e.parentNode.insertBefore(st,$e),this._getRootNode().appendChild($e),this._attachedPortal=Ie,super.setDisposeFn(()=>{st.parentNode&&st.parentNode.replaceChild($e,st)})};_getRootNode(){const Ie=this._viewContainerRef.element.nativeElement;return Ie.nodeType===Ie.ELEMENT_NODE?Ie:Ie.parentNode}static \u0275fac=function($e){return new($e||le)};static \u0275dir=i.FsC({type:le,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Vt3]})}return le})(),Me=(()=>{class le{static \u0275fac=function($e){return new($e||le)};static \u0275mod=i.$C({type:le});static \u0275inj=i.G2t({})}return le})()},9046:(o,s,r)=>{"use strict";r.d(s,{Y:()=>y,l:()=>c});var i=r(4438);const a=new WeakMap;let c=(()=>{class w{_appRef;_injector=(0,i.WQX)(i.zZn);_environmentInjector=(0,i.WQX)(i.uvJ);load(T){const S=this._appRef=this._appRef||this._injector.get(i.o8S);let A=a.get(S);A||(A={loaders:new Set,refs:[]},a.set(S,A),S.onDestroy(()=>{a.get(S)?.refs.forEach(I=>I.destroy()),a.delete(S)})),A.loaders.has(T)||(A.loaders.add(T),A.refs.push((0,i.a0P)(T,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(S){return new(S||w)};static \u0275prov=i.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})(),y=(()=>{class w{static \u0275fac=function(S){return new(S||w)};static \u0275cmp=i.VBU({type:w,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(S,A){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return w})()},5542:(o,s,r)=>{"use strict";r.d(s,{uv:()=>at,Gj:()=>dt,R:()=>vt,E9:()=>Ge,Xj:()=>ln});var i=r(4085),a=r(4438),c=r(1413),y=r(7673),w=r(1985),C=r(3726),T=r(6780),S=r(8359);const A={schedule(He){let mt=requestAnimationFrame,se=cancelAnimationFrame;const{delegate:Ze}=A;Ze&&(mt=Ze.requestAnimationFrame,se=Ze.cancelAnimationFrame);const Rt=mt(Jt=>{se=void 0,He(Jt)});return new S.yU(()=>se?.(Rt))},requestAnimationFrame(...He){const{delegate:mt}=A;return(mt?.requestAnimationFrame||requestAnimationFrame)(...He)},cancelAnimationFrame(...He){const{delegate:mt}=A;return(mt?.cancelAnimationFrame||cancelAnimationFrame)(...He)},delegate:void 0};var N=r(9687);new class G extends N.q{flush(mt){this._active=!0;const se=this._scheduled;this._scheduled=void 0;const{actions:Ze}=this;let Rt;mt=mt||Ze.shift();do{if(Rt=mt.execute(mt.state,mt.delay))break}while((mt=Ze[0])&&mt.id===se&&Ze.shift());if(this._active=!1,Rt){for(;(mt=Ze[0])&&mt.id===se&&Ze.shift();)mt.unsubscribe();throw Rt}}}(class I extends T.R{constructor(mt,se){super(mt,se),this.scheduler=mt,this.work=se}requestAsyncId(mt,se,Ze=0){return null!==Ze&&Ze>0?super.requestAsyncId(mt,se,Ze):(mt.actions.push(this),mt._scheduled||(mt._scheduled=A.requestAnimationFrame(()=>mt.flush(void 0))))}recycleAsyncId(mt,se,Ze=0){var Rt;if(null!=Ze?Ze>0:this.delay>0)return super.recycleAsyncId(mt,se,Ze);const{actions:Jt}=mt;null!=se&&(null===(Rt=Jt[Jt.length-1])||void 0===Rt?void 0:Rt.id)!==se&&(A.cancelAnimationFrame(se),mt._scheduled=void 0)}});r(5007);var me=r(3798),pe=r(5964),Te=r(6977),xe=r(6860),Re=r(177),Me=r(8203);let vt=(()=>{class He{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(xe.OD);_document=(0,a.WQX)(Re.qQ,{optional:!0});constructor(){}_scrolled=new c.B;_globalSubscription=null;_scrolledCount=0;scrollContainers=new Map;register(se){this.scrollContainers.has(se)||this.scrollContainers.set(se,se.elementScrolled().subscribe(()=>this._scrolled.next(se)))}deregister(se){const Ze=this.scrollContainers.get(se);Ze&&(Ze.unsubscribe(),this.scrollContainers.delete(se))}scrolled(se=20){return this._platform.isBrowser?new w.c(Ze=>{this._globalSubscription||this._addGlobalListener();const Rt=se>0?this._scrolled.pipe((0,me.Z)(se)).subscribe(Ze):this._scrolled.subscribe(Ze);return this._scrolledCount++,()=>{Rt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,y.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((se,Ze)=>this.deregister(Ze)),this._scrolled.complete()}ancestorScrolled(se,Ze){const Rt=this.getAncestorScrollContainers(se);return this.scrolled(Ze).pipe((0,pe.p)(Jt=>!Jt||Rt.indexOf(Jt)>-1))}getAncestorScrollContainers(se){const Ze=[];return this.scrollContainers.forEach((Rt,Jt)=>{this._scrollableContainsElement(Jt,se)&&Ze.push(Jt)}),Ze}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(se,Ze){let Rt=(0,i.i8)(Ze),Jt=se.getElementRef().nativeElement;do{if(Rt==Jt)return!0}while(Rt=Rt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const se=this._getWindow();return(0,C.R)(se.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275prov=a.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}return He})(),at=(()=>{class He{elementRef=(0,a.WQX)(a.aKT);scrollDispatcher=(0,a.WQX)(vt);ngZone=(0,a.WQX)(a.SKi);dir=(0,a.WQX)(Me.dS,{optional:!0});_destroyed=new c.B;_elementScrolled=new w.c(se=>this.ngZone.runOutsideAngular(()=>(0,C.R)(this.elementRef.nativeElement,"scroll").pipe((0,Te.Q)(this._destroyed)).subscribe(se)));constructor(){}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(se){const Ze=this.elementRef.nativeElement,Rt=this.dir&&"rtl"==this.dir.value;null==se.left&&(se.left=Rt?se.end:se.start),null==se.right&&(se.right=Rt?se.start:se.end),null!=se.bottom&&(se.top=Ze.scrollHeight-Ze.clientHeight-se.bottom),Rt&&(0,xe.BD)()!=xe.r5.NORMAL?(null!=se.left&&(se.right=Ze.scrollWidth-Ze.clientWidth-se.left),(0,xe.BD)()==xe.r5.INVERTED?se.left=se.right:(0,xe.BD)()==xe.r5.NEGATED&&(se.left=se.right?-se.right:se.right)):null!=se.right&&(se.left=Ze.scrollWidth-Ze.clientWidth-se.right),this._applyScrollToOptions(se)}_applyScrollToOptions(se){const Ze=this.elementRef.nativeElement;(0,xe.CZ)()?Ze.scrollTo(se):(null!=se.top&&(Ze.scrollTop=se.top),null!=se.left&&(Ze.scrollLeft=se.left))}measureScrollOffset(se){const Ze="left",Jt=this.elementRef.nativeElement;if("top"==se)return Jt.scrollTop;if("bottom"==se)return Jt.scrollHeight-Jt.clientHeight-Jt.scrollTop;const fn=this.dir&&"rtl"==this.dir.value;return"start"==se?se=fn?"right":Ze:"end"==se&&(se=fn?Ze:"right"),fn&&(0,xe.BD)()==xe.r5.INVERTED?se==Ze?Jt.scrollWidth-Jt.clientWidth-Jt.scrollLeft:Jt.scrollLeft:fn&&(0,xe.BD)()==xe.r5.NEGATED?se==Ze?Jt.scrollLeft+Jt.scrollWidth-Jt.clientWidth:-Jt.scrollLeft:se==Ze?Jt.scrollLeft:Jt.scrollWidth-Jt.clientWidth-Jt.scrollLeft}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275dir=a.FsC({type:He,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return He})(),ln=(()=>{class He{_platform=(0,a.WQX)(xe.OD);_viewportSize;_change=new c.B;_changeListener=se=>{this._change.next(se)};_document=(0,a.WQX)(Re.qQ,{optional:!0});constructor(){(0,a.WQX)(a.SKi).runOutsideAngular(()=>{if(this._platform.isBrowser){const Ze=this._getWindow();Ze.addEventListener("resize",this._changeListener),Ze.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const se=this._getWindow();se.removeEventListener("resize",this._changeListener),se.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const se={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),se}getViewportRect(){const se=this.getViewportScrollPosition(),{width:Ze,height:Rt}=this.getViewportSize();return{top:se.top,left:se.left,bottom:se.top+Rt,right:se.left+Ze,height:Rt,width:Ze}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const se=this._document,Ze=this._getWindow(),Rt=se.documentElement,Jt=Rt.getBoundingClientRect();return{top:-Jt.top||se.body.scrollTop||Ze.scrollY||Rt.scrollTop||0,left:-Jt.left||se.body.scrollLeft||Ze.scrollX||Rt.scrollLeft||0}}change(se=20){return se>0?this._change.pipe((0,me.Z)(se)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const se=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:se.innerWidth,height:se.innerHeight}:{width:0,height:0}}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275prov=a.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}return He})(),dt=(()=>{class He{static \u0275fac=function(Ze){return new(Ze||He)};static \u0275mod=a.$C({type:He});static \u0275inj=a.G2t({})}return He})(),Ge=(()=>{class He{static \u0275fac=function(Ze){return new(Ze||He)};static \u0275mod=a.$C({type:He});static \u0275inj=a.G2t({imports:[Me.jI,dt,Me.jI,dt]})}return He})()},7403:(o,s,r)=>{"use strict";r.d(s,{EE:()=>me,P8:()=>Z,xb:()=>be});var i=r(6860),a=r(4438),c=r(9046),y=r(4085),w=r(983),C=r(1413),T=r(3726),S=r(177),A=r(3798),I=r(6977);let N=(()=>{class pe{static \u0275fac=function(Re){return new(Re||pe)};static \u0275cmp=a.VBU({type:pe,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(Re,Me){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}"],encapsulation:2,changeDetection:0})}return pe})();const G=(0,i.BQ)({passive:!0});let Z=(()=>{class pe{_platform=(0,a.WQX)(i.OD);_ngZone=(0,a.WQX)(a.SKi);_styleLoader=(0,a.WQX)(c.l);_monitoredElements=new Map;constructor(){}monitor(xe){if(!this._platform.isBrowser)return w.w;this._styleLoader.load(N);const Re=(0,y.i8)(xe),Me=this._monitoredElements.get(Re);if(Me)return Me.subject;const Ce=new C.B,le="cdk-text-field-autofilled",ae=Ie=>{"cdk-text-field-autofill-start"!==Ie.animationName||Re.classList.contains(le)?"cdk-text-field-autofill-end"===Ie.animationName&&Re.classList.contains(le)&&(Re.classList.remove(le),this._ngZone.run(()=>Ce.next({target:Ie.target,isAutofilled:!1}))):(Re.classList.add(le),this._ngZone.run(()=>Ce.next({target:Ie.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Re.addEventListener("animationstart",ae,G),Re.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Re,{subject:Ce,unlisten:()=>{Re.removeEventListener("animationstart",ae,G)}}),Ce}stopMonitoring(xe){const Re=(0,y.i8)(xe),Me=this._monitoredElements.get(Re);Me&&(Me.unlisten(),Me.subject.complete(),Re.classList.remove("cdk-text-field-autofill-monitored"),Re.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Re))}ngOnDestroy(){this._monitoredElements.forEach((xe,Re)=>this.stopMonitoring(Re))}static \u0275fac=function(Re){return new(Re||pe)};static \u0275prov=a.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})(),be=(()=>{class pe{_elementRef=(0,a.WQX)(a.aKT);_platform=(0,a.WQX)(i.OD);_ngZone=(0,a.WQX)(a.SKi);_previousValue;_initialHeight;_destroyed=new C.B;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(xe){this._minRows=(0,y.OE)(xe),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(xe){this._maxRows=(0,y.OE)(xe),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(xe){this._enabled!==xe&&((this._enabled=xe)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(xe){this._cachedPlaceholderHeight=void 0,xe?this._textareaElement.setAttribute("placeholder",xe):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=(0,a.WQX)(S.qQ,{optional:!0});_hasFocus;_isViewInited=!1;constructor(){(0,a.WQX)(c.l).load(N),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const xe=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;xe&&(this._textareaElement.style.minHeight=xe)}_setMaxHeight(){const xe=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;xe&&(this._textareaElement.style.maxHeight=xe)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const xe=this._getWindow();(0,T.R)(xe,"resize").pipe((0,A.Z)(16),(0,I.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 xe=this._textareaElement.cloneNode(!1);xe.rows=1,xe.style.position="absolute",xe.style.visibility="hidden",xe.style.border="none",xe.style.padding="0",xe.style.height="",xe.style.minHeight="",xe.style.maxHeight="",xe.style.overflow="hidden",this._textareaElement.parentNode.appendChild(xe),this._cachedLineHeight=xe.clientHeight,xe.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const xe=this._textareaElement,Re=xe.style.marginBottom||"",Me=this._platform.FIREFOX,Ce=Me&&this._hasFocus,le=Me?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Ce&&(xe.style.marginBottom=`${xe.clientHeight}px`),xe.classList.add(le);const ae=xe.scrollHeight-4;return xe.classList.remove(le),Ce&&(xe.style.marginBottom=Re),ae}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const xe=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=xe}_handleFocusEvent=xe=>{this._hasFocus="focus"===xe.type};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(xe=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Re=this._elementRef.nativeElement,Me=Re.value;if(!xe&&this._minRows===this._previousMinRows&&Me===this._previousValue)return;const Ce=this._measureScrollHeight(),le=Math.max(Ce,this._cachedPlaceholderHeight||0);Re.style.height=`${le}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(Re)):setTimeout(()=>this._scrollToCaretPosition(Re))}),this._previousValue=Me,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(xe){const{selectionStart:Re,selectionEnd:Me}=xe;!this._destroyed.isStopped&&this._hasFocus&&xe.setSelectionRange(Re,Me)}static \u0275fac=function(Re){return new(Re||pe)};static \u0275dir=a.FsC({type:pe,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(Re,Me){1&Re&&a.bIt("input",function(){return Me._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",a.L39],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"],features:[a.GFd]})}return pe})(),me=(()=>{class pe{static \u0275fac=function(Re){return new(Re||pe)};static \u0275mod=a.$C({type:pe});static \u0275inj=a.G2t({})}return pe})()},177:(o,s,r)=>{"use strict";r.d(s,{AJ:()=>Eo,B3:()=>mr,Jj:()=>cs,MD:()=>tr,N0:()=>Qo,PV:()=>Sr,QT:()=>y,QX:()=>rs,Sm:()=>pe,Sq:()=>ve,T3:()=>bi,UE:()=>ks,VF:()=>C,Vy:()=>Bs,Xr:()=>Yo,YU:()=>Mo,ZD:()=>w,_b:()=>eo,aZ:()=>xe,bT:()=>pt,fw:()=>Te,hb:()=>be,hj:()=>I,qQ:()=>S,vh:()=>Ps});var i=r(4438),a=r(1413);let c=null;function y(){return c}function w($){c??=$}class C{}const S=new i.nKC("");let A=(()=>{class ${historyGo(q){throw new Error("")}static \u0275fac=function(_e){return new(_e||$)};static \u0275prov=i.jDH({token:$,factory:()=>(0,i.WQX)(N),providedIn:"platform"})}return $})();const I=new i.nKC("");let N=(()=>{class $ extends A{_location;_history;_doc=(0,i.WQX)(S);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return y().getBaseHref(this._doc)}onPopState(q){const _e=y().getGlobalEventTarget(this._doc,"window");return _e.addEventListener("popstate",q,!1),()=>_e.removeEventListener("popstate",q)}onHashChange(q){const _e=y().getGlobalEventTarget(this._doc,"window");return _e.addEventListener("hashchange",q,!1),()=>_e.removeEventListener("hashchange",q)}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(q){this._location.pathname=q}pushState(q,_e,nt){this._history.pushState(q,_e,nt)}replaceState(q,_e,nt){this._history.replaceState(q,_e,nt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(q=0){this._history.go(q)}getState(){return this._history.state}static \u0275fac=function(_e){return new(_e||$)};static \u0275prov=i.jDH({token:$,factory:()=>new $,providedIn:"platform"})}return $})();function G($,de){if(0==$.length)return de;if(0==de.length)return $;let q=0;return $.endsWith("/")&&q++,de.startsWith("/")&&q++,2==q?$+de.substring(1):1==q?$+de:$+"/"+de}function Z($){const de=$.match(/#|\?|$/),q=de&&de.index||$.length;return $.slice(0,q-("/"===$[q-1]?1:0))+$.slice(q)}function ne($){return $&&"?"!==$[0]?"?"+$:$}let be=(()=>{class ${historyGo(q){throw new Error("")}static \u0275fac=function(_e){return new(_e||$)};static \u0275prov=i.jDH({token:$,factory:()=>(0,i.WQX)(pe),providedIn:"root"})}return $})();const me=new i.nKC("");let pe=(()=>{class $ extends be{_platformLocation;_baseHref;_removeListenerFns=[];constructor(q,_e){super(),this._platformLocation=q,this._baseHref=_e??this._platformLocation.getBaseHrefFromDOM()??(0,i.WQX)(S).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.onHashChange(q))}getBaseHref(){return this._baseHref}prepareExternalUrl(q){return G(this._baseHref,q)}path(q=!1){const _e=this._platformLocation.pathname+ne(this._platformLocation.search),nt=this._platformLocation.hash;return nt&&q?`${_e}${nt}`:_e}pushState(q,_e,nt,_n){const On=this.prepareExternalUrl(nt+ne(_n));this._platformLocation.pushState(q,_e,On)}replaceState(q,_e,nt,_n){const On=this.prepareExternalUrl(nt+ne(_n));this._platformLocation.replaceState(q,_e,On)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}static \u0275fac=function(_e){return new(_e||$)(i.KVO(A),i.KVO(me,8))};static \u0275prov=i.jDH({token:$,factory:$.\u0275fac,providedIn:"root"})}return $})(),Te=(()=>{class $ extends be{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(q,_e){super(),this._platformLocation=q,null!=_e&&(this._baseHref=_e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.onHashChange(q))}getBaseHref(){return this._baseHref}path(q=!1){const _e=this._platformLocation.hash??"#";return _e.length>0?_e.substring(1):_e}prepareExternalUrl(q){const _e=G(this._baseHref,q);return _e.length>0?"#"+_e:_e}pushState(q,_e,nt,_n){let On=this.prepareExternalUrl(nt+ne(_n));0==On.length&&(On=this._platformLocation.pathname),this._platformLocation.pushState(q,_e,On)}replaceState(q,_e,nt,_n){let On=this.prepareExternalUrl(nt+ne(_n));0==On.length&&(On=this._platformLocation.pathname),this._platformLocation.replaceState(q,_e,On)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}static \u0275fac=function(_e){return new(_e||$)(i.KVO(A),i.KVO(me,8))};static \u0275prov=i.jDH({token:$,factory:$.\u0275fac})}return $})(),xe=(()=>{class ${_subject=new a.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(q){this._locationStrategy=q;const _e=this._locationStrategy.getBaseHref();this._basePath=function le($){if(new RegExp("^(https?:)?//").test($)){const[,q]=$.split(/\/\/[^\/]+/);return q}return $}(Z(Ce(_e))),this._locationStrategy.onPopState(nt=>{this._subject.next({url:this.path(!0),pop:!0,state:nt.state,type:nt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(q=!1){return this.normalize(this._locationStrategy.path(q))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(q,_e=""){return this.path()==this.normalize(q+ne(_e))}normalize(q){return $.stripTrailingSlash(function Me($,de){if(!$||!de.startsWith($))return de;const q=de.substring($.length);return""===q||["/",";","?","#"].includes(q[0])?q:de}(this._basePath,Ce(q)))}prepareExternalUrl(q){return q&&"/"!==q[0]&&(q="/"+q),this._locationStrategy.prepareExternalUrl(q)}go(q,_e="",nt=null){this._locationStrategy.pushState(nt,"",q,_e),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+ne(_e)),nt)}replaceState(q,_e="",nt=null){this._locationStrategy.replaceState(nt,"",q,_e),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+ne(_e)),nt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(q=0){this._locationStrategy.historyGo?.(q)}onUrlChange(q){return this._urlChangeListeners.push(q),this._urlChangeSubscription??=this.subscribe(_e=>{this._notifyUrlChangeListeners(_e.url,_e.state)}),()=>{const _e=this._urlChangeListeners.indexOf(q);this._urlChangeListeners.splice(_e,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(q="",_e){this._urlChangeListeners.forEach(nt=>nt(q,_e))}subscribe(q,_e,nt){return this._subject.subscribe({next:q,error:_e??void 0,complete:nt??void 0})}static normalizeQueryParams=ne;static joinWithSlash=G;static stripTrailingSlash=Z;static \u0275fac=function(_e){return new(_e||$)(i.KVO(be))};static \u0275prov=i.jDH({token:$,factory:()=>function Re(){return new xe((0,i.KVO)(be))}(),providedIn:"root"})}return $})();function Ce($){return $.replace(/\/index.html$/,"")}var Ie=function($){return $[$.Decimal=0]="Decimal",$[$.Percent=1]="Percent",$[$.Currency=2]="Currency",$[$.Scientific=3]="Scientific",$}(Ie||{}),st=function($){return $[$.Format=0]="Format",$[$.Standalone=1]="Standalone",$}(st||{}),ht=function($){return $[$.Narrow=0]="Narrow",$[$.Abbreviated=1]="Abbreviated",$[$.Wide=2]="Wide",$[$.Short=3]="Short",$}(ht||{}),vt=function($){return $[$.Short=0]="Short",$[$.Medium=1]="Medium",$[$.Long=2]="Long",$[$.Full=3]="Full",$}(vt||{});function Fe($,de){return Qt((0,i.H5H)($)[i.KH2.DateFormat],de)}function Ft($,de){return Qt((0,i.H5H)($)[i.KH2.TimeFormat],de)}function Ke($,de){return Qt((0,i.H5H)($)[i.KH2.DateTimeFormat],de)}function dt($,de){const q=(0,i.H5H)($),_e=q[i.KH2.NumberSymbols][de];if(typeof _e>"u"){if(12===de)return q[i.KH2.NumberSymbols][0];if(13===de)return q[i.KH2.NumberSymbols][1]}return _e}function Jt($){if(!$[i.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${$[i.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Qt($,de){for(let q=de;q>-1;q--)if(typeof $[q]<"u")return $[q];throw new Error("Locale data API: locale data undefined")}function an($){const[de,q]=$.split(":");return{hours:+de,minutes:+q}}const At=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Kt={},xn=/((?:[^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 Yn=function($){return $[$.Short=0]="Short",$[$.ShortGMT=1]="ShortGMT",$[$.Long=2]="Long",$[$.Extended=3]="Extended",$}(Yn||{}),tt=function($){return $[$.FullYear=0]="FullYear",$[$.Month=1]="Month",$[$.Date=2]="Date",$[$.Hours=3]="Hours",$[$.Minutes=4]="Minutes",$[$.Seconds=5]="Seconds",$[$.FractionalSeconds=6]="FractionalSeconds",$[$.Day=7]="Day",$}(tt||{}),ke=function($){return $[$.DayPeriods=0]="DayPeriods",$[$.Days=1]="Days",$[$.Months=2]="Months",$[$.Eras=3]="Eras",$}(ke||{});function B($,de,q,_e){let nt=function ft($){if(mn($))return $;if("number"==typeof $&&!isNaN($))return new Date($);if("string"==typeof $){if($=$.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test($)){const[nt,_n=1,On=1]=$.split("-").map(Cr=>+Cr);return k(nt,_n-1,On)}const q=parseFloat($);if(!isNaN($-q))return new Date(q);let _e;if(_e=$.match(At))return function Pt($){const de=new Date(0);let q=0,_e=0;const nt=$[8]?de.setUTCFullYear:de.setFullYear,_n=$[8]?de.setUTCHours:de.setHours;$[9]&&(q=Number($[9]+$[10]),_e=Number($[9]+$[11])),nt.call(de,Number($[1]),Number($[2])-1,Number($[3]));const On=Number($[4]||0)-q,Cr=Number($[5]||0)-_e,Yr=Number($[6]||0),Li=Math.floor(1e3*parseFloat("0."+($[7]||0)));return _n.call(de,On,Cr,Yr,Li),de}(_e)}const de=new Date($);if(!mn(de))throw new Error(`Unable to convert "${$}" into a date`);return de}($);de=j(q,de)||de;let Cr,On=[];for(;de;){if(Cr=xn.exec(de),!Cr){On.push(de);break}{On=On.concat(Cr.slice(1));const Hr=On.pop();if(!Hr)break;de=Hr}}let Yr=nt.getTimezoneOffset();_e&&(Yr=lt(_e,Yr),nt=function kt($,de,q){const _e=q?-1:1,nt=$.getTimezoneOffset();return function Pe($,de){return($=new Date($.getTime())).setMinutes($.getMinutes()+de),$}($,_e*(lt(de,nt)-nt))}(nt,_e,!0));let Li="";return On.forEach(Hr=>{const xi=function Ee($){if(Bt[$])return Bt[$];let de;switch($){case"G":case"GG":case"GGG":de=Vt(ke.Eras,ht.Abbreviated);break;case"GGGG":de=Vt(ke.Eras,ht.Wide);break;case"GGGGG":de=Vt(ke.Eras,ht.Narrow);break;case"y":de=Tt(tt.FullYear,1,0,!1,!0);break;case"yy":de=Tt(tt.FullYear,2,0,!0,!0);break;case"yyy":de=Tt(tt.FullYear,3,0,!1,!0);break;case"yyyy":de=Tt(tt.FullYear,4,0,!1,!0);break;case"Y":de=_t(1);break;case"YY":de=_t(2,!0);break;case"YYY":de=_t(3);break;case"YYYY":de=_t(4);break;case"M":case"L":de=Tt(tt.Month,1,1);break;case"MM":case"LL":de=Tt(tt.Month,2,1);break;case"MMM":de=Vt(ke.Months,ht.Abbreviated);break;case"MMMM":de=Vt(ke.Months,ht.Wide);break;case"MMMMM":de=Vt(ke.Months,ht.Narrow);break;case"LLL":de=Vt(ke.Months,ht.Abbreviated,st.Standalone);break;case"LLLL":de=Vt(ke.Months,ht.Wide,st.Standalone);break;case"LLLLL":de=Vt(ke.Months,ht.Narrow,st.Standalone);break;case"w":de=Xr(1);break;case"ww":de=Xr(2);break;case"W":de=Xr(1,!0);break;case"d":de=Tt(tt.Date,1);break;case"dd":de=Tt(tt.Date,2);break;case"c":case"cc":de=Tt(tt.Day,1);break;case"ccc":de=Vt(ke.Days,ht.Abbreviated,st.Standalone);break;case"cccc":de=Vt(ke.Days,ht.Wide,st.Standalone);break;case"ccccc":de=Vt(ke.Days,ht.Narrow,st.Standalone);break;case"cccccc":de=Vt(ke.Days,ht.Short,st.Standalone);break;case"E":case"EE":case"EEE":de=Vt(ke.Days,ht.Abbreviated);break;case"EEEE":de=Vt(ke.Days,ht.Wide);break;case"EEEEE":de=Vt(ke.Days,ht.Narrow);break;case"EEEEEE":de=Vt(ke.Days,ht.Short);break;case"a":case"aa":case"aaa":de=Vt(ke.DayPeriods,ht.Abbreviated);break;case"aaaa":de=Vt(ke.DayPeriods,ht.Wide);break;case"aaaaa":de=Vt(ke.DayPeriods,ht.Narrow);break;case"b":case"bb":case"bbb":de=Vt(ke.DayPeriods,ht.Abbreviated,st.Standalone,!0);break;case"bbbb":de=Vt(ke.DayPeriods,ht.Wide,st.Standalone,!0);break;case"bbbbb":de=Vt(ke.DayPeriods,ht.Narrow,st.Standalone,!0);break;case"B":case"BB":case"BBB":de=Vt(ke.DayPeriods,ht.Abbreviated,st.Format,!0);break;case"BBBB":de=Vt(ke.DayPeriods,ht.Wide,st.Format,!0);break;case"BBBBB":de=Vt(ke.DayPeriods,ht.Narrow,st.Format,!0);break;case"h":de=Tt(tt.Hours,1,-12);break;case"hh":de=Tt(tt.Hours,2,-12);break;case"H":de=Tt(tt.Hours,1);break;case"HH":de=Tt(tt.Hours,2);break;case"m":de=Tt(tt.Minutes,1);break;case"mm":de=Tt(tt.Minutes,2);break;case"s":de=Tt(tt.Seconds,1);break;case"ss":de=Tt(tt.Seconds,2);break;case"S":de=Tt(tt.FractionalSeconds,1);break;case"SS":de=Tt(tt.FractionalSeconds,2);break;case"SSS":de=Tt(tt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":de=Pn(Yn.Short);break;case"ZZZZZ":de=Pn(Yn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":de=Pn(Yn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":de=Pn(Yn.Long);break;default:return null}return Bt[$]=de,de}(Hr);Li+=xi?xi(nt,q,Yr):"''"===Hr?"'":Hr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Li}function k($,de,q){const _e=new Date(0);return _e.setFullYear($,de,q),_e.setHours(0,0,0),_e}function j($,de){const q=function ln($){return(0,i.H5H)($)[i.KH2.LocaleId]}($);if(Kt[q]??={},Kt[q][de])return Kt[q][de];let _e="";switch(de){case"shortDate":_e=Fe($,vt.Short);break;case"mediumDate":_e=Fe($,vt.Medium);break;case"longDate":_e=Fe($,vt.Long);break;case"fullDate":_e=Fe($,vt.Full);break;case"shortTime":_e=Ft($,vt.Short);break;case"mediumTime":_e=Ft($,vt.Medium);break;case"longTime":_e=Ft($,vt.Long);break;case"fullTime":_e=Ft($,vt.Full);break;case"short":const nt=j($,"shortTime"),_n=j($,"shortDate");_e=De(Ke($,vt.Short),[nt,_n]);break;case"medium":const On=j($,"mediumTime"),Cr=j($,"mediumDate");_e=De(Ke($,vt.Medium),[On,Cr]);break;case"long":const Yr=j($,"longTime"),Li=j($,"longDate");_e=De(Ke($,vt.Long),[Yr,Li]);break;case"full":const Hr=j($,"fullTime"),xi=j($,"fullDate");_e=De(Ke($,vt.Full),[Hr,xi])}return _e&&(Kt[q][de]=_e),_e}function De($,de){return de&&($=$.replace(/\{([^}]+)}/g,function(q,_e){return null!=de&&_e in de?de[_e]:q})),$}function it($,de,q="-",_e,nt){let _n="";($<0||nt&&$<=0)&&(nt?$=1-$:($=-$,_n=q));let On=String($);for(;On.length0||Cr>-q)&&(Cr+=q),$===tt.Hours)0===Cr&&-12===q&&(Cr=12);else if($===tt.FractionalSeconds)return function ot($,de){return it($,3).substring(0,de)}(Cr,de);const Yr=dt(On,5);return it(Cr,de,Yr,_e,nt)}}function Vt($,de,q=st.Format,_e=!1){return function(nt,_n){return function dn($,de,q,_e,nt,_n){switch(q){case ke.Months:return function bn($,de,q){const _e=(0,i.H5H)($),_n=Qt([_e[i.KH2.MonthsFormat],_e[i.KH2.MonthsStandalone]],de);return Qt(_n,q)}(de,nt,_e)[$.getMonth()];case ke.Days:return function $n($,de,q){const _e=(0,i.H5H)($),_n=Qt([_e[i.KH2.DaysFormat],_e[i.KH2.DaysStandalone]],de);return Qt(_n,q)}(de,nt,_e)[$.getDay()];case ke.DayPeriods:const On=$.getHours(),Cr=$.getMinutes();if(_n){const Li=function fn($){const de=(0,i.H5H)($);return Jt(de),(de[i.KH2.ExtraData][2]||[]).map(_e=>"string"==typeof _e?an(_e):[an(_e[0]),an(_e[1])])}(de),Hr=function Gn($,de,q){const _e=(0,i.H5H)($);Jt(_e);const _n=Qt([_e[i.KH2.ExtraData][0],_e[i.KH2.ExtraData][1]],de)||[];return Qt(_n,q)||[]}(de,nt,_e),xi=Li.findIndex(Qr=>{if(Array.isArray(Qr)){const[di,Fo]=Qr,Wo=On>=di.hours&&Cr>=di.minutes,hs=On0?Math.floor(nt/60):Math.ceil(nt/60);switch($){case Yn.Short:return(nt>=0?"+":"")+it(On,2,_n)+it(Math.abs(nt%60),2,_n);case Yn.ShortGMT:return"GMT"+(nt>=0?"+":"")+it(On,1,_n);case Yn.Long:return"GMT"+(nt>=0?"+":"")+it(On,2,_n)+":"+it(Math.abs(nt%60),2,_n);case Yn.Extended:return 0===_e?"Z":(nt>=0?"+":"")+it(On,2,_n)+":"+it(Math.abs(nt%60),2,_n);default:throw new Error(`Unknown zone width "${$}"`)}}}const Fn=0,Bn=4;function Jr($){const de=$.getDay(),q=0===de?-3:Bn-de;return k($.getFullYear(),$.getMonth(),$.getDate()+q)}function Xr($,de=!1){return function(q,_e){let nt;if(de){const _n=new Date(q.getFullYear(),q.getMonth(),1).getDay()-1,On=q.getDate();nt=1+Math.floor((On+_n)/7)}else{const _n=Jr(q),On=function cr($){const de=k($,Fn,1).getDay();return k($,0,1+(de<=Bn?Bn:Bn+7)-de)}(_n.getFullYear()),Cr=_n.getTime()-On.getTime();nt=1+Math.round(Cr/6048e5)}return it(nt,$,dt(_e,5))}}function _t($,de=!1){return function(q,_e){return it(Jr(q).getFullYear(),$,dt(_e,5),de)}}const Bt={};function lt($,de){$=$.replace(/:/g,"");const q=Date.parse("Jan 01, 1970 00:00:00 "+$)/6e4;return isNaN(q)?de:q}function mn($){return $ instanceof Date&&!isNaN($.valueOf())}const or=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function so($){const de=parseInt($);if(isNaN(de))throw new Error("Invalid integer literal when parsing "+$);return de}function eo($,de){de=encodeURIComponent(de);for(const q of $.split(";")){const _e=q.indexOf("="),[nt,_n]=-1==_e?[q,""]:[q.slice(0,_e),q.slice(_e+1)];if(nt.trim()===de)return decodeURIComponent(_n)}return null}const oo=/\s+/,Bi=[];let Mo=(()=>{class ${_ngEl;_renderer;initialClasses=Bi;rawClass;stateMap=new Map;constructor(q,_e){this._ngEl=q,this._renderer=_e}set klass(q){this.initialClasses=null!=q?q.trim().split(oo):Bi}set ngClass(q){this.rawClass="string"==typeof q?q.trim().split(oo):q}ngDoCheck(){for(const _e of this.initialClasses)this._updateState(_e,!0);const q=this.rawClass;if(Array.isArray(q)||q instanceof Set)for(const _e of q)this._updateState(_e,!0);else if(null!=q)for(const _e of Object.keys(q))this._updateState(_e,!!q[_e]);this._applyStateDiff()}_updateState(q,_e){const nt=this.stateMap.get(q);void 0!==nt?(nt.enabled!==_e&&(nt.changed=!0,nt.enabled=_e),nt.touched=!0):this.stateMap.set(q,{enabled:_e,changed:!0,touched:!0})}_applyStateDiff(){for(const q of this.stateMap){const _e=q[0],nt=q[1];nt.changed?(this._toggleClass(_e,nt.enabled),nt.changed=!1):nt.touched||(nt.enabled&&this._toggleClass(_e,!1),this.stateMap.delete(_e)),nt.touched=!1}}_toggleClass(q,_e){(q=q.trim()).length>0&&q.split(oo).forEach(nt=>{_e?this._renderer.addClass(this._ngEl.nativeElement,nt):this._renderer.removeClass(this._ngEl.nativeElement,nt)})}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.aKT),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:$,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return $})();class Et{$implicit;ngForOf;index;count;constructor(de,q,_e,nt){this.$implicit=de,this.ngForOf=q,this.index=_e,this.count=nt}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 ve=(()=>{class ${_viewContainer;_template;_differs;set ngForOf(q){this._ngForOf=q,this._ngForOfDirty=!0}set ngForTrackBy(q){this._trackByFn=q}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(q,_e,nt){this._viewContainer=q,this._template=_e,this._differs=nt}set ngForTemplate(q){q&&(this._template=q)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const q=this._ngForOf;!this._differ&&q&&(this._differ=this._differs.find(q).create(this.ngForTrackBy))}if(this._differ){const q=this._differ.diff(this._ngForOf);q&&this._applyChanges(q)}}_applyChanges(q){const _e=this._viewContainer;q.forEachOperation((nt,_n,On)=>{if(null==nt.previousIndex)_e.createEmbeddedView(this._template,new Et(nt.item,this._ngForOf,-1,-1),null===On?void 0:On);else if(null==On)_e.remove(null===_n?void 0:_n);else if(null!==_n){const Cr=_e.get(_n);_e.move(Cr,On),et(Cr,nt)}});for(let nt=0,_n=_e.length;nt<_n;nt++){const Cr=_e.get(nt).context;Cr.index=nt,Cr.count=_n,Cr.ngForOf=this._ngForOf}q.forEachIdentityChange(nt=>{et(_e.get(nt.currentIndex),nt)})}static ngTemplateContextGuard(q,_e){return!0}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.c1b),i.rXU(i.C4Q),i.rXU(i._q3))};static \u0275dir=i.FsC({type:$,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return $})();function et($,de){$.context.$implicit=de.item}let pt=(()=>{class ${_viewContainer;_context=new $t;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(q,_e){this._viewContainer=q,this._thenTemplateRef=_e}set ngIf(q){this._context.$implicit=this._context.ngIf=q,this._updateView()}set ngIfThen(q){Mt("ngIfThen",q),this._thenTemplateRef=q,this._thenViewRef=null,this._updateView()}set ngIfElse(q){Mt("ngIfElse",q),this._elseTemplateRef=q,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(q,_e){return!0}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.c1b),i.rXU(i.C4Q))};static \u0275dir=i.FsC({type:$,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return $})();class $t{$implicit=null;ngIf=null}function Mt($,de){if(de&&!de.createEmbeddedView)throw new Error(`${$} must be a TemplateRef, but received '${(0,i.Tbb)(de)}'.`)}let mr=(()=>{class ${_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(q,_e,nt){this._ngEl=q,this._differs=_e,this._renderer=nt}set ngStyle(q){this._ngStyle=q,!this._differ&&q&&(this._differ=this._differs.find(q).create())}ngDoCheck(){if(this._differ){const q=this._differ.diff(this._ngStyle);q&&this._applyChanges(q)}}_setStyle(q,_e){const[nt,_n]=q.split("."),On=-1===nt.indexOf("-")?void 0:i.czy.DashCase;null!=_e?this._renderer.setStyle(this._ngEl.nativeElement,nt,_n?`${_e}${_n}`:_e,On):this._renderer.removeStyle(this._ngEl.nativeElement,nt,On)}_applyChanges(q){q.forEachRemovedItem(_e=>this._setStyle(_e.key,null)),q.forEachAddedItem(_e=>this._setStyle(_e.key,_e.currentValue)),q.forEachChangedItem(_e=>this._setStyle(_e.key,_e.currentValue))}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.aKT),i.rXU(i.MKu),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:$,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return $})(),bi=(()=>{class ${_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(q){this._viewContainerRef=q}ngOnChanges(q){if(this._shouldRecreateView(q)){const _e=this._viewContainerRef;if(this._viewRef&&_e.remove(_e.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const nt=this._createContextForwardProxy();this._viewRef=_e.createEmbeddedView(this.ngTemplateOutlet,nt,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(q){return!!q.ngTemplateOutlet||!!q.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(q,_e,nt)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,_e,nt),get:(q,_e,nt)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,_e,nt)}})}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.c1b))};static \u0275dir=i.FsC({type:$,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[i.OA$]})}return $})();function gr($,de){return new i.wOt(2100,!1)}class ai{createSubscription(de,q){return(0,i.O8t)(()=>de.subscribe({next:q,error:_e=>{throw _e}}))}dispose(de){(0,i.O8t)(()=>de.unsubscribe())}}class vo{createSubscription(de,q){return de.then(q,_e=>{throw _e})}dispose(de){}}const $r=new vo,Ki=new ai;let cs=(()=>{class ${_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(q){this._ref=q}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(q){if(!this._obj){if(q)try{this.markForCheckOnValueUpdate=!1,this._subscribe(q)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return q!==this._obj?(this._dispose(),this.transform(q)):this._latestValue}_subscribe(q){this._obj=q,this._strategy=this._selectStrategy(q),this._subscription=this._strategy.createSubscription(q,_e=>this._updateLatestValue(q,_e))}_selectStrategy(q){if((0,i.jNT)(q))return $r;if((0,i.zjR)(q))return Ki;throw gr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(q,_e){q===this._obj&&(this._latestValue=_e,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.gRc,16))};static \u0275pipe=i.EJ8({name:"async",type:$,pure:!1})}return $})();const ia=/(?:[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 Sr=(()=>{class ${transform(q){if(null==q)return null;if("string"!=typeof q)throw gr();return q.replace(ia,_e=>_e[0].toUpperCase()+_e.slice(1).toLowerCase())}static \u0275fac=function(_e){return new(_e||$)};static \u0275pipe=i.EJ8({name:"titlecase",type:$,pure:!0})}return $})();const wo=new i.nKC(""),Ls=new i.nKC("");let Ps=(()=>{class ${locale;defaultTimezone;defaultOptions;constructor(q,_e,nt){this.locale=q,this.defaultTimezone=_e,this.defaultOptions=nt}transform(q,_e,nt,_n){if(null==q||""===q||q!=q)return null;try{return B(q,_e??this.defaultOptions?.dateFormat??"mediumDate",_n||this.locale,nt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(On){throw gr()}}static \u0275fac=function(_e){return new(_e||$)(i.rXU(i.xe9,16),i.rXU(wo,24),i.rXU(Ls,24))};static \u0275pipe=i.EJ8({name:"date",type:$,pure:!0})}return $})(),rs=(()=>{class ${_locale;constructor(q){this._locale=q}transform(q,_e,nt){if(!function Wi($){return!(null==$||""===$||$!=$)}(q))return null;nt||=this._locale;try{return function uo($,de,q){return function Wt($,de,q,_e,nt,_n,On=!1){let Cr="",Yr=!1;if(isFinite($)){let Li=function oi($){let _e,nt,_n,On,Cr,de=Math.abs($)+"",q=0;for((nt=de.indexOf("."))>-1&&(de=de.replace(".","")),(_n=de.search(/e/i))>0?(nt<0&&(nt=_n),nt+=+de.slice(_n+1),de=de.substring(0,_n)):nt<0&&(nt=de.length),_n=0;"0"===de.charAt(_n);_n++);if(_n===(Cr=de.length))_e=[0],nt=1;else{for(Cr--;"0"===de.charAt(Cr);)Cr--;for(nt-=_n,_e=[],On=0;_n<=Cr;_n++,On++)_e[On]=Number(de.charAt(_n))}return nt>22&&(_e=_e.splice(0,21),q=nt-1,nt=1),{digits:_e,exponent:q,integerLen:nt}}($);On&&(Li=function Uo($){if(0===$.digits[0])return $;const de=$.digits.length-$.integerLen;return $.exponent?$.exponent+=2:(0===de?$.digits.push(0,0):1===de&&$.digits.push(0),$.integerLen+=2),$}(Li));let Hr=de.minInt,xi=de.minFrac,Qr=de.maxFrac;if(_n){const Rs=_n.match(or);if(null===Rs)throw new Error(`${_n} is not a valid digit info`);const Al=Rs[1],Ca=Rs[3],Zs=Rs[5];null!=Al&&(Hr=so(Al)),null!=Ca&&(xi=so(Ca)),null!=Zs?Qr=so(Zs):null!=Ca&&xi>Qr&&(Qr=xi)}!function ts($,de,q){if(de>q)throw new Error(`The minimum number of digits after fraction (${de}) is higher than the maximum (${q}).`);let _e=$.digits,nt=_e.length-$.integerLen;const _n=Math.min(Math.max(de,nt),q);let On=_n+$.integerLen,Cr=_e[On];if(On>0){_e.splice(Math.max($.integerLen,On));for(let xi=On;xi<_e.length;xi++)_e[xi]=0}else{nt=Math.max(0,nt),$.integerLen=1,_e.length=Math.max(1,On=_n+1),_e[0]=0;for(let xi=1;xi=5)if(On-1<0){for(let xi=0;xi>On;xi--)_e.unshift(0),$.integerLen++;_e.unshift(1),$.integerLen++}else _e[On-1]++;for(;nt=Li?Fo.pop():Yr=!1),Qr>=10?1:0},0);Hr&&(_e.unshift(Hr),$.integerLen++)}(Li,xi,Qr);let di=Li.digits,Fo=Li.integerLen;const Wo=Li.exponent;let hs=[];for(Yr=di.every(Rs=>!Rs);Fo0?hs=di.splice(Fo,di.length):(hs=di,di=[0]);const jo=[];for(di.length>=de.lgSize&&jo.unshift(di.splice(-de.lgSize,di.length).join(""));di.length>de.gSize;)jo.unshift(di.splice(-de.gSize,di.length).join(""));di.length&&jo.unshift(di.join("")),Cr=jo.join(dt(q,_e)),hs.length&&(Cr+=dt(q,nt)+hs.join("")),Wo&&(Cr+=dt(q,6)+"+"+Wo)}else Cr=dt(q,9);return Cr=$<0&&!Yr?de.negPre+Cr+de.negSuf:de.posPre+Cr+de.posSuf,Cr}($,function Oi($,de="-"){const q={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},_e=$.split(";"),nt=_e[0],_n=_e[1],On=-1!==nt.indexOf(".")?nt.split("."):[nt.substring(0,nt.lastIndexOf("0")+1),nt.substring(nt.lastIndexOf("0")+1)],Cr=On[0],Yr=On[1]||"";q.posPre=Cr.substring(0,Cr.indexOf("#"));for(let Hr=0;Hr{class ${static \u0275fac=function(_e){return new(_e||$)};static \u0275mod=i.$C({type:$});static \u0275inj=i.G2t({})}return $})();const Eo="browser",os="server";function ks($){return $===Eo}function Bs($){return $===os}let Yo=(()=>{class ${static \u0275prov=(0,i.jDH)({token:$,providedIn:"root",factory:()=>ks((0,i.WQX)(i.Agw))?new Ti((0,i.WQX)(S),window):new yl})}return $})();class Ti{document;window;offset=()=>[0,0];constructor(de,q){this.document=de,this.window=q}setOffset(de){this.offset=Array.isArray(de)?()=>de:de}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(de){this.window.scrollTo(de[0],de[1])}scrollToAnchor(de){const q=function sa($,de){const q=$.getElementById(de)||$.getElementsByName(de)[0];if(q)return q;if("function"==typeof $.createTreeWalker&&$.body&&"function"==typeof $.body.attachShadow){const _e=$.createTreeWalker($.body,NodeFilter.SHOW_ELEMENT);let nt=_e.currentNode;for(;nt;){const _n=nt.shadowRoot;if(_n){const On=_n.getElementById(de)||_n.querySelector(`[name="${de}"]`);if(On)return On}nt=_e.nextNode()}}return null}(this.document,de);q&&(this.scrollToElement(q),q.focus())}setHistoryScrollRestoration(de){this.window.history.scrollRestoration=de}scrollToElement(de){const q=de.getBoundingClientRect(),_e=q.left+this.window.pageXOffset,nt=q.top+this.window.pageYOffset,_n=this.offset();this.window.scrollTo(_e-_n[0],nt-_n[1])}}class yl{setOffset(de){}getScrollPosition(){return[0,0]}scrollToPosition(de){}scrollToAnchor(de){}setHistoryScrollRestoration(de){}}class Qo{}},1626:(o,s,r)=>{"use strict";r.d(s,{$R:()=>Pe,Nl:()=>Ce,Qq:()=>Ft,b$:()=>kt,cS:()=>$n,yz:()=>bn});var i=r(467),a=r(4438),c=r(7673),y=r(1985),w=r(6648),C=r(274),T=r(5964),S=r(6354),A=r(980),I=r(5558),N=r(177);class G{}class Z{}class ne{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(ct){ct?"string"==typeof ct?this.lazyInit=()=>{this.headers=new Map,ct.split("\n").forEach(Et=>{const ve=Et.indexOf(":");if(ve>0){const et=Et.slice(0,ve),Oe=Et.slice(ve+1).trim();this.addHeaderEntry(et,Oe)}})}:typeof Headers<"u"&&ct instanceof Headers?(this.headers=new Map,ct.forEach((Et,ve)=>{this.addHeaderEntry(ve,Et)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(ct).forEach(([Et,ve])=>{this.setHeaderEntries(Et,ve)})}:this.headers=new Map}has(ct){return this.init(),this.headers.has(ct.toLowerCase())}get(ct){this.init();const Et=this.headers.get(ct.toLowerCase());return Et&&Et.length>0?Et[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ct){return this.init(),this.headers.get(ct.toLowerCase())||null}append(ct,Et){return this.clone({name:ct,value:Et,op:"a"})}set(ct,Et){return this.clone({name:ct,value:Et,op:"s"})}delete(ct,Et){return this.clone({name:ct,value:Et,op:"d"})}maybeSetNormalizedName(ct,Et){this.normalizedNames.has(Et)||this.normalizedNames.set(Et,ct)}init(){this.lazyInit&&(this.lazyInit instanceof ne?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ct=>this.applyUpdate(ct)),this.lazyUpdate=null))}copyFrom(ct){ct.init(),Array.from(ct.headers.keys()).forEach(Et=>{this.headers.set(Et,ct.headers.get(Et)),this.normalizedNames.set(Et,ct.normalizedNames.get(Et))})}clone(ct){const Et=new ne;return Et.lazyInit=this.lazyInit&&this.lazyInit instanceof ne?this.lazyInit:this,Et.lazyUpdate=(this.lazyUpdate||[]).concat([ct]),Et}applyUpdate(ct){const Et=ct.name.toLowerCase();switch(ct.op){case"a":case"s":let ve=ct.value;if("string"==typeof ve&&(ve=[ve]),0===ve.length)return;this.maybeSetNormalizedName(ct.name,Et);const et=("a"===ct.op?this.headers.get(Et):void 0)||[];et.push(...ve),this.headers.set(Et,et);break;case"d":const Oe=ct.value;if(Oe){let pt=this.headers.get(Et);if(!pt)return;pt=pt.filter($t=>-1===Oe.indexOf($t)),0===pt.length?(this.headers.delete(Et),this.normalizedNames.delete(Et)):this.headers.set(Et,pt)}else this.headers.delete(Et),this.normalizedNames.delete(Et)}}addHeaderEntry(ct,Et){const ve=ct.toLowerCase();this.maybeSetNormalizedName(ct,ve),this.headers.has(ve)?this.headers.get(ve).push(Et):this.headers.set(ve,[Et])}setHeaderEntries(ct,Et){const ve=(Array.isArray(Et)?Et:[Et]).map(Oe=>Oe.toString()),et=ct.toLowerCase();this.headers.set(et,ve),this.maybeSetNormalizedName(ct,et)}forEach(ct){this.init(),Array.from(this.normalizedNames.keys()).forEach(Et=>ct(this.normalizedNames.get(Et),this.headers.get(Et)))}}class me{encodeKey(ct){return Re(ct)}encodeValue(ct){return Re(ct)}decodeKey(ct){return decodeURIComponent(ct)}decodeValue(ct){return decodeURIComponent(ct)}}const Te=/%(\d[a-f0-9])/gi,xe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Re(Je){return encodeURIComponent(Je).replace(Te,(ct,Et)=>xe[Et]??ct)}function Me(Je){return`${Je}`}class Ce{map;encoder;updates=null;cloneFrom=null;constructor(ct={}){if(this.encoder=ct.encoder||new me,ct.fromString){if(ct.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function pe(Je,ct){const Et=new Map;return Je.length>0&&Je.replace(/^\?/,"").split("&").forEach(et=>{const Oe=et.indexOf("="),[pt,$t]=-1==Oe?[ct.decodeKey(et),""]:[ct.decodeKey(et.slice(0,Oe)),ct.decodeValue(et.slice(Oe+1))],Mt=Et.get(pt)||[];Mt.push($t),Et.set(pt,Mt)}),Et}(ct.fromString,this.encoder)}else ct.fromObject?(this.map=new Map,Object.keys(ct.fromObject).forEach(Et=>{const ve=ct.fromObject[Et],et=Array.isArray(ve)?ve.map(Me):[Me(ve)];this.map.set(Et,et)})):this.map=null}has(ct){return this.init(),this.map.has(ct)}get(ct){this.init();const Et=this.map.get(ct);return Et?Et[0]:null}getAll(ct){return this.init(),this.map.get(ct)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ct,Et){return this.clone({param:ct,value:Et,op:"a"})}appendAll(ct){const Et=[];return Object.keys(ct).forEach(ve=>{const et=ct[ve];Array.isArray(et)?et.forEach(Oe=>{Et.push({param:ve,value:Oe,op:"a"})}):Et.push({param:ve,value:et,op:"a"})}),this.clone(Et)}set(ct,Et){return this.clone({param:ct,value:Et,op:"s"})}delete(ct,Et){return this.clone({param:ct,value:Et,op:"d"})}toString(){return this.init(),this.keys().map(ct=>{const Et=this.encoder.encodeKey(ct);return this.map.get(ct).map(ve=>Et+"="+this.encoder.encodeValue(ve)).join("&")}).filter(ct=>""!==ct).join("&")}clone(ct){const Et=new Ce({encoder:this.encoder});return Et.cloneFrom=this.cloneFrom||this,Et.updates=(this.updates||[]).concat(ct),Et}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ct=>this.map.set(ct,this.cloneFrom.map.get(ct))),this.updates.forEach(ct=>{switch(ct.op){case"a":case"s":const Et=("a"===ct.op?this.map.get(ct.param):void 0)||[];Et.push(Me(ct.value)),this.map.set(ct.param,Et);break;case"d":if(void 0===ct.value){this.map.delete(ct.param);break}{let ve=this.map.get(ct.param)||[];const et=ve.indexOf(Me(ct.value));-1!==et&&ve.splice(et,1),ve.length>0?this.map.set(ct.param,ve):this.map.delete(ct.param)}}}),this.cloneFrom=this.updates=null)}}class ae{map=new Map;set(ct,Et){return this.map.set(ct,Et),this}get(ct){return this.map.has(ct)||this.map.set(ct,ct.defaultValue()),this.map.get(ct)}delete(ct){return this.map.delete(ct),this}has(ct){return this.map.has(ct)}keys(){return this.map.keys()}}function $e(Je){return typeof ArrayBuffer<"u"&&Je instanceof ArrayBuffer}function st(Je){return typeof Blob<"u"&&Je instanceof Blob}function ht(Je){return typeof FormData<"u"&&Je instanceof FormData}class at{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(ct,Et,ve,et){let Oe;if(this.url=Et,this.method=ct.toUpperCase(),function Ie(Je){switch(Je){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||et?(this.body=void 0!==ve?ve:null,Oe=et):Oe=ve,Oe&&(this.reportProgress=!!Oe.reportProgress,this.withCredentials=!!Oe.withCredentials,Oe.responseType&&(this.responseType=Oe.responseType),Oe.headers&&(this.headers=Oe.headers),Oe.context&&(this.context=Oe.context),Oe.params&&(this.params=Oe.params),this.transferCache=Oe.transferCache),this.headers??=new ne,this.context??=new ae,this.params){const pt=this.params.toString();if(0===pt.length)this.urlWithParams=Et;else{const $t=Et.indexOf("?");this.urlWithParams=Et+(-1===$t?"?":$tkn.set(Un,ct.setHeaders[Un]),un)),ct.setParams&&(Cn=Object.keys(ct.setParams).reduce((kn,Un)=>kn.set(Un,ct.setParams[Un]),Cn)),new at(Et,ve,pt,{params:Cn,headers:un,context:Sn,reportProgress:Mt,responseType:et,withCredentials:$t,transferCache:Oe})}}var Xt=function(Je){return Je[Je.Sent=0]="Sent",Je[Je.UploadProgress=1]="UploadProgress",Je[Je.ResponseHeader=2]="ResponseHeader",Je[Je.DownloadProgress=3]="DownloadProgress",Je[Je.Response=4]="Response",Je[Je.User=5]="User",Je}(Xt||{});class ln{headers;status;statusText;url;ok;type;constructor(ct,Et=200,ve="OK"){this.headers=ct.headers||new ne,this.status=void 0!==ct.status?ct.status:Et,this.statusText=ct.statusText||ve,this.url=ct.url||null,this.ok=this.status>=200&&this.status<300}}class yn extends ln{constructor(ct={}){super(ct)}type=Xt.ResponseHeader;clone(ct={}){return new yn({headers:ct.headers||this.headers,status:void 0!==ct.status?ct.status:this.status,statusText:ct.statusText||this.statusText,url:ct.url||this.url||void 0})}}class $n extends ln{body;constructor(ct={}){super(ct),this.body=void 0!==ct.body?ct.body:null}type=Xt.Response;clone(ct={}){return new $n({body:void 0!==ct.body?ct.body:this.body,headers:ct.headers||this.headers,status:void 0!==ct.status?ct.status:this.status,statusText:ct.statusText||this.statusText,url:ct.url||this.url||void 0})}}class bn extends ln{name="HttpErrorResponse";message;error;ok=!1;constructor(ct){super(ct,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ct.url||"(unknown url)"}`:`Http failure response for ${ct.url||"(unknown url)"}: ${ct.status} ${ct.statusText}`,this.error=ct.error||null}}function Fe(Je,ct){return{body:ct,headers:Je.headers,context:Je.context,observe:Je.observe,params:Je.params,reportProgress:Je.reportProgress,responseType:Je.responseType,withCredentials:Je.withCredentials,transferCache:Je.transferCache}}let Ft=(()=>{class Je{handler;constructor(Et){this.handler=Et}request(Et,ve,et={}){let Oe;if(Et instanceof at)Oe=Et;else{let Mt,un;Mt=et.headers instanceof ne?et.headers:new ne(et.headers),et.params&&(un=et.params instanceof Ce?et.params:new Ce({fromObject:et.params})),Oe=new at(Et,ve,void 0!==et.body?et.body:null,{headers:Mt,context:et.context,params:un,reportProgress:et.reportProgress,responseType:et.responseType||"json",withCredentials:et.withCredentials,transferCache:et.transferCache})}const pt=(0,c.of)(Oe).pipe((0,C.H)(Mt=>this.handler.handle(Mt)));if(Et instanceof at||"events"===et.observe)return pt;const $t=pt.pipe((0,T.p)(Mt=>Mt instanceof $n));switch(et.observe||"body"){case"body":switch(Oe.responseType){case"arraybuffer":return $t.pipe((0,S.T)(Mt=>{if(null!==Mt.body&&!(Mt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Mt.body}));case"blob":return $t.pipe((0,S.T)(Mt=>{if(null!==Mt.body&&!(Mt.body instanceof Blob))throw new Error("Response is not a Blob.");return Mt.body}));case"text":return $t.pipe((0,S.T)(Mt=>{if(null!==Mt.body&&"string"!=typeof Mt.body)throw new Error("Response is not a string.");return Mt.body}));default:return $t.pipe((0,S.T)(Mt=>Mt.body))}case"response":return $t;default:throw new Error(`Unreachable: unhandled observe type ${et.observe}}`)}}delete(Et,ve={}){return this.request("DELETE",Et,ve)}get(Et,ve={}){return this.request("GET",Et,ve)}head(Et,ve={}){return this.request("HEAD",Et,ve)}jsonp(Et,ve){return this.request("JSONP",Et,{params:(new Ce).append(ve,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Et,ve={}){return this.request("OPTIONS",Et,ve)}patch(Et,ve,et={}){return this.request("PATCH",Et,Fe(et,ve))}post(Et,ve,et={}){return this.request("POST",Et,Fe(et,ve))}put(Et,ve,et={}){return this.request("PUT",Et,Fe(et,ve))}static \u0275fac=function(ve){return new(ve||Je)(a.KVO(G))};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();const Ke=/^\)\]\}',?\n/;function Ge(Je){if(Je.url)return Je.url;const ct="X-Request-URL".toLocaleLowerCase();return Je.headers.get(ct)}let He=(()=>{class Je{fetchImpl=(0,a.WQX)(mt,{optional:!0})?.fetch??((...Et)=>globalThis.fetch(...Et));ngZone=(0,a.WQX)(a.SKi);handle(Et){return new y.c(ve=>{const et=new AbortController;return this.doRequest(Et,et.signal,ve).then(se,Oe=>ve.error(new bn({error:Oe}))),()=>et.abort()})}doRequest(Et,ve,et){var Oe=this;return(0,i.A)(function*(){const pt=Oe.createRequestInit(Et);let $t;try{const Jn=Oe.ngZone.runOutsideAngular(()=>Oe.fetchImpl(Et.urlWithParams,{signal:ve,...pt}));(function Ze(Je){Je.then(se,se)})(Jn),et.next({type:Xt.Sent}),$t=yield Jn}catch(Jn){return void et.error(new bn({error:Jn,status:Jn.status??0,statusText:Jn.statusText,url:Et.urlWithParams,headers:Jn.headers}))}const Mt=new ne($t.headers),un=$t.statusText,Cn=Ge($t)??Et.urlWithParams;let Sn=$t.status,kn=null;if(Et.reportProgress&&et.next(new yn({headers:Mt,status:Sn,statusText:un,url:Cn})),$t.body){const Jn=$t.headers.get("content-length"),sr=[],kr=$t.body.getReader();let bi,si,mr=0;const gr=typeof Zone<"u"&&Zone.current;yield Oe.ngZone.runOutsideAngular((0,i.A)(function*(){for(;;){const{done:vo,value:$r}=yield kr.read();if(vo)break;if(sr.push($r),mr+=$r.length,Et.reportProgress){si="text"===Et.responseType?(si??"")+(bi??=new TextDecoder).decode($r,{stream:!0}):void 0;const Ki=()=>et.next({type:Xt.DownloadProgress,total:Jn?+Jn:void 0,loaded:mr,partialText:si});gr?gr.run(Ki):Ki()}}}));const ai=Oe.concatChunks(sr,mr);try{const vo=$t.headers.get("Content-Type")??"";kn=Oe.parseBody(Et,ai,vo)}catch(vo){return void et.error(new bn({error:vo,headers:new ne($t.headers),status:$t.status,statusText:$t.statusText,url:Ge($t)??Et.urlWithParams}))}}0===Sn&&(Sn=kn?200:0),Sn>=200&&Sn<300?(et.next(new $n({body:kn,headers:Mt,status:Sn,statusText:un,url:Cn})),et.complete()):et.error(new bn({error:kn,headers:Mt,status:Sn,statusText:un,url:Cn}))})()}parseBody(Et,ve,et){switch(Et.responseType){case"json":const Oe=(new TextDecoder).decode(ve).replace(Ke,"");return""===Oe?null:JSON.parse(Oe);case"text":return(new TextDecoder).decode(ve);case"blob":return new Blob([ve],{type:et});case"arraybuffer":return ve.buffer}}createRequestInit(Et){const ve={},et=Et.withCredentials?"include":void 0;if(Et.headers.forEach((Oe,pt)=>ve[Oe]=pt.join(",")),Et.headers.has("Accept")||(ve.Accept="application/json, text/plain, */*"),!Et.headers.has("Content-Type")){const Oe=Et.detectContentTypeHeader();null!==Oe&&(ve["Content-Type"]=Oe)}return{body:Et.serializeBody(),method:Et.method,headers:ve,credentials:et}}concatChunks(Et,ve){const et=new Uint8Array(ve);let Oe=0;for(const pt of Et)et.set(pt,Oe),Oe+=pt.length;return et}static \u0275fac=function(ve){return new(ve||Je)};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();class mt{}function se(){}function Rt(Je,ct){return ct(Je)}const Nt=new a.nKC(""),Qt=new a.nKC(""),an=new a.nKC("",{providedIn:"root",factory:()=>!0});let At=(()=>{class Je extends G{backend;injector;chain=null;pendingTasks=(0,a.WQX)(a.TgB);contributeToStability=(0,a.WQX)(an);constructor(Et,ve){super(),this.backend=Et,this.injector=ve}handle(Et){if(null===this.chain){const ve=Array.from(new Set([...this.injector.get(Nt),...this.injector.get(Qt,[])]));this.chain=ve.reduceRight((et,Oe)=>function fn(Je,ct,Et){return(ve,et)=>(0,a.N4e)(Et,()=>ct(ve,Oe=>Je(Oe,et)))}(et,Oe,this.injector),Rt)}if(this.contributeToStability){const ve=this.pendingTasks.add();return this.chain(Et,et=>this.backend.handle(et)).pipe((0,A.j)(()=>this.pendingTasks.remove(ve)))}return this.chain(Et,ve=>this.backend.handle(ve))}static \u0275fac=function(ve){return new(ve||Je)(a.KVO(Z),a.KVO(a.uvJ))};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();const Tt=/^\)\]\}',?\n/;let Vt=(()=>{class Je{xhrFactory;constructor(Et){this.xhrFactory=Et}handle(Et){if("JSONP"===Et.method)throw new a.wOt(-2800,!1);const ve=this.xhrFactory;return(ve.\u0275loadImpl?(0,w.H)(ve.\u0275loadImpl()):(0,c.of)(null)).pipe((0,I.n)(()=>new y.c(Oe=>{const pt=ve.build();if(pt.open(Et.method,Et.urlWithParams),Et.withCredentials&&(pt.withCredentials=!0),Et.headers.forEach((sr,kr)=>pt.setRequestHeader(sr,kr.join(","))),Et.headers.has("Accept")||pt.setRequestHeader("Accept","application/json, text/plain, */*"),!Et.headers.has("Content-Type")){const sr=Et.detectContentTypeHeader();null!==sr&&pt.setRequestHeader("Content-Type",sr)}if(Et.responseType){const sr=Et.responseType.toLowerCase();pt.responseType="json"!==sr?sr:"text"}const $t=Et.serializeBody();let Mt=null;const un=()=>{if(null!==Mt)return Mt;const sr=pt.statusText||"OK",kr=new ne(pt.getAllResponseHeaders()),mr=function In(Je){return"responseURL"in Je&&Je.responseURL?Je.responseURL:/^X-Request-URL:/m.test(Je.getAllResponseHeaders())?Je.getResponseHeader("X-Request-URL"):null}(pt)||Et.url;return Mt=new yn({headers:kr,status:pt.status,statusText:sr,url:mr}),Mt},Cn=()=>{let{headers:sr,status:kr,statusText:mr,url:bi}=un(),si=null;204!==kr&&(si=typeof pt.response>"u"?pt.responseText:pt.response),0===kr&&(kr=si?200:0);let gr=kr>=200&&kr<300;if("json"===Et.responseType&&"string"==typeof si){const ai=si;si=si.replace(Tt,"");try{si=""!==si?JSON.parse(si):null}catch(vo){si=ai,gr&&(gr=!1,si={error:vo,text:si})}}gr?(Oe.next(new $n({body:si,headers:sr,status:kr,statusText:mr,url:bi||void 0})),Oe.complete()):Oe.error(new bn({error:si,headers:sr,status:kr,statusText:mr,url:bi||void 0}))},Sn=sr=>{const{url:kr}=un(),mr=new bn({error:sr,status:pt.status||0,statusText:pt.statusText||"Unknown Error",url:kr||void 0});Oe.error(mr)};let kn=!1;const Un=sr=>{kn||(Oe.next(un()),kn=!0);let kr={type:Xt.DownloadProgress,loaded:sr.loaded};sr.lengthComputable&&(kr.total=sr.total),"text"===Et.responseType&&pt.responseText&&(kr.partialText=pt.responseText),Oe.next(kr)},Jn=sr=>{let kr={type:Xt.UploadProgress,loaded:sr.loaded};sr.lengthComputable&&(kr.total=sr.total),Oe.next(kr)};return pt.addEventListener("load",Cn),pt.addEventListener("error",Sn),pt.addEventListener("timeout",Sn),pt.addEventListener("abort",Sn),Et.reportProgress&&(pt.addEventListener("progress",Un),null!==$t&&pt.upload&&pt.upload.addEventListener("progress",Jn)),pt.send($t),Oe.next({type:Xt.Sent}),()=>{pt.removeEventListener("error",Sn),pt.removeEventListener("abort",Sn),pt.removeEventListener("load",Cn),pt.removeEventListener("timeout",Sn),Et.reportProgress&&(pt.removeEventListener("progress",Un),null!==$t&&pt.upload&&pt.upload.removeEventListener("progress",Jn)),pt.readyState!==pt.DONE&&pt.abort()}})))}static \u0275fac=function(ve){return new(ve||Je)(a.KVO(N.N0))};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();const dn=new a.nKC(""),Fn=new a.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),cr=new a.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Jr{}let Xr=(()=>{class Je{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(Et,ve,et){this.doc=Et,this.platform=ve,this.cookieName=et}getToken(){if("server"===this.platform)return null;const Et=this.doc.cookie||"";return Et!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,N._b)(Et,this.cookieName),this.lastCookieString=Et),this.lastToken}static \u0275fac=function(ve){return new(ve||Je)(a.KVO(N.qQ),a.KVO(a.Agw),a.KVO(Fn))};static \u0275prov=a.jDH({token:Je,factory:Je.\u0275fac})}return Je})();function _t(Je,ct){const Et=Je.url.toLowerCase();if(!(0,a.WQX)(dn)||"GET"===Je.method||"HEAD"===Je.method||Et.startsWith("http://")||Et.startsWith("https://"))return ct(Je);const ve=(0,a.WQX)(Jr).getToken(),et=(0,a.WQX)(cr);return null!=ve&&!Je.headers.has(et)&&(Je=Je.clone({headers:Je.headers.set(et,ve)})),ct(Je)}var Ee=function(Je){return Je[Je.Interceptors=0]="Interceptors",Je[Je.LegacyInterceptors=1]="LegacyInterceptors",Je[Je.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Je[Je.NoXsrfProtection=3]="NoXsrfProtection",Je[Je.JsonpSupport=4]="JsonpSupport",Je[Je.RequestsMadeViaParent=5]="RequestsMadeViaParent",Je[Je.Fetch=6]="Fetch",Je}(Ee||{});function Pe(...Je){const ct=[Ft,Vt,At,{provide:G,useExisting:At},{provide:Z,useFactory:()=>(0,a.WQX)(He,{optional:!0})??(0,a.WQX)(Vt)},{provide:Nt,useValue:_t,multi:!0},{provide:dn,useValue:!0},{provide:Jr,useClass:Xr}];for(const Et of Je)ct.push(...Et.\u0275providers);return(0,a.EmA)(ct)}function kt(Je){return function lt(Je,ct){return{\u0275kind:Je,\u0275providers:ct}}(Ee.Interceptors,Je.map(ct=>({provide:Nt,useValue:ct,multi:!0})))}},4438:(o,s,r)=>{"use strict";function a(e,t){return Object.is(e,t)}r.d(s,{bc$:()=>Ia,iLQ:()=>ig,sZ2:()=>Ri,hnV:()=>l0,wjH:()=>Od,o8S:()=>Pc,BIS:()=>Ga,gRc:()=>hD,Ql9:()=>Mk,Ocv:()=>Pk,Z63:()=>ur,aKT:()=>Tc,uvJ:()=>us,zcH:()=>Ac,bkB:()=>Pl,ES_:()=>_d,$GK:()=>Sr,nKC:()=>ct,zZn:()=>Ts,_q3:()=>iw,MKu:()=>ow,xe9:()=>q0,Co$:()=>z1,Vns:()=>ef,SKi:()=>Vo,Xx1:()=>sa,Agw:()=>Ma,PLl:()=>Ws,rOR:()=>Cd,sFG:()=>gS,_9s:()=>Rb,czy:()=>Jf,WPN:()=>td,kdw:()=>Qo,C4Q:()=>Hm,NYb:()=>iT,giA:()=>EE,RxE:()=>tD,c1b:()=>a_,gXe:()=>pc,mal:()=>Qu,Tzd:()=>Ig,L39:()=>UO,EWP:()=>cw,sbv:()=>WS,a0P:()=>uR,Ol2:()=>Qb,w6W:()=>JS,QZP:()=>dw,Rfq:()=>Bt,oKB:()=>Oo,WQX:()=>tr,hFB:()=>Yc,naY:()=>zk,Hps:()=>zb,QuC:()=>ho,EmA:()=>lo,Udg:()=>$O,HJs:()=>dR,N4e:()=>ja,vPA:()=>hp,O8t:()=>Ip,H3F:()=>pE,H8p:()=>qo,KH2:()=>Ap,TgB:()=>il,wOt:()=>Gt,WHO:()=>bE,e01:()=>wE,lNU:()=>En,h9k:()=>hv,$MX:()=>Gf,ZF7:()=>jd,Kcf:()=>Ty,e5t:()=>Oy,UyX:()=>Iy,cWb:()=>My,osQ:()=>ky,H5H:()=>T0,Zy3:()=>At,mq5:()=>fx,JZv:()=>Vt,TL3:()=>gO,LfX:()=>Xo,plB:()=>Xd,jNT:()=>a0,zjR:()=>xE,ngT:()=>pa,hVU:()=>rT,TL$:()=>Vi,Tbb:()=>cr,rcV:()=>qc,nM4:()=>eE,Vt3:()=>qb,GFd:()=>oE,OA$:()=>bc,Jv_:()=>xC,R7$:()=>gb,BMQ:()=>h0,HbH:()=>XE,ZvI:()=>tx,AVh:()=>y0,BUC:()=>nx,vxM:()=>sx,wni:()=>Gx,C6U:()=>Zx,VBU:()=>G1,FsC:()=>Y1,jDH:()=>oi,G2t:()=>so,$C:()=>Zb,EJ8:()=>Q1,rXU:()=>Gd,nrm:()=>C0,eu8:()=>D0,bVm:()=>C_,qex:()=>x_,k0s:()=>E_,j41:()=>w_,RV6:()=>hx,xGo:()=>vf,Mr5:()=>S0,KVO:()=>Io,kS0:()=>$u,QTQ:()=>Pm,bIt:()=>k0,lsd:()=>Qx,joV:()=>zr,qSk:()=>Pr,XpG:()=>Px,nI1:()=>PC,bMT:()=>FC,i5U:()=>BC,SdG:()=>Bx,NAR:()=>Fx,Y8G:()=>g0,FS9:()=>N0,lJ4:()=>DC,eq3:()=>SC,l_i:()=>AC,sMw:()=>TC,ziG:()=>MC,lV:()=>IC,NyB:()=>qx,mGM:()=>Yx,sdS:()=>Jx,Dyx:()=>cx,Z7z:()=>lx,Vm6:()=>ax,Njj:()=>lu,eBV:()=>Pu,npT:()=>Wh,f$h:()=>zh,B4B:()=>gm,n$t:()=>Qf,Aen:()=>tu,xc7:()=>_0,Kam:()=>O0,zvX:()=>A0,DNE:()=>t0,C5r:()=>UC,EFF:()=>cC,JRh:()=>F0,SpI:()=>M_,DH7:()=>yC,mxI:()=>U0,R50:()=>B0,GBs:()=>Xx}),r(467);let c=null,y=!1,w=1;const C=Symbol("SIGNAL");function T(e){const t=c;return c=e,t}const N={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 G(e){if(y)throw new Error("");if(null===c)return;c.consumerOnSignalRead(e);const t=c.nextProducerIndex++;$e(c),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Me(e){$e(e);for(let t=0;t0}function $e(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function st(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function ht(e){return void 0!==e.producerNode}function vt(e){const t=Object.create(yn);t.computation=e;const n=()=>{if(ne(t),G(t),t.value===ln)throw t.error;return t.value};return n[C]=t,n}const at=Symbol("UNSET"),Xt=Symbol("COMPUTING"),ln=Symbol("ERRORED"),yn={...N,value:at,dirty:!0,error:null,equal:a,producerMustRecompute:e=>e.value===at||e.value===Xt,producerRecomputeValue(e){if(e.value===Xt)throw new Error("Detected cycle in computations.");const t=e.value;e.value=Xt;const n=xe(e);let l;try{l=e.computation()}catch(p){l=ln,e.error=p}finally{Re(e,n)}t!==at&&t!==ln&&l!==ln&&e.equal(t,l)?e.value=t:(e.value=l,e.version++)}};let bn=function $n(){throw new Error};function Qe(){bn()}let ze=null;function dt(e,t){me()||Qe(),e.equal(e.value,t)||(e.value=t,function se(e){e.version++,function Z(){w++}(),be(e),ze?.()}(e))}const mt={...N,equal:a,value:void 0};const Rt=()=>{},Jt={...N,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Rt};var Gn=r(4412),Nt=r(1413),Qt=r(8359),an=r(6354);const En="https://g.co/ng/security#xss";class Gt extends Error{code;constructor(t,n){super(At(t,n)),this.code=t}}function At(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}const Kt=Symbol("InputSignalNode#UNSET"),xn={...mt,transformFn:void 0,applyValueToInputSignal(e,t){dt(e,t)}};function ke(e,t){const n=Object.create(xn);function l(){if(G(n),n.value===Kt)throw new Gt(-950,!1);return n.value}return n.value=e,n.transformFn=t?.transform,l[C]=n,l}function B(e){return{toString:e}.toString()}const j="__parameters__";function Tt(e,t,n){return B(()=>{const l=function ot(e){return function(...n){if(e){const l=e(...n);for(const p in l)this[p]=l[p]}}}(t);function p(...g){if(this instanceof p)return l.apply(this,g),this;const E=new p(...g);return O.annotation=E,O;function O(F,ie,Se){const Ve=F.hasOwnProperty(j)?F[j]:Object.defineProperty(F,j,{value:[]})[j];for(;Ve.length<=Se;)Ve.push(null);return(Ve[Se]=Ve[Se]||[]).push(E),F}}return n&&(p.prototype=Object.create(n.prototype)),p.prototype.ngMetadataName=e,p.annotationCls=p,p})}const Vt=globalThis;function Fn(e){for(let t in e)if(e[t]===Fn)return t;throw Error("Could not find renamed property on target object.")}function Bn(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function cr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(cr).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Jr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const _t=Fn({__forward_ref__:Fn});function Bt(e){return e.__forward_ref__=Bt,e.toString=function(){return cr(this())},e}function Ee(e){return lt(e)?e():e}function lt(e){return"function"==typeof e&&e.hasOwnProperty(_t)&&e.__forward_ref__===Bt}function oi(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function so(e){return{providers:e.providers||[],imports:e.imports||[]}}function bo(e){return Co(e,oo)||Co(e,Mo)}function Xo(e){return null!==bo(e)}function Co(e,t){return e.hasOwnProperty(t)?e[t]:null}function eo(e){return e&&(e.hasOwnProperty(Bi)||e.hasOwnProperty(Je))?e[Bi]:null}const oo=Fn({\u0275prov:Fn}),Bi=Fn({\u0275inj:Fn}),Mo=Fn({ngInjectableDef:Fn}),Je=Fn({ngInjectorDef:Fn});class ct{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=oi({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function kn(e){return e&&!!e.\u0275providers}const Un=Fn({\u0275cmp:Fn}),Jn=Fn({\u0275dir:Fn}),sr=Fn({\u0275pipe:Fn}),kr=Fn({\u0275mod:Fn}),mr=Fn({\u0275fac:Fn}),bi=Fn({__NG_ELEMENT_ID__:Fn}),si=Fn({__NG_ENV_ID__:Fn});function gr(e){return"string"==typeof e?e:null==e?"":String(e)}function ia(e,t){throw new Gt(-201,!1)}var Sr=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}(Sr||{});let oa;function ma(){return oa}function wo(e){const t=oa;return oa=e,t}function Ls(e,t,n){const l=bo(e);return l&&"root"==l.providedIn?void 0===l.value?l.value=l.factory():l.value:n&Sr.Optional?null:void 0!==t?t:void ia()}const Gi={},Ys="__NG_DI_FLAG__",Ni="ngTempTokenPath",ns=/\n/gm,rs="__source";let is;function Wi(e){const t=is;return is=e,t}function Es(e,t=Sr.Default){if(void 0===is)throw new Gt(-203,!1);return null===is?Ls(e,void 0,t):is.get(e,t&Sr.Optional?null:void 0,t)}function Io(e,t=Sr.Default){return(ma()||Es)(Ee(e),t)}function tr(e,t=Sr.Default){return Io(e,Eo(t))}function Eo(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function os(e){const t=[];for(let n=0;nArray.isArray(n)?Zo(n,t):t(n))}function _i(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Fa(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Y(e,t,n){let l=re(e,t);return l>=0?e[1|l]=n:(l=~l,function Xa(e,t,n,l){let p=e.length;if(p==t)e.push(n,l);else if(1===p)e.push(l,e[0]),e[0]=n;else{for(p--,e.push(e[p-1],e[p]);p>t;)e[p]=e[p-2],p--;e[t]=n,e[t+1]=l}}(e,l,t,n)),l}function je(e,t){const n=re(e,t);if(n>=0)return e[1|n]}function re(e,t){return function wt(e,t,n){let l=0,p=e.length>>n;for(;p!==l;){const g=l+(p-l>>1),E=e[g<t?p=g:l=g+1}return~(p<{n.push(E)};return Zo(t,E=>{const O=E;ya(O,g,[],l)&&(p||=[],p.push(O))}),void 0!==p&&Qa(p,g),n}function Qa(e,t){for(let n=0;n{t(g,l)})}}function ya(e,t,n,l){if(!(e=Ee(e)))return!1;let p=null,g=eo(e);const E=!g&&Dr(e);if(g||E){if(E&&!E.standalone)return!1;p=e}else{const F=e.ngModule;if(g=eo(F),!g)return!1;p=F}const O=l.has(p);if(E){if(O)return!1;if(l.add(p),E.dependencies){const F="function"==typeof E.dependencies?E.dependencies():E.dependencies;for(const ie of F)ya(ie,t,n,l)}}else{if(!g)return!1;{if(null!=g.imports&&!O){let ie;l.add(p);try{Zo(g.imports,Se=>{ya(Se,t,n,l)&&(ie||=[],ie.push(Se))})}finally{}void 0!==ie&&Qa(ie,t)}if(!O){const ie=ao(p)||(()=>new p);t({provide:p,useFactory:ie,deps:hn},p),t({provide:Gr,useValue:p,multi:!0},p),t({provide:ur,useValue:()=>Io(p),multi:!0},p)}const F=g.providers;if(null!=F&&!O){const ie=e;ce(F,Se=>{t(Se,ie)})}}}return p!==e&&void 0!==e.providers}function ce(e,t){for(let n of e)kn(n)&&(n=n.\u0275providers),Array.isArray(n)?ce(n,t):t(n)}const Q=Fn({provide:String,useValue:Fn});function Le(e){return null!==e&&"object"==typeof e&&Q in e}function ni(e){return"function"==typeof e}const qo=new ct(""),Ba={},ku={};let nc;function wl(){return void 0===nc&&(nc=new zi),nc}class us{}class Us extends us{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,l,p){super(),this.parent=n,this.source=l,this.scopes=p,rc(t,E=>this.processProvider(E)),this.records.set(hr,la(void 0,this)),p.has("environment")&&this.records.set(us,la(void 0,this));const g=this.records.get(qo);null!=g&&"string"==typeof g.value&&this.scopes.add(g.value),this.injectorDefTypes=new Set(this.get(Gr,hn,Sr.Self))}destroy(){xl(this),this._destroyed=!0;const t=T(null);try{for(const l of this._ngOnDestroyHooks)l.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const l of n)l()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),T(t)}}onDestroy(t){return xl(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){xl(this);const n=Wi(this),l=wo(void 0);try{return t()}finally{Wi(n),wo(l)}}get(t,n=Gi,l=Sr.Default){if(xl(this),t.hasOwnProperty(si))return t[si](this);l=Eo(l);const g=Wi(this),E=wo(void 0);try{if(!(l&Sr.SkipSelf)){let F=this.records.get(t);if(void 0===F){const ie=function Ou(e){return"function"==typeof e||"object"==typeof e&&e instanceof ct}(t)&&bo(t);F=ie&&this.injectableDefInScope(ie)?la(Ua(t),Ba):null,this.records.set(t,F)}if(null!=F)return this.hydrate(t,F)}return(l&Sr.Self?wl():this.parent).get(t,n=l&Sr.Optional&&n===Gi?null:n)}catch(O){if("NullInjectorError"===O.name){if((O[Ni]=O[Ni]||[]).unshift(cr(t)),g)throw O;return function va(e,t,n,l){const p=e[Ni];throw t[rs]&&p.unshift(t[rs]),e.message=function Yo(e,t,n,l=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let p=cr(t);if(Array.isArray(t))p=t.map(cr).join(" -> ");else if("object"==typeof t){let g=[];for(let E in t)if(t.hasOwnProperty(E)){let O=t[E];g.push(E+":"+("string"==typeof O?JSON.stringify(O):cr(O)))}p=`{${g.join(", ")}}`}return`${n}${l?"("+l+")":""}[${p}]: ${e.replace(ns,"\n ")}`}("\n"+e.message,p,n,l),e.ngTokenPath=p,e[Ni]=null,e}(O,t,"R3InjectorError",this.source)}throw O}finally{wo(E),Wi(g)}}resolveInjectorInitializers(){const t=T(null),n=Wi(this),l=wo(void 0);try{const g=this.get(ur,hn,Sr.Self);for(const E of g)E()}finally{Wi(n),wo(l),T(t)}}toString(){const t=[],n=this.records;for(const l of n.keys())t.push(cr(l));return`R3Injector[${t.join(", ")}]`}processProvider(t){let n=ni(t=Ee(t))?t:Ee(t&&t.provide);const l=function Za(e){return Le(e)?la(void 0,e.useValue):la(El(e),Ba)}(t);if(!ni(t)&&!0===t.multi){let p=this.records.get(n);p||(p=la(void 0,Ba,!0),p.factory=()=>os(p.multi),this.records.set(n,p)),n=t,p.multi.push(t)}this.records.set(n,l)}hydrate(t,n){const l=T(null);try{return n.value===Ba&&(n.value=ku,n.value=n.factory()),"object"==typeof n.value&&n.value&&function vc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(l)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Ee(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 Ua(e){const t=bo(e),n=null!==t?t.factory:ao(e);if(null!==n)return n;if(e instanceof ct)throw new Gt(204,!1);if(e instanceof Function)return function Lo(e){if(e.length>0)throw new Gt(204,!1);const n=function Is(e){return e&&(e[oo]||e[Mo])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Gt(204,!1)}function El(e,t,n){let l;if(ni(e)){const p=Ee(e);return ao(p)||Ua(p)}if(Le(e))l=()=>Ee(e.useValue);else if(function vr(e){return!(!e||!e.useFactory)}(e))l=()=>e.useFactory(...os(e.deps||[]));else if(function Ut(e){return!(!e||!e.useExisting)}(e))l=()=>Io(Ee(e.useExisting));else{const p=Ee(e&&(e.useClass||e.provide));if(!function $a(e){return!!e.deps}(e))return ao(p)||Ua(p);l=()=>new p(...os(e.deps))}return l}function xl(e){if(e.destroyed)throw new Gt(205,!1)}function la(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function rc(e,t){for(const n of e)Array.isArray(n)?rc(n,t):n&&kn(n)?rc(n.\u0275providers,t):t(n)}function ja(e,t){e instanceof Us&&xl(e);const l=Wi(e),p=wo(void 0);try{return t()}finally{Wi(l),wo(p)}}function Wl(){return void 0!==ma()||null!=function to(){return is}()}function ba(e){if(!Wl())throw new Gt(-203,!1)}const Ui=0,zn=1,Ar=2,So=3,no=4,$o=5,es=6,Po=7,Fr=8,fo=9,Os=10,Rr=11,po=12,ic=13,Va=14,ro=15,Ha=16,Di=17,$s=18,ca=19,No=20,$=21,de=22,q=23,_e=24,nt=25,_n=1,Cr=7,Li=9,Hr=10;var xi=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(xi||{});function Qr(e){return Array.isArray(e)&&"object"==typeof e[_n]}function di(e){return Array.isArray(e)&&!0===e[_n]}function Fo(e){return!!(4&e.flags)}function Wo(e){return e.componentOffset>-1}function hs(e){return!(1&~e.flags)}function jo(e){return!!e.template}function Rs(e){return!!(512&e[Ar])}class ou{previousValue;currentValue;firstChange;constructor(t,n,l){this.previousValue=t,this.currentValue=n,this.firstChange=l}isFirstChange(){return this.firstChange}}function Bc(e,t,n,l){null!==t?t.applyValueToInputSignal(t,l):e[n]=l}const bc=(()=>{const e=()=>da;return e.ngInherit=!0,e})();function da(e){return e.type.prototype.ngOnChanges&&(e.setInput=Lr),ul}function ul(){const e=Uc(this),t=e?.current;if(t){const n=e.previous;if(n===Ln)e.previous=t;else for(let l in t)n[l]=t[l];e.current=null,this.ngOnChanges(t)}}function Lr(e,t,n,l,p){const g=this.declaredInputs[l],E=Uc(e)||function ha(e,t){return e[tl]=t}(e,{previous:Ln,current:null}),O=E.current||(E.current={}),F=E.previous,ie=F[g];O[g]=new ou(ie&&ie.currentValue,n,F===Ln),Bc(e,t,p,n)}const tl="__ngSimpleChanges__";function Uc(e){return e[tl]||null}const Sa=function(e,t,n){},wc="svg";function Xi(e){for(;Array.isArray(e);)e=e[Ui];return e}function Tr(e,t){return Xi(t[e])}function xs(e,t){return Xi(t[e.index])}function L(e,t){return e.data[t]}function K(e,t){return e[t]}function P(e,t){const n=t[e];return Qr(n)?n:n[Ui]}function he(e){return!(128&~e[Ar])}function Ct(e,t){return null==t?null:e[t]}function vn(e){e[Di]=0}function nn(e){1024&e[Ar]||(e[Ar]|=1024,he(e)&&io(e))}function ri(e){return!!(9216&e[Ar]||e[_e]?.dirty)}function hi(e){e[Os].changeDetectionScheduler?.notify(9),64&e[Ar]&&(e[Ar]|=1024),ri(e)&&io(e)}function io(e){e[Os].changeDetectionScheduler?.notify(0);let t=Cs(e);for(;null!==t&&!(8192&t[Ar])&&(t[Ar]|=8192,he(t));)t=Cs(t)}function as(e,t){if(!(256&~e[Ar]))throw new Gt(911,!1);null===e[$]&&(e[$]=[]),e[$].push(t)}function Cs(e){const t=e[So];return di(t)?t[So]:t}const Wr={lFrame:Wn(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let sc=!1;function rh(){return Wr.bindingsEnabled}function xc(){return null!==Wr.skipHydrationRootTNode}function wn(){return Wr.lFrame.lView}function gi(){return Wr.lFrame.tView}function Pu(e){return Wr.lFrame.contextLView=e,e[Fr]}function lu(e){return Wr.lFrame.contextLView=null,e}function Mi(){let e=Ml();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ml(){return Wr.lFrame.currentTNode}function fs(e,t){const n=Wr.lFrame;n.currentTNode=e,n.isParent=t}function ac(){return Wr.lFrame.isParent}function jc(){Wr.lFrame.isParent=!1}function cd(){return sc}function ea(e){const t=sc;return sc=e,t}function js(){const e=Wr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wa(){return Wr.lFrame.bindingIndex++}function R(e){const t=Wr.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function oe(e,t){const n=Wr.lFrame;n.bindingIndex=n.bindingRootIndex=e,Be(t)}function Be(e){Wr.lFrame.currentDirectiveIndex=e}function gt(e){const t=Wr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function It(){return Wr.lFrame.currentQueryIndex}function Ht(e){Wr.lFrame.currentQueryIndex=e}function on(e){const t=e[zn];return 2===t.type?t.declTNode:1===t.type?e[$o]:null}function An(e,t,n){if(n&Sr.SkipSelf){let p=t,g=e;for(;!(p=p.parent,null!==p||n&Sr.Host||(p=on(g),null===p||(g=g[Va],10&p.type))););if(null===p)return!1;t=p,e=g}const l=Wr.lFrame=Kn();return l.currentTNode=t,l.lView=e,!0}function Zt(e){const t=Kn(),n=e[zn];Wr.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Kn(){const e=Wr.lFrame,t=null===e?null:e.child;return null===t?Wn(e):t}function Wn(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 nr(){const e=Wr.lFrame;return Wr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Mn=nr;function jn(){const e=nr();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 ir(){return Wr.lFrame.selectedIndex}function Vn(e){Wr.lFrame.selectedIndex=e}function dr(){const e=Wr.lFrame;return L(e.tView,e.selectedIndex)}function Pr(){Wr.lFrame.currentNamespace=wc}function zr(){!function Ur(){Wr.lFrame.currentNamespace=null}()}let Qi=!0;function Ii(){return Qi}function Zi(e){Qi=e}function Ds(e,t){for(let n=t.directiveStart,l=t.directiveEnd;n=l)break}else t[F]<0&&(e[Di]+=65536),(O>14>16&&(3&e[Ar])===t&&(e[Ar]+=16384,mo(O,g)):mo(O,g)}const gs=-1;class Ss{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,l){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=l}}function Wc(e,t,n){let l=0;for(;lt){E=g-1;break}}}for(;g>16}(e),l=t;for(;n>0;)l=l[Va],n--;return l}let ih=!0;function hd(e){const t=ih;return ih=e,t}const du=255,fd=5;let oh=0;const Rl={};function hu(e,t){const n=pd(e,t);if(-1!==n)return n;const l=t[zn];l.firstCreatePass&&(e.injectorIndex=t.length,sh(l.data,e),sh(t,null),sh(l.blueprint,null));const p=zc(e,t),g=e.injectorIndex;if(ud(p)){const E=Uu(p),O=Dc(p,t),F=O[zn].data;for(let ie=0;ie<8;ie++)t[g+ie]=O[E+ie]|F[E+ie]}return t[g+8]=p,g}function sh(e,t){e.push(0,0,0,0,0,0,0,0,t)}function pd(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function zc(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,l=null,p=t;for(;null!==p;){if(l=dh(p),null===l)return gs;if(n++,p=p[Va],-1!==l.injectorIndex)return l.injectorIndex|n<<16}return gs}function ah(e,t,n){!function ff(e,t,n){let l;"string"==typeof n?l=n.charCodeAt(0)||0:n.hasOwnProperty(bi)&&(l=n[bi]),null==l&&(l=n[bi]=oh++);const p=l&du;t.data[e+(p>>fd)]|=1<=0?t&du:Lp:t}(n);if("function"==typeof g){if(!An(t,e,l))return l&Sr.Host?md(p,0,l):Sc(t,n,l,p);try{let E;if(E=g(l),null!=E||l&Sr.Optional)return E;ia()}finally{Mn()}}else if("number"==typeof g){let E=null,O=pd(e,t),F=gs,ie=l&Sr.Host?t[ro][$o]:null;for((-1===O||l&Sr.SkipSelf)&&(F=-1===O?zc(e,t):t[O+8],F!==gs&&gf(l,!1)?(E=t[zn],O=Uu(F),t=Dc(F,t)):O=-1);-1!==O;){const Se=t[zn];if(uh(g,O,Se.data)){const Ve=ch(O,t,n,E,l,ie);if(Ve!==Rl)return Ve}F=t[O+8],F!==gs&&gf(l,t[zn].data[O+8]===ie)&&uh(g,O,t)?(E=Se,O=Uu(F),t=Dc(F,t)):O=-1}}return p}function ch(e,t,n,l,p,g){const E=t[zn],O=E.data[e+8],Se=pu(O,E,n,null==l?Wo(O)&&ih:l!=E&&!!(3&O.type),p&Sr.Host&&g===O);return null!==Se?Nl(t,E,Se,O):Rl}function pu(e,t,n,l,p){const g=e.providerIndexes,E=t.data,O=1048575&g,F=e.directiveStart,Se=g>>20,Ot=p?O+Se:e.directiveEnd;for(let Lt=l?O:O+Se;Lt=F&&en.type===n)return Lt}if(p){const Lt=E[F];if(Lt&&jo(Lt)&&Lt.type===n)return F}return null}function Nl(e,t,n,l){let p=e[n];const g=t.data;if(function lc(e){return e instanceof Ss}(p)){const E=p;E.resolving&&function Ki(e,t){throw t&&t.join(" > "),new Gt(-200,e)}(function ai(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():gr(e)}(g[n]));const O=hd(E.canSeeViewProviders);E.resolving=!0;const ie=E.injectImpl?wo(E.injectImpl):null;An(e,l,Sr.Default);try{p=e[n]=E.factory(void 0,g,e,l),t.firstCreatePass&&n>=l.directiveStart&&function Bo(e,t,n){const{ngOnChanges:l,ngOnInit:p,ngDoCheck:g}=t.type.prototype;if(l){const E=da(t);(n.preOrderHooks??=[]).push(e,E),(n.preOrderCheckHooks??=[]).push(e,E)}p&&(n.preOrderHooks??=[]).push(0-e,p),g&&((n.preOrderHooks??=[]).push(e,g),(n.preOrderCheckHooks??=[]).push(e,g))}(n,g[n],t)}finally{null!==ie&&wo(ie),hd(O),E.resolving=!1,Mn()}}return p}function uh(e,t,n){return!!(n[t+(e>>fd)]&1<{const t=e.prototype.constructor,n=t[mr]||gu(t),l=Object.prototype;let p=Object.getPrototypeOf(e.prototype).constructor;for(;p&&p!==l;){const g=p[mr]||gu(p);if(g&&g!==n)return g;p=Object.getPrototypeOf(p)}return g=>new g})}function gu(e){return lt(e)?()=>{const t=gu(Ee(e));return t&&t()}:ao(e)}function dh(e){const t=e[zn],n=t.type;return 2===n?t.declTNode:1===n?e[$o]:null}function $u(e){return function fu(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const l=n.length;let p=0;for(;pIo(hr)});static __NG_ELEMENT_ID__=-1}class _d{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>$u(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}new ct("").__NG_ELEMENT_ID__=e=>{const t=Mi();if(null===t)throw new Gt(204,!1);if(2&t.type)return t.value;if(e&Sr.Optional)return null;throw new Gt(204,!1)};const mh=!1;let hc=(()=>class e{static __NG_ELEMENT_ID__=Gc;static __NG_ENV_ID__=n=>n})();class rl extends hc{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return as(this._lView,t),()=>function Ko(e,t){if(null===e[$])return;const n=e[$].indexOf(t);-1!==n&&e[$].splice(n,1)}(this._lView,t)}}function Gc(){return new rl(wn())}class Ll{}const Hu=new ct("",{providedIn:"root",factory:()=>!1}),Ef=new ct(""),_u=new ct("");let il=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Gn.t(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(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 \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();const Pl=class gh extends Nt.B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Wl()&&(this.destroyRef=tr(hc,{optional:!0})??void 0,this.pendingTasks=tr(il,{optional:!0})??void 0)}emit(t){const n=T(null);try{super.next(t)}finally{T(n)}}subscribe(t,n,l){let p=t,g=n||(()=>null),E=l;if(t&&"object"==typeof t){const F=t;p=F.next?.bind(F),g=F.error?.bind(F),E=F.complete?.bind(F)}this.__isAsync&&(g=this.wrapInTimeout(g),p&&(p=this.wrapInTimeout(p)),E&&(E=this.wrapInTimeout(E)));const O=super.subscribe({next:p,error:g,complete:E});return t instanceof Qt.yU&&t.add(O),O}wrapInTimeout(t){return n=>{const l=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==l&&this.pendingTasks?.remove(l)})}}};function yu(...e){}function yd(e){let t,n;function l(){e=yu;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),l()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),l()})),()=>l()}function Wu(e){return queueMicrotask(()=>e()),()=>{e=yu}}const bd="isAngularZone",Xc=bd+"_ID";let xf=0;class Vo{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Pl(!1);onMicrotaskEmpty=new Pl(!1);onStable=new Pl(!1);onError=new Pl(!1);constructor(t){const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:l=!1,shouldCoalesceRunChangeDetection:p=!1,scheduleInRootZone:g=mh}=t;if(typeof Zone>"u")throw new Gt(908,!1);Zone.assertZonePatched();const E=this;E._nesting=0,E._outer=E._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(E._inner=E._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(E._inner=E._inner.fork(Zone.longStackTraceZoneSpec)),E.shouldCoalesceEventChangeDetection=!p&&l,E.shouldCoalesceRunChangeDetection=p,E.callbackScheduled=!1,E.scheduleInRootZone=g,function yh(e){const t=()=>{!function _h(e){function t(){yd(()=>{e.callbackScheduled=!1,bh(e),e.isCheckStableRunning=!0,vh(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),bh(e))}(e)},n=xf++;e._inner=e._inner.fork({name:"angular",properties:{[bd]:!0,[Xc]:n,[Xc+n]:!0},onInvokeTask:(l,p,g,E,O,F)=>{if(function wh(e){return Eh(e,"__ignore_ng_zone__")}(F))return l.invokeTask(g,E,O,F);try{return Df(e),l.invokeTask(g,E,O,F)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===E.type||e.shouldCoalesceRunChangeDetection)&&t(),Sf(e)}},onInvoke:(l,p,g,E,O,F,ie)=>{try{return Df(e),l.invoke(g,E,O,F,ie)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function zp(e){return Eh(e,"__scheduler_tick__")}(F)&&t(),Sf(e)}},onHasTask:(l,p,g,E)=>{l.hasTask(g,E),p===g&&("microTask"==E.change?(e._hasPendingMicrotasks=E.microTask,bh(e),vh(e)):"macroTask"==E.change&&(e.hasPendingMacrotasks=E.macroTask))},onHandleError:(l,p,g,E)=>(l.handleError(g,E),e.runOutsideAngular(()=>e.onError.emit(E)),!1)})}(E)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(bd)}static assertInAngularZone(){if(!Vo.isInAngularZone())throw new Gt(909,!1)}static assertNotInAngularZone(){if(Vo.isInAngularZone())throw new Gt(909,!1)}run(t,n,l){return this._inner.run(t,n,l)}runTask(t,n,l,p){const g=this._inner,E=g.scheduleEventTask("NgZoneEvent: "+p,t,Cf,yu,yu);try{return g.runTask(E,n,l)}finally{g.cancelTask(E)}}runGuarded(t,n,l){return this._inner.runGuarded(t,n,l)}runOutsideAngular(t){return this._outer.run(t)}}const Cf={};function vh(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 bh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Df(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Sf(e){e._nesting--,vh(e)}class wd{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Pl;onMicrotaskEmpty=new Pl;onStable=new Pl;onError=new Pl;run(t,n,l){return t.apply(n,l)}runGuarded(t,n,l){return t.apply(n,l)}runOutsideAngular(t){return t()}runTask(t,n,l,p){return t.apply(n,l)}}function Eh(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class Ac{_console=console;handleError(t){this._console.error("ERROR",t)}}const Af=new ct("",{providedIn:"root",factory:()=>{const e=tr(Vo),t=tr(Ac);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Ka(e,t){return ke(e,t)}const Yc=(Ka.required=function Gp(e){return ke(Kt,e)},Ka);function Xp(){return ml(Mi(),wn())}function ml(e,t){return new Tc(xs(e,t))}let Tc=(()=>class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Xp})();function Vs(e){return e instanceof Tc?e.nativeElement:e}function Tf(){return this._results[Symbol.iterator]()}class Cd{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Nt.B}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,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 l=function _o(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function ss(e,t,n){if(e.length!==t.length)return!1;for(let l=0;lHs}),Hs="ng",Ws=new ct(""),Ma=new ct("",{providedIn:"platform",factory:()=>"unknown"}),Ia=new ct(""),Ga=new ct("",{providedIn:"root",factory:()=>ki().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Cg=new ct("",{providedIn:"root",factory:()=>!1});var qp=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(qp||{});const Oh=new ct(""),G_=new Set;function pa(e){G_.has(e)||(G_.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Od=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Od||{});let Tg=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();const X_=[Od.EarlyRead,Od.Write,Od.MixedReadWrite,Od.Read];let Y_=(()=>{class e{ngZone=tr(Vo);scheduler=tr(Ll);errorHandler=tr(Ac,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){tr(Oh,{optional:!0})}execute(){this.executing=!0;for(const n of X_)for(const l of this.sequences)if(!l.erroredOrDestroyed&&l.hooks[n])try{l.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>l.hooks[n](l.pipelinedValue),l.snapshot))}catch(p){l.erroredOrDestroyed=!0,this.errorHandler?.handleError(p)}this.executing=!1;for(const n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(const n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(7))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,l){return l?.run(qp.AFTER_NEXT_RENDER,n)??n()}static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();class Mg{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,l,p,g=null){this.impl=t,this.hooks=n,this.once=l,this.snapshot=g,this.unregisterOnDestroy=p?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function Ig(e,t){!t?.injector&&ba();const n=t?.injector??tr(Ts);return pa("NgAfterRender"),kg(e,n,t,!1)}function Qu(e,t){!t?.injector&&ba();const n=t?.injector??tr(Ts);return pa("NgAfterNextRender"),kg(e,n,t,!0)}function kg(e,t,n,l){const p=t.get(Tg);p.impl??=t.get(Y_);const g=t.get(Oh,null,{optional:!0}),E=n?.phase??Od.MixedReadWrite,O=!0!==n?.manualCleanup?t.get(hc):null,F=new Mg(p.impl,function Q_(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,E),l,O,g?.snapshot(null));return p.impl.register(F),F}let Wg=()=>null;function jf(e,t,n=!1){return Wg(e,t,n)}var pc=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(pc||{});let Hf,Wf;function $d(e){return function um(){if(void 0===Hf&&(Hf=null,Vt.trustedTypes))try{Hf=Vt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Hf}()?.createHTML(e)||e}function dm(){if(void 0===Wf&&(Wf=null,Vt.trustedTypes))try{Wf=Vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Wf}function ev(e){return dm()?.createHTML(e)||e}function nv(e){return dm()?.createScriptURL(e)||e}class ed{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${En})`}}class xy extends ed{getTypeName(){return"HTML"}}class zf extends ed{getTypeName(){return"Style"}}class Cy extends ed{getTypeName(){return"Script"}}class Dy extends ed{getTypeName(){return"URL"}}class Sy extends ed{getTypeName(){return"ResourceURL"}}function qc(e){return e instanceof ed?e.changingThisBreaksApplicationSecurity:e}function jd(e,t){const n=function Ay(e){return e instanceof ed&&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 ${En})`)}return n===t}function Ty(e){return new xy(e)}function My(e){return new zf(e)}function Iy(e){return new Cy(e)}function ky(e){return new Dy(e)}function Oy(e){return new Sy(e)}class Ry{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString($d(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}}class Ny{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=$d(t),n}}const Ly=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Gf(e){return(e=String(e)).match(Ly)?e:"unsafe:"+e}function Jc(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Vh(...e){const t={};for(const n of e)for(const l in n)n.hasOwnProperty(l)&&(t[l]=!0);return t}const rv=Jc("area,br,col,hr,img,wbr"),iv=Jc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ov=Jc("rp,rt"),Xf=Vh(rv,Vh(iv,Jc("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")),Vh(ov,Jc("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")),Vh(ov,iv)),fm=Jc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),av=Vh(fm,Jc("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"),Jc("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")),Fy=Jc("script,style,template");class lv{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,l=!0,p=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?l=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,l&&n.firstChild)p.push(n),n=$y(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let g=Uy(n);if(g){n=g;break}n=p.pop()}return this.buf.join("")}startElement(t){const n=pm(t).toLowerCase();if(!Xf.hasOwnProperty(n))return this.sanitizedSomething=!0,!Fy.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const l=t.attributes;for(let p=0;p"),!0}endElement(t){const n=pm(t).toLowerCase();Xf.hasOwnProperty(n)&&!rv.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(dv(t))}}function Uy(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw cv(t);return t}function $y(e){const t=e.firstChild;if(t&&function By(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw cv(t);return t}function pm(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function cv(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const jy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,uv=/([^\#-~ |!])/g;function dv(e){return e.replace(/&/g,"&").replace(jy,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(uv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Hh;function hv(e,t){let n=null;try{Hh=Hh||function Kf(e){const t=new Ny(e);return function hm(){try{return!!(new window.DOMParser).parseFromString($d(""),"text/html")}catch{return!1}}()?new Ry(t):t}(e);let l=t?String(t):"";n=Hh.getInertBodyElement(l);let p=5,g=l;do{if(0===p)throw new Error("Failed to sanitize html because the input is unstable");p--,l=g,g=n.innerHTML,n=Hh.getInertBodyElement(l)}while(l!==g);return $d((new lv).sanitizeChildren(mm(n)||n))}finally{if(n){const l=mm(n)||n;for(;l.firstChild;)l.firstChild.remove()}}}function mm(e){return"content"in e&&function Vy(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var td=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}(td||{});function Wh(e){const t=Vd();return t?ev(t.sanitize(td.HTML,e)||""):jd(e,"HTML")?ev(qc(e)):hv(ki(),gr(e))}function gm(e){const t=Vd();return t?t.sanitize(td.URL,e)||"":jd(e,"URL")?qc(e):Gf(gr(e))}function zh(e){const t=Vd();if(t)return nv(t.sanitize(td.RESOURCE_URL,e)||"");if(jd(e,"ResourceURL"))return nv(qc(e));throw new Gt(904,!1)}function Qf(e,t,n){return function Wy(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?zh:gm}(t,n)(e)}function Vd(){const e=wn();return e&&e[Os].sanitizer}const Hd=/^>|^->||--!>|)/g;function $l(e){return e instanceof Function?e():e}var Au=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Au||{}),Jf=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Jf||{});let Em;function xm(e,t){return Em(e,t)}function Kd(e,t,n,l,p){if(null!=l){let g,E=!1;di(l)?g=l:Qr(l)&&(E=!0,l=l[Ui]);const O=Xi(l);0===e&&null!==n?null==p?kv(t,n,O):nd(t,n,O,p||null,!0):1===e&&null!==n?nd(t,n,O,p||null,!0):2===e?function Qh(e,t,n){e.removeChild(null,t,n)}(t,O,E):3===e&&t.destroyNode(O),null!=g&&function rb(e,t,n,l,p){const g=n[Cr];g!==Xi(n)&&Kd(t,e,l,g,p);for(let O=Hr;Ot.replace(pv,"\u200b$1\u200b"))}(t))}function ep(e,t,n){return e.createElement(t,n)}function Tv(e,t){t[Os].changeDetectionScheduler?.notify(10),rp(e,t,t[Rr],2,null,null)}function Sm(e,t){const n=e[Li],l=t[So];(Qr(l)||t[ro]!==l[So][ro])&&(e[Ar]|=xi.HasTransplantedViews),null===n?e[Li]=[t]:n.push(t)}function Am(e,t){const n=e[Li],l=n.indexOf(t);n.splice(l,1)}function Gh(e,t){if(e.length<=Hr)return;const n=Hr+t,l=e[n];if(l){const p=l[Ha];null!==p&&p!==e&&Am(p,l),t>0&&(e[n-1][no]=l[no]);const g=Fa(e,Hr+t);!function Av(e,t){Tv(e,t),t[Ui]=null,t[$o]=null}(l[zn],l);const E=g[$s];null!==E&&E.detachView(g[zn]),l[So]=null,l[no]=null,l[Ar]&=-129}return l}function Xh(e,t){if(!(256&t[Ar])){const n=t[Rr];n.destroyNode&&rp(e,t,n,3,null,null),function eb(e){let t=e[po];if(!t)return tp(e[zn],e);for(;t;){let n=null;if(Qr(t))n=t[po];else{const l=t[Hr];l&&(n=l)}if(!n){for(;t&&!t[no]&&t!==e;)Qr(t)&&tp(t[zn],t),t=t[So];null===t&&(t=e),Qr(t)&&tp(t[zn],t),n=t&&t[no]}t=n}}(t)}}function tp(e,t){if(256&t[Ar])return;const n=T(null);try{t[Ar]&=-129,t[Ar]|=256,t[_e]&&Ce(t[_e]),function Mv(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let l=0;l=0?l[O]():l[-O].unsubscribe(),E+=2}else n[E].call(l[n[E+1]]);null!==l&&(t[Po]=null);const p=t[$];if(null!==p){t[$]=null;for(let E=0;E-1){const{encapsulation:g}=e.data[l.directiveStart+p];if(g===pc.None||g===pc.Emulated)return null}return xs(l,n)}}(e,t.parent,n)}function nd(e,t,n,l,p){e.insertBefore(t,n,l,p)}function kv(e,t,n){e.appendChild(t,n)}function Ov(e,t,n,l,p){null!==l?nd(e,t,n,l,p):kv(e,t,n)}function Mm(e,t){return e.parentNode(t)}function Nv(e,t,n){return Pv(e,t,n)}let Im,Pv=function Lv(e,t,n){return 40&e.type?xs(e,n):null};function Yh(e,t,n,l){const p=Tm(e,l,t),g=t[Rr],O=Nv(l.parent||t[$o],l,t);if(null!=p)if(Array.isArray(n))for(let F=0;F-1){let g;for(;++pg?"":p[Se+1].toLowerCase(),2&l&&ie!==Ve){if(mc(l))return!1;E=!0}}}}else{if(!E&&!mc(l)&&!mc(F))return!1;if(E&&mc(F))continue;E=!1,l=F|1&l}}return mc(l)||E}function mc(e){return!(1&e)}function ub(e,t,n,l){if(null===t)return-1;let p=0;if(l||!n){let g=!1;for(;p-1)for(n++;n0?'="'+O+'"':"")+"]"}else 8&l?p+="."+E:4&l&&(p+=" "+E);else""!==p&&!mc(E)&&(t+=Hv(g,p),p=""),l=E,g=g||!mc(l);n++}return""!==p&&(t+=Hv(g,p)),t}const Si={};function gb(e=1){Wv(gi(),wn(),ir()+e,!1)}function Wv(e,t,n,l){if(!l)if(3&~t[Ar]){const g=e.preOrderHooks;null!==g&&jr(t,g,0,n)}else{const g=e.preOrderCheckHooks;null!==g&&yr(t,g,n)}Vn(n)}function Gd(e,t=Sr.Default){const n=wn();return null===n?Io(e,t):pf(Mi(),n,Ee(e),t)}function Pm(){throw new Error("invalid")}function zv(e,t,n,l,p,g){const E=T(null);try{let O=null;p&Au.SignalBased&&(O=t[l][C]),null!==O&&void 0!==O.transformFn&&(g=O.transformFn(g)),p&Au.HasDecoratorInputTransform&&(g=e.inputTransforms[l].call(t,g)),null!==e.setInput?e.setInput(t,O,g,n,l):Bc(t,O,l,g)}finally{T(E)}}function Zh(e,t,n,l,p,g,E,O,F,ie,Se){const Ve=t.blueprint.slice();return Ve[Ui]=p,Ve[Ar]=1228|l,(null!==ie||e&&2048&e[Ar])&&(Ve[Ar]|=2048),vn(Ve),Ve[So]=Ve[Va]=e,Ve[Fr]=n,Ve[Os]=E||e&&e[Os],Ve[Rr]=O||e&&e[Rr],Ve[fo]=F||e&&e[fo]||null,Ve[$o]=g,Ve[ca]=function Eu(){return Yp++}(),Ve[es]=Se,Ve[No]=ie,Ve[ro]=2==t.type?e[ro]:Ve,Ve}function id(e,t,n,l,p){let g=e.data[t];if(null===g)g=function Fm(e,t,n,l,p){const g=Ml(),E=ac(),F=e.data[t]=function _r(e,t,n,l,p,g){let E=t?t.injectorIndex:-1,O=0;return xc()&&(O|=128),{type:n,index:l,insertBeforeIndex:null,injectorIndex:E,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:O,providerIndexes:0,value:p,attrs:g,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,E?g:g&&g.parent,n,t,l,p);return null===e.firstChild&&(e.firstChild=F),null!==g&&(E?null==g.child&&null!==F.parent&&(g.child=F):null===g.next&&(g.next=F,F.prev=g)),F}(e,t,n,l,p),function U(){return Wr.lFrame.inI18n}()&&(g.flags|=32);else if(64&g.type){g.type=n,g.value=l,g.attrs=p;const E=function Il(){const e=Wr.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();g.injectorIndex=null===E?-1:E.injectorIndex}return fs(g,!0),g}function _(e,t,n,l){if(0===n)return-1;const p=t.length;for(let g=0;gnt&&Wv(e,t,nt,!1),Sa(E?2:0,p),n(l,p)}finally{Vn(g),Sa(E?3:1,p)}}function d(e,t,n){if(Fo(t)){const l=T(null);try{const g=t.directiveEnd;for(let E=t.directiveStart;Enull;function ti(e,t,n,l,p){for(let g in t){if(!t.hasOwnProperty(g))continue;const E=t[g];if(void 0===E)continue;l??={};let O,F=Au.None;Array.isArray(E)?(O=E[0],F=E[1]):O=E;let ie=g;if(null!==p){if(!p.hasOwnProperty(g))continue;ie=p[g]}0===e?yi(l,n,ie,O,F):yi(l,n,ie,O)}return l}function yi(e,t,n,l,p){let g;e.hasOwnProperty(n)?(g=e[n]).push(t,l):g=e[n]=[t,l],void 0!==p&&g.push(p)}function To(e,t,n,l,p,g,E,O){const F=xs(t,n);let Se,ie=t.inputs;!O&&null!=ie&&(Se=ie[l])?(_b(e,n,Se,l,p),Wo(t)&&function ta(e,t){const n=P(t,e);16&n[Ar]||(n[Ar]|=64)}(n,t.index)):3&t.type&&(l=function ls(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(l),p=null!=E?E(p,t.value||"",l):p,g.setProperty(F,l,p))}function na(e,t,n,l){if(rh()){const p=null===l?null:{"":-1},g=function Kv(e,t){const n=e.directiveRegistry;let l=null,p=null;if(n)for(let g=0;g0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(E)!=O&&E.push(O),E.push(n,l,g)}}(e,t,l,_(e,n,p.hostVars,Si),p)}function zs(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Ms(e,t,n,l,p,g){const E=xs(e,t);!function Rc(e,t,n,l,p,g,E){if(null==g)e.removeAttribute(t,p,n);else{const O=null==E?gr(g):E(g,l||"",p);e.setAttribute(t,p,O,n)}}(t[Rr],E,g,e.value,n,l,p)}function bs(e,t,n,l,p,g){const E=g[t];if(null!==E)for(let O=0;O0&&(n[p-1][no]=t),l{io(e.lView)},consumerOnSignalRead(){this.lView[_e]=this}},f2={...N,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Cs(e.lView);for(;t&&!jw(t[zn]);)t=Cs(t);t&&nn(t)},consumerOnSignalRead(){this.lView[_e]=this}};function jw(e){return 2!==e.type}function Vw(e){if(null===e[q])return;let t=!0;for(;t;){let n=!1;for(const l of e[q])l.dirty&&(n=!0,null===l.zone||Zone.current===l.zone?l.run():l.zone.run(()=>l.run()));t=n&&!!(8192&e[Ar])}}function Zv(e,t=!0,n=0){const p=e[Os].rendererFactory;p.begin?.();try{!function m2(e,t){const n=cd();try{ea(!0),wb(e,t);let l=0;for(;ri(e);){if(100===l)throw new Gt(103,!1);l++,wb(e,1)}}finally{ea(n)}}(e,n)}catch(E){throw t&&Yv(e,E),E}finally{p.end?.()}}function Ww(e,t,n,l){const p=t[Ar];if(!(256&~p))return;Zt(t);let O=!0,F=null,ie=null;jw(e)?(ie=function l2(e){return e[_e]??function c2(e){const t=$w.pop()??Object.create(d2);return t.lView=e,t}(e)}(t),F=xe(ie)):null===function S(){return c}()?(O=!1,ie=function h2(e){const t=e[_e]??Object.create(f2);return t.lView=e,t}(t),F=xe(ie)):t[_e]&&(Ce(t[_e]),t[_e]=null);try{vn(t),function Bu(e){return Wr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&m(e,t,n,2,l);const Se=!(3&~p);if(Se){const Lt=e.preOrderCheckHooks;null!==Lt&&yr(t,Lt,null)}else{const Lt=e.preOrderHooks;null!==Lt&&jr(t,Lt,0,null),Fi(t,0)}if(function g2(e){for(let t=Yt(e);null!==t;t=qt(t)){if(!(t[Ar]&xi.HasTransplantedViews))continue;const n=t[Li];for(let l=0;l-1&&(Gh(t,l),Fa(n,l))}this._attachedToViewContainer=!1}Xh(this._lView[zn],this._lView)}onDestroy(t){as(this._lView,t)}markForCheck(){jm(this._cdRefInjectingView||this._lView,4)}markForRefresh(){nn(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ar]&=-129}reattach(){hi(this._lView),this._lView[Ar]|=128}detectChanges(){this._lView[Ar]|=1024,Zv(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Gt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=Rs(this._lView),n=this._lView[Ha];null!==n&&!t&&Am(n,this._lView),Tv(this._lView[zn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Gt(902,!1);this._appRef=t;const n=Rs(this._lView),l=this._lView[Ha];null!==l&&!n&&Sm(l,this._lView),hi(this._lView)}}let Hm=(()=>class e{static __NG_ELEMENT_ID__=b2})();const _2=Hm,y2=class extends _2{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,l){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=l}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,l){const p=lp(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:l});return new Vm(p)}};function b2(){return qv(Mi(),wn())}function qv(e,t){return 4&e.type?new y2(t,e,ml(e,t)):null}let p1=()=>null;function dp(e,t){return p1(e,t)}class pS{}class m1{}class mS{resolveComponentFactory(t){throw Error(`No component factory found for ${cr(t)}.`)}}class i_{static NULL=new mS}class Rb{}let gS=(()=>class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>function vS(){const e=wn(),n=P(Mi().index,e);return(Qr(n)?n:e)[Rr]}()})(),_S=(()=>{class e{static \u0275prov=oi({token:e,providedIn:"root",factory:()=>null})}return e})();function Xd(e){return!!Or(e)}function s_(e,t,n){let l=n?e.styles:null,p=n?e.classes:null,g=0;if(null!==t)for(let E=0;E0&&Uv(e,n,g.join(" "))}}(Ot,ra,en,l),void 0!==n&&function TS(e,t,n){const l=e.projection=[];for(let p=0;pclass e{static __NG_ELEMENT_ID__=IS})();function IS(){return E1(Mi(),wn())}const kS=a_,b1=class extends kS{_lContainer;_hostTNode;_hostLView;constructor(t,n,l){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=l}get element(){return ml(this._hostTNode,this._hostLView)}get injector(){return new As(this._hostTNode,this._hostLView)}get parentInjector(){const t=zc(this._hostTNode,this._hostLView);if(ud(t)){const n=Dc(t,this._hostLView),l=Uu(t);return new As(n[zn].data[l+8],n)}return new As(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=w1(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Hr}createEmbeddedView(t,n,l){let p,g;"number"==typeof l?p=l:null!=l&&(p=l.index,g=l.injector);const E=dp(this._lContainer,t.ssrId),O=t.createEmbeddedViewImpl(n||{},g,E);return this.insertImpl(O,p,qh(this._hostTNode,E)),O}createComponent(t,n,l,p,g){const E=t&&!function Jo(e){return"function"==typeof e}(t);let O;if(E)O=n;else{const en=n||{};O=en.index,l=en.injector,p=en.projectableNodes,g=en.environmentInjector||en.ngModuleRef}const F=E?t:new Jm(Dr(t)),ie=l||this.parentInjector;if(!g&&null==F.ngModule){const Rn=(E?ie:this.parentInjector).get(us,null);Rn&&(g=Rn)}const Se=Dr(F.componentType??{}),Ve=dp(this._lContainer,Se?.id??null),Lt=F.create(ie,p,Ve?.firstChild??null,g);return this.insertImpl(Lt.hostView,O,qh(this._hostTNode,Ve)),Lt}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,l){const p=t._lView;if(function We(e){return di(e[So])}(p)){const O=this.indexOf(t);if(-1!==O)this.detach(O);else{const F=p[So],ie=new b1(F,F[$o],F[So]);ie.detach(ie.indexOf(t))}}const g=this._adjustIndex(n),E=this._lContainer;return cp(E,p,g,l),t.attachToViewContainerRef(),_i(Pb(E),g,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=w1(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),l=Gh(this._lContainer,n);l&&(Fa(Pb(this._lContainer),n),Xh(l[zn],l))}detach(t){const n=this._adjustIndex(t,-1),l=Gh(this._lContainer,n);return l&&null!=Fa(Pb(this._lContainer),n)?new Vm(l):null}_adjustIndex(t,n=0){return t??this.length+n}};function w1(e){return e[8]}function Pb(e){return e[8]||(e[8]=[])}function E1(e,t){let n;const l=t[e.index];return di(l)?n=l:(n=Xv(l,t,null,e),t[e.index]=n,Nc(t,n)),x1(n,t,e,l),new b1(n,e,t)}let x1=function D1(e,t,n,l){if(e[Cr])return;let p;p=8&n.type?Xi(l):function OS(e,t){const n=e[Rr],l=n.createComment(""),p=xs(t,e);return nd(n,Mm(n,p),l,function Rv(e,t){return e.nextSibling(t)}(n,p),!1),l}(t,n),e[Cr]=p},Fb=()=>!1;class Bb{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new Bb(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ub{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const l=null!==t.contentQueries?t.contentQueries[0]:n.length,p=[];for(let g=0;gt.trim())}(t):t}}class $b{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let l=0;l0)l.push(E[O/2]);else{const ie=g[O+1],Se=t[-F];for(let Ve=Hr;Ve(G(t),t.value);return n[C]=t,n}(e),l=n[C];return t?.equal&&(l.equal=t.equal),n.set=p=>dt(l,p),n.update=p=>function Ge(e,t){me()||Qe(),dt(e,t(e.value))}(l,p),n.asReadonly=Kb.bind(n),n}function Kb(){const e=this[C];if(void 0===e.readonlyFn){const t=()=>this();t[C]=e,e.readonlyFn=t}return e.readonlyFn}function R1(e){return zb(e)&&"function"==typeof e.set}function Gb(e,t,n){let l;const p=vt(()=>{l._dirtyCounter();const g=function VS(e,t){const n=e._lView,l=e._queryIndex;if(void 0===n||void 0===l||4&n[Ar])return t?void 0:hn;const p=Hb(n,l),g=O1(n,l);return p.reset(g,Vs),t?p.first:p._changesDetected||void 0===e._flatValue?e._flatValue=p.toArray():e._flatValue}(l,e);if(t&&void 0===g)throw new Gt(-951,!1);return g});return l=p[C],l._dirtyCounter=hp(0),l._flatValue=void 0,p}function B1(e,t){return function N1(e){return Gb(!0,!1)}()}const WS=(B1.required=function HS(e,t){return function L1(e){return Gb(!0,!0)}()},B1);class ef{}class z1{}function JS(e,t){return new Xb(e,t??null,[])}class Xb extends ef{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new _1(this);constructor(t,n,l,p=!0){super(),this.ngModuleType=t,this._parent=n;const g=Or(t);this._bootstrapComponents=$l(g.bootstrap),this._r3Injector=wf(t,n,[{provide:ef,useValue:this},{provide:i_,useValue:this.componentFactoryResolver},...l],cr(t),new Set(["environment"])),p&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Yb extends z1{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Xb(this.moduleType,t,[])}}class K1 extends ef{injector;componentFactoryResolver=new _1(this);instance=null;constructor(t){super();const n=new Us([...t.providers,{provide:ef,useValue:this},{provide:i_,useValue:this.componentFactoryResolver}],t.parent||wl(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Qb(e,t,n=null){return new K1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let tA=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const l=Hl(0,n.type),p=l.length>0?Qb([l],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,p)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=oi({token:e,providedIn:"environment",factory:()=>new e(Io(us))})}return e})();function G1(e){return B(()=>{const t=Z1(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Mc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?p=>p.get(tA).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||pc.Emulated,styles:e.styles||hn,_:null,schemas:e.schemas||null,tView:null,id:""};t.standalone&&pa("NgStandalone"),q1(n);const l=e.dependencies;return n.directiveDefs=c_(l,!1),n.pipeDefs=c_(l,!0),n.id=function oA(e){let t=0;const l=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,"function"==typeof e.consts?"":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];for(const g of l.join("|"))t=Math.imul(31,t)+g.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function nA(e){return Dr(e)||Ei(e)}function rA(e){return null!==e}function Zb(e){return B(()=>({type:e.type,bootstrap:e.bootstrap||hn,declarations:e.declarations||hn,imports:e.imports||hn,exports:e.exports||hn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function X1(e,t){if(null==e)return Ln;const n={};for(const l in e)if(e.hasOwnProperty(l)){const p=e[l];let g,E,O=Au.None;Array.isArray(p)?(O=p[0],g=p[1],E=p[2]??g):(g=p,E=p),t?(n[g]=O!==Au.None?[l,O]:l,t[g]=E):n[g]=l}return n}function Y1(e){return B(()=>{const t=Z1(e);return q1(t),t})}function Q1(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Z1(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||Ln,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||hn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:X1(e.inputs,t),outputs:X1(e.outputs),debugInfo:null}}function q1(e){e.features?.forEach(t=>t(e))}function c_(e,t){if(!e)return null;const n=t?ui:nA;return()=>("function"==typeof e?e():e).map(l=>n(l)).filter(rA)}function qb(e){let t=function J1(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const l=[e];for(;t;){let p;if(jo(e))p=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Gt(903,!1);p=t.\u0275dir}if(p){if(n){l.push(p);const E=e;E.inputs=u_(e.inputs),E.inputTransforms=u_(e.inputTransforms),E.declaredInputs=u_(e.declaredInputs),E.outputs=u_(e.outputs);const O=p.hostBindings;O&&uA(e,O);const F=p.viewQuery,ie=p.contentQueries;if(F&&lA(e,F),ie&&cA(e,ie),sA(e,p),Bn(e.outputs,p.outputs),jo(p)&&p.data.animation){const Se=e.data;Se.animation=(Se.animation||[]).concat(p.data.animation)}}const g=p.features;if(g)for(let E=0;E=0;l--){const p=e[l];p.hostVars=t+=p.hostVars,p.hostAttrs=fl(p.hostAttrs,n=fl(n,p.hostAttrs))}}(l)}function sA(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const l=t.inputs[n];if(void 0!==l&&(e.inputs[n]=l,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const p=Array.isArray(l)?l[0]:l;if(!t.inputTransforms.hasOwnProperty(p))continue;e.inputTransforms??={},e.inputTransforms[p]=t.inputTransforms[p]}}}function u_(e){return e===Ln?{}:e===hn?[]:e}function lA(e,t){const n=e.viewQuery;e.viewQuery=n?(l,p)=>{t(l,p),n(l,p)}:t}function cA(e,t){const n=e.contentQueries;e.contentQueries=n?(l,p,g)=>{t(l,p,g),n(l,p,g)}:t}function uA(e,t){const n=e.hostBindings;e.hostBindings=n?(l,p)=>{t(l,p),n(l,p)}:t}function eE(e){const t=n=>{const l=Array.isArray(e);null===n.hostDirectives?(n.findHostDirectiveDefs=tE,n.hostDirectives=l?e.map(Jb):[e]):l?n.hostDirectives.unshift(...e.map(Jb)):n.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function tE(e,t,n){if(null!==e.hostDirectives)for(const l of e.hostDirectives)if("function"==typeof l){const p=l();for(const g of p)nE(Jb(g),t,n)}else nE(l,t,n)}function nE(e,t,n){const l=Ei(e.directive);(function pA(e,t){for(const n in t)t.hasOwnProperty(n)&&(e[t[n]]=e[n])})(l.declaredInputs,e.inputs),tE(l,t,n),n.set(l,e),t.push(l)}function Jb(e){return"function"==typeof e?{directive:Ee(e),inputs:Ln,outputs:Ln}:{directive:Ee(e.directive),inputs:rE(e.inputs),outputs:rE(e.outputs)}}function rE(e){if(void 0===e||0===e.length)return Ln;const t={};for(let n=0;n{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const vE="ng";function rT(e,t){!function yE(e,t){if(typeof COMPILED>"u"||!COMPILED){const n=Vt;n[vE]??={},n[vE][e]=t}}(e,t)}const bE=new ct(""),wE=new ct("");let s0,iT=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(n,l,p){this._ngZone=n,this.registry=l,s0||(function oT(e){s0=e}(p),p.addToWindow(l)),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:()=>{Vo.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(l=>!l.updateCb||!l.updateCb(n)||(clearTimeout(l.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,l,p){let g=-1;l&&l>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(E=>E.timeoutId!==g),n()},l)),this._callbacks.push({doneCb:n,timeoutId:g,updateCb:p})}whenStable(n,l,p){if(p&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,l,p),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,l,p){return[]}static \u0275fac=function(l){return new(l||e)(Io(Vo),Io(EE),Io(wE))};static \u0275prov=oi({token:e,factory:e.\u0275fac})}return e})(),EE=(()=>{class e{_applications=new Map;registerApplication(n,l){this._applications.set(n,l)}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,l=!0){return s0?.findTestabilityInTree(this,n,l)??null}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function a0(e){return!!e&&"function"==typeof e.then}function xE(e){return!!e&&"function"==typeof e.subscribe}const l0=new ct("");let CE=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,l)=>{this.resolve=n,this.reject=l});appInits=tr(l0,{optional:!0})??[];injector=tr(Ts);constructor(){}runInitializers(){if(this.initialized)return;const n=[];for(const p of this.appInits){const g=ja(this.injector,p);if(a0(g))n.push(g);else if(xE(g)){const E=new Promise((O,F)=>{g.subscribe({complete:O,error:F})});n.push(E)}}const l=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{l()}).catch(p=>{this.reject(p)}),0===n.length&&l(),this.initialized=!0}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),c0=(()=>{class e{static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new DE})}return e})();class DE{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){const n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);const l=this.queues.get(n);l.has(t)||(this.queuedEffectCount++,l.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()}}const ig=new ct("");let Pc=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=tr(Af);afterRenderManager=tr(Tg);zonelessEnabled=tr(Hu);rootEffectScheduler=tr(c0);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Nt.B;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=tr(il).hasPendingTasks.pipe((0,an.T)(n=>!n));constructor(){tr(Oh,{optional:!0})}whenStable(){let n;return new Promise(l=>{n=this.isStable.subscribe({next:p=>{p&&l()}})}).finally(()=>{n.unsubscribe()})}_injector=tr(us);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,l){const p=n instanceof m1;if(!this._injector.get(CE).done)throw!p&&ho(n),new Gt(405,!1);let E;E=p?n:this._injector.get(i_).resolveComponentFactory(n),this.componentTypes.push(E.componentType);const O=function sT(e){return e.isBoundToModule}(E)?void 0:this._injector.get(ef),ie=E.create(Ts.NULL,[],l||E.selector,O),Se=ie.location.nativeElement,Ve=ie.injector.get(bE,null);return Ve?.registerApplication(Se),ie.onDestroy(()=>{this.detachView(ie.hostView),v_(this.components,ie),Ve?.unregisterApplication(Se)}),this._loadComponent(ie),ie}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(null!==this.tracingSnapshot){const l=this.tracingSnapshot;return this.tracingSnapshot=null,l.run(qp.CHANGE_DETECTION,this._tick),void l.dispose()}if(this._runningTick)throw new Gt(101,!1);const n=T(null);try{this._runningTick=!0,this.synchronize()}catch(l){this.internalErrorHandler(l)}finally{this._runningTick=!1,T(n),this.afterTick.next()}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Rb,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;0!==this.dirtyFlags&&n++<10;)this.synchronizeOnce()}synchronizeOnce(){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const n=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:l,notifyErrorHandler:p}of this.allViews)cT(l,p,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:n})=>ri(n))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(n){const l=n;this._views.push(l),l.attachToAppRef(this)}detachView(n){const l=n;v_(this._views,l),l.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(ig,[]).forEach(p=>p(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._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>v_(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Gt(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function v_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function cT(e,t,n,l){(n||ri(e))&&Zv(e,t,n&&!l?0:1)}function h0(e,t,n,l){const p=wn();return Ks(p,Wa(),t)&&(gi(),Ms(dr(),p,e,t,n,l)),h0}function vp(e,t,n,l){return Ks(e,Wa(),n)?t+gr(n)+l:Si}function __(e,t){return e<<17|t<<2}function Jd(e){return e>>17&32767}function f0(e){return 2|e}function rf(e){return(131068&e)>>2}function p0(e,t){return-131069&e|t<<2}function m0(e){return 1|e}function jE(e,t,n,l){const p=e[n+1],g=null===t;let E=l?Jd(p):rf(p),O=!1;for(;0!==E&&(!1===O||g);){const ie=e[E+1];XT(e[E],t)&&(O=!0,e[E+1]=l?m0(ie):f0(ie)),E=l?Jd(ie):rf(ie)}O&&(e[n+1]=l?f0(p):m0(p))}function XT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&re(e,t)>=0}const La={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function VE(e){return e.substring(La.key,La.keyEnd)}function YT(e){return e.substring(La.value,La.valueEnd)}function HE(e,t){const n=La.textEnd;return n===t?-1:(t=La.keyEnd=function qT(e,t,n){for(;t32;)t++;return t}(e,La.key=t,n),Dp(e,t,n))}function WE(e,t){const n=La.textEnd;let l=La.key=Dp(e,t,n);return n===l?-1:(l=La.keyEnd=function JT(e,t,n){let l;for(;t=65&&(-33&l)<=90||l>=48&&l<=57);)t++;return t}(e,l,n),l=KE(e,l,n),l=La.value=Dp(e,l,n),l=La.valueEnd=function eM(e,t,n){let l=-1,p=-1,g=-1,E=t,O=E;for(;E32&&(O=E),g=p,p=l,l=-33&F}return O}(e,l,n),KE(e,l,n))}function zE(e){La.key=0,La.keyEnd=0,La.value=0,La.valueEnd=0,La.textEnd=e.length}function Dp(e,t,n){for(;t=0;n=WE(t,n))ZE(e,VE(t),YT(t))}function XE(e){ru(aM,Iu,e,!0)}function Iu(e,t){for(let n=function QT(e){return zE(e),HE(e,Dp(e,0,La.textEnd))}(t);n>=0;n=HE(t,n))Y(e,VE(t),!0)}function nu(e,t,n,l){const p=wn(),g=gi(),E=R(2);g.firstUpdatePass&&QE(g,e,E,l),t!==Si&&Ks(p,E,t)&&qE(g,g.data[ir()],p,p[Rr],e,p[E+1]=function cM(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=cr(qc(e)))),e}(t,n),l,E)}function ru(e,t,n,l){const p=gi(),g=R(2);p.firstUpdatePass&&QE(p,null,g,l);const E=wn();if(n!==Si&&Ks(E,g,n)){const O=p.data[ir()];if(ex(O,l)&&!YE(p,g)){let F=l?O.classesWithoutHost:O.stylesWithoutHost;null!==F&&(n=Jr(F,n||"")),v0(p,O,E,n,l)}else!function lM(e,t,n,l,p,g,E,O){p===Si&&(p=hn);let F=0,ie=0,Se=0=e.expandoStartIndex}function QE(e,t,n,l){const p=e.data;if(null===p[n+1]){const g=p[ir()],E=YE(e,n);ex(g,l)&&null===t&&!E&&(t=!1),t=function nM(e,t,n,l){const p=gt(e);let g=l?t.residualClasses:t.residualStyles;if(null===p)0===(l?t.classBindings:t.styleBindings)&&(n=sg(n=b0(null,e,t,n,l),t.attrs,l),g=null);else{const E=t.directiveStylingLast;if(-1===E||e[E]!==p)if(n=b0(p,e,t,n,l),null===g){let F=function rM(e,t,n){const l=n?t.classBindings:t.styleBindings;if(0!==rf(l))return e[Jd(l)]}(e,t,l);void 0!==F&&Array.isArray(F)&&(F=b0(null,e,t,F[1],l),F=sg(F,t.attrs,l),function iM(e,t,n,l){e[Jd(n?t.classBindings:t.styleBindings)]=l}(e,t,l,F))}else g=function oM(e,t,n){let l;const p=t.directiveEnd;for(let g=1+t.directiveStylingLast;g0)&&(ie=!0)):Se=n,p)if(0!==F){const Ot=Jd(e[O+1]);e[l+1]=__(Ot,O),0!==Ot&&(e[Ot+1]=p0(e[Ot+1],l)),e[O+1]=function WT(e,t){return 131071&e|t<<17}(e[O+1],l)}else e[l+1]=__(O,0),0!==O&&(e[O+1]=p0(e[O+1],l)),O=l;else e[l+1]=__(F,0),0===O?O=l:e[F+1]=p0(e[F+1],l),F=l;ie&&(e[l+1]=f0(e[l+1])),jE(e,Se,l,!0),jE(e,Se,l,!1),function GT(e,t,n,l,p){const g=p?e.residualClasses:e.residualStyles;null!=g&&"string"==typeof t&&re(g,t)>=0&&(n[l+1]=m0(n[l+1]))}(t,Se,e,l,g),E=__(O,F),g?t.classBindings=E:t.styleBindings=E}(p,g,t,n,E,l)}}function b0(e,t,n,l,p){let g=null;const E=n.directiveEnd;let O=n.directiveStylingLast;for(-1===O?O=n.directiveStart:O++;O0;){const F=e[p],ie=Array.isArray(F),Se=ie?F[1]:F,Ve=null===Se;let Ot=n[p+1];Ot===Si&&(Ot=Ve?hn:void 0);let Lt=Ve?je(Ot,l):Se===l?Ot:void 0;if(ie&&!y_(Lt)&&(Lt=je(F,l)),y_(Lt)&&(O=Lt,E))return O;const en=e[p+1];p=E?Jd(en):rf(en)}if(null!==t){let F=g?t.residualClasses:t.residualStyles;null!=F&&(O=je(F,l))}return O}function y_(e){return void 0!==e}function ex(e,t){return!!(e.flags&(t?8:16))}function tx(e,t,n){ru(Y,Iu,vp(wn(),e,t,n),!0)}function nx(){return wn()[ro][Fr]}class _M{destroy(t){}updateValue(t,n){}swap(t,n){const l=Math.min(t,n),p=Math.max(t,n),g=this.detach(p);if(p-l>1){const E=this.detach(l);this.attach(l,g),this.attach(p,E)}else this.attach(l,g)}move(t,n){this.attach(n,this.detach(t))}}function w0(e,t,n,l,p){return e===n&&Object.is(t,l)?1:Object.is(p(e,t),p(n,l))?-1:0}function E0(e,t,n,l){return!(void 0===t||!t.has(l)||(e.attach(n,t.get(l)),t.delete(l),0))}function rx(e,t,n,l,p){if(E0(e,t,l,n(l,p)))e.updateValue(l,p);else{const g=e.create(l,p);e.attach(l,g)}}function ix(e,t,n,l){const p=new Set;for(let g=t;g<=n;g++)p.add(l(g,e.at(g)));return p}class ox{kvMap=new Map;_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 l=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const p=this._vMap;for(;p.has(l);)l=p.get(l);p.set(l,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,l]of this.kvMap)if(t(l,n),void 0!==this._vMap){const p=this._vMap;for(;p.has(l);)l=p.get(l),t(l,n)}}}function sx(e,t){pa("NgControlFlow");const n=wn(),l=Wa(),p=n[l]!==Si?n[l]:-1,g=-1!==p?b_(n,nt+p):void 0;if(Ks(n,l,e)){const O=T(null);try{if(void 0!==g&&yb(g,0),-1!==e){const F=nt+e,ie=b_(n,F),Se=x0(n[zn],F),Ve=dp(ie,Se.tView.ssrId);cp(ie,lp(n,Se,t,{dehydratedView:Ve}),0,qh(Se,Ve))}}finally{T(O)}}else if(void 0!==g){const O=Uw(g,0);void 0!==O&&(O[Fr]=t)}}class bM{lContainer;$implicit;$index;constructor(t,n,l){this.lContainer=t,this.$implicit=n,this.$index=l}get $count(){return this.lContainer.length-Hr}}function ax(e){return e}class EM{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,l){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=l}}function lx(e,t,n,l,p,g,E,O,F,ie,Se,Ve,Ot){pa("NgControlFlow");const Lt=wn(),en=gi(),Rn=void 0!==F,qn=wn(),lr=O?E.bind(qn[ro][Fr]):E,Nn=new EM(Rn,lr);qn[nt+e]=Nn,ng(Lt,en,e+1,t,n,l,p,Ct(en.consts,g)),Rn&&ng(Lt,en,e+2,F,ie,Se,Ve,Ct(en.consts,Ot))}class xM extends _M{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,l){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=l}get length(){return this.lContainer.length-Hr}at(t){return this.getLView(t)[Fr].$implicit}attach(t,n){const l=n[es];this.needsIndexUpdate||=t!==this.length,cp(this.lContainer,n,t,qh(this.templateTNode,l))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function CM(e,t){return Gh(e,t)}(this.lContainer,t)}create(t,n){const l=dp(this.lContainer,this.templateTNode.tView.ssrId),p=lp(this.hostLView,this.templateTNode,new bM(this.lContainer,n,t),{dehydratedView:l});return this.operationsCounter?.recordCreate(),p}destroy(t){Xh(t[zn],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Fr].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(F)})}(F,e,g.trackByFn),F.updateIndexes(),g.hasEmptyBlock){const ie=Wa(),Se=0===F.length;if(Ks(l,ie,Se)){const Ve=n+2,Ot=b_(l,Ve);if(Se){const Lt=x0(p,Ve),en=dp(Ot,Lt.tView.ssrId);cp(Ot,lp(l,Lt,void 0,{dehydratedView:en}),0,qh(Lt,en))}else yb(Ot,0)}}}finally{T(t)}}function b_(e,t){return e[t]}function x0(e,t){return L(e,t)}function w_(e,t,n,l){const p=wn(),g=gi(),E=nt+e,O=p[Rr],F=g.firstCreatePass?function SM(e,t,n,l,p,g){const E=t.consts,F=id(t,e,2,l,Ct(E,p));return na(t,n,F,Ct(E,g)),null!==F.attrs&&s_(F,F.attrs,!1),null!==F.mergedAttrs&&s_(F,F.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,F),F}(E,g,p,t,n,l):g.data[E],ie=ux(g,p,F,O,t,e);p[E]=ie;const Se=hs(F);return fs(F,!0),$v(O,ie,F),!function pp(e){return!(32&~e.flags)}(F)&&Ii()&&Yh(g,p,ie,F),0===function nh(){return Wr.lFrame.elementDepthCount}()&&x(ie,p),function lf(){Wr.lFrame.elementDepthCount++}(),Se&&(v(g,p,F),d(g,F,p)),null!==l&&D(p,F),w_}function E_(){let e=Mi();ac()?jc():(e=e.parent,fs(e,!1));const t=e;(function uf(e){return Wr.skipHydrationRootTNode===e})(t)&&function ld(){Wr.skipHydrationRootTNode=null}(),function cf(){Wr.lFrame.elementDepthCount--}();const n=gi();return n.firstCreatePass&&(Ds(n,e),Fo(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function uc(e){return!!(8&e.flags)}(t)&&v0(n,t,wn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Cc(e){return!!(16&e.flags)}(t)&&v0(n,t,wn(),t.stylesWithoutHost,!1),E_}function C0(e,t,n,l){return w_(e,t,n,l),E_(),C0}let ux=(e,t,n,l,p,g)=>(Zi(!0),ep(l,p,function Yi(){return Wr.lFrame.currentNamespace}()));function x_(e,t,n){const l=wn(),p=gi(),g=e+nt,E=p.firstCreatePass?function MM(e,t,n,l,p){const g=t.consts,E=Ct(g,l),O=id(t,e,8,"ng-container",E);return null!==E&&s_(O,E,!0),na(t,n,O,Ct(g,p)),null!==t.queries&&t.queries.elementStart(t,O),O}(g,p,l,t,n):p.data[g];fs(E,!0);const O=dx(p,l,E,e);return l[g]=O,Ii()&&Yh(p,l,O,E),x(O,l),hs(E)&&(v(p,l,E),d(p,E,l)),null!=n&&D(l,E),x_}function C_(){let e=Mi();const t=gi();return ac()?jc():(e=e.parent,fs(e,!1)),t.firstCreatePass&&(Ds(t,e),Fo(e)&&t.queries.elementEnd(e)),C_}function D0(e,t,n){return x_(e,t,n),C_(),D0}let dx=(e,t,n,l)=>(Zi(!0),Dm(t[Rr],""));function hx(){return wn()}function S0(e,t,n){const l=wn();return Ks(l,Wa(),t)&&To(gi(),dr(),l,e,t,l[Rr],n,!0),S0}function A0(e,t,n){const l=wn();if(Ks(l,Wa(),t)){const g=gi(),E=dr();To(g,E,l,e,t,Bw(gt(g.data),E,l),n,!0)}return A0}const sf=void 0;var RM=["en",[["a","p"],["AM","PM"],sf],[["AM","PM"],sf,sf],[["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"]],sf,[["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"]],sf,[["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}",sf,"{1} 'at' {0}",sf],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function OM(e){const n=Math.floor(Math.abs(e)),l=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===l?1:5}];let Sp={};function T0(e){const t=function NM(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=px(t);if(n)return n;const l=t.split("-")[0];if(n=px(l),n)return n;if("en"===l)return RM;throw new Gt(701,!1)}function fx(e){return T0(e)[Ap.PluralCase]}function px(e){return e in Sp||(Sp[e]=Vt.ng&&Vt.ng.common&&Vt.ng.common.locales&&Vt.ng.common.locales[e]),Sp[e]}var Ap=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}(Ap||{});const D_="en-US";let mx=D_,Rx=(e,t,n)=>{};function k0(e,t,n,l){const p=wn(),g=gi(),E=Mi();return R0(g,p,p[Rr],E,e,t,l),k0}function O0(e,t){const n=Mi(),l=wn(),p=gi();return R0(p,l,Bw(gt(p.data),n,l),n,e,t),O0}function R0(e,t,n,l,p,g,E){const O=hs(l),ie=e.firstCreatePass&&Fw(e),Se=t[Fr],Ve=ap(t);let Ot=!0;if(3&l.type||E){const Rn=xs(l,t),qn=E?E(Rn):Rn,lr=Ve.length,Nn=E?Hi=>E(Xi(Hi[l.index])):l.index;let vi=null;if(!E&&O&&(vi=function xI(e,t,n,l){const p=e.cleanup;if(null!=p)for(let g=0;gF?O[F]:null}"string"==typeof E&&(g+=2)}return null}(e,t,p,l.index)),null!==vi)(vi.__ngLastListenerFn__||vi).__ngNextListenerFn__=g,vi.__ngLastListenerFn__=g,Ot=!1;else{g=Lx(l,t,Se,g),Rx(Rn,p,g);const Hi=n.listen(qn,p,g);Ve.push(g,Hi),ie&&ie.push(p,Nn,lr,lr+1)}}else g=Lx(l,t,Se,g);const Lt=l.outputs;let en;if(Ot&&null!==Lt&&(en=Lt[p])){const Rn=en.length;if(Rn)for(let qn=0;qn-1?P(e.index,t):t,5);let O=Nx(t,n,l,g),F=p.__ngNextListenerFn__;for(;F;)O=Nx(t,n,F,g)&&O,F=F.__ngNextListenerFn__;return O}}function Px(e=1){return function Qn(e){return(Wr.lFrame.contextLView=function pr(e,t){for(;e>0;)t=t[Va],e--;return t}(e,Wr.lFrame.contextLView))[Fr]}(e)}function CI(e,t){let n=null;const l=function db(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 p=0;pn._dirtyCounter.update(l=>l+1))}(t,I1(e,n,l,p))}function qx(e=1){Ht(It()+e)}function Jx(e){return K(function Aa(){return Wr.lFrame.contextLView}(),nt+e)}function cC(e,t=""){const n=wn(),l=gi(),p=e+nt,g=l.firstCreatePass?id(l,p,1,t,null):l.data[p],E=uC(l,n,g,t,e);n[p]=E,Ii()&&Yh(l,n,E,g),fs(g,!1)}let uC=(e,t,n,l,p)=>(Zi(!0),function Cm(e,t){return e.createText(t)}(t[Rr],l));function F0(e){return M_("",e,""),F0}function M_(e,t,n){const l=wn(),p=vp(l,e,t,n);return p!==Si&&function od(e,t,n){const l=Tr(t,e);!function Sv(e,t,n){e.setValue(t,n)}(e[Rr],l,n)}(l,ir(),p),M_}function B0(e,t,n){R1(t)&&(t=t());const l=wn();return Ks(l,Wa(),t)&&To(gi(),dr(),l,e,t,l[Rr],n,!1),B0}function yC(e,t){const n=R1(e);return n&&e.set(t),n}function U0(e,t){const n=wn(),l=gi(),p=Mi();return R0(l,n,n[Rr],p,e,t),U0}function $0(e,t,n,l,p){if(e=Ee(e),Array.isArray(e))for(let g=0;g>20;if(ni(e)||!e.multi){const Lt=new Ss(ie,p,Gd),en=V0(F,t,p?Se:Se+Ot,Ve);-1===en?(ah(hu(O,E),g,F),j0(g,e,t.length),t.push(F),O.directiveStart++,O.directiveEnd++,p&&(O.providerIndexes+=1048576),n.push(Lt),E.push(Lt)):(n[en]=Lt,E[en]=Lt)}else{const Lt=V0(F,t,Se+Ot,Ve),en=V0(F,t,Se,Se+Ot),qn=en>=0&&n[en];if(p&&!qn||!p&&!(Lt>=0&&n[Lt])){ah(hu(O,E),g,F);const lr=function HI(e,t,n,l,p){const g=new Ss(e,n,Gd);return g.multi=[],g.index=t,g.componentProviders=0,EC(g,p,l&&!n),g}(p?VI:jI,n.length,p,l,ie);!p&&qn&&(n[en].providerFactory=lr),j0(g,e,t.length,0),t.push(F),O.directiveStart++,O.directiveEnd++,p&&(O.providerIndexes+=1048576),n.push(lr),E.push(lr)}else j0(g,e,Lt>-1?Lt:en,EC(n[p?en:Lt],ie,!p&&l));!p&&l&&qn&&n[en].componentProviders++}}}function j0(e,t,n,l){const p=ni(t),g=function Do(e){return!!e.useClass}(t);if(p||g){const F=(g?Ee(t.useClass):t).prototype.ngOnDestroy;if(F){const ie=e.destroyHooks||(e.destroyHooks=[]);if(!p&&t.multi){const Se=ie.indexOf(n);-1===Se?ie.push(n,[l,F]):ie[Se+1].push(l,F)}else ie.push(n,F)}}}function EC(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function V0(e,t,n,l){for(let p=n;p{n.providersResolver=(l,p)=>function $I(e,t,n){const l=gi();if(l.firstCreatePass){const p=jo(e);$0(n,l.data,l.blueprint,p,!0),$0(t,l.data,l.blueprint,p,!1)}}(l,p?p(e):e,t)}}function DC(e,t,n){const l=js()+e,p=wn();return p[l]===Si?Mu(p,l,n?t.call(n):t()):tg(p,l)}function SC(e,t,n,l){return kC(wn(),js(),e,t,n,l)}function AC(e,t,n,l,p){return OC(wn(),js(),e,t,n,l,p)}function TC(e,t,n,l,p,g){return function RC(e,t,n,l,p,g,E,O){const F=t+n;return function h_(e,t,n,l,p){const g=tf(e,t,n,l);return Ks(e,t+2,p)||g}(e,F,p,g,E)?Mu(e,F+3,O?l.call(O,p,g,E):l(p,g,E)):hg(e,F+3)}(wn(),js(),e,t,n,l,p,g)}function MC(e,t,n,l,p,g,E){return function NC(e,t,n,l,p,g,E,O,F){const ie=t+n;return Lc(e,ie,p,g,E,O)?Mu(e,ie+4,F?l.call(F,p,g,E,O):l(p,g,E,O)):hg(e,ie+4)}(wn(),js(),e,t,n,l,p,g,E)}function IC(e,t,n,l,p,g,E,O,F,ie,Se){const Ve=js()+e,Ot=wn(),Lt=Lc(Ot,Ve,n,l,p,g);return Lc(Ot,Ve+4,E,O,F,ie)||Lt?Mu(Ot,Ve+8,Se?t.call(Se,n,l,p,g,E,O,F,ie):t(n,l,p,g,E,O,F,ie)):tg(Ot,Ve+8)}function hg(e,t){const n=e[t];return n===Si?void 0:n}function kC(e,t,n,l,p,g){const E=t+n;return Ks(e,E,p)?Mu(e,E+1,g?l.call(g,p):l(p)):hg(e,E+1)}function OC(e,t,n,l,p,g,E){const O=t+n;return tf(e,O,p,g)?Mu(e,O+2,E?l.call(E,p,g):l(p,g)):hg(e,O+2)}function PC(e,t){const n=gi();let l;const p=e+nt;n.firstCreatePass?(l=function ZI(e,t){if(t)for(let n=t.length-1;n>=0;n--){const l=t[n];if(e===l.name)return l}}(t,n.pipeRegistry),n.data[p]=l,l.onDestroy&&(n.destroyHooks??=[]).push(p,l.onDestroy)):l=n.data[p];const g=l.factory||(l.factory=ao(l.type)),O=wo(Gd);try{const F=hd(!1),ie=g();return hd(F),function P0(e,t,n,l){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=l}(n,wn(),p,ie),ie}finally{wo(O)}}function FC(e,t,n){const l=e+nt,p=wn(),g=K(p,l);return fg(p,l)?kC(p,js(),t,g.transform,n,g):g.transform(n)}function BC(e,t,n,l){const p=e+nt,g=wn(),E=K(g,p);return fg(g,p)?OC(g,js(),t,E.transform,n,l,E):E.transform(n,l)}function fg(e,t){return e[zn].data[t].pure}function UC(e,t){return qv(e,t)}class tD{full;major;minor;patch;constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}class Tk{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Mk=(()=>{class e{compileModuleSync(n){return new Yb(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const l=this.compileModuleSync(n),g=$l(Or(n).declarations).reduce((E,O)=>{const F=Dr(O);return F&&E.push(new Jm(F)),E},[]);return new Tk(l,g)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ok=(()=>{class e{zone=tr(Vo);changeDetectionScheduler=tr(Ll);applicationRef=tr(Pc);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Y0({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Vo({...Q0(),scheduleInRootZone:n}),[{provide:Vo,useFactory:e},{provide:ur,multi:!0,useFactory:()=>{const l=tr(Ok,{optional:!0});return()=>l.initialize()}},{provide:ur,multi:!0,useFactory:()=>{const l=tr(Nk);return()=>{l.initialize()}}},!0===t?{provide:Ef,useValue:!0}:[],{provide:_u,useValue:n??mh}]}function Q0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let Nk=(()=>{class e{subscription=new Qt.yU;initialized=!1;zone=tr(Vo);pendingTasks=tr(il);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(()=>{Vo.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Vo.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),mg=(()=>{class e{appRef=tr(Pc);taskService=tr(il);ngZone=tr(Vo);zonelessEnabled=tr(Hu);tracing=tr(Oh,{optional:!0});disableScheduling=tr(Ef,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Qt.yU;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Xc):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(tr(_u,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof wd||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&5===n)return;let l=!1;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 8:this.appRef.deferredDirtyFlags|=8;break;case 6:case 14:this.appRef.dirtyFlags|=2,l=!0;break;case 13:this.appRef.dirtyFlags|=16,l=!0;break;case 12:l=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(l))return;const p=this.useMicrotaskScheduler?Wu:yd;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>p(()=>this.tick())):this.ngZone.runOutsideAngular(()=>p(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Xc+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(l){throw this.taskService.remove(n),l}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Wu(()=>{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 \u0275fac=function(l){return new(l||e)};static \u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const q0=new ct("",{providedIn:"root",factory:()=>tr(q0,Sr.Optional|Sr.SkipSelf)||function Lk(){return typeof $localize<"u"&&$localize.locale||D_}()}),Pk=new ct("",{providedIn:"root",factory:()=>"USD"}),O_=new ct("");function R_(e){return!e.moduleRef}let eh=null;function zk(){return!1}let hD=(()=>class e{static __NG_ELEMENT_ID__=Kk})();function Kk(e){return function Gk(e,t,n){if(Wo(e)&&!n){const l=P(e.index,t);return new Vm(l,l)}return 175&e.type?new Vm(t[ro],t):null}(Mi(),wn(),!(16&~e))}class gD{constructor(){}supports(t){return d_(t)}create(t){return new qk(t)}}const Zk=(e,t)=>t;class qk{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||Zk}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,l=this._removalsHead,p=0,g=null;for(;n||l;){const E=!l||n&&n.currentIndex<_D(l,p,g)?n:l,O=_D(E,p,g),F=E.currentIndex;if(E===l)p--,l=l._nextRemoved;else if(n=n._next,null==E.previousIndex)p++;else{g||(g=[]);const ie=O-p,Se=F-p;if(ie!=Se){for(let Ot=0;Ot{E=this._trackByFn(p,O),null!==n&&Object.is(n.trackById,E)?(l&&(n=this._verifyReinsertion(n,O,E,p)),Object.is(n.item,O)||this._addIdentityChange(n,O)):(n=this._mismatch(n,O,E,p),l=!0),n=n._next,p++}),this.length=p;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,l,p){let g;return null===t?g=this._itTail:(g=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,g,p)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(l,p))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,g,p)):t=this._addAfter(new Jk(n,l),g,p),t}_verifyReinsertion(t,n,l,p){let g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null);return null!==g?t=this._reinsertAfter(g,t._prev,p):t.currentIndex!=p&&(t.currentIndex=p,this._addToMoves(t,p)),t}_truncate(t){for(;null!==t;){const 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,l){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const p=t._prevRemoved,g=t._nextRemoved;return null===p?this._removalsHead=g:p._nextRemoved=g,null===g?this._removalsTail=p:g._prevRemoved=p,this._insertAfter(t,n,l),this._addToMoves(t,l),t}_moveAfter(t,n,l){return this._unlink(t),this._insertAfter(t,n,l),this._addToMoves(t,l),t}_addAfter(t,n,l){return this._insertAfter(t,n,l),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,l){const p=null===n?this._itHead:n._next;return t._next=p,t._prev=n,null===p?this._itTail=t:p._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new vD),this._linkedRecords.put(t),t.currentIndex=l,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,l=t._next;return null===n?this._itHead=l:n._next=l,null===l?this._itTail=n:l._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 vD),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 Jk{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}}class eO{_head=null;_tail=null;add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let l;for(l=this._head;null!==l;l=l._nextDup)if((null===n||n<=l.currentIndex)&&Object.is(l.trackById,t))return l;return null}remove(t){const n=t._prevDup,l=t._nextDup;return null===n?this._head=l:n._nextDup=l,null===l?this._tail=n:l._prevDup=n,null===this._head}}class vD{map=new Map;put(t){const n=t.trackById;let l=this.map.get(n);l||(l=new eO,this.map.set(n,l)),l.add(t)}get(t,n){const p=this.map.get(t);return p?p.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 _D(e,t,n){const l=e.previousIndex;if(null===l)return l;let p=0;return n&&l{if(n&&n.key===p)this._maybeAddToChanges(n,l),this._appendAfter=n,n=n._next;else{const g=this._getOrCreateRecordForKey(p,l);n=this._insertBeforeOrAppend(n,g)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let l=n;null!==l;l=l._nextRemoved)l===this._mapHead&&(this._mapHead=null),this._records.delete(l.key),l._nextRemoved=l._next,l.previousValue=l.currentValue,l.currentValue=null,l._prev=null,l._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const l=t._prev;return n._next=t,n._prev=l,t._prev=n,l&&(l._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 p=this._records.get(t);this._maybeAddToChanges(p,n);const g=p._prev,E=p._next;return g&&(g._next=E),E&&(E._prev=g),p._next=null,p._prev=null,p}const l=new nO(t);return this._records.set(t,l),l.currentValue=n,this._addToAdditions(l),l}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,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(l=>n(t[l],l))}}class nO{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t}}function bD(){return new iw([new gD])}let iw=(()=>{class e{factories;static \u0275prov=oi({token:e,providedIn:"root",factory:bD});constructor(n){this.factories=n}static create(n,l){if(null!=l){const p=l.factories.slice();n=n.concat(p)}return new e(n)}static extend(n){return{provide:e,useFactory:l=>e.create(n,l||bD()),deps:[[e,new Qo,new sa]]}}find(n){const l=this.factories.find(p=>p.supports(n));if(null!=l)return l;throw new Gt(901,!1)}}return e})();function wD(){return new ow([new yD])}let ow=(()=>{class e{static \u0275prov=oi({token:e,providedIn:"root",factory:wD});factories;constructor(n){this.factories=n}static create(n,l){if(l){const p=l.factories.slice();n=n.concat(p)}return new e(n)}static extend(n){return{provide:e,useFactory:l=>e.create(n,l||wD()),deps:[[e,new Qo,new sa]]}}find(n){const l=this.factories.find(p=>p.supports(n));if(l)return l;throw new Gt(901,!1)}}return e})();function gO(e){try{const{rootComponent:t,appProviders:n,platformProviders:l}=e,p=function Wk(e=[]){if(eh)return eh;const t=function cD(e=[],t){return Ts.create({name:t,providers:[{provide:qo,useValue:"platform"},{provide:O_,useValue:new Set([()=>eh=null])},...e]})}(e);return eh=t,function SE(){!function bt(e){bn=e}(()=>{throw new Gt(600,!1)})}(),function uD(e){const t=e.get(Ws,null);ja(e,()=>{t?.forEach(n=>n())})}(t),t}(l),g=[Y0({}),{provide:Ll,useExisting:mg},...n||[]];return function sD(e){const t=R_(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Vo);return n.run(()=>{R_(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const l=t.get(Ac,null);let p;if(n.runOutsideAngular(()=>{p=n.onError.subscribe({next:g=>{l.handleError(g)}})}),R_(e)){const g=()=>t.destroy(),E=e.platformInjector.get(O_);E.add(g),t.onDestroy(()=>{p.unsubscribe(),E.delete(g)})}else{const g=()=>e.moduleRef.destroy(),E=e.platformInjector.get(O_);E.add(g),e.moduleRef.onDestroy(()=>{v_(e.allPlatformModules,e.moduleRef),p.unsubscribe(),E.delete(g)})}return function lT(e,t,n){try{const l=n();return a0(l)?l.catch(p=>{throw t.runOutsideAngular(()=>e.handleError(p)),p}):l}catch(l){throw t.runOutsideAngular(()=>e.handleError(l)),l}}(l,n,()=>{const g=t.get(CE);return g.runInitializers(),g.donePromise.then(()=>{if(function BM(e){"string"==typeof e&&(mx=e.toLowerCase().replace(/_/g,"-"))}(t.get(q0,D_)||D_),R_(e)){const O=t.get(Pc);return void 0!==e.rootComponent&&O.bootstrap(e.rootComponent),O}return function jk(e,t){const n=e.injector.get(Pc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(l=>n.bootstrap(l));else{if(!e.instance.ngDoBootstrap)throw new Gt(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new K1({providers:g,parent:p,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:p,rootComponent:t})}catch(t){return Promise.reject(t)}}function UO(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function $O(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function cw(e,t){pa("NgSignals");const n=vt(e);return t?.equal&&(n[C].equal=t.equal),n}function Ip(e){const t=T(null);try{return e()}finally{T(t)}}let YD=(()=>class e{view;node;constructor(n,l){this.view=n,this.node=l}static __NG_ELEMENT_ID__=KO})();function KO(){return new YD(wn(),Mi())}let XO=(()=>{class e extends DE{pendingTasks=tr(il);taskId=null;schedule(n){super.schedule(n),null===this.taskId&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{null!==this.taskId&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=oi({token:e,providedIn:"root",factory:()=>new e})}return e})();class YO{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(t,n,l,p,g,E){this.scheduler=t,this.effectFn=n,this.zone=l,this.injector=g,this.watcher=function Ze(e,t,n){const l=Object.create(Jt);n&&(l.consumerAllowSignalWrites=!0),l.fn=e,l.schedule=t;const p=F=>{l.cleanupFn=F};return l.ref={notify:()=>pe(l),run:()=>{if(null===l.fn)return;if(function A(){return y}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(l.dirty=!1,l.hasRun&&!Me(l))return;l.hasRun=!0;const F=xe(l);try{l.cleanupFn(),l.cleanupFn=Rt,l.fn(p)}finally{Re(l,F)}},cleanup:()=>l.cleanupFn(),destroy:()=>function E(F){(function g(F){return null===F.fn&&null===F.schedule})(F)||(Ce(F),F.cleanupFn(),F.fn=null,F.schedule=null,F.cleanupFn=Rt)}(l),[C]:l},l.ref}(O=>this.runEffect(O),()=>this.schedule(),E),this.unregisterOnDestroy=p?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Ac,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}let uw=!1;class qO{[C];constructor(t){this[C]=t}destroy(){this[C].destroy()}}function dw(e,t){if(uw)return function ZO(e,t){pa("NgSignals"),!t?.injector&&ba();const n=t?.injector??tr(Ts),l=!0!==t?.manualCleanup?n.get(hc):null,p=new YO(n.get(XO),e,typeof Zone>"u"?null:Zone.current,l,n,t?.allowSignalWrites??!1),g=n.get(hD,null,{optional:!0});return g&&8&g._lView[Ar]?(g._lView[de]??=[]).push(p.watcher.notify):p.watcher.notify(),p}(e,t);pa("NgSignals"),!t?.injector&&ba();const n=t?.injector??tr(Ts);let p,l=!0!==t?.manualCleanup?n.get(hc):null;const g=n.get(YD,null,{optional:!0}),E=n.get(Ll);return null===g||t?.forceRoot?p=function nR(e,t,n){const l=Object.create(JO);return l.fn=e,l.scheduler=t,l.notifier=n,l.zone=typeof Zone<"u"?Zone.current:null,l.scheduler.schedule(l),l.notifier.notify(13),l}(e,n.get(c0),E):(p=function tR(e,t,n){const l=Object.create(eR);return l.view=e,l.zone=typeof Zone<"u"?Zone.current:null,l.notifier=t,l.fn=n,e[q]??=new Set,e[q].add(l),l.consumerMarkedDirty(l),l}(g.view,E,e),l instanceof rl&&l._lView===g.view&&(l=null)),p.injector=n,null!==l&&(p.onDestroyFn=l.onDestroy(()=>p.destroy())),new qO(p)}const QD={...N,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,onDestroyFn:yu,run(){if(this.dirty=!1,this.hasRun&&!Me(this))return;this.hasRun=!0;const e=l=>(this.cleanupFns??=[]).push(l),t=xe(this),n=ea(!1);try{this.maybeCleanup(),this.fn(e)}finally{ea(n),Re(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}},JO={...QD,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){Ce(this),this.onDestroyFn(),this.maybeCleanup()}},eR={...QD,consumerMarkedDirty(){this.view[Ar]|=8192,io(this.view),this.notifier.notify(14)},destroy(){Ce(this),this.onDestroyFn(),this.maybeCleanup(),this.view[q]?.delete(this)}};function uR(e,t){const n=Dr(e),l=t.elementInjector||wl();return new Jm(n).create(l,t.projectableNodes,t.hostElement,t.environmentInjector)}function dR(e){const t=Dr(e);if(!t)return null;const n=new Jm(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:(o,s,r)=>{"use strict";r.d(s,{BC:()=>an,JD:()=>tr,Q0:()=>ma,X1:()=>ya,YN:()=>Qa,cV:()=>kn,cb:()=>Xn,cz:()=>Te,hs:()=>kr,j4:()=>rs,k0:()=>Me,kq:()=>A,l_:()=>ns,me:()=>be,ok:()=>lo,qT:()=>Sr,tU:()=>Ln,vO:()=>fn,vS:()=>ia,xq:()=>Ya,ze:()=>Oo});var i=r(4438),a=r(177),c=r(6648),y=r(7468),w=r(1413),C=r(6354);let T=(()=>{class ue{_renderer;_elementRef;onChange=Q=>{};onTouched=()=>{};constructor(Q,Le){this._renderer=Q,this._elementRef=Le}setProperty(Q,Le){this._renderer.setProperty(this._elementRef.nativeElement,Q,Le)}registerOnTouched(Q){this.onTouched=Q}registerOnChange(Q){this.onChange=Q}setDisabledState(Q){this.setProperty("disabled",Q)}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(i.sFG),i.rXU(i.aKT))};static \u0275dir=i.FsC({type:ue})}return ue})(),S=(()=>{class ue extends T{static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,features:[i.Vt3]})}return ue})();const A=new i.nKC(""),G={provide:A,useExisting:(0,i.Rfq)(()=>be),multi:!0},ne=new i.nKC("");let be=(()=>{class ue extends T{_compositionMode;_composing=!1;constructor(Q,Le,Ut){super(Q,Le),this._compositionMode=Ut,null==this._compositionMode&&(this._compositionMode=!function Z(){const ue=(0,a.QT)()?(0,a.QT)().getUserAgent():"";return/android (\d+)/.test(ue.toLowerCase())}())}writeValue(Q){this.setProperty("value",Q??"")}_handleInput(Q){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Q)}_compositionStart(){this._composing=!0}_compositionEnd(Q){this._composing=!1,this._compositionMode&&this.onChange(Q)}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(ne,8))};static \u0275dir=i.FsC({type:ue,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(Le,Ut){1&Le&&i.bIt("input",function(ni){return Ut._handleInput(ni.target.value)})("blur",function(){return Ut.onTouched()})("compositionstart",function(){return Ut._compositionStart()})("compositionend",function(ni){return Ut._compositionEnd(ni.target.value)})},standalone:!1,features:[i.Jv_([G]),i.Vt3]})}return ue})();function me(ue){return null==ue||("string"==typeof ue||Array.isArray(ue))&&0===ue.length}function pe(ue){return null!=ue&&"number"==typeof ue.length}const Te=new i.nKC(""),xe=new i.nKC(""),Re=/^(?=.{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 Me{static min(ce){return function Ce(ue){return ce=>{if(me(ce.value)||me(ue))return null;const Q=parseFloat(ce.value);return!isNaN(Q)&&Q{if(me(ce.value)||me(ue))return null;const Q=parseFloat(ce.value);return!isNaN(Q)&&Q>ue?{max:{max:ue,actual:ce.value}}:null}}(ce)}static required(ce){return ae(ce)}static requiredTrue(ce){return Ie(ce)}static email(ce){return function $e(ue){return me(ue.value)||Re.test(ue.value)?null:{email:!0}}(ce)}static minLength(ce){return function st(ue){return ce=>me(ce.value)||!pe(ce.value)?null:ce.value.length{if(me(Le.value))return null;const Ut=Le.value;return ce.test(Ut)?null:{pattern:{requiredPattern:Q,actualValue:Ut}}}}(ce)}static nullValidator(ce){return null}static compose(ce){return bt(ce)}static composeAsync(ce){return Fe(ce)}}function ae(ue){return me(ue.value)?{required:!0}:null}function Ie(ue){return!0===ue.value?null:{required:!0}}function ht(ue){return ce=>pe(ce.value)&&ce.value.length>ue?{maxlength:{requiredLength:ue,actualLength:ce.value.length}}:null}function at(ue){return null}function Xt(ue){return null!=ue}function ln(ue){return(0,i.jNT)(ue)?(0,c.H)(ue):ue}function yn(ue){let ce={};return ue.forEach(Q=>{ce=null!=Q?{...ce,...Q}:ce}),0===Object.keys(ce).length?null:ce}function $n(ue,ce){return ce.map(Q=>Q(ue))}function Qe(ue){return ue.map(ce=>function bn(ue){return!ue.validate}(ce)?ce:Q=>ce.validate(Q))}function bt(ue){if(!ue)return null;const ce=ue.filter(Xt);return 0==ce.length?null:function(Q){return yn($n(Q,ce))}}function ze(ue){return null!=ue?bt(Qe(ue)):null}function Fe(ue){if(!ue)return null;const ce=ue.filter(Xt);return 0==ce.length?null:function(Q){const Le=$n(Q,ce).map(ln);return(0,y.p)(Le).pipe((0,C.T)(yn))}}function Ft(ue){return null!=ue?Fe(Qe(ue)):null}function Ke(ue,ce){return null===ue?[ce]:Array.isArray(ue)?[...ue,ce]:[ue,ce]}function dt(ue){return ue._rawValidators}function Ge(ue){return ue._rawAsyncValidators}function He(ue){return ue?Array.isArray(ue)?ue:[ue]:[]}function mt(ue,ce){return Array.isArray(ue)?ue.includes(ce):ue===ce}function se(ue,ce){const Q=He(ce);return He(ue).forEach(Ut=>{mt(Q,Ut)||Q.push(Ut)}),Q}function Ze(ue,ce){return He(ce).filter(Q=>!mt(ue,Q))}class Rt{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(ce){this._rawValidators=ce||[],this._composedValidatorFn=ze(this._rawValidators)}_setAsyncValidators(ce){this._rawAsyncValidators=ce||[],this._composedAsyncValidatorFn=Ft(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(ce){this._onDestroyCallbacks.push(ce)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ce=>ce()),this._onDestroyCallbacks=[]}reset(ce=void 0){this.control&&this.control.reset(ce)}hasError(ce,Q){return!!this.control&&this.control.hasError(ce,Q)}getError(ce,Q){return this.control?this.control.getError(ce,Q):null}}class Jt extends Rt{name;get formDirective(){return null}get path(){return null}}class fn extends Rt{_parent=null;name=null;valueAccessor=null}class Gn{_cd;constructor(ce){this._cd=ce}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 an=(()=>{class ue extends Gn{constructor(Q){super(Q)}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(fn,2))};static \u0275dir=i.FsC({type:ue,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Le,Ut){2&Le&&i.AVh("ng-untouched",Ut.isUntouched)("ng-touched",Ut.isTouched)("ng-pristine",Ut.isPristine)("ng-dirty",Ut.isDirty)("ng-valid",Ut.isValid)("ng-invalid",Ut.isInvalid)("ng-pending",Ut.isPending)},standalone:!1,features:[i.Vt3]})}return ue})(),Xn=(()=>{class ue extends Gn{constructor(Q){super(Q)}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Jt,10))};static \u0275dir=i.FsC({type:ue,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Le,Ut){2&Le&&i.AVh("ng-untouched",Ut.isUntouched)("ng-touched",Ut.isTouched)("ng-pristine",Ut.isPristine)("ng-dirty",Ut.isDirty)("ng-valid",Ut.isValid)("ng-invalid",Ut.isInvalid)("ng-pending",Ut.isPending)("ng-submitted",Ut.isSubmitted)},standalone:!1,features:[i.Vt3]})}return ue})();const Pn="VALID",Fn="INVALID",Bn="PENDING",cr="DISABLED";class Jr{}class Xr extends Jr{value;source;constructor(ce,Q){super(),this.value=ce,this.source=Q}}class _t extends Jr{pristine;source;constructor(ce,Q){super(),this.pristine=ce,this.source=Q}}class Bt extends Jr{touched;source;constructor(ce,Q){super(),this.touched=ce,this.source=Q}}class Ee extends Jr{status;source;constructor(ce,Q){super(),this.status=ce,this.source=Q}}class lt extends Jr{source;constructor(ce){super(),this.source=ce}}class Pe extends Jr{source;constructor(ce){super(),this.source=ce}}function kt(ue){return(or(ue)?ue.validators:ue)||null}function Pt(ue,ce){return(or(ce)?ce.asyncValidators:ue)||null}function or(ue){return null!=ue&&!Array.isArray(ue)&&"object"==typeof ue}function Mr(ue,ce,Q){const Le=ue.controls;if(!(ce?Object.keys(Le):Le).length)throw new i.wOt(1e3,"");if(!Le[Q])throw new i.wOt(1001,"")}function ii(ue,ce,Q){ue._forEachChild((Le,Ut)=>{if(void 0===Q[Ut])throw new i.wOt(1002,"")})}class ci{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(ce,Q){this._assignValidators(ce),this._assignAsyncValidators(Q)}get validator(){return this._composedValidatorFn}set validator(ce){this._rawValidators=this._composedValidatorFn=ce}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ce){this._rawAsyncValidators=this._composedAsyncValidatorFn=ce}get parent(){return this._parent}get status(){return(0,i.O8t)(this.statusReactive)}set status(ce){(0,i.O8t)(()=>this.statusReactive.set(ce))}_status=(0,i.EWP)(()=>this.statusReactive());statusReactive=(0,i.vPA)(void 0);get valid(){return this.status===Pn}get invalid(){return this.status===Fn}get pending(){return this.status==Bn}get disabled(){return this.status===cr}get enabled(){return this.status!==cr}errors;get pristine(){return(0,i.O8t)(this.pristineReactive)}set pristine(ce){(0,i.O8t)(()=>this.pristineReactive.set(ce))}_pristine=(0,i.EWP)(()=>this.pristineReactive());pristineReactive=(0,i.vPA)(!0);get dirty(){return!this.pristine}get touched(){return(0,i.O8t)(this.touchedReactive)}set touched(ce){(0,i.O8t)(()=>this.touchedReactive.set(ce))}_touched=(0,i.EWP)(()=>this.touchedReactive());touchedReactive=(0,i.vPA)(!1);get untouched(){return!this.touched}_events=new w.B;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ce){this._assignValidators(ce)}setAsyncValidators(ce){this._assignAsyncValidators(ce)}addValidators(ce){this.setValidators(se(ce,this._rawValidators))}addAsyncValidators(ce){this.setAsyncValidators(se(ce,this._rawAsyncValidators))}removeValidators(ce){this.setValidators(Ze(ce,this._rawValidators))}removeAsyncValidators(ce){this.setAsyncValidators(Ze(ce,this._rawAsyncValidators))}hasValidator(ce){return mt(this._rawValidators,ce)}hasAsyncValidator(ce){return mt(this._rawAsyncValidators,ce)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ce={}){const Q=!1===this.touched;this.touched=!0;const Le=ce.sourceControl??this;this._parent&&!ce.onlySelf&&this._parent.markAsTouched({...ce,sourceControl:Le}),Q&&!1!==ce.emitEvent&&this._events.next(new Bt(!0,Le))}markAllAsTouched(ce={}){this.markAsTouched({onlySelf:!0,emitEvent:ce.emitEvent,sourceControl:this}),this._forEachChild(Q=>Q.markAllAsTouched(ce))}markAsUntouched(ce={}){const Q=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const Le=ce.sourceControl??this;this._forEachChild(Ut=>{Ut.markAsUntouched({onlySelf:!0,emitEvent:ce.emitEvent,sourceControl:Le})}),this._parent&&!ce.onlySelf&&this._parent._updateTouched(ce,Le),Q&&!1!==ce.emitEvent&&this._events.next(new Bt(!1,Le))}markAsDirty(ce={}){const Q=!0===this.pristine;this.pristine=!1;const Le=ce.sourceControl??this;this._parent&&!ce.onlySelf&&this._parent.markAsDirty({...ce,sourceControl:Le}),Q&&!1!==ce.emitEvent&&this._events.next(new _t(!1,Le))}markAsPristine(ce={}){const Q=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const Le=ce.sourceControl??this;this._forEachChild(Ut=>{Ut.markAsPristine({onlySelf:!0,emitEvent:ce.emitEvent})}),this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce,Le),Q&&!1!==ce.emitEvent&&this._events.next(new _t(!0,Le))}markAsPending(ce={}){this.status=Bn;const Q=ce.sourceControl??this;!1!==ce.emitEvent&&(this._events.next(new Ee(this.status,Q)),this.statusChanges.emit(this.status)),this._parent&&!ce.onlySelf&&this._parent.markAsPending({...ce,sourceControl:Q})}disable(ce={}){const Q=this._parentMarkedDirty(ce.onlySelf);this.status=cr,this.errors=null,this._forEachChild(Ut=>{Ut.disable({...ce,onlySelf:!0})}),this._updateValue();const Le=ce.sourceControl??this;!1!==ce.emitEvent&&(this._events.next(new Xr(this.value,Le)),this._events.next(new Ee(this.status,Le)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ce,skipPristineCheck:Q},this),this._onDisabledChange.forEach(Ut=>Ut(!0))}enable(ce={}){const Q=this._parentMarkedDirty(ce.onlySelf);this.status=Pn,this._forEachChild(Le=>{Le.enable({...ce,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ce.emitEvent}),this._updateAncestors({...ce,skipPristineCheck:Q},this),this._onDisabledChange.forEach(Le=>Le(!1))}_updateAncestors(ce,Q){this._parent&&!ce.onlySelf&&(this._parent.updateValueAndValidity(ce),ce.skipPristineCheck||this._parent._updatePristine({},Q),this._parent._updateTouched({},Q))}setParent(ce){this._parent=ce}getRawValue(){return this.value}updateValueAndValidity(ce={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const Le=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Pn||this.status===Bn)&&this._runAsyncValidator(Le,ce.emitEvent)}const Q=ce.sourceControl??this;!1!==ce.emitEvent&&(this._events.next(new Xr(this.value,Q)),this._events.next(new Ee(this.status,Q)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ce.onlySelf&&this._parent.updateValueAndValidity({...ce,sourceControl:Q})}_updateTreeValidity(ce={emitEvent:!0}){this._forEachChild(Q=>Q._updateTreeValidity(ce)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ce.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?cr:Pn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ce,Q){if(this.asyncValidator){this.status=Bn,this._hasOwnPendingAsyncValidator={emitEvent:!1!==Q};const Le=ln(this.asyncValidator(this));this._asyncValidationSubscription=Le.subscribe(Ut=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(Ut,{emitEvent:Q,shouldHaveEmitted:ce})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const ce=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,ce}return!1}setErrors(ce,Q={}){this.errors=ce,this._updateControlsErrors(!1!==Q.emitEvent,this,Q.shouldHaveEmitted)}get(ce){let Q=ce;return null==Q||(Array.isArray(Q)||(Q=Q.split(".")),0===Q.length)?null:Q.reduce((Le,Ut)=>Le&&Le._find(Ut),this)}getError(ce,Q){const Le=Q?this.get(Q):this;return Le&&Le.errors?Le.errors[ce]:null}hasError(ce,Q){return!!this.getError(ce,Q)}get root(){let ce=this;for(;ce._parent;)ce=ce._parent;return ce}_updateControlsErrors(ce,Q,Le){this.status=this._calculateStatus(),ce&&this.statusChanges.emit(this.status),(ce||Le)&&this._events.next(new Ee(this.status,Q)),this._parent&&this._parent._updateControlsErrors(ce,Q,Le)}_initObservables(){this.valueChanges=new i.bkB,this.statusChanges=new i.bkB}_calculateStatus(){return this._allControlsDisabled()?cr:this.errors?Fn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Bn)?Bn:this._anyControlsHaveStatus(Fn)?Fn:Pn}_anyControlsHaveStatus(ce){return this._anyControls(Q=>Q.status===ce)}_anyControlsDirty(){return this._anyControls(ce=>ce.dirty)}_anyControlsTouched(){return this._anyControls(ce=>ce.touched)}_updatePristine(ce,Q){const Le=!this._anyControlsDirty(),Ut=this.pristine!==Le;this.pristine=Le,this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce,Q),Ut&&this._events.next(new _t(this.pristine,Q))}_updateTouched(ce={},Q){this.touched=this._anyControlsTouched(),this._events.next(new Bt(this.touched,Q)),this._parent&&!ce.onlySelf&&this._parent._updateTouched(ce,Q)}_onDisabledChange=[];_registerOnCollectionChange(ce){this._onCollectionChange=ce}_setUpdateStrategy(ce){or(ce)&&null!=ce.updateOn&&(this._updateOn=ce.updateOn)}_parentMarkedDirty(ce){return!ce&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ce){return null}_assignValidators(ce){this._rawValidators=Array.isArray(ce)?ce.slice():ce,this._composedValidatorFn=function ft(ue){return Array.isArray(ue)?ze(ue):ue||null}(this._rawValidators)}_assignAsyncValidators(ce){this._rawAsyncValidators=Array.isArray(ce)?ce.slice():ce,this._composedAsyncValidatorFn=function mn(ue){return Array.isArray(ue)?Ft(ue):ue||null}(this._rawAsyncValidators)}}class Ai extends ci{constructor(ce,Q,Le){super(kt(Q),Pt(Le,Q)),this.controls=ce,this._initObservables(),this._setUpdateStrategy(Q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(ce,Q){return this.controls[ce]?this.controls[ce]:(this.controls[ce]=Q,Q.setParent(this),Q._registerOnCollectionChange(this._onCollectionChange),Q)}addControl(ce,Q,Le={}){this.registerControl(ce,Q),this.updateValueAndValidity({emitEvent:Le.emitEvent}),this._onCollectionChange()}removeControl(ce,Q={}){this.controls[ce]&&this.controls[ce]._registerOnCollectionChange(()=>{}),delete this.controls[ce],this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}setControl(ce,Q,Le={}){this.controls[ce]&&this.controls[ce]._registerOnCollectionChange(()=>{}),delete this.controls[ce],Q&&this.registerControl(ce,Q),this.updateValueAndValidity({emitEvent:Le.emitEvent}),this._onCollectionChange()}contains(ce){return this.controls.hasOwnProperty(ce)&&this.controls[ce].enabled}setValue(ce,Q={}){ii(this,0,ce),Object.keys(ce).forEach(Le=>{Mr(this,!0,Le),this.controls[Le].setValue(ce[Le],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(ce,Q={}){null!=ce&&(Object.keys(ce).forEach(Le=>{const Ut=this.controls[Le];Ut&&Ut.patchValue(ce[Le],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(ce={},Q={}){this._forEachChild((Le,Ut)=>{Le.reset(ce?ce[Ut]:null,{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q,this),this._updateTouched(Q,this),this.updateValueAndValidity(Q)}getRawValue(){return this._reduceChildren({},(ce,Q,Le)=>(ce[Le]=Q.getRawValue(),ce))}_syncPendingControls(){let ce=this._reduceChildren(!1,(Q,Le)=>!!Le._syncPendingControls()||Q);return ce&&this.updateValueAndValidity({onlySelf:!0}),ce}_forEachChild(ce){Object.keys(this.controls).forEach(Q=>{const Le=this.controls[Q];Le&&ce(Le,Q)})}_setUpControls(){this._forEachChild(ce=>{ce.setParent(this),ce._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ce){for(const[Q,Le]of Object.entries(this.controls))if(this.contains(Q)&&ce(Le))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Q,Le,Ut)=>((Le.enabled||this.disabled)&&(Q[Ut]=Le.value),Q))}_reduceChildren(ce,Q){let Le=ce;return this._forEachChild((Ut,vr)=>{Le=Q(Le,Ut,vr)}),Le}_allControlsDisabled(){for(const ce of Object.keys(this.controls))if(this.controls[ce].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ce){return this.controls.hasOwnProperty(ce)?this.controls[ce]:null}}class Dt extends Ai{}const Hn=new i.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>fr}),fr="always";function uo(ue,ce){return[...ce.path,ue]}function Oi(ue,ce,Q=fr){so(ue,ce),ce.valueAccessor.writeValue(ue.value),(ue.disabled||"always"===Q)&&ce.valueAccessor.setDisabledState?.(ue.disabled),function Xo(ue,ce){ce.valueAccessor.registerOnChange(Q=>{ue._pendingValue=Q,ue._pendingChange=!0,ue._pendingDirty=!0,"change"===ue.updateOn&&Is(ue,ce)})}(ue,ce),function eo(ue,ce){const Q=(Le,Ut)=>{ce.valueAccessor.writeValue(Le),Ut&&ce.viewToModelUpdate(Le)};ue.registerOnChange(Q),ce._registerOnDestroy(()=>{ue._unregisterOnChange(Q)})}(ue,ce),function Co(ue,ce){ce.valueAccessor.registerOnTouched(()=>{ue._pendingTouched=!0,"blur"===ue.updateOn&&ue._pendingChange&&Is(ue,ce),"submit"!==ue.updateOn&&ue.markAsTouched()})}(ue,ce),function ts(ue,ce){if(ce.valueAccessor.setDisabledState){const Q=Le=>{ce.valueAccessor.setDisabledState(Le)};ue.registerOnDisabledChange(Q),ce._registerOnDestroy(()=>{ue._unregisterOnDisabledChange(Q)})}}(ue,ce)}function Uo(ue,ce,Q=!0){const Le=()=>{};ce.valueAccessor&&(ce.valueAccessor.registerOnChange(Le),ce.valueAccessor.registerOnTouched(Le)),bo(ue,ce),ue&&(ce._invokeOnDestroyCallbacks(),ue._registerOnCollectionChange(()=>{}))}function oi(ue,ce){ue.forEach(Q=>{Q.registerOnValidatorChange&&Q.registerOnValidatorChange(ce)})}function so(ue,ce){const Q=dt(ue);null!==ce.validator?ue.setValidators(Ke(Q,ce.validator)):"function"==typeof Q&&ue.setValidators([Q]);const Le=Ge(ue);null!==ce.asyncValidator?ue.setAsyncValidators(Ke(Le,ce.asyncValidator)):"function"==typeof Le&&ue.setAsyncValidators([Le]);const Ut=()=>ue.updateValueAndValidity();oi(ce._rawValidators,Ut),oi(ce._rawAsyncValidators,Ut)}function bo(ue,ce){let Q=!1;if(null!==ue){if(null!==ce.validator){const Ut=dt(ue);if(Array.isArray(Ut)&&Ut.length>0){const vr=Ut.filter(ni=>ni!==ce.validator);vr.length!==Ut.length&&(Q=!0,ue.setValidators(vr))}}if(null!==ce.asyncValidator){const Ut=Ge(ue);if(Array.isArray(Ut)&&Ut.length>0){const vr=Ut.filter(ni=>ni!==ce.asyncValidator);vr.length!==Ut.length&&(Q=!0,ue.setAsyncValidators(vr))}}}const Le=()=>{};return oi(ce._rawValidators,Le),oi(ce._rawAsyncValidators,Le),Q}function Is(ue,ce){ue._pendingDirty&&ue.markAsDirty(),ue.setValue(ue._pendingValue,{emitModelToViewChange:!1}),ce.viewToModelUpdate(ue._pendingValue),ue._pendingChange=!1}function oo(ue,ce){so(ue,ce)}function et(ue,ce){if(!ue.hasOwnProperty("model"))return!1;const Q=ue.model;return!!Q.isFirstChange()||!Object.is(ce,Q.currentValue)}function pt(ue,ce){ue._syncPendingControls(),ce.forEach(Q=>{const Le=Q.control;"submit"===Le.updateOn&&Le._pendingChange&&(Q.viewToModelUpdate(Le._pendingValue),Le._pendingChange=!1)})}function $t(ue,ce){if(!ce)return null;let Q,Le,Ut;return Array.isArray(ce),ce.forEach(vr=>{vr.constructor===be?Q=vr:function Oe(ue){return Object.getPrototypeOf(ue.constructor)===S}(vr)?Le=vr:Ut=vr}),Ut||Le||Q||null}const Cn={provide:Jt,useExisting:(0,i.Rfq)(()=>kn)},Sn=Promise.resolve();let kn=(()=>{class ue extends Jt{callSetDisabledState;get submitted(){return(0,i.O8t)(this.submittedReactive)}_submitted=(0,i.EWP)(()=>this.submittedReactive());submittedReactive=(0,i.vPA)(!1);_directives=new Set;form;ngSubmit=new i.bkB;options;constructor(Q,Le,Ut){super(),this.callSetDisabledState=Ut,this.form=new Ai({},ze(Q),Ft(Le))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Q){Sn.then(()=>{const Le=this._findContainer(Q.path);Q.control=Le.registerControl(Q.name,Q.control),Oi(Q.control,Q,this.callSetDisabledState),Q.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Q)})}getControl(Q){return this.form.get(Q.path)}removeControl(Q){Sn.then(()=>{const Le=this._findContainer(Q.path);Le&&Le.removeControl(Q.name),this._directives.delete(Q)})}addFormGroup(Q){Sn.then(()=>{const Le=this._findContainer(Q.path),Ut=new Ai({});oo(Ut,Q),Le.registerControl(Q.name,Ut),Ut.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Q){Sn.then(()=>{const Le=this._findContainer(Q.path);Le&&Le.removeControl(Q.name)})}getFormGroup(Q){return this.form.get(Q.path)}updateModel(Q,Le){Sn.then(()=>{this.form.get(Q.path).setValue(Le)})}setValue(Q){this.control.setValue(Q)}onSubmit(Q){return this.submittedReactive.set(!0),pt(this.form,this._directives),this.ngSubmit.emit(Q),"dialog"===Q?.target?.method}onReset(){this.resetForm()}resetForm(Q=void 0){this.form.reset(Q),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Q){return Q.pop(),Q.length?this.form.get(Q):this.form}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Te,10),i.rXU(xe,10),i.rXU(Hn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Le,Ut){1&Le&&i.bIt("submit",function(ni){return Ut.onSubmit(ni)})("reset",function(){return Ut.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([Cn]),i.Vt3]})}return ue})();function Un(ue,ce){const Q=ue.indexOf(ce);Q>-1&&ue.splice(Q,1)}function Jn(ue){return"object"==typeof ue&&null!==ue&&2===Object.keys(ue).length&&"value"in ue&&"disabled"in ue}const sr=class extends ci{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(ce=null,Q,Le){super(kt(Q),Pt(Le,Q)),this._applyFormState(ce),this._setUpdateStrategy(Q),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),or(Q)&&(Q.nonNullable||Q.initialValueIsDefault)&&(this.defaultValue=Jn(ce)?ce.value:ce)}setValue(ce,Q={}){this.value=this._pendingValue=ce,this._onChange.length&&!1!==Q.emitModelToViewChange&&this._onChange.forEach(Le=>Le(this.value,!1!==Q.emitViewToModelChange)),this.updateValueAndValidity(Q)}patchValue(ce,Q={}){this.setValue(ce,Q)}reset(ce=this.defaultValue,Q={}){this._applyFormState(ce),this.markAsPristine(Q),this.markAsUntouched(Q),this.setValue(this.value,Q),this._pendingChange=!1}_updateValue(){}_anyControls(ce){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ce){this._onChange.push(ce)}_unregisterOnChange(ce){Un(this._onChange,ce)}registerOnDisabledChange(ce){this._onDisabledChange.push(ce)}_unregisterOnDisabledChange(ce){Un(this._onDisabledChange,ce)}_forEachChild(ce){}_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(ce){Jn(ce)?(this.value=this._pendingValue=ce.value,ce.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ce}},kr=sr,cs={provide:fn,useExisting:(0,i.Rfq)(()=>ia)},ws=Promise.resolve();let ia=(()=>{class ue extends fn{_changeDetectorRef;callSetDisabledState;control=new sr;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new i.bkB;constructor(Q,Le,Ut,vr,ni,Do){super(),this._changeDetectorRef=ni,this.callSetDisabledState=Do,this._parent=Q,this._setValidators(Le),this._setAsyncValidators(Ut),this.valueAccessor=$t(0,vr)}ngOnChanges(Q){if(this._checkForErrors(),!this._registered||"name"in Q){if(this._registered&&(this._checkName(),this.formDirective)){const Le=Q.name.previousValue;this.formDirective.removeControl({name:Le,path:this._getPath(Le)})}this._setUpControl()}"isDisabled"in Q&&this._updateDisabled(Q),et(Q,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Q){this.viewModel=Q,this.update.emit(Q)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Oi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Q){ws.then(()=>{this.control.setValue(Q,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Q){const Le=Q.isDisabled.currentValue,Ut=0!==Le&&(0,i.L39)(Le);ws.then(()=>{Ut&&!this.control.disabled?this.control.disable():!Ut&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Q){return this._parent?uo(Q,this._parent):[Q]}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Jt,9),i.rXU(Te,10),i.rXU(xe,10),i.rXU(A,10),i.rXU(i.gRc,8),i.rXU(Hn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[i.Jv_([cs]),i.Vt3,i.OA$]})}return ue})(),Sr=(()=>{class ue{static \u0275fac=function(Le){return new(Le||ue)};static \u0275dir=i.FsC({type:ue,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return ue})();const oa={provide:A,useExisting:(0,i.Rfq)(()=>ma),multi:!0};let ma=(()=>{class ue extends S{writeValue(Q){this.setProperty("value",Q??"")}registerOnChange(Q){this.onChange=Le=>{Q(""==Le?null:parseFloat(Le))}}static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Le,Ut){1&Le&&i.bIt("input",function(ni){return Ut.onChange(ni.target.value)})("blur",function(){return Ut.onTouched()})},standalone:!1,features:[i.Jv_([oa]),i.Vt3]})}return ue})();const Ni=new i.nKC(""),Fs={provide:fn,useExisting:(0,i.Rfq)(()=>ns)};let ns=(()=>{class ue extends fn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(Q){}model;update=new i.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Q,Le,Ut,vr,ni){super(),this._ngModelWarningConfig=vr,this.callSetDisabledState=ni,this._setValidators(Q),this._setAsyncValidators(Le),this.valueAccessor=$t(0,Ut)}ngOnChanges(Q){if(this._isControlChanged(Q)){const Le=Q.form.previousValue;Le&&Uo(Le,this,!1),Oi(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}et(Q,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Uo(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Q){this.viewModel=Q,this.update.emit(Q)}_isControlChanged(Q){return Q.hasOwnProperty("form")}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Te,10),i.rXU(xe,10),i.rXU(A,10),i.rXU(Ni,8),i.rXU(Hn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([Fs]),i.Vt3,i.OA$]})}return ue})();const qr={provide:Jt,useExisting:(0,i.Rfq)(()=>rs)};let rs=(()=>{class ue extends Jt{callSetDisabledState;get submitted(){return(0,i.O8t)(this._submittedReactive)}set submitted(Q){this._submittedReactive.set(Q)}_submitted=(0,i.EWP)(()=>this._submittedReactive());_submittedReactive=(0,i.vPA)(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new i.bkB;constructor(Q,Le,Ut){super(),this.callSetDisabledState=Ut,this._setValidators(Q),this._setAsyncValidators(Le)}ngOnChanges(Q){this._checkFormPresent(),Q.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(bo(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Q){const Le=this.form.get(Q.path);return Oi(Le,Q,this.callSetDisabledState),Le.updateValueAndValidity({emitEvent:!1}),this.directives.push(Q),Le}getControl(Q){return this.form.get(Q.path)}removeControl(Q){Uo(Q.control||null,Q,!1),function Mt(ue,ce){const Q=ue.indexOf(ce);Q>-1&&ue.splice(Q,1)}(this.directives,Q)}addFormGroup(Q){this._setUpFormContainer(Q)}removeFormGroup(Q){this._cleanUpFormContainer(Q)}getFormGroup(Q){return this.form.get(Q.path)}addFormArray(Q){this._setUpFormContainer(Q)}removeFormArray(Q){this._cleanUpFormContainer(Q)}getFormArray(Q){return this.form.get(Q.path)}updateModel(Q,Le){this.form.get(Q.path).setValue(Le)}onSubmit(Q){return this._submittedReactive.set(!0),pt(this.form,this.directives),this.ngSubmit.emit(Q),this.form._events.next(new lt(this.control)),"dialog"===Q?.target?.method}onReset(){this.resetForm()}resetForm(Q=void 0){this.form.reset(Q),this._submittedReactive.set(!1),this.form._events.next(new Pe(this.form))}_updateDomValue(){this.directives.forEach(Q=>{const Le=Q.control,Ut=this.form.get(Q.path);Le!==Ut&&(Uo(Le||null,Q),(ue=>ue instanceof sr)(Ut)&&(Oi(Ut,Q,this.callSetDisabledState),Q.control=Ut))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Q){const Le=this.form.get(Q.path);oo(Le,Q),Le.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Q){if(this.form){const Le=this.form.get(Q.path);Le&&function Bi(ue,ce){return bo(ue,ce)}(Le,Q)&&Le.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){so(this.form,this),this._oldForm&&bo(this._oldForm,this)}_checkFormPresent(){}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Te,10),i.rXU(xe,10),i.rXU(Hn,8))};static \u0275dir=i.FsC({type:ue,selectors:[["","formGroup",""]],hostBindings:function(Le,Ut){1&Le&&i.bIt("submit",function(ni){return Ut.onSubmit(ni)})("reset",function(){return Ut.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([qr]),i.Vt3,i.OA$]})}return ue})();const ga={provide:fn,useExisting:(0,i.Rfq)(()=>tr)};let tr=(()=>{class ue extends fn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(Q){}model;update=new i.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Q,Le,Ut,vr,ni){super(),this._ngModelWarningConfig=ni,this._parent=Q,this._setValidators(Le),this._setAsyncValidators(Ut),this.valueAccessor=$t(0,vr)}ngOnChanges(Q){this._added||this._setUpControl(),et(Q,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Q){this.viewModel=Q,this.update.emit(Q)}get path(){return uo(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(Le){return new(Le||ue)(i.rXU(Jt,13),i.rXU(Te,10),i.rXU(xe,10),i.rXU(A,10),i.rXU(Ni,8))};static \u0275dir=i.FsC({type:ue,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[i.Jv_([ga]),i.Vt3,i.OA$]})}return ue})();let _o=(()=>{class ue{_validator=at;_onChange;_enabled;ngOnChanges(Q){if(this.inputName in Q){const Le=this.normalizeInput(Q[this.inputName].currentValue);this._enabled=this.enabled(Le),this._validator=this._enabled?this.createValidator(Le):at,this._onChange&&this._onChange()}}validate(Q){return this._validator(Q)}registerOnValidatorChange(Q){this._onChange=Q}enabled(Q){return null!=Q}static \u0275fac=function(Le){return new(Le||ue)};static \u0275dir=i.FsC({type:ue,features:[i.OA$]})}return ue})();const Qs={provide:Te,useExisting:(0,i.Rfq)(()=>Xa),multi:!0},bl={provide:Te,useExisting:(0,i.Rfq)(()=>Ya),multi:!0};let Xa=(()=>{class ue extends _o{required;inputName="required";normalizeInput=i.L39;createValidator=Q=>ae;enabled(Q){return Q}static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Le,Ut){2&Le&&i.BMQ("required",Ut._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[i.Jv_([Qs]),i.Vt3]})}return ue})(),Ya=(()=>{class ue extends Xa{createValidator=Q=>Ie;static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Le,Ut){2&Le&&i.BMQ("required",Ut._enabled?"":null)},standalone:!1,features:[i.Jv_([bl]),i.Vt3]})}return ue})();const wt={provide:Te,useExisting:(0,i.Rfq)(()=>Ln),multi:!0};let Ln=(()=>{class ue extends _o{maxlength;inputName="maxlength";normalizeInput=Q=>function ao(ue){return"number"==typeof ue?ue:parseInt(ue,10)}(Q);createValidator=Q=>ht(Q);static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275dir=i.FsC({type:ue,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Le,Ut){2&Le&&i.BMQ("maxlength",Ut._enabled?Ut.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[i.Jv_([wt]),i.Vt3]})}return ue})(),Or=(()=>{class ue{static \u0275fac=function(Le){return new(Le||ue)};static \u0275mod=i.$C({type:ue});static \u0275inj=i.G2t({})}return ue})();class Dr extends ci{constructor(ce,Q,Le){super(kt(Q),Pt(Le,Q)),this.controls=ce,this._initObservables(),this._setUpdateStrategy(Q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(ce){return this.controls[this._adjustIndex(ce)]}push(ce,Q={}){this.controls.push(ce),this._registerControl(ce),this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}insert(ce,Q,Le={}){this.controls.splice(ce,0,Q),this._registerControl(Q),this.updateValueAndValidity({emitEvent:Le.emitEvent})}removeAt(ce,Q={}){let Le=this._adjustIndex(ce);Le<0&&(Le=0),this.controls[Le]&&this.controls[Le]._registerOnCollectionChange(()=>{}),this.controls.splice(Le,1),this.updateValueAndValidity({emitEvent:Q.emitEvent})}setControl(ce,Q,Le={}){let Ut=this._adjustIndex(ce);Ut<0&&(Ut=0),this.controls[Ut]&&this.controls[Ut]._registerOnCollectionChange(()=>{}),this.controls.splice(Ut,1),Q&&(this.controls.splice(Ut,0,Q),this._registerControl(Q)),this.updateValueAndValidity({emitEvent:Le.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ce,Q={}){ii(this,0,ce),ce.forEach((Le,Ut)=>{Mr(this,!1,Ut),this.at(Ut).setValue(Le,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(ce,Q={}){null!=ce&&(ce.forEach((Le,Ut)=>{this.at(Ut)&&this.at(Ut).patchValue(Le,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(ce=[],Q={}){this._forEachChild((Le,Ut)=>{Le.reset(ce[Ut],{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q,this),this._updateTouched(Q,this),this.updateValueAndValidity(Q)}getRawValue(){return this.controls.map(ce=>ce.getRawValue())}clear(ce={}){this.controls.length<1||(this._forEachChild(Q=>Q._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ce.emitEvent}))}_adjustIndex(ce){return ce<0?ce+this.length:ce}_syncPendingControls(){let ce=this.controls.reduce((Q,Le)=>!!Le._syncPendingControls()||Q,!1);return ce&&this.updateValueAndValidity({onlySelf:!0}),ce}_forEachChild(ce){this.controls.forEach((Q,Le)=>{ce(Q,Le)})}_updateValue(){this.value=this.controls.filter(ce=>ce.enabled||this.disabled).map(ce=>ce.value)}_anyControls(ce){return this.controls.some(Q=>Q.enabled&&ce(Q))}_setUpControls(){this._forEachChild(ce=>this._registerControl(ce))}_allControlsDisabled(){for(const ce of this.controls)if(ce.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ce){ce.setParent(this),ce._registerOnCollectionChange(this._onCollectionChange)}_find(ce){return this.at(ce)??null}}function ho(ue){return!!ue&&(void 0!==ue.asyncValidators||void 0!==ue.validators||void 0!==ue.updateOn)}let lo=(()=>{class ue{useNonNullable=!1;get nonNullable(){const Q=new ue;return Q.useNonNullable=!0,Q}group(Q,Le=null){const Ut=this._reduceControls(Q);let vr={};return ho(Le)?vr=Le:null!==Le&&(vr.validators=Le.validator,vr.asyncValidators=Le.asyncValidator),new Ai(Ut,vr)}record(Q,Le=null){const Ut=this._reduceControls(Q);return new Dt(Ut,Le)}control(Q,Le,Ut){let vr={};return this.useNonNullable?(ho(Le)?vr=Le:(vr.validators=Le,vr.asyncValidators=Ut),new sr(Q,{...vr,nonNullable:!0})):new sr(Q,Le,Ut)}array(Q,Le,Ut){const vr=Q.map(ni=>this._createControl(ni));return new Dr(vr,Le,Ut)}_reduceControls(Q){const Le={};return Object.keys(Q).forEach(Ut=>{Le[Ut]=this._createControl(Q[Ut])}),Le}_createControl(Q){return Q instanceof sr||Q instanceof ci?Q:Array.isArray(Q)?this.control(Q[0],Q.length>1?Q[1]:null,Q.length>2?Q[2]:null):this.control(Q)}static \u0275fac=function(Le){return new(Le||ue)};static \u0275prov=i.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})(),Oo=(()=>{class ue extends lo{group(Q,Le=null){return super.group(Q,Le)}control(Q,Le,Ut){return super.control(Q,Le,Ut)}array(Q,Le,Ut){return super.array(Q,Le,Ut)}static \u0275fac=(()=>{let Q;return function(Ut){return(Q||(Q=i.xGo(ue)))(Ut||ue)}})();static \u0275prov=i.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})(),Qa=(()=>{class ue{static withConfig(Q){return{ngModule:ue,providers:[{provide:Hn,useValue:Q.callSetDisabledState??fr}]}}static \u0275fac=function(Le){return new(Le||ue)};static \u0275mod=i.$C({type:ue});static \u0275inj=i.G2t({imports:[Or]})}return ue})(),ya=(()=>{class ue{static withConfig(Q){return{ngModule:ue,providers:[{provide:Ni,useValue:Q.warnOnNgModelWithFormControl??"always"},{provide:Hn,useValue:Q.callSetDisabledState??fr}]}}static \u0275fac=function(Le){return new(Le||ue)};static \u0275mod=i.$C({type:ue});static \u0275inj=i.G2t({imports:[Or]})}return ue})()},8834:(o,s,r)=>{"use strict";r.d(s,{$z:()=>le,Hl:()=>$n,iY:()=>ln,pQ:()=>yn});var i=r(4438),a=r(9888),c=r(6860),y=r(3),w=r(9046);const C=["mat-button",""],T=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],S=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],I="@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}",ne=["mat-icon-button",""],be=["*"],pe=new i.nKC("MAT_BUTTON_CONFIG"),xe=[{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 Re=(()=>{class bn{_elementRef=(0,i.WQX)(i.aKT);_platform=(0,i.WQX)(c.OD);_ngZone=(0,i.WQX)(i.SKi);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_focusMonitor=(0,i.WQX)(a.FN);_rippleLoader=(0,i.WQX)(y.Ej);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(bt){this._disableRipple=bt,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(bt){this._disabled=bt,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){(0,i.WQX)(w.l).load(y.Ah);const bt=(0,i.WQX)(pe,{optional:!0}),ze=this._elementRef.nativeElement,Fe=ze.classList;this.disabledInteractive=bt?.disabledInteractive??!1,this.color=bt?.color??null,this._rippleLoader?.configureRipple(ze,{className:"mat-mdc-button-ripple"});for(const{attribute:Ft,mdcClasses:Ke}of xe)ze.hasAttribute(Ft)&&Fe.add(...Ke)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(bt="program",ze){bt?this._focusMonitor.focusVia(this._elementRef.nativeElement,bt,ze):this._elementRef.nativeElement.focus(ze)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(ze){return new(ze||bn)};static \u0275dir=i.FsC({type:bn,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",i.L39],disabled:[2,"disabled","disabled",i.L39],ariaDisabled:[2,"aria-disabled","ariaDisabled",i.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",i.L39]},features:[i.GFd]})}return bn})(),Ce=(()=>{class bn extends Re{tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_haltDisabledEvents=bt=>{this.disabled&&(bt.preventDefault(),bt.stopImmediatePropagation())};_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:this.disabled||null}static \u0275fac=(()=>{let bt;return function(Fe){return(bt||(bt=i.xGo(bn)))(Fe||bn)}})();static \u0275dir=i.FsC({type:bn,inputs:{tabIndex:[2,"tabIndex","tabIndex",bt=>null==bt?void 0:(0,i.Udg)(bt)]},features:[i.GFd,i.Vt3]})}return bn})(),le=(()=>{class bn extends Re{static \u0275fac=(()=>{let bt;return function(Fe){return(bt||(bt=i.xGo(bn)))(Fe||bn)}})();static \u0275cmp=i.VBU({type:bn,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(ze,Fe){2&ze&&(i.BMQ("disabled",Fe._getDisabledAttribute())("aria-disabled",Fe._getAriaDisabled()),i.HbH(Fe.color?"mat-"+Fe.color:""),i.AVh("mat-mdc-button-disabled",Fe.disabled)("mat-mdc-button-disabled-interactive",Fe.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)("mat-unthemed",!Fe.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.Vt3],attrs:C,ngContentSelectors:S,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(ze,Fe){1&ze&&(i.NAR(T),i.nrm(0,"span",0),i.SdG(1),i.j41(2,"span",1),i.SdG(3,1),i.k0s(),i.SdG(4,2),i.nrm(5,"span",2)(6,"span",3)),2&ze&&i.AVh("mdc-button__ripple",!Fe._isFab)("mdc-fab__ripple",Fe._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return bn})(),ln=(()=>{class bn extends Re{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(ze){return new(ze||bn)};static \u0275cmp=i.VBU({type:bn,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(ze,Fe){2&ze&&(i.BMQ("disabled",Fe._getDisabledAttribute())("aria-disabled",Fe._getAriaDisabled()),i.HbH(Fe.color?"mat-"+Fe.color:""),i.AVh("mat-mdc-button-disabled",Fe.disabled)("mat-mdc-button-disabled-interactive",Fe.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)("mat-unthemed",!Fe.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.Vt3],attrs:ne,ngContentSelectors:be,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(ze,Fe){1&ze&&(i.NAR(),i.nrm(0,"span",0),i.SdG(1),i.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',I],encapsulation:2,changeDetection:0})}return bn})(),yn=(()=>{class bn extends Ce{static \u0275fac=(()=>{let bt;return function(Fe){return(bt||(bt=i.xGo(bn)))(Fe||bn)}})();static \u0275cmp=i.VBU({type:bn,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(ze,Fe){2&ze&&(i.BMQ("disabled",Fe._getDisabledAttribute())("tabindex",Fe.disabled&&!Fe.disabledInteractive?-1:Fe.tabIndex)("aria-disabled",Fe._getAriaDisabled()),i.HbH(Fe.color?"mat-"+Fe.color:""),i.AVh("mat-mdc-button-disabled",Fe.disabled)("mat-mdc-button-disabled-interactive",Fe.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)("mat-unthemed",!Fe.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[i.Vt3],attrs:ne,ngContentSelectors:be,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(ze,Fe){1&ze&&(i.NAR(),i.nrm(0,"span",0),i.SdG(1),i.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',I],encapsulation:2,changeDetection:0})}return bn})(),$n=(()=>{class bn{static \u0275fac=function(ze){return new(ze||bn)};static \u0275mod=i.$C({type:bn});static \u0275inj=i.G2t({imports:[y.yE,y.pZ,y.yE]})}return bn})()},3:(o,s,r)=>{"use strict";r.d(s,{Ah:()=>dt,Ej:()=>Jr,Ju:()=>$e,MI:()=>De,MJ:()=>vt,N:()=>le,QC:()=>k,Sy:()=>In,TL:()=>Tt,X0:()=>Ie,de:()=>at,es:()=>Ke,is:()=>B,jb:()=>ot,pZ:()=>Yn,r6:()=>xn,tO:()=>Xr,wT:()=>it,yE:()=>ae});var i=r(4438),a=r(9888),c=r(8203),y=r(1413),w=r(6860),C=r(4085),T=r(9046),S=r(7336),A=r(177);const G=["text"],Z=[[["mat-icon"]],"*"],ne=["mat-icon","*"];function be(_t,Bt){if(1&_t&&i.nrm(0,"mat-pseudo-checkbox",1),2&_t){const Ee=i.XpG();i.Y8G("disabled",Ee.disabled)("state",Ee.selected?"checked":"unchecked")}}function me(_t,Bt){if(1&_t&&i.nrm(0,"mat-pseudo-checkbox",3),2&_t){const Ee=i.XpG();i.Y8G("disabled",Ee.disabled)}}function pe(_t,Bt){if(1&_t&&(i.j41(0,"span",4),i.EFF(1),i.k0s()),2&_t){const Ee=i.XpG();i.R7$(),i.SpI("(",Ee.group.label,")")}}const Te=["mat-internal-form-field",""],xe=["*"],le=new i.nKC("mat-sanity-checks",{providedIn:"root",factory:()=>!0});let ae=(()=>{class _t{constructor(){(0,i.WQX)(a.Q_)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[c.jI,c.jI]})}return _t})();class Ie{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(Bt,Ee,lt,Pe,kt){this._defaultMatcher=Bt,this.ngControl=Ee,this._parentFormGroup=lt,this._parentForm=Pe,this._stateChanges=kt}updateErrorState(){const Bt=this.errorState,Ee=this._parentFormGroup||this._parentForm,lt=this.matcher||this._defaultMatcher,Pe=this.ngControl?this.ngControl.control:null,kt=lt?.isErrorState(Pe,Ee)??!1;kt!==Bt&&(this.errorState=kt,this._stateChanges.next())}}const $e=new i.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function st(){return(0,i.WQX)(i.xe9)}}),ht="Method not implemented";class vt{locale;_localeChanges=new y.B;localeChanges=this._localeChanges;setTime(Bt,Ee,lt,Pe){throw new Error(ht)}getHours(Bt){throw new Error(ht)}getMinutes(Bt){throw new Error(ht)}getSeconds(Bt){throw new Error(ht)}parseTime(Bt,Ee){throw new Error(ht)}addSeconds(Bt,Ee){throw new Error(ht)}getValidDateOrNull(Bt){return this.isDateInstance(Bt)&&this.isValid(Bt)?Bt:null}deserialize(Bt){return null==Bt||this.isDateInstance(Bt)&&this.isValid(Bt)?Bt:this.invalid()}setLocale(Bt){this.locale=Bt,this._localeChanges.next()}compareDate(Bt,Ee){return this.getYear(Bt)-this.getYear(Ee)||this.getMonth(Bt)-this.getMonth(Ee)||this.getDate(Bt)-this.getDate(Ee)}compareTime(Bt,Ee){return this.getHours(Bt)-this.getHours(Ee)||this.getMinutes(Bt)-this.getMinutes(Ee)||this.getSeconds(Bt)-this.getSeconds(Ee)}sameDate(Bt,Ee){if(Bt&&Ee){let lt=this.isValid(Bt),Pe=this.isValid(Ee);return lt&&Pe?!this.compareDate(Bt,Ee):lt==Pe}return Bt==Ee}sameTime(Bt,Ee){if(Bt&&Ee){const lt=this.isValid(Bt),Pe=this.isValid(Ee);return lt&&Pe?!this.compareTime(Bt,Ee):lt==Pe}return Bt==Ee}clampDate(Bt,Ee,lt){return Ee&&this.compareDate(Bt,Ee)<0?Ee:lt&&this.compareDate(Bt,lt)>0?lt:Bt}}const at=new i.nKC("mat-date-formats");let Ke=(()=>{class _t{isErrorState(Ee,lt){return!!(Ee&&Ee.invalid&&(Ee.touched||lt&<.submitted))}static \u0275fac=function(lt){return new(lt||_t)};static \u0275prov=i.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})(),dt=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(lt,Pe){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return _t})();var Ze=function(_t){return _t[_t.FADING_IN=0]="FADING_IN",_t[_t.VISIBLE=1]="VISIBLE",_t[_t.FADING_OUT=2]="FADING_OUT",_t[_t.HIDDEN=3]="HIDDEN",_t}(Ze||{});class Rt{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Ze.HIDDEN;constructor(Bt,Ee,lt,Pe=!1){this._renderer=Bt,this.element=Ee,this.config=lt,this._animationForciblyDisabledThroughCss=Pe}fadeOut(){this._renderer.fadeOutRipple(this)}}const Jt=(0,w.BQ)({passive:!0,capture:!0});class fn{_events=new Map;addHandler(Bt,Ee,lt,Pe){const kt=this._events.get(Ee);if(kt){const ft=kt.get(lt);ft?ft.add(Pe):kt.set(lt,new Set([Pe]))}else this._events.set(Ee,new Map([[lt,new Set([Pe])]])),Bt.runOutsideAngular(()=>{document.addEventListener(Ee,this._delegateEventHandler,Jt)})}removeHandler(Bt,Ee,lt){const Pe=this._events.get(Bt);if(!Pe)return;const kt=Pe.get(Ee);kt&&(kt.delete(lt),0===kt.size&&Pe.delete(Ee),0===Pe.size&&(this._events.delete(Bt),document.removeEventListener(Bt,this._delegateEventHandler,Jt)))}_delegateEventHandler=Bt=>{const Ee=(0,w.Fb)(Bt);Ee&&this._events.get(Bt.type)?.forEach((lt,Pe)=>{(Pe===Ee||Pe.contains(Ee))&<.forEach(kt=>kt.handleEvent(Bt))})}}const Gn={enterDuration:225,exitDuration:150},Qt=(0,w.BQ)({passive:!0,capture:!0}),an=["mousedown","touchstart"],Xn=["mouseup","mouseleave","touchend","touchcancel"];let En=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(lt,Pe){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return _t})();class Gt{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new fn;constructor(Bt,Ee,lt,Pe,kt){this._target=Bt,this._ngZone=Ee,this._platform=Pe,Pe.isBrowser&&(this._containerElement=(0,C.i8)(lt)),kt&&kt.get(T.l).load(En)}fadeInRipple(Bt,Ee,lt={}){const Pe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),kt={...Gn,...lt.animation};lt.centered&&(Bt=Pe.left+Pe.width/2,Ee=Pe.top+Pe.height/2);const ft=lt.radius||function At(_t,Bt,Ee){const lt=Math.max(Math.abs(_t-Ee.left),Math.abs(_t-Ee.right)),Pe=Math.max(Math.abs(Bt-Ee.top),Math.abs(Bt-Ee.bottom));return Math.sqrt(lt*lt+Pe*Pe)}(Bt,Ee,Pe),Pt=Bt-Pe.left,mn=Ee-Pe.top,or=kt.enterDuration,Mr=document.createElement("div");Mr.classList.add("mat-ripple-element"),Mr.style.left=Pt-ft+"px",Mr.style.top=mn-ft+"px",Mr.style.height=2*ft+"px",Mr.style.width=2*ft+"px",null!=lt.color&&(Mr.style.backgroundColor=lt.color),Mr.style.transitionDuration=`${or}ms`,this._containerElement.appendChild(Mr);const ii=window.getComputedStyle(Mr),Ai=ii.transitionDuration,rn="none"===ii.transitionProperty||"0s"===Ai||"0s, 0s"===Ai||0===Pe.width&&0===Pe.height,St=new Rt(this,Mr,lt,rn);Mr.style.transform="scale3d(1, 1, 1)",St.state=Ze.FADING_IN,lt.persistent||(this._mostRecentTransientRipple=St);let qe=null;return!rn&&(or||kt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Dt=()=>{qe&&(qe.fallbackTimer=null),clearTimeout(Hn),this._finishRippleTransition(St)},Wt=()=>this._destroyRipple(St),Hn=setTimeout(Wt,or+100);Mr.addEventListener("transitionend",Dt),Mr.addEventListener("transitioncancel",Wt),qe={onTransitionEnd:Dt,onTransitionCancel:Wt,fallbackTimer:Hn}}),this._activeRipples.set(St,qe),(rn||!or)&&this._finishRippleTransition(St),St}fadeOutRipple(Bt){if(Bt.state===Ze.FADING_OUT||Bt.state===Ze.HIDDEN)return;const Ee=Bt.element,lt={...Gn,...Bt.config.animation};Ee.style.transitionDuration=`${lt.exitDuration}ms`,Ee.style.opacity="0",Bt.state=Ze.FADING_OUT,(Bt._animationForciblyDisabledThroughCss||!lt.exitDuration)&&this._finishRippleTransition(Bt)}fadeOutAll(){this._getActiveRipples().forEach(Bt=>Bt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Bt=>{Bt.config.persistent||Bt.fadeOut()})}setupTriggerEvents(Bt){const Ee=(0,C.i8)(Bt);!this._platform.isBrowser||!Ee||Ee===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ee,an.forEach(lt=>{Gt._eventManager.addHandler(this._ngZone,lt,Ee,this)}))}handleEvent(Bt){"mousedown"===Bt.type?this._onMousedown(Bt):"touchstart"===Bt.type?this._onTouchStart(Bt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Xn.forEach(Ee=>{this._triggerElement.addEventListener(Ee,this,Qt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Bt){Bt.state===Ze.FADING_IN?this._startFadeOutTransition(Bt):Bt.state===Ze.FADING_OUT&&this._destroyRipple(Bt)}_startFadeOutTransition(Bt){const Ee=Bt===this._mostRecentTransientRipple,{persistent:lt}=Bt.config;Bt.state=Ze.VISIBLE,!lt&&(!Ee||!this._isPointerDown)&&Bt.fadeOut()}_destroyRipple(Bt){const Ee=this._activeRipples.get(Bt)??null;this._activeRipples.delete(Bt),this._activeRipples.size||(this._containerRect=null),Bt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Bt.state=Ze.HIDDEN,null!==Ee&&(Bt.element.removeEventListener("transitionend",Ee.onTransitionEnd),Bt.element.removeEventListener("transitioncancel",Ee.onTransitionCancel),null!==Ee.fallbackTimer&&clearTimeout(Ee.fallbackTimer)),Bt.element.remove()}_onMousedown(Bt){const Ee=(0,a._G)(Bt),lt=this._lastTouchStartEvent&&Date.now(){!Bt.config.persistent&&(Bt.state===Ze.VISIBLE||Bt.config.terminateOnPointerUp&&Bt.state===Ze.FADING_IN)&&Bt.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Bt=this._triggerElement;Bt&&(an.forEach(Ee=>Gt._eventManager.removeHandler(Ee,Bt,this)),this._pointerUpEventsRegistered&&(Xn.forEach(Ee=>Bt.removeEventListener(Ee,this,Qt)),this._pointerUpEventsRegistered=!1))}}const Kt=new i.nKC("mat-ripple-global-options");let xn=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(Ee){Ee&&this.fadeOutAllNonPersistent(),this._disabled=Ee,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ee){this._trigger=Ee,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){const Ee=(0,i.WQX)(i.SKi),lt=(0,i.WQX)(w.OD),Pe=(0,i.WQX)(Kt,{optional:!0}),kt=(0,i.WQX)(i.zZn);this._globalOptions=Pe||{},this._rippleRenderer=new Gt(this,Ee,this._elementRef,lt,kt)}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(Ee,lt=0,Pe){return"number"==typeof Ee?this._rippleRenderer.fadeInRipple(Ee,lt,{...this.rippleConfig,...Pe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Ee})}static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(lt,Pe){2<&&i.AVh("mat-ripple-unbounded",Pe.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return _t})(),Yn=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[ae,ae]})}return _t})(),tt=(()=>{class _t{_animationMode=(0,i.WQX)(i.bc$,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(lt,Pe){2<&&i.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===Pe.state)("mat-pseudo-checkbox-checked","checked"===Pe.state)("mat-pseudo-checkbox-disabled",Pe.disabled)("mat-pseudo-checkbox-minimal","minimal"===Pe.appearance)("mat-pseudo-checkbox-full","full"===Pe.appearance)("_mat-animation-noopable","NoopAnimations"===Pe._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(lt,Pe){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return _t})(),ke=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[ae]})}return _t})();const B=new i.nKC("MAT_OPTION_PARENT_COMPONENT"),k=new i.nKC("MatOptgroup");class De{source;isUserInput;constructor(Bt,Ee=!1){this.source=Bt,this.isUserInput=Ee}}let it=(()=>{class _t{_element=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_parent=(0,i.WQX)(B,{optional:!0});group=(0,i.WQX)(k,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=(0,i.WQX)(a.g7).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Ee){this._disabled=Ee}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}onSelectionChange=new i.bkB;_text;_stateChanges=new y.B;constructor(){(0,i.WQX)(T.l).load(dt),(0,i.WQX)(T.l).load(T.Y),this._signalDisableRipple=!!this._parent&&(0,i.Hps)(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(Ee=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),Ee&&this._emitSelectionChangeEvent())}deselect(Ee=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),Ee&&this._emitSelectionChangeEvent())}focus(Ee,lt){const Pe=this._getHostElement();"function"==typeof Pe.focus&&Pe.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(Ee){(Ee.keyCode===S.Fm||Ee.keyCode===S.t6)&&!(0,S.rp)(Ee)&&(this._selectViaInteraction(),Ee.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 Ee=this.viewValue;Ee!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=Ee)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Ee=!1){this.onSelectionChange.emit(new De(this,Ee))}static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["mat-option"]],viewQuery:function(lt,Pe){if(1<&&i.GBs(G,7),2<){let kt;i.mGM(kt=i.lsd())&&(Pe._text=kt.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(lt,Pe){1<&&i.bIt("click",function(){return Pe._selectViaInteraction()})("keydown",function(ft){return Pe._handleKeydown(ft)}),2<&&(i.Mr5("id",Pe.id),i.BMQ("aria-selected",Pe.selected)("aria-disabled",Pe.disabled.toString()),i.AVh("mdc-list-item--selected",Pe.selected)("mat-mdc-option-multiple",Pe.multiple)("mat-mdc-option-active",Pe.active)("mdc-list-item--disabled",Pe.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",i.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[i.GFd],ngContentSelectors:ne,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(lt,Pe){1<&&(i.NAR(Z),i.DNE(0,be,1,2,"mat-pseudo-checkbox",1),i.SdG(1),i.j41(2,"span",2,0),i.SdG(4,1),i.k0s(),i.DNE(5,me,1,1,"mat-pseudo-checkbox",3)(6,pe,2,1,"span",4),i.nrm(7,"div",5)),2<&&(i.vxM(Pe.multiple?0:-1),i.R7$(5),i.vxM(Pe.multiple||!Pe.selected||Pe.hideSingleSelectionIndicator?-1:5),i.R7$(),i.vxM(Pe.group&&Pe.group._inert?6:-1),i.R7$(),i.Y8G("matRippleTrigger",Pe._getHostElement())("matRippleDisabled",Pe.disabled||Pe.disableRipple))},dependencies:[tt,xn],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return _t})();function ot(_t,Bt,Ee){if(Ee.length){let lt=Bt.toArray(),Pe=Ee.toArray(),kt=0;for(let ft=0;ft<_t+1;ft++)lt[ft].group&<[ft].group===Pe[kt]&&kt++;return kt}return 0}function Tt(_t,Bt,Ee,lt){return _tEe+lt?Math.max(0,_t-lt+Bt):Ee}let In=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[Yn,ae,ke]})}return _t})();const Vt={capture:!0},dn=["focus","mousedown","mouseenter","touchstart"],Pn="mat-ripple-loader-uninitialized",Fn="mat-ripple-loader-class-name",Bn="mat-ripple-loader-centered",cr="mat-ripple-loader-disabled";let Jr=(()=>{class _t{_document=(0,i.WQX)(A.qQ,{optional:!0});_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_globalRippleOptions=(0,i.WQX)(Kt,{optional:!0});_platform=(0,i.WQX)(w.OD);_ngZone=(0,i.WQX)(i.SKi);_injector=(0,i.WQX)(i.zZn);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(const Ee of dn)this._document?.addEventListener(Ee,this._onInteraction,Vt)})}ngOnDestroy(){const Ee=this._hosts.keys();for(const lt of Ee)this.destroyRipple(lt);for(const lt of dn)this._document?.removeEventListener(lt,this._onInteraction,Vt)}configureRipple(Ee,lt){Ee.setAttribute(Pn,this._globalRippleOptions?.namespace??""),(lt.className||!Ee.hasAttribute(Fn))&&Ee.setAttribute(Fn,lt.className||""),lt.centered&&Ee.setAttribute(Bn,""),lt.disabled&&Ee.setAttribute(cr,"")}setDisabled(Ee,lt){const Pe=this._hosts.get(Ee);Pe?(Pe.target.rippleDisabled=lt,!lt&&!Pe.hasSetUpEvents&&(Pe.hasSetUpEvents=!0,Pe.renderer.setupTriggerEvents(Ee))):lt?Ee.setAttribute(cr,""):Ee.removeAttribute(cr)}_onInteraction=Ee=>{const lt=(0,w.Fb)(Ee);if(lt instanceof HTMLElement){const Pe=lt.closest(`[${Pn}="${this._globalRippleOptions?.namespace??""}"]`);Pe&&this._createRipple(Pe)}};_createRipple(Ee){if(!this._document||this._hosts.has(Ee))return;Ee.querySelector(".mat-ripple")?.remove();const lt=this._document.createElement("span");lt.classList.add("mat-ripple",Ee.getAttribute(Fn)),Ee.append(lt);const Pe="NoopAnimations"===this._animationMode,kt=this._globalRippleOptions,ft=Pe?0:kt?.animation?.enterDuration??Gn.enterDuration,Pt=Pe?0:kt?.animation?.exitDuration??Gn.exitDuration,mn={rippleDisabled:Pe||kt?.disabled||Ee.hasAttribute(cr),rippleConfig:{centered:Ee.hasAttribute(Bn),terminateOnPointerUp:kt?.terminateOnPointerUp,animation:{enterDuration:ft,exitDuration:Pt}}},or=new Gt(mn,this._ngZone,lt,this._platform,this._injector),Mr=!mn.rippleDisabled;Mr&&or.setupTriggerEvents(Ee),this._hosts.set(Ee,{target:mn,renderer:or,hasSetUpEvents:Mr}),Ee.removeAttribute(Pn)}destroyRipple(Ee){const lt=this._hosts.get(Ee);lt&&(lt.renderer._removeTriggerEvents(),this._hosts.delete(Ee))}static \u0275fac=function(lt){return new(lt||_t)};static \u0275prov=i.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})(),Xr=(()=>{class _t{labelPosition;static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(lt,Pe){2<&&i.AVh("mdc-form-field--align-end","before"===Pe.labelPosition)},inputs:{labelPosition:"labelPosition"},attrs:Te,ngContentSelectors:xe,decls:1,vars:0,template:function(lt,Pe){1<&&(i.NAR(),i.SdG(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}return _t})()},5351:(o,s,r)=>{"use strict";r.d(s,{Vh:()=>se,bZ:()=>Gn,E7:()=>En,tx:()=>Nt,Yi:()=>Xn,hM:()=>Kt,CP:()=>He});var i=r(6969),a=r(4438),c=r(9888),y=r(6860),w=r(6939),C=r(177),T=r(7336),S=r(1413),A=r(9030),I=r(7673),N=r(8203),G=r(9172);function Z(tt,ke){}class ne{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!0;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext}let me=(()=>{class tt extends w.lb{_elementRef=(0,a.WQX)(a.aKT);_focusTrapFactory=(0,a.WQX)(c.GX);_config;_interactivityChecker=(0,a.WQX)(c.Z7);_ngZone=(0,a.WQX)(a.SKi);_overlayRef=(0,a.WQX)(i.yY);_focusMonitor=(0,a.WQX)(c.FN);_platform=(0,a.WQX)(y.OD);_document=(0,a.WQX)(C.qQ,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=(0,a.WQX)(a.gRc);_injector=(0,a.WQX)(a.zZn);_isDestroyed=!1;constructor(){super(),this._config=(0,a.WQX)(ne,{optional:!0})||new ne,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(B){this._ariaLabelledByQueue.push(B),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(B){const k=this._ariaLabelledByQueue.indexOf(B);k>-1&&(this._ariaLabelledByQueue.splice(k,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(B){this._portalOutlet.hasAttached();const k=this._portalOutlet.attachComponentPortal(B);return this._contentAttached(),k}attachTemplatePortal(B){this._portalOutlet.hasAttached();const k=this._portalOutlet.attachTemplatePortal(B);return this._contentAttached(),k}attachDomPortal=B=>{this._portalOutlet.hasAttached();const k=this._portalOutlet.attachDomPortal(B);return this._contentAttached(),k};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(B,k){this._interactivityChecker.isFocusable(B)||(B.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const j=()=>{B.removeEventListener("blur",j),B.removeEventListener("mousedown",j),B.removeAttribute("tabindex")};B.addEventListener("blur",j),B.addEventListener("mousedown",j)})),B.focus(k)}_focusByCssSelector(B,k){let j=this._elementRef.nativeElement.querySelector(B);j&&this._forceFocus(j,k)}_trapFocus(){this._isDestroyed||(0,a.mal)(()=>{const B=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||B.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 B=this._config.restoreFocus;let k=null;if("string"==typeof B?k=this._document.querySelector(B):"boolean"==typeof B?k=B?this._elementFocusedBeforeDialogWasOpened:null:B&&(k=B),this._config.restoreFocus&&k&&"function"==typeof k.focus){const j=(0,y.vc)(),De=this._elementRef.nativeElement;(!j||j===this._document.body||j===De||De.contains(j))&&(this._focusMonitor?(this._focusMonitor.focusVia(k,this._closeInteractionType),this._closeInteractionType=null):k.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const B=this._elementRef.nativeElement,k=(0,y.vc)();return B===k||B.contains(k)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,y.vc)()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(k){return new(k||tt)};static \u0275cmp=a.VBU({type:tt,selectors:[["cdk-dialog-container"]],viewQuery:function(k,j){if(1&k&&a.GBs(w.I3,7),2&k){let De;a.mGM(De=a.lsd())&&(j._portalOutlet=De.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(k,j){2&k&&a.BMQ("id",j._config.id||null)("role",j._config.role)("aria-modal",j._config.ariaModal)("aria-labelledby",j._config.ariaLabel?null:j._ariaLabelledByQueue[0])("aria-label",j._config.ariaLabel)("aria-describedby",j._config.ariaDescribedBy||null)},features:[a.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(k,j){1&k&&a.DNE(0,Z,0,0,"ng-template",0)},dependencies:[w.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return tt})();class pe{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new S.B;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(ke,B){this.overlayRef=ke,this.config=B,this.disableClose=B.disableClose,this.backdropClick=ke.backdropClick(),this.keydownEvents=ke.keydownEvents(),this.outsidePointerEvents=ke.outsidePointerEvents(),this.id=B.id,this.keydownEvents.subscribe(k=>{k.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(k)&&(k.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=ke.detachments().subscribe(()=>{!1!==B.closeOnOverlayDetachments&&this.close()})}close(ke,B){if(this.containerInstance){const k=this.closed;this.containerInstance._closeInteractionType=B?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),k.next(ke),k.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(ke="",B=""){return this.overlayRef.updateSize({width:ke,height:B}),this}addPanelClass(ke){return this.overlayRef.addPanelClass(ke),this}removePanelClass(ke){return this.overlayRef.removePanelClass(ke),this}}const Te=new a.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const tt=(0,a.WQX)(i.hJ);return()=>tt.scrollStrategies.block()}}),xe=new a.nKC("DialogData"),Re=new a.nKC("DefaultDialogConfig");let le=(()=>{class tt{_overlay=(0,a.WQX)(i.hJ);_injector=(0,a.WQX)(a.zZn);_defaultOptions=(0,a.WQX)(Re,{optional:!0});_parentDialog=(0,a.WQX)(tt,{optional:!0,skipSelf:!0});_overlayContainer=(0,a.WQX)(i.Sf);_idGenerator=(0,a.WQX)(c.g7);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S.B;_afterOpenedAtThisLevel=new S.B;_ariaHiddenElements=new Map;_scrollStrategy=(0,a.WQX)(Te);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=(0,A.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,G.Z)(void 0)));constructor(){}open(B,k){(k={...this._defaultOptions||new ne,...k}).id=k.id||this._idGenerator.getId("cdk-dialog-"),k.id&&this.getDialogById(k.id);const De=this._getOverlayConfig(k),it=this._overlay.create(De),ot=new pe(it,k),Tt=this._attachContainer(it,ot,k);return ot.containerInstance=Tt,this._attachDialogContent(B,ot,Tt,k),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(ot),ot.closed.subscribe(()=>this._removeOpenDialog(ot,!0)),this.afterOpened.next(ot),ot}closeAll(){ae(this.openDialogs,B=>B.close())}getDialogById(B){return this.openDialogs.find(k=>k.id===B)}ngOnDestroy(){ae(this._openDialogsAtThisLevel,B=>{!1===B.config.closeOnDestroy&&this._removeOpenDialog(B,!1)}),ae(this._openDialogsAtThisLevel,B=>B.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(B){const k=new i.rR({positionStrategy:B.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:B.scrollStrategy||this._scrollStrategy(),panelClass:B.panelClass,hasBackdrop:B.hasBackdrop,direction:B.direction,minWidth:B.minWidth,minHeight:B.minHeight,maxWidth:B.maxWidth,maxHeight:B.maxHeight,width:B.width,height:B.height,disposeOnNavigation:B.closeOnNavigation});return B.backdropClass&&(k.backdropClass=B.backdropClass),k}_attachContainer(B,k,j){const De=j.injector||j.viewContainerRef?.injector,it=[{provide:ne,useValue:j},{provide:pe,useValue:k},{provide:i.yY,useValue:B}];let ot;j.container?"function"==typeof j.container?ot=j.container:(ot=j.container.type,it.push(...j.container.providers(j))):ot=me;const Tt=new w.A8(ot,j.viewContainerRef,a.zZn.create({parent:De||this._injector,providers:it}));return B.attach(Tt).instance}_attachDialogContent(B,k,j,De){if(B instanceof a.C4Q){const it=this._createInjector(De,k,j,void 0);let ot={$implicit:De.data,dialogRef:k};De.templateContext&&(ot={...ot,..."function"==typeof De.templateContext?De.templateContext():De.templateContext}),j.attachTemplatePortal(new w.VA(B,null,ot,it))}else{const it=this._createInjector(De,k,j,this._injector),ot=j.attachComponentPortal(new w.A8(B,De.viewContainerRef,it));k.componentRef=ot,k.componentInstance=ot.instance}}_createInjector(B,k,j,De){const it=B.injector||B.viewContainerRef?.injector,ot=[{provide:xe,useValue:B.data},{provide:pe,useValue:k}];return B.providers&&("function"==typeof B.providers?ot.push(...B.providers(k,B,j)):ot.push(...B.providers)),B.direction&&(!it||!it.get(N.dS,null,{optional:!0}))&&ot.push({provide:N.dS,useValue:{value:B.direction,change:(0,I.of)()}}),a.zZn.create({parent:it||De,providers:ot})}_removeOpenDialog(B,k){const j=this.openDialogs.indexOf(B);j>-1&&(this.openDialogs.splice(j,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((De,it)=>{De?it.setAttribute("aria-hidden",De):it.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),k&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const B=this._overlayContainer.getContainerElement();if(B.parentElement){const k=B.parentElement.children;for(let j=k.length-1;j>-1;j--){const De=k[j];De!==B&&"SCRIPT"!==De.nodeName&&"STYLE"!==De.nodeName&&!De.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(De,De.getAttribute("aria-hidden")),De.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const B=this._parentDialog;return B?B._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=a.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})();function ae(tt,ke){let B=tt.length;for(;B--;)ke(tt[B])}let Ie=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275mod=a.$C({type:tt});static \u0275inj=a.G2t({providers:[le],imports:[i.z_,w.jc,c.Pd,w.jc]})}return tt})();var $e=r(4085),st=r(7786),ht=r(5964),vt=r(6697),at=r(5542),Xt=r(3);function yn(tt,ke){}r(9969);class $n{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!0;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration}const bn="mdc-dialog--open",Qe="mdc-dialog--opening",bt="mdc-dialog--closing";let Ft=(()=>{class tt extends me{_animationMode=(0,a.WQX)(a.bc$,{optional:!0});_animationStateChanged=new a.bkB;_animationsEnabled="NoopAnimations"!==this._animationMode;_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?dt(this._config.enterAnimationDuration)??150:0;_exitAnimationDuration=this._animationsEnabled?dt(this._config.exitAnimationDuration)??75:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Ke,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Qe,bn)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(bn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(bn),this._animationsEnabled?(this._hostElement.style.setProperty(Ke,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(bt)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(B){this._actionSectionCount+=B,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(Qe,bt)}_waitForAnimationToComplete(B,k){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(k,B)}_requestAnimationFrame(B){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(B):B()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(B){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:B})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(B){const k=super.attachComponentPortal(B);return k.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),k}static \u0275fac=(()=>{let B;return function(j){return(B||(B=a.xGo(tt)))(j||tt)}})();static \u0275cmp=a.VBU({type:tt,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(k,j){2&k&&(a.Mr5("id",j._config.id),a.BMQ("aria-modal",j._config.ariaModal)("role",j._config.role)("aria-labelledby",j._config.ariaLabel?null:j._ariaLabelledByQueue[0])("aria-label",j._config.ariaLabel)("aria-describedby",j._config.ariaDescribedBy||null),a.AVh("_mat-animation-noopable",!j._animationsEnabled)("mat-mdc-dialog-container-with-actions",j._actionSectionCount>0))},features:[a.Vt3],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(k,j){1&k&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,yn,0,0,"ng-template",2),a.k0s()())},dependencies:[w.I3],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}return tt})();const Ke="--mat-dialog-transition-duration";function dt(tt){return null==tt?null:"number"==typeof tt?tt:tt.endsWith("ms")?(0,$e.OE)(tt.substring(0,tt.length-2)):tt.endsWith("s")?1e3*(0,$e.OE)(tt.substring(0,tt.length-1)):"0"===tt?0:null}var Ge=function(tt){return tt[tt.OPEN=0]="OPEN",tt[tt.CLOSING=1]="CLOSING",tt[tt.CLOSED=2]="CLOSED",tt}(Ge||{});class He{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new S.B;_beforeClosed=new S.B;_result;_closeFallbackTimeout;_state=Ge.OPEN;_closeInteractionType;constructor(ke,B,k){this._ref=ke,this._containerInstance=k,this.disableClose=B.disableClose,this.id=ke.id,ke.addPanelClass("mat-mdc-dialog-panel"),k._animationStateChanged.pipe((0,ht.p)(j=>"opened"===j.state),(0,vt.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),k._animationStateChanged.pipe((0,ht.p)(j=>"closed"===j.state),(0,vt.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ke.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,st.h)(this.backdropClick(),this.keydownEvents().pipe((0,ht.p)(j=>j.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(j)))).subscribe(j=>{this.disableClose||(j.preventDefault(),mt(this,"keydown"===j.type?"keyboard":"mouse"))})}close(ke){this._result=ke,this._containerInstance._animationStateChanged.pipe((0,ht.p)(B=>"closing"===B.state),(0,vt.s)(1)).subscribe(B=>{this._beforeClosed.next(ke),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),B.totalTime+100)}),this._state=Ge.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(ke){let B=this._ref.config.positionStrategy;return ke&&(ke.left||ke.right)?ke.left?B.left(ke.left):B.right(ke.right):B.centerHorizontally(),ke&&(ke.top||ke.bottom)?ke.top?B.top(ke.top):B.bottom(ke.bottom):B.centerVertically(),this._ref.updatePosition(),this}updateSize(ke="",B=""){return this._ref.updateSize(ke,B),this}addPanelClass(ke){return this._ref.addPanelClass(ke),this}removePanelClass(ke){return this._ref.removePanelClass(ke),this}getState(){return this._state}_finishDialogClose(){this._state=Ge.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function mt(tt,ke,B){return tt._closeInteractionType=ke,tt.close(B)}const se=new a.nKC("MatMdcDialogData"),Ze=new a.nKC("mat-mdc-dialog-default-options"),Rt=new a.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const tt=(0,a.WQX)(i.hJ);return()=>tt.scrollStrategies.block()}});let Gn=(()=>{class tt{_overlay=(0,a.WQX)(i.hJ);_defaultOptions=(0,a.WQX)(Ze,{optional:!0});_scrollStrategy=(0,a.WQX)(Rt);_parentDialog=(0,a.WQX)(tt,{optional:!0,skipSelf:!0});_idGenerator=(0,a.WQX)(c.g7);_dialog=(0,a.WQX)(le);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S.B;_afterOpenedAtThisLevel=new S.B;dialogConfigClass=$n;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const B=this._parentDialog;return B?B._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=(0,A.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,G.Z)(void 0)));constructor(){this._dialogRefConstructor=He,this._dialogContainerType=Ft,this._dialogDataToken=se}open(B,k){let j;(k={...this._defaultOptions||new $n,...k}).id=k.id||this._idGenerator.getId("mat-mdc-dialog-"),k.scrollStrategy=k.scrollStrategy||this._scrollStrategy();const De=this._dialog.open(B,{...k,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:k},{provide:ne,useValue:k}]},templateContext:()=>({dialogRef:j}),providers:(it,ot,Tt)=>(j=new this._dialogRefConstructor(it,k,Tt),j.updatePosition(k?.position),[{provide:this._dialogContainerType,useValue:Tt},{provide:this._dialogDataToken,useValue:ot.data},{provide:this._dialogRefConstructor,useValue:j}])});return j.componentRef=De.componentRef,j.componentInstance=De.componentInstance,this.openDialogs.push(j),this.afterOpened.next(j),j.afterClosed().subscribe(()=>{const it=this.openDialogs.indexOf(j);it>-1&&(this.openDialogs.splice(it,1),this.openDialogs.length||this._getAfterAllClosed().next())}),j}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(B){return this.openDialogs.find(k=>k.id===B)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(B){let k=B.length;for(;k--;)B[k].close()}static \u0275fac=function(k){return new(k||tt)};static \u0275prov=a.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})(),Nt=(()=>{class tt{dialogRef=(0,a.WQX)(He,{optional:!0});_elementRef=(0,a.WQX)(a.aKT);_dialog=(0,a.WQX)(Gn);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=Gt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(B){const k=B._matDialogClose||B._matDialogCloseResult;k&&(this.dialogResult=k.currentValue)}_onButtonClick(B){mt(this.dialogRef,0===B.screenX&&0===B.screenY?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(k){return new(k||tt)};static \u0275dir=a.FsC({type:tt,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(k,j){1&k&&a.bIt("click",function(it){return j._onButtonClick(it)}),2&k&&a.BMQ("aria-label",j.ariaLabel||null)("type",j.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[a.OA$]})}return tt})(),Qt=(()=>{class tt{_dialogRef=(0,a.WQX)(He,{optional:!0});_elementRef=(0,a.WQX)(a.aKT);_dialog=(0,a.WQX)(Gn);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=Gt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(k){return new(k||tt)};static \u0275dir=a.FsC({type:tt})}return tt})(),Xn=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275dir=a.FsC({type:tt,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[a.nM4([at.uv])]})}return tt})(),En=(()=>{class tt extends Qt{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let B;return function(j){return(B||(B=a.xGo(tt)))(j||tt)}})();static \u0275dir=a.FsC({type:tt,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(k,j){2&k&&a.AVh("mat-mdc-dialog-actions-align-start","start"===j.align)("mat-mdc-dialog-actions-align-center","center"===j.align)("mat-mdc-dialog-actions-align-end","end"===j.align)},inputs:{align:"align"},features:[a.Vt3]})}return tt})();function Gt(tt,ke){let B=tt.nativeElement.parentElement;for(;B&&!B.classList.contains("mat-mdc-dialog-container");)B=B.parentElement;return B?ke.find(k=>k.id===B.id):null}let Kt=(()=>{class tt{static \u0275fac=function(k){return new(k||tt)};static \u0275mod=a.$C({type:tt});static \u0275inj=a.G2t({providers:[Gn],imports:[Ie,i.z_,w.jc,Xt.yE,Xt.yE]})}return tt})()},1997:(o,s,r)=>{"use strict";r.d(s,{q:()=>y,w:()=>w});var i=r(4438),a=r(4085),c=r(3);let y=(()=>{class C{get vertical(){return this._vertical}set vertical(S){this._vertical=(0,a.he)(S)}_vertical=!1;get inset(){return this._inset}set inset(S){this._inset=(0,a.he)(S)}_inset=!1;static \u0275fac=function(A){return new(A||C)};static \u0275cmp=i.VBU({type:C,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(A,I){2&A&&(i.BMQ("aria-orientation",I.vertical?"vertical":"horizontal"),i.AVh("mat-divider-vertical",I.vertical)("mat-divider-horizontal",!I.vertical)("mat-divider-inset",I.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(A,I){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return C})(),w=(()=>{class C{static \u0275fac=function(A){return new(A||C)};static \u0275mod=i.$C({type:C});static \u0275inj=i.G2t({imports:[c.yE,c.yE]})}return C})()},2408:(o,s,r)=>{"use strict";r.d(s,{xb:()=>Vt,U$:()=>dn,TL:()=>an,rl:()=>Jr,qT:()=>it,RG:()=>Xr,MV:()=>Xn,nJ:()=>Nt,JW:()=>Gt,yw:()=>Kt});var i=r(4438),a=r(9888),c=r(8203),y=r(4085),w=r(6860),C=r(177),T=r(8359),S=r(1413),A=r(7786),I=r(9172),N=r(6354),G=r(9974),Z=r(4360),be=r(5964),me=r(6977),pe=r(1985),Te=r(4668);class Re{_box;_destroyed=new S.B;_resizeSubject=new S.B;_resizeObserver;_elementObservables=new Map;constructor(Bt){this._box=Bt,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(Ee=>this._resizeSubject.next(Ee)))}observe(Bt){return this._elementObservables.has(Bt)||this._elementObservables.set(Bt,new pe.c(Ee=>{const lt=this._resizeSubject.subscribe(Ee);return this._resizeObserver?.observe(Bt,{box:this._box}),()=>{this._resizeObserver?.unobserve(Bt),lt.unsubscribe(),this._elementObservables.delete(Bt)}}).pipe((0,be.p)(Ee=>Ee.some(lt=>lt.target===Bt)),(0,Te.t)({bufferSize:1,refCount:!0}),(0,me.Q)(this._destroyed))),this._elementObservables.get(Bt)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Me=(()=>{class _t{_observers=new Map;_ngZone=(0,i.WQX)(i.SKi);constructor(){}ngOnDestroy(){for(const[,Ee]of this._observers)Ee.destroy();this._observers.clear()}observe(Ee,lt){const Pe=lt?.box||"content-box";return this._observers.has(Pe)||this._observers.set(Pe,new Re(Pe)),this._observers.get(Pe).observe(Ee)}static \u0275fac=function(lt){return new(lt||_t)};static \u0275prov=i.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();var Ce=r(9969),le=r(2318),ae=r(3);const Ie=["notch"],$e=["matFormFieldNotchedOutline",""],st=["*"],ht=["textField"],vt=["iconPrefixContainer"],at=["textPrefixContainer"],Xt=["iconSuffixContainer"],ln=["textSuffixContainer"],yn=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],$n=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function bn(_t,Bt){1&_t&&i.nrm(0,"span",21)}function Qe(_t,Bt){if(1&_t&&(i.j41(0,"label",20),i.SdG(1,1),i.DNE(2,bn,1,0,"span",21),i.k0s()),2&_t){const Ee=i.XpG(2);i.Y8G("floating",Ee._shouldLabelFloat())("monitorResize",Ee._hasOutline())("id",Ee._labelId),i.BMQ("for",Ee._control.disableAutomaticLabeling?null:Ee._control.id),i.R7$(2),i.vxM(!Ee.hideRequiredMarker&&Ee._control.required?2:-1)}}function bt(_t,Bt){if(1&_t&&i.DNE(0,Qe,3,5,"label",20),2&_t){const Ee=i.XpG();i.vxM(Ee._hasFloatingLabel()?0:-1)}}function ze(_t,Bt){1&_t&&i.nrm(0,"div",7)}function Fe(_t,Bt){}function Ft(_t,Bt){if(1&_t&&i.DNE(0,Fe,0,0,"ng-template",13),2&_t){i.XpG(2);const Ee=i.sdS(1);i.Y8G("ngTemplateOutlet",Ee)}}function Ke(_t,Bt){if(1&_t&&(i.j41(0,"div",9),i.DNE(1,Ft,1,1,null,13),i.k0s()),2&_t){const Ee=i.XpG();i.Y8G("matFormFieldNotchedOutlineOpen",Ee._shouldLabelFloat()),i.R7$(),i.vxM(Ee._forceDisplayInfixLabel()?-1:1)}}function dt(_t,Bt){1&_t&&(i.j41(0,"div",10,2),i.SdG(2,2),i.k0s())}function Ge(_t,Bt){1&_t&&(i.j41(0,"div",11,3),i.SdG(2,3),i.k0s())}function He(_t,Bt){}function mt(_t,Bt){if(1&_t&&i.DNE(0,He,0,0,"ng-template",13),2&_t){i.XpG();const Ee=i.sdS(1);i.Y8G("ngTemplateOutlet",Ee)}}function se(_t,Bt){1&_t&&(i.j41(0,"div",14,4),i.SdG(2,4),i.k0s())}function Ze(_t,Bt){1&_t&&(i.j41(0,"div",15,5),i.SdG(2,5),i.k0s())}function Rt(_t,Bt){1&_t&&i.nrm(0,"div",16)}function Jt(_t,Bt){if(1&_t&&(i.j41(0,"div",18),i.SdG(1,6),i.k0s()),2&_t){const Ee=i.XpG();i.Y8G("@transitionMessages",Ee._subscriptAnimationState)}}function fn(_t,Bt){if(1&_t&&(i.j41(0,"mat-hint",22),i.EFF(1),i.k0s()),2&_t){const Ee=i.XpG(2);i.Y8G("id",Ee._hintLabelId),i.R7$(),i.JRh(Ee.hintLabel)}}function Gn(_t,Bt){if(1&_t&&(i.j41(0,"div",19),i.DNE(1,fn,2,2,"mat-hint",22),i.SdG(2,7),i.nrm(3,"div",23),i.SdG(4,8),i.k0s()),2&_t){const Ee=i.XpG();i.Y8G("@transitionMessages",Ee._subscriptAnimationState),i.R7$(),i.vxM(Ee.hintLabel?1:-1)}}let Nt=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["mat-label"]]})}return _t})();const Qt=new i.nKC("MatError");let an=(()=>{class _t{id=(0,i.WQX)(a.g7).getId("mat-mdc-error-");constructor(){(0,i.WQX)(new i.ES_("aria-live"),{optional:!0})||(0,i.WQX)(i.aKT).nativeElement.setAttribute("aria-live","polite")}static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(lt,Pe){2<&&i.Mr5("id",Pe.id)},inputs:{id:"id"},features:[i.Jv_([{provide:Qt,useExisting:_t}])]})}return _t})(),Xn=(()=>{class _t{align="start";id=(0,i.WQX)(a.g7).getId("mat-mdc-hint-");static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(lt,Pe){2<&&(i.Mr5("id",Pe.id),i.BMQ("align",null),i.AVh("mat-mdc-form-field-hint-end","end"===Pe.align))},inputs:{align:"align",id:"id"}})}return _t})();const En=new i.nKC("MatPrefix");let Gt=(()=>{class _t{set _isTextSelector(Ee){this._isText=!0}_isText=!1;static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[i.Jv_([{provide:En,useExisting:_t}])]})}return _t})();const At=new i.nKC("MatSuffix");let Kt=(()=>{class _t{set _isTextSelector(Ee){this._isText=!0}_isText=!1;static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[i.Jv_([{provide:At,useExisting:_t}])]})}return _t})();const xn=new i.nKC("FloatingLabelParent");let Yn=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);get floating(){return this._floating}set floating(Ee){this._floating=Ee,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(Ee){this._monitorResize=Ee,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=(0,i.WQX)(Me);_ngZone=(0,i.WQX)(i.SKi);_parent=(0,i.WQX)(xn);_resizeSubscription=new T.yU;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function tt(_t){if(null!==_t.offsetParent)return _t.scrollWidth;const Ee=_t.cloneNode(!0);Ee.style.setProperty("position","absolute"),Ee.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Ee);const lt=Ee.scrollWidth;return Ee.remove(),lt}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(lt,Pe){2<&&i.AVh("mdc-floating-label--float-above",Pe.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return _t})();const ke="mdc-line-ripple--active",B="mdc-line-ripple--deactivating";let k=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);constructor(){(0,i.WQX)(i.SKi).runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const Ee=this._elementRef.nativeElement.classList;Ee.remove(B),Ee.add(ke)}deactivate(){this._elementRef.nativeElement.classList.add(B)}_handleTransitionEnd=Ee=>{const lt=this._elementRef.nativeElement.classList,Pe=lt.contains(B);"opacity"===Ee.propertyName&&Pe&<.remove(ke,B)};ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return _t})(),j=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);_ngZone=(0,i.WQX)(i.SKi);open=!1;_notch;constructor(){}ngAfterViewInit(){const Ee=this._elementRef.nativeElement.querySelector(".mdc-floating-label");Ee?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(Ee.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>Ee.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(Ee){this._notch.nativeElement.style.width=this.open&&Ee?`calc(${Ee}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(lt,Pe){if(1<&&i.GBs(Ie,5),2<){let kt;i.mGM(kt=i.lsd())&&(Pe._notch=kt.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(lt,Pe){2<&&i.AVh("mdc-notched-outline--notched",Pe.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:$e,ngContentSelectors:st,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(lt,Pe){1<&&(i.NAR(),i.nrm(0,"div",1),i.j41(1,"div",2,0),i.SdG(3),i.k0s(),i.nrm(4,"div",3))},encapsulation:2,changeDetection:0})}return _t})();const De={transitionMessages:(0,Ce.hZ)("transitionMessages",[(0,Ce.wk)("enter",(0,Ce.iF)({opacity:1,transform:"translateY(0%)"})),(0,Ce.kY)("void => enter",[(0,Ce.iF)({opacity:0,transform:"translateY(-5px)"}),(0,Ce.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let it=(()=>{class _t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(lt){return new(lt||_t)};static \u0275dir=i.FsC({type:_t})}return _t})();const Vt=new i.nKC("MatFormField"),dn=new i.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Jr=(()=>{class _t{_elementRef=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_dir=(0,i.WQX)(c.dS);_platform=(0,i.WQX)(w.OD);_idGenerator=(0,i.WQX)(a.g7);_defaults=(0,i.WQX)(dn,{optional:!0});_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=(0,i.sbv)(Nt);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Ee){this._hideRequiredMarker=(0,y.he)(Ee)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(Ee){Ee!==this._floatLabel&&(this._floatLabel=Ee,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(Ee){const lt=this._appearance;this._appearance=Ee||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==lt&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance="fill";get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(Ee){this._subscriptSizing=Ee||this._defaults?.subscriptSizing||"fixed"}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(Ee){this._hintLabel=Ee,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_subscriptAnimationState="";get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(Ee){this._explicitFormFieldControl=Ee}_destroyed=new S.B;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=(0,i.WQX)(i.zZn);constructor(){const Ee=this._defaults;Ee&&(Ee.appearance&&(this.appearance=Ee.appearance),this._hideRequiredMarker=!!Ee?.hideRequiredMarker,Ee.color&&(this.color=Ee.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=(0,i.EWP)(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(Ee){const lt=this._control,Pe="mat-mdc-form-field-type-";Ee&&this._elementRef.nativeElement.classList.remove(Pe+Ee.controlType),lt.controlType&&this._elementRef.nativeElement.classList.add(Pe+lt.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=lt.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=lt.stateChanges.pipe((0,I.Z)([void 0,void 0]),(0,N.T)(()=>[lt.errorState,lt.userAriaDescribedBy]),function ne(){return(0,G.N)((_t,Bt)=>{let Ee,lt=!1;_t.subscribe((0,Z._)(Bt,Pe=>{const kt=Ee;Ee=Pe,lt&&Bt.next([kt,Pe]),lt=!0}))})}(),(0,be.p)(([[kt,ft],[Pt,mn]])=>kt!==Pt||ft!==mn)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),lt.ngControl&<.ngControl.valueChanges&&(this._valueChanges=lt.ngControl.valueChanges.pipe((0,me.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(Ee=>!Ee._isText),this._hasTextPrefix=!!this._prefixChildren.find(Ee=>Ee._isText),this._hasIconSuffix=!!this._suffixChildren.find(Ee=>!Ee._isText),this._hasTextSuffix=!!this._suffixChildren.find(Ee=>Ee._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,A.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),(0,i.Tzd)(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe((0,me.Q)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=(0,i.EWP)(()=>!!this._labelChild());_shouldLabelFloat(){return!!this._hasFloatingLabel()&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_shouldForward(Ee){const lt=this._control?this._control.ngControl:null;return lt&<[Ee]}_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 Ee=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Ee.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const lt=this._hintChildren?this._hintChildren.find(kt=>"start"===kt.align):null,Pe=this._hintChildren?this._hintChildren.find(kt=>"end"===kt.align):null;lt?Ee.push(lt.id):this._hintLabel&&Ee.push(this._hintLabelId),Pe&&Ee.push(Pe.id)}else this._errorChildren&&Ee.push(...this._errorChildren.map(lt=>lt.id));this._control.setDescribedByIds(Ee)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;const Ee=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(Ee.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdate=!0);const lt=this._iconPrefixContainer?.nativeElement,Pe=this._textPrefixContainer?.nativeElement,kt=this._iconSuffixContainer?.nativeElement,ft=this._textSuffixContainer?.nativeElement,Pt=lt?.getBoundingClientRect().width??0,mn=Pe?.getBoundingClientRect().width??0,or=kt?.getBoundingClientRect().width??0,Mr=ft?.getBoundingClientRect().width??0;Ee.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Pt+mn}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`,this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Pt+mn+or+Mr}px)`)}_isAttachedToDom(){const Ee=this._elementRef.nativeElement;if(Ee.getRootNode){const lt=Ee.getRootNode();return lt&<!==Ee}return document.documentElement.contains(Ee)}static \u0275fac=function(lt){return new(lt||_t)};static \u0275cmp=i.VBU({type:_t,selectors:[["mat-form-field"]],contentQueries:function(lt,Pe,kt){if(1<&&(i.C6U(kt,Pe._labelChild,Nt,5),i.wni(kt,it,5),i.wni(kt,En,5),i.wni(kt,At,5),i.wni(kt,Qt,5),i.wni(kt,Xn,5)),2<){let ft;i.NyB(),i.mGM(ft=i.lsd())&&(Pe._formFieldControl=ft.first),i.mGM(ft=i.lsd())&&(Pe._prefixChildren=ft),i.mGM(ft=i.lsd())&&(Pe._suffixChildren=ft),i.mGM(ft=i.lsd())&&(Pe._errorChildren=ft),i.mGM(ft=i.lsd())&&(Pe._hintChildren=ft)}},viewQuery:function(lt,Pe){if(1<&&(i.GBs(ht,5),i.GBs(vt,5),i.GBs(at,5),i.GBs(Xt,5),i.GBs(ln,5),i.GBs(Yn,5),i.GBs(j,5),i.GBs(k,5)),2<){let kt;i.mGM(kt=i.lsd())&&(Pe._textField=kt.first),i.mGM(kt=i.lsd())&&(Pe._iconPrefixContainer=kt.first),i.mGM(kt=i.lsd())&&(Pe._textPrefixContainer=kt.first),i.mGM(kt=i.lsd())&&(Pe._iconSuffixContainer=kt.first),i.mGM(kt=i.lsd())&&(Pe._textSuffixContainer=kt.first),i.mGM(kt=i.lsd())&&(Pe._floatingLabel=kt.first),i.mGM(kt=i.lsd())&&(Pe._notchedOutline=kt.first),i.mGM(kt=i.lsd())&&(Pe._lineRipple=kt.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(lt,Pe){2<&&i.AVh("mat-mdc-form-field-label-always-float",Pe._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Pe._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Pe._hasIconSuffix)("mat-form-field-invalid",Pe._control.errorState)("mat-form-field-disabled",Pe._control.disabled)("mat-form-field-autofilled",Pe._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===Pe._animationMode)("mat-form-field-appearance-fill","fill"==Pe.appearance)("mat-form-field-appearance-outline","outline"==Pe.appearance)("mat-form-field-hide-placeholder",Pe._hasFloatingLabel()&&!Pe._shouldLabelFloat())("mat-focused",Pe._control.focused)("mat-primary","accent"!==Pe.color&&"warn"!==Pe.color)("mat-accent","accent"===Pe.color)("mat-warn","warn"===Pe.color)("ng-untouched",Pe._shouldForward("untouched"))("ng-touched",Pe._shouldForward("touched"))("ng-pristine",Pe._shouldForward("pristine"))("ng-dirty",Pe._shouldForward("dirty"))("ng-valid",Pe._shouldForward("valid"))("ng-invalid",Pe._shouldForward("invalid"))("ng-pending",Pe._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[i.Jv_([{provide:Vt,useExisting:_t},{provide:xn,useExisting:_t}])],ngContentSelectors:$n,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(lt,Pe){if(1<){const kt=i.RV6();i.NAR(yn),i.DNE(0,bt,1,1,"ng-template",null,0,i.C5r),i.j41(2,"div",6,1),i.bIt("click",function(Pt){return i.eBV(kt),i.Njj(Pe._control.onContainerClick(Pt))}),i.DNE(4,ze,1,0,"div",7),i.j41(5,"div",8),i.DNE(6,Ke,2,2,"div",9)(7,dt,3,0,"div",10)(8,Ge,3,0,"div",11),i.j41(9,"div",12),i.DNE(10,mt,1,1,null,13),i.SdG(11),i.k0s(),i.DNE(12,se,3,0,"div",14)(13,Ze,3,0,"div",15),i.k0s(),i.DNE(14,Rt,1,0,"div",16),i.k0s(),i.j41(15,"div",17),i.DNE(16,Jt,2,1,"div",18)(17,Gn,5,2,"div",19),i.k0s()}if(2<){let kt;i.R7$(2),i.AVh("mdc-text-field--filled",!Pe._hasOutline())("mdc-text-field--outlined",Pe._hasOutline())("mdc-text-field--no-label",!Pe._hasFloatingLabel())("mdc-text-field--disabled",Pe._control.disabled)("mdc-text-field--invalid",Pe._control.errorState),i.R7$(2),i.vxM(Pe._hasOutline()||Pe._control.disabled?-1:4),i.R7$(2),i.vxM(Pe._hasOutline()?6:-1),i.R7$(),i.vxM(Pe._hasIconPrefix?7:-1),i.R7$(),i.vxM(Pe._hasTextPrefix?8:-1),i.R7$(2),i.vxM(!Pe._hasOutline()||Pe._forceDisplayInfixLabel()?10:-1),i.R7$(2),i.vxM(Pe._hasTextSuffix?12:-1),i.R7$(),i.vxM(Pe._hasIconSuffix?13:-1),i.R7$(),i.vxM(Pe._hasOutline()?-1:14),i.R7$(),i.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Pe.subscriptSizing),i.R7$(),i.vxM("error"===(kt=Pe._getDisplayedMessages())?16:"hint"===kt?17:-1)}},dependencies:[Yn,j,C.T3,k,Xn],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[De.transitionMessages]},changeDetection:0})}return _t})(),Xr=(()=>{class _t{static \u0275fac=function(lt){return new(lt||_t)};static \u0275mod=i.$C({type:_t});static \u0275inj=i.G2t({imports:[ae.yE,le.w5,ae.yE]})}return _t})()},9213:(o,s,r)=>{"use strict";r.d(s,{An:()=>bt,m_:()=>ze,tp:()=>Ie});var i=r(4438),a=r(3),c=r(177),y=r(7673),w=r(8810),C=r(7468),T=r(8359),S=r(8141),A=r(6354),I=r(9437),N=r(980),G=r(7647),Z=r(6697),ne=r(1626),be=r(345);const me=["*"];let pe;function xe(Fe){return function Te(){if(void 0===pe&&(pe=null,typeof window<"u")){const Fe=window;void 0!==Fe.trustedTypes&&(pe=Fe.trustedTypes.createPolicy("angular#components",{createHTML:Ft=>Ft}))}return pe}()?.createHTML(Fe)||Fe}function Re(Fe){return Error(`Unable to find icon with the name "${Fe}"`)}function Ce(Fe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Fe}".`)}function le(Fe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Fe}".`)}class ae{url;svgText;options;svgElement;constructor(Ft,Ke,dt){this.url=Ft,this.svgText=Ke,this.options=dt}}let Ie=(()=>{class Fe{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(Ke,dt,Ge,He){this._httpClient=Ke,this._sanitizer=dt,this._errorHandler=He,this._document=Ge}addSvgIcon(Ke,dt,Ge){return this.addSvgIconInNamespace("",Ke,dt,Ge)}addSvgIconLiteral(Ke,dt,Ge){return this.addSvgIconLiteralInNamespace("",Ke,dt,Ge)}addSvgIconInNamespace(Ke,dt,Ge,He){return this._addSvgIconConfig(Ke,dt,new ae(Ge,null,He))}addSvgIconResolver(Ke){return this._resolvers.push(Ke),this}addSvgIconLiteralInNamespace(Ke,dt,Ge,He){const mt=this._sanitizer.sanitize(i.WPN.HTML,Ge);if(!mt)throw le(Ge);const se=xe(mt);return this._addSvgIconConfig(Ke,dt,new ae("",se,He))}addSvgIconSet(Ke,dt){return this.addSvgIconSetInNamespace("",Ke,dt)}addSvgIconSetLiteral(Ke,dt){return this.addSvgIconSetLiteralInNamespace("",Ke,dt)}addSvgIconSetInNamespace(Ke,dt,Ge){return this._addSvgIconSetConfig(Ke,new ae(dt,null,Ge))}addSvgIconSetLiteralInNamespace(Ke,dt,Ge){const He=this._sanitizer.sanitize(i.WPN.HTML,dt);if(!He)throw le(dt);const mt=xe(He);return this._addSvgIconSetConfig(Ke,new ae("",mt,Ge))}registerFontClassAlias(Ke,dt=Ke){return this._fontCssClassesByAlias.set(Ke,dt),this}classNameForFontAlias(Ke){return this._fontCssClassesByAlias.get(Ke)||Ke}setDefaultFontSetClass(...Ke){return this._defaultFontSetClass=Ke,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ke){const dt=this._sanitizer.sanitize(i.WPN.RESOURCE_URL,Ke);if(!dt)throw Ce(Ke);const Ge=this._cachedIconsByUrl.get(dt);return Ge?(0,y.of)(ht(Ge)):this._loadSvgIconFromConfig(new ae(Ke,null)).pipe((0,S.M)(He=>this._cachedIconsByUrl.set(dt,He)),(0,A.T)(He=>ht(He)))}getNamedSvgIcon(Ke,dt=""){const Ge=vt(dt,Ke);let He=this._svgIconConfigs.get(Ge);if(He)return this._getSvgFromConfig(He);if(He=this._getIconConfigFromResolvers(dt,Ke),He)return this._svgIconConfigs.set(Ge,He),this._getSvgFromConfig(He);const mt=this._iconSetConfigs.get(dt);return mt?this._getSvgFromIconSetConfigs(Ke,mt):(0,w.$)(Re(Ge))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ke){return Ke.svgText?(0,y.of)(ht(this._svgElementFromConfig(Ke))):this._loadSvgIconFromConfig(Ke).pipe((0,A.T)(dt=>ht(dt)))}_getSvgFromIconSetConfigs(Ke,dt){const Ge=this._extractIconWithNameFromAnySet(Ke,dt);if(Ge)return(0,y.of)(Ge);const He=dt.filter(mt=>!mt.svgText).map(mt=>this._loadSvgIconSetFromConfig(mt).pipe((0,I.W)(se=>{const Rt=`Loading icon set URL: ${this._sanitizer.sanitize(i.WPN.RESOURCE_URL,mt.url)} failed: ${se.message}`;return this._errorHandler.handleError(new Error(Rt)),(0,y.of)(null)})));return(0,C.p)(He).pipe((0,A.T)(()=>{const mt=this._extractIconWithNameFromAnySet(Ke,dt);if(!mt)throw Re(Ke);return mt}))}_extractIconWithNameFromAnySet(Ke,dt){for(let Ge=dt.length-1;Ge>=0;Ge--){const He=dt[Ge];if(He.svgText&&He.svgText.toString().indexOf(Ke)>-1){const mt=this._svgElementFromConfig(He),se=this._extractSvgIconFromSet(mt,Ke,He.options);if(se)return se}}return null}_loadSvgIconFromConfig(Ke){return this._fetchIcon(Ke).pipe((0,S.M)(dt=>Ke.svgText=dt),(0,A.T)(()=>this._svgElementFromConfig(Ke)))}_loadSvgIconSetFromConfig(Ke){return Ke.svgText?(0,y.of)(null):this._fetchIcon(Ke).pipe((0,S.M)(dt=>Ke.svgText=dt))}_extractSvgIconFromSet(Ke,dt,Ge){const He=Ke.querySelector(`[id="${dt}"]`);if(!He)return null;const mt=He.cloneNode(!0);if(mt.removeAttribute("id"),"svg"===mt.nodeName.toLowerCase())return this._setSvgAttributes(mt,Ge);if("symbol"===mt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(mt),Ge);const se=this._svgElementFromString(xe(""));return se.appendChild(mt),this._setSvgAttributes(se,Ge)}_svgElementFromString(Ke){const dt=this._document.createElement("DIV");dt.innerHTML=Ke;const Ge=dt.querySelector("svg");if(!Ge)throw Error(" tag not found");return Ge}_toSvgElement(Ke){const dt=this._svgElementFromString(xe("")),Ge=Ke.attributes;for(let He=0;Hexe(Rt)),(0,N.j)(()=>this._inProgressUrlFetches.delete(mt)),(0,G.u)());return this._inProgressUrlFetches.set(mt,Ze),Ze}_addSvgIconConfig(Ke,dt,Ge){return this._svgIconConfigs.set(vt(Ke,dt),Ge),this}_addSvgIconSetConfig(Ke,dt){const Ge=this._iconSetConfigs.get(Ke);return Ge?Ge.push(dt):this._iconSetConfigs.set(Ke,[dt]),this}_svgElementFromConfig(Ke){if(!Ke.svgElement){const dt=this._svgElementFromString(Ke.svgText);this._setSvgAttributes(dt,Ke.options),Ke.svgElement=dt}return Ke.svgElement}_getIconConfigFromResolvers(Ke,dt){for(let Ge=0;GeFt?Ft.pathname+Ft.search:""}}}),$n=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],bn=$n.map(Fe=>`[${Fe}]`).join(", "),Qe=/^url\(['"]?#(.*?)['"]?\)$/;let bt=(()=>{class Fe{_elementRef=(0,i.WQX)(i.aKT);_iconRegistry=(0,i.WQX)(Ie);_location=(0,i.WQX)(ln);_errorHandler=(0,i.WQX)(i.zcH);_defaultColor;get color(){return this._color||this._defaultColor}set color(Ke){this._color=Ke}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(Ke){Ke!==this._svgIcon&&(Ke?this._updateSvgIcon(Ke):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ke)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(Ke){const dt=this._cleanupFontValue(Ke);dt!==this._fontSet&&(this._fontSet=dt,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(Ke){const dt=this._cleanupFontValue(Ke);dt!==this._fontIcon&&(this._fontIcon=dt,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=T.yU.EMPTY;constructor(){const Ke=(0,i.WQX)(new i.ES_("aria-hidden"),{optional:!0}),dt=(0,i.WQX)(Xt,{optional:!0});dt&&(dt.color&&(this.color=this._defaultColor=dt.color),dt.fontSet&&(this.fontSet=dt.fontSet)),Ke||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Ke){if(!Ke)return["",""];const dt=Ke.split(":");switch(dt.length){case 1:return["",dt[0]];case 2:return dt;default:throw Error(`Invalid icon name: "${Ke}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ke=this._elementsWithExternalReferences;if(Ke&&Ke.size){const dt=this._location.getPathname();dt!==this._previousPath&&(this._previousPath=dt,this._prependPathToReferences(dt))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ke){this._clearSvgElement();const dt=this._location.getPathname();this._previousPath=dt,this._cacheChildrenWithExternalReferences(Ke),this._prependPathToReferences(dt),this._elementRef.nativeElement.appendChild(Ke)}_clearSvgElement(){const Ke=this._elementRef.nativeElement;let dt=Ke.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();dt--;){const Ge=Ke.childNodes[dt];(1!==Ge.nodeType||"svg"===Ge.nodeName.toLowerCase())&&Ge.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ke=this._elementRef.nativeElement,dt=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Ge=>Ge.length>0);this._previousFontSetClass.forEach(Ge=>Ke.classList.remove(Ge)),dt.forEach(Ge=>Ke.classList.add(Ge)),this._previousFontSetClass=dt,this.fontIcon!==this._previousFontIconClass&&!dt.includes("mat-ligature-font")&&(this._previousFontIconClass&&Ke.classList.remove(this._previousFontIconClass),this.fontIcon&&Ke.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Ke){return"string"==typeof Ke?Ke.trim().split(" ")[0]:Ke}_prependPathToReferences(Ke){const dt=this._elementsWithExternalReferences;dt&&dt.forEach((Ge,He)=>{Ge.forEach(mt=>{He.setAttribute(mt.name,`url('${Ke}#${mt.value}')`)})})}_cacheChildrenWithExternalReferences(Ke){const dt=Ke.querySelectorAll(bn),Ge=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let He=0;He{const se=dt[He],Ze=se.getAttribute(mt),Rt=Ze?Ze.match(Qe):null;if(Rt){let Jt=Ge.get(se);Jt||(Jt=[],Ge.set(se,Jt)),Jt.push({name:mt,value:Rt[1]})}})}_updateSvgIcon(Ke){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ke){const[dt,Ge]=this._splitIconName(Ke);dt&&(this._svgNamespace=dt),Ge&&(this._svgName=Ge),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ge,dt).pipe((0,Z.s)(1)).subscribe(He=>this._setSvgElement(He),He=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${dt}:${Ge}! ${He.message}`))})}}static \u0275fac=function(dt){return new(dt||Fe)};static \u0275cmp=i.VBU({type:Fe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(dt,Ge){2&dt&&(i.BMQ("data-mat-icon-type",Ge._usingFontIcon()?"font":"svg")("data-mat-icon-name",Ge._svgName||Ge.fontIcon)("data-mat-icon-namespace",Ge._svgNamespace||Ge.fontSet)("fontIcon",Ge._usingFontIcon()?Ge.fontIcon:null),i.HbH(Ge.color?"mat-"+Ge.color:""),i.AVh("mat-icon-inline",Ge.inline)("mat-icon-no-color","primary"!==Ge.color&&"accent"!==Ge.color&&"warn"!==Ge.color))},inputs:{color:"color",inline:[2,"inline","inline",i.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.GFd],ngContentSelectors:me,decls:1,vars:0,template:function(dt,Ge){1&dt&&(i.NAR(),i.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return Fe})(),ze=(()=>{class Fe{static \u0275fac=function(dt){return new(dt||Fe)};static \u0275mod=i.$C({type:Fe});static \u0275inj=i.G2t({imports:[a.yE,a.yE]})}return Fe})()},9042:(o,s,r)=>{"use strict";r.d(s,{fS:()=>be,fg:()=>ne});var i=r(4085),a=r(6860),c=r(7403),y=r(4438),w=r(9888),C=r(9417),T=r(3),S=r(2408),A=r(1413);const N=new y.nKC("MAT_INPUT_VALUE_ACCESSOR"),G=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Z=new y.nKC("MAT_INPUT_CONFIG");let ne=(()=>{class me{_elementRef=(0,y.WQX)(y.aKT);_platform=(0,y.WQX)(a.OD);ngControl=(0,y.WQX)(C.vO,{optional:!0,self:!0});_autofillMonitor=(0,y.WQX)(c.P8);_ngZone=(0,y.WQX)(y.SKi);_formField=(0,y.WQX)(S.xb,{optional:!0});_uid=(0,y.WQX)(w.g7).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_webkitBlinkWheelListenerAttached=!1;_config=(0,y.WQX)(Z,{optional:!0});_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new A.B;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(Te){this._disabled=(0,i.he)(Te),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(Te){this._id=Te||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(C.k0.required)??!1}set required(Te){this._required=(0,i.he)(Te)}_required;get type(){return this._type}set type(Te){this._type=Te||"text",this._validateType(),!this._isTextarea&&(0,a.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(Te){this._errorStateTracker.matcher=Te}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(Te){Te!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(Te):this._inputValueAccessor.value=Te,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Te){this._readonly=(0,i.he)(Te)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(Te){this._errorStateTracker.errorState=Te}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Te=>(0,a.MU)().has(Te));constructor(){const Te=(0,y.WQX)(C.cV,{optional:!0}),xe=(0,y.WQX)(C.j4,{optional:!0}),Re=(0,y.WQX)(T.es),Me=(0,y.WQX)(N,{optional:!0,self:!0}),Ce=this._elementRef.nativeElement,le=Ce.nodeName.toLowerCase();Me?(0,y.Hps)(Me.value)?this._signalBasedValueAccessor=Me:this._inputValueAccessor=Me:this._inputValueAccessor=Ce,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{Ce.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new T.X0(Re,this.ngControl,xe,Te,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===le,this._isTextarea="textarea"===le,this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=Ce.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&(0,y.QZP)(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(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){if(Te!==this.focused){if(!this._isNativeSelect&&Te&&this.disabled&&this.disabledInteractive){const xe=this._elementRef.nativeElement;"number"===xe.type?(xe.type="text",xe.setSelectionRange(0,0),xe.type="number"):xe.setSelectionRange(0,0)}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 xe=this._elementRef.nativeElement;this._previousPlaceholder=Te,Te?xe.setAttribute("placeholder",Te):xe.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){G.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,xe=Te.options[0];return this.focused||Te.multiple||!this.empty||!!(Te.selectedIndex>-1&&xe&&xe.label)}return this.focused&&!this.disabled||!this.empty}setDescribedByIds(Te){const xe=this._elementRef.nativeElement,Re=xe.getAttribute("aria-describedby");let Me;if(Re){const Ce=this._formFieldDescribedBy||Te;Me=Te.concat(Re.split(" ").filter(le=>le&&!Ce.includes(le)))}else Me=Te;this._formFieldDescribedBy=Te,Me.length?xe.setAttribute("aria-describedby",Me.join(" ")):xe.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Te=this._elementRef.nativeElement;return this._isNativeSelect&&(Te.multiple||Te.size>1)}_iOSKeyupListener=Te=>{const xe=Te.target;!xe.value&&0===xe.selectionStart&&0===xe.selectionEnd&&(xe.setSelectionRange(1,1),xe.setSelectionRange(0,0))};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&"number"===this._type&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&"number"!==this._type&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(xe){return new(xe||me)};static \u0275dir=y.FsC({type:me,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(xe,Re){1&xe&&y.bIt("focus",function(){return Re._focusChanged(!0)})("blur",function(){return Re._focusChanged(!1)})("input",function(){return Re._onInput()}),2&xe&&(y.Mr5("id",Re.id)("disabled",Re.disabled&&!Re.disabledInteractive)("required",Re.required),y.BMQ("name",Re.name||null)("readonly",Re._getReadonlyAttribute())("aria-disabled",Re.disabled&&Re.disabledInteractive?"true":null)("aria-invalid",Re.empty&&Re.required?null:Re.errorState)("aria-required",Re.required)("id",Re.id),y.AVh("mat-input-server",Re._isServer)("mat-mdc-form-field-textarea-control",Re._isInFormField&&Re._isTextarea)("mat-mdc-form-field-input-control",Re._isInFormField)("mat-mdc-input-disabled-interactive",Re.disabledInteractive)("mdc-text-field__input",Re._isInFormField)("mat-mdc-native-select-inline",Re._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",y.L39]},exportAs:["matInput"],features:[y.Jv_([{provide:S.qT,useExisting:me}]),y.GFd,y.OA$]})}return me})(),be=(()=>{class me{static \u0275fac=function(xe){return new(xe||me)};static \u0275mod=y.$C({type:me});static \u0275inj=y.G2t({imports:[T.yE,S.RG,S.RG,c.EE,T.yE]})}return me})()},9115:(o,s,r)=>{"use strict";r.d(s,{Cn:()=>Jt,Cp:()=>Rt,fb:()=>Xt,kk:()=>dt});var i=r(4438),a=r(9888),c=r(7336),y=r(1413),w=r(7786),C=r(8359),T=r(7673),S=r(5007),A=r(9172),I=r(5558),N=r(6977),G=r(5964),Z=r(6697),ne=r(1986),be=r(177),me=r(3),pe=r(9046),Te=r(6939),xe=r(9969),Re=r(8203),Me=r(6969),Ce=r(6860),le=r(5542);const ae=["mat-menu-item",""],Ie=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],$e=["mat-icon, [matMenuItemIcon]","*"];function st(fn,Gn){1&fn&&(i.qSk(),i.j41(0,"svg",2),i.nrm(1,"polygon",3),i.k0s())}const ht=["*"];function vt(fn,Gn){if(1&fn){const Nt=i.RV6();i.j41(0,"div",0),i.bIt("click",function(){i.eBV(Nt);const an=i.XpG();return i.Njj(an.closed.emit("click"))})("@transformMenu.start",function(an){i.eBV(Nt);const Xn=i.XpG();return i.Njj(Xn._onAnimationStart(an))})("@transformMenu.done",function(an){i.eBV(Nt);const Xn=i.XpG();return i.Njj(Xn._onAnimationDone(an))}),i.j41(1,"div",1),i.SdG(2),i.k0s()()}if(2&fn){const Nt=i.XpG();i.HbH(Nt._classList),i.Y8G("id",Nt.panelId)("@transformMenu",Nt._panelAnimationState),i.BMQ("aria-label",Nt.ariaLabel||null)("aria-labelledby",Nt.ariaLabelledby||null)("aria-describedby",Nt.ariaDescribedby||null)}}const at=new i.nKC("MAT_MENU_PANEL");let Xt=(()=>{class fn{_elementRef=(0,i.WQX)(i.aKT);_document=(0,i.WQX)(be.qQ);_focusMonitor=(0,i.WQX)(a.FN);_parentMenu=(0,i.WQX)(at,{optional:!0});_changeDetectorRef=(0,i.WQX)(i.gRc);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new y.B;_focused=new y.B;_highlighted=!1;_triggersSubmenu=!1;constructor(){(0,i.WQX)(pe.l).load(me.Ah),this._parentMenu?.addItem?.(this)}focus(Nt,Qt){this._focusMonitor&&Nt?this._focusMonitor.focusVia(this._getHostElement(),Nt,Qt):this._getHostElement().focus(Qt),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(Nt){this.disabled&&(Nt.preventDefault(),Nt.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Nt=this._elementRef.nativeElement.cloneNode(!0),Qt=Nt.querySelectorAll("mat-icon, .material-icons");for(let an=0;an enter",(0,xe.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,xe.iF)({opacity:1,transform:"scale(1)"}))),(0,xe.kY)("* => void",(0,xe.i0)("100ms 25ms linear",(0,xe.iF)({opacity:0})))]),fadeInItems:(0,xe.hZ)("fadeInItems",[(0,xe.wk)("showing",(0,xe.iF)({opacity:1})),(0,xe.kY)("void => *",[(0,xe.iF)({opacity:0}),(0,xe.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ft=new i.nKC("mat-menu-default-options",{providedIn:"root",factory:function Ke(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let dt=(()=>{class fn{_elementRef=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_allItems;_directDescendantItems=new i.rOR;_classList={};_panelAnimationState="void";_animationDone=new y.B;_isAnimating;parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(Nt){this._xPosition=Nt,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Nt){this._yPosition=Nt,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(Nt){const Qt=this._previousPanelClass,an={...this._classList};Qt&&Qt.length&&Qt.split(" ").forEach(Xn=>{an[Xn]=!1}),this._previousPanelClass=Nt,Nt&&Nt.length&&(Nt.split(" ").forEach(Xn=>{an[Xn]=!0}),this._elementRef.nativeElement.className=""),this._classList=an}_previousPanelClass;get classList(){return this.panelClass}set classList(Nt){this.panelClass=Nt}closed=new i.bkB;close=this.closed;panelId=(0,i.WQX)(a.g7).getId("mat-menu-panel-");_injector=(0,i.WQX)(i.zZn);constructor(){const Nt=(0,i.WQX)(Ft);this.overlayPanelClass=Nt.overlayPanelClass||"",this._xPosition=Nt.xPosition,this._yPosition=Nt.yPosition,this.backdropClass=Nt.backdropClass,this.overlapTrigger=Nt.overlapTrigger,this.hasBackdrop=Nt.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new a.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,A.Z)(this._directDescendantItems),(0,I.n)(Nt=>(0,w.h)(...Nt.map(Qt=>Qt._focused)))).subscribe(Nt=>this._keyManager.updateActiveItem(Nt)),this._directDescendantItems.changes.subscribe(Nt=>{const Qt=this._keyManager;if("enter"===this._panelAnimationState&&Qt.activeItem?._hasFocus()){const an=Nt.toArray(),Xn=Math.max(0,Math.min(an.length-1,Qt.activeItemIndex||0));an[Xn]&&!an[Xn].disabled?Qt.setActiveItem(Xn):Qt.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe((0,A.Z)(this._directDescendantItems),(0,I.n)(Qt=>(0,w.h)(...Qt.map(an=>an._hovered))))}addItem(Nt){}removeItem(Nt){}_handleKeydown(Nt){const Qt=Nt.keyCode,an=this._keyManager;switch(Qt){case c._f:(0,c.rp)(Nt)||(Nt.preventDefault(),this.closed.emit("keydown"));break;case c.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case c.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Qt===c.i7||Qt===c.n6)&&an.setFocusOrigin("keyboard"),void an.onKeydown(Nt)}}focusFirstItem(Nt="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,i.mal)(()=>{let Qt=null;if(this._directDescendantItems.length&&(Qt=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Qt||!Qt.contains(document.activeElement)){const an=this._keyManager;an.setFocusOrigin(Nt).setFirstItemActive(),!an.activeItem&&Qt&&Qt.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Nt){}setPositionClasses(Nt=this.xPosition,Qt=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===Nt,"mat-menu-after":"after"===Nt,"mat-menu-above":"above"===Qt,"mat-menu-below":"below"===Qt},this._changeDetectorRef.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Nt){this._animationDone.next(Nt),this._isAnimating=!1}_onAnimationStart(Nt){this._isAnimating=!0,"enter"===Nt.toState&&0===this._keyManager.activeItemIndex&&(Nt.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,A.Z)(this._allItems)).subscribe(Nt=>{this._directDescendantItems.reset(Nt.filter(Qt=>Qt._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static \u0275fac=function(Qt){return new(Qt||fn)};static \u0275cmp=i.VBU({type:fn,selectors:[["mat-menu"]],contentQueries:function(Qt,an,Xn){if(1&Qt&&(i.wni(Xn,bn,5),i.wni(Xn,Xt,5),i.wni(Xn,Xt,4)),2&Qt){let En;i.mGM(En=i.lsd())&&(an.lazyContent=En.first),i.mGM(En=i.lsd())&&(an._allItems=En),i.mGM(En=i.lsd())&&(an.items=En)}},viewQuery:function(Qt,an){if(1&Qt&&i.GBs(i.C4Q,5),2&Qt){let Xn;i.mGM(Xn=i.lsd())&&(an.templateRef=Xn.first)}},hostVars:3,hostBindings:function(Qt,an){2&Qt&&i.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",i.L39],hasBackdrop:[2,"hasBackdrop","hasBackdrop",Nt=>null==Nt?null:(0,i.L39)(Nt)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[i.Jv_([{provide:at,useExisting:fn}]),i.GFd],ngContentSelectors:ht,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","id"],[1,"mat-mdc-menu-content"]],template:function(Qt,an){1&Qt&&(i.NAR(),i.DNE(0,vt,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[bt.transformMenu,bt.fadeInItems]},changeDetection:0})}return fn})();const Ge=new i.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const fn=(0,i.WQX)(Me.hJ);return()=>fn.scrollStrategies.reposition()}}),mt={provide:Ge,deps:[Me.hJ],useFactory:function He(fn){return()=>fn.scrollStrategies.reposition()}},se=(0,Ce.BQ)({passive:!0});let Rt=(()=>{class fn{_overlay=(0,i.WQX)(Me.hJ);_element=(0,i.WQX)(i.aKT);_viewContainerRef=(0,i.WQX)(i.c1b);_menuItemInstance=(0,i.WQX)(Xt,{optional:!0,self:!0});_dir=(0,i.WQX)(Re.dS,{optional:!0});_focusMonitor=(0,i.WQX)(a.FN);_ngZone=(0,i.WQX)(i.SKi);_scrollStrategy=(0,i.WQX)(Ge);_changeDetectorRef=(0,i.WQX)(i.gRc);_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=C.yU.EMPTY;_hoverSubscription=C.yU.EMPTY;_menuCloseSubscription=C.yU.EMPTY;_parentMaterialMenu;_parentInnerPadding;_handleTouchStart=Nt=>{(0,a.w6)(Nt)||(this._openedBy="touch")};_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Nt){this.menu=Nt}get menu(){return this._menu}set menu(Nt){Nt!==this._menu&&(this._menu=Nt,this._menuCloseSubscription.unsubscribe(),Nt&&(this._menuCloseSubscription=Nt.close.subscribe(Qt=>{this._destroyMenu(Qt),("click"===Qt||"tab"===Qt)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Qt)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}_menu;menuData;restoreFocus=!0;menuOpened=new i.bkB;onMenuOpen=this.menuOpened;menuClosed=new i.bkB;onMenuClose=this.menuClosed;constructor(){const Nt=(0,i.WQX)(at,{optional:!0});this._parentMaterialMenu=Nt instanceof dt?Nt:void 0,this._element.nativeElement.addEventListener("touchstart",this._handleTouchStart,se)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,se),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 Nt=this.menu;if(this._menuOpen||!Nt)return;const Qt=this._createOverlay(Nt),an=Qt.getConfig(),Xn=an.positionStrategy;this._setPosition(Nt,Xn),an.hasBackdrop=null==Nt.hasBackdrop?!this.triggersSubmenu():Nt.hasBackdrop,Qt.attach(this._getPortal(Nt)),Nt.lazyContent&&Nt.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Nt),Nt instanceof dt&&(Nt._startAnimation(),Nt._directDescendantItems.changes.pipe((0,N.Q)(Nt.close)).subscribe(()=>{Xn.withLockedPosition(!1).reapplyLastPosition(),Xn.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Nt,Qt){this._focusMonitor&&Nt?this._focusMonitor.focusVia(this._element,Nt,Qt):this._element.nativeElement.focus(Qt)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Nt){if(!this._overlayRef||!this.menuOpen)return;const Qt=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Nt||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Qt instanceof dt?(Qt._resetAnimation(),Qt.lazyContent?Qt._animationDone.pipe((0,G.p)(an=>"void"===an.toState),(0,Z.s)(1),(0,N.Q)(Qt.lazyContent._attached)).subscribe({next:()=>Qt.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Qt?.lazyContent?.detach())}_initMenu(Nt){Nt.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Nt.direction=this.dir,Nt.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setIsMenuOpen(Nt){Nt!==this._menuOpen&&(this._menuOpen=Nt,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Nt),this._changeDetectorRef.markForCheck())}_createOverlay(Nt){if(!this._overlayRef){const Qt=this._getOverlayConfig(Nt);this._subscribeToPositions(Nt,Qt.positionStrategy),this._overlayRef=this._overlay.create(Qt),this._overlayRef.keydownEvents().subscribe(an=>{this.menu instanceof dt&&this.menu._handleKeydown(an)})}return this._overlayRef}_getOverlayConfig(Nt){return new Me.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Nt.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Nt.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr"})}_subscribeToPositions(Nt,Qt){Nt.setPositionClasses&&Qt.positionChanges.subscribe(an=>{this._ngZone.run(()=>{Nt.setPositionClasses("start"===an.connectionPair.overlayX?"after":"before","top"===an.connectionPair.overlayY?"below":"above")})})}_setPosition(Nt,Qt){let[an,Xn]="before"===Nt.xPosition?["end","start"]:["start","end"],[En,Gt]="above"===Nt.yPosition?["bottom","top"]:["top","bottom"],[At,Kt]=[En,Gt],[xn,Yn]=[an,Xn],tt=0;if(this.triggersSubmenu()){if(Yn=an="before"===Nt.xPosition?"start":"end",Xn=xn="end"===an?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const ke=this._parentMaterialMenu.items.first;this._parentInnerPadding=ke?ke._getHostElement().offsetTop:0}tt="bottom"===En?this._parentInnerPadding:-this._parentInnerPadding}}else Nt.overlapTrigger||(At="top"===En?"bottom":"top",Kt="top"===Gt?"bottom":"top");Qt.withPositions([{originX:an,originY:At,overlayX:xn,overlayY:En,offsetY:tt},{originX:Xn,originY:At,overlayX:Yn,overlayY:En,offsetY:tt},{originX:an,originY:Kt,overlayX:xn,overlayY:Gt,offsetY:-tt},{originX:Xn,originY:Kt,overlayX:Yn,overlayY:Gt,offsetY:-tt}])}_menuClosingActions(){const Nt=this._overlayRef.backdropClick(),Qt=this._overlayRef.detachments(),an=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,T.of)(),Xn=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,G.p)(En=>En!==this._menuItemInstance),(0,G.p)(()=>this._menuOpen)):(0,T.of)();return(0,w.h)(Nt,an,Xn,Qt)}_handleMousedown(Nt){(0,a._G)(Nt)||(this._openedBy=0===Nt.button?"mouse":void 0,this.triggersSubmenu()&&Nt.preventDefault())}_handleKeydown(Nt){const Qt=Nt.keyCode;(Qt===c.Fm||Qt===c.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Qt===c.LE&&"ltr"===this.dir||Qt===c.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Nt){this.triggersSubmenu()?(Nt.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,G.p)(Nt=>Nt===this._menuItemInstance&&!Nt.disabled),(0,ne.c)(0,S.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof dt&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Z.s)(1),(0,ne.c)(0,S.$),(0,N.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Nt){return(!this._portal||this._portal.templateRef!==Nt.templateRef)&&(this._portal=new Te.VA(Nt.templateRef,this._viewContainerRef)),this._portal}static \u0275fac=function(Qt){return new(Qt||fn)};static \u0275dir=i.FsC({type:fn,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(Qt,an){1&Qt&&i.bIt("click",function(En){return an._handleClick(En)})("mousedown",function(En){return an._handleMousedown(En)})("keydown",function(En){return an._handleKeydown(En)}),2&Qt&&i.BMQ("aria-haspopup",an.menu?"menu":null)("aria-expanded",an.menuOpen)("aria-controls",an.menuOpen?an.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]})}return fn})(),Jt=(()=>{class fn{static \u0275fac=function(Qt){return new(Qt||fn)};static \u0275mod=i.$C({type:fn});static \u0275inj=i.G2t({providers:[mt],imports:[me.pZ,me.yE,Me.z_,le.Gj,me.yE]})}return fn})()},7575:(o,s,r)=>{"use strict";r.d(s,{HM:()=>S,PO:()=>I});var i=r(4438),c=(r(177),r(3));function y(N,G){1&N&&i.nrm(0,"div",2)}const w=new i.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let S=(()=>{class N{_elementRef=(0,i.WQX)(i.aKT);_ngZone=(0,i.WQX)(i.SKi);_changeDetectorRef=(0,i.WQX)(i.gRc);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});constructor(){const Z=(0,i.WQX)(w,{optional:!0});this._isNoopAnimation="NoopAnimations"===this._animationMode,Z&&(Z.color&&(this.color=this._defaultColor=Z.color),this.mode=Z.mode||this.mode)}_isNoopAnimation=!1;get color(){return this._color||this._defaultColor}set color(Z){this._color=Z}_color;_defaultColor="primary";get value(){return this._value}set value(Z){this._value=A(Z||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(Z){this._bufferValue=A(Z||0),this._changeDetectorRef.markForCheck()}_bufferValue=0;animationEnd=new i.bkB;get mode(){return this._mode}set mode(Z){this._mode=Z,this._changeDetectorRef.markForCheck()}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}_transitionendHandler=Z=>{0===this.animationEnd.observers.length||!Z.target||!Z.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))};static \u0275fac=function(ne){return new(ne||N)};static \u0275cmp=i.VBU({type:N,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(ne,be){2&ne&&(i.BMQ("aria-valuenow",be._isIndeterminate()?null:be.value)("mode",be.mode),i.HbH("mat-"+be.color),i.AVh("_mat-animation-noopable",be._isNoopAnimation)("mdc-linear-progress--animation-ready",!be._isNoopAnimation)("mdc-linear-progress--indeterminate",be._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",i.Udg],bufferValue:[2,"bufferValue","bufferValue",i.Udg],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.GFd],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(ne,be){1&ne&&(i.j41(0,"div",0),i.nrm(1,"div",1),i.DNE(2,y,1,0,"div",2),i.k0s(),i.j41(3,"div",3),i.nrm(4,"span",4),i.k0s(),i.j41(5,"div",5),i.nrm(6,"span",4),i.k0s()),2&ne&&(i.R7$(),i.xc7("flex-basis",be._getBufferBarFlexBasis()),i.R7$(),i.vxM("buffer"===be.mode?2:-1),i.R7$(),i.xc7("transform",be._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mdc-linear-progress-track-height, 4px),var(--mdc-linear-progress-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mdc-linear-progress-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mdc-linear-progress-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-linear-progress-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mdc-linear-progress-track-height, 4px);border-radius:var(--mdc-linear-progress-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}"],encapsulation:2,changeDetection:0})}return N})();function A(N,G=0,Z=100){return Math.max(G,Math.min(Z,N))}let I=(()=>{class N{static \u0275fac=function(ne){return new(ne||N)};static \u0275mod=i.$C({type:N});static \u0275inj=i.G2t({imports:[c.yE]})}return N})()},7250:(o,s,r)=>{"use strict";r.d(s,{VO:()=>Qt,Ve:()=>Xn,$2:()=>an});var i=r(6969),a=r(4438),c=r(3),y=r(2408),w=r(5542),C=r(9888),T=r(8203),I=(r(4402),r(7673),r(1413));class Te{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new I.B;constructor(Gt=!1,At,Kt=!0,xn){this._multiple=Gt,this._emitChanges=Kt,this.compareWith=xn,At&&At.length&&(Gt?At.forEach(Yn=>this._markSelected(Yn)):this._markSelected(At[0]),this._selectedToEmit.length=0)}select(...Gt){this._verifyValueAssignment(Gt),Gt.forEach(Kt=>this._markSelected(Kt));const At=this._hasQueuedChanges();return this._emitChangeEvent(),At}deselect(...Gt){this._verifyValueAssignment(Gt),Gt.forEach(Kt=>this._unmarkSelected(Kt));const At=this._hasQueuedChanges();return this._emitChangeEvent(),At}setSelection(...Gt){this._verifyValueAssignment(Gt);const At=this.selected,Kt=new Set(Gt);Gt.forEach(Yn=>this._markSelected(Yn)),At.filter(Yn=>!Kt.has(this._getConcreteValue(Yn,Kt))).forEach(Yn=>this._unmarkSelected(Yn));const xn=this._hasQueuedChanges();return this._emitChangeEvent(),xn}toggle(Gt){return this.isSelected(Gt)?this.deselect(Gt):this.select(Gt)}clear(Gt=!0){this._unmarkAll();const At=this._hasQueuedChanges();return Gt&&this._emitChangeEvent(),At}isSelected(Gt){return this._selection.has(this._getConcreteValue(Gt))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(Gt){this._multiple&&this.selected&&this._selected.sort(Gt)}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(Gt){Gt=this._getConcreteValue(Gt),this.isSelected(Gt)||(this._multiple||this._unmarkAll(),this.isSelected(Gt)||this._selection.add(Gt),this._emitChanges&&this._selectedToEmit.push(Gt))}_unmarkSelected(Gt){Gt=this._getConcreteValue(Gt),this.isSelected(Gt)&&(this._selection.delete(Gt),this._emitChanges&&this._deselectedToEmit.push(Gt))}_unmarkAll(){this.isEmpty()||this._selection.forEach(Gt=>this._unmarkSelected(Gt))}_verifyValueAssignment(Gt){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(Gt,At){if(this.compareWith){At=At??this._selection;for(let Kt of At)if(this.compareWith(Gt,Kt))return Kt;return Gt}return Gt}}var Me=r(7336),Ce=r(9417),le=r(9030),ae=r(7786),Ie=r(9172),$e=r(5558),st=r(5964),ht=r(6354),vt=r(3294),at=r(6977),Xt=r(6697),ln=r(9969),yn=r(177);const $n=["trigger"],bn=["panel"],Qe=[[["mat-select-trigger"]],"*"],bt=["mat-select-trigger","*"];function ze(En,Gt){if(1&En&&(a.j41(0,"span",4),a.EFF(1),a.k0s()),2&En){const At=a.XpG();a.R7$(),a.JRh(At.placeholder)}}function Fe(En,Gt){1&En&&a.SdG(0)}function Ft(En,Gt){if(1&En&&(a.j41(0,"span",11),a.EFF(1),a.k0s()),2&En){const At=a.XpG(2);a.R7$(),a.JRh(At.triggerValue)}}function Ke(En,Gt){if(1&En&&(a.j41(0,"span",5),a.DNE(1,Fe,1,0)(2,Ft,2,1,"span",11),a.k0s()),2&En){const At=a.XpG();a.R7$(),a.vxM(At.customTrigger?1:2)}}function dt(En,Gt){if(1&En){const At=a.RV6();a.j41(0,"div",12,1),a.bIt("@transformPanel.done",function(xn){a.eBV(At);const Yn=a.XpG();return a.Njj(Yn._panelDoneAnimatingStream.next(xn.toState))})("keydown",function(xn){a.eBV(At);const Yn=a.XpG();return a.Njj(Yn._handleKeydown(xn))}),a.SdG(2,1),a.k0s()}if(2&En){const At=a.XpG();a.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",At._getPanelTheme(),""),a.Y8G("ngClass",At.panelClass)("@transformPanel","showing"),a.BMQ("id",At.id+"-panel")("aria-multiselectable",At.multiple)("aria-label",At.ariaLabel||null)("aria-labelledby",At._getPanelAriaLabelledby())}}const Ge={transformPanelWrap:(0,ln.hZ)("transformPanelWrap",[(0,ln.kY)("* => void",(0,ln.P)("@transformPanel",[(0,ln.MA)()],{optional:!0}))]),transformPanel:(0,ln.hZ)("transformPanel",[(0,ln.wk)("void",(0,ln.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,ln.kY)("void => showing",(0,ln.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ln.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,ln.kY)("* => void",(0,ln.i0)("100ms linear",(0,ln.iF)({opacity:0})))])},Ze=new a.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const En=(0,a.WQX)(i.hJ);return()=>En.scrollStrategies.reposition()}}),Jt=new a.nKC("MAT_SELECT_CONFIG"),fn={provide:Ze,deps:[i.hJ],useFactory:function Rt(En){return()=>En.scrollStrategies.reposition()}},Gn=new a.nKC("MatSelectTrigger");class Nt{source;value;constructor(Gt,At){this.source=Gt,this.value=At}}let Qt=(()=>{class En{_viewportRuler=(0,a.WQX)(w.Xj);_changeDetectorRef=(0,a.WQX)(a.gRc);_elementRef=(0,a.WQX)(a.aKT);_dir=(0,a.WQX)(T.dS,{optional:!0});_idGenerator=(0,a.WQX)(C.g7);_parentFormField=(0,a.WQX)(y.xb,{optional:!0});ngControl=(0,a.WQX)(Ce.vO,{self:!0,optional:!0});_liveAnnouncer=(0,a.WQX)(C.Ai);_defaultOptions=(0,a.WQX)(Jt,{optional:!0});options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(At){const Kt=this.options.toArray()[At];if(Kt){const xn=this.panel.nativeElement,Yn=(0,c.jb)(At,this.options,this.optionGroups),tt=Kt._getHostElement();xn.scrollTop=0===At&&1===Yn?0:(0,c.TL)(tt.offsetTop,tt.offsetHeight,xn.scrollTop,xn.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(At){return new Nt(this,At)}_scrollStrategyFactory=(0,a.WQX)(Ze);_panelOpen=!1;_compareWith=(At,Kt)=>At===Kt;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new I.B;_errorStateTracker;stateChanges=new I.B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new I.B;_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(At){this._hideSingleSelectionIndicator=At,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(At){this._placeholder=At,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Ce.k0.required)??!1}set required(At){this._required=At,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(At){this._multiple=At}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(At){this._compareWith=At,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(At){this._assignValue(At)&&this._onChange(At)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(At){this._errorStateTracker.matcher=At}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(At){this._id=At||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(At){this._errorStateTracker.errorState=At}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";_initialized=new I.B;optionSelectionChanges=(0,le.v)(()=>{const At=this.options;return At?At.changes.pipe((0,Ie.Z)(At),(0,$e.n)(()=>(0,ae.h)(...At.map(Kt=>Kt.onSelectionChange)))):this._initialized.pipe((0,$e.n)(()=>this.optionSelectionChanges))});openedChange=new a.bkB;_openedStream=this.openedChange.pipe((0,st.p)(At=>At),(0,ht.T)(()=>{}));_closedStream=this.openedChange.pipe((0,st.p)(At=>!At),(0,ht.T)(()=>{}));selectionChange=new a.bkB;valueChange=new a.bkB;constructor(){const At=(0,a.WQX)(c.es),Kt=(0,a.WQX)(Ce.cV,{optional:!0}),xn=(0,a.WQX)(Ce.j4,{optional:!0}),Yn=(0,a.WQX)(new a.ES_("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),null!=this._defaultOptions?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new c.X0(At,this.ngControl,xn,Kt,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=null==Yn?0:parseInt(Yn)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Te(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,vt.F)(),(0,at.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,at.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe((0,at.Q)(this._destroy)).subscribe(At=>{At.added.forEach(Kt=>Kt.select()),At.removed.forEach(Kt=>Kt.deselect())}),this.options.changes.pipe((0,Ie.Z)(null),(0,at.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const At=this._getTriggerAriaLabelledby(),Kt=this.ngControl;if(At!==this._triggerAriaLabelledBy){const xn=this._elementRef.nativeElement;this._triggerAriaLabelledBy=At,At?xn.setAttribute("aria-labelledby",At):xn.removeAttribute("aria-labelledby")}Kt&&(this._previousControl!==Kt.control&&(void 0!==this._previousControl&&null!==Kt.disabled&&Kt.disabled!==this.disabled&&(this.disabled=Kt.disabled),this._previousControl=Kt.control),this.updateErrorState())}ngOnChanges(At){(At.disabled||At.userAriaDescribedBy)&&this.stateChanges.next(),At.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_trackedModal=null;_applyModalPanelOwnership(){const At=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!At)return;const Kt=`${this.id}-panel`;this._trackedModal&&(0,C.Ae)(this._trackedModal,"aria-owns",Kt),(0,C.px)(At,"aria-owns",Kt),this._trackedModal=At}_clearFromModal(){this._trackedModal&&((0,C.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(At){this._assignValue(At)}registerOnChange(At){this._onChange=At}registerOnTouched(At){this._onTouched=At}setDisabledState(At){this.disabled=At,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 At=this._selectionModel.selected.map(Kt=>Kt.viewValue);return this._isRtl()&&At.reverse(),At.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(At){this.disabled||(this.panelOpen?this._handleOpenKeydown(At):this._handleClosedKeydown(At))}_handleClosedKeydown(At){const Kt=At.keyCode,xn=Kt===Me.n6||Kt===Me.i7||Kt===Me.UQ||Kt===Me.LE,Yn=Kt===Me.Fm||Kt===Me.t6,tt=this._keyManager;if(!tt.isTyping()&&Yn&&!(0,Me.rp)(At)||(this.multiple||At.altKey)&&xn)At.preventDefault(),this.open();else if(!this.multiple){const ke=this.selected;tt.onKeydown(At);const B=this.selected;B&&ke!==B&&this._liveAnnouncer.announce(B.viewValue,1e4)}}_handleOpenKeydown(At){const Kt=this._keyManager,xn=At.keyCode,Yn=xn===Me.n6||xn===Me.i7,tt=Kt.isTyping();if(Yn&&At.altKey)At.preventDefault(),this.close();else if(tt||xn!==Me.Fm&&xn!==Me.t6||!Kt.activeItem||(0,Me.rp)(At))if(!tt&&this._multiple&&xn===Me.A&&At.ctrlKey){At.preventDefault();const ke=this.options.some(B=>!B.disabled&&!B.selected);this.options.forEach(B=>{B.disabled||(ke?B.select():B.deselect())})}else{const ke=Kt.activeItemIndex;Kt.onKeydown(At),this._multiple&&Yn&&At.shiftKey&&Kt.activeItem&&Kt.activeItemIndex!==ke&&Kt.activeItem._selectViaInteraction()}else At.preventDefault(),Kt.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Xt.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(At){if(this.options.forEach(Kt=>Kt.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&At)Array.isArray(At),At.forEach(Kt=>this._selectOptionByValue(Kt)),this._sortValues();else{const Kt=this._selectOptionByValue(At);Kt?this._keyManager.updateActiveItem(Kt):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(At){const Kt=this.options.find(xn=>{if(this._selectionModel.isSelected(xn))return!1;try{return null!=xn.value&&this._compareWith(xn.value,At)}catch{return!1}});return Kt&&this._selectionModel.select(Kt),Kt}_assignValue(At){return!!(At!==this._value||this._multiple&&Array.isArray(At))&&(this.options&&this._setSelectionByValue(At),this._value=At,!0)}_skipPredicate=At=>!this.panelOpen&&At.disabled;_getOverlayWidth(At){return"auto"===this.panelWidth?(At instanceof i.$Q?At.elementRef:At||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const At of this.options)At._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new C.Au(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const At=(0,ae.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,at.Q)(At)).subscribe(Kt=>{this._onSelect(Kt.source,Kt.isUserInput),Kt.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ae.h)(...this.options.map(Kt=>Kt._stateChanges)).pipe((0,at.Q)(At)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(At,Kt){const xn=this._selectionModel.isSelected(At);null!=At.value||this._multiple?(xn!==At.selected&&(At.selected?this._selectionModel.select(At):this._selectionModel.deselect(At)),Kt&&this._keyManager.setActiveItem(At),this.multiple&&(this._sortValues(),Kt&&this.focus())):(At.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(At.value)),xn!==this._selectionModel.isSelected(At)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const At=this.options.toArray();this._selectionModel.sort((Kt,xn)=>this.sortComparator?this.sortComparator(Kt,xn,At):At.indexOf(Kt)-At.indexOf(xn)),this.stateChanges.next()}}_propagateChanges(At){let Kt;Kt=this.multiple?this.selected.map(xn=>xn.value):this.selected?this.selected.value:At,this._value=Kt,this.valueChange.emit(Kt),this._onChange(Kt),this.selectionChange.emit(this._getChangeEvent(Kt)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let At=-1;for(let Kt=0;Kt0}focus(At){this._elementRef.nativeElement.focus(At)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const At=this._parentFormField?.getLabelId()||null;return this.ariaLabelledby?(At?At+" ":"")+this.ariaLabelledby:At}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const At=this._parentFormField?.getLabelId();let Kt=(At?At+" ":"")+this._valueId;return this.ariaLabelledby&&(Kt+=" "+this.ariaLabelledby),Kt}_panelDoneAnimating(At){this.openedChange.emit(At)}setDescribedByIds(At){At.length?this._elementRef.nativeElement.setAttribute("aria-describedby",At.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(Kt){return new(Kt||En)};static \u0275cmp=a.VBU({type:En,selectors:[["mat-select"]],contentQueries:function(Kt,xn,Yn){if(1&Kt&&(a.wni(Yn,Gn,5),a.wni(Yn,c.wT,5),a.wni(Yn,c.QC,5)),2&Kt){let tt;a.mGM(tt=a.lsd())&&(xn.customTrigger=tt.first),a.mGM(tt=a.lsd())&&(xn.options=tt),a.mGM(tt=a.lsd())&&(xn.optionGroups=tt)}},viewQuery:function(Kt,xn){if(1&Kt&&(a.GBs($n,5),a.GBs(bn,5),a.GBs(i.WB,5)),2&Kt){let Yn;a.mGM(Yn=a.lsd())&&(xn.trigger=Yn.first),a.mGM(Yn=a.lsd())&&(xn.panel=Yn.first),a.mGM(Yn=a.lsd())&&(xn._overlayDir=Yn.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(Kt,xn){1&Kt&&a.bIt("keydown",function(tt){return xn._handleKeydown(tt)})("focus",function(){return xn._onFocus()})("blur",function(){return xn._onBlur()}),2&Kt&&(a.BMQ("id",xn.id)("tabindex",xn.disabled?-1:xn.tabIndex)("aria-controls",xn.panelOpen?xn.id+"-panel":null)("aria-expanded",xn.panelOpen)("aria-label",xn.ariaLabel||null)("aria-required",xn.required.toString())("aria-disabled",xn.disabled.toString())("aria-invalid",xn.errorState)("aria-activedescendant",xn._getAriaActiveDescendant()),a.AVh("mat-mdc-select-disabled",xn.disabled)("mat-mdc-select-invalid",xn.errorState)("mat-mdc-select-required",xn.required)("mat-mdc-select-empty",xn.empty)("mat-mdc-select-multiple",xn.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",a.L39],disableRipple:[2,"disableRipple","disableRipple",a.L39],tabIndex:[2,"tabIndex","tabIndex",At=>null==At?0:(0,a.Udg)(At)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",a.L39],placeholder:"placeholder",required:[2,"required","required",a.L39],multiple:[2,"multiple","multiple",a.L39],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",a.L39],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",a.Udg],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[a.Jv_([{provide:y.qT,useExisting:En},{provide:c.is,useExisting:En}]),a.GFd,a.OA$],ngContentSelectors:bt,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(Kt,xn){if(1&Kt){const Yn=a.RV6();a.NAR(Qe),a.j41(0,"div",2,0),a.bIt("click",function(){return a.eBV(Yn),a.Njj(xn.open())}),a.j41(3,"div",3),a.DNE(4,ze,2,1,"span",4)(5,Ke,3,1,"span",5),a.k0s(),a.j41(6,"div",6)(7,"div",7),a.qSk(),a.j41(8,"svg",8),a.nrm(9,"path",9),a.k0s()()()(),a.DNE(10,dt,3,9,"ng-template",10),a.bIt("backdropClick",function(){return a.eBV(Yn),a.Njj(xn.close())})("attach",function(){return a.eBV(Yn),a.Njj(xn._onAttached())})("detach",function(){return a.eBV(Yn),a.Njj(xn.close())})}if(2&Kt){const Yn=a.sdS(1);a.R7$(3),a.BMQ("id",xn._valueId),a.R7$(),a.vxM(xn.empty?4:5),a.R7$(6),a.Y8G("cdkConnectedOverlayPanelClass",xn._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",xn._scrollStrategy)("cdkConnectedOverlayOrigin",xn._preferredOverlayOrigin||Yn)("cdkConnectedOverlayOpen",xn.panelOpen)("cdkConnectedOverlayPositions",xn._positions)("cdkConnectedOverlayWidth",xn._overlayWidth)}},dependencies:[i.$Q,i.WB,yn.YU],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}'],encapsulation:2,data:{animation:[Ge.transformPanel]},changeDetection:0})}return En})(),an=(()=>{class En{static \u0275fac=function(Kt){return new(Kt||En)};static \u0275dir=a.FsC({type:En,selectors:[["mat-select-trigger"]],features:[a.Jv_([{provide:Gn,useExisting:En}])]})}return En})(),Xn=(()=>{class En{static \u0275fac=function(Kt){return new(Kt||En)};static \u0275mod=a.$C({type:En});static \u0275inj=a.G2t({providers:[fn],imports:[i.z_,c.Sy,c.yE,w.Gj,y.RG,c.Sy,c.yE]})}return En})()},882:(o,s,r)=>{"use strict";r.d(s,{$C:()=>Fe,$l:()=>bt,qe:()=>ze,vg:()=>Ge});var i=r(5542),a=r(4438),c=r(3),y=r(9888),w=r(8203),C=r(4085),T=r(7336),S=r(6860),A=r(177),I=r(1413),N=r(3726),G=r(7786),Z=r(5964),ne=r(6354),be=r(3703),me=r(6977),pe=r(6697),Te=r(9172),xe=r(152),Re=r(9969);const Me=["*"],Ce=["content"],le=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ae=["mat-drawer","mat-drawer-content","*"];function Ie(He,mt){if(1&He){const se=a.RV6();a.j41(0,"div",1),a.bIt("click",function(){a.eBV(se);const Rt=a.XpG();return a.Njj(Rt._onBackdropClicked())}),a.k0s()}if(2&He){const se=a.XpG();a.AVh("mat-drawer-shown",se._isShowingBackdrop())}}function $e(He,mt){1&He&&(a.j41(0,"mat-drawer-content"),a.SdG(1,2),a.k0s())}const ln={transformDrawer:(0,Re.hZ)("transform",[(0,Re.wk)("open, open-instant",(0,Re.iF)({transform:"none",visibility:"visible"})),(0,Re.wk)("void",(0,Re.iF)({"box-shadow":"none",visibility:"hidden"})),(0,Re.kY)("void => open-instant",(0,Re.i0)("0ms")),(0,Re.kY)("void <=> open, open-instant => void",(0,Re.i0)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},$n=new a.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Qe(){return!1}}),bn=new a.nKC("MAT_DRAWER_CONTAINER");let bt=(()=>{class He extends i.uv{_platform=(0,a.WQX)(S.OD);_changeDetectorRef=(0,a.WQX)(a.gRc);_container=(0,a.WQX)(Fe);constructor(){super((0,a.WQX)(a.aKT),(0,a.WQX)(i.R),(0,a.WQX)(a.SKi))}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;const{start:se,end:Ze}=this._container;return null!=se&&"over"!==se.mode&&se.opened||null!=Ze&&"over"!==Ze.mode&&Ze.opened}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275cmp=a.VBU({type:He,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(Ze,Rt){2&Ze&&(a.xc7("margin-left",Rt._container._contentMargins.left,"px")("margin-right",Rt._container._contentMargins.right,"px"),a.AVh("mat-drawer-content-hidden",Rt._shouldBeHidden()))},features:[a.Jv_([{provide:i.uv,useExisting:He}]),a.Vt3],ngContentSelectors:Me,decls:1,vars:0,template:function(Ze,Rt){1&Ze&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0})}return He})(),ze=(()=>{class He{_elementRef=(0,a.WQX)(a.aKT);_focusTrapFactory=(0,a.WQX)(y.GX);_focusMonitor=(0,a.WQX)(y.FN);_platform=(0,a.WQX)(S.OD);_ngZone=(0,a.WQX)(a.SKi);_interactivityChecker=(0,a.WQX)(y.Z7);_doc=(0,a.WQX)(A.qQ,{optional:!0});_container=(0,a.WQX)(bn,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_enableAnimations=!1;_isAttached;_anchor;get position(){return this._position}set position(se){(se="end"===se?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(se),this._position=se,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(se){this._mode=se,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(se){this._disableClose=(0,C.he)(se)}_disableClose=!1;get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(se){("true"===se||"false"===se||null==se)&&(se=(0,C.he)(se)),this._autoFocus=se}_autoFocus;get opened(){return this._opened}set opened(se){this.toggle((0,C.he)(se))}_opened=!1;_openedVia;_animationStarted=new I.B;_animationEnd=new I.B;_animationState="void";openedChange=new a.bkB(!0);_openedStream=this.openedChange.pipe((0,Z.p)(se=>se),(0,ne.T)(()=>{}));openedStart=this._animationStarted.pipe((0,Z.p)(se=>se.fromState!==se.toState&&0===se.toState.indexOf("open")),(0,be.u)(void 0));_closedStream=this.openedChange.pipe((0,Z.p)(se=>!se),(0,ne.T)(()=>{}));closedStart=this._animationStarted.pipe((0,Z.p)(se=>se.fromState!==se.toState&&"void"===se.toState),(0,be.u)(void 0));_destroyed=new I.B;onPositionChanged=new a.bkB;_content;_modeChanged=new I.B;_injector=(0,a.WQX)(a.zZn);_changeDetectorRef=(0,a.WQX)(a.gRc);constructor(){this.openedChange.pipe((0,me.Q)(this._destroyed)).subscribe(se=>{se?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,N.R)(this._elementRef.nativeElement,"keydown").pipe((0,Z.p)(se=>se.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(se)),(0,me.Q)(this._destroyed)).subscribe(se=>this._ngZone.run(()=>{this.close(),se.stopPropagation(),se.preventDefault()}))}),this._animationEnd.subscribe(se=>{const{fromState:Ze,toState:Rt}=se;(0===Rt.indexOf("open")&&"void"===Ze||"void"===Rt&&0===Ze.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(se,Ze){this._interactivityChecker.isFocusable(se)||(se.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Rt=()=>{se.removeEventListener("blur",Rt),se.removeEventListener("mousedown",Rt),se.removeAttribute("tabindex")};se.addEventListener("blur",Rt),se.addEventListener("mousedown",Rt)})),se.focus(Ze)}_focusByCssSelector(se,Ze){let Rt=this._elementRef.nativeElement.querySelector(se);Rt&&this._forceFocus(Rt,Ze)}_takeFocus(){if(!this._focusTrap)return;const se=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":(0,a.mal)(()=>{!this._focusTrap.focusInitialElement()&&"function"==typeof se.focus&&se.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(se){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,se):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const se=this._doc.activeElement;return!!se&&this._elementRef.nativeElement.contains(se)}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(se){return this.toggle(!0,se)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(se=!this.opened,Ze){se&&Ze&&(this._openedVia=Ze);const Rt=this._setOpen(se,!se&&this._isFocusWithinDrawer(),this._openedVia||"program");return se||(this._openedVia=null),Rt}_setOpen(se,Ze,Rt){return this._opened=se,se?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Ze&&this._restoreFocus(Rt)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(Jt=>{this.openedChange.pipe((0,pe.s)(1)).subscribe(fn=>Jt(fn?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(se){if(!this._platform.isBrowser)return;const Ze=this._elementRef.nativeElement,Rt=Ze.parentNode;"end"===se?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Rt.insertBefore(this._anchor,Ze)),Rt.appendChild(Ze)):this._anchor&&this._anchor.parentNode.insertBefore(Ze,this._anchor)}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275cmp=a.VBU({type:He,selectors:[["mat-drawer"]],viewQuery:function(Ze,Rt){if(1&Ze&&a.GBs(Ce,5),2&Ze){let Jt;a.mGM(Jt=a.lsd())&&(Rt._content=Jt.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Ze,Rt){1&Ze&&a.Kam("@transform.start",function(fn){return Rt._animationStarted.next(fn)})("@transform.done",function(fn){return Rt._animationEnd.next(fn)}),2&Ze&&(a.zvX("@transform",Rt._animationState),a.BMQ("align",null),a.AVh("mat-drawer-end","end"===Rt.position)("mat-drawer-over","over"===Rt.mode)("mat-drawer-push","push"===Rt.mode)("mat-drawer-side","side"===Rt.mode)("mat-drawer-opened",Rt.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Me,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Ze,Rt){1&Ze&&(a.NAR(),a.j41(0,"div",1,0),a.SdG(2),a.k0s())},dependencies:[i.uv],encapsulation:2,data:{animation:[ln.transformDrawer]},changeDetection:0})}return He})(),Fe=(()=>{class He{_dir=(0,a.WQX)(w.dS,{optional:!0});_element=(0,a.WQX)(a.aKT);_ngZone=(0,a.WQX)(a.SKi);_changeDetectorRef=(0,a.WQX)(a.gRc);_animationMode=(0,a.WQX)(a.bc$,{optional:!0});_allDrawers;_drawers=new a.rOR;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(se){this._autosize=(0,C.he)(se)}_autosize=(0,a.WQX)($n);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(se){this._backdropOverride=null==se?null:(0,C.he)(se)}_backdropOverride;backdropClick=new a.bkB;_start;_end;_left;_right;_destroyed=new I.B;_doCheckSubject=new I.B;_contentMargins={left:null,right:null};_contentMarginChanges=new I.B;get scrollable(){return this._userContent||this._content}_injector=(0,a.WQX)(a.zZn);constructor(){const se=(0,a.WQX)(i.Xj);this._dir?.change.pipe((0,me.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),se.change().pipe((0,me.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Te.Z)(this._allDrawers),(0,me.Q)(this._destroyed)).subscribe(se=>{this._drawers.reset(se.filter(Ze=>!Ze._container||Ze._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Te.Z)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(se=>{this._watchDrawerToggle(se),this._watchDrawerPosition(se),this._watchDrawerMode(se)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,xe.B)(10),(0,me.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(se=>se.open())}close(){this._drawers.forEach(se=>se.close())}updateContentMargins(){let se=0,Ze=0;if(this._left&&this._left.opened)if("side"==this._left.mode)se+=this._left._getWidth();else if("push"==this._left.mode){const Rt=this._left._getWidth();se+=Rt,Ze-=Rt}if(this._right&&this._right.opened)if("side"==this._right.mode)Ze+=this._right._getWidth();else if("push"==this._right.mode){const Rt=this._right._getWidth();Ze+=Rt,se-=Rt}se=se||null,Ze=Ze||null,(se!==this._contentMargins.left||Ze!==this._contentMargins.right)&&(this._contentMargins={left:se,right:Ze},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(se){se._animationStarted.pipe((0,Z.p)(Ze=>Ze.fromState!==Ze.toState),(0,me.Q)(this._drawers.changes)).subscribe(Ze=>{"open-instant"!==Ze.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==se.mode&&se.openedChange.pipe((0,me.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(se.opened))}_watchDrawerPosition(se){se&&se.onPositionChanged.pipe((0,me.Q)(this._drawers.changes)).subscribe(()=>{(0,a.mal)(()=>{this._validateDrawers()},{injector:this._injector,phase:a.wjH.Read})})}_watchDrawerMode(se){se&&se._modeChanged.pipe((0,me.Q)((0,G.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(se){const Ze=this._element.nativeElement.classList,Rt="mat-drawer-container-has-open";se?Ze.add(Rt):Ze.remove(Rt)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(se=>{"end"==se.position?this._end=se:this._start=se}),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(se=>se&&!se.disableClose&&this._drawerHasBackdrop(se)).forEach(se=>se._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(se){return null!=se&&se.opened}_drawerHasBackdrop(se){return null==this._backdropOverride?!!se&&"side"!==se.mode:this._backdropOverride}static \u0275fac=function(Ze){return new(Ze||He)};static \u0275cmp=a.VBU({type:He,selectors:[["mat-drawer-container"]],contentQueries:function(Ze,Rt,Jt){if(1&Ze&&(a.wni(Jt,bt,5),a.wni(Jt,ze,5)),2&Ze){let fn;a.mGM(fn=a.lsd())&&(Rt._content=fn.first),a.mGM(fn=a.lsd())&&(Rt._allDrawers=fn)}},viewQuery:function(Ze,Rt){if(1&Ze&&a.GBs(bt,5),2&Ze){let Jt;a.mGM(Jt=a.lsd())&&(Rt._userContent=Jt.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Ze,Rt){2&Ze&&a.AVh("mat-drawer-container-explicit-backdrop",Rt._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.Jv_([{provide:bn,useExisting:He}])],ngContentSelectors:ae,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ze,Rt){1&Ze&&(a.NAR(le),a.DNE(0,Ie,1,2,"div",0),a.SdG(1),a.SdG(2,1),a.DNE(3,$e,2,0,"mat-drawer-content")),2&Ze&&(a.vxM(Rt.hasBackdrop?0:-1),a.R7$(3),a.vxM(Rt._content?-1:3))},dependencies:[bt],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return He})(),Ge=(()=>{class He{static \u0275fac=function(Ze){return new(Ze||He)};static \u0275mod=a.$C({type:He});static \u0275inj=a.G2t({imports:[c.yE,i.Gj,i.Gj,c.yE]})}return He})()},4823:(o,s,r)=>{"use strict";r.d(s,{oV:()=>at,uc:()=>yn});var i=r(6977),a=r(4085),c=r(7336),y=r(4438),w=r(177),C=r(6860),T=r(9888),S=r(8203),A=r(6969),I=r(5542),N=r(6939),G=r(1413),ne=(r(9969),r(3));const be=["tooltip"],Te=new y.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const $n=(0,y.WQX)(A.hJ);return()=>$n.scrollStrategies.reposition({scrollThrottle:20})}}),Re={provide:Te,deps:[A.hJ],useFactory:function xe($n){return()=>$n.scrollStrategies.reposition({scrollThrottle:20})}},Ce=new y.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function Me(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ae="tooltip-panel",Ie=(0,C.BQ)({passive:!0});let at=(()=>{class $n{_overlay=(0,y.WQX)(A.hJ);_elementRef=(0,y.WQX)(y.aKT);_scrollDispatcher=(0,y.WQX)(I.R);_viewContainerRef=(0,y.WQX)(y.c1b);_ngZone=(0,y.WQX)(y.SKi);_platform=(0,y.WQX)(C.OD);_ariaDescriber=(0,y.WQX)(T.vr);_focusMonitor=(0,y.WQX)(T.FN);_dir=(0,y.WQX)(S.dS);_injector=(0,y.WQX)(y.zZn);_defaultOptions=(0,y.WQX)(Ce,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_scrollStrategy=(0,y.WQX)(Te);_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Xt;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;get position(){return this._position}set position(Qe){Qe!==this._position&&(this._position=Qe,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(Qe){this._positionAtOrigin=(0,a.he)(Qe),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(Qe){const bt=(0,a.he)(Qe);this._disabled!==bt&&(this._disabled=bt,bt?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(Qe){this._showDelay=(0,a.OE)(Qe)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(Qe){this._hideDelay=(0,a.OE)(Qe),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(Qe){const bt=this._message;this._message=null!=Qe?String(Qe).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(bt)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(Qe){this._tooltipClass=Qe,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_document=(0,y.WQX)(w.qQ);_touchstartTimeout=null;_destroyed=new G.B;constructor(){const Qe=this._defaultOptions;Qe&&(this._showDelay=Qe.showDelay,this._hideDelay=Qe.hideDelay,Qe.position&&(this.position=Qe.position),Qe.positionAtOrigin&&(this.positionAtOrigin=Qe.positionAtOrigin),Qe.touchGestures&&(this.touchGestures=Qe.touchGestures),Qe.tooltipClass&&(this.tooltipClass=Qe.tooltipClass)),this._dir.change.pipe((0,i.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,i.Q)(this._destroyed)).subscribe(Qe=>{Qe?"keyboard"===Qe&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Qe=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([bt,ze])=>{Qe.removeEventListener(bt,ze,Ie)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Qe,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Qe)}show(Qe=this.showDelay,bt){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const ze=this._createOverlay(bt);this._detach(),this._portal=this._portal||new N.A8(this._tooltipComponent,this._viewContainerRef);const Fe=this._tooltipInstance=ze.attach(this._portal).instance;Fe._triggerElement=this._elementRef.nativeElement,Fe._mouseLeaveHideDelay=this._hideDelay,Fe.afterHidden().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Fe.show(Qe)}hide(Qe=this.hideDelay){const bt=this._tooltipInstance;bt&&(bt.isVisible()?bt.hide(Qe):(bt._cancelPendingAnimations(),this._detach()))}toggle(Qe){this._isTooltipVisible()?this.hide():this.show(void 0,Qe)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(Qe){if(this._overlayRef){const Fe=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!Qe)&&Fe._origin instanceof y.aKT)return this._overlayRef;this._detach()}const bt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),ze=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&Qe||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(bt);return ze.positionChanges.pipe((0,i.Q)(this._destroyed)).subscribe(Fe=>{this._updateCurrentPositionClass(Fe.connectionPair),this._tooltipInstance&&Fe.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:ze,panelClass:`${this._cssClassPrefix}-${ae}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,i.Q)(this._destroyed)).subscribe(Fe=>{this._isTooltipVisible()&&Fe.keyCode===c._f&&!(0,c.rp)(Fe)&&(Fe.preventDefault(),Fe.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(Qe){const bt=Qe.getConfig().positionStrategy,ze=this._getOrigin(),Fe=this._getOverlayPosition();bt.withPositions([this._addOffset({...ze.main,...Fe.main}),this._addOffset({...ze.fallback,...Fe.fallback})])}_addOffset(Qe){const ze=!this._dir||"ltr"==this._dir.value;return"top"===Qe.originY?Qe.offsetY=-8:"bottom"===Qe.originY?Qe.offsetY=8:"start"===Qe.originX?Qe.offsetX=ze?-8:8:"end"===Qe.originX&&(Qe.offsetX=ze?8:-8),Qe}_getOrigin(){const Qe=!this._dir||"ltr"==this._dir.value,bt=this.position;let ze;"above"==bt||"below"==bt?ze={originX:"center",originY:"above"==bt?"top":"bottom"}:"before"==bt||"left"==bt&&Qe||"right"==bt&&!Qe?ze={originX:"start",originY:"center"}:("after"==bt||"right"==bt&&Qe||"left"==bt&&!Qe)&&(ze={originX:"end",originY:"center"});const{x:Fe,y:Ft}=this._invertPosition(ze.originX,ze.originY);return{main:ze,fallback:{originX:Fe,originY:Ft}}}_getOverlayPosition(){const Qe=!this._dir||"ltr"==this._dir.value,bt=this.position;let ze;"above"==bt?ze={overlayX:"center",overlayY:"bottom"}:"below"==bt?ze={overlayX:"center",overlayY:"top"}:"before"==bt||"left"==bt&&Qe||"right"==bt&&!Qe?ze={overlayX:"end",overlayY:"center"}:("after"==bt||"right"==bt&&Qe||"left"==bt&&!Qe)&&(ze={overlayX:"start",overlayY:"center"});const{x:Fe,y:Ft}=this._invertPosition(ze.overlayX,ze.overlayY);return{main:ze,fallback:{overlayX:Fe,overlayY:Ft}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,y.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(Qe){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Qe,this._tooltipInstance._markForCheck())}_invertPosition(Qe,bt){return"above"===this.position||"below"===this.position?"top"===bt?bt="bottom":"bottom"===bt&&(bt="top"):"end"===Qe?Qe="start":"start"===Qe&&(Qe="end"),{x:Qe,y:bt}}_updateCurrentPositionClass(Qe){const{overlayY:bt,originX:ze,originY:Fe}=Qe;let Ft;if(Ft="center"===bt?this._dir&&"rtl"===this._dir.value?"end"===ze?"left":"right":"start"===ze?"left":"right":"bottom"===bt&&"top"===Fe?"above":"below",Ft!==this._currentPosition){const Ke=this._overlayRef;if(Ke){const dt=`${this._cssClassPrefix}-${ae}-`;Ke.removePanelClass(dt+this._currentPosition),Ke.addPanelClass(dt+Ft)}this._currentPosition=Ft}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",Qe=>{let bt;this._setupPointerExitEventsIfNeeded(),void 0!==Qe.x&&void 0!==Qe.y&&(bt=Qe),this.show(void 0,bt)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",Qe=>{const bt=Qe.targetTouches?.[0],ze=bt?{x:bt.clientX,y:bt.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,ze)},this._defaultOptions?.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Qe=[];if(this._platformSupportsMouseEvents())Qe.push(["mouseleave",bt=>{const ze=bt.relatedTarget;(!ze||!this._overlayRef?.overlayElement.contains(ze))&&this.hide()}],["wheel",bt=>this._wheelListener(bt)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const bt=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};Qe.push(["touchend",bt],["touchcancel",bt])}this._addListeners(Qe),this._passiveListeners.push(...Qe)}_addListeners(Qe){Qe.forEach(([bt,ze])=>{this._elementRef.nativeElement.addEventListener(bt,ze,Ie)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Qe){if(this._isTooltipVisible()){const bt=this._document.elementFromPoint(Qe.clientX,Qe.clientY),ze=this._elementRef.nativeElement;bt!==ze&&!ze.contains(bt)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Qe=this.touchGestures;if("off"!==Qe){const bt=this._elementRef.nativeElement,ze=bt.style;("on"===Qe||"INPUT"!==bt.nodeName&&"TEXTAREA"!==bt.nodeName)&&(ze.userSelect=ze.msUserSelect=ze.webkitUserSelect=ze.MozUserSelect="none"),("on"===Qe||!bt.draggable)&&(ze.webkitUserDrag="none"),ze.touchAction="none",ze.webkitTapHighlightColor="transparent"}}_syncAriaDescription(Qe){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,Qe,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static \u0275fac=function(bt){return new(bt||$n)};static \u0275dir=y.FsC({type:$n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(bt,ze){2&bt&&y.AVh("mat-mdc-tooltip-disabled",ze.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return $n})(),Xt=(()=>{class $n{_changeDetectorRef=(0,y.WQX)(y.gRc);_elementRef=(0,y.WQX)(y.aKT);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new G.B;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){const Qe=(0,y.WQX)(y.bc$,{optional:!0});this._animationsDisabled="NoopAnimations"===Qe}show(Qe){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Qe)}hide(Qe){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Qe)}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:Qe}){(!Qe||!this._triggerElement.contains(Qe))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const Qe=this._elementRef.nativeElement.getBoundingClientRect();return Qe.height>24&&Qe.width>=200}_handleAnimationEnd({animationName:Qe}){(Qe===this._showAnimation||Qe===this._hideAnimation)&&this._finalizeAnimation(Qe===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Qe){Qe?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Qe){const bt=this._tooltip.nativeElement,ze=this._showAnimation,Fe=this._hideAnimation;if(bt.classList.remove(Qe?Fe:ze),bt.classList.add(Qe?ze:Fe),this._isVisible!==Qe&&(this._isVisible=Qe,this._changeDetectorRef.markForCheck()),Qe&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Ft=getComputedStyle(bt);("0s"===Ft.getPropertyValue("animation-duration")||"none"===Ft.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Qe&&this._onShow(),this._animationsDisabled&&(bt.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Qe))}static \u0275fac=function(bt){return new(bt||$n)};static \u0275cmp=y.VBU({type:$n,selectors:[["mat-tooltip-component"]],viewQuery:function(bt,ze){if(1&bt&&y.GBs(be,7),2&bt){let Fe;y.mGM(Fe=y.lsd())&&(ze._tooltip=Fe.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(bt,ze){1&bt&&y.bIt("mouseleave",function(Ft){return ze._handleMouseLeave(Ft)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(bt,ze){if(1&bt){const Fe=y.RV6();y.j41(0,"div",1,0),y.bIt("animationend",function(Ke){return y.eBV(Fe),y.Njj(ze._handleAnimationEnd(Ke))}),y.j41(2,"div",2),y.EFF(3),y.k0s()()}2&bt&&(y.AVh("mdc-tooltip--multiline",ze._isMultiline),y.Y8G("ngClass",ze.tooltipClass),y.R7$(3),y.JRh(ze.message))},dependencies:[w.YU],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return $n})(),yn=(()=>{class $n{static \u0275fac=function(bt){return new(bt||$n)};static \u0275mod=y.$C({type:$n});static \u0275inj=y.G2t({providers:[Re],imports:[T.Pd,A.z_,ne.yE,ne.yE,I.Gj]})}return $n})()},345:(o,s,r)=>{"use strict";r.d(s,{B7:()=>vt,B8:()=>dt,hE:()=>Gt,up:()=>Vt});var i=r(177),a=r(4438);class c extends i.VF{supportsDOMEvents=!0}class y extends c{static makeCurrent(){(0,i.ZD)(new y)}onAndCancel(kt,ft,Pt){return kt.addEventListener(ft,Pt),()=>{kt.removeEventListener(ft,Pt)}}dispatchEvent(kt,ft){kt.dispatchEvent(ft)}remove(kt){kt.remove()}createElement(kt,ft){return(ft=ft||this.getDefaultDocument()).createElement(kt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(kt){return kt.nodeType===Node.ELEMENT_NODE}isShadowRoot(kt){return kt instanceof DocumentFragment}getGlobalEventTarget(kt,ft){return"window"===ft?window:"document"===ft?kt:"body"===ft?kt.body:null}getBaseHref(kt){const ft=function C(){return w=w||document.querySelector("base"),w?w.getAttribute("href"):null}();return null==ft?null:function T(Pe){return new URL(Pe,document.baseURI).pathname}(ft)}resetBaseElement(){w=null}getUserAgent(){return window.navigator.userAgent}getCookie(kt){return(0,i._b)(document.cookie,kt)}}let w=null,A=(()=>{class Pe{build(){return new XMLHttpRequest}static \u0275fac=function(Pt){return new(Pt||Pe)};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();const I=new a.nKC("");let N=(()=>{class Pe{_zone;_plugins;_eventNameToPlugin=new Map;constructor(ft,Pt){this._zone=Pt,ft.forEach(mn=>{mn.manager=this}),this._plugins=ft.slice().reverse()}addEventListener(ft,Pt,mn){return this._findPluginFor(Pt).addEventListener(ft,Pt,mn)}getZone(){return this._zone}_findPluginFor(ft){let Pt=this._eventNameToPlugin.get(ft);if(Pt)return Pt;if(Pt=this._plugins.find(or=>or.supports(ft)),!Pt)throw new a.wOt(5101,!1);return this._eventNameToPlugin.set(ft,Pt),Pt}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(I),a.KVO(a.SKi))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();class G{_doc;constructor(kt){this._doc=kt}manager}const Z="ng-app-id";function ne(Pe){for(const kt of Pe)kt.remove()}function be(Pe,kt){const ft=kt.createElement("style");return ft.textContent=Pe,ft}function pe(Pe,kt){const ft=kt.createElement("link");return ft.setAttribute("rel","stylesheet"),ft.setAttribute("href",Pe),ft}let Te=(()=>{class Pe{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(ft,Pt,mn,or={}){this.doc=ft,this.appId=Pt,this.nonce=mn,this.isServer=(0,i.Vy)(or),function me(Pe,kt,ft){const Pt=Pe.head?.querySelectorAll(`style[${Z}="${kt}"]`);if(Pt)for(const mn of Pt)mn.textContent&&(mn.removeAttribute(Z),ft.set(mn.textContent,{usage:0,elements:[mn]}))}(ft,Pt,this.inline),this.hosts.add(ft.head)}addStyles(ft,Pt){for(const mn of ft)this.addUsage(mn,this.inline,be);Pt?.forEach(mn=>this.addUsage(mn,this.external,pe))}removeStyles(ft,Pt){for(const mn of ft)this.removeUsage(mn,this.inline);Pt?.forEach(mn=>this.removeUsage(mn,this.external))}addUsage(ft,Pt,mn){const or=Pt.get(ft);or?or.usage++:Pt.set(ft,{usage:1,elements:[...this.hosts].map(Mr=>this.addElement(Mr,mn(ft,this.doc)))})}removeUsage(ft,Pt){const mn=Pt.get(ft);mn&&(mn.usage--,mn.usage<=0&&(ne(mn.elements),Pt.delete(ft)))}ngOnDestroy(){for(const[,{elements:ft}]of[...this.inline,...this.external])ne(ft);this.hosts.clear()}addHost(ft){this.hosts.add(ft);for(const[Pt,{elements:mn}]of this.inline)mn.push(this.addElement(ft,be(Pt,this.doc)));for(const[Pt,{elements:mn}]of this.external)mn.push(this.addElement(ft,pe(Pt,this.doc)))}removeHost(ft){this.hosts.delete(ft)}addElement(ft,Pt){return this.nonce&&Pt.setAttribute("nonce",this.nonce),this.isServer&&Pt.setAttribute(Z,this.appId),ft.appendChild(Pt)}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ),a.KVO(a.sZ2),a.KVO(a.BIS,8),a.KVO(a.Agw))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();const xe={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"},Re=/%COMP%/g,Ie=new a.nKC("",{providedIn:"root",factory:()=>!0});function ht(Pe,kt){return kt.map(ft=>ft.replace(Re,Pe))}let vt=(()=>{class Pe{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(ft,Pt,mn,or,Mr,ii,ci,Ai=null){this.eventManager=ft,this.sharedStylesHost=Pt,this.appId=mn,this.removeStylesOnCompDestroy=or,this.doc=Mr,this.platformId=ii,this.ngZone=ci,this.nonce=Ai,this.platformIsServer=(0,i.Vy)(ii),this.defaultRenderer=new at(ft,Mr,ci,this.platformIsServer)}createRenderer(ft,Pt){if(!ft||!Pt)return this.defaultRenderer;this.platformIsServer&&Pt.encapsulation===a.gXe.ShadowDom&&(Pt={...Pt,encapsulation:a.gXe.Emulated});const mn=this.getOrCreateRenderer(ft,Pt);return mn instanceof Qe?mn.applyToHost(ft):mn instanceof bn&&mn.applyStyles(),mn}getOrCreateRenderer(ft,Pt){const mn=this.rendererByCompId;let or=mn.get(Pt.id);if(!or){const Mr=this.doc,ii=this.ngZone,ci=this.eventManager,Ai=this.sharedStylesHost,rn=this.removeStylesOnCompDestroy,St=this.platformIsServer;switch(Pt.encapsulation){case a.gXe.Emulated:or=new Qe(ci,Ai,Pt,this.appId,rn,Mr,ii,St);break;case a.gXe.ShadowDom:return new $n(ci,Ai,ft,Pt,Mr,ii,this.nonce,St);default:or=new bn(ci,Ai,Pt,rn,Mr,ii,St)}mn.set(Pt.id,or)}return or}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(N),a.KVO(Te),a.KVO(a.sZ2),a.KVO(Ie),a.KVO(i.qQ),a.KVO(a.Agw),a.KVO(a.SKi),a.KVO(a.BIS))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();class at{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(kt,ft,Pt,mn){this.eventManager=kt,this.doc=ft,this.ngZone=Pt,this.platformIsServer=mn}destroy(){}destroyNode=null;createElement(kt,ft){return ft?this.doc.createElementNS(xe[ft]||ft,kt):this.doc.createElement(kt)}createComment(kt){return this.doc.createComment(kt)}createText(kt){return this.doc.createTextNode(kt)}appendChild(kt,ft){(yn(kt)?kt.content:kt).appendChild(ft)}insertBefore(kt,ft,Pt){kt&&(yn(kt)?kt.content:kt).insertBefore(ft,Pt)}removeChild(kt,ft){ft.remove()}selectRootElement(kt,ft){let Pt="string"==typeof kt?this.doc.querySelector(kt):kt;if(!Pt)throw new a.wOt(-5104,!1);return ft||(Pt.textContent=""),Pt}parentNode(kt){return kt.parentNode}nextSibling(kt){return kt.nextSibling}setAttribute(kt,ft,Pt,mn){if(mn){ft=mn+":"+ft;const or=xe[mn];or?kt.setAttributeNS(or,ft,Pt):kt.setAttribute(ft,Pt)}else kt.setAttribute(ft,Pt)}removeAttribute(kt,ft,Pt){if(Pt){const mn=xe[Pt];mn?kt.removeAttributeNS(mn,ft):kt.removeAttribute(`${Pt}:${ft}`)}else kt.removeAttribute(ft)}addClass(kt,ft){kt.classList.add(ft)}removeClass(kt,ft){kt.classList.remove(ft)}setStyle(kt,ft,Pt,mn){mn&(a.czy.DashCase|a.czy.Important)?kt.style.setProperty(ft,Pt,mn&a.czy.Important?"important":""):kt.style[ft]=Pt}removeStyle(kt,ft,Pt){Pt&a.czy.DashCase?kt.style.removeProperty(ft):kt.style[ft]=""}setProperty(kt,ft,Pt){null!=kt&&(kt[ft]=Pt)}setValue(kt,ft){kt.nodeValue=ft}listen(kt,ft,Pt){if("string"==typeof kt&&!(kt=(0,i.QT)().getGlobalEventTarget(this.doc,kt)))throw new Error(`Unsupported event target ${kt} for event ${ft}`);return this.eventManager.addEventListener(kt,ft,this.decoratePreventDefault(Pt))}decoratePreventDefault(kt){return ft=>{if("__ngUnwrap__"===ft)return kt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>kt(ft)):kt(ft))&&ft.preventDefault()}}}function yn(Pe){return"TEMPLATE"===Pe.tagName&&void 0!==Pe.content}class $n extends at{sharedStylesHost;hostEl;shadowRoot;constructor(kt,ft,Pt,mn,or,Mr,ii,ci){super(kt,or,Mr,ci),this.sharedStylesHost=ft,this.hostEl=Pt,this.shadowRoot=Pt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ai=ht(mn.id,mn.styles);for(const St of Ai){const qe=document.createElement("style");ii&&qe.setAttribute("nonce",ii),qe.textContent=St,this.shadowRoot.appendChild(qe)}const rn=mn.getExternalStyles?.();if(rn)for(const St of rn){const qe=pe(St,or);ii&&qe.setAttribute("nonce",ii),this.shadowRoot.appendChild(qe)}}nodeOrShadowRoot(kt){return kt===this.hostEl?this.shadowRoot:kt}appendChild(kt,ft){return super.appendChild(this.nodeOrShadowRoot(kt),ft)}insertBefore(kt,ft,Pt){return super.insertBefore(this.nodeOrShadowRoot(kt),ft,Pt)}removeChild(kt,ft){return super.removeChild(null,ft)}parentNode(kt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(kt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class bn extends at{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(kt,ft,Pt,mn,or,Mr,ii,ci){super(kt,or,Mr,ii),this.sharedStylesHost=ft,this.removeStylesOnCompDestroy=mn,this.styles=ci?ht(ci,Pt.styles):Pt.styles,this.styleUrls=Pt.getExternalStyles?.(ci)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class Qe extends bn{contentAttr;hostAttr;constructor(kt,ft,Pt,mn,or,Mr,ii,ci){const Ai=mn+"-"+Pt.id;super(kt,ft,Pt,or,Mr,ii,ci,Ai),this.contentAttr=function $e(Pe){return"_ngcontent-%COMP%".replace(Re,Pe)}(Ai),this.hostAttr=function st(Pe){return"_nghost-%COMP%".replace(Re,Pe)}(Ai)}applyToHost(kt){this.applyStyles(),this.setAttribute(kt,this.hostAttr,"")}createElement(kt,ft){const Pt=super.createElement(kt,ft);return super.setAttribute(Pt,this.contentAttr,""),Pt}}let bt=(()=>{class Pe extends G{constructor(ft){super(ft)}supports(ft){return!0}addEventListener(ft,Pt,mn){return ft.addEventListener(Pt,mn,!1),()=>this.removeEventListener(ft,Pt,mn)}removeEventListener(ft,Pt,mn){return ft.removeEventListener(Pt,mn)}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();const ze=["alt","control","meta","shift"],Fe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ft={alt:Pe=>Pe.altKey,control:Pe=>Pe.ctrlKey,meta:Pe=>Pe.metaKey,shift:Pe=>Pe.shiftKey};let Ke=(()=>{class Pe extends G{constructor(ft){super(ft)}supports(ft){return null!=Pe.parseEventName(ft)}addEventListener(ft,Pt,mn){const or=Pe.parseEventName(Pt),Mr=Pe.eventCallback(or.fullKey,mn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.QT)().onAndCancel(ft,or.domEventName,Mr))}static parseEventName(ft){const Pt=ft.toLowerCase().split("."),mn=Pt.shift();if(0===Pt.length||"keydown"!==mn&&"keyup"!==mn)return null;const or=Pe._normalizeKey(Pt.pop());let Mr="",ii=Pt.indexOf("code");if(ii>-1&&(Pt.splice(ii,1),Mr="code."),ze.forEach(Ai=>{const rn=Pt.indexOf(Ai);rn>-1&&(Pt.splice(rn,1),Mr+=Ai+".")}),Mr+=or,0!=Pt.length||0===or.length)return null;const ci={};return ci.domEventName=mn,ci.fullKey=Mr,ci}static matchEventFullKeyCode(ft,Pt){let mn=Fe[ft.key]||ft.key,or="";return Pt.indexOf("code.")>-1&&(mn=ft.code,or="code."),!(null==mn||!mn)&&(mn=mn.toLowerCase()," "===mn?mn="space":"."===mn&&(mn="dot"),ze.forEach(Mr=>{Mr!==mn&&(0,Ft[Mr])(ft)&&(or+=Mr+".")}),or+=mn,or===Pt)}static eventCallback(ft,Pt,mn){return or=>{Pe.matchEventFullKeyCode(or,ft)&&mn.runGuarded(()=>Pt(or))}}static _normalizeKey(ft){return"esc"===ft?"escape":ft}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac})}return Pe})();function dt(Pe,kt){return(0,a.TL3)({rootComponent:Pe,...He(kt)})}function He(Pe){return{appProviders:[...Qt,...Pe?.providers??[]],platformProviders:Jt}}const Jt=[{provide:a.Agw,useValue:i.AJ},{provide:a.PLl,useValue:function se(){y.makeCurrent()},multi:!0},{provide:i.qQ,useFactory:function Rt(){return(0,a.TL$)(document),document},deps:[]}],Qt=[{provide:a.H8p,useValue:"root"},{provide:a.zcH,useFactory:function Ze(){return new a.zcH},deps:[]},{provide:I,useClass:bt,multi:!0,deps:[i.qQ,a.SKi,a.Agw]},{provide:I,useClass:Ke,multi:!0,deps:[i.qQ]},vt,Te,N,{provide:a._9s,useExisting:vt},{provide:i.N0,useClass:A,deps:[]},[]];let Gt=(()=>{class Pe{_doc;constructor(ft){this._doc=ft}getTitle(){return this._doc.title}setTitle(ft){this._doc.title=ft||""}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})(),Vt=(()=>{class Pe{static \u0275fac=function(Pt){return new(Pt||Pe)};static \u0275prov=a.jDH({token:Pe,factory:function(Pt){let mn=null;return mn=Pt?new(Pt||Pe):a.KVO(dn),mn},providedIn:"root"})}return Pe})(),dn=(()=>{class Pe extends Vt{_doc;constructor(ft){super(),this._doc=ft}sanitize(ft,Pt){if(null==Pt)return null;switch(ft){case a.WPN.NONE:return Pt;case a.WPN.HTML:return(0,a.ZF7)(Pt,"HTML")?(0,a.rcV)(Pt):(0,a.h9k)(this._doc,String(Pt)).toString();case a.WPN.STYLE:return(0,a.ZF7)(Pt,"Style")?(0,a.rcV)(Pt):Pt;case a.WPN.SCRIPT:if((0,a.ZF7)(Pt,"Script"))return(0,a.rcV)(Pt);throw new a.wOt(5200,!1);case a.WPN.URL:return(0,a.ZF7)(Pt,"URL")?(0,a.rcV)(Pt):(0,a.$MX)(String(Pt));case a.WPN.RESOURCE_URL:if((0,a.ZF7)(Pt,"ResourceURL"))return(0,a.rcV)(Pt);throw new a.wOt(5201,!1);default:throw new a.wOt(5202,!1)}}bypassSecurityTrustHtml(ft){return(0,a.Kcf)(ft)}bypassSecurityTrustStyle(ft){return(0,a.cWb)(ft)}bypassSecurityTrustScript(ft){return(0,a.UyX)(ft)}bypassSecurityTrustUrl(ft){return(0,a.osQ)(ft)}bypassSecurityTrustResourceUrl(ft){return(0,a.e5t)(ft)}static \u0275fac=function(Pt){return new(Pt||Pe)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})()},5245:(o,s,r)=>{"use strict";r.d(s,{nX:()=>tr,wF:()=>Oe,Ix:()=>Qr,Wk:()=>Wo,wQ:()=>hs,iI:()=>ul,n3:()=>Qo,lh:()=>Tl,oH:()=>oc});var i=r(4438),a=r(4402),c=r(6648),y=r(7673),w=r(4412),C=r(4572),T=r(9350),S=r(8793),A=r(9030),I=r(1203),N=r(8810),G=r(983),Z=r(17),ne=r(1413),be=r(8359),me=r(177),pe=r(6354),Te=r(5558),xe=r(6697),Re=r(9172),Me=r(5964),Ce=r(1397),le=r(9974),ae=r(4360);function Ie(L){return(0,le.N)((K,P)=>{let X=!1;K.subscribe((0,ae._)(P,he=>{X=!0,P.next(he)},()=>{X||P.next(L),P.complete()}))})}function $e(L=st){return(0,le.N)((K,P)=>{let X=!1;K.subscribe((0,ae._)(P,he=>{X=!0,P.next(he)},()=>X?P.complete():P.error(L())))})}function st(){return new T.G}var ht=r(3669);function vt(L,K){const P=arguments.length>=2;return X=>X.pipe(L?(0,Me.p)((he,We)=>L(he,We,X)):ht.D,(0,xe.s)(1),P?Ie(K):$e(()=>new T.G))}var at=r(274),Xt=r(8141),ln=r(9437),yn=r(6649);function bn(L){return L<=0?()=>G.w:(0,le.N)((K,P)=>{let X=[];K.subscribe((0,ae._)(P,he=>{X.push(he),L{for(const he of X)P.next(he);P.complete()},void 0,()=>{X=null}))})}var bt=r(3703),ze=r(980),Fe=r(9898),Ft=r(6977),Ke=r(6365),dt=r(345);const Ge="primary",He=Symbol("RouteTitle");class mt{params;constructor(K){this.params=K||{}}has(K){return Object.prototype.hasOwnProperty.call(this.params,K)}get(K){if(this.has(K)){const P=this.params[K];return Array.isArray(P)?P[0]:P}return null}getAll(K){if(this.has(K)){const P=this.params[K];return Array.isArray(P)?P:[P]}return[]}get keys(){return Object.keys(this.params)}}function se(L){return new mt(L)}function Ze(L,K,P){const X=P.path.split("/");if(X.length>L.length||"full"===P.pathMatch&&(K.hasChildren()||X.lengthX[We]===he)}return L===K}function Nt(L){return L.length>0?L[L.length-1]:null}function Qt(L){return(0,a.A)(L)?L:(0,i.jNT)(L)?(0,c.H)(Promise.resolve(L)):(0,y.of)(L)}const an={exact:function At(L,K,P){if(!De(L.segments,K.segments)||!tt(L.segments,K.segments,P)||L.numberOfChildren!==K.numberOfChildren)return!1;for(const X in K.children)if(!L.children[X]||!At(L.children[X],K.children[X],P))return!1;return!0},subset:xn},Xn={exact:function Gt(L,K){return Jt(L,K)},subset:function Kt(L,K){return Object.keys(K).length<=Object.keys(L).length&&Object.keys(K).every(P=>Gn(L[P],K[P]))},ignored:()=>!0};function En(L,K,P){return an[P.paths](L.root,K.root,P.matrixParams)&&Xn[P.queryParams](L.queryParams,K.queryParams)&&!("exact"===P.fragment&&L.fragment!==K.fragment)}function xn(L,K,P){return Yn(L,K,K.segments,P)}function Yn(L,K,P,X){if(L.segments.length>P.length){const he=L.segments.slice(0,P.length);return!(!De(he,P)||K.hasChildren()||!tt(he,P,X))}if(L.segments.length===P.length){if(!De(L.segments,P)||!tt(L.segments,P,X))return!1;for(const he in K.children)if(!L.children[he]||!xn(L.children[he],K.children[he],X))return!1;return!0}{const he=P.slice(0,L.segments.length),We=P.slice(L.segments.length);return!!(De(L.segments,he)&&tt(L.segments,he,X)&&L.children[Ge])&&Yn(L.children[Ge],K,We,X)}}function tt(L,K,P){return K.every((X,he)=>Xn[P](L[he].parameters,X.parameters))}class ke{root;queryParams;fragment;_queryParamMap;constructor(K=new B([],{}),P={},X=null){this.root=K,this.queryParams=P,this.fragment=X}get queryParamMap(){return this._queryParamMap??=se(this.queryParams),this._queryParamMap}toString(){return In.serialize(this)}}class B{segments;children;parent=null;constructor(K,P){this.segments=K,this.children=P,Object.values(P).forEach(X=>X.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vt(this)}}class k{path;parameters;_parameterMap;constructor(K,P){this.path=K,this.parameters=P}get parameterMap(){return this._parameterMap??=se(this.parameters),this._parameterMap}toString(){return _t(this)}}function De(L,K){return L.length===K.length&&L.every((P,X)=>P.path===K[X].path)}let ot=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>new Tt,providedIn:"root"})}return L})();class Tt{parse(K){const P=new ii(K);return new ke(P.parseRootSegment(),P.parseQueryParams(),P.parseFragment())}serialize(K){const P=`/${dn(K.root,!0)}`,X=function Ee(L){const K=Object.entries(L).map(([P,X])=>Array.isArray(X)?X.map(he=>`${Fn(P)}=${Fn(he)}`).join("&"):`${Fn(P)}=${Fn(X)}`).filter(P=>P);return K.length?`?${K.join("&")}`:""}(K.queryParams);return`${P}${X}${"string"==typeof K.fragment?`#${function Bn(L){return encodeURI(L)}(K.fragment)}`:""}`}}const In=new Tt;function Vt(L){return L.segments.map(K=>_t(K)).join("/")}function dn(L,K){if(!L.hasChildren())return Vt(L);if(K){const P=L.children[Ge]?dn(L.children[Ge],!1):"",X=[];return Object.entries(L.children).forEach(([he,We])=>{he!==Ge&&X.push(`${he}:${dn(We,!1)}`)}),X.length>0?`${P}(${X.join("//")})`:P}{const P=function it(L,K){let P=[];return Object.entries(L.children).forEach(([X,he])=>{X===Ge&&(P=P.concat(K(he,X)))}),Object.entries(L.children).forEach(([X,he])=>{X!==Ge&&(P=P.concat(K(he,X)))}),P}(L,(X,he)=>he===Ge?[dn(L.children[Ge],!1)]:[`${he}:${dn(X,!1)}`]);return 1===Object.keys(L.children).length&&null!=L.children[Ge]?`${Vt(L)}/${P[0]}`:`${Vt(L)}/(${P.join("//")})`}}function Pn(L){return encodeURIComponent(L).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fn(L){return Pn(L).replace(/%3B/gi,";")}function cr(L){return Pn(L).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jr(L){return decodeURIComponent(L)}function Xr(L){return Jr(L.replace(/\+/g,"%20"))}function _t(L){return`${cr(L.path)}${function Bt(L){return Object.entries(L).map(([K,P])=>`;${cr(K)}=${cr(P)}`).join("")}(L.parameters)}`}const lt=/^[^\/()?;#]+/;function Pe(L){const K=L.match(lt);return K?K[0]:""}const kt=/^[^\/()?;=#]+/,Pt=/^[^=?&#]+/,or=/^[^&#]+/;class ii{url;remaining;constructor(K){this.url=K,this.remaining=K}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new B([],{}):new B([],this.parseChildren())}parseQueryParams(){const K={};if(this.consumeOptional("?"))do{this.parseQueryParam(K)}while(this.consumeOptional("&"));return K}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const K=[];for(this.peekStartsWith("(")||K.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),K.push(this.parseSegment());let P={};this.peekStartsWith("/(")&&(this.capture("/"),P=this.parseParens(!0));let X={};return this.peekStartsWith("(")&&(X=this.parseParens(!1)),(K.length>0||Object.keys(P).length>0)&&(X[Ge]=new B(K,P)),X}parseSegment(){const K=Pe(this.remaining);if(""===K&&this.peekStartsWith(";"))throw new i.wOt(4009,!1);return this.capture(K),new k(Jr(K),this.parseMatrixParams())}parseMatrixParams(){const K={};for(;this.consumeOptional(";");)this.parseParam(K);return K}parseParam(K){const P=function ft(L){const K=L.match(kt);return K?K[0]:""}(this.remaining);if(!P)return;this.capture(P);let X="";if(this.consumeOptional("=")){const he=Pe(this.remaining);he&&(X=he,this.capture(X))}K[Jr(P)]=Jr(X)}parseQueryParam(K){const P=function mn(L){const K=L.match(Pt);return K?K[0]:""}(this.remaining);if(!P)return;this.capture(P);let X="";if(this.consumeOptional("=")){const Ct=function Mr(L){const K=L.match(or);return K?K[0]:""}(this.remaining);Ct&&(X=Ct,this.capture(X))}const he=Xr(P),We=Xr(X);if(K.hasOwnProperty(he)){let Ct=K[he];Array.isArray(Ct)||(Ct=[Ct],K[he]=Ct),Ct.push(We)}else K[he]=We}parseParens(K){const P={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const X=Pe(this.remaining),he=this.remaining[X.length];if("/"!==he&&")"!==he&&";"!==he)throw new i.wOt(4010,!1);let We;X.indexOf(":")>-1?(We=X.slice(0,X.indexOf(":")),this.capture(We),this.capture(":")):K&&(We=Ge);const Ct=this.parseChildren();P[We]=1===Object.keys(Ct).length?Ct[Ge]:new B([],Ct),this.consumeOptional("//")}return P}peekStartsWith(K){return this.remaining.startsWith(K)}consumeOptional(K){return!!this.peekStartsWith(K)&&(this.remaining=this.remaining.substring(K.length),!0)}capture(K){if(!this.consumeOptional(K))throw new i.wOt(4011,!1)}}function ci(L){return L.segments.length>0?new B([],{[Ge]:L}):L}function Ai(L){const K={};for(const[X,he]of Object.entries(L.children)){const We=Ai(he);if(X===Ge&&0===We.segments.length&&We.hasChildren())for(const[Ct,vn]of Object.entries(We.children))K[Ct]=vn;else(We.segments.length>0||We.hasChildren())&&(K[X]=We)}return function rn(L){if(1===L.numberOfChildren&&L.children[Ge]){const K=L.children[Ge];return new B(L.segments.concat(K.segments),K.children)}return L}(new B(L.segments,K))}function St(L){return L instanceof ke}function Dt(L){let K;const he=ci(function P(We){const Ct={};for(const nn of We.children){const pr=P(nn);Ct[nn.outlet]=pr}const vn=new B(We.url,Ct);return We===L&&(K=vn),vn}(L.root));return K??he}function Wt(L,K,P,X){let he=L;for(;he.parent;)he=he.parent;if(0===K.length)return uo(he,he,he,P,X);const We=function oi(L){if("string"==typeof L[0]&&1===L.length&&"/"===L[0])return new Uo(!0,0,L);let K=0,P=!1;const X=L.reduce((he,We,Ct)=>{if("object"==typeof We&&null!=We){if(We.outlets){const vn={};return Object.entries(We.outlets).forEach(([nn,pr])=>{vn[nn]="string"==typeof pr?pr.split("/"):pr}),[...he,{outlets:vn}]}if(We.segmentPath)return[...he,We.segmentPath]}return"string"!=typeof We?[...he,We]:0===Ct?(We.split("/").forEach((vn,nn)=>{0==nn&&"."===vn||(0==nn&&""===vn?P=!0:".."===vn?K++:""!=vn&&he.push(vn))}),he):[...he,We]},[]);return new Uo(P,K,X)}(K);if(We.toRoot())return uo(he,he,new B([],{}),P,X);const Ct=function so(L,K,P){if(L.isAbsolute)return new ts(K,!0,0);if(!P)return new ts(K,!1,NaN);if(null===P.parent)return new ts(P,!0,0);const X=Hn(L.commands[0])?0:1;return function bo(L,K,P){let X=L,he=K,We=P;for(;We>he;){if(We-=he,X=X.parent,!X)throw new i.wOt(4005,!1);he=X.segments.length}return new ts(X,!1,he-We)}(P,P.segments.length-1+X,L.numberOfDoubleDots)}(We,he,L),vn=Ct.processChildren?Is(Ct.segmentGroup,Ct.index,We.commands):Co(Ct.segmentGroup,Ct.index,We.commands);return uo(he,Ct.segmentGroup,vn,P,X)}function Hn(L){return"object"==typeof L&&null!=L&&!L.outlets&&!L.segmentPath}function fr(L){return"object"==typeof L&&null!=L&&L.outlets}function uo(L,K,P,X,he){let Ct,We={};X&&Object.entries(X).forEach(([nn,pr])=>{We[nn]=Array.isArray(pr)?pr.map(ri=>`${ri}`):`${pr}`}),Ct=L===K?P:Oi(L,K,P);const vn=ci(Ai(Ct));return new ke(vn,We,he)}function Oi(L,K,P){const X={};return Object.entries(L.children).forEach(([he,We])=>{X[he]=We===K?P:Oi(We,K,P)}),new B(L.segments,X)}class Uo{isAbsolute;numberOfDoubleDots;commands;constructor(K,P,X){if(this.isAbsolute=K,this.numberOfDoubleDots=P,this.commands=X,K&&X.length>0&&Hn(X[0]))throw new i.wOt(4003,!1);const he=X.find(fr);if(he&&he!==Nt(X))throw new i.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ts{segmentGroup;processChildren;index;constructor(K,P,X){this.segmentGroup=K,this.processChildren=P,this.index=X}}function Co(L,K,P){if(L??=new B([],{}),0===L.segments.length&&L.hasChildren())return Is(L,K,P);const X=function eo(L,K,P){let X=0,he=K;const We={match:!1,pathIndex:0,commandIndex:0};for(;he=P.length)return We;const Ct=L.segments[he],vn=P[X];if(fr(vn))break;const nn=`${vn}`,pr=X0&&void 0===nn)break;if(nn&&pr&&"object"==typeof pr&&void 0===pr.outlets){if(!Je(nn,pr,Ct))return We;X+=2}else{if(!Je(nn,{},Ct))return We;X++}he++}return{match:!0,pathIndex:he,commandIndex:X}}(L,K,P),he=P.slice(X.commandIndex);if(X.match&&X.pathIndexWe!==Ge)&&L.children[Ge]&&1===L.numberOfChildren&&0===L.children[Ge].segments.length){const We=Is(L.children[Ge],K,P);return new B(L.segments,We.children)}return Object.entries(X).forEach(([We,Ct])=>{"string"==typeof Ct&&(Ct=[Ct]),null!==Ct&&(he[We]=Co(L.children[We],K,Ct))}),Object.entries(L.children).forEach(([We,Ct])=>{void 0===X[We]&&(he[We]=Ct)}),new B(L.segments,he)}}function oo(L,K,P){const X=L.segments.slice(0,K);let he=0;for(;he{"string"==typeof X&&(X=[X]),null!==X&&(K[P]=oo(new B([],{}),0,X))}),K}function Mo(L){const K={};return Object.entries(L).forEach(([P,X])=>K[P]=`${X}`),K}function Je(L,K,P){return L==P.path&&Jt(K,P.parameters)}const ct="imperative";var Et=function(L){return L[L.NavigationStart=0]="NavigationStart",L[L.NavigationEnd=1]="NavigationEnd",L[L.NavigationCancel=2]="NavigationCancel",L[L.NavigationError=3]="NavigationError",L[L.RoutesRecognized=4]="RoutesRecognized",L[L.ResolveStart=5]="ResolveStart",L[L.ResolveEnd=6]="ResolveEnd",L[L.GuardsCheckStart=7]="GuardsCheckStart",L[L.GuardsCheckEnd=8]="GuardsCheckEnd",L[L.RouteConfigLoadStart=9]="RouteConfigLoadStart",L[L.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",L[L.ChildActivationStart=11]="ChildActivationStart",L[L.ChildActivationEnd=12]="ChildActivationEnd",L[L.ActivationStart=13]="ActivationStart",L[L.ActivationEnd=14]="ActivationEnd",L[L.Scroll=15]="Scroll",L[L.NavigationSkipped=16]="NavigationSkipped",L}(Et||{});class ve{id;url;constructor(K,P){this.id=K,this.url=P}}class et extends ve{type=Et.NavigationStart;navigationTrigger;restoredState;constructor(K,P,X="imperative",he=null){super(K,P),this.navigationTrigger=X,this.restoredState=he}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Oe extends ve{urlAfterRedirects;type=Et.NavigationEnd;constructor(K,P,X){super(K,P),this.urlAfterRedirects=X}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var pt=function(L){return L[L.Redirect=0]="Redirect",L[L.SupersededByNewNavigation=1]="SupersededByNewNavigation",L[L.NoDataFromResolver=2]="NoDataFromResolver",L[L.GuardRejected=3]="GuardRejected",L}(pt||{}),$t=function(L){return L[L.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",L[L.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",L}($t||{});class Mt extends ve{reason;code;type=Et.NavigationCancel;constructor(K,P,X,he){super(K,P),this.reason=X,this.code=he}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class un extends ve{reason;code;type=Et.NavigationSkipped;constructor(K,P,X,he){super(K,P),this.reason=X,this.code=he}}class Cn extends ve{error;target;type=Et.NavigationError;constructor(K,P,X,he){super(K,P),this.error=X,this.target=he}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Sn extends ve{urlAfterRedirects;state;type=Et.RoutesRecognized;constructor(K,P,X,he){super(K,P),this.urlAfterRedirects=X,this.state=he}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kn extends ve{urlAfterRedirects;state;type=Et.GuardsCheckStart;constructor(K,P,X,he){super(K,P),this.urlAfterRedirects=X,this.state=he}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Un extends ve{urlAfterRedirects;state;shouldActivate;type=Et.GuardsCheckEnd;constructor(K,P,X,he,We){super(K,P),this.urlAfterRedirects=X,this.state=he,this.shouldActivate=We}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Jn extends ve{urlAfterRedirects;state;type=Et.ResolveStart;constructor(K,P,X,he){super(K,P),this.urlAfterRedirects=X,this.state=he}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sr extends ve{urlAfterRedirects;state;type=Et.ResolveEnd;constructor(K,P,X,he){super(K,P),this.urlAfterRedirects=X,this.state=he}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kr{route;type=Et.RouteConfigLoadStart;constructor(K){this.route=K}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class mr{route;type=Et.RouteConfigLoadEnd;constructor(K){this.route=K}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bi{snapshot;type=Et.ChildActivationStart;constructor(K){this.snapshot=K}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class si{snapshot;type=Et.ChildActivationEnd;constructor(K){this.snapshot=K}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gr{snapshot;type=Et.ActivationStart;constructor(K){this.snapshot=K}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ai{snapshot;type=Et.ActivationEnd;constructor(K){this.snapshot=K}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vo{routerEvent;position;anchor;type=Et.Scroll;constructor(K,P,X){this.routerEvent=K,this.position=P,this.anchor=X}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class $r{}class Ki{url;navigationBehaviorOptions;constructor(K,P){this.url=K,this.navigationBehaviorOptions=P}}function Gi(L){return L.outlet||Ge}function Ni(L){if(!L)return null;if(L.routeConfig?._injector)return L.routeConfig._injector;for(let K=L.parent;K;K=K.parent){const P=K.routeConfig;if(P?._loadedInjector)return P._loadedInjector;if(P?._injector)return P._injector}return null}class Fs{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ni(this.route?.snapshot)??this.rootInjector}constructor(K){this.rootInjector=K,this.children=new ns(this.rootInjector)}}let ns=(()=>{class L{rootInjector;contexts=new Map;constructor(P){this.rootInjector=P}onChildOutletCreated(P,X){const he=this.getOrCreateContext(P);he.outlet=X,this.contexts.set(P,he)}onChildOutletDestroyed(P){const X=this.getContext(P);X&&(X.outlet=null,X.attachRef=null)}onOutletDeactivated(){const P=this.contexts;return this.contexts=new Map,P}onOutletReAttached(P){this.contexts=P}getOrCreateContext(P){let X=this.getContext(P);return X||(X=new Fs(this.rootInjector),this.contexts.set(P,X)),X}getContext(P){return this.contexts.get(P)||null}static \u0275fac=function(X){return new(X||L)(i.KVO(i.uvJ))};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();class qr{_root;constructor(K){this._root=K}get root(){return this._root.value}parent(K){const P=this.pathFromRoot(K);return P.length>1?P[P.length-2]:null}children(K){const P=rs(K,this._root);return P?P.children.map(X=>X.value):[]}firstChild(K){const P=rs(K,this._root);return P&&P.children.length>0?P.children[0].value:null}siblings(K){const P=is(K,this._root);return P.length<2?[]:P[P.length-2].children.map(he=>he.value).filter(he=>he!==K)}pathFromRoot(K){return is(K,this._root).map(P=>P.value)}}function rs(L,K){if(L===K.value)return K;for(const P of K.children){const X=rs(L,P);if(X)return X}return null}function is(L,K){if(L===K.value)return[K];for(const P of K.children){const X=is(L,P);if(X.length)return X.unshift(K),X}return[]}class to{value;children;constructor(K,P){this.value=K,this.children=P}toString(){return`TreeNode(${this.value})`}}function Wi(L){const K={};return L&&L.children.forEach(P=>K[P.value.outlet]=P),K}class Es extends qr{snapshot;constructor(K,P){super(K),this.snapshot=P,Bs(this,K)}toString(){return this.snapshot.toString()}}function Io(L){const K=function ga(L){const We=new os([],{},{},"",{},Ge,L,null,{});return new ks("",new to(We,[]))}(L),P=new w.t([new k("",{})]),X=new w.t({}),he=new w.t({}),We=new w.t({}),Ct=new w.t(""),vn=new tr(P,X,We,Ct,he,Ge,L,K.root);return vn.snapshot=K.root,new Es(new to(vn,[]),K)}class tr{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(K,P,X,he,We,Ct,vn,nn){this.urlSubject=K,this.paramsSubject=P,this.queryParamsSubject=X,this.fragmentSubject=he,this.dataSubject=We,this.outlet=Ct,this.component=vn,this._futureSnapshot=nn,this.title=this.dataSubject?.pipe((0,pe.T)(pr=>pr[He]))??(0,y.of)(void 0),this.url=K,this.params=P,this.queryParams=X,this.fragment=he,this.data=We}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,pe.T)(K=>se(K))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,pe.T)(K=>se(K))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Eo(L,K,P="emptyOnly"){let X;const{routeConfig:he}=L;return X=null===K||"always"!==P&&""!==he?.path&&(K.component||K.routeConfig?.loadComponent)?{params:{...L.params},data:{...L.data},resolve:{...L.data,...L._resolvedData??{}}}:{params:{...K.params,...L.params},data:{...K.data,...L.data},resolve:{...L.data,...K.data,...he?.data,...L._resolvedData}},he&&sa(he)&&(X.resolve[He]=he.title),X}class os{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[He]}constructor(K,P,X,he,We,Ct,vn,nn,pr){this.url=K,this.params=P,this.queryParams=X,this.fragment=he,this.data=We,this.outlet=Ct,this.component=vn,this.routeConfig=nn,this._resolve=pr}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??=se(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=se(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(X=>X.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ks extends qr{url;constructor(K,P){super(P),this.url=K,Bs(this,P)}toString(){return va(this._root)}}function Bs(L,K){K.value._routerState=L,K.children.forEach(P=>Bs(L,P))}function va(L){const K=L.children.length>0?` { ${L.children.map(va).join(", ")} } `:"";return`${L.value}${K}`}function Yo(L){if(L.snapshot){const K=L.snapshot,P=L._futureSnapshot;L.snapshot=P,Jt(K.queryParams,P.queryParams)||L.queryParamsSubject.next(P.queryParams),K.fragment!==P.fragment&&L.fragmentSubject.next(P.fragment),Jt(K.params,P.params)||L.paramsSubject.next(P.params),function Rt(L,K){if(L.length!==K.length)return!1;for(let P=0;PJt(P.parameters,K[X].parameters))}(L.url,K.url);return P&&!(!L.parent!=!K.parent)&&(!L.parent||Ti(L.parent,K.parent))}function sa(L){return"string"==typeof L.title||null===L.title}const yl=new i.nKC("");let Qo=(()=>{class L{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Ge;activateEvents=new i.bkB;deactivateEvents=new i.bkB;attachEvents=new i.bkB;detachEvents=new i.bkB;routerOutletData=(0,i.hFB)(void 0);parentContexts=(0,i.WQX)(ns);location=(0,i.WQX)(i.c1b);changeDetector=(0,i.WQX)(i.gRc);inputBinder=(0,i.WQX)(ao,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(P){if(P.name){const{firstChange:X,previousValue:he}=P.name;if(X)return;this.isTrackedInParentContexts(he)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(he)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(P){return this.parentContexts.getContext(P)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const P=this.parentContexts.getContext(this.name);P?.route&&(P.attachRef?this.attach(P.attachRef,P.route):this.activateWith(P.route,P.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.wOt(4012,!1);this.location.detach();const P=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(P.instance),P}attach(P,X){this.activated=P,this._activatedRoute=X,this.location.insert(P.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(P.instance)}deactivate(){if(this.activated){const P=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(P)}}activateWith(P,X){if(this.isActivated)throw new i.wOt(4013,!1);this._activatedRoute=P;const he=this.location,Ct=P.snapshot.component,vn=this.parentContexts.getOrCreateContext(this.name).children,nn=new aa(P,vn,he.injector,this.routerOutletData);this.activated=he.createComponent(Ct,{index:he.length,injector:nn,environmentInjector:X}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(X){return new(X||L)};static \u0275dir=i.FsC({type:L,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[i.OA$]})}return L})();class aa{route;childContexts;parent;outletData;__ngOutletInjector(K){return new aa(this.route,this.childContexts,K,this.outletData)}constructor(K,P,X,he){this.route=K,this.childContexts=P,this.parent=X,this.outletData=he}get(K,P){return K===tr?this.route:K===ns?this.childContexts:K===yl?this.outletData:this.parent.get(K,P)}}const ao=new i.nKC("");let ss=(()=>{class L{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(P){this.unsubscribeFromRouteData(P),this.subscribeToRouteData(P)}unsubscribeFromRouteData(P){this.outletDataSubscriptions.get(P)?.unsubscribe(),this.outletDataSubscriptions.delete(P)}subscribeToRouteData(P){const{activatedRoute:X}=P,he=(0,C.z)([X.queryParams,X.params,X.data]).pipe((0,Te.n)(([We,Ct,vn],nn)=>(vn={...We,...Ct,...vn},0===nn?(0,y.of)(vn):Promise.resolve(vn)))).subscribe(We=>{if(!P.isActivated||!P.activatedComponentRef||P.activatedRoute!==X||null===X.component)return void this.unsubscribeFromRouteData(P);const Ct=(0,i.HJs)(X.component);if(Ct)for(const{templateName:vn}of Ct.inputs)P.activatedComponentRef.setInput(vn,We[vn]);else this.unsubscribeFromRouteData(P)});this.outletDataSubscriptions.set(P,he)}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac})}return L})();function Zo(L,K,P){if(P&&L.shouldReuseRoute(K.value,P.value.snapshot)){const X=P.value;X._futureSnapshot=K.value;const he=function _i(L,K,P){return K.children.map(X=>{for(const he of P.children)if(L.shouldReuseRoute(X.value,he.value.snapshot))return Zo(L,X,he);return Zo(L,X)})}(L,K,P);return new to(X,he)}{if(L.shouldAttach(K.value)){const We=L.retrieve(K.value);if(null!==We){const Ct=We.route;return Ct.value._futureSnapshot=K.value,Ct.children=K.children.map(vn=>Zo(L,vn)),Ct}}const X=function Fa(L){return new tr(new w.t(L.url),new w.t(L.params),new w.t(L.queryParams),new w.t(L.fragment),new w.t(L.data),L.outlet,L.component,L)}(K.value),he=K.children.map(We=>Zo(L,We));return new to(X,he)}}class ko{redirectTo;navigationBehaviorOptions;constructor(K,P){this.redirectTo=K,this.navigationBehaviorOptions=P}}const Qs="ngNavigationCancelingError";function bl(L,K){const{redirectTo:P,navigationBehaviorOptions:X}=St(K)?{redirectTo:K,navigationBehaviorOptions:void 0}:K,he=Xa(!1,pt.Redirect);return he.url=P,he.navigationBehaviorOptions=X,he}function Xa(L,K){const P=new Error(`NavigationCancelingError: ${L||""}`);return P[Qs]=!0,P.cancellationCode=K,P}function Y(L){return!!L&&L[Qs]}class Xe{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(K,P,X,he,We){this.routeReuseStrategy=K,this.futureState=P,this.currState=X,this.forwardEvent=he,this.inputBindingEnabled=We}activate(K){const P=this.futureState._root,X=this.currState?this.currState._root:null;this.deactivateChildRoutes(P,X,K),Yo(this.futureState.root),this.activateChildRoutes(P,X,K)}deactivateChildRoutes(K,P,X){const he=Wi(P);K.children.forEach(We=>{const Ct=We.value.outlet;this.deactivateRoutes(We,he[Ct],X),delete he[Ct]}),Object.values(he).forEach(We=>{this.deactivateRouteAndItsChildren(We,X)})}deactivateRoutes(K,P,X){const he=K.value,We=P?P.value:null;if(he===We)if(he.component){const Ct=X.getContext(he.outlet);Ct&&this.deactivateChildRoutes(K,P,Ct.children)}else this.deactivateChildRoutes(K,P,X);else We&&this.deactivateRouteAndItsChildren(P,X)}deactivateRouteAndItsChildren(K,P){K.value.component&&this.routeReuseStrategy.shouldDetach(K.value.snapshot)?this.detachAndStoreRouteSubtree(K,P):this.deactivateRouteAndOutlet(K,P)}detachAndStoreRouteSubtree(K,P){const X=P.getContext(K.value.outlet),he=X&&K.value.component?X.children:P,We=Wi(K);for(const Ct of Object.values(We))this.deactivateRouteAndItsChildren(Ct,he);if(X&&X.outlet){const Ct=X.outlet.detach(),vn=X.children.onOutletDeactivated();this.routeReuseStrategy.store(K.value.snapshot,{componentRef:Ct,route:K,contexts:vn})}}deactivateRouteAndOutlet(K,P){const X=P.getContext(K.value.outlet),he=X&&K.value.component?X.children:P,We=Wi(K);for(const Ct of Object.values(We))this.deactivateRouteAndItsChildren(Ct,he);X&&(X.outlet&&(X.outlet.deactivate(),X.children.onOutletDeactivated()),X.attachRef=null,X.route=null)}activateChildRoutes(K,P,X){const he=Wi(P);K.children.forEach(We=>{this.activateRoutes(We,he[We.value.outlet],X),this.forwardEvent(new ai(We.value.snapshot))}),K.children.length&&this.forwardEvent(new si(K.value.snapshot))}activateRoutes(K,P,X){const he=K.value,We=P?P.value:null;if(Yo(he),he===We)if(he.component){const Ct=X.getOrCreateContext(he.outlet);this.activateChildRoutes(K,P,Ct.children)}else this.activateChildRoutes(K,P,X);else if(he.component){const Ct=X.getOrCreateContext(he.outlet);if(this.routeReuseStrategy.shouldAttach(he.snapshot)){const vn=this.routeReuseStrategy.retrieve(he.snapshot);this.routeReuseStrategy.store(he.snapshot,null),Ct.children.onOutletReAttached(vn.contexts),Ct.attachRef=vn.componentRef,Ct.route=vn.route.value,Ct.outlet&&Ct.outlet.attach(vn.componentRef,vn.route.value),Yo(vn.route.value),this.activateChildRoutes(K,null,Ct.children)}else Ct.attachRef=null,Ct.route=he,Ct.outlet&&Ct.outlet.activateWith(he,Ct.injector),this.activateChildRoutes(K,null,Ct.children)}else this.activateChildRoutes(K,null,X)}}class wt{path;route;constructor(K){this.path=K,this.route=this.path[this.path.length-1]}}class Ln{component;route;constructor(K,P){this.component=K,this.route=P}}function hn(L,K,P){const X=L._root;return Gr(X,K?K._root:null,P,[X.value])}function hr(L,K){const P=Symbol(),X=K.get(L,P);return X===P?"function"!=typeof L||(0,i.LfX)(L)?K.get(L):L:X}function Gr(L,K,P,X,he={canDeactivateChecks:[],canActivateChecks:[]}){const We=Wi(K);return L.children.forEach(Ct=>{(function zi(L,K,P,X,he={canDeactivateChecks:[],canActivateChecks:[]}){const We=L.value,Ct=K?K.value:null,vn=P?P.getContext(L.value.outlet):null;if(Ct&&We.routeConfig===Ct.routeConfig){const nn=function Or(L,K,P){if("function"==typeof P)return P(L,K);switch(P){case"pathParamsChange":return!De(L.url,K.url);case"pathParamsOrQueryParamsChange":return!De(L.url,K.url)||!Jt(L.queryParams,K.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ti(L,K)||!Jt(L.queryParams,K.queryParams);default:return!Ti(L,K)}}(Ct,We,We.routeConfig.runGuardsAndResolvers);nn?he.canActivateChecks.push(new wt(X)):(We.data=Ct.data,We._resolvedData=Ct._resolvedData),Gr(L,K,We.component?vn?vn.children:null:P,X,he),nn&&vn&&vn.outlet&&vn.outlet.isActivated&&he.canDeactivateChecks.push(new Ln(vn.outlet.component,Ct))}else Ct&&Dr(K,vn,he),he.canActivateChecks.push(new wt(X)),Gr(L,null,We.component?vn?vn.children:null:P,X,he)})(Ct,We[Ct.value.outlet],P,X.concat([Ct.value]),he),delete We[Ct.value.outlet]}),Object.entries(We).forEach(([Ct,vn])=>Dr(vn,P.getContext(Ct),he)),he}function Dr(L,K,P){const X=Wi(L),he=L.value;Object.entries(X).forEach(([We,Ct])=>{Dr(Ct,he.component?K?K.children.getContext(We):null:K,P)}),P.canDeactivateChecks.push(new Ln(he.component&&K&&K.outlet&&K.outlet.isActivated?K.outlet.component:null,he))}function Ei(L){return"function"==typeof L}function Qa(L){return L instanceof T.G||"EmptyError"===L?.name}const ya=Symbol("INITIAL_VALUE");function ue(){return(0,Te.n)(L=>(0,C.z)(L.map(K=>K.pipe((0,xe.s)(1),(0,Re.Z)(ya)))).pipe((0,pe.T)(K=>{for(const P of K)if(!0!==P){if(P===ya)return ya;if(!1===P||ce(P))return P}return!0}),(0,Me.p)(K=>K!==ya),(0,xe.s)(1)))}function ce(L){return St(L)||L instanceof ko}function nc(L){return(0,I.F)((0,Xt.M)(K=>{if("boolean"!=typeof K)throw bl(0,K)}),(0,pe.T)(K=>!0===K))}class us{segmentGroup;constructor(K){this.segmentGroup=K||null}}class Us extends Error{urlTree;constructor(K){super(),this.urlTree=K}}function Ua(L){return(0,N.$)(new us(L))}class xl{urlSerializer;urlTree;constructor(K,P){this.urlSerializer=K,this.urlTree=P}lineralizeSegments(K,P){let X=[],he=P.root;for(;;){if(X=X.concat(he.segments),0===he.numberOfChildren)return(0,y.of)(X);if(he.numberOfChildren>1||!he.children[Ge])return(0,N.$)(new i.wOt(4e3,!1));he=he.children[Ge]}}applyRedirectCommands(K,P,X,he,We){if("string"!=typeof P){const vn=P,{queryParams:nn,fragment:pr,routeConfig:ri,url:hi,outlet:io,params:as,data:Ko,title:Cs}=he,Wr=(0,i.N4e)(We,()=>vn({params:as,data:Ko,queryParams:nn,fragment:pr,routeConfig:ri,url:hi,outlet:io,title:Cs}));if(Wr instanceof ke)throw new Us(Wr);P=Wr}const Ct=this.applyRedirectCreateUrlTree(P,this.urlSerializer.parse(P),K,X);if("/"===P[0])throw new Us(Ct);return Ct}applyRedirectCreateUrlTree(K,P,X,he){const We=this.createSegmentGroup(K,P.root,X,he);return new ke(We,this.createQueryParams(P.queryParams,this.urlTree.queryParams),P.fragment)}createQueryParams(K,P){const X={};return Object.entries(K).forEach(([he,We])=>{if("string"==typeof We&&":"===We[0]){const vn=We.substring(1);X[he]=P[vn]}else X[he]=We}),X}createSegmentGroup(K,P,X,he){const We=this.createSegments(K,P.segments,X,he);let Ct={};return Object.entries(P.children).forEach(([vn,nn])=>{Ct[vn]=this.createSegmentGroup(K,nn,X,he)}),new B(We,Ct)}createSegments(K,P,X,he){return P.map(We=>":"===We.path[0]?this.findPosParam(K,We,he):this.findOrReturn(We,X))}findPosParam(K,P,X){const he=X[P.path.substring(1)];if(!he)throw new i.wOt(4001,!1);return he}findOrReturn(K,P){let X=0;for(const he of P){if(he.path===K.path)return P.splice(X),he;X++}return K}}const la={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function $a(L,K,P,X,he){const We=vc(L,K,P);return We.matched?(X=function ws(L,K){return L.providers&&!L._injector&&(L._injector=(0,i.Ol2)(L.providers,K,`Route: ${L.path}`)),L._injector??K}(K,X),function wl(L,K,P,X){const he=K.canMatch;if(!he||0===he.length)return(0,y.of)(!0);const We=he.map(Ct=>{const vn=hr(Ct,L);return Qt(function Hl(L){return L&&Ei(L.canMatch)}(vn)?vn.canMatch(K,P):(0,i.N4e)(L,()=>vn(K,P)))});return(0,y.of)(We).pipe(ue(),nc())}(X,K,P).pipe((0,pe.T)(Ct=>!0===Ct?We:{...la}))):(0,y.of)(We)}function vc(L,K,P){if("**"===K.path)return function Ou(L){return{matched:!0,parameters:L.length>0?Nt(L).parameters:{},consumedSegments:L,remainingSegments:[],positionalParamSegments:{}}}(P);if(""===K.path)return"full"===K.pathMatch&&(L.hasChildren()||P.length>0)?{...la}:{matched:!0,consumedSegments:[],remainingSegments:P,parameters:{},positionalParamSegments:{}};const he=(K.matcher||Ze)(P,L,K);if(!he)return{...la};const We={};Object.entries(he.posParams??{}).forEach(([vn,nn])=>{We[vn]=nn.path});const Ct=he.consumed.length>0?{...We,...he.consumed[he.consumed.length-1].parameters}:We;return{matched:!0,consumedSegments:he.consumed,remainingSegments:P.slice(he.consumed.length),parameters:Ct,positionalParamSegments:he.posParams??{}}}function rc(L,K,P,X){return P.length>0&&function ba(L,K,P){return P.some(X=>Cl(L,K,X)&&Gi(X)!==Ge)}(L,P,X)?{segmentGroup:new B(K,Wl(X,new B(P,L.children))),slicedSegments:[]}:0===P.length&&function qa(L,K,P){return P.some(X=>Cl(L,K,X))}(L,P,X)?{segmentGroup:new B(L.segments,ja(L,P,X,L.children)),slicedSegments:P}:{segmentGroup:new B(L.segments,L.children),slicedSegments:P}}function ja(L,K,P,X){const he={};for(const We of P)if(Cl(L,K,We)&&!X[Gi(We)]){const Ct=new B([],{});he[Gi(We)]=Ct}return{...X,...he}}function Wl(L,K){const P={};P[Ge]=K;for(const X of L)if(""===X.path&&Gi(X)!==Ge){const he=new B([],{});P[Gi(X)]=he}return P}function Cl(L,K,P){return(!(L.hasChildren()||K.length>0)||"full"!==P.pathMatch)&&""===P.path}class co{}class Jo{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(K,P,X,he,We,Ct,vn){this.injector=K,this.configLoader=P,this.rootComponentType=X,this.config=he,this.urlTree=We,this.paramsInheritanceStrategy=Ct,this.urlSerializer=vn,this.applyRedirects=new xl(this.urlSerializer,this.urlTree)}noMatchError(K){return new i.wOt(4002,`'${K.segmentGroup}'`)}recognize(){const K=rc(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(K).pipe((0,pe.T)(({children:P,rootSnapshot:X})=>{const he=new to(X,P),We=new ks("",he),Ct=function qe(L,K,P=null,X=null){return Wt(Dt(L),K,P,X)}(X,[],this.urlTree.queryParams,this.urlTree.fragment);return Ct.queryParams=this.urlTree.queryParams,We.url=this.urlSerializer.serialize(Ct),{state:We,tree:Ct}}))}match(K){const P=new os([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),Ge,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,K,Ge,P).pipe((0,pe.T)(X=>({children:X,rootSnapshot:P})),(0,ln.W)(X=>{if(X instanceof Us)return this.urlTree=X.urlTree,this.match(X.urlTree.root);throw X instanceof us?this.noMatchError(X):X}))}processSegmentGroup(K,P,X,he,We){return 0===X.segments.length&&X.hasChildren()?this.processChildren(K,P,X,We):this.processSegment(K,P,X,X.segments,he,!0,We).pipe((0,pe.T)(Ct=>Ct instanceof to?[Ct]:[]))}processChildren(K,P,X,he){const We=[];for(const Ct of Object.keys(X.children))"primary"===Ct?We.unshift(Ct):We.push(Ct);return(0,c.H)(We).pipe((0,at.H)(Ct=>{const vn=X.children[Ct],nn=function Ys(L,K){const P=L.filter(X=>Gi(X)===K);return P.push(...L.filter(X=>Gi(X)!==K)),P}(P,Ct);return this.processSegmentGroup(K,nn,vn,Ct,he)}),function $n(L,K){return(0,le.N)((0,yn.S)(L,K,arguments.length>=2,!0))}((Ct,vn)=>(Ct.push(...vn),Ct)),Ie(null),function Qe(L,K){const P=arguments.length>=2;return X=>X.pipe(L?(0,Me.p)((he,We)=>L(he,We,X)):ht.D,bn(1),P?Ie(K):$e(()=>new T.G))}(),(0,Ce.Z)(Ct=>{if(null===Ct)return Ua(X);const vn=Dl(Ct);return function _c(L){L.sort((K,P)=>K.value.outlet===Ge?-1:P.value.outlet===Ge?1:K.value.outlet.localeCompare(P.value.outlet))}(vn),(0,y.of)(vn)}))}processSegment(K,P,X,he,We,Ct,vn){return(0,c.H)(P).pipe((0,at.H)(nn=>this.processSegmentAgainstRoute(nn._injector??K,P,nn,X,he,We,Ct,vn).pipe((0,ln.W)(pr=>{if(pr instanceof us)return(0,y.of)(null);throw pr}))),vt(nn=>!!nn),(0,ln.W)(nn=>{if(Qa(nn))return function Ro(L,K,P){return 0===K.length&&!L.children[P]}(X,he,We)?(0,y.of)(new co):Ua(X);throw nn}))}processSegmentAgainstRoute(K,P,X,he,We,Ct,vn,nn){return Gi(X)===Ct||Ct!==Ge&&Cl(he,We,X)?void 0===X.redirectTo?this.matchSegmentAgainstRoute(K,he,X,We,Ct,nn):this.allowRedirects&&vn?this.expandSegmentAgainstRouteUsingRedirect(K,he,P,X,We,Ct,nn):Ua(he):Ua(he)}expandSegmentAgainstRouteUsingRedirect(K,P,X,he,We,Ct,vn){const{matched:nn,parameters:pr,consumedSegments:ri,positionalParamSegments:hi,remainingSegments:io}=vc(P,he,We);if(!nn)return Ua(P);"string"==typeof he.redirectTo&&"/"===he.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const as=new os(We,pr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Sl(he),Gi(he),he.component??he._loadedComponent??null,he,Gl(he)),Ko=Eo(as,vn,this.paramsInheritanceStrategy);as.params=Object.freeze(Ko.params),as.data=Object.freeze(Ko.data);const Cs=this.applyRedirects.applyRedirectCommands(ri,he.redirectTo,hi,as,K);return this.applyRedirects.lineralizeSegments(he,Cs).pipe((0,Ce.Z)(Wr=>this.processSegment(K,X,P,Wr.concat(io),Ct,!1,vn)))}matchSegmentAgainstRoute(K,P,X,he,We,Ct){const vn=$a(P,X,he,K);return"**"===X.path&&(P.children={}),vn.pipe((0,Te.n)(nn=>nn.matched?this.getChildConfig(K=X._injector??K,X,he).pipe((0,Te.n)(({routes:pr})=>{const ri=X._loadedInjector??K,{parameters:hi,consumedSegments:io,remainingSegments:as}=nn,Ko=new os(io,hi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Sl(X),Gi(X),X.component??X._loadedComponent??null,X,Gl(X)),Cs=Eo(Ko,Ct,this.paramsInheritanceStrategy);Ko.params=Object.freeze(Cs.params),Ko.data=Object.freeze(Cs.data);const{segmentGroup:Wr,slicedSegments:hl}=rc(P,io,as,pr);if(0===hl.length&&Wr.hasChildren())return this.processChildren(ri,pr,Wr,Ko).pipe((0,pe.T)(sc=>new to(Ko,sc)));if(0===pr.length&&0===hl.length)return(0,y.of)(new to(Ko,[]));const Ec=Gi(X)===We;return this.processSegment(ri,pr,Wr,hl,Ec?Ge:We,!0,Ko).pipe((0,pe.T)(sc=>new to(Ko,sc instanceof to?[sc]:[])))})):Ua(P)))}getChildConfig(K,P,X){return P.children?(0,y.of)({routes:P.children,injector:K}):P.loadChildren?void 0!==P._loadedRoutes?(0,y.of)({routes:P._loadedRoutes,injector:P._loadedInjector}):function ku(L,K,P,X){const he=K.canLoad;if(void 0===he||0===he.length)return(0,y.of)(!0);const We=he.map(Ct=>{const vn=hr(Ct,L);return Qt(function ho(L){return L&&Ei(L.canLoad)}(vn)?vn.canLoad(K,P):(0,i.N4e)(L,()=>vn(K,P)))});return(0,y.of)(We).pipe(ue(),nc())}(K,P,X).pipe((0,Ce.Z)(he=>he?this.configLoader.loadChildren(K,P).pipe((0,Xt.M)(We=>{P._loadedRoutes=We.routes,P._loadedInjector=We.injector})):function El(){return(0,N.$)(Xa(!1,pt.GuardRejected))}())):(0,y.of)({routes:[],injector:K})}}function al(L){const K=L.value.routeConfig;return K&&""===K.path}function Dl(L){const K=[],P=new Set;for(const X of L){if(!al(X)){K.push(X);continue}const he=K.find(We=>X.value.routeConfig===We.value.routeConfig);void 0!==he?(he.children.push(...X.children),P.add(he)):K.push(X)}for(const X of P){const he=Dl(X.children);K.push(new to(X.value,he))}return K.filter(X=>!P.has(X))}function Sl(L){return L.data||{}}function Gl(L){return L.resolve||{}}function Ui(L){const K=L.children.map(P=>Ui(P)).flat();return[L,...K]}function no(L){return(0,Te.n)(K=>{const P=L(K);return P?(0,c.H)(P).pipe((0,pe.T)(()=>K)):(0,y.of)(K)})}let $o=(()=>{class L{buildTitle(P){let X,he=P.root;for(;void 0!==he;)X=this.getResolvedTitleForRoute(he)??X,he=he.children.find(We=>We.outlet===Ge);return X}getResolvedTitleForRoute(P){return P.data[He]}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>(0,i.WQX)(es),providedIn:"root"})}return L})(),es=(()=>{class L extends $o{title;constructor(P){super(),this.title=P}updateTitle(P){const X=this.buildTitle(P);void 0!==X&&this.title.setTitle(X)}static \u0275fac=function(X){return new(X||L)(i.KVO(dt.hE))};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();const Po=new i.nKC("",{providedIn:"root",factory:()=>({})});let Fr=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275cmp=i.VBU({type:L,selectors:[["ng-component"]],decls:1,vars:0,template:function(X,he){1&X&&i.nrm(0,"router-outlet")},dependencies:[Qo],encapsulation:2})}return L})();function fo(L){const K=L.children&&L.children.map(fo),P=K?{...L,children:K}:{...L};return!P.component&&!P.loadComponent&&(K||P.loadChildren)&&P.outlet&&P.outlet!==Ge&&(P.component=Fr),P}const Os=new i.nKC("");let Rr=(()=>{class L{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=(0,i.WQX)(i.Ql9);loadComponent(P){if(this.componentLoaders.get(P))return this.componentLoaders.get(P);if(P._loadedComponent)return(0,y.of)(P._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(P);const X=Qt(P.loadComponent()).pipe((0,pe.T)(Va),(0,Xt.M)(We=>{this.onLoadEndListener&&this.onLoadEndListener(P),P._loadedComponent=We}),(0,ze.j)(()=>{this.componentLoaders.delete(P)})),he=new Z.G(X,()=>new ne.B).pipe((0,Fe.B)());return this.componentLoaders.set(P,he),he}loadChildren(P,X){if(this.childrenLoaders.get(X))return this.childrenLoaders.get(X);if(X._loadedRoutes)return(0,y.of)({routes:X._loadedRoutes,injector:X._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(X);const We=function po(L,K,P,X){return Qt(L.loadChildren()).pipe((0,pe.T)(Va),(0,Ce.Z)(he=>he instanceof i.Co$||Array.isArray(he)?(0,y.of)(he):(0,c.H)(K.compileModuleAsync(he))),(0,pe.T)(he=>{X&&X(L);let We,Ct,vn=!1;return Array.isArray(he)?(Ct=he,!0):(We=he.create(P).injector,Ct=We.get(Os,[],{optional:!0,self:!0}).flat()),{routes:Ct.map(fo),injector:We}}))}(X,this.compiler,P,this.onLoadEndListener).pipe((0,ze.j)(()=>{this.childrenLoaders.delete(X)})),Ct=new Z.G(We,()=>new ne.B).pipe((0,Fe.B)());return this.childrenLoaders.set(X,Ct),Ct}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();function Va(L){return function ic(L){return L&&"object"==typeof L&&"default"in L}(L)?L.default:L}let ro=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>(0,i.WQX)(Ha),providedIn:"root"})}return L})(),Ha=(()=>{class L{shouldProcessUrl(P){return!0}extract(P){return P}merge(P,X){return P}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();const Di=new i.nKC(""),$s=new i.nKC("");function ca(L,K,P){const X=L.get($s),he=L.get(me.qQ);return L.get(i.SKi).runOutsideAngular(()=>{if(!he.startViewTransition||X.skipNextTransition)return X.skipNextTransition=!1,new Promise(pr=>setTimeout(pr));let We;const Ct=new Promise(pr=>{We=pr}),vn=he.startViewTransition(()=>(We(),function No(L){return new Promise(K=>{(0,i.mal)({read:()=>setTimeout(K)},{injector:L})})}(L))),{onViewTransitionCreated:nn}=X;return nn&&(0,i.N4e)(L,()=>nn({transition:vn,from:K,to:P})),Ct})}const $=new i.nKC("");let de=(()=>{class L{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new ne.B;transitionAbortSubject=new ne.B;configLoader=(0,i.WQX)(Rr);environmentInjector=(0,i.WQX)(i.uvJ);urlSerializer=(0,i.WQX)(ot);rootContexts=(0,i.WQX)(ns);location=(0,i.WQX)(me.aZ);inputBindingEnabled=null!==(0,i.WQX)(ao,{optional:!0});titleStrategy=(0,i.WQX)($o);options=(0,i.WQX)(Po,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=(0,i.WQX)(ro);createViewTransition=(0,i.WQX)(Di,{optional:!0});navigationErrorHandler=(0,i.WQX)($,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>(0,y.of)(void 0);rootComponentType=null;constructor(){this.configLoader.onLoadEndListener=he=>this.events.next(new mr(he)),this.configLoader.onLoadStartListener=he=>this.events.next(new kr(he))}complete(){this.transitions?.complete()}handleNavigationRequest(P){const X=++this.navigationId;this.transitions?.next({...this.transitions.value,...P,id:X})}setupNavigations(P,X,he){return this.transitions=new w.t({id:0,currentUrlTree:X,currentRawUrl:X,extractedUrl:this.urlHandlingStrategy.extract(X),urlAfterRedirects:this.urlHandlingStrategy.extract(X),rawUrl:X,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:ct,restoredState:null,currentSnapshot:he.snapshot,targetSnapshot:null,currentRouterState:he,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Me.p)(We=>0!==We.id),(0,pe.T)(We=>({...We,extractedUrl:this.urlHandlingStrategy.extract(We.rawUrl)})),(0,Te.n)(We=>{let Ct=!1,vn=!1;return(0,y.of)(We).pipe((0,Te.n)(nn=>{if(this.navigationId>We.id)return this.cancelNavigationTransition(We,"",pt.SupersededByNewNavigation),G.w;this.currentTransition=We,this.currentNavigation={id:nn.id,initialUrl:nn.rawUrl,extractedUrl:nn.extractedUrl,targetBrowserUrl:"string"==typeof nn.extras.browserUrl?this.urlSerializer.parse(nn.extras.browserUrl):nn.extras.browserUrl,trigger:nn.source,extras:nn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const pr=!P.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!pr&&"reload"!==(nn.extras.onSameUrlNavigation??P.onSameUrlNavigation)){const hi="";return this.events.next(new un(nn.id,this.urlSerializer.serialize(nn.rawUrl),hi,$t.IgnoredSameUrlNavigation)),nn.resolve(!1),G.w}if(this.urlHandlingStrategy.shouldProcessUrl(nn.rawUrl))return(0,y.of)(nn).pipe((0,Te.n)(hi=>{const io=this.transitions?.getValue();return this.events.next(new et(hi.id,this.urlSerializer.serialize(hi.extractedUrl),hi.source,hi.restoredState)),io!==this.transitions?.getValue()?G.w:Promise.resolve(hi)}),function xa(L,K,P,X,he,We){return(0,Ce.Z)(Ct=>function wa(L,K,P,X,he,We,Ct="emptyOnly"){return new Jo(L,K,P,X,he,Ct,We).recognize()}(L,K,P,X,Ct.extractedUrl,he,We).pipe((0,pe.T)(({state:vn,tree:nn})=>({...Ct,targetSnapshot:vn,urlAfterRedirects:nn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,P.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,Xt.M)(hi=>{We.targetSnapshot=hi.targetSnapshot,We.urlAfterRedirects=hi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:hi.urlAfterRedirects};const io=new Sn(hi.id,this.urlSerializer.serialize(hi.extractedUrl),this.urlSerializer.serialize(hi.urlAfterRedirects),hi.targetSnapshot);this.events.next(io)}));if(pr&&this.urlHandlingStrategy.shouldProcessUrl(nn.currentRawUrl)){const{id:hi,extractedUrl:io,source:as,restoredState:Ko,extras:Cs}=nn,Wr=new et(hi,this.urlSerializer.serialize(io),as,Ko);this.events.next(Wr);const hl=Io(this.rootComponentType).snapshot;return this.currentTransition=We={...nn,targetSnapshot:hl,urlAfterRedirects:io,extras:{...Cs,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=io,(0,y.of)(We)}{const hi="";return this.events.next(new un(nn.id,this.urlSerializer.serialize(nn.extractedUrl),hi,$t.IgnoredByUrlHandlingStrategy)),nn.resolve(!1),G.w}}),(0,Xt.M)(nn=>{const pr=new kn(nn.id,this.urlSerializer.serialize(nn.extractedUrl),this.urlSerializer.serialize(nn.urlAfterRedirects),nn.targetSnapshot);this.events.next(pr)}),(0,pe.T)(nn=>(this.currentTransition=We={...nn,guards:hn(nn.targetSnapshot,nn.currentSnapshot,this.rootContexts)},We)),function Q(L,K){return(0,Ce.Z)(P=>{const{targetSnapshot:X,currentSnapshot:he,guards:{canActivateChecks:We,canDeactivateChecks:Ct}}=P;return 0===Ct.length&&0===We.length?(0,y.of)({...P,guardsResult:!0}):function Le(L,K,P,X){return(0,c.H)(L).pipe((0,Ce.Z)(he=>function Ba(L,K,P,X,he){const We=K&&K.routeConfig?K.routeConfig.canDeactivate:null;if(!We||0===We.length)return(0,y.of)(!0);const Ct=We.map(vn=>{const nn=Ni(K)??he,pr=hr(vn,nn);return Qt(function Oo(L){return L&&Ei(L.canDeactivate)}(pr)?pr.canDeactivate(L,K,P,X):(0,i.N4e)(nn,()=>pr(L,K,P,X))).pipe(vt())});return(0,y.of)(Ct).pipe(ue())}(he.component,he.route,P,K,X)),vt(he=>!0!==he,!0))}(Ct,X,he,L).pipe((0,Ce.Z)(vn=>vn&&function ui(L){return"boolean"==typeof L}(vn)?function Ut(L,K,P,X){return(0,c.H)(K).pipe((0,at.H)(he=>(0,S.x)(function ni(L,K){return null!==L&&K&&K(new bi(L)),(0,y.of)(!0)}(he.route.parent,X),function vr(L,K){return null!==L&&K&&K(new gr(L)),(0,y.of)(!0)}(he.route,X),function qo(L,K,P){const X=K[K.length-1],We=K.slice(0,K.length-1).reverse().map(Ct=>function ur(L){const K=L.routeConfig?L.routeConfig.canActivateChild:null;return K&&0!==K.length?{node:L,guards:K}:null}(Ct)).filter(Ct=>null!==Ct).map(Ct=>(0,A.v)(()=>{const vn=Ct.guards.map(nn=>{const pr=Ni(Ct.node)??P,ri=hr(nn,pr);return Qt(function Ho(L){return L&&Ei(L.canActivateChild)}(ri)?ri.canActivateChild(X,L):(0,i.N4e)(pr,()=>ri(X,L))).pipe(vt())});return(0,y.of)(vn).pipe(ue())}));return(0,y.of)(We).pipe(ue())}(L,he.path,P),function Do(L,K,P){const X=K.routeConfig?K.routeConfig.canActivate:null;if(!X||0===X.length)return(0,y.of)(!0);const he=X.map(We=>(0,A.v)(()=>{const Ct=Ni(K)??P,vn=hr(We,Ct);return Qt(function lo(L){return L&&Ei(L.canActivate)}(vn)?vn.canActivate(K,L):(0,i.N4e)(Ct,()=>vn(K,L))).pipe(vt())}));return(0,y.of)(he).pipe(ue())}(L,he.route,P))),vt(he=>!0!==he,!0))}(X,We,L,K):(0,y.of)(vn)),(0,pe.T)(vn=>({...P,guardsResult:vn})))})}(this.environmentInjector,nn=>this.events.next(nn)),(0,Xt.M)(nn=>{if(We.guardsResult=nn.guardsResult,nn.guardsResult&&"boolean"!=typeof nn.guardsResult)throw bl(0,nn.guardsResult);const pr=new Un(nn.id,this.urlSerializer.serialize(nn.extractedUrl),this.urlSerializer.serialize(nn.urlAfterRedirects),nn.targetSnapshot,!!nn.guardsResult);this.events.next(pr)}),(0,Me.p)(nn=>!!nn.guardsResult||(this.cancelNavigationTransition(nn,"",pt.GuardRejected),!1)),no(nn=>{if(nn.guards.canActivateChecks.length)return(0,y.of)(nn).pipe((0,Xt.M)(pr=>{const ri=new Jn(pr.id,this.urlSerializer.serialize(pr.extractedUrl),this.urlSerializer.serialize(pr.urlAfterRedirects),pr.targetSnapshot);this.events.next(ri)}),(0,Te.n)(pr=>{let ri=!1;return(0,y.of)(pr).pipe(function ds(L,K){return(0,Ce.Z)(P=>{const{targetSnapshot:X,guards:{canActivateChecks:he}}=P;if(!he.length)return(0,y.of)(P);const We=new Set(he.map(nn=>nn.route)),Ct=new Set;for(const nn of We)if(!Ct.has(nn))for(const pr of Ui(nn))Ct.add(pr);let vn=0;return(0,c.H)(Ct).pipe((0,at.H)(nn=>We.has(nn)?function zn(L,K,P,X){const he=L.routeConfig,We=L._resolve;return void 0!==he?.title&&!sa(he)&&(We[He]=he.title),function Ar(L,K,P,X){const he=fn(L);if(0===he.length)return(0,y.of)({});const We={};return(0,c.H)(he).pipe((0,Ce.Z)(Ct=>function So(L,K,P,X){const he=Ni(K)??X,We=hr(L,he);return Qt(We.resolve?We.resolve(K,P):(0,i.N4e)(he,()=>We(K,P)))}(L[Ct],K,P,X).pipe(vt(),(0,Xt.M)(vn=>{if(vn instanceof ko)throw bl(new Tt,vn);We[Ct]=vn}))),bn(1),(0,bt.u)(We),(0,ln.W)(Ct=>Qa(Ct)?G.w:(0,N.$)(Ct)))}(We,L,K,X).pipe((0,pe.T)(Ct=>(L._resolvedData=Ct,L.data=Eo(L,L.parent,P).resolve,null)))}(nn,X,L,K):(nn.data=Eo(nn,nn.parent,L).resolve,(0,y.of)(void 0))),(0,Xt.M)(()=>vn++),bn(1),(0,Ce.Z)(nn=>vn===Ct.size?(0,y.of)(P):G.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,Xt.M)({next:()=>ri=!0,complete:()=>{ri||this.cancelNavigationTransition(pr,"",pt.NoDataFromResolver)}}))}),(0,Xt.M)(pr=>{const ri=new sr(pr.id,this.urlSerializer.serialize(pr.extractedUrl),this.urlSerializer.serialize(pr.urlAfterRedirects),pr.targetSnapshot);this.events.next(ri)}))}),no(nn=>{const pr=ri=>{const hi=[];ri.routeConfig?.loadComponent&&!ri.routeConfig._loadedComponent&&hi.push(this.configLoader.loadComponent(ri.routeConfig).pipe((0,Xt.M)(io=>{ri.component=io}),(0,pe.T)(()=>{})));for(const io of ri.children)hi.push(...pr(io));return hi};return(0,C.z)(pr(nn.targetSnapshot.root)).pipe(Ie(null),(0,xe.s)(1))}),no(()=>this.afterPreactivation()),(0,Te.n)(()=>{const{currentSnapshot:nn,targetSnapshot:pr}=We,ri=this.createViewTransition?.(this.environmentInjector,nn.root,pr.root);return ri?(0,c.H)(ri).pipe((0,pe.T)(()=>We)):(0,y.of)(We)}),(0,pe.T)(nn=>{const pr=function _o(L,K,P){const X=Zo(L,K._root,P?P._root:void 0);return new Es(X,K)}(P.routeReuseStrategy,nn.targetSnapshot,nn.currentRouterState);return this.currentTransition=We={...nn,targetRouterState:pr},this.currentNavigation.targetRouterState=pr,We}),(0,Xt.M)(()=>{this.events.next(new $r)}),((L,K,P,X)=>(0,pe.T)(he=>(new Xe(K,he.targetRouterState,he.currentRouterState,P,X).activate(L),he)))(this.rootContexts,P.routeReuseStrategy,nn=>this.events.next(nn),this.inputBindingEnabled),(0,xe.s)(1),(0,Xt.M)({next:nn=>{Ct=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Oe(nn.id,this.urlSerializer.serialize(nn.extractedUrl),this.urlSerializer.serialize(nn.urlAfterRedirects))),this.titleStrategy?.updateTitle(nn.targetRouterState.snapshot),nn.resolve(!0)},complete:()=>{Ct=!0}}),(0,Ft.Q)(this.transitionAbortSubject.pipe((0,Xt.M)(nn=>{throw nn}))),(0,ze.j)(()=>{!Ct&&!vn&&this.cancelNavigationTransition(We,"",pt.SupersededByNewNavigation),this.currentTransition?.id===We.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,ln.W)(nn=>{if(vn=!0,Y(nn))this.events.next(new Mt(We.id,this.urlSerializer.serialize(We.extractedUrl),nn.message,nn.cancellationCode)),function Ya(L){return Y(L)&&St(L.url)}(nn)?this.events.next(new Ki(nn.url,nn.navigationBehaviorOptions)):We.resolve(!1);else{const pr=new Cn(We.id,this.urlSerializer.serialize(We.extractedUrl),nn,We.targetSnapshot??void 0);try{const ri=(0,i.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(pr));if(!(ri instanceof ko))throw this.events.next(pr),nn;{const{message:hi,cancellationCode:io}=bl(0,ri);this.events.next(new Mt(We.id,this.urlSerializer.serialize(We.extractedUrl),hi,io)),this.events.next(new Ki(ri.redirectTo,ri.navigationBehaviorOptions))}}catch(ri){this.options.resolveNavigationPromiseOnError?We.resolve(!1):We.reject(ri)}}return G.w}))}))}cancelNavigationTransition(P,X,he){const We=new Mt(P.id,this.urlSerializer.serialize(P.extractedUrl),X,he);this.events.next(We),P.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const P=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),X=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return P.toString()!==X?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();function q(L){return L!==ct}let _e=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>(0,i.WQX)(_n),providedIn:"root"})}return L})();class nt{shouldDetach(K){return!1}store(K,P){}shouldAttach(K){return!1}retrieve(K){return null}shouldReuseRoute(K,P){return K.routeConfig===P.routeConfig}}let _n=(()=>{class L extends nt{static \u0275fac=(()=>{let P;return function(he){return(P||(P=i.xGo(L)))(he||L)}})();static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})(),On=(()=>{class L{static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:()=>(0,i.WQX)(Cr),providedIn:"root"})}return L})(),Cr=(()=>{class L extends On{location=(0,i.WQX)(me.aZ);urlSerializer=(0,i.WQX)(ot);options=(0,i.WQX)(Po,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=(0,i.WQX)(ro);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new ke;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=Io(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(P){return this.location.subscribe(X=>{"popstate"===X.type&&P(X.url,X.state)})}handleRouterEvent(P,X){if(P instanceof et)this.stateMemento=this.createStateMemento();else if(P instanceof un)this.rawUrlTree=X.initialUrl;else if(P instanceof Sn){if("eager"===this.urlUpdateStrategy&&!X.extras.skipLocationChange){const he=this.urlHandlingStrategy.merge(X.finalUrl,X.initialUrl);this.setBrowserUrl(X.targetBrowserUrl??he,X)}}else P instanceof $r?(this.currentUrlTree=X.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(X.finalUrl,X.initialUrl),this.routerState=X.targetRouterState,"deferred"===this.urlUpdateStrategy&&!X.extras.skipLocationChange&&this.setBrowserUrl(X.targetBrowserUrl??this.rawUrlTree,X)):P instanceof Mt&&(P.code===pt.GuardRejected||P.code===pt.NoDataFromResolver)?this.restoreHistory(X):P instanceof Cn?this.restoreHistory(X,!0):P instanceof Oe&&(this.lastSuccessfulId=P.id,this.currentPageId=this.browserPageId)}setBrowserUrl(P,X){const he=P instanceof ke?this.urlSerializer.serialize(P):P;if(this.location.isCurrentPathEqualTo(he)||X.extras.replaceUrl){const Ct={...X.extras.state,...this.generateNgRouterState(X.id,this.browserPageId)};this.location.replaceState(he,"",Ct)}else{const We={...X.extras.state,...this.generateNgRouterState(X.id,this.browserPageId+1)};this.location.go(he,"",We)}}restoreHistory(P,X=!1){if("computed"===this.canceledNavigationResolution){const We=this.currentPageId-this.browserPageId;0!==We?this.location.historyGo(We):this.currentUrlTree===P.finalUrl&&0===We&&(this.resetState(P),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(X&&this.resetState(P),this.resetUrlToCurrentUrlTree())}resetState(P){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,P.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(P,X){return"computed"===this.canceledNavigationResolution?{navigationId:P,\u0275routerPageId:X}:{navigationId:P}}static \u0275fac=(()=>{let P;return function(he){return(P||(P=i.xGo(L)))(he||L)}})();static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();var Yr=function(L){return L[L.COMPLETE=0]="COMPLETE",L[L.FAILED=1]="FAILED",L[L.REDIRECTING=2]="REDIRECTING",L}(Yr||{});function Li(L,K){L.events.pipe((0,Me.p)(P=>P instanceof Oe||P instanceof Mt||P instanceof Cn||P instanceof un),(0,pe.T)(P=>P instanceof Oe||P instanceof un?Yr.COMPLETE:P instanceof Mt&&(P.code===pt.Redirect||P.code===pt.SupersededByNewNavigation)?Yr.REDIRECTING:Yr.FAILED),(0,Me.p)(P=>P!==Yr.REDIRECTING),(0,xe.s)(1)).subscribe(()=>{K()})}const Hr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Qr=(()=>{class L{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=(0,i.WQX)(i.H3F);stateManager=(0,i.WQX)(On);options=(0,i.WQX)(Po,{optional:!0})||{};pendingTasks=(0,i.WQX)(i.TgB);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=(0,i.WQX)(de);urlSerializer=(0,i.WQX)(ot);location=(0,i.WQX)(me.aZ);urlHandlingStrategy=(0,i.WQX)(ro);_events=new ne.B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=(0,i.WQX)(_e);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(0,i.WQX)(Os,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!(0,i.WQX)(ao,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:P=>{this.console.warn(P)}}),this.subscribeToNavigationEvents()}eventsSubscription=new be.yU;subscribeToNavigationEvents(){const P=this.navigationTransitions.events.subscribe(X=>{try{const he=this.navigationTransitions.currentTransition,We=this.navigationTransitions.currentNavigation;if(null!==he&&null!==We)if(this.stateManager.handleRouterEvent(X,We),X instanceof Mt&&X.code!==pt.Redirect&&X.code!==pt.SupersededByNewNavigation)this.navigated=!0;else if(X instanceof Oe)this.navigated=!0;else if(X instanceof Ki){const Ct=X.navigationBehaviorOptions,vn=this.urlHandlingStrategy.merge(X.url,he.currentRawUrl),nn={browserUrl:he.extras.browserUrl,info:he.extras.info,skipLocationChange:he.extras.skipLocationChange,replaceUrl:he.extras.replaceUrl||"eager"===this.urlUpdateStrategy||q(he.source),...Ct};this.scheduleNavigation(vn,ct,null,nn,{resolve:he.resolve,reject:he.reject,promise:he.promise})}(function Fo(L){return!(L instanceof $r||L instanceof Ki)})(X)&&this._events.next(X)}catch(he){this.navigationTransitions.transitionAbortSubject.next(he)}});this.eventsSubscription.add(P)}resetRootComponentType(P){this.routerState.root.component=P,this.navigationTransitions.rootComponentType=P}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ct,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((P,X)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(P,"popstate",X)},0)})}navigateToSyncWithBrowser(P,X,he){const We={replaceUrl:!0},Ct=he?.navigationId?he:null;if(he){const nn={...he};delete nn.navigationId,delete nn.\u0275routerPageId,0!==Object.keys(nn).length&&(We.state=nn)}const vn=this.parseUrl(P);this.scheduleNavigation(vn,X,Ct,We)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(P){this.config=P.map(fo),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(P,X={}){const{relativeTo:he,queryParams:We,fragment:Ct,queryParamsHandling:vn,preserveFragment:nn}=X,pr=nn?this.currentUrlTree.fragment:Ct;let hi,ri=null;switch(vn??this.options.defaultQueryParamsHandling){case"merge":ri={...this.currentUrlTree.queryParams,...We};break;case"preserve":ri=this.currentUrlTree.queryParams;break;default:ri=We||null}null!==ri&&(ri=this.removeEmptyProps(ri));try{hi=Dt(he?he.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof P[0]||"/"!==P[0][0])&&(P=[]),hi=this.currentUrlTree.root}return Wt(hi,P,ri,pr??null)}navigateByUrl(P,X={skipLocationChange:!1}){const he=St(P)?P:this.parseUrl(P),We=this.urlHandlingStrategy.merge(he,this.rawUrlTree);return this.scheduleNavigation(We,ct,null,X)}navigate(P,X={skipLocationChange:!1}){return function di(L){for(let K=0;K(null!=We&&(X[he]=We),X),{})}scheduleNavigation(P,X,he,We,Ct){if(this.disposed)return Promise.resolve(!1);let vn,nn,pr;Ct?(vn=Ct.resolve,nn=Ct.reject,pr=Ct.promise):pr=new Promise((hi,io)=>{vn=hi,nn=io});const ri=this.pendingTasks.add();return Li(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ri))}),this.navigationTransitions.handleNavigationRequest({source:X,restoredState:he,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:P,extras:We,resolve:vn,reject:nn,promise:pr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),pr.catch(hi=>Promise.reject(hi))}static \u0275fac=function(X){return new(X||L)};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})(),Wo=(()=>{class L{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ne.B;constructor(P,X,he,We,Ct,vn){this.router=P,this.route=X,this.tabIndexAttribute=he,this.renderer=We,this.el=Ct,this.locationStrategy=vn;const nn=Ct.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===nn||"area"===nn,this.isAnchorElement?this.subscription=P.events.subscribe(pr=>{pr instanceof Oe&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(P){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",P)}ngOnChanges(P){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(P){null==P?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=St(P)||Array.isArray(P)?P:[P],this.setTabIndexIfNotOnNativeEl("0"))}onClick(P,X,he,We,Ct){const vn=this.urlTree;return!!(null===vn||this.isAnchorElement&&(0!==P||X||he||We||Ct||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(vn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const P=this.urlTree;this.href=null!==P&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(P)):null;const X=null===this.href?null:(0,i.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",X)}applyAttributeValue(P,X){const he=this.renderer,We=this.el.nativeElement;null!==X?he.setAttribute(We,P,X):he.removeAttribute(We,P)}get urlTree(){return null===this.routerLinkInput?null:St(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(X){return new(X||L)(i.rXU(Qr),i.rXU(tr),i.kS0("tabindex"),i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(me.hb))};static \u0275dir=i.FsC({type:L,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(X,he){1&X&&i.bIt("click",function(Ct){return he.onClick(Ct.button,Ct.ctrlKey,Ct.shiftKey,Ct.altKey,Ct.metaKey)}),2&X&&i.BMQ("target",he.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",i.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",i.L39],replaceUrl:[2,"replaceUrl","replaceUrl",i.L39],routerLink:"routerLink"},features:[i.GFd,i.OA$]})}return L})(),hs=(()=>{class L{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new i.bkB;constructor(P,X,he,We,Ct){this.router=P,this.element=X,this.renderer=he,this.cdr=We,this.link=Ct,this.routerEventsSubscription=P.events.subscribe(vn=>{vn instanceof Oe&&this.update()})}ngAfterContentInit(){(0,y.of)(this.links.changes,(0,y.of)(null)).pipe((0,Ke.U)()).subscribe(P=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const P=[...this.links.toArray(),this.link].filter(X=>!!X).map(X=>X.onChanges);this.linkInputChangesSubscription=(0,c.H)(P).pipe((0,Ke.U)()).subscribe(X=>{this._isActive!==this.isLinkActive(this.router)(X)&&this.update()})}set routerLinkActive(P){const X=Array.isArray(P)?P:P.split(" ");this.classes=X.filter(he=>!!he)}ngOnChanges(P){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const P=this.hasActiveLinks();this.classes.forEach(X=>{P?this.renderer.addClass(this.element.nativeElement,X):this.renderer.removeClass(this.element.nativeElement,X)}),P&&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!==P&&(this._isActive=P,this.cdr.markForCheck(),this.isActiveChange.emit(P))})}isLinkActive(P){const X=function jo(L){return!!L.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return he=>{const We=he.urlTree;return!!We&&P.isActive(We,X)}}hasActiveLinks(){const P=this.isLinkActive(this.router);return this.link&&P(this.link)||this.links.some(P)}static \u0275fac=function(X){return new(X||L)(i.rXU(Qr),i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(i.gRc),i.rXU(Wo,8))};static \u0275dir=i.FsC({type:L,selectors:[["","routerLinkActive",""]],contentQueries:function(X,he,We){if(1&X&&i.wni(We,Wo,5),2&X){let Ct;i.mGM(Ct=i.lsd())&&(he.links=Ct)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[i.OA$]})}return L})();class Rs{}let Zs=(()=>{class L{router;injector;preloadingStrategy;loader;subscription;constructor(P,X,he,We,Ct){this.router=P,this.injector=he,this.preloadingStrategy=We,this.loader=Ct}setUpPreloading(){this.subscription=this.router.events.pipe((0,Me.p)(P=>P instanceof Oe),(0,at.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(P,X){const he=[];for(const We of X){We.providers&&!We._injector&&(We._injector=(0,i.Ol2)(We.providers,P,`Route: ${We.path}`));const Ct=We._injector??P,vn=We._loadedInjector??Ct;(We.loadChildren&&!We._loadedRoutes&&void 0===We.canLoad||We.loadComponent&&!We._loadedComponent)&&he.push(this.preloadConfig(Ct,We)),(We.children||We._loadedRoutes)&&he.push(this.processRoutes(vn,We.children??We._loadedRoutes))}return(0,c.H)(he).pipe((0,Ke.U)())}preloadConfig(P,X){return this.preloadingStrategy.preload(X,()=>{let he;he=X.loadChildren&&void 0===X.canLoad?this.loader.loadChildren(P,X):(0,y.of)(null);const We=he.pipe((0,Ce.Z)(Ct=>null===Ct?(0,y.of)(void 0):(X._loadedRoutes=Ct.routes,X._loadedInjector=Ct.injector,this.processRoutes(Ct.injector??P,Ct.routes))));if(X.loadComponent&&!X._loadedComponent){const Ct=this.loader.loadComponent(X);return(0,c.H)([We,Ct]).pipe((0,Ke.U)())}return We})}static \u0275fac=function(X){return new(X||L)(i.KVO(Qr),i.KVO(i.Ql9),i.KVO(i.uvJ),i.KVO(Rs),i.KVO(Rr))};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();const Da=new i.nKC("");let ll=(()=>{class L{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(P,X,he,We,Ct={}){this.urlSerializer=P,this.transitions=X,this.viewportScroller=he,this.zone=We,this.options=Ct,Ct.scrollPositionRestoration||="disabled",Ct.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(P=>{P instanceof et?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=P.navigationTrigger,this.restoredId=P.restoredState?P.restoredState.navigationId:0):P instanceof Oe?(this.lastId=P.id,this.scheduleScrollEvent(P,this.urlSerializer.parse(P.urlAfterRedirects).fragment)):P instanceof un&&P.code===$t.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(P,this.urlSerializer.parse(P.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(P=>{P instanceof vo&&(P.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(P.position):P.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(P.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(P,X){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new vo(P,"popstate"===this.lastSource?this.store[this.restoredId]:null,X))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(X){i.QTQ()};static \u0275prov=i.jDH({token:L,factory:L.\u0275fac})}return L})();function Tl(L,...K){return(0,i.EmA)([{provide:Os,multi:!0,useValue:L},[],{provide:tr,useFactory:cl,deps:[Qr]},{provide:i.iLQ,multi:!0,useFactory:Ao},K.map(P=>P.\u0275providers)])}function cl(L){return L.routerState.root}function ua(L,K){return{\u0275kind:L,\u0275providers:K}}function oc(L={}){return ua(4,[{provide:Da,useFactory:()=>{const P=(0,i.WQX)(me.Xr),X=(0,i.WQX)(i.SKi),he=(0,i.WQX)(de),We=(0,i.WQX)(ot);return new ll(We,he,P,X,L)}}])}function Ao(){const L=(0,i.WQX)(i.zZn);return K=>{const P=L.get(i.o8S);if(K!==P.components[0])return;const X=L.get(Qr),he=L.get(Ja);1===L.get(el)&&X.initialNavigation(),L.get(Ns,null,i.$GK.Optional)?.setUpPreloading(),L.get(Da,null,i.$GK.Optional)?.init(),X.resetRootComponentType(P.componentTypes[0]),he.closed||(he.next(),he.complete(),he.unsubscribe())}}const Ja=new i.nKC("",{factory:()=>new ne.B}),el=new i.nKC("",{providedIn:"root",factory:()=>1}),Ns=new i.nKC("");function Js(L){return ua(0,[{provide:Ns,useExisting:Zs},{provide:Rs,useExisting:L}])}function ou(L){return ua(9,[{provide:Di,useValue:ca},{provide:$s,useValue:{skipNextTransition:!!L?.skipInitialTransition,...L}}])}const bc=new i.nKC("ROUTER_FORROOT_GUARD"),da=[me.aZ,{provide:ot,useClass:Tt},Qr,ns,{provide:tr,useFactory:cl,deps:[Qr]},Rr,[]];let ul=(()=>{class L{constructor(P){}static forRoot(P,X){return{ngModule:L,providers:[da,[],{provide:Os,multi:!0,useValue:P},{provide:bc,useFactory:ha,deps:[[Qr,new i.Xx1,new i.kdw]]},X?.errorHandler?{provide:$,useValue:X.errorHandler}:[],{provide:Po,useValue:X||{}},X?.useHash?{provide:me.hb,useClass:me.fw}:{provide:me.hb,useClass:me.Sm},{provide:Da,useFactory:()=>{const L=(0,i.WQX)(me.Xr),K=(0,i.WQX)(i.SKi),P=(0,i.WQX)(Po),X=(0,i.WQX)(de),he=(0,i.WQX)(ot);return P.scrollOffset&&L.setOffset(P.scrollOffset),new ll(he,X,L,K,P)}},X?.preloadingStrategy?Js(X.preloadingStrategy).\u0275providers:[],X?.initialNavigation?dl(X):[],X?.bindToComponentInputs?ua(8,[ss,{provide:ao,useExisting:ss}]).\u0275providers:[],X?.enableViewTransitions?ou().\u0275providers:[],[{provide:Ru,useFactory:Ao},{provide:i.iLQ,multi:!0,useExisting:Ru}]]}}static forChild(P){return{ngModule:L,providers:[{provide:Os,multi:!0,useValue:P}]}}static \u0275fac=function(X){return new(X||L)(i.KVO(bc,8))};static \u0275mod=i.$C({type:L});static \u0275inj=i.G2t({})}return L})();function ha(L){return"guarded"}function dl(L){return["disabled"===L.initialNavigation?ua(3,[{provide:i.hnV,multi:!0,useFactory:()=>{const K=(0,i.WQX)(Qr);return()=>{K.setUpLocationChangeListener()}}},{provide:el,useValue:2}]).\u0275providers:[],"enabledBlocking"===L.initialNavigation?ua(2,[{provide:el,useValue:0},{provide:i.hnV,multi:!0,deps:[i.zZn],useFactory:K=>{const P=K.get(me.hj,Promise.resolve());return()=>P.then(()=>new Promise(X=>{const he=K.get(Qr),We=K.get(Ja);Li(he,()=>{X(!0)}),K.get(de).afterPreactivation=()=>(X(!0),We.closed?(0,y.of)(void 0):We),he.initialNavigation()}))}}]).\u0275providers:[]]}const Ru=new i.nKC("")},5766:(o,s,r)=>{"use strict";r.d(s,{My:()=>Re,aT:()=>le});const xe=Array.from({length:256},(Qe,bt)=>bt.toString(16).padStart(2,"0"));function Re(Qe){!function c(Qe,...bt){if(!function a(Qe){return Qe instanceof Uint8Array||ArrayBuffer.isView(Qe)&&"Uint8Array"===Qe.constructor.name}(Qe))throw new Error("Uint8Array expected");if(bt.length>0&&!bt.includes(Qe.length))throw new Error("Uint8Array expected of length "+bt+", got length="+Qe.length)}(Qe);let bt="";for(let ze=0;ze=Me._0&&Qe<=Me._9?Qe-Me._0:Qe>=Me.A&&Qe<=Me.F?Qe-(Me.A-10):Qe>=Me.a&&Qe<=Me.f?Qe-(Me.a-10):void 0}function le(Qe){if("string"!=typeof Qe)throw new Error("hex string expected, got "+typeof Qe);const bt=Qe.length,ze=bt/2;if(bt%2)throw new Error("hex string expected, got unpadded hex of length "+bt);const Fe=new Uint8Array(ze);for(let Ft=0,Ke=0;Ft{"use strict";function i(He){if(!Number.isSafeInteger(He))throw new Error(`Wrong integer: ${He}`)}function a(...He){const mt=(Rt,Jt)=>fn=>Rt(Jt(fn));return{encode:Array.from(He).reverse().reduce((Rt,Jt)=>Rt?mt(Rt,Jt.encode):Jt.encode,void 0),decode:He.reduce((Rt,Jt)=>Rt?mt(Rt,Jt.decode):Jt.decode,void 0)}}function c(He){return{encode:mt=>{if(!Array.isArray(mt)||mt.length&&"number"!=typeof mt[0])throw new Error("alphabet.encode input should be an array of numbers");return mt.map(se=>{if(i(se),se<0||se>=He.length)throw new Error(`Digit index outside alphabet: ${se} (alphabet: ${He.length})`);return He[se]})},decode:mt=>{if(!Array.isArray(mt)||mt.length&&"string"!=typeof mt[0])throw new Error("alphabet.decode input should be array of strings");return mt.map(se=>{if("string"!=typeof se)throw new Error(`alphabet.decode: not string element=${se}`);const Ze=He.indexOf(se);if(-1===Ze)throw new Error(`Unknown letter: "${se}". Allowed: ${He}`);return Ze})}}}function y(He=""){if("string"!=typeof He)throw new Error("join separator should be string");return{encode:mt=>{if(!Array.isArray(mt)||mt.length&&"string"!=typeof mt[0])throw new Error("join.encode input should be array of strings");for(let se of mt)if("string"!=typeof se)throw new Error(`join.encode: non-string input=${se}`);return mt.join(He)},decode:mt=>{if("string"!=typeof mt)throw new Error("join.decode input should be string");return mt.split(He)}}}function w(He,mt="="){if(i(He),"string"!=typeof mt)throw new Error("padding chr should be string");return{encode(se){if(!Array.isArray(se)||se.length&&"string"!=typeof se[0])throw new Error("padding.encode input should be array of strings");for(let Ze of se)if("string"!=typeof Ze)throw new Error(`padding.encode: non-string input=${Ze}`);for(;se.length*He%8;)se.push(mt);return se},decode(se){if(!Array.isArray(se)||se.length&&"string"!=typeof se[0])throw new Error("padding.encode input should be array of strings");for(let Rt of se)if("string"!=typeof Rt)throw new Error(`padding.decode: non-string input=${Rt}`);let Ze=se.length;if(Ze*He%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;Ze>0&&se[Ze-1]===mt;Ze--)if(!((Ze-1)*He%8))throw new Error("Invalid padding: string has too much padding");return se.slice(0,Ze)}}}function C(He){if("function"!=typeof He)throw new Error("normalize fn should be function");return{encode:mt=>mt,decode:mt=>He(mt)}}function T(He,mt,se){if(mt<2)throw new Error(`convertRadix: wrong from=${mt}, base cannot be less than 2`);if(se<2)throw new Error(`convertRadix: wrong to=${se}, base cannot be less than 2`);if(!Array.isArray(He))throw new Error("convertRadix: data should be array");if(!He.length)return[];let Ze=0;const Rt=[],Jt=Array.from(He);for(Jt.forEach(fn=>{if(i(fn),fn<0||fn>=mt)throw new Error(`Wrong integer: ${fn}`)});;){let fn=0,Gn=!0;for(let Nt=Ze;Nt$n,K3:()=>Re,Tq:()=>ht});const S=(He,mt)=>mt?S(mt,He%mt):He,A=(He,mt)=>He+(mt-S(He,mt));function I(He,mt,se,Ze){if(!Array.isArray(He))throw new Error("convertRadix2: data should be array");if(mt<=0||mt>32)throw new Error(`convertRadix2: wrong from=${mt}`);if(se<=0||se>32)throw new Error(`convertRadix2: wrong to=${se}`);if(A(mt,se)>32)throw new Error(`convertRadix2: carry overflow from=${mt} to=${se} carryBits=${A(mt,se)}`);let Rt=0,Jt=0;const fn=2**se-1,Gn=[];for(const Nt of He){if(i(Nt),Nt>=2**mt)throw new Error(`convertRadix2: invalid data word=${Nt} from=${mt}`);if(Rt=Rt<32)throw new Error(`convertRadix2: carry overflow pos=${Jt} from=${mt}`);for(Jt+=mt;Jt>=se;Jt-=se)Gn.push((Rt>>Jt-se&fn)>>>0);Rt&=2**Jt-1}if(Rt=Rt<=mt)throw new Error("Excess padding");if(!Ze&&Rt)throw new Error(`Non-zero padding: ${Rt}`);return Ze&&Jt>0&&Gn.push(Rt>>>0),Gn}function G(He,mt=!1){if(i(He),He<=0||He>32)throw new Error("radix2: bits should be in (0..32]");if(A(8,He)>32||A(He,8)>32)throw new Error("radix2: carry overflow");return{encode:se=>{if(!(se instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return I(Array.from(se),8,He,!mt)},decode:se=>{if(!Array.isArray(se)||se.length&&"number"!=typeof se[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(I(se,He,8,mt))}}}function Z(He){if("function"!=typeof He)throw new Error("unsafeWrapper fn should be function");return function(...mt){try{return He.apply(null,mt)}catch{}}}a(G(4),c("0123456789ABCDEF"),y("")),a(G(5),c("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),w(5),y(""));const Re=(a(G(5),c("0123456789ABCDEFGHIJKLMNOPQRSTUV"),w(5),y("")),a(G(5),c("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),y(""),C(He=>He.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),a(G(6),c("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),w(6),y(""))),Ce=(a(G(6),c("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),w(6),y("")),He=>a(function N(He){return i(He),{encode:mt=>{if(!(mt instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return T(Array.from(mt),256,He)},decode:mt=>{if(!Array.isArray(mt)||mt.length&&"number"!=typeof mt[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(T(mt,He,256))}}}(58),c(He),y(""))),le=Ce("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),ht=(Ce("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),Ce("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),He=>a(function ne(He,mt){if(i(He),"function"!=typeof mt)throw new Error("checksum fn should be function");return{encode(se){if(!(se instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const Ze=mt(se).slice(0,He),Rt=new Uint8Array(se.length+He);return Rt.set(se),Rt.set(Ze,se.length),Rt},decode(se){if(!(se instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const Ze=se.slice(0,-He),Rt=mt(Ze).slice(0,He),Jt=se.slice(-He);for(let fn=0;fnHe(He(mt))),le)),vt=a(c("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),y("")),at=[996825010,642813549,513874426,1027748829,705979059];function Xt(He){const mt=He>>25;let se=(33554431&He)<<5;for(let Ze=0;Ze>Ze&1)&&(se^=at[Ze]);return se}function ln(He,mt,se=1){const Ze=He.length;let Rt=1;for(let Jt=0;Jt126)throw new Error(`Invalid prefix (${He})`);Rt=Xt(Rt)^fn>>5}Rt=Xt(Rt);for(let Jt=0;JtXn)throw new TypeError(`Wrong string length: ${an.length} (${an}). Expected (8..${Xn})`);const En=an.toLowerCase();if(an!==En&&an!==an.toUpperCase())throw new Error("String must be lowercase or uppercase");const Gt=(an=En).lastIndexOf("1");if(0===Gt||-1===Gt)throw new Error('Letter "1" must be present between prefix and data only');const At=an.slice(0,Gt),Kt=an.slice(Gt+1);if(Kt.length<6)throw new Error("Data must be at least 6 characters long");const xn=vt.decode(Kt).slice(0,-6),Yn=ln(At,xn,mt);if(!Kt.endsWith(Yn))throw new Error(`Invalid checksum in ${an}: expected "${Yn}"`);return{prefix:At,words:xn}}return{encode:function fn(an,Xn,En=90){if("string"!=typeof an)throw new Error("bech32.encode prefix should be string, not "+typeof an);if(!Array.isArray(Xn)||Xn.length&&"number"!=typeof Xn[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof Xn);const Gt=an.length+7+Xn.length;if(!1!==En&&Gt>En)throw new TypeError(`Length ${Gt} exceeds limit ${En}`);return`${an=an.toLowerCase()}1${vt.encode(Xn)}${ln(an,Xn,mt)}`},decode:Gn,decodeToBytes:function Qt(an){const{prefix:Xn,words:En}=Gn(an,!1);return{prefix:Xn,words:En,bytes:Ze(En)}},decodeUnsafe:Z(Gn),fromWords:Ze,fromWordsUnsafe:Jt,toWords:Rt}}const $n=yn("bech32");yn("bech32m"),a(G(4),c("0123456789abcdef"),y(""),C(He=>{if("string"!=typeof He||He.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof He} with length ${He.length}`);return He.toLowerCase()}))},6568:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(4713),a=r(1860);const y=(0,i.A)(a.A,"Map")},7730:(o,s,r)=>{"use strict";r.d(s,{A:()=>it});var c=r(1319);const w=function y(ot,Tt){for(var In=ot.length;In--;)if((0,c.A)(ot[In][0],Tt))return In;return-1};var T=Array.prototype.splice;function me(ot){var Tt=-1,In=null==ot?0:ot.length;for(this.clear();++Tt-1},me.prototype.set=function ne(ot,Tt){var In=this.__data__,Vt=w(In,ot);return Vt<0?(++this.size,In.push([ot,Tt])):In[Vt][1]=Tt,this};const pe=me;var $e=r(6568);const vt=(0,r(4713).A)(Object,"create");var Qe=Object.prototype.hasOwnProperty;var Ft=Object.prototype.hasOwnProperty;function se(ot){var Tt=-1,In=null==ot?0:ot.length;for(this.clear();++Tt{"use strict";r.d(s,{A:()=>c});const c=r(1860).A.Symbol},6726:(o,s,r)=>{"use strict";r.d(s,{A:()=>N});var c=r(6513),y=r(3744),w=r(9377),C=r(8606),T=r(8885),A=Object.prototype.hasOwnProperty;const N=function I(G,Z){var ne=(0,y.A)(G),be=!ne&&(0,c.A)(G),me=!ne&&!be&&(0,w.A)(G),pe=!ne&&!be&&!me&&(0,T.A)(G),Te=ne||be||me||pe,xe=Te?function i(G,Z){for(var ne=-1,be=Array(G);++ne{"use strict";r.d(s,{A:()=>C});var i=r(1827),a=r(1319),y=Object.prototype.hasOwnProperty;const C=function w(T,S,A){var I=T[S];(!y.call(T,S)||!(0,a.A)(I,A)||void 0===A&&!(S in T))&&(0,i.A)(T,S,A)}},1827:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(4746);const c=function a(y,w,C){"__proto__"==w&&i.A?(0,i.A)(y,w,{configurable:!0,enumerable:!0,value:C,writable:!0}):y[w]=C}},5281:(o,s,r)=>{"use strict";r.d(s,{A:()=>me});var i=r(6944),a=Object.prototype,c=a.hasOwnProperty,y=a.toString,w=i.A?i.A.toStringTag:void 0;var A=Object.prototype.toString;var ne=i.A?i.A.toStringTag:void 0;const me=function be(pe){return null==pe?void 0===pe?"[object Undefined]":"[object Null]":ne&&ne in Object(pe)?function C(pe){var Te=c.call(pe,w),xe=pe[w];try{pe[w]=void 0;var Re=!0}catch{}var Me=y.call(pe);return Re&&(Te?pe[w]=xe:delete pe[w]),Me}(pe):function I(pe){return A.call(pe)}(pe)}},778:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){return function(y){return c(y)}}},9750:(o,s,r)=>{"use strict";r.d(s,{A:()=>w});const c=r(1860).A.Uint8Array,w=function y(C){var T=new C.constructor(C.byteLength);return new c(T).set(new c(C)),T}},9933:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(1860),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=a&&"object"==typeof module&&module&&!module.nodeType&&module,w=c&&c.exports===a?i.A.Buffer:void 0,C=w?w.allocUnsafe:void 0;const S=function T(A,I){if(I)return A.slice();var N=A.length,G=C?C(N):new A.constructor(N);return A.copy(G),G}},4314:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});var i=r(9750);const c=function a(y,w){var C=w?(0,i.A)(y.buffer):y.buffer;return new y.constructor(C,y.byteOffset,y.length)}},4528:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c,y){var w=-1,C=c.length;for(y||(y=Array(C));++w{"use strict";r.d(s,{A:()=>y});var i=r(1984),a=r(1827);const y=function c(w,C,T,S){var A=!T;T||(T={});for(var I=-1,N=C.length;++I{"use strict";r.d(s,{A:()=>c});var i=r(4713);const c=function(){try{var y=(0,i.A)(Object,"defineProperty");return y({},"",{}),y}catch{}}()},7133:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a="object"==typeof global&&global&&global.Object===Object&&global},4713:(o,s,r)=>{"use strict";r.d(s,{A:()=>Ce});var le,i=r(129),c=r(1860).A["__core-js_shared__"],w=(le=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+le:"";var S=r(554),A=r(8736),N=/^\[object .+?Constructor\]$/,me=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Te=function pe(le){return!(!(0,S.A)(le)||function C(le){return!!w&&w in le}(le))&&((0,i.A)(le)?me:N).test((0,A.A)(le))},Ce=function Me(le,ae){var Ie=function xe(le,ae){return le?.[ae]}(le,ae);return Te(Ie)?Ie:void 0}},8010:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});const c=(0,r(8992).A)(Object.getPrototypeOf,Object)},923:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(554),a=Object.create;const y=function(){function A(){}return function(I){if(!(0,i.A)(I))return{};if(a)return a(I);A.prototype=I;var N=new A;return A.prototype=void 0,N}}();var w=r(8010),C=r(5776);const S=function T(A){return"function"!=typeof A.constructor||(0,C.A)(A)?{}:y((0,w.A)(A))}},8606:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var a=/^(?:0|[1-9]\d*)$/;const y=function c(w,C){var T=typeof w;return!!(C=C??9007199254740991)&&("number"==T||"symbol"!=T&&a.test(w))&&w>-1&&w%1==0&&w{"use strict";r.d(s,{A:()=>c});var i=Object.prototype;const c=function a(y){var w=y&&y.constructor;return y===("function"==typeof w&&w.prototype||i)}},3340:(o,s,r)=>{"use strict";r.d(s,{A:()=>T});var i=r(7133),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=a&&"object"==typeof module&&module&&!module.nodeType&&module,w=c&&c.exports===a&&i.A.process;const T=function(){try{return c&&c.require&&c.require("util").types||w&&w.binding&&w.binding("util")}catch{}}()},8992:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c,y){return function(w){return c(y(w))}}},1860:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(7133),a="object"==typeof self&&self&&self.Object===Object&&self;const y=i.A||a||Function("return this")()},8736:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var a=Function.prototype.toString;const y=function c(w){if(null!=w){try{return a.call(w)}catch{}try{return w+""}catch{}}return""}},1319:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c,y){return c===y||c!=c&&y!=y}},7680:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){for(var y=-1,w=null==c?0:c.length,C={};++y{"use strict";r.d(s,{A:()=>I});var i=r(5281),a=r(2661);const w=function y(N){return(0,a.A)(N)&&"[object Arguments]"==(0,i.A)(N)};var C=Object.prototype,T=C.hasOwnProperty,S=C.propertyIsEnumerable;const I=w(function(){return arguments}())?w:function(N){return(0,a.A)(N)&&T.call(N,"callee")&&!S.call(N,"callee")}},3744:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=Array.isArray},1287:(o,s,r)=>{"use strict";r.d(s,{A:()=>y});var i=r(129),a=r(5481);const y=function c(w){return null!=w&&(0,a.A)(w.length)&&!(0,i.A)(w)}},9377:(o,s,r)=>{"use strict";r.d(s,{A:()=>I});var i=r(1860),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,w=y&&"object"==typeof module&&module&&!module.nodeType&&module,T=w&&w.exports===y?i.A.Buffer:void 0;const I=(T?T.isBuffer:void 0)||function a(){return!1}},129:(o,s,r)=>{"use strict";r.d(s,{A:()=>S});var i=r(5281),a=r(554);const S=function T(A){if(!(0,a.A)(A))return!1;var I=(0,i.A)(A);return"[object Function]"==I||"[object GeneratorFunction]"==I||"[object AsyncFunction]"==I||"[object Proxy]"==I}},5481:(o,s,r)=>{"use strict";r.d(s,{A:()=>c});const c=function a(y){return"number"==typeof y&&y>-1&&y%1==0&&y<=9007199254740991}},554:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){var y=typeof c;return null!=c&&("object"==y||"function"==y)}},2661:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});const a=function i(c){return null!=c&&"object"==typeof c}},8885:(o,s,r)=>{"use strict";r.d(s,{A:()=>bn});var i=r(5281),a=r(5481),c=r(2661),ht={};ht["[object Float32Array]"]=ht["[object Float64Array]"]=ht["[object Int8Array]"]=ht["[object Int16Array]"]=ht["[object Int32Array]"]=ht["[object Uint8Array]"]=ht["[object Uint8ClampedArray]"]=ht["[object Uint16Array]"]=ht["[object Uint32Array]"]=!0,ht["[object Arguments]"]=ht["[object Array]"]=ht["[object ArrayBuffer]"]=ht["[object Boolean]"]=ht["[object DataView]"]=ht["[object Date]"]=ht["[object Error]"]=ht["[object Function]"]=ht["[object Map]"]=ht["[object Number]"]=ht["[object Object]"]=ht["[object RegExp]"]=ht["[object Set]"]=ht["[object String]"]=ht["[object WeakMap]"]=!1;var Xt=r(778),ln=r(3340),yn=ln.A&&ln.A.isTypedArray;const bn=yn?(0,Xt.A)(yn):function vt(Qe){return(0,c.A)(Qe)&&(0,a.A)(Qe.length)&&!!ht[(0,i.A)(Qe)]}},133:(o,s,r)=>{"use strict";r.d(s,{A:()=>G});var i=r(6726),a=r(554),c=r(5776);var T=Object.prototype.hasOwnProperty;const A=function S(Z){if(!(0,a.A)(Z))return function y(Z){var ne=[];if(null!=Z)for(var be in Object(Z))ne.push(be);return ne}(Z);var ne=(0,c.A)(Z),be=[];for(var me in Z)"constructor"==me&&(ne||!T.call(Z,me))||be.push(me);return be};var I=r(1287);const G=function N(Z){return(0,I.A)(Z)?(0,i.A)(Z,!0):A(Z)}},2401:(o,s,r)=>{"use strict";r.d(s,{A:()=>In});var i=r(7730),a=r(1827),c=r(1319);const w=function y(Vt,dn,Pn){(void 0!==Pn&&!(0,c.A)(Vt[dn],Pn)||void 0===Pn&&!(dn in Vt))&&(0,a.A)(Vt,dn,Pn)},A=function C(Vt){return function(dn,Pn,Fn){for(var Bn=-1,cr=Object(dn),Jr=Fn(dn),Xr=Jr.length;Xr--;){var _t=Jr[Vt?Xr:++Bn];if(!1===Pn(cr[_t],_t,cr))break}return dn}}();var I=r(9933),N=r(4314),G=r(4528),Z=r(923),ne=r(6513),be=r(3744),me=r(1287),pe=r(2661);var Re=r(9377),Me=r(129),Ce=r(554),le=r(5281),ae=r(8010),ht=Function.prototype.toString,vt=Object.prototype.hasOwnProperty,at=ht.call(Object);var yn=r(8885);const bn=function $n(Vt,dn){if(("constructor"!==dn||"function"!=typeof Vt[dn])&&"__proto__"!=dn)return Vt[dn]};var Qe=r(7517),bt=r(133);const Ke=function Ft(Vt,dn,Pn,Fn,Bn,cr,Jr){var Xr=bn(Vt,Pn),_t=bn(dn,Pn),Bt=Jr.get(_t);if(Bt)w(Vt,Pn,Bt);else{var Ee=cr?cr(Xr,_t,Pn+"",Vt,dn,Jr):void 0,lt=void 0===Ee;if(lt){var Pe=(0,be.A)(_t),kt=!Pe&&(0,Re.A)(_t),ft=!Pe&&!kt&&(0,yn.A)(_t);Ee=_t,Pe||kt||ft?(0,be.A)(Xr)?Ee=Xr:function Te(Vt){return(0,pe.A)(Vt)&&(0,me.A)(Vt)}(Xr)?Ee=(0,G.A)(Xr):kt?(lt=!1,Ee=(0,I.A)(_t,!0)):ft?(lt=!1,Ee=(0,N.A)(_t,!0)):Ee=[]:function Xt(Vt){if(!(0,pe.A)(Vt)||"[object Object]"!=(0,le.A)(Vt))return!1;var dn=(0,ae.A)(Vt);if(null===dn)return!0;var Pn=vt.call(dn,"constructor")&&dn.constructor;return"function"==typeof Pn&&Pn instanceof Pn&&ht.call(Pn)==at}(_t)||(0,ne.A)(_t)?(Ee=Xr,(0,ne.A)(Xr)?Ee=function ze(Vt){return(0,Qe.A)(Vt,(0,bt.A)(Vt))}(Xr):(!(0,Ce.A)(Xr)||(0,Me.A)(Xr))&&(Ee=(0,Z.A)(_t))):lt=!1}lt&&(Jr.set(_t,Ee),Bn(Ee,_t,Fn,cr,Jr),Jr.delete(_t)),w(Vt,Pn,Ee)}},Ge=function dt(Vt,dn,Pn,Fn,Bn){Vt!==dn&&A(dn,function(cr,Jr){if(Bn||(Bn=new i.A),(0,Ce.A)(cr))Ke(Vt,dn,Jr,Pn,dt,Fn,Bn);else{var Xr=Fn?Fn(bn(Vt,Jr),cr,Jr+"",Vt,dn,Bn):void 0;void 0===Xr&&(Xr=cr),w(Vt,Jr,Xr)}},bt.A)},mt=function He(Vt){return Vt};var Rt=Math.max;const Nt=function Gn(Vt){return function(){return Vt}};var Qt=r(4746),At=Date.now;const tt=function Kt(Vt){var dn=0,Pn=0;return function(){var Fn=At(),Bn=16-(Fn-Pn);if(Pn=Fn,Bn>0){if(++dn>=800)return arguments[0]}else dn=0;return Vt.apply(void 0,arguments)}}(Qt.A?function(Vt,dn){return(0,Qt.A)(Vt,"toString",{configurable:!0,enumerable:!1,value:Nt(dn),writable:!0})}:mt),B=function ke(Vt,dn){return tt(function Jt(Vt,dn,Pn){return dn=Rt(void 0===dn?Vt.length-1:dn,0),function(){for(var Fn=arguments,Bn=-1,cr=Rt(Fn.length-dn,0),Jr=Array(cr);++Bn1?Pn[Bn-1]:void 0,Jr=Bn>2?Pn[2]:void 0;for(cr=Vt.length>3&&"function"==typeof cr?(Bn--,cr):void 0,Jr&&function j(Vt,dn,Pn){if(!(0,Ce.A)(Pn))return!1;var Fn=typeof dn;return!!("number"==Fn?(0,me.A)(Pn)&&(0,k.A)(dn,Pn.length):"string"==Fn&&dn in Pn)&&(0,c.A)(Pn[dn],Vt)}(Pn[0],Pn[1],Jr)&&(cr=Bn<3?void 0:cr,Bn=1),dn=Object(dn);++Fn{"use strict";__webpack_require__.d(__webpack_exports__,{Ts:()=>init,ql:()=>launch});var _home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(467),_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_awaitAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(6218),_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_wrapAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(600),BUILD={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},__defProp$1=Object.defineProperty,__export$1=(o,s)=>{for(var r in s)__defProp$1(o,r,{get:s[r],enumerable:!0})},hostRefs=new WeakMap,getHostRef=o=>hostRefs.get(o),registerHost=(o,s)=>hostRefs.set(o,{$flags$:0,$hostElement$:o,$cmpMeta$:s,$instanceValues$:new Map}),isMemberInElement=(o,s)=>s in o,consoleError=(o,s)=>(0,console.error)(o,s),styles=new Map,modeResolutionChain=[],SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}",XLINK_NS="http://www.w3.org/1999/xlink",win=typeof window<"u"?window:{},doc=win.document||{head:{}},H=win.HTMLElement||class{},plt={$flags$:0,$resourcesUrl$:"",jmp:o=>o(),raf:o=>requestAnimationFrame(o),ael:(o,s,r,i)=>o.addEventListener(s,r,i),rel:(o,s,r,i)=>o.removeEventListener(s,r,i),ce:(o,s)=>new CustomEvent(o,s)},supportsListenerOptions=(()=>{let o=!1;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get(){o=!0}}))}catch{}return o})(),promiseResolve=o=>Promise.resolve(o),supportsConstructableStylesheets=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),queuePending=!1,queueDomReads=[],queueDomWrites=[],queueTask=(o,s)=>r=>{o.push(r),queuePending||(queuePending=!0,s&&4&plt.$flags$?nextTick(flush):plt.raf(flush))},consume=o=>{for(let s=0;s{consume(queueDomReads),consume(queueDomWrites),(queuePending=queueDomReads.length>0)&&plt.raf(flush)},nextTick=o=>promiseResolve().then(o),writeTask=queueTask(queueDomWrites,!0),EMPTY_OBJ={},SVG_NS="http://www.w3.org/2000/svg",HTML_NS="http://www.w3.org/1999/xhtml",isDef=o=>null!=o,isComplexType=o=>"object"==(o=typeof o)||"function"===o;function queryNonceMetaTagContent(o){var s,r,i;return null!=(i=null==(r=null==(s=o.head)?void 0:s.querySelector('meta[name="csp-nonce"]'))?void 0:r.getAttribute("content"))?i:void 0}var result_exports={};__export$1(result_exports,{err:()=>err,map:()=>map,ok:()=>ok,unwrap:()=>unwrap$1,unwrapErr:()=>unwrapErr});var ok=o=>({isOk:!0,isErr:!1,value:o}),err=o=>({isOk:!1,isErr:!0,value:o});function map(o,s){if(o.isOk){const r=s(o.value);return r instanceof Promise?r.then(i=>ok(i)):ok(r)}if(o.isErr)return err(o.value);throw"should never get here"}var unwrap$1=o=>{if(o.isOk)return o.value;throw o.value},unwrapErr=o=>{if(o.isErr)return o.value;throw o.value},createTime=(o,s="")=>()=>{},h=(o,s,...r)=>{let i=null,a=null,c=null,y=!1,w=!1;const C=[],T=A=>{for(let I=0;IA[I]).join(" "))}}if("function"==typeof o)return o(null===s?{}:s,C,vdomFnUtils);const S=newVNode(o,null);return S.$attrs$=s,C.length>0&&(S.$children$=C),S.$key$=a,S.$name$=c,S},newVNode=(o,s)=>({$flags$:0,$tag$:o,$text$:s,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Host={},isHost=o=>o&&o.$tag$===Host,vdomFnUtils={forEach:(o,s)=>o.map(convertToPublic).forEach(s),map:(o,s)=>o.map(convertToPublic).map(s).map(convertToPrivate)},convertToPublic=o=>({vattrs:o.$attrs$,vchildren:o.$children$,vkey:o.$key$,vname:o.$name$,vtag:o.$tag$,vtext:o.$text$}),convertToPrivate=o=>{if("function"==typeof o.vtag){const r={...o.vattrs};return o.vkey&&(r.key=o.vkey),o.vname&&(r.name=o.vname),h(o.vtag,r,...o.vchildren||[])}const s=newVNode(o.vtag,o.vtext);return s.$attrs$=o.vattrs,s.$children$=o.vchildren,s.$key$=o.vkey,s.$name$=o.vname,s},computeMode=o=>modeResolutionChain.map(s=>s(o)).find(s=>!!s),parsePropertyValue=(o,s)=>null==o||isComplexType(o)?o:4&s?"false"!==o&&(""===o||!!o):2&s?parseFloat(o):1&s?String(o):o,getElement=o=>o,createEvent=(o,s,r)=>{const i=getElement(o);return{emit:a=>emitEvent(i,s,{bubbles:!!(4&r),composed:!!(2&r),cancelable:!!(1&r),detail:a})}},emitEvent=(o,s,r)=>{const i=plt.ce(s,r);return o.dispatchEvent(i),i},rootAppliedStyles=new WeakMap,registerStyle=(o,s,r)=>{let i=styles.get(o);supportsConstructableStylesheets&&r?(i=i||new CSSStyleSheet,"string"==typeof i?i=s:i.replaceSync(s)):i=s,styles.set(o,i)},addStyle=(o,s,r)=>{var i;const a=getScopeId(s,r),c=styles.get(a);if(o=11===o.nodeType?o:doc,c)if("string"==typeof c){let y,w=rootAppliedStyles.get(o=o.head||o);if(w||rootAppliedStyles.set(o,w=new Set),!w.has(a)){{y=doc.createElement("style"),y.innerHTML=c;const C=null!=(i=plt.$nonce$)?i:queryNonceMetaTagContent(doc);null!=C&&y.setAttribute("nonce",C),(!(1&s.$flags$)||1&s.$flags$&&"HEAD"!==o.nodeName)&&o.insertBefore(y,o.querySelector("link"))}4&s.$flags$&&(y.innerHTML+=SLOT_FB_CSS),w&&w.add(a)}}else o.adoptedStyleSheets.includes(c)||(o.adoptedStyleSheets=[...o.adoptedStyleSheets,c]);return a},attachStyles=o=>{const s=o.$cmpMeta$,r=o.$hostElement$,i=s.$flags$,a=createTime("attachStyles",s.$tagName$),c=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),s,o.$modeName$);10&i&&2&i&&(r["s-sc"]=c,r.classList.add(c+"-h"),2&i&&r.classList.add(c+"-s")),a()},getScopeId=(o,s)=>"sc-"+(s&&32&o.$flags$?o.$tagName$+"-"+s:o.$tagName$),setAccessor=(o,s,r,i,a,c)=>{if(r!==i){let y=isMemberInElement(o,s),w=s.toLowerCase();if("class"===s){const C=o.classList,T=parseClassList(r),S=parseClassList(i);C.remove(...T.filter(A=>A&&!S.includes(A))),C.add(...S.filter(A=>A&&!T.includes(A)))}else if("style"===s){for(const C in r)i&&null!=i[C]||(C.includes("-")?o.style.removeProperty(C):o.style[C]="");for(const C in i)r&&i[C]===r[C]||(C.includes("-")?o.style.setProperty(C,i[C]):o.style[C]=i[C])}else if("key"!==s)if("ref"===s)i&&i(o);else if(o.__lookupSetter__(s)||"o"!==s[0]||"n"!==s[1]){const C=isComplexType(i);if((y||C&&null!==i)&&!a)try{if(o.tagName.includes("-"))o[s]=i;else{const S=i??"";"list"===s?y=!1:null!=r&&o[s]==S||(o[s]=S)}}catch{}let T=!1;w!==(w=w.replace(/^xlink\:?/,""))&&(s=w,T=!0),null==i||!1===i?!1===i&&""!==o.getAttribute(s)||(T?o.removeAttributeNS(XLINK_NS,s):o.removeAttribute(s)):(!y||4&c||a)&&!C&&(i=!0===i?"":i,T?o.setAttributeNS(XLINK_NS,s,i):o.setAttribute(s,i))}else if(s="-"===s[2]?s.slice(3):isMemberInElement(win,w)?w.slice(2):w[2]+s.slice(3),r||i){const C=s.endsWith(CAPTURE_EVENT_SUFFIX);s=s.replace(CAPTURE_EVENT_REGEX,""),r&&plt.rel(o,s,r,C),i&&plt.ael(o,s,i,C)}}},parseClassListRegex=/\s/,parseClassList=o=>o?o.split(parseClassListRegex):[],CAPTURE_EVENT_SUFFIX="Capture",CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$"),updateElement=(o,s,r)=>{const i=11===s.$elm$.nodeType&&s.$elm$.host?s.$elm$.host:s.$elm$,a=o&&o.$attrs$||EMPTY_OBJ,c=s.$attrs$||EMPTY_OBJ;for(const y of sortedAttrNames(Object.keys(a)))y in c||setAccessor(i,y,a[y],void 0,r,s.$flags$);for(const y of sortedAttrNames(Object.keys(c)))setAccessor(i,y,a[y],c[y],r,s.$flags$)},scopeId,contentRef,hostTagName;function sortedAttrNames(o){return o.includes("ref")?[...o.filter(s=>"ref"!==s),"ref"]:o}var useNativeShadowDom=!1,checkSlotFallbackVisibility=!1,checkSlotRelocate=!1,isSvgMode=!1,createElm=(o,s,r,i)=>{var a;const c=s.$children$[r];let y,w,C,T=0;if(useNativeShadowDom||(checkSlotRelocate=!0,"slot"===c.$tag$&&(scopeId&&i.classList.add(scopeId+"-s"),c.$flags$|=c.$children$?2:1)),null!==c.$text$)y=c.$elm$=doc.createTextNode(c.$text$);else if(1&c.$flags$)y=c.$elm$=doc.createTextNode("");else{if(isSvgMode||(isSvgMode="svg"===c.$tag$),y=c.$elm$=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,!useNativeShadowDom&&BUILD.slotRelocation&&2&c.$flags$?"slot-fb":c.$tag$),isSvgMode&&"foreignObject"===c.$tag$&&(isSvgMode=!1),updateElement(null,c,isSvgMode),y.getRootNode().querySelector("body")&&BUILD.scoped&&isDef(scopeId)&&y["s-si"]!==scopeId&&y.classList.add(y["s-si"]=scopeId),updateElementScopeIds(y,i),c.$children$)for(T=0;T{plt.$flags$|=1;const r=Array.from(o.childNodes);if(o["s-sr"]&&BUILD.experimentalSlotFixes){let i=o;for(;i=i.nextSibling;)i&&i["s-sn"]===o["s-sn"]&&i["s-sh"]===hostTagName&&r.push(i)}for(let i=r.length-1;i>=0;i--){const a=r[i];a["s-hn"]!==hostTagName&&a["s-ol"]&&(insertBefore(parentReferenceNode(a),a,referenceNode(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,checkSlotRelocate=!0),s&&putBackInOriginalLocation(a,s)}plt.$flags$&=-2},addVnodes=(o,s,r,i,a,c)=>{let y,w=o["s-cr"]&&o["s-cr"].parentNode||o;for(w.shadowRoot&&w.tagName===hostTagName&&(w=w.shadowRoot);a<=c;++a)i[a]&&(y=createElm(null,r,a,o),y&&(i[a].$elm$=y,insertBefore(w,y,referenceNode(s))))},removeVnodes=(o,s,r)=>{for(let i=s;i<=r;++i){const a=o[i];if(a){const c=a.$elm$;nullifyVNodeRefs(a),c&&(checkSlotFallbackVisibility=!0,c["s-ol"]?c["s-ol"].remove():putBackInOriginalLocation(c,!0),c.remove())}}},updateChildren=(o,s,r,i,a=!1)=>{let c,y,w=0,C=0,T=0,S=0,A=s.length-1,I=s[0],N=s[A],G=i.length-1,Z=i[0],ne=i[G];for(;w<=A&&C<=G;)if(null==I)I=s[++w];else if(null==N)N=s[--A];else if(null==Z)Z=i[++C];else if(null==ne)ne=i[--G];else if(isSameVnode(I,Z,a))patch(I,Z,a),I=s[++w],Z=i[++C];else if(isSameVnode(N,ne,a))patch(N,ne,a),N=s[--A],ne=i[--G];else if(isSameVnode(I,ne,a))"slot"!==I.$tag$&&"slot"!==ne.$tag$||putBackInOriginalLocation(I.$elm$.parentNode,!1),patch(I,ne,a),insertBefore(o,I.$elm$,N.$elm$.nextSibling),I=s[++w],ne=i[--G];else if(isSameVnode(N,Z,a))"slot"!==I.$tag$&&"slot"!==ne.$tag$||putBackInOriginalLocation(N.$elm$.parentNode,!1),patch(N,Z,a),insertBefore(o,N.$elm$,I.$elm$),N=s[--A],Z=i[++C];else{for(T=-1,S=w;S<=A;++S)if(s[S]&&null!==s[S].$key$&&s[S].$key$===Z.$key$){T=S;break}T>=0?(y=s[T],y.$tag$!==Z.$tag$?c=createElm(s&&s[C],r,T,o):(patch(y,Z,a),s[T]=void 0,c=y.$elm$),Z=i[++C]):(c=createElm(s&&s[C],r,C,o),Z=i[++C]),c&&insertBefore(parentReferenceNode(I.$elm$),c,referenceNode(I.$elm$))}w>A?addVnodes(o,null==i[G+1]?null:i[G+1].$elm$,r,i,C,G):C>G&&removeVnodes(s,w,A)},isSameVnode=(o,s,r=!1)=>!(o.$tag$!==s.$tag$||("slot"===o.$tag$?"$nodeId$"in o&&r&&8!==o.$elm$.nodeType||o.$name$!==s.$name$:!r&&o.$key$!==s.$key$)),referenceNode=o=>o&&o["s-ol"]||o,parentReferenceNode=o=>(o["s-ol"]?o["s-ol"]:o).parentNode,patch=(o,s,r=!1)=>{const i=s.$elm$=o.$elm$,a=o.$children$,c=s.$children$,y=s.$tag$,w=s.$text$;let C;null===w?(isSvgMode="svg"===y||"foreignObject"!==y&&isSvgMode,("slot"!==y||useNativeShadowDom)&&updateElement(o,s,isSvgMode),null!==a&&null!==c?updateChildren(i,a,s,c,r):null!==c?(null!==o.$text$&&(i.textContent=""),addVnodes(i,null,s,c,0,c.length-1)):!r&&BUILD.updatable&&null!==a&&removeVnodes(a,0,a.length-1),isSvgMode&&"svg"===y&&(isSvgMode=!1)):(C=i["s-cr"])?C.parentNode.textContent=w:o.$text$!==w&&(i.data=w)},updateFallbackSlotVisibility=o=>{const s=o.childNodes;for(const r of s)if(1===r.nodeType){if(r["s-sr"]){const i=r["s-sn"];r.hidden=!1;for(const a of s)if(a!==r)if(a["s-hn"]!==r["s-hn"]||""!==i){if(1===a.nodeType&&(i===a.getAttribute("slot")||i===a["s-sn"])||3===a.nodeType&&i===a["s-sn"]){r.hidden=!0;break}}else if(1===a.nodeType||3===a.nodeType&&""!==a.textContent.trim()){r.hidden=!0;break}}updateFallbackSlotVisibility(r)}},relocateNodes=[],markSlotContentForRelocation=o=>{let s,r,i;for(const a of o.childNodes){if(a["s-sr"]&&(s=a["s-cr"])&&s.parentNode){r=s.parentNode.childNodes;const c=a["s-sn"];for(i=r.length-1;i>=0;i--)if(s=r[i],!s["s-cn"]&&!s["s-nr"]&&s["s-hn"]!==a["s-hn"]&&!BUILD.experimentalSlotFixes)if(isNodeLocatedInSlot(s,c)){let y=relocateNodes.find(w=>w.$nodeToRelocate$===s);checkSlotFallbackVisibility=!0,s["s-sn"]=s["s-sn"]||c,y?(y.$nodeToRelocate$["s-sh"]=a["s-hn"],y.$slotRefNode$=a):(s["s-sh"]=a["s-hn"],relocateNodes.push({$slotRefNode$:a,$nodeToRelocate$:s})),s["s-sr"]&&relocateNodes.map(w=>{isNodeLocatedInSlot(w.$nodeToRelocate$,s["s-sn"])&&(y=relocateNodes.find(C=>C.$nodeToRelocate$===s),y&&!w.$slotRefNode$&&(w.$slotRefNode$=y.$slotRefNode$))})}else relocateNodes.some(y=>y.$nodeToRelocate$===s)||relocateNodes.push({$nodeToRelocate$:s})}1===a.nodeType&&markSlotContentForRelocation(a)}},isNodeLocatedInSlot=(o,s)=>1===o.nodeType?null===o.getAttribute("slot")&&""===s||o.getAttribute("slot")===s:o["s-sn"]===s||""===s,nullifyVNodeRefs=o=>{o.$attrs$&&o.$attrs$.ref&&o.$attrs$.ref(null),o.$children$&&o.$children$.map(nullifyVNodeRefs)},insertBefore=(o,s,r)=>{const i=o?.insertBefore(s,r);return updateElementScopeIds(s,o),i},findScopeIds=o=>{const s=[];return o&&s.push(...o["s-scs"]||[],o["s-si"],o["s-sc"],...findScopeIds(o.parentElement)),s},updateElementScopeIds=(o,s,r=!1)=>{var i;if(o&&s&&1===o.nodeType){const a=new Set(findScopeIds(s).filter(Boolean));if(a.size&&(null==(i=o.classList)||i.add(...o["s-scs"]=[...a]),o["s-ol"]||r))for(const c of Array.from(o.childNodes))updateElementScopeIds(c,o,!0)}},renderVdom=(o,s,r=!1)=>{var i,a,c,y,w;const C=o.$hostElement$,T=o.$cmpMeta$,S=o.$vnode$||newVNode(null,null),A=isHost(s)?s:h(null,null,s);if(hostTagName=C.tagName,T.$attrsToReflect$&&(A.$attrs$=A.$attrs$||{},T.$attrsToReflect$.map(([I,N])=>A.$attrs$[N]=C[I])),r&&A.$attrs$)for(const I of Object.keys(A.$attrs$))C.hasAttribute(I)&&!["key","ref","style","class"].includes(I)&&(A.$attrs$[I]=C[I]);if(A.$tag$=null,A.$flags$|=4,o.$vnode$=A,A.$elm$=S.$elm$=C.shadowRoot||C,scopeId=C["s-sc"],useNativeShadowDom=!!(1&T.$flags$),contentRef=C["s-cr"],checkSlotFallbackVisibility=!1,patch(S,A,r),plt.$flags$|=1,checkSlotRelocate){markSlotContentForRelocation(A.$elm$);for(const I of relocateNodes){const N=I.$nodeToRelocate$;if(!N["s-ol"]){const G=doc.createTextNode("");G["s-nr"]=N,insertBefore(N.parentNode,N["s-ol"]=G,N)}}for(const I of relocateNodes){const N=I.$nodeToRelocate$,G=I.$slotRefNode$;if(G){const Z=G.parentNode;let ne=G.nextSibling;{let be=null==(i=N["s-ol"])?void 0:i.previousSibling;for(;be;){let me=null!=(a=be["s-nr"])?a:null;if(me&&me["s-sn"]===N["s-sn"]&&Z===me.parentNode){for(me=me.nextSibling;me===N||me?.["s-sr"];)me=me?.nextSibling;if(!me||!me["s-nr"]){ne=me;break}}be=be.previousSibling}}(!ne&&Z!==N.parentNode||N.nextSibling!==ne)&&N!==ne&&(!N["s-hn"]&&N["s-ol"]&&(N["s-hn"]=N["s-ol"].parentNode.nodeName),insertBefore(Z,N,ne),1===N.nodeType&&(N.hidden=null!=(c=N["s-ih"])&&c)),N&&"function"==typeof G["s-rf"]&&G["s-rf"](N)}else 1===N.nodeType&&(r&&(N["s-ih"]=null!=(y=N.hidden)&&y),N.hidden=!0)}}if(checkSlotFallbackVisibility&&updateFallbackSlotVisibility(A.$elm$),plt.$flags$&=-2,relocateNodes.length=0,BUILD.experimentalScopedSlotChanges&&2&T.$flags$)for(const I of A.$elm$.childNodes)I["s-hn"]===hostTagName||I["s-sh"]||(r&&null==I["s-ih"]&&(I["s-ih"]=null!=(w=I.hidden)&&w),I.hidden=!0);contentRef=void 0},attachToAncestor=(o,s)=>{},scheduleUpdate=(o,s)=>(o.$flags$|=16,attachToAncestor(o,o.$ancestorComponent$),writeTask(()=>dispatchHooks(o,s))),dispatchHooks=(o,s)=>{const r=o.$hostElement$,i=createTime("scheduleUpdate",o.$cmpMeta$.$tagName$),a=r;if(!a)throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let c;return c=safeCall(a,s?"componentWillLoad":"componentWillUpdate"),c=enqueue(c,()=>safeCall(a,"componentWillRender")),i(),enqueue(c,()=>updateComponent(o,a,s))},enqueue=(o,s)=>isPromisey(o)?o.then(s).catch(r=>{console.error(r),s()}):s(),isPromisey=o=>o instanceof Promise||o&&o.then&&"function"==typeof o.then,updateComponent=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r,i){const a=s.$hostElement$,c=createTime("update",s.$cmpMeta$.$tagName$);i&&attachStyles(s);const y=createTime("render",s.$cmpMeta$.$tagName$);callRender(s,r,a,i),y(),c(),postUpdateComponent(s)});return function(r,i,a){return o.apply(this,arguments)}}(),renderingRef=null,callRender=(o,s,r,i)=>{try{renderingRef=s,s=s.render&&s.render(),o.$flags$&=-17,o.$flags$|=2,(BUILD.hasRenderFn||BUILD.reflect)&&(BUILD.vdomRender||BUILD.reflect)&&(BUILD.hydrateServerSide||renderVdom(o,s,i))}catch(a){consoleError(a,o.$hostElement$)}return renderingRef=null,null},getRenderingRef=()=>renderingRef,postUpdateComponent=o=>{const r=o.$hostElement$,i=createTime("postUpdate",o.$cmpMeta$.$tagName$),a=r;safeCall(a,"componentDidRender"),64&o.$flags$?(safeCall(a,"componentDidUpdate"),i()):(o.$flags$|=64,safeCall(a,"componentDidLoad"),i())},forceUpdate=o=>{{const s=getHostRef(o),r=s.$hostElement$.isConnected;return r&&2==(18&s.$flags$)&&scheduleUpdate(s,!1),r}},safeCall=(o,s,r)=>{if(o&&o[s])try{return o[s](r)}catch(i){consoleError(i)}},getValue=(o,s)=>getHostRef(o).$instanceValues$.get(s),setValue=(o,s,r,i)=>{const a=getHostRef(o),c=o,y=a.$instanceValues$.get(s),w=a.$flags$,C=c;r=parsePropertyValue(r,i.$members$[s][0]);const T=Number.isNaN(y)&&Number.isNaN(r);if(r!==y&&!T){if(a.$instanceValues$.set(s,r),i.$watchers$&&128&w){const S=i.$watchers$[s];S&&S.map(A=>{try{C[A](r,y,s)}catch(I){consoleError(I,c)}})}if(2==(18&w)){if(C.componentShouldUpdate&&!1===C.componentShouldUpdate(r,y,s))return;scheduleUpdate(a,!1)}}},proxyComponent=(o,s,r)=>{var i,a;const c=o.prototype;if(s.$members$||s.$watchers$||o.watchers){o.watchers&&!s.$watchers$&&(s.$watchers$=o.watchers);const y=Object.entries(null!=(i=s.$members$)?i:{});y.map(([w,[C]])=>{(31&C||32&C)&&Object.defineProperty(c,w,{get(){return getValue(this,w)},set(T){setValue(this,w,T,s)},configurable:!0,enumerable:!0})});{const w=new Map;c.attributeChangedCallback=function(C,T,S){plt.jmp(()=>{var A;const I=w.get(C);if(this.hasOwnProperty(I))S=this[I],delete this[I];else{if(c.hasOwnProperty(I)&&"number"==typeof this[I]&&this[I]==S)return;if(null==I){const N=getHostRef(this),G=N?.$flags$;if(G&&!(8&G)&&128&G&&S!==T){const Z=this,ne=null==(A=s.$watchers$)?void 0:A[C];ne?.forEach(be=>{null!=Z[be]&&Z[be].call(Z,S,T,C)})}return}}this[I]=(null!==S||"boolean"!=typeof this[I])&&S})},o.observedAttributes=Array.from(new Set([...Object.keys(null!=(a=s.$watchers$)?a:{}),...y.filter(([C,T])=>15&T[0]).map(([C,T])=>{var S;const A=T[1]||C;return w.set(A,C),512&T[0]&&(null==(S=s.$attrsToReflect$)||S.push([C,A])),A})]))}}return o},initializeComponent=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r,i,a){let c;if(!(32&r.$flags$)&&(r.$flags$|=32,c=s.constructor,customElements.whenDefined(s.localName).then(()=>r.$flags$|=128),c&&c.style)){let y;"string"==typeof c.style?y=c.style:"string"!=typeof c.style&&(r.$modeName$=computeMode(s),r.$modeName$&&(y=c.style[r.$modeName$]));const w=getScopeId(i,r.$modeName$);if(!styles.has(w)){const C=createTime("registerStyles",i.$tagName$);registerStyle(w,y,!!(1&i.$flags$)),C()}}scheduleUpdate(r,!0)});return function(r,i,a,c){return o.apply(this,arguments)}}(),fireConnectedCallback=o=>{},connectedCallback=o=>{if(!(1&plt.$flags$)){const s=getHostRef(o),r=s.$cmpMeta$,i=createTime("connectedCallback",r.$tagName$);1&s.$flags$?(addHostEventListeners(o,s,r.$listeners$),s?.$lazyInstance$?fireConnectedCallback(s.$lazyInstance$):s?.$onReadyPromise$&&s.$onReadyPromise$.then(()=>fireConnectedCallback(s.$lazyInstance$))):(s.$flags$|=1,12&r.$flags$&&setContentReference(o),r.$members$&&Object.entries(r.$members$).map(([a,[c]])=>{if(31&c&&o.hasOwnProperty(a)){const y=o[a];delete o[a],o[a]=y}}),initializeComponent(o,s,r)),i()}},setContentReference=o=>{const s=o["s-cr"]=doc.createComment("");s["s-cn"]=!0,insertBefore(o,s,o.firstChild)},disconnectedCallback=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s){if(!(1&plt.$flags$)){const r=getHostRef(s);r.$rmListeners$&&(r.$rmListeners$.map(i=>i()),r.$rmListeners$=void 0)}});return function(r){return o.apply(this,arguments)}}(),proxyCustomElement=(o,s)=>{const r={$flags$:s[0],$tagName$:s[1]};r.$members$=s[2],r.$listeners$=s[3],r.$watchers$=o.$watchers$,r.$attrsToReflect$=[];const i=o.prototype.connectedCallback,a=o.prototype.disconnectedCallback;return Object.assign(o.prototype,{__registerHost(){registerHost(this,r)},connectedCallback(){const c=getHostRef(this);addHostEventListeners(this,c,r.$listeners$),connectedCallback(this),i&&i.call(this)},disconnectedCallback(){disconnectedCallback(this),a&&a.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${r.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else this.attachShadow({mode:"open",delegatesFocus:!!(16&r.$flags$)})}}),o.is=r.$tagName$,proxyComponent(o,r)},Fragment=(o,s)=>s,addHostEventListeners=(o,s,r,i)=>{r&&r.map(([a,c,y])=>{const w=getHostListenerTarget(o,a),C=hostListenerProxy(s,y),T=hostListenerOpts(a);plt.ael(w,c,C,T),(s.$rmListeners$=s.$rmListeners$||[]).push(()=>plt.rel(w,c,C,T))})},hostListenerProxy=(o,s)=>r=>{try{BUILD.lazyLoad||o.$hostElement$[s](r)}catch(i){consoleError(i)}},getHostListenerTarget=(o,s)=>4&s?doc:8&s?win:16&s?doc.body:o,hostListenerOpts=o=>supportsListenerOptions?{passive:!!(1&o),capture:!!(2&o)}:!!(2&o),CURRENT_MODULE,METHOD_MODULE,o;o=CURRENT_MODULE||(CURRENT_MODULE={}),o.WELCOME="welcome",o.WELCOME_LOGIN="welcome-login",o.WELCOME_SIGNUP="welcome-signup",o.INFO="info",o.LOGIN_BUNKER_URL="login-bunker-url",o.LOGIN_READ_ONLY="login-read-only",o.CONFIRM_LOGOUT="confirm-logout",o.IMPORT_FLOW="import",o.IMPORT_OTP="import-otp",o.LOGIN="login",o.SIGNUP="signup",o.LOCAL_SIGNUP="local-signup",o.EXTENSION="extension",o.LOADING="loading",o.PREVIOUSLY_LOGGED="switch-account",o.LOGIN_OTP="otp",o.CONNECT="connect",o.CONNECTION_STRING="connection-string",o.IFRAME="iframe",function(o){o.LOGIN="login",o.SIGNUP="signup",o.LOGOUT="logout",o.CONFIRM="confirm"}(METHOD_MODULE||(METHOD_MODULE={}));const appendToMap=(o,s,r)=>{const i=o.get(s);i?i.includes(r)||i.push(r):o.set(s,[r])},debounce=(o,s)=>{let r;return(...i)=>{r&&clearTimeout(r),r=setTimeout(()=>{r=0,o(...i)},s)}},isConnected=o=>!("isConnected"in o)||o.isConnected,cleanupElements=debounce(o=>{for(let s of o.keys())o.set(s,o.get(s).filter(isConnected))},2e3),stencilSubscription=()=>{if("function"!=typeof getRenderingRef)return{};const o=new Map;return{dispose:()=>o.clear(),get:s=>{const r=getRenderingRef();r&&appendToMap(o,s,r)},set:s=>{const r=o.get(s);r&&o.set(s,r.filter(forceUpdate)),cleanupElements(o)},reset:()=>{o.forEach(s=>s.forEach(forceUpdate)),cleanupElements(o)}}},unwrap=o=>"function"==typeof o?o():o,createObservableMap=(o,s=(r,i)=>r!==i)=>{const r=unwrap(o);let i=new Map(Object.entries(r??{}));const a={dispose:[],get:[],set:[],reset:[]},c=()=>{var S;i=new Map(Object.entries(null!==(S=unwrap(o))&&void 0!==S?S:{})),a.reset.forEach(A=>A())},y=S=>(a.get.forEach(A=>A(S)),i.get(S)),w=(S,A)=>{const I=i.get(S);s(A,I,S)&&(i.set(S,A),a.set.forEach(N=>N(S,A,I)))},C=typeof Proxy>"u"?{}:new Proxy(r,{get:(S,A)=>y(A),ownKeys:S=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(S,A)=>i.has(A),set:(S,A,I)=>(w(A,I),!0)}),T=(S,A)=>(a[S].push(A),()=>{removeFromArray(a[S],A)});return{state:C,get:y,set:w,on:T,onChange:(S,A)=>{const I=T("set",(G,Z)=>{G===S&&A(Z)}),N=T("reset",()=>A(unwrap(o)[S]));return()=>{I(),N()}},use:(...S)=>{const A=S.reduce((I,N)=>(N.set&&I.push(T("set",N.set)),N.get&&I.push(T("get",N.get)),N.reset&&I.push(T("reset",N.reset)),N.dispose&&I.push(T("dispose",N.dispose)),I),[]);return()=>A.forEach(I=>I())},dispose:()=>{a.dispose.forEach(S=>S()),c()},reset:c,forceUpdate:S=>{const A=i.get(S);a.set.forEach(I=>I(S,A,A))}}},removeFromArray=(o,s)=>{const r=o.indexOf(s);r>=0&&(o[r]=o[o.length-1],o.length--)},createStore=(o,s)=>{const r=createObservableMap(o,s);return r.use(stencilSubscription()),r},{state,onChange}=createStore({screen:CURRENT_MODULE.WELCOME,prevScreen:CURRENT_MODULE.WELCOME,path:[CURRENT_MODULE.WELCOME],error:"",isLoading:!1,isLoadingExtension:!1,isOTP:!1,authUrl:"",iframeUrl:"",localSignup:!1,nlSignin:{loginName:""},nlSignup:{signupName:"",domain:"",servers:[{name:"@nsec.app",value:"nsec.app"},{name:"@highlighter.com",value:"highlighter.com"}]},nlSigninBunkerUrl:{loginName:""},nlSigninReadOnly:{loginName:""},nlSigninOTP:{loginName:"",code:""},nlImport:null});onChange("screen",()=>{state.error="",state.nlSignin.loginName="",state.nlSignup.signupName="",state.nlSignup.domain=""});const baseCss="/*! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com*/*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;color:#6b7280;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{--tw-shadow:0 0 #0000;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;print-color-adjust:exact}[multiple],[size]:where(select:not([size=\"1\"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;print-color-adjust:exact;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E\")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.block{display:block}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.theme-default .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-default .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(31 41 55/var(--tw-bg-opacity))}.theme-default .nl-description,.theme-default .nl-logo,.theme-default .nl-title{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-description,.theme-default .dark .nl-logo,.theme-default .dark .nl-title{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.theme-default .nl-description a{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity));text-decoration-line:underline}.theme-default .dark .nl-description a{--tw-text-opacity:1;color:rgb(191 219 254/var(--tw-text-opacity));text-decoration-line:underline}.theme-default .nl-action-button{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-default .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .dark .nl-action-button{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-default .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.theme-default .nl-title{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-title{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.theme-default .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(229 231 235/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.theme-default .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));border-color:rgb(55 65 81/var(--tw-border-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-default .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.theme-default .nl-divider{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .nl-divider:before{border-top-width:1px}.theme-default .nl-divider:after,.theme-default .nl-divider:before{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity));content:var(--tw-content)}.theme-default .dark .nl-divider{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.theme-default .dark .nl-divider:after,.theme-default .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity));content:var(--tw-content)}.theme-default .nl-footer{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-footer{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.theme-default .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-default .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-default .nl-input{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-default .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity));color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.theme-default .nl-select{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-default .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity));color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.theme-default .nl-select-list{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.theme-default .nl-select-option{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.theme-default .nl-select-option.active-option{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity));color:rgb(30 58 138/var(--tw-text-opacity))}.theme-default .dark .nl-select-option{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-default .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-default .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-default .nl-banner{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(229 231 235/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-banner{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));border-color:rgb(55 65 81/var(--tw-border-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-ocean .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(191 219 254/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-ocean .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(8 47 73/var(--tw-bg-opacity))}.theme-ocean .nl-description,.theme-ocean .nl-logo,.theme-ocean .nl-title{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .dark .nl-description,.theme-ocean .dark .nl-logo,.theme-ocean .dark .nl-title{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .nl-action-button{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-ocean .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .dark .nl-action-button{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-ocean .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity))}.theme-ocean .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(224 242 254/var(--tw-bg-opacity));border-color:rgb(186 230 253/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.theme-ocean .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(7 89 133/var(--tw-bg-opacity));border-color:rgb(8 47 73/var(--tw-border-opacity));color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity))}.theme-ocean .nl-divider{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .nl-divider:after,.theme-ocean .nl-divider:before{--tw-border-opacity:1;border-color:rgb(8 47 73/var(--tw-border-opacity));content:var(--tw-content)}.theme-ocean .dark .nl-divider{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .dark .nl-divider:after,.theme-ocean .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity));content:var(--tw-content)}.theme-ocean .nl-footer{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .dark .nl-footer{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-ocean .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-ocean .nl-input{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(14 165 233/var(--tw-ring-opacity));border-color:rgb(14 165 233/var(--tw-border-opacity))}.theme-ocean .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity));color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(2 132 199/var(--tw-ring-opacity))}.theme-ocean .nl-select{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(14 165 233/var(--tw-ring-opacity));border-color:rgb(14 165 233/var(--tw-border-opacity))}.theme-ocean .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity));color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(2 132 199/var(--tw-ring-opacity))}.theme-ocean .nl-select-list{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(3 105 161/var(--tw-bg-opacity))}.theme-ocean .nl-select-option{--tw-text-opacity:1;color:rgb(7 89 133/var(--tw-text-opacity))}.theme-ocean .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(186 230 253/var(--tw-bg-opacity))}.theme-ocean .dark .nl-select-option{--tw-text-opacity:1;color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(7 89 133/var(--tw-bg-opacity));color:rgb(125 211 252/var(--tw-text-opacity))}.theme-ocean .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-ocean .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-ocean .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-ocean .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-lemonade .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(187 247 208/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-lemonade .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(5 46 22/var(--tw-bg-opacity))}.theme-lemonade .nl-description,.theme-lemonade .nl-logo,.theme-lemonade .nl-title{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .dark .nl-description,.theme-lemonade .dark .nl-logo,.theme-lemonade .dark .nl-title{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .nl-action-button{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-lemonade .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-action-button{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-lemonade .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity))}.theme-lemonade .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(220 252 231/var(--tw-bg-opacity));border-color:rgb(187 247 208/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity));border-color:rgb(5 46 22/var(--tw-border-opacity));color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity))}.theme-lemonade .nl-divider{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .nl-divider:after,.theme-lemonade .nl-divider:before{--tw-border-opacity:1;border-color:rgb(5 46 22/var(--tw-border-opacity));content:var(--tw-content)}.theme-lemonade .dark .nl-divider{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .dark .nl-divider:after,.theme-lemonade .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity));content:var(--tw-content)}.theme-lemonade .nl-footer{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .dark .nl-footer{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-lemonade .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-lemonade .nl-input{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity));border-color:rgb(34 197 94/var(--tw-border-opacity))}.theme-lemonade .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity));color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.theme-lemonade .nl-select{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity));border-color:rgb(34 197 94/var(--tw-border-opacity))}.theme-lemonade .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity));color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.theme-lemonade .nl-select-list{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.theme-lemonade .nl-select-option{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.theme-lemonade .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(187 247 208/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-select-option{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity));color:rgb(134 239 172/var(--tw-text-opacity))}.theme-lemonade .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-lemonade .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-lemonade .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-lemonade .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-purple .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(233 213 255/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-purple .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(59 7 100/var(--tw-bg-opacity))}.theme-purple .nl-description,.theme-purple .nl-logo,.theme-purple .nl-title{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .dark .nl-description,.theme-purple .dark .nl-logo,.theme-purple .dark .nl-title{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .nl-action-button{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-purple .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-action-button{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-purple .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity))}.theme-purple .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(243 232 255/var(--tw-bg-opacity));border-color:rgb(233 213 255/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(250 245 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(107 33 168/var(--tw-bg-opacity));border-color:rgb(59 7 100/var(--tw-border-opacity));color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity))}.theme-purple .nl-divider{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .nl-divider:after,.theme-purple .nl-divider:before{--tw-border-opacity:1;border-color:rgb(59 7 100/var(--tw-border-opacity));content:var(--tw-content)}.theme-purple .dark .nl-divider{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .dark .nl-divider:after,.theme-purple .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(233 213 255/var(--tw-border-opacity));content:var(--tw-content)}.theme-purple .nl-footer{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .dark .nl-footer{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-purple .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-purple .nl-input{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-purple .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity));color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 51 234/var(--tw-ring-opacity))}.theme-purple .nl-select{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-purple .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity));color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 51 234/var(--tw-ring-opacity))}.theme-purple .nl-select-list{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(126 34 206/var(--tw-bg-opacity))}.theme-purple .nl-select-option{--tw-text-opacity:1;color:rgb(107 33 168/var(--tw-text-opacity))}.theme-purple .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(233 213 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-select-option{--tw-text-opacity:1;color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(107 33 168/var(--tw-bg-opacity));color:rgb(216 180 254/var(--tw-text-opacity))}.theme-purple .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-purple .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-purple .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-purple .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-crab .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(254 226 226/var(--tw-bg-opacity));border-color:rgb(254 202 202/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(69 10 10/var(--tw-text-opacity))}.theme-crab .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.theme-crab .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity));border-color:rgb(69 10 10/var(--tw-border-opacity));color:rgb(254 202 202/var(--tw-text-opacity))}.theme-crab .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity))}.show-slow{display:none;opacity:0;transition:.1s}.isOpen .show-slow{display:block;opacity:1;transition:.2s;transition-delay:.2s}:host{display:block}.animate-spin-loading{animation:spin2 1s linear infinite;background:var(--qa-dark-color)}@keyframes spin2{to{transform:rotate(1turn)}}.active{animation:blink .7s infinite alternate}@keyframes blink{0%{opacity:1}to{opacity:0}}.static{position:static}.inline-flex{display:inline-flex}.h-4{height:16px}.w-4{width:16px}.w-full{width:100%}.flex-shrink-0{flex-shrink:0}.items-center{align-items:center}.justify-center{justify-content:center}.gap-x-2{column-gap:8px}.rounded-lg{border-radius:.5rem}.px-3{padding-left:12px;padding-right:12px}.py-2\\.5{padding-bottom:10px;padding-top:10px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:opacity-50:disabled{opacity:.5}.dark\\:focus\\:outline-none:focus:is(.dark *){outline:2px solid transparent;outline-offset:2px}.dark\\:focus\\:ring-1:focus:is(.dark *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:focus\\:ring-gray-600:focus:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.right-0{right:0}.right-2{right:8px}.top-2{top:8px}.top-52{top:208px}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:8px}.ml-0{margin-left:0}.ml-\\[2px\\]{margin-left:2px}.mr-0{margin-right:0}.mr-2{margin-right:8px}.mr-3\\.5{margin-right:14px}.mt-2{margin-top:8px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-12{height:48px}.h-5{height:20px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-\\[46px\\]{height:46px}.h-auto{height:auto}.w-0{width:0}.w-12{width:48px}.w-16{width:64px}.w-5{width:20px}.w-52{width:208px}.w-6{width:24px}.w-7{width:28px}.w-8{width:32px}.w-\\[48px\\]{width:48px}.min-w-40{min-width:160px}.max-w-40{max-width:160px}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.place-items-center{place-items:center}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-nowrap{text-wrap:nowrap}.rounded-full{border-radius:9999px}.rounded-r-lg{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.rounded-r-none{border-bottom-right-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-\\[0px\\]{border-width:0}.border-\\[2px\\]{border-width:2px}.border-current{border-color:currentColor}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-3{padding:12px}.px-2{padding-left:8px;padding-right:8px}.pl-\\[11px\\]{padding-left:11px}.text-center{text-align:center}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:right-2:hover{right:8px}.hover\\:rounded-r-lg:hover{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.dark\\:text-gray-300:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.left-0{left:0}.mt-1{margin-top:4px}.max-w-6{max-width:24px}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.gap-2{gap:8px}.gap-x-3\\.5{column-gap:14px}.overflow-hidden,.truncate{overflow:hidden}.border-t-\\[1px\\]{border-top-width:1px}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.p-2{padding:8px}.px-4{padding-left:16px;padding-right:16px}.py-2{padding-bottom:8px;padding-top:8px}.py-3{padding-bottom:12px;padding-top:12px}.pt-2{padding-top:8px}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:-top-4:before{content:var(--tw-content);top:-16px}.before\\:start-0:before{content:var(--tw-content);inset-inline-start:0}.before\\:h-4:before{content:var(--tw-content);height:16px}.before\\:w-full:before{content:var(--tw-content);width:100%}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:-bottom-4:after{bottom:-16px;content:var(--tw-content)}.after\\:start-0:after{content:var(--tw-content);inset-inline-start:0}.after\\:h-4:after{content:var(--tw-content);height:16px}.after\\:w-full:after{content:var(--tw-content);width:100%}.first\\:border-none:first-child{border-style:none}.first\\:pt-0:first-child{padding-top:0}.dark\\:border-transparent:is(.dark *){border-color:transparent}.w-auto{width:auto}.rounded-xl{border-radius:.75rem}.border-orange-300{--tw-border-opacity:1;border-color:rgb(253 186 116/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-teal-300{--tw-border-opacity:1;border-color:rgb(94 234 212/var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity:1;border-color:rgb(253 224 71/var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-teal-100{--tw-bg-opacity:1;background-color:rgb(204 251 241/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.px-1{padding-left:4px;padding-right:4px}.text-\\[10px\\]{font-size:10px}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-teal-600{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.start-0{inset-inline-start:0}.top-0{top:0}.z-\\[80\\]{z-index:80}.z-\\[81\\]{z-index:81}.h-full{height:100%}.max-w-96{max-width:384px}.gap-1{gap:4px}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:0.75}.p-4{padding:16px}.pt-3,.py-3{padding-top:12px}.text-base{font-size:16px;line-height:24px}.font-light{font-weight:300}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}@media (min-width:640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:512px}}.ml-auto,.mx-auto{margin-left:auto}.mr-auto{margin-right:auto}.mt-3{margin-top:12px}.w-60{width:240px}.text-4xl{font-size:36px;line-height:40px}.text-lg{font-size:18px;line-height:28px}.mt-0{margin-top:0}.max-h-0{max-height:0}.max-h-\\[500px\\]{max-height:500px}.max-w-52{max-width:208px}.max-w-7{max-width:28px}.gap-0\\.5{gap:2px}.gap-3{gap:12px}.overflow-hidden{overflow:hidden}.border-b-\\[1px\\]{border-bottom-width:1px}.border-dashed{border-style:dashed}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.pb-1{padding-bottom:4px}.pb-1\\.5{padding-bottom:6px}.pb-5{padding-bottom:20px}.pe-4{padding-inline-end:16px}.ps-4{padding-inline-start:16px}.pt-5{padding-top:20px}.text-3xl{font-size:30px;line-height:36px}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.decoration-dashed{text-decoration-style:dashed}.duration-\\[0\\.25s\\]{transition-duration:.25s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.hover\\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.mb-0\\.5{margin-bottom:2px}.mb-5{margin-bottom:20px}.ml-auto{margin-left:auto}.w-72{width:288px}.max-w-72{max-width:288px}.border-\\[3px\\]{border-width:3px}.pb-2{padding-bottom:8px}.text-2xl{font-size:24px;line-height:32px}.mb-10{margin-bottom:40px}.mt-10{margin-top:40px}.h-20{height:80px}.w-20{width:80px}.border-\\[4px\\]{border-width:4px}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.dark\\:text-green-200:is(.dark *){--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.pointer-events-none{pointer-events:none}.inset-y-0{bottom:0;top:0}.ps-11{padding-inline-start:44px}.peer:disabled~.peer-disabled\\:pointer-events-none{pointer-events:none}.peer:disabled~.peer-disabled\\:opacity-50{opacity:.5}.right-\\[-2px\\]{right:-2px}.right-\\[-3px\\]{right:-3px}.top-\\[-2px\\]{top:-2px}.top-\\[-3px\\]{top:-3px}.h-1\\.5{height:6px}.h-3{height:12px}.w-1\\.5{width:6px}.w-3{width:12px}.border-2{border-width:2px}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.pb-3{padding-bottom:12px}.pt-0{padding-top:0}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.hover\\:bg-gray-400:hover{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}.hover\\:text-red-600:hover{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.group:hover .group-hover\\:border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.min-w-\\[15rem\\]{min-width:15rem}.end-0{inset-inline-end:0}.h-\\[20px\\]{height:20px}.w-\\[20px\\]{width:20px}.pe-11{padding-inline-end:44px}",buttonBaseCss=baseCss,ButtonBaseStyle0=buttonBaseCss,ButtonBase=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.theme="default",this.darkMode=!1,this.titleBtn="Open modal",this.disabled=!1}componentDidRender(){const o=this.element.querySelector("svg");o&&(o.classList.add("flex-shrink-0","w-4","h-4","block"),o.removeAttribute("style"))}render(){return h("div",{key:"1048576f0a9839c56cac030b1de7899b25b5f39e",class:`theme-${this.theme}`},h("div",{key:"ea29f74a1f7e4268802c6e4aaca5867dfd2e4c9b",class:"animate-spin-loading active"}),h("button",{key:"71f84d47b11aa3971818b686f8dddb74e0d36eb0",disabled:this.disabled,type:"button",class:"nl-button py-2.5 px-3 w-full inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"},h("slot",{key:"91a91994e20dc10e3bbb2576e4214fa98533be8e",name:"icon-start"}),this.titleBtn))}get element(){return this}static get style(){return ButtonBaseStyle0}},[4,"button-base",{theme:[1025],darkMode:[1028,"dark-mode"],titleBtn:[1,"title-btn"],disabled:[4]}]);function defineCustomElement$q(){typeof customElements>"u"||["button-base"].forEach(o=>{"button-base"===o&&(customElements.get(o)||customElements.define(o,ButtonBase))})}defineCustomElement$q();const nlConfirmLogoutCss=baseCss,NlConfirmLogoutStyle0=nlConfirmLogoutCss,NlConfirmLogout$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.handleLogoutBanner=createEvent(this,"handleLogoutBanner",7),this.handleBackUpModal=createEvent(this,"handleBackUpModal",7),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.titleModal="Delete keys?",this.description="Your profile keys are stored in this browser tab and will be deleted if you log out, and your profile will be inaccessible."}handleLogout(){this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.nlCloseModal.emit()}handleCancel(){this.nlCloseModal.emit()}handleBackUp(){state.path=[CURRENT_MODULE.IMPORT_FLOW]}render(){return h("div",{key:"fe605f38f9d0a440fe53e21f19288c41e4762c22",class:"p-4 overflow-y-auto"},h("h1",{key:"84d14a59035515b2fd612d262400a038887a10d7",class:"nl-title font-bold text-center text-4xl"},this.titleModal),h("p",{key:"83ef73271c76309561be95e0207f8130d75a161c",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description),h("div",{key:"fce0f132846beb95dd9e41357f5ab87be7229a56",class:"mt-3 ml-auto mr-auto w-60 flex flex-col gap-2"},h("button-base",{key:"c4fc722a7c98d84e797963ed7fe928164411b701",onClick:()=>this.handleBackUp(),titleBtn:"Backup keys",theme:"lemonade"}),h("button-base",{key:"39df385a9a8dc3fcd74f4196d4191bc4a308a16d",onClick:()=>this.handleLogout(),theme:"crab",titleBtn:"Logout and delete keys"})))}static get style(){return NlConfirmLogoutStyle0}},[0,"nl-confirm-logout",{titleModal:[1,"title-modal"],description:[1]}]);function defineCustomElement$p(){typeof customElements>"u"||["nl-confirm-logout","button-base"].forEach(o=>{switch(o){case"nl-confirm-logout":customElements.get(o)||customElements.define(o,NlConfirmLogout$1);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$p();const nlConnectCss=baseCss,NlConnectStyle0=nlConnectCss,NlConnect=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlNostrConnect=createEvent(this,"nlNostrConnect",7),this.nlNostrConnectDefault=createEvent(this,"nlNostrConnectDefault",7),this.titleWelcome="Connect to key store",this.authMethods=[],this.hasOTP=!1,this.connectionStringServices=[],this.isOpenAdvancedLogin=!1}handleChangeScreen(o){state.path=[...state.path,o]}handleOpenAdvanced(){this.isOpenAdvancedLogin=!this.isOpenAdvancedLogin}allowAuthMethod(o){return!this.authMethods.length||this.authMethods.includes(o)}componentWillLoad(){}handleOpenLink(o,s){o.preventDefault(),this.nlNostrConnect.emit(s)}handleConnectionString(){this.nlNostrConnectDefault.emit(),this.handleChangeScreen(CURRENT_MODULE.CONNECTION_STRING)}render(){const o=(this.isOpenAdvancedLogin?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-blue-500";return h(Fragment,{key:"a85f0a26b61b7e321025b7dd96e459a6c43958a9"},h("div",{key:"7af7ae501bed1bf028465e65f3caa3824a3948ca",class:"p-4 overflow-y-auto"},h("h1",{key:"7795a15c6d525d1b7ad0e6da63ad1889a64d6459",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome)),h("div",{key:"cf5b947b22757334cbf92059dfc7ffaef0c95951",class:"p-4"},!!this.connectionStringServices.length&&h("div",{key:"c5de66ab74b14d69993dc20cf123777a3b8a016e",class:"max-w-96 mx-auto pt-5"},h("p",{key:"f7ac9e48789870264707bf39e3f1b2d73218aad5",class:"nl-description font-medium text-sm pb-1.5"},"Select key store:"),h("ul",{key:"07c1bd1bf9ffaa80f0868481ce22a8d5c73a345b",class:"p-2 rounded-lg border border-gray-200 flex flex-col w-full gap-0.5"},this.connectionStringServices.map(s=>h("li",null,h("a",{href:s.link,target:"_blank",onClick:r=>this.handleOpenLink(r,s),class:"flex items-center gap-x-3.5 w-full hover:bg-gray-300 flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm justify-between"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s.img?h("img",{class:"w-full rounded-full",src:s.img,alt:s.name}):h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#9ca3af",class:"w-4 h-4 block"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},s.name)))))))),h("div",{key:"2a9094524ef58b138d04411484264a40ce42db7c",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"d833546cba5fd4a904a0123e6e760b602fda0ff7",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("div",{key:"700aa690c440f2685c9330feeb58986669b46f85",class:"max-w-52 mx-auto pb-5"},(this.allowAuthMethod("connect")||this.allowAuthMethod("readOnly"))&&h("div",{key:"058706b54702ac9ca3cd74a8096f521c211e5a16",class:"flex justify-center"},h("div",{key:"073f2567734817ba3cc8f34b32fa1a284d2b8ab1",onClick:()=>this.handleOpenAdvanced(),class:"text-blue-500 mt-3 decoration-dashed cursor-pointer inline-flex gap-2 items-center pb-1 border-dashed border-b-[1px] border-blue-500 text-sm font-light"},"Advanced",h("svg",{key:"d433319920bc751f771086bf726a3d5f1e31320e",class:o,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"4cc3a36807664b0402a26420c4979a68ba77df9c",d:"m6 9 6 6 6-6"})))),h("div",{key:"76dc95f39af78bd124e5f61309d96ee443d53f2f",class:(this.isOpenAdvancedLogin?"max-h-[500px] mt-3 duration-300":"max-h-0 mt-0 duration-[0.25s]")+" transition-max-height ease-in flex gap-3 flex-col overflow-hidden"},this.allowAuthMethod("connect")&&h("button-base",{key:"616d8de815233bc6264b51fa849fbf26d98758ed",titleBtn:"User name",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN)},h("svg",{key:"fa2f51ca2a111920d15a87106258c55a7b1961ff",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},h("path",{key:"288dee2f9c21bde4471a7eebbf94c231c1acad12","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"}))),this.allowAuthMethod("connect")&&h("button-base",{key:"8298c3ad602e2bc279ab084a5e5ea311fdc193e9",titleBtn:"Connection string",onClick:()=>this.handleConnectionString()},h("svg",{key:"b7f83a4b7fae0ff0965c2493aa70b09e1b1ab3d8",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"d580fdbb1eee16439ffa4a46fa4f30cafbf0fd36","stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 3.75 9.375v-4.5ZM3.75 14.625c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5a1.125 1.125 0 0 1-1.125-1.125v-4.5ZM13.5 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 13.5 9.375v-4.5Z"}),h("path",{key:"ab90c206914cb2d6cae80b7e36ce45653c65b9b3","stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 6.75h.75v.75h-.75v-.75ZM6.75 16.5h.75v.75h-.75v-.75ZM16.5 6.75h.75v.75h-.75v-.75ZM13.5 13.5h.75v.75h-.75v-.75ZM13.5 19.5h.75v.75h-.75v-.75ZM19.5 13.5h.75v.75h-.75v-.75ZM19.5 19.5h.75v.75h-.75v-.75ZM16.5 16.5h.75v.75h-.75v-.75Z"}))),this.allowAuthMethod("connect")&&h("button-base",{key:"c923265e7da4bb6815cf91c54a4b393c19f3d16d",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_BUNKER_URL),titleBtn:"Bunker URL"},h("svg",{key:"8c5bd04e91407a83d0021e4413ee58973b57aa54",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"d115abfce6eee55572316a4cc2a808a176d17f46","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))))))}static get style(){return NlConnectStyle0}},[0,"nl-connect",{titleWelcome:[1,"title-welcome"],authMethods:[16],hasOTP:[4,"has-o-t-p"],connectionStringServices:[16],isOpenAdvancedLogin:[32]}]);function defineCustomElement$o(){typeof customElements>"u"||["nl-connect","button-base"].forEach(o=>{switch(o){case"nl-connect":customElements.get(o)||customElements.define(o,NlConnect);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$o();const nlIframeCss=baseCss,NlIframeStyle0=nlIframeCss,NlConfirmLogout=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.titleModal="Confirm",this.description="Your profile keys are stored in this browser tab and will be deleted if you log out, and your profile will be inaccessible.",this.iframeUrl=""}handleCancel(){this.nlCloseModal.emit()}render(){return h("div",{key:"36ee9fd43bbb16768b7634783781ecffb1c9432a",class:"p-4 overflow-y-auto"},h("div",{key:"1634e1fd37bc44030f22bfdab9f7deec2806731b",class:"mt-3 flex flex-col gap-2"},this.iframeUrl&&h("iframe",{key:"2b1ab3032b152fb109f3531bb7600bb76aa1a562",src:this.iframeUrl,style:{width:"100%",height:"600px",border:"1px solid #ccc",borderRadius:"8px"}})))}static get style(){return NlIframeStyle0}},[0,"nl-iframe",{titleModal:[1,"title-modal"],description:[1],iframeUrl:[1,"iframe-url"]}]);function defineCustomElement$n(){typeof customElements>"u"||["nl-iframe"].forEach(o=>{"nl-iframe"===o&&(customElements.get(o)||customElements.define(o,NlConfirmLogout))})}defineCustomElement$n();const nlSelectCss=baseCss,NlSelectStyle0=nlSelectCss,NlSelect=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.selectDomain=createEvent(this,"selectDomain",7),this.isOpen=!1,this.value=null,this.options=void 0,this.selected=void 0,this.mode=!1,this.darkMode=!1,this.themeState="default",this.theme="default"}handleWindowClick(){this.wrapperRef.querySelector(".listClass")&&(this.isOpen=!1)}toggleDropdown(){this.isOpen=!this.isOpen,this.calculateDropdownPosition()}watchPropHandler(o){this.themeState=o}watchModeHandler(o){this.mode=o}connectedCallback(){this.themeState=this.theme,this.mode=this.darkMode,this.value=this.options[this.selected],this.selectDomain.emit(this.value.value)}calculateDropdownPosition(){if(this.isOpen&&this.buttonRef){const o=this.buttonRef.getBoundingClientRect();this.ulRef.style.top=`${o.height}px`}}handleChange(o){this.value=o,this.isOpen=!1,this.selectDomain.emit(this.value.value)}render(){const o=(this.isOpen?"listClass":"hidden")+" min-w-[15rem] nl-select-list absolute left-0 shadow-md rounded-lg p-2 mt-1 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full",s=(this.isOpen?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-gray-500";return h("div",{key:"c86084c50712455e04682a4392e490bc0e20eb1d",class:`theme-${this.themeState}`},h("div",{key:"a90d9b4af52845a9971c39cec69c13493d511381",class:"relative",ref:r=>this.wrapperRef=r},h("button",{key:"1391137997bf8fcd0a5466cd9fa20c79b4ce27ba",ref:r=>this.buttonRef=r,onClick:()=>this.toggleDropdown(),type:"button",class:"nl-select peer py-3 px-4 flex items-center w-full justify-between border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent"},h("span",{key:"224425ab92ba3599595924972e98a0fc9cb1a189",class:"truncate overflow-hidden"},this.value.name),h("svg",{key:"8eb2a2b552cb9ea36fb1abc61d804efb423afda6",class:s,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"feea1a7f54f4a111b7bf01e3945445311b97ab82",d:"m6 9 6 6 6-6"}))),h("ul",{key:"fca4982f04f4133d5c2a2f613a7e7d977dd5c241",ref:r=>this.ulRef=r,class:o},this.options.map(r=>h("li",{onClick:()=>this.handleChange(r),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},r.name)))))}get element(){return this}static get watchers(){return{theme:["watchPropHandler"],darkMode:["watchModeHandler"]}}static get style(){return NlSelectStyle0}},[0,"nl-select",{options:[16],selected:[2],darkMode:[4,"dark-mode"],theme:[1],isOpen:[32],value:[32],mode:[32],themeState:[32]},[[8,"click","handleWindowClick"]],{theme:["watchPropHandler"],darkMode:["watchModeHandler"]}]);function defineCustomElement$m(){typeof customElements>"u"||["nl-select"].forEach(o=>{"nl-select"===o&&(customElements.get(o)||customElements.define(o,NlSelect))})}defineCustomElement$m();const nlImportFlowCss=baseCss,NlImportFlowStyle0=nlImportFlowCss,NlImportFlow$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlImportAccount=createEvent(this,"nlImportAccount",7),this.nlExportKeys=createEvent(this,"nlExportKeys",7),this.titleInfo="Back up your keys",this.titleImport="Choose a service",this.services=[],this.isContinued=!1,this.isKeyBackup=!1,this.isCopy=!1}handleDomainSelect(o){const s=this.services.find(r=>r.domain===o.detail);state.nlImport=s}handleCreateAccount(o){o.preventDefault(),this.nlImportAccount.emit(state.nlImport)}handleContinue(){this.isContinued=!0}handleContinueKeyBackup(){this.isKeyBackup=!0}copyToClipboard(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){o.nlExportKeys.emit(),o.isCopy=!0,setTimeout(()=>{o.isCopy=!1},1500)})()}render(){if(!this.isContinued&&!this.isKeyBackup)return h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},this.titleInfo),h("p",{class:"nl-description font-light text-sm pt-2 pb-2 max-w-96 mx-auto"},"Nostr profiles are controlled by cryptographic keys.",h("br",null),h("br",null),"Your keys are currently only stored in this browser tab, and may be lost if you close it.",h("br",null),h("br",null),"You should backup your keys.",h("br",null),h("br",null),"We recommend to import your keys into a key store service, to protect them and to use with other apps."),h("div",{class:"ml-auto mr-auto mb-2 w-72"},h("button-base",{onClick:()=>this.handleContinue(),titleBtn:"Import to key store"})),h("div",{class:"ml-auto mr-auto w-72"},h("button-base",{onClick:()=>this.handleContinueKeyBackup(),titleBtn:"Export keys"})));if(this.isKeyBackup)return h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},"Key export"),h("p",{class:"nl-description font-light text-sm pt-2 pb-2 max-w-96 mx-auto"},"Copy your keys and store them in a safe place, like a password manager.",h("br",null),h("br",null),"You can sign into other Nostr apps by pasting your keys into them.",h("br",null),h("br",null),"Your keys must be kept secret, never share them with anyone."),h("div",{class:"max-w-72 mx-auto"},h("div",{class:"ml-auto mr-auto mb-2 w-72"},h("button-base",{onClick:()=>this.copyToClipboard(),titleBtn:this.isCopy?"Copied!":"Copy to clipboard"}))));const o=this.services.filter(s=>s.canImport).map(s=>({name:s.domain,value:s.domain}));return h(Fragment,null,h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},this.titleImport),h("p",{class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},"Your Nostr keys will be imported into the service you choose. You will manage your keys on their website.")),h("div",{class:"max-w-72 mx-auto mb-5"},h("div",{class:"mb-0.5"},h("nl-select",{onSelectDomain:s=>this.handleDomainSelect(s),selected:0,options:o})),h("p",{class:"nl-title font-light text-sm mb-2"},"Default provider is a fine choice to start with."),h("div",{class:"ps-4 pe-4 overflow-y-auto"},h("p",{class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{disabled:state.isLoading,onClick:s=>this.handleCreateAccount(s),titleBtn:"Start importing"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlImportFlowStyle0}},[0,"nl-import-flow",{titleInfo:[1025,"title-info"],titleImport:[1,"title-import"],services:[16],isContinued:[32],isKeyBackup:[32],isCopy:[32]}]);function defineCustomElement$l(){typeof customElements>"u"||["nl-import-flow","button-base","nl-select"].forEach(o=>{switch(o){case"nl-import-flow":customElements.get(o)||customElements.define(o,NlImportFlow$1);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$l();const nlInfoCss=baseCss,NlInfoStyle0=nlInfoCss,NlInfo=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){return h("div",{key:"7463f42c27643903a9d6fb0160fbabe833679fcb",class:"p-4 overflow-y-auto"},h("svg",{key:"86c5f04f87b21553f3512d289425996b46eb6c57",class:"w-12 h-12 mx-auto mb-2",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{key:"6be61e0b2ff3d3f13e617e9b1df073fbe3b5678b",width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{key:"0c0aff7d5143022fe857de141cdae31397c3c2f4",d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),h("h1",{key:"3a89ee5051e2d74945347dec6055749cec126f27",class:"nl-title font-bold text-center text-4xl"},"Nostr ",h("span",{key:"96a49c22dffa4a30639f387a949d7695604c6a1f",class:"font-light"},"Login")),h("p",{key:"a6dded720da9db673173a1ff02bc5544e6a66d38",class:"text-green-800 dark:text-green-200 font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Version: 1.6.14"),h("p",{key:"9d9dbd36ade753d30db448139dc057921f29697d",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Learn more about Nostr"," ",h("a",{key:"1811ad4f1acda7f5235566ea6f2ce8e70c62c91c",target:"_blank",href:"https://nostr.how"},"here"),".",h("br",{key:"127a6127e71f43caa1c262c6ec8108a5a6f40774"}),"This is an"," ",h("a",{key:"0e18839f8577229533eb2d2ef00f8657e6396aa1",target:"_blank",href:"https://github.com/nostrband/nostr-login"},"open-source")," ","tool by"," ",h("a",{key:"9affd14ad9dedae3e5d269a1477343eae63cd46b",target:"_blank",href:"https://nostr.band"},"Nostr.Band"),"."))}static get style(){return NlInfoStyle0}},[0,"nl-info"]);function defineCustomElement$k(){typeof customElements>"u"||["nl-info"].forEach(o=>{"nl-info"===o&&(customElements.get(o)||customElements.define(o,NlInfo))})}defineCustomElement$k();const nlInfoExtensionCss=baseCss,NlInfoExtensionStyle0=nlInfoExtensionCss,NlInfoExtension=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){return h("div",{key:"9335feb745c6d09a213a2e771c40262036341b54",class:"p-4 overflow-y-auto"},state.isLoadingExtension?h("div",null,h("h1",{class:"nl-title font-bold text-center text-4xl"},"Signing in..."),h("div",{class:"mt-10 mb-10 ml-auto mr-auto w-20"},h("span",{slot:"icon-start",class:"animate-spin-loading ml-auto mr-auto inline-block w-20 h-20 border-[4px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"})),h("div",{class:"ps-4 pe-4 overflow-y-auto"},h("p",{class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error))):h("div",null,h("h1",{class:"nl-title font-bold text-center text-4xl"},"Install browser extension!"),h("p",{class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Try"," ",h("a",{href:"https://getalby.com",target:"_blank"},"Alby"),","," ",h("a",{href:"https://chromewebstore.google.com/detail/nos2x/kpgefcfmnafjgpblomihpgmejjdanjjp",target:"_blank"},"nos2x")," ","or"," ",h("a",{href:"https://apps.apple.com/us/app/nostore/id1666553677",target:"_blank"},"Nostore"))))}static get style(){return NlInfoExtensionStyle0}},[0,"nl-info-extension"]);function defineCustomElement$j(){typeof customElements>"u"||["nl-info-extension"].forEach(o=>{"nl-info-extension"===o&&(customElements.get(o)||customElements.define(o,NlInfoExtension))})}defineCustomElement$j();const nlLoadingCss=baseCss,NlLoadingStyle0=nlLoadingCss,NlLoading=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.stopFetchHandler=createEvent(this,"stopFetchHandler",7),this.handleContinue=createEvent(this,"handleContinue",7),this.path=void 0}handleStop(o){o.preventDefault(),this.stopFetchHandler.emit()}handleContinueClick(o){o.preventDefault(),this.handleContinue.emit()}render(){let o="Connecting...",s="Establishing connection to your key storage.";this.path===CURRENT_MODULE.LOCAL_SIGNUP?(o="Creating...",s="Publishing your profile on Nostr."):state.authUrl&&(state.isLoading?(o="Confirming...",s="Please confirm the connection in your key storage app."):(o="Almost ready!",s="Continue to confirm the connection to your key storage."));const r=this.path!==CURRENT_MODULE.LOCAL_SIGNUP,i=!state.isLoading&&state.iframeUrl&&state.authUrl,a=`${state.iframeUrl}?connect=${encodeURIComponent(state.authUrl)}`;return h("div",{key:"516866bac0ab965ad91fa153040e38cc94ecfe43",class:"p-4 overflow-y-auto"},h("h1",{key:"51fffb5a84be838536699741d19eb072d4318517",class:"nl-title font-bold text-center text-4xl"},o),h("p",{key:"8c0825a89ca531b74d1fb11fa06632b9bddf11b4",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},s),!state.authUrl&&state.isLoading&&h("div",{key:"5b39a21b600a0524d7eff2885fa9b048b76daf8b",class:"mt-10 mb-10 ml-auto mr-auto w-20"},h("span",{key:"6ac53666049efdd495197b4c57536a3e09969cdb",slot:"icon-start",class:"animate-spin-loading ml-auto mr-auto inline-block w-20 h-20 border-[4px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"})),h("div",{key:"1a7211d6d3d9f6e14ff02a3605c6c7b1d2dbff09",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"678cc1522ff896809fbc0309966497aafb308a36",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),a&&h("div",{key:"6b68b0afd47bb420e142d6cefbe5fb286a6871be",class:"mt-3 ml-auto mr-auto w-72 flex justify-center"},h("iframe",{key:"69526e3b7af7d255b00f2ba1aeb9f688261958eb",src:a,width:"180px",height:"80px",style:{display:i?"block":"none"}})),!i&&r&&h("div",{key:"ea17236efcb5ae4aebec89508337a12f682e35cd",class:"mt-3 ml-auto mr-auto w-72"},h("button-base",{key:"7c6a62128ece1a50a5e01df43f8948f95f42fab2",onClick:c=>{state.authUrl&&!state.isLoading?this.handleContinueClick(c):this.handleStop(c)},titleBtn:state.isLoading?"Cancel":"Continue"})))}static get style(){return NlLoadingStyle0}},[0,"nl-loading",{path:[1]}]);function defineCustomElement$i(){typeof customElements>"u"||["nl-loading","button-base"].forEach(o=>{switch(o){case"nl-loading":customElements.get(o)||customElements.define(o,NlLoading);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$i();const nlLocalSignupCss=baseCss,NlLocalSignupStyle0=nlLocalSignupCss,NlLocalSignup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLocalSignup=createEvent(this,"nlLocalSignup",7),this.fetchHandler=createEvent(this,"fetchHandler",7),this.titleSignup="Create Nostr profile",this.description="Choose any username, you can always change it later.",this.isAvailable=!1}handleInputChange(o){state.nlSignup.signupName=o.target.value}handleCreateAccount(o){o.preventDefault(),this.nlLocalSignup.emit(`${state.nlSignup.signupName}`)}render(){return h(Fragment,{key:"1ef0db8a3af10d6bd50c0ee084968abcef035b31"},h("div",{key:"966dbcd09fc2da235a817cbcf01b75e64ba2a3df",class:"p-4 overflow-y-auto"},h("h1",{key:"121ad8a12bb0d30785e26261993c73af716da22a",class:"nl-title font-bold text-center text-2xl"},this.titleSignup),h("p",{key:"6758bc49ee96973718cb301a96ce26949c446512",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"e8354901c534454753d055542226b56ae7a3ec67",class:"max-w-72 mx-auto"},h("div",{key:"2a84cdb7a830431318ddb3a32c10476ab7aa98c8",class:"relative mb-2"},h("input",{key:"50c84d948104ac51b647b941f1e086f4eecf03d9",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"Enter username",value:state.nlSignup.signupName}),h("div",{key:"8c52f3d644a8a0cd278af7646e9dbb0998b56afe",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"8923dc1949a04c7a10398db3c1211d00ce7fe925",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isAvailable?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"e3303cbea9146cb1a66e47d5ecf51da5a4a2e8b7","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"916d7e92cea31d802b74ce71dd202b7ae5f84ed8",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"9bb8ffd3c9a7c2d62f700af314305d6403e9b54d",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"dcd3530cb7878ec853ea1985cecfda1e03ab8011",disabled:state.isLoading,onClick:o=>this.handleCreateAccount(o),titleBtn:"Create profile"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlLocalSignupStyle0}},[0,"nl-local-signup",{titleSignup:[1,"title-signup"],description:[1],isAvailable:[32]}]);function defineCustomElement$h(){typeof customElements>"u"||["nl-local-signup","button-base"].forEach(o=>{switch(o){case"nl-local-signup":customElements.get(o)||customElements.define(o,NlLocalSignup);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$h();const NlLoginStatus=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.info=void 0}render(){let o="",s="";if("extension"===this.info.authMethod)o="Extension",s="border-yellow-300 text-yellow-500 bg-yellow-100";else if("readOnly"===this.info.authMethod)o="Read only",s="border-gray-300 text-gray-400 bg-gray-100";else if("connect"===this.info.authMethod)o="Connect",s="border-teal-300 text-teal-600 bg-teal-100";else if("local"===this.info.authMethod)o="Temporary",s="border-red-300 text-red-600 bg-red-100";else{if("otp"!==this.info.authMethod)throw console.log("unknown auth method",this.info),new Error("Unknown auth method");o="Delegated",s="border-orange-300 text-orange-600 bg-orange-100"}return h("div",{key:"f7d43062e3d372b26fd7e9c462eabad823b762e1"},h("span",{key:"c79aafe47bf945f5c6bf26aa230debc4d950be71",class:`${s} rounded-xl border w-auto text-[10px] px-1 `},o))}},[0,"nl-login-status",{info:[16]}]);function defineCustomElement$g(){typeof customElements>"u"||["nl-login-status"].forEach(o=>{"nl-login-status"===o&&(customElements.get(o)||customElements.define(o,NlLoginStatus))})}defineCustomElement$g();const nlOtpMigrateCss=baseCss,NlOtpMigrateStyle0=nlOtpMigrateCss,NlImportFlow=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlImportAccount=createEvent(this,"nlImportAccount",7),this.titleInfo="Import keys to storage service",this.titleImport="Choose a service",this.textImport="You will be prompted to import keys to the chosen service, and this website will connect to your keys.",this.services=[]}handleDomainSelect(o){const s=this.services.find(r=>r.domain===o.detail);state.nlImport=s}handleCreateAccount(o){o.preventDefault(),this.nlImportAccount.emit(state.nlImport)}render(){const o=this.services.filter(s=>s.canImport).map(s=>({name:s.domain,value:s.domain}));return h(Fragment,{key:"d27cbfa870975b4f9f0c6350ff6424e34b19dfad"},h("div",{key:"22618ac8a4e7cc53e111cfa47a7db3163ccc43ef",class:"p-4 overflow-y-auto"},h("h1",{key:"ebc3dc11334fa49479a1d071cf9a89bf204ca8ff",class:"nl-title font-bold text-center text-2xl"},this.titleImport),h("p",{key:"70795495de8e8f69488b2cebb2f8c5f1c2ace243",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.textImport)),h("div",{key:"a9f4df9d99623c686d22ed200bddb7657984a4f8",class:"max-w-72 mx-auto mb-5"},h("div",{key:"c9a0fedecd1e036f9a84a12aaf44ac6fd8bde10b",class:"mb-0.5"},h("nl-select",{key:"3db03a9a4fd78f544f670c6b1917af67ca818696",onSelectDomain:s=>this.handleDomainSelect(s),selected:0,options:o})),h("p",{key:"fc392301b3553c3fea01ab17341d8e0c829af408",class:"nl-title font-light text-sm mb-2"},"Default provider is a fine choice to start with."),h("div",{key:"e0dd51b7f1f9fe7ca367f309ea945cf5feffedf2",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"4316dfbf51fb06b68f55d34bffe4450c29fc273c",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"dfbd68892ba44c72d4c319725dc82cf3a1af7d96",disabled:state.isLoading,onClick:s=>this.handleCreateAccount(s),titleBtn:"Start importing"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlOtpMigrateStyle0}},[0,"nl-otp-migrate",{titleInfo:[1025,"title-info"],titleImport:[1,"title-import"],textImport:[1,"text-import"],services:[16]}]);function defineCustomElement$f(){typeof customElements>"u"||["nl-otp-migrate","button-base","nl-select"].forEach(o=>{switch(o){case"nl-otp-migrate":customElements.get(o)||customElements.define(o,NlImportFlow);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$f();const nlPreviouslyLoggedCss=baseCss,NlPreviouslyLoggedStyle0=nlPreviouslyLoggedCss,NlPreviouslyLogged=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlSwitchAccount=createEvent(this,"nlSwitchAccount",7),this.nlLoginRecentAccount=createEvent(this,"nlLoginRecentAccount",7),this.nlRemoveRecent=createEvent(this,"nlRemoveRecent",7),this.titlePage="Your profiles",this.description="Switch between active profiles or choose a recent one for fast login.",this.accounts=[],this.recents=[]}handleGoToWelcome(){state.path=[CURRENT_MODULE.WELCOME]}switchToWelcomeIfEmpty(){this.recents.length||this.accounts.length||(state.path=[CURRENT_MODULE.WELCOME])}watchAccounts(){this.switchToWelcomeIfEmpty()}watchRecents(){this.switchToWelcomeIfEmpty()}handleRemoveRecent(o){this.nlRemoveRecent.emit(o)}handleSwitch(o){this.nlSwitchAccount.emit(o)}handleLoginRecentAccount(o){this.nlLoginRecentAccount.emit(o)}render(){return h(Fragment,{key:"0b747732fe31ffb2d687859a8d5f5452de06cd82"},h("div",{key:"b696865acec55c2dc0f6f3ecf6360028f3911136",class:"p-4 pt-0 overflow-y-auto"},h("h1",{key:"156d95e32b1f14cdccfeabb2cb518bbba51b5da6",class:"nl-title font-bold text-center text-4xl"},this.titlePage),h("p",{key:"1d07d29dda5338c71c7831d4550c99af8717012d",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"3776d52ca658395479d7aaba1d96b707b144da5d",class:"p-4"},!!this.accounts.length&&h("div",{key:"77d80f7e11fd0ad09c5fa13c8b39939a9c011641",class:"max-w-96 mx-auto"},h("p",{key:"f32b9358755c561781e840383a2bc6b2bfe5c392",class:"nl-description font-medium text-sm pb-1.5"},"Active profiles"),h("ul",{key:"789082d6f3ad3d75ebe461cde35846d0ff37e912",class:"p-2 rounded-lg border border-blue-200 flex flex-col w-full gap-0.5"},this.accounts.map(o=>{const s=!!o?.picture,r=o.name||o.nip05||o.pubkey,i=!!r;return h("li",{onClick:()=>this.handleSwitch(o),class:"group hover:bg-gray-400 flex cursor-pointer gap-x-3.5 py-2 px-3 rounded-lg text-sm items-center justify-between"},h("div",{class:"flex items-center gap-x-3.5 w-full"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"absolute top-[-2px] right-[-2px] bg-white border-2 border-white rounded-xl"},h("div",{class:"active h-1.5 w-1.5 bg-green-500 rounded-xl"})),h("div",{class:"group-hover:border-blue-400 uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s?h("img",{class:"w-full rounded-full",src:o.picture,alt:"Logo"}):i?r[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},r),h("nl-login-status",{info:o}))))}))),!!this.recents.length&&h("div",{key:"e89d6cda8386575a0a87a2188a89e5d929b55e8d",class:"max-w-96 mx-auto pt-5"},h("p",{key:"811958459f3694f5e31c2f22c75611c49973b17b",class:"nl-description font-medium text-sm pb-1.5"},"Recent profiles"),h("ul",{key:"0c042b8bec46a9871551bf2965eb9f561b012f22",class:"p-2 rounded-lg border border-gray-200 flex flex-col w-full gap-0.5"},this.recents.map(o=>{const s=!!o?.picture,r=o.name||o.nip05||o.pubkey,i=!!r;return h("li",{onClick:()=>this.handleLoginRecentAccount(o),class:"flex items-center gap-x-3.5 w-full hover:bg-gray-400 flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm justify-between"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"absolute top-[-3px] right-[-3px] bg-white border border-white rounded-xl"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-3 h-3"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))),h("div",{class:"uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s?h("img",{class:"w-full rounded-full",src:o.picture,alt:"Logo"}):i?r[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},r),h("nl-login-status",{info:o})),h("svg",{onClick:a=>{a.stopPropagation(),this.handleRemoveRecent(o)},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full max-w-6 h-6 text-red-500 hover:text-red-600 ml-auto"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})))})))),h("div",{key:"f70f67171d6727d25b9a38bdf48730146c46f4f2",class:"p-4 overflow-y-auto"},h("p",{key:"7289d6c89d90db640ecc63603657280dec8d3a82",class:"nl-footer font-light text-center text-sm max-w-96 mx-auto"},"You can also"," ",h("span",{key:"5c0d9e2954a37fc013d459a78b8a056b916cdd62",onClick:()=>this.handleGoToWelcome(),class:"cursor-pointer pb-3 text-blue-500"},"add another profile"))))}static get watchers(){return{accounts:["watchAccounts"],recents:["watchRecents"]}}static get style(){return NlPreviouslyLoggedStyle0}},[0,"nl-previously-logged",{titlePage:[1,"title-page"],description:[1],accounts:[16],recents:[16]},void 0,{accounts:["watchAccounts"],recents:["watchRecents"]}]);function defineCustomElement$e(){typeof customElements>"u"||["nl-previously-logged","nl-login-status"].forEach(o=>{switch(o){case"nl-previously-logged":customElements.get(o)||customElements.define(o,NlPreviouslyLogged);break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement$e();const nlSigninCss=baseCss,NlSigninStyle0=nlSigninCss,NlSignin=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLogin=createEvent(this,"nlLogin",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Connect to key store",this.description="Please enter your user name.",this.isGood=!1}handleInputChange(o){state.nlSignin.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLogin.emit(state.nlSignin.loginName)}render(){return h(Fragment,{key:"70d5c41620a53b3b84157044f33fdce851d9054d"},h("div",{key:"f8880d45479ef512694fe1300a3c99df8dc756f2",class:"p-4 overflow-y-auto"},h("h1",{key:"fb0379faf61fa39d283fd2d159932b0dba56ed60",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"389dcc582e456ba3241a202aa77026b5fe1f2f1c",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"0cbc1dd3dd3e8437d5f1be8c5612a48ebf589a73",class:"max-w-72 mx-auto"},h("div",{key:"6d8d1a649d6f9b4ec39e91cb50880ec55ae34469",class:"relative mb-2"},h("input",{key:"546c3c63fc1849275b86efdfb8fa5b016ae4282b",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"name@domain.com",value:state.nlSignin.loginName}),h("div",{key:"c91b2fb461ca2ee751a0811381a771ed227d1c7b",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"cd11d6e2e75a3e3e60696d825f494e49d587abc3",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"dd3d6d8e13a01fdb449dadbb5daa79141ae74217","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"e2aff3f44b41a2365f9c561410c2d8733e93943d",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"4f3b61256e93001cbf6cf8e0eea61e73265abd65",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"64e9997f3163465cc99eae8600e7b13251ffe484",titleBtn:"Connect",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"})))))}static get style(){return NlSigninStyle0}},[0,"nl-signin",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$d(){typeof customElements>"u"||["nl-signin","button-base"].forEach(o=>{switch(o){case"nl-signin":customElements.get(o)||customElements.define(o,NlSignin);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$d();const nlSigninBunkerUrlCss=baseCss,NlSigninBunkerUrlStyle0=nlSigninBunkerUrlCss,NlSigninBunkerUrl=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLogin=createEvent(this,"nlLogin",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Connect with bunker url",this.description="Please enter a bunker url provided by key store.",this.isGood=!1}handleInputChange(o){state.nlSigninBunkerUrl.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLogin.emit(state.nlSigninBunkerUrl.loginName)}render(){return h(Fragment,{key:"0ac12fea476faa724c8fa9ba34bebbd58c0b324d"},h("div",{key:"94fc0ef392c7d6abedc1bba2c833ff3e734fde23",class:"p-4 overflow-y-auto"},h("h1",{key:"c8426115b8d12e24e349813302360dc37ae935ca",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"804a1e0b2329e78f80470da090cb06fd3165116f",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"3dad7e0005f66ad81c616983921455bf77b95c31",class:"max-w-72 mx-auto"},h("div",{key:"3e2f1825061c8f65c300676624d244240abb9590",class:"relative mb-2"},h("input",{key:"048e82df548ed4018684b92a93cd20c6ea60af95",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"bunker://...",value:state.nlSigninBunkerUrl.loginName}),h("div",{key:"29afff805cfc2d5e135ece3d5d791e6a1506294b",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"3ca9eb00e319357c690fa7d0027dba1e61d7fb83",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"2914d12af813da649534f1aca80f3b80d1e53193","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})))),h("div",{key:"83617653feed00b5d45b4d8318369a16185ca690",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"3548cd177582a91b8c4b383311f04fd4b8b2002e",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"8ae258e580cae2a08955ff02b4d21601a3be3aee",titleBtn:"Connect",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"})))))}static get style(){return NlSigninBunkerUrlStyle0}},[0,"nl-signin-bunker-url",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$c(){typeof customElements>"u"||["nl-signin-bunker-url","button-base"].forEach(o=>{switch(o){case"nl-signin-bunker-url":customElements.get(o)||customElements.define(o,NlSigninBunkerUrl);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$c();var browser$1={},canPromise$1=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},qrcode={},utils$1$1={};let toSJISFunction;const CODEWORDS_COUNT=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];utils$1$1.getSymbolSize=function(o){if(!o)throw new Error('"version" cannot be null or undefined');if(o<1||o>40)throw new Error('"version" should be in range from 1 to 40');return 4*o+17},utils$1$1.getSymbolTotalCodewords=function(o){return CODEWORDS_COUNT[o]},utils$1$1.getBCHDigit=function(o){let s=0;for(;0!==o;)s++,o>>>=1;return s},utils$1$1.setToSJISFunction=function(o){if("function"!=typeof o)throw new Error('"toSJISFunc" is not a valid function.');toSJISFunction=o},utils$1$1.isKanjiModeEnabled=function(){return void 0!==toSJISFunction},utils$1$1.toSJIS=function(o){return toSJISFunction(o)};var errorCorrectionLevel={},exports;function BitBuffer$1(){this.buffer=[],this.length=0}exports=errorCorrectionLevel,exports.L={bit:1},exports.M={bit:0},exports.Q={bit:3},exports.H={bit:2},exports.isValid=function(o){return o&&void 0!==o.bit&&o.bit>=0&&o.bit<4},exports.from=function(o,s){if(exports.isValid(o))return o;try{return function(r){if("string"!=typeof r)throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return exports.L;case"m":case"medium":return exports.M;case"q":case"quartile":return exports.Q;case"h":case"high":return exports.H;default:throw new Error("Unknown EC Level: "+r)}}(o)}catch{return s}},BitBuffer$1.prototype={get:function(o){const s=Math.floor(o/8);return 1==(this.buffer[s]>>>7-o%8&1)},put:function(o,s){for(let r=0;r>>s-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(o){const s=Math.floor(this.length/8);this.buffer.length<=s&&this.buffer.push(0),o&&(this.buffer[s]|=128>>>this.length%8),this.length++}};var bitBuffer=BitBuffer$1;function BitMatrix$1(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}BitMatrix$1.prototype.set=function(o,s,r,i){const a=o*this.size+s;this.data[a]=r,i&&(this.reservedBit[a]=!0)},BitMatrix$1.prototype.get=function(o,s){return this.data[o*this.size+s]},BitMatrix$1.prototype.xor=function(o,s,r){this.data[o*this.size+s]^=r},BitMatrix$1.prototype.isReserved=function(o,s){return this.reservedBit[o*this.size+s]};var bitMatrix=BitMatrix$1,alignmentPattern={};!function(o){const s=utils$1$1.getSymbolSize;o.getRowColCoords=function(r){if(1===r)return[];const i=Math.floor(r/7)+2,a=s(r),c=145===a?26:2*Math.ceil((a-13)/(2*i-2)),y=[a-7];for(let w=1;w=0&&y<=7},o.from=function(y){return o.isValid(y)?parseInt(y,10):void 0},o.getPenaltyN1=function(y){const w=y.size;let C=0,T=0,S=0,A=null,I=null;for(let N=0;N=5&&(C+=T-5+3),A=Z,T=1),Z=y.get(G,N),Z===I?S++:(S>=5&&(C+=S-5+3),I=Z,S=1)}T>=5&&(C+=T-5+3),S>=5&&(C+=S-5+3)}return C},o.getPenaltyN2=function(y){const w=y.size;let C=0;for(let T=0;T=10&&(1488===T||93===T)&&C++,S=S<<1&2047|y.get(I,A),I>=10&&(1488===S||93===S)&&C++}return 40*C},o.getPenaltyN4=function(y){let w=0;const C=y.data.length;for(let T=0;T=0;){const c=a[0];for(let w=0;w0){const a=new Uint8Array(this.degree);return a.set(r,i),a}return r};var reedSolomonEncoder=ReedSolomonEncoder$1,version={},mode={},versionCheck={isValid:function(o){return!isNaN(o)&&o>=1&&o<=40}},regex$1={};const numeric="[0-9]+",alphanumeric="[A-Z $%*+\\-./:]+";let kanji="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";kanji=kanji.replace(/u/g,"\\u");const byte="(?:(?![A-Z0-9 $%*+\\-./:]|"+kanji+")(?:.|[\r\n]))+";regex$1.KANJI=new RegExp(kanji,"g"),regex$1.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),regex$1.BYTE=new RegExp(byte,"g"),regex$1.NUMERIC=new RegExp(numeric,"g"),regex$1.ALPHANUMERIC=new RegExp(alphanumeric,"g");const TEST_KANJI=new RegExp("^"+kanji+"$"),TEST_NUMERIC=new RegExp("^"+numeric+"$"),TEST_ALPHANUMERIC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");regex$1.testKanji=function(o){return TEST_KANJI.test(o)},regex$1.testNumeric=function(o){return TEST_NUMERIC.test(o)},regex$1.testAlphanumeric=function(o){return TEST_ALPHANUMERIC.test(o)},function(o){const s=versionCheck,r=regex$1;o.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},o.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},o.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},o.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},o.MIXED={bit:-1},o.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!s.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},o.getBestModeForData=function(i){return r.testNumeric(i)?o.NUMERIC:r.testAlphanumeric(i)?o.ALPHANUMERIC:r.testKanji(i)?o.KANJI:o.BYTE},o.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},o.isValid=function(i){return i&&i.bit&&i.ccBits},o.from=function(i,a){if(o.isValid(i))return i;try{return function(c){if("string"!=typeof c)throw new Error("Param is not a string");switch(c.toLowerCase()){case"numeric":return o.NUMERIC;case"alphanumeric":return o.ALPHANUMERIC;case"kanji":return o.KANJI;case"byte":return o.BYTE;default:throw new Error("Unknown mode: "+c)}}(i)}catch{return a}}}(mode),function(o){const s=utils$1$1,r=errorCorrectionCode,i=errorCorrectionLevel,a=mode,c=versionCheck,y=s.getBCHDigit(7973);function w(T,S){return a.getCharCountIndicator(T,S)+4}function C(T,S){let A=0;return T.forEach(function(I){const N=w(I.mode,S);A+=N+I.getBitsLength()}),A}o.from=function(T,S){return c.isValid(T)?parseInt(T,10):S},o.getCapacity=function(T,S,A){if(!c.isValid(T))throw new Error("Invalid QR Code version");void 0===A&&(A=a.BYTE);const I=8*(s.getSymbolTotalCodewords(T)-r.getTotalCodewordsCount(T,S));if(A===a.MIXED)return I;const N=I-w(A,T);switch(A){case a.NUMERIC:return Math.floor(N/10*3);case a.ALPHANUMERIC:return Math.floor(N/11*2);case a.KANJI:return Math.floor(N/13);default:return Math.floor(N/8)}},o.getBestVersionForData=function(T,S){let A;const I=i.from(S,i.M);if(Array.isArray(T)){if(T.length>1)return function(N,G){for(let Z=1;Z<=40;Z++)if(C(N,Z)<=o.getCapacity(Z,G,a.MIXED))return Z}(T,I);if(0===T.length)return 1;A=T[0]}else A=T;return function(N,G,Z){for(let ne=1;ne<=40;ne++)if(G<=o.getCapacity(ne,Z,N))return ne}(A.mode,A.getLength(),I)},o.getEncodedBits=function(T){if(!c.isValid(T)||T<7)throw new Error("Invalid QR Code version");let S=T<<12;for(;s.getBCHDigit(S)-y>=0;)S^=7973<=0;)i^=G15<0&&(r=this.data.substr(s),i=parseInt(r,10),o.put(i,3*a+1))};var numericData=NumericData;const Mode$3=mode,ALPHA_NUM_CHARS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function AlphanumericData(o){this.mode=Mode$3.ALPHANUMERIC,this.data=o}AlphanumericData.getBitsLength=function(o){return 11*Math.floor(o/2)+o%2*6},AlphanumericData.prototype.getLength=function(){return this.data.length},AlphanumericData.prototype.getBitsLength=function(){return AlphanumericData.getBitsLength(this.data.length)},AlphanumericData.prototype.write=function(o){let s;for(s=0;s+2<=this.data.length;s+=2){let r=45*ALPHA_NUM_CHARS.indexOf(this.data[s]);r+=ALPHA_NUM_CHARS.indexOf(this.data[s+1]),o.put(r,11)}this.data.length%2&&o.put(ALPHA_NUM_CHARS.indexOf(this.data[s]),6)};var alphanumericData=AlphanumericData;const Mode$2=mode;function ByteData(o){this.mode=Mode$2.BYTE,this.data="string"==typeof o?(new TextEncoder).encode(o):new Uint8Array(o)}ByteData.getBitsLength=function(o){return 8*o},ByteData.prototype.getLength=function(){return this.data.length},ByteData.prototype.getBitsLength=function(){return ByteData.getBitsLength(this.data.length)},ByteData.prototype.write=function(o){for(let s=0,r=this.data.length;s=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[s]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),o.put(r,13)}};var kanjiData=KanjiData,dijkstra={exports:{}};(function(o){var s={single_source_shortest_paths:function(r,i,a){var c={},y={};y[i]=0;var w,C,T,S,A,I,G=s.PriorityQueue.make();for(G.push(i,0);!G.empty();)for(T in C=(w=G.pop()).value,S=w.cost,A=r[C]||{})A.hasOwnProperty(T)&&(I=S+A[T],(void 0===y[T]||y[T]>I)&&(y[T]=I,G.push(T,I),c[T]=C));if(void 0!==a&&void 0===y[a]){var Z=["Could not find a path from ",i," to ",a,"."].join("");throw new Error(Z)}return c},extract_shortest_path_from_predecessor_list:function(r,i){for(var a=[],c=i;c;)a.push(c),c=r[c];return a.reverse(),a},find_path:function(r,i,a){var c=s.single_source_shortest_paths(r,i,a);return s.extract_shortest_path_from_predecessor_list(c,a)},PriorityQueue:{make:function(r){var i,a=s.PriorityQueue,c={};for(i in r=r||{},a)a.hasOwnProperty(i)&&(c[i]=a[i]);return c.queue=[],c.sorter=r.sorter||a.default_sorter,c},default_sorter:function(r,i){return r.cost-i.cost},push:function(r,i){this.queue.push({value:r,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};o.exports=s})(dijkstra),function(o){const s=mode,r=numericData,i=alphanumericData,a=byteData,c=kanjiData,y=regex$1,w=utils$1$1,C=dijkstra.exports;function T(G){return unescape(encodeURIComponent(G)).length}function S(G,Z,ne){const be=[];let me;for(;null!==(me=G.exec(ne));)be.push({data:me[0],index:me.index,mode:Z,length:me[0].length});return be}function A(G){const Z=S(y.NUMERIC,s.NUMERIC,G),ne=S(y.ALPHANUMERIC,s.ALPHANUMERIC,G);let be,me;return w.isKanjiModeEnabled()?(be=S(y.BYTE,s.BYTE,G),me=S(y.KANJI,s.KANJI,G)):(be=S(y.BYTE_KANJI,s.BYTE,G),me=[]),Z.concat(ne,be,me).sort(function(pe,Te){return pe.index-Te.index}).map(function(pe){return{data:pe.data,mode:pe.mode,length:pe.length}})}function I(G,Z){switch(Z){case s.NUMERIC:return r.getBitsLength(G);case s.ALPHANUMERIC:return i.getBitsLength(G);case s.KANJI:return c.getBitsLength(G);case s.BYTE:return a.getBitsLength(G)}}function N(G,Z){let ne;const be=s.getBestModeForData(G);if(ne=s.from(Z,be),ne!==s.BYTE&&ne.bit=0?xe[xe.length-1]:null;return Me&&Me.mode===Re.mode?(xe[xe.length-1].data+=Re.data,xe):(xe.push(Re),xe)},[]))},o.rawSplit=function(G){return o.fromArray(A(G,w.isKanjiModeEnabled()))}}(segments);const Utils$1=utils$1$1,ECLevel=errorCorrectionLevel,BitBuffer=bitBuffer,BitMatrix=bitMatrix,AlignmentPattern=alignmentPattern,FinderPattern=finderPattern,MaskPattern=maskPattern,ECCode=errorCorrectionCode,ReedSolomonEncoder=reedSolomonEncoder,Version=version,FormatInfo=formatInfo,Mode=mode,Segments=segments;function setupFinderPattern(o,s){const r=o.size,i=FinderPattern.getPositions(s);for(let a=0;a=0&&w<=6&&(0===C||6===C)||C>=0&&C<=6&&(0===w||6===w)||w>=2&&w<=4&&C>=2&&C<=4,!0)}}function setupTimingPattern(o){const s=o.size;for(let r=8;r>w&1),o.set(a,c,y,!0),o.set(c,a,y,!0)}function setupFormatInfo(o,s,r){const i=o.size,a=FormatInfo.getEncodedBits(s,r);let c,y;for(c=0;c<15;c++)y=1==(a>>c&1),o.set(c<6?c:c<8?c+1:i-15+c,8,y,!0),o.set(8,c<8?i-c-1:c<9?15-c-1+1:15-c-1,y,!0);o.set(i-8,8,1,!0)}function setupData(o,s){const r=o.size;let i=-1,a=r-1,c=7,y=0;for(let w=r-1;w>0;w-=2)for(6===w&&w--;;){for(let C=0;C<2;C++)if(!o.isReserved(a,w-C)){let T=!1;y>>c&1)),o.set(a,w-C,T),c--,-1===c&&(y++,c=7)}if(a+=i,a<0||r<=a){a-=i,i=-i;break}}}function createData(o,s,r){const i=new BitBuffer;r.forEach(function(y){i.put(y.mode.bit,4),i.put(y.getLength(),Mode.getCharCountIndicator(y.mode,o)),y.write(i)});const a=8*(Utils$1.getSymbolTotalCodewords(o)-ECCode.getTotalCodewordsCount(o,s));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(a-i.getLengthInBits())/8;for(let y=0;y=7&&setupVersionInfo(C,s),setupData(C,y),isNaN(i)&&(i=MaskPattern.getBestMask(C,setupFormatInfo.bind(null,C,r))),MaskPattern.applyMask(i,C),setupFormatInfo(C,r,i),{modules:C,version:s,errorCorrectionLevel:r,maskPattern:i,segments:a}}qrcode.create=function(o,s){if(void 0===o||""===o)throw new Error("No input text");let r,i,a=ECLevel.M;return void 0!==s&&(a=ECLevel.from(s.errorCorrectionLevel,ECLevel.M),r=Version.from(s.version),i=MaskPattern.from(s.maskPattern),s.toSJISFunc&&Utils$1.setToSJISFunction(s.toSJISFunc)),createSymbol(o,r,a,i)};var canvas={},utils$3={};(function(o){function s(r){if("number"==typeof r&&(r=r.toString()),"string"!=typeof r)throw new Error("Color should be defined as hex string");let i=r.slice().replace("#","").split("");if(i.length<3||5===i.length||i.length>8)throw new Error("Invalid hex color: "+r);3!==i.length&&4!==i.length||(i=Array.prototype.concat.apply([],i.map(function(c){return[c,c]}))),6===i.length&&i.push("F","F");const a=parseInt(i.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:255&a,hex:"#"+i.slice(0,6).join("")}}o.getOptions=function(r){r||(r={}),r.color||(r.color={});const a=r.width&&r.width>=21?r.width:void 0;return{width:a,scale:a?4:r.scale||4,margin:null==r.margin||r.margin<0?4:r.margin,color:{dark:s(r.color.dark||"#000000ff"),light:s(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},o.getScale=function(r,i){return i.width&&i.width>=r+2*i.margin?i.width/(r+2*i.margin):i.scale},o.getImageWidth=function(r,i){const a=o.getScale(r,i);return Math.floor((r+2*i.margin)*a)},o.qrToImageData=function(r,i,a){const c=i.modules.size,y=i.modules.data,w=o.getScale(c,a),C=Math.floor((c+2*a.margin)*w),T=a.margin*w,S=[a.color.light,a.color.dark];for(let A=0;A=T&&I>=T&&A0&&C>0&&o[w-1]||(i+=c?svgCmd("M",C+r,.5+T+r):svgCmd("m",a,0),a=0,c=!1),C+1':"",C="',S=''+w+C+"\n";return"function"==typeof r&&r(null,S),S};const canPromise=canPromise$1,QRCode=qrcode,CanvasRenderer=canvas,SvgRenderer=svgTag;function renderCanvas(o,s,r,i,a){const c=[].slice.call(arguments,1),y=c.length,w="function"==typeof c[y-1];if(!w&&!canPromise())throw new Error("Callback required as last argument");if(!w){if(y<1)throw new Error("Too few arguments provided");return 1===y?(r=s,s=i=void 0):2!==y||s.getContext||(i=r,r=s,s=void 0),new Promise(function(C,T){try{const S=QRCode.create(r,i);C(o(S,s,i))}catch(S){T(S)}})}if(y<2)throw new Error("Too few arguments provided");2===y?(a=r,r=s,s=i=void 0):3===y&&(s.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=r,r=s,s=void 0));try{const C=QRCode.create(r,i);a(null,o(C,s,i))}catch(C){a(C)}}browser$1.create=QRCode.create,browser$1.toCanvas=renderCanvas.bind(null,CanvasRenderer.render),browser$1.toDataURL=renderCanvas.bind(null,CanvasRenderer.renderToDataURL),browser$1.toString=renderCanvas.bind(null,function(o,s,r){return SvgRenderer.render(o,r)});const nlSigninConnectionStringCss=baseCss,NlSigninConnectionStringStyle0=nlSigninConnectionStringCss,NlSigninConnectionString=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleLogin="Connection string",this.description="Scan or copy the connection string with key store app",this.connectionString="",this.isCopy=!1}componentDidLoad(){this.generateQRCode()}generateQRCode(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(o.connectionString&&o.canvasElement)try{yield browser$1.toCanvas(o.canvasElement,o.connectionString)}catch(s){console.error("Error generating QR Code:",s)}})()}copyToClipboard(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{yield navigator.clipboard.writeText(o.connectionString),o.isCopy=!0,setTimeout(()=>{o.isCopy=!1},1500)}catch(s){console.error("Failed to copy connectionString: ",s)}})()}render(){return h(Fragment,{key:"4dfdad6e2e948203e0dfe7aa8608d95cd3495c41"},h("div",{key:"852159a0231473f13c6452e307b90f02e7efd445",class:"p-4 overflow-y-auto"},h("h1",{key:"07859d4b83c5fb6ac12732f1708db3ba3b700380",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"200d00f3785f4a684c798225f0061d9ef4ed2fa1",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("canvas",{key:"e27335a378a7853fd73cdf0b701a9922f9e87a98",class:"mx-auto mb-2",ref:o=>this.canvasElement=o}),h("div",{key:"5e93edcf3b13f1d02b6feca2a192ef275891032a",class:"px-4"},h("div",{key:"96643d192fc3e3c652027fc7b9da2c8186205b1f",class:"max-w-72 mx-auto"},h("div",{key:"24faf8ea390198fc185f94d77d0ac3faa3c03e9f",class:"relative mb-2"},h("input",{key:"45f531795476a136897925509955fa9fdaf66503",type:"text",class:"nl-input peer py-3 px-4 pe-11 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"npub or name@domain",value:this.connectionString,disabled:!0}),h("div",{key:"3f3bb777777890fb68152c94d16cd83abde57cac",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"c99e6d36b5f3e85a03b2922a3984803601ce4747",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"1d72c6d727215e897c88b923f1eb65a83bc9eda9","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"5c40e5fd22377e528bdc3fe77db8975dfe015286","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),this.isCopy?h("div",{class:"absolute inset-y-0 end-0 flex items-center p-2 rounded-lg"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#00cc00",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))):h("div",{class:"absolute inset-y-0 end-0 flex items-center cursor-pointer p-2 rounded-lg",onClick:()=>this.copyToClipboard()},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"})))),h("div",{key:"26403008de1debe9660fbacda25b6c5eb1ce81c8",class:"mt-10 justify-center items-center flex gap-2"},h("span",{key:"2cc09432eb515db009f4ca5909b8ba943c90bbd6",slot:"icon-start",class:"animate-spin-loading inline-block w-[20px] h-[20px] border-[2px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}),h("span",{key:"b2d8a70b65950ec00d9544c4ba50a51bffc48335",class:"nl-footer"},"Waiting for connection")))))}static get style(){return NlSigninConnectionStringStyle0}},[0,"nl-signin-connection-string",{titleLogin:[1,"title-login"],description:[1],connectionString:[1,"connection-string"],isCopy:[32]}]);function defineCustomElement$b(){typeof customElements>"u"||["nl-signin-connection-string"].forEach(o=>{"nl-signin-connection-string"===o&&(customElements.get(o)||customElements.define(o,NlSigninConnectionString))})}defineCustomElement$b();const nlSigninOtpCss=baseCss,NlSigninOtpStyle0=nlSigninOtpCss,NlSigninOtp=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginOTPUser=createEvent(this,"nlLoginOTPUser",7),this.nlLoginOTPCode=createEvent(this,"nlLoginOTPCode",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Log in with DM",this.description="Please enter your user name or npub, and we will send you a direct message with a one-time code.",this.titleLoginOTP="Enter the code",this.descriptionOTP="Please enter the one-time code we sent to you as a direct message on Nostr.",this.isGood=!1}handleInputChange(o){state.isOTP?state.nlSigninOTP.code=o.target.value:(state.nlSigninOTP.loginName=o.target.value,this.nlCheckLogin.emit(state.nlSigninOTP.loginName))}handleLogin(o){o.preventDefault(),state.isOTP?this.nlLoginOTPCode.emit(state.nlSigninOTP.code):this.nlLoginOTPUser.emit(state.nlSigninOTP.loginName)}render(){return h(Fragment,{key:"a93b9af1f6a2a881d75e9aa1e547a63678ad4dc5"},h("div",{key:"ae6c700a09e753e0148b5ddfd27f20c2a0850d3d",class:"p-4 overflow-y-auto"},h("h1",{key:"e0998107834bf9e90b6372580ccb31bb0d726904",class:"nl-title font-bold text-center text-2xl"},state.isOTP?this.titleLoginOTP:this.titleLogin),h("p",{key:"29e894bbfcdfb326ae807055c57fbb32b1b4bfa9",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},state.isOTP?this.descriptionOTP:this.description)),h("div",{key:"911cee576416be96c64d38fc362cdb656293e198",class:"max-w-72 mx-auto"},h("div",{key:"f72d607dd7beb554c248c7c4128de6d33a8f246f",class:"relative mb-2"},h("input",{key:"24e6a78d257e84d4f5c71b4aee31c453a504cd93",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:state.isOTP?"code from direct message":"npub or name@domain",value:state.isOTP?state.nlSigninOTP.code:state.nlSigninOTP.loginName}),h("div",{key:"438171f72c2c64d1754a2d5fda95a7b5d3816894",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"b31663307181bb1d58884a3ecce192728b164b70",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"8b80421658eea7b0b49708c994a9d94b965895f1","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"6d184bdf20d124a312e1817e27111de1fd0b8eb1","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{key:"ab8948cbd67e068fc2f113fcc5e61137d799e636",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"719399b9f40ae23ba11ae22e4223314c815c821f",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"b2ce8bbaceeddc82ea079dba280dc04600d7f725",titleBtn:"Log in",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading&&h("span",{key:"7764fb6ecf8452c06047dc7832e274ebccdd6379",slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}))))}static get style(){return NlSigninOtpStyle0}},[0,"nl-signin-otp",{titleLogin:[1,"title-login"],description:[1],titleLoginOTP:[1,"title-login-o-t-p"],descriptionOTP:[1,"description-o-t-p"],isGood:[32]}]);function defineCustomElement$a(){typeof customElements>"u"||["nl-signin-otp","button-base"].forEach(o=>{switch(o){case"nl-signin-otp":customElements.get(o)||customElements.define(o,NlSigninOtp);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$a();const nlSigninReadOnlyCss=baseCss,NlSigninReadOnlyStyle0=nlSigninReadOnlyCss,NlSigninReadOnly=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginReadOnly=createEvent(this,"nlLoginReadOnly",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Log in to read only",this.description="Please enter the user name or npub of any Nostr user.",this.isGood=!1}handleInputChange(o){state.nlSigninReadOnly.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLoginReadOnly.emit(state.nlSigninReadOnly.loginName)}render(){return h(Fragment,{key:"5ff970ee20c505cab00b3c9263dd9a6ebd6b62a8"},h("div",{key:"036a6b49de93c20ed4af3c47c7ecc10c81818f86",class:"p-4 overflow-y-auto"},h("h1",{key:"97951254c835d38f95832882225fdc2b50bf578a",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"e811a52ee24540b018f95ebffd1406330005a5f2",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"ae07b4fbe663e17733b6bd1efaa1c974276c8fd6",class:"max-w-72 mx-auto"},h("div",{key:"0a935603a2742e049bd5b2ca3c1b13f07d63ac2b",class:"relative mb-2"},h("input",{key:"1221b6501de2c739fc1470f82142b623afe4749b",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"npub or name@domain",value:state.nlSigninReadOnly.loginName}),h("div",{key:"820f77d6c814aea1794463b6216df338c6f0863d",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"9922ba1b7b536ddc8d560d76087fd735e1aa000c",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"250dae1273e5346920bb6d5cad3644c678a9eae8","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"e94192cf4f271cf3477ebe2f186597a5c5a7b474","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{key:"8d548af75b9c39dfe0bf2eeae805e58d2cb324c1",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"7cc88f5116a24e1b309e320c63c34f5cc8c5b656",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"156e8a30228a8d34009c5cb020588c82f039eac5",titleBtn:"Log in",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading&&h("span",{key:"14082758440bf5ec897629c92faf949f80895be8",slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}))))}static get style(){return NlSigninReadOnlyStyle0}},[0,"nl-signin-read-only",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$9(){typeof customElements>"u"||["nl-signin-read-only","button-base"].forEach(o=>{switch(o){case"nl-signin-read-only":customElements.get(o)||customElements.define(o,NlSigninReadOnly);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$9();const nlSignupCss=baseCss,NlSignupStyle0=nlSignupCss,NlSignup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlSignup=createEvent(this,"nlSignup",7),this.nlCheckSignup=createEvent(this,"nlCheckSignup",7),this.fetchHandler=createEvent(this,"fetchHandler",7),this.titleSignup="Create keys with key store",this.description="Choose some username and a key store service.",this.bunkers="nsec.app,highlighter.com",this.isAvailable=!1}formatServers(o){return o.split(",").map(s=>({name:"@"+s,value:s}))}handleInputChange(o){state.nlSignup.signupName=o.target.value,this.nlCheckSignup.emit(`${o.target.value}@${state.nlSignup.domain}`)}handleDomainSelect(o){state.nlSignup.domain=o.detail,this.nlCheckSignup.emit(`${state.nlSignup.signupName}@${o.detail}`)}handleCreateAccount(o){o.preventDefault(),this.nlSignup.emit(`${state.nlSignup.signupName}@${state.nlSignup.domain}`)}watchBunkersHandler(o){state.nlSignup.servers=this.formatServers(o)}componentWillLoad(){state.nlSignup.servers=this.formatServers(this.bunkers)}render(){return h(Fragment,{key:"f7b56fee1ec9c6dd3632bed5d46c661b090a32cd"},h("div",{key:"a7fd1b6249688b0974a0c56a0573f36eb1f1d7a4",class:"p-4 overflow-y-auto"},h("h1",{key:"01d5a745026ea0a293fd248880f00d335355f5bf",class:"nl-title font-bold text-center text-2xl"},this.titleSignup),h("p",{key:"1fe9362df4c08bee7966a3d7f06aca0c8c9f9e38",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"15eadc1d7189a9a99efad1c42a430fb316d3ae1a",class:"max-w-72 mx-auto"},h("div",{key:"011c9eb5d2d16cd6b784f0d879fd4f504c522905",class:"relative mb-2"},h("input",{key:"123e130805b229fe68c64765c434a36840cc137e",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"Name",value:state.nlSignup.signupName}),h("div",{key:"ee00cfd158acb362567e909a6f90d2651a4acd05",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"bc8a81c9a62cb215efb0cdff30980ee447371ec5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isAvailable?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"fb78fc743ec535bb92d30e2b43927d499f6299ca","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"f541cd6ed4d04a52afb093053c6fea85d0926ce1",class:"mb-2"},h("nl-select",{key:"dbce850d0c1d2e1cfdf4ce250978ce508abc173a",onSelectDomain:o=>this.handleDomainSelect(o),selected:0,options:state.nlSignup.servers})),h("div",{key:"a68612eabd83e3f7e61b533fd247f1768554b0c1",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"25c8a89289071d5fca16b5e8918026c41afb3a77",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"6cbf8ff97e9ebf1bd830e86337219ee386f978ea",disabled:state.isLoading,onClick:o=>this.handleCreateAccount(o),titleBtn:"Create profile"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get watchers(){return{bunkers:["watchBunkersHandler"]}}static get style(){return NlSignupStyle0}},[0,"nl-signup",{titleSignup:[1,"title-signup"],description:[1],bunkers:[1],isAvailable:[32]},void 0,{bunkers:["watchBunkersHandler"]}]);function defineCustomElement$8(){typeof customElements>"u"||["nl-signup","button-base","nl-select"].forEach(o=>{switch(o){case"nl-signup":customElements.get(o)||customElements.define(o,NlSignup);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$8();const nlWelcomeCss=baseCss,NlWelcomeStyle0=nlWelcomeCss,NlWelcome=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleWelcome="Welcome to Nostr!",this.description="This website is part of the Nostr network. Log in with your Nostr profile or sign up to join."}handleChangeScreen(o){state.path=[...state.path,o]}render(){return h(Fragment,{key:"d3fb00029cb12cc8b00f26eaed6bd76e90402363"},h("div",{key:"e41a79654adb620ee433848c965fd872cdfcc58c",class:"p-4 overflow-y-auto"},h("h1",{key:"28e5c6ec6a4e4982a386daff93446db4efcd0737",class:"nl-title font-bold text-center text-4xl"},this.titleWelcome),h("p",{key:"d0afbc9587aafe4d93c547b34f5f55c268b42e48",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"d5570f014a56f326348b8077429c198b55b66683",class:"max-w-52 mx-auto pb-5"},h("div",{key:"3f4095a715c960544264eae1dc809c3bc68de2a8",class:"flex gap-3 flex-col mb-2"},h("button-base",{key:"a154d028e883fb9d9ea1823a5df0d2500bfdb726",titleBtn:"Log in",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.WELCOME_LOGIN)},h("svg",{key:"2b256c1a23f88a3232e59fa3d56c344eae398690",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"bf629d871a100f59c2b465d50f58081290b4300a","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})))),h("button-base",{key:"6fdf8ff44483ec67cff96015ebc7d1832a676fa3",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.WELCOME_SIGNUP),titleBtn:"Sign up"},h("svg",{key:"6714790ee5ccb91a6bda3424e515ea273f2163f9",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"e31e8d7667a33a8713387f8eb73252a4016b5de4","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlWelcomeStyle0}},[0,"nl-welcome",{titleWelcome:[1,"title-welcome"],description:[1]}]);function defineCustomElement$7(){typeof customElements>"u"||["nl-welcome","button-base"].forEach(o=>{switch(o){case"nl-welcome":customElements.get(o)||customElements.define(o,NlWelcome);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$7();const nlWelcomeSigninCss=baseCss,NlWelcomeSigninStyle0=nlWelcomeSigninCss,NlWelcomeSignIn=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginExtension=createEvent(this,"nlLoginExtension",7),this.titleWelcome="Log in",this.hasExtension=!1,this.authMethods=[],this.hasOTP=!1}handleChangeScreen(o){state.path=[...state.path,o],o===CURRENT_MODULE.EXTENSION&&this.nlLoginExtension.emit()}allowAuthMethod(o){return!this.authMethods.length||this.authMethods.includes(o)}renderSignInWithExtension(){return h("button-base",{onClick:()=>this.handleChangeScreen(CURRENT_MODULE.EXTENSION),titleBtn:"With extension"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"})))}render(){return h(Fragment,{key:"49598c3d31f3a4c2fc9d3579283163c43f19b6c7"},h("div",{key:"6b3c16634c1dc4be65c425edb65f5070990fee91",class:"p-4 overflow-y-auto"},h("h1",{key:"1f60d1f489afaa42c47e28563fadc0fa7b46a3df",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome)),h("div",{key:"01507d2b6d0bba54527e12d664ddefd7244a9697",class:"max-w-52 mx-auto pb-5"},h("div",{key:"82deccfff688e1cbb67191c90a3ca6f22f285744",class:"flex gap-3 flex-col"},this.allowAuthMethod("connect")&&h("button-base",{key:"177bbcf244409242ab1c7c03cfb60300e848fed2",titleBtn:"Connect",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.CONNECT)},h("svg",{key:"1fa2c695562eb093430389253dd7f94733d63976",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"16323646bde098c55c787cc90b66b4952c803542","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"}))),this.allowAuthMethod("readOnly")&&h("button-base",{key:"9b6d546d7f34ca197baa13ec0f280890ff0d8c7f",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_READ_ONLY),titleBtn:"Read only"},h("svg",{key:"2ab8c1763d88e7c5678cafc3c15817d60a7bb6c0",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"faa5a61e8d35daf7fbb64fc5783c23b8881d8100","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"6083db853e798c9764b11ed4701dab048d4f30f2","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),this.hasOTP&&this.allowAuthMethod("otp")&&h("button-base",{key:"f45b1afed2d9b10a2d77eaa59b1aa168eabb191d",titleBtn:"One-time code",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_OTP)},h("svg",{key:"84fbe5952fecd429f8074c65675d2111eb2d7fe8",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"83dc6eaa4e128065dfd7e97f0950cd00f0be6d54","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))),this.hasExtension&&this.allowAuthMethod("extension")&&this.renderSignInWithExtension(),!this.allowAuthMethod("connect")&&!this.hasExtension&&h("p",{key:"f94e3302a807855f45855302482542e6f79f8ec8",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"No Nostr extension!"),!this.allowAuthMethod("connect")&&this.hasExtension&&!this.allowAuthMethod("extension")&&h("p",{key:"552762dfd2b9d24c7279c1f500ccd94500e35be1",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Use advanced options."))))}static get style(){return NlWelcomeSigninStyle0}},[0,"nl-welcome-signin",{titleWelcome:[1,"title-welcome"],hasExtension:[4,"has-extension"],authMethods:[16],hasOTP:[4,"has-o-t-p"]}]);function defineCustomElement$6(){typeof customElements>"u"||["nl-welcome-signin","button-base"].forEach(o=>{switch(o){case"nl-welcome-signin":customElements.get(o)||customElements.define(o,NlWelcomeSignIn);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$6();const nlWelcomeSignupCss=baseCss,NlWelcomeSignupStyle0=nlWelcomeSignupCss,NlWelcomeSignUp=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleWelcome="Sign up",this.description="Nostr profiles are based on cryptographic keys. You can create keys right here, or with a key storage app."}handleChangeScreen(o){state.path=[...state.path,o]}render(){return h(Fragment,{key:"95a13ee24b5203b1f1fe9f355524abba9dc55dcb"},h("div",{key:"23209055b5ab42ed4e147f0d7e38ec320437f783",class:"p-4 overflow-y-auto"},h("h1",{key:"8f06a983aa9ca0caa01dd35d4907552696ffc996",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome),h("p",{key:"14d88998c67951b047b79dd0d9358ae2b7a19895",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"62344241204e1c08e2d497b0bbc28b9aff3d7640",class:"max-w-52 mx-auto pb-5"},h("div",{key:"641c269ff23d94330acf465e62d294ce42b05212",class:"flex gap-3 flex-col"},h("button-base",{key:"aaa7f28f647f05506e93756df2895cef952b2912",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOCAL_SIGNUP),titleBtn:"Create keys"},h("svg",{key:"2e8c77cdd122a51638f9a2e606d9ff33581b84c7",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"b6d0e6199dcc11a7ac9f4ba47c86219e325fa987","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))),h("button-base",{key:"3c239d1df872ac71424478fd3f6857c5a9148ef6",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.SIGNUP),titleBtn:"With key store"},h("svg",{key:"4600c4e8bb4e62d9a0303ae1abc464c6d6fc7899",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"c36bef296a15f3bb43c984ed083a8defeb530ab4","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))))))}static get style(){return NlWelcomeSignupStyle0}},[0,"nl-welcome-signup",{titleWelcome:[1,"title-welcome"],description:[1]}]);function defineCustomElement$5(){typeof customElements>"u"||["nl-welcome-signup","button-base"].forEach(o=>{switch(o){case"nl-welcome-signup":customElements.get(o)||customElements.define(o,NlWelcomeSignUp);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$5();const nlAuthCss=baseCss,NlAuthStyle0=nlAuthCss,NlAuth=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.nlChangeDarkMode=createEvent(this,"nlChangeDarkMode",7),this.theme="default",this.bunkers="",this.startScreen=CURRENT_MODULE.WELCOME,this.authMethods=[],this.hasExtension=!1,this.hasOTP=!1,this.isLoading=!1,this.isLoadingExtension=!1,this.isOTP=!1,this.authUrl="",this.iframeUrl="",this.error="",this.localSignup=!1,this.accounts=[],this.recents=[],this.darkMode=!1,this.welcomeTitle="",this.welcomeDescription="",this.connectionString="",this.connectionStringServices=[]}watchLocalSignupHandler(o){state.localSignup=o}watchLoadingHandler(o){state.isLoading=o}watchLoadingExtensionHandler(o){state.isLoadingExtension=o}watchOTPHandler(o){state.isOTP=o}watchAuthUrlHandler(o){state.authUrl=o}watchIframeUrlHandler(o){state.iframeUrl=o}watchErrorHandler(o){state.error=o}handleClose(){this.nlCloseModal.emit()}handleChangeDarkMode(){this.nlChangeDarkMode.emit(!this.darkMode)}componentWillLoad(){state.path=[this.startScreen],state.localSignup=this.localSignup,state.error="",state.iframeUrl="",state.authUrl="",state.isLoading=!1,state.isLoadingExtension=!1,state.isOTP=!1,console.log("path",state.path)}handleClickToBack(){state.path.pop(),state.path=[...state.path],state.isLoading=!1,state.isLoadingExtension=!1,state.authUrl="",state.isOTP=!1}switchSignSignUpStrategy(o){state.path=CURRENT_MODULE.LOCAL_SIGNUP!==o?[CURRENT_MODULE.WELCOME,o]:[CURRENT_MODULE.WELCOME,CURRENT_MODULE.WELCOME_SIGNUP,o]}render(){const o="w-full h-full fixed top-0 start-0 z-[80] overflow-x-hidden overflow-y-auto flex items-center "+(this.darkMode?"dark":""),s=state.path.at(-1),r=state.isOTP||s!==CURRENT_MODULE.INFO&&s!==CURRENT_MODULE.CONFIRM_LOGOUT&&s!==CURRENT_MODULE.IMPORT_FLOW&&s!==CURRENT_MODULE.WELCOME&&s!==CURRENT_MODULE.EXTENSION&&s!==CURRENT_MODULE.IFRAME&&s!==CURRENT_MODULE.PREVIOUSLY_LOGGED,i=s!==CURRENT_MODULE.IFRAME&&(!this.authMethods.length||!this.localSignup&&this.authMethods.includes("connect")||this.localSignup&&this.authMethods.includes("local"));return h("div",{class:`theme-${this.theme}`,dir:"ltr"},h("div",{class:o},h("div",{onClick:()=>this.handleClose(),class:"absolute top-0 left-0 w-full h-full bg-gray-500 bg-opacity-75 z-[80]"}),h("div",{class:"nl-bg relative z-[81] w-full flex flex-col rounded-xl sm:max-w-lg sm:w-full sm:mx-auto"},h("div",{class:"flex justify-between items-center py-3 px-4"},h("div",{class:"flex gap-2 items-center"},h("svg",{class:"w-7 h-7",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),h("p",{class:"font-bold nl-logo text-base"},"Nostr ",h("span",{class:"font-light"},"Login"))),h("div",{class:"flex gap-1"},h("button",{onClick:()=>this.handleChangeDarkMode(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Change theme"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",this.darkMode?{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}:{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))),!state.isLoading&&h("button",{onClick:()=>state.path=[...state.path,CURRENT_MODULE.INFO],type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Info"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))),h("button",{onClick:()=>this.handleClose(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Close"),h("svg",{class:"flex-shrink-0 w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{d:"M18 6 6 18"}),h("path",{d:"m6 6 12 12"}))))),state.path.length>1&&!state.isLoading&&h("div",{class:"p-4"},h("button",{onClick:()=>this.handleClickToBack(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600","data-hs-overlay":"#hs-vertically-centered-modal"},h("span",{class:"sr-only"},"Back"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})))),state.isLoading||state.authUrl?h("nl-loading",{path:s}):h(Fragment,null,(()=>{if(state.isOTP)return h("nl-signin-otp",null);switch(s){case CURRENT_MODULE.WELCOME:return h("nl-welcome",{titleWelcome:this.welcomeTitle||void 0,description:this.welcomeDescription||void 0});case CURRENT_MODULE.LOGIN:return h("nl-signin",null);case CURRENT_MODULE.SIGNUP:return h("nl-signup",{bunkers:this.bunkers});case CURRENT_MODULE.LOCAL_SIGNUP:return h("nl-local-signup",null);case CURRENT_MODULE.CONFIRM_LOGOUT:return h("nl-confirm-logout",null);case CURRENT_MODULE.IMPORT_FLOW:return h("nl-import-flow",{services:this.connectionStringServices});case CURRENT_MODULE.IMPORT_OTP:return h("nl-otp-migrate",{services:this.connectionStringServices});case CURRENT_MODULE.INFO:return h("nl-info",null);case CURRENT_MODULE.EXTENSION:return h("nl-info-extension",null);case CURRENT_MODULE.LOGIN_READ_ONLY:return h("nl-signin-read-only",null);case CURRENT_MODULE.LOGIN_BUNKER_URL:return h("nl-signin-bunker-url",null);case CURRENT_MODULE.LOGIN_OTP:return h("nl-signin-otp",null);case CURRENT_MODULE.WELCOME_LOGIN:return h("nl-welcome-signin",{hasOTP:this.hasOTP,authMethods:this.authMethods,hasExtension:this.hasExtension});case CURRENT_MODULE.WELCOME_SIGNUP:return h("nl-welcome-signup",null);case CURRENT_MODULE.CONNECTION_STRING:return h("nl-signin-connection-string",{connectionString:this.connectionString});case CURRENT_MODULE.CONNECT:return h("nl-connect",{connectionStringServices:this.connectionStringServices,authMethods:this.authMethods});case CURRENT_MODULE.PREVIOUSLY_LOGGED:return h("nl-previously-logged",{accounts:this.accounts,recents:this.recents});case CURRENT_MODULE.IFRAME:return h("nl-iframe",{iframeUrl:this.authUrl});default:return h("nl-welcome",null)}})(),r&&h(Fragment,null,s===CURRENT_MODULE.WELCOME_SIGNUP||s===CURRENT_MODULE.SIGNUP||s===CURRENT_MODULE.LOCAL_SIGNUP?h("div",{class:"p-4 overflow-y-auto"},h("p",{class:"nl-footer font-light text-center text-sm pt-3 max-w-96 mx-auto"},"If you already have a profile please"," ",h("span",{onClick:()=>this.switchSignSignUpStrategy(CURRENT_MODULE.WELCOME_LOGIN),class:"cursor-pointer text-blue-400"},"log in"),".")):i&&h("div",{class:"p-4 overflow-y-auto"},h("p",{class:"nl-footer font-light text-center text-sm pt-3 max-w-96 mx-auto"},"If you don't have a profile please"," ",h("span",{onClick:()=>this.switchSignSignUpStrategy(this.localSignup?CURRENT_MODULE.LOCAL_SIGNUP:CURRENT_MODULE.WELCOME_SIGNUP),class:"cursor-pointer text-blue-400"},"sign up"),".")))))))}static get watchers(){return{localSignup:["watchLocalSignupHandler"],isLoading:["watchLoadingHandler"],isLoadingExtension:["watchLoadingExtensionHandler"],isOTP:["watchOTPHandler"],authUrl:["watchAuthUrlHandler"],iframeUrl:["watchIframeUrlHandler"],error:["watchErrorHandler"]}}static get style(){return NlAuthStyle0}},[1,"nl-auth",{theme:[1025],bunkers:[1],startScreen:[1,"start-screen"],authMethods:[16],hasExtension:[4,"has-extension"],hasOTP:[4,"has-o-t-p"],isLoading:[4,"is-loading"],isLoadingExtension:[4,"is-loading-extension"],isOTP:[4,"is-o-t-p"],authUrl:[1,"auth-url"],iframeUrl:[1,"iframe-url"],error:[1],localSignup:[4,"local-signup"],accounts:[1040],recents:[1040],darkMode:[1028,"dark-mode"],welcomeTitle:[1,"welcome-title"],welcomeDescription:[1,"welcome-description"],connectionString:[1,"connection-string"],connectionStringServices:[16]},void 0,{localSignup:["watchLocalSignupHandler"],isLoading:["watchLoadingHandler"],isLoadingExtension:["watchLoadingExtensionHandler"],isOTP:["watchOTPHandler"],authUrl:["watchAuthUrlHandler"],iframeUrl:["watchIframeUrlHandler"],error:["watchErrorHandler"]}]);function defineCustomElement$4(){typeof customElements>"u"||["nl-auth","button-base","nl-confirm-logout","nl-connect","nl-iframe","nl-import-flow","nl-info","nl-info-extension","nl-loading","nl-local-signup","nl-login-status","nl-otp-migrate","nl-previously-logged","nl-select","nl-signin","nl-signin-bunker-url","nl-signin-connection-string","nl-signin-otp","nl-signin-read-only","nl-signup","nl-welcome","nl-welcome-signin","nl-welcome-signup"].forEach(o=>{switch(o){case"nl-auth":customElements.get(o)||customElements.define(o,NlAuth);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-confirm-logout":customElements.get(o)||defineCustomElement$p();break;case"nl-connect":customElements.get(o)||defineCustomElement$o();break;case"nl-iframe":customElements.get(o)||defineCustomElement$n();break;case"nl-import-flow":customElements.get(o)||defineCustomElement$l();break;case"nl-info":customElements.get(o)||defineCustomElement$k();break;case"nl-info-extension":customElements.get(o)||defineCustomElement$j();break;case"nl-loading":customElements.get(o)||defineCustomElement$i();break;case"nl-local-signup":customElements.get(o)||defineCustomElement$h();break;case"nl-login-status":customElements.get(o)||defineCustomElement$g();break;case"nl-otp-migrate":customElements.get(o)||defineCustomElement$f();break;case"nl-previously-logged":customElements.get(o)||defineCustomElement$e();break;case"nl-select":customElements.get(o)||defineCustomElement$m();break;case"nl-signin":customElements.get(o)||defineCustomElement$d();break;case"nl-signin-bunker-url":customElements.get(o)||defineCustomElement$c();break;case"nl-signin-connection-string":customElements.get(o)||defineCustomElement$b();break;case"nl-signin-otp":customElements.get(o)||defineCustomElement$a();break;case"nl-signin-read-only":customElements.get(o)||defineCustomElement$9();break;case"nl-signup":customElements.get(o)||defineCustomElement$8();break;case"nl-welcome":customElements.get(o)||defineCustomElement$7();break;case"nl-welcome-signin":customElements.get(o)||defineCustomElement$6();break;case"nl-welcome-signup":customElements.get(o)||defineCustomElement$5()}})}defineCustomElement$4();const NlButton=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.theme="default",this.darkMode=!1,this.titleBtn="Open modal",this.disabled=!1}render(){return h("button-base",{key:"9f7936090efc7263cce71d1ad89490d7f5445991",theme:this.theme,darkMode:this.darkMode,titleBtn:this.titleBtn,disabled:this.disabled})}},[1,"nl-button",{theme:[1],darkMode:[4,"dark-mode"],titleBtn:[1,"title-btn"],disabled:[4]}]);function defineCustomElement$3(){typeof customElements>"u"||["nl-button","button-base"].forEach(o=>{switch(o){case"nl-button":customElements.get(o)||customElements.define(o,NlButton);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$3();const nlChangeAccountCss=baseCss,NlChangeAccountStyle0=nlChangeAccountCss,NLChangeAccount=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.handleOpenWelcomeModal=createEvent(this,"handleOpenWelcomeModal",7),this.handleSwitchAccount=createEvent(this,"handleSwitchAccount",7),this.isOpen=!1,this.options=[],this.accounts=[],this.currentAccount=null,this.mode=!1,this.darkMode=!1,this.themeState="default",this.theme="default"}handleWindowClick(){this.wrapperRef.querySelector(".listClass")&&(this.isOpen=!1)}toggleDropdown(){this.isOpen=!this.isOpen,this.calculateDropdownPosition()}watchPropHandler(o){this.themeState=o}watchModeHandler(o){this.mode=o}watchAccountsHandler(o){this.options=o}connectedCallback(){this.themeState=this.theme,this.mode=this.darkMode}calculateDropdownPosition(){if(this.isOpen&&this.buttonRef){const o=this.buttonRef.getBoundingClientRect();this.ulRef.style.top=`${o.height}px`}}handleChange(o){this.handleSwitchAccount.emit(o)}handleOpenModal(){this.handleOpenWelcomeModal.emit()}render(){const o=(this.isOpen?"listClass flex flex-col gap-2":"hidden")+" w-full nl-select-list absolute z-10 left-0 shadow-md rounded-lg p-2 mt-1 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full",s=(this.isOpen?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-gray-500",r=this.options&&this.currentAccount?this.options.filter(i=>i.pubkey!==this.currentAccount.pubkey||i.authMethod!==this.currentAccount.authMethod):[];return h("div",{key:"4e15e39f7ac6a552bfc772396e3e9ef8eeca95cc",class:`theme-${this.themeState}`},h("div",{key:"eae10769ce35dc4cc072d2361c1ee1390c79c822",class:"relative",ref:i=>this.wrapperRef=i},h("button",{key:"e585a44168809f27b99201f7e13bd5db5e4f6569",ref:i=>this.buttonRef=i,onClick:()=>this.toggleDropdown(),type:"button",class:"nl-select peer py-3 px-4 flex items-center w-full justify-between border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent"},h("span",{key:"006ed9a67b57227d4dab51f0b6bcb8290cd9d3ac",class:"text-gray-500"},"Switch profile"),h("svg",{key:"5f824a479165929698fab31b8837b89418587652",class:s,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"600914907723c9f8d01a15da357ccb825c1d1e6a",d:"m6 9 6 6 6-6"}))),h("ul",{key:"9b5b68724a3bce995e6b8b0a9d0eb653baedf79a",ref:i=>this.ulRef=i,class:o},this.options&&r.map(i=>{const c=i.name||i.nip05||i.pubkey;return h("li",{onClick:()=>this.handleChange(i),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},h("div",{class:"uppercase font-bold w-full max-w-6 h-6 rounded-full border border-gray-400 flex justify-center items-center"},i?.picture?h("img",{class:"w-full rounded-full",src:i.picture,alt:"Logo"}):c?c[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"truncate overflow-hidden"},c),h("nl-login-status",{info:i})))}),h("li",{key:"936f2b75ca2dfca3483650d5d62fc50182cfc8f2",class:"first:pt-0 pt-2 border-t-[1px] first:border-none border-gray-300"},h("div",{key:"be0b4f29e70d8e2bc9fd1cc04c0fb43ad3dd5cac",onClick:()=>this.handleOpenModal(),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},h("div",{key:"bdd2a67e5763726666fcea91b0e7de67fe855994",class:"uppercase font-bold w-6 h-6 rounded-full border border-gray-400 flex justify-center items-center"},h("svg",{key:"f3a258f3e510ccb83b95bf3abecf65c248c8b0f1",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-4 h-4"},h("path",{key:"dafaa898f3e042531a923a9a77b94511895c6102","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"}))),"Add profile")))))}get element(){return this}static get watchers(){return{theme:["watchPropHandler"],darkMode:["watchModeHandler"],accounts:["watchAccountsHandler"]}}static get style(){return NlChangeAccountStyle0}},[0,"nl-change-account",{accounts:[16],currentAccount:[16],darkMode:[4,"dark-mode"],theme:[1],isOpen:[32],options:[32],mode:[32],themeState:[32]},[[8,"click","handleWindowClick"]],{theme:["watchPropHandler"],darkMode:["watchModeHandler"],accounts:["watchAccountsHandler"]}]);function defineCustomElement$2(){typeof customElements>"u"||["nl-change-account","nl-login-status"].forEach(o=>{switch(o){case"nl-change-account":customElements.get(o)||customElements.define(o,NLChangeAccount);break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement$2();const nlDialogCss=baseCss,NlDialogStyle0=nlDialogCss,NlDialog=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}componentDidLoad(){var o;null===(o=this.dialogElement)||void 0===o||o.showModal()}disconnectedCallback(){var o;null===(o=this.dialogElement)||void 0===o||o.close()}render(){return h("dialog",{key:"9c20328d937c160bcb9b9bf731d744721e84f189",ref:o=>this.dialogElement=o,class:"m-auto nl-banner-dialog"},h("slot",{key:"2e047d7c9e8904d590c588b73a5480cb1605ff86"}))}static get style(){return NlDialogStyle0}},[1,"nl-dialog"]);function defineCustomElement$1(){typeof customElements>"u"||["nl-dialog"].forEach(o=>{"nl-dialog"===o&&(customElements.get(o)||customElements.define(o,NlDialog))})}defineCustomElement$1();const nlBannerCss=baseCss,NlBannerStyle0=nlBannerCss,NlBanner=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.handleNotifyConfirmBanner=createEvent(this,"handleNotifyConfirmBanner",7),this.handleNotifyConfirmBannerIframe=createEvent(this,"handleNotifyConfirmBannerIframe",7),this.handleLoginBanner=createEvent(this,"handleLoginBanner",7),this.handleLogoutBanner=createEvent(this,"handleLogoutBanner",7),this.handleOpenWelcomeModal=createEvent(this,"handleOpenWelcomeModal",7),this.handleConfirmLogout=createEvent(this,"handleConfirmLogout",7),this.handleImportModal=createEvent(this,"handleImportModal",7),this.theme="default",this.darkMode=!1,this.hiddenMode=!1,this.titleBanner="",this.isOpen=!1,this.isLoading=!1,this.notify=null,this.userInfo=null,this.accounts=[],this.isUserImgError=!1,this.domain="",this.mode="",this.url="",this.isOpenConfirm=!1}watchNotifyHandler(o){var s,r,i,a;this.isOpen=!0,this.isOpenConfirm=!0,this.domain=(null===(s=this.userInfo)||void 0===s?void 0:s.domain)||(null===(a=null===(i=null===(r=this.userInfo)||void 0===r?void 0:r.nip05)||void 0===i?void 0:i.split("@"))||void 0===a?void 0:a[1])||"",this.mode=o.mode,this.url=o.url,this.mode||(this.isOpenConfirm=!1,this.isOpen=!1)}handleOpen(){this.userInfo?this.isOpen=!0:this.handleOpenWelcomeModal.emit()}handleClose(){this.isOpen=!1}handleLogin(){this.handleLoginBanner.emit(METHOD_MODULE.LOGIN),this.handleClose()}handleSignup(){this.handleLoginBanner.emit(METHOD_MODULE.SIGNUP),this.handleClose()}handleImport(){this.handleImportModal.emit(),this.handleClose()}handleLogout(){if(localStorage.getItem("backupKey"))return this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.handleClose(),void localStorage.removeItem("backupKey");"local"===this.userInfo.authMethod?this.handleConfirmLogout.emit():this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.handleClose()}handleConfirm(){switch(this.mode){case"authUrl":this.handleNotifyConfirmBanner.emit(this.url);break;case"iframeAuthUrl":this.handleNotifyConfirmBannerIframe.emit(this.url)}this.handleClose()}render(){var o,s,r,i,a,c;const y=!(null===(o=this.userInfo)||void 0===o||!o.picture),w=(null===(s=this.userInfo)||void 0===s?void 0:s.name)||(null===(a=null===(i=null===(r=this.userInfo)||void 0===r?void 0:r.nip05)||void 0===i?void 0:i.split("@"))||void 0===a?void 0:a[0])||(null===(c=this.userInfo)||void 0===c?void 0:c.pubkey)||"",C=!!w,T=this.userInfo&&"local"===this.userInfo.authMethod,S=localStorage.getItem("backupKey"),A=h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})),I=h(Fragment,null,h("div",{class:"block w-[48px] h-[46px] relative z-10"},h("div",{onClick:()=>this.handleOpen(),class:"flex w-52 h-[46px] items-center pl-[11px]"},h("span",{class:(this.isLoading?"w-5 h-5 border-[2px] mr-3.5 ml-[2px] opacity-1":"w-0 h-0 border-[0px] mr-0 opacity-0 ml-0")+" animate-spin transition-all duration-300 ease-in-out inline-block border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}),this.userInfo?h("div",{class:"uppercase font-bold w-6 h-6 mr-2 rounded-full border border-gray-200 flex justify-center items-center"},y?this.isUserImgError?A:h("img",{class:"w-full rounded-full",src:this.userInfo.picture,alt:"Logo",onError:()=>this.isUserImgError=!0}):C?w[0]:A):h("div",{class:"flex justify-center items-center"},h("svg",{class:"w-6 h-6",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),this.isOpen&&h("span",{class:"px-2"},h("b",null,"Nostr")," Login")),this.isOpen&&C&&h("div",{class:"show-slow truncate w-16 text-xs"},w),this.isOpen&&C&&h("nl-login-status",{info:this.userInfo}))),h("button",{onClick:()=>this.handleClose(),type:"button",class:(this.isOpen?"z-20":"z-0")+" nl-action-button absolute right-2 top-2 z-0 show-slow grid place-items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Close"),h("svg",{class:"flex-shrink-0 w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{d:"M18 6 6 18"}),h("path",{d:"m6 6 12 12"}))),h("div",{class:"p-3 show-slow"},this.isOpenConfirm?h("div",null,h("div",{class:"w-8 h-8 p-1/2 rounded-full border border-gray-200 bg-white mb-2 mt-2 show-slow m-auto"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#5a68ff",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))),h("p",{class:"mb-2 text-center max-w-40 min-w-40 mx-auto"},"timeout"===this.mode?"Keys not responding, check your key storage app":`Confirmation required at ${this.domain}`),"timeout"===this.mode?h("a",{onClick:()=>this.handleClose(),href:`https://${this.domain}`,target:"_blank",class:"nl-button text-nowrap py-2.5 px-3 w-full inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"},"Go to ",this.domain):"rebind"===this.mode?h("iframe",{src:this.url,width:"180",height:"80"}):h("button-base",{onClick:()=>this.handleConfirm(),titleBtn:"Confirm"})):h("div",null,h("div",null,this.titleBanner&&h("p",{class:"mb-2 text-center show-slow max-w-40 min-w-40 mx-auto"},this.titleBanner),T&&h(Fragment,null,!S&&h("p",{class:"mb-2 text-center show-slow text-red-400 max-w-40 min-w-40 mx-auto"},"Your profile may be lost if you close this tab"),h("div",{class:"mb-2"},h("button-base",{onClick:()=>this.handleImport(),theme:"lemonade",titleBtn:"Back up profile"}))),h("div",{class:"mb-2"},h("nl-change-account",{currentAccount:this.userInfo,accounts:this.accounts})),this.userInfo?h("button-base",{onClick:()=>this.handleLogout(),titleBtn:"Log out"}):h("div",null,h("button-base",{onClick:()=>this.handleLogin(),titleBtn:"Log in"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))),h("button-base",{onClick:()=>this.handleSignup(),titleBtn:"Sign up"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))))),G=!!function Z(ne,be){be=be||document.body;const me=Array.from(be.querySelectorAll(ne)),pe=function(Te){Z(ne,Te).forEach(xe=>{me.includes(xe)||me.push(xe)})};be.shadowRoot&&pe(be.shadowRoot);for(const Te of Array.from(be.querySelectorAll("*")))Te.shadowRoot&&pe(Te.shadowRoot);return me}("dialog").find(Z=>Z.open&&!Z.classList.contains("nl-banner-dialog"));return console.log("nostr-login need dialog",G),h("div",{class:`theme-${this.theme} ${!this.isOpen&&this.hiddenMode?"hidden":""}`},h("div",{class:this.darkMode&&"dark",dir:"ltr"},this.isOpenConfirm&&G?h("nl-dialog",null,h("div",{class:`nl-banner ${this.isOpen?"w-52 h-auto right-2 rounded-r-lg isOpen ":"rounded-r-none hover:rounded-r-lg cursor-pointer"} z-50 w-12 h-12 fixed top-52 right-0 inline-block gap-x-2 text-sm font-medium rounded-lg hover:right-2 transition-all duration-300 ease-in-out`},I)):h("div",{class:`nl-banner ${this.isOpen?"w-52 h-auto right-2 rounded-r-lg isOpen":"rounded-r-none hover:rounded-r-lg cursor-pointer"} z-50 w-12 h-12 fixed top-52 right-0 inline-block gap-x-2 text-sm font-medium rounded-lg hover:right-2 transition-all duration-300 ease-in-out`},I)))}static get watchers(){return{notify:["watchNotifyHandler"]}}static get style(){return NlBannerStyle0}},[1,"nl-banner",{theme:[1025],darkMode:[1028,"dark-mode"],hiddenMode:[1028,"hidden-mode"],titleBanner:[1,"title-banner"],isOpen:[1028,"is-open"],isLoading:[4,"is-loading"],notify:[16],userInfo:[16],accounts:[1040],isUserImgError:[32],domain:[32],mode:[32],url:[32],isOpenConfirm:[32]},void 0,{notify:["watchNotifyHandler"]}]);function defineCustomElement(){typeof customElements>"u"||["nl-banner","button-base","nl-change-account","nl-dialog","nl-login-status"].forEach(o=>{switch(o){case"nl-banner":customElements.get(o)||customElements.define(o,NlBanner);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-change-account":customElements.get(o)||defineCustomElement$2();break;case"nl-dialog":customElements.get(o)||defineCustomElement$1();break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var lib$1={},types={};Object.defineProperty(types,"__esModule",{value:!0});var ee={},taskCollection$1={},taskCollection={},bakeCollection={};(function(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.bakeCollectionVariadic=exports.bakeCollectionAwait=exports.bakeCollection=exports.BAKED_EMPTY_FUNC=void 0,exports.BAKED_EMPTY_FUNC=function(){};var FORLOOP_FALLBACK=1500;function generateArgsDefCode(o){var s="";if(0===o)return s;for(var r=0;r1)s?((r=this._tasks).push.apply(r,arguments),this.length+=arguments.length):(this._tasks.push(o),this.length++);else if(s){var a;1===i?((a=Array(1+arguments.length)).push(a),a.push.apply(a,arguments),this._tasks=a):((a=Array(arguments.length)).push.apply(a,arguments),this._tasks=a),this.length+=arguments.length}else this._tasks=1===i?[this._tasks,o]:o,this.length++}function push_rebuild(o,s){var r,i=this.length;if(i>1)s?((r=this._tasks).push.apply(r,arguments),this.length+=arguments.length):(this._tasks.push(o),this.length++);else if(s){var a;1===i?((a=Array(1+arguments.length)).push(a),a.push.apply(a,arguments),this._tasks=a):((a=Array(arguments.length)).push.apply(a,arguments),this._tasks=a),this.length+=arguments.length}else this._tasks=1===i?[this._tasks,o]:o,this.length++;this.firstEmitBuildStrategy?this.call=rebuild_on_first_call:this.rebuild()}function _fast_remove_single(o,s){-1!==s&&(0===s?o.shift():s===o.length-1?o.length=o.length-1:o.splice(s,1))}function removeLast_norebuild(o){0!==this.length&&(1===this.length?this._tasks===o&&(this.length=0):(_fast_remove_single(this._tasks,this._tasks.lastIndexOf(o)),1===this._tasks.length?(this._tasks=this._tasks[0],this.length=1):this.length=this._tasks.length))}function removeLast_rebuild(o){if(0!==this.length){if(1===this.length)return this._tasks===o&&(this.length=0),this.firstEmitBuildStrategy?void(this.call=bake_collection_1.BAKED_EMPTY_FUNC):void this.rebuild();_fast_remove_single(this._tasks,this._tasks.lastIndexOf(o)),1===this._tasks.length?(this._tasks=this._tasks[0],this.length=1):this.length=this._tasks.length,this.firstEmitBuildStrategy?this.call=rebuild_on_first_call:this.rebuild()}}function insert_norebuild(o){for(var s,r=[],i=1;i0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$3(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$3(o.outputLen),number$3(o.blockLen)}function exists$3(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$3(o,s){bytes$3(o);const r=s.outputLen;if(o.lengtho instanceof Uint8Array,createView$2=o=>new DataView(o.buffer,o.byteOffset,o.byteLength),rotr$2=(o,s)=>o<<32-s|o>>>s,isLE$3=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$3)throw new Error("Non little-endian hardware is not supported");function utf8ToBytes$4(o){if("string"!=typeof o)throw new Error("utf8ToBytes expected string, got "+typeof o);return new Uint8Array((new TextEncoder).encode(o))}function toBytes$3(o){if("string"==typeof o&&(o=utf8ToBytes$4(o)),!u8a$3(o))throw new Error("expected Uint8Array, got "+typeof o);return o}function concatBytes$3(...o){const s=new Uint8Array(o.reduce((i,a)=>i+a.length,0));let r=0;return o.forEach(i=>{if(!u8a$3(i))throw new Error("Uint8Array expected");s.set(i,r),r+=i.length}),s}Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));let Hash$2=class{clone(){return this._cloneInto()}};function wrapConstructor$2(o){const s=i=>o().update(toBytes$3(i)).digest(),r=o();return s.outputLen=r.outputLen,s.blockLen=r.blockLen,s.create=()=>o(),s}function randomBytes$2(o=32){if(crypto$3&&"function"==typeof crypto$3.getRandomValues)return crypto$3.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}function setBigUint64$2(o,s,r,i){if("function"==typeof o.setBigUint64)return o.setBigUint64(s,r,i);const a=BigInt(32),c=BigInt(4294967295),y=Number(r>>a&c),w=Number(r&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}let SHA2$2=class extends Hash$2{constructor(o,s,r,i){super(),this.blockLen=o,this.outputLen=s,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=createView$2(this.buffer)}update(o){assert$3.exists(this);const{view:s,buffer:r,blockLen:i}=this,a=(o=toBytes$3(o)).length;for(let c=0;ci-c&&(this.process(r,0),c=0);for(let S=c;ST.length)throw new Error("_sha2: outputLen bigger than state");for(let S=0;So&s^~o&r,Maj$2=(o,s,r)=>o&s^o&r^s&r,SHA256_K$2=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV$2=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$2=new Uint32Array(64);let SHA256$2=class extends SHA2$2{constructor(){super(64,32,8,!1),this.A=0|IV$2[0],this.B=0|IV$2[1],this.C=0|IV$2[2],this.D=0|IV$2[3],this.E=0|IV$2[4],this.F=0|IV$2[5],this.G=0|IV$2[6],this.H=0|IV$2[7]}get(){const{A:o,B:s,C:r,D:i,E:a,F:c,G:y,H:w}=this;return[o,s,r,i,a,c,y,w]}set(o,s,r,i,a,c,y,w){this.A=0|o,this.B=0|s,this.C=0|r,this.D=0|i,this.E=0|a,this.F=0|c,this.G=0|y,this.H=0|w}process(o,s){for(let S=0;S<16;S++,s+=4)SHA256_W$2[S]=o.getUint32(s,!1);for(let S=16;S<64;S++){const A=SHA256_W$2[S-15],I=SHA256_W$2[S-2],N=rotr$2(A,7)^rotr$2(A,18)^A>>>3,G=rotr$2(I,17)^rotr$2(I,19)^I>>>10;SHA256_W$2[S]=G+SHA256_W$2[S-7]+N+SHA256_W$2[S-16]|0}let{A:r,B:i,C:a,D:c,E:y,F:w,G:C,H:T}=this;for(let S=0;S<64;S++){const A=T+(rotr$2(y,6)^rotr$2(y,11)^rotr$2(y,25))+Chi$2(y,w,C)+SHA256_K$2[S]+SHA256_W$2[S]|0,I=(rotr$2(r,2)^rotr$2(r,13)^rotr$2(r,22))+Maj$2(r,i,a)|0;T=C,C=w,w=y,y=c+A|0,c=a,a=i,i=r,r=A+I|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,y=y+this.E|0,w=w+this.F|0,C=C+this.G|0,T=T+this.H|0,this.set(r,i,a,c,y,w,C,T)}roundClean(){SHA256_W$2.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},SHA224$1=class extends SHA256$2{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}};const sha256$2=wrapConstructor$2(()=>new SHA256$2);wrapConstructor$2(()=>new SHA224$1);const _0n$4=BigInt(0),_1n$4=BigInt(1),_2n$2=BigInt(2),u8a$2=o=>o instanceof Uint8Array,hexes$2=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex$2(o){if(!u8a$2(o))throw new Error("Uint8Array expected");let s="";for(let r=0;ri+a.length,0));let r=0;return o.forEach(i=>{if(!u8a$2(i))throw new Error("Uint8Array expected");s.set(i,r),r+=i.length}),s}function equalBytes$1(o,s){if(o.length!==s.length)return!1;for(let r=0;r_0n$4;o>>=_1n$4,s+=1);return s}function bitGet(o,s){return o>>BigInt(s)&_1n$4}const bitSet=(o,s,r)=>o|(r?_1n$4:_0n$4)<(_2n$2<new Uint8Array(o),u8fr=o=>Uint8Array.from(o);function createHmacDrbg(o,s,r){if("number"!=typeof o||o<2)throw new Error("hashLen must be a number");if("number"!=typeof s||s<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let i=u8n(o),a=u8n(o),c=0;const y=()=>{i.fill(1),a.fill(0),c=0},w=(...S)=>r(a,i,...S),C=(S=u8n())=>{a=w(u8fr([0]),S),i=w(),0!==S.length&&(a=w(u8fr([1]),S),i=w())},T=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let S=0;const A=[];for(;S{let I;for(y(),C(S);!(I=A(T()));)C();return y(),I}}const validatorFns={bigint:o=>"bigint"==typeof o,function:o=>"function"==typeof o,boolean:o=>"boolean"==typeof o,string:o=>"string"==typeof o,isSafeInteger:o=>Number.isSafeInteger(o),array:o=>Array.isArray(o),field:(o,s)=>s.Fp.isValid(o),hash:o=>"function"==typeof o&&Number.isSafeInteger(o.outputLen)};function validateObject(o,s,r={}){const i=(a,c,y)=>{const w=validatorFns[c];if("function"!=typeof w)throw new Error(`Invalid validator "${c}", expected function`);const C=o[a];if(!(y&&void 0===C||w(C,o)))throw new Error(`Invalid param ${String(a)}=${C} (${typeof C}), expected ${c}`)};for(const[a,c]of Object.entries(s))i(a,c,!1);for(const[a,c]of Object.entries(r))i(a,c,!0);return o}var ut=Object.freeze({__proto__:null,bitGet,bitLen,bitMask,bitSet,bytesToHex:bytesToHex$2,bytesToNumberBE,bytesToNumberLE,concatBytes:concatBytes$2,createHmacDrbg,ensureBytes:ensureBytes$1,equalBytes:equalBytes$1,hexToBytes:hexToBytes$2,hexToNumber,numberToBytesBE,numberToBytesLE,numberToHexUnpadded,numberToVarBytesBE,utf8ToBytes:utf8ToBytes$3,validateObject});const _0n$3=BigInt(0),_1n$3=BigInt(1),_2n$1=BigInt(2),_3n$1=BigInt(3),_4n=BigInt(4),_5n=BigInt(5),_8n=BigInt(8);function mod(o,s){const r=o%s;return r>=_0n$3?r:s+r}function pow(o,s,r){if(r<=_0n$3||s<_0n$3)throw new Error("Expected power/modulo > 0");if(r===_1n$3)return _0n$3;let i=_1n$3;for(;s>_0n$3;)s&_1n$3&&(i=i*o%r),o=o*o%r,s>>=_1n$3;return i}function pow2(o,s,r){let i=o;for(;s-- >_0n$3;)i*=i,i%=r;return i}function invert(o,s){if(o===_0n$3||s<=_0n$3)throw new Error(`invert: expected positive integers, got n=${o} mod=${s}`);let r=mod(o,s),i=s,a=_0n$3,c=_1n$3;for(;r!==_0n$3;){const y=i%r,w=a-c*(i/r);i=r,r=y,a=c,c=w}if(i!==_1n$3)throw new Error("invert: does not exist");return mod(a,s)}function tonelliShanks(o){const s=(o-_1n$3)/_2n$1;let r,i,a;for(r=o-_1n$3,i=0;r%_2n$1===_0n$3;r/=_2n$1,i++);for(a=_2n$1;a(r[i]="function",r),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}function FpPow(o,s,r){if(r<_0n$3)throw new Error("Expected power > 0");if(r===_0n$3)return o.ONE;if(r===_1n$3)return s;let i=o.ONE,a=s;for(;r>_0n$3;)r&_1n$3&&(i=o.mul(i,a)),a=o.sqr(a),r>>=_1n$3;return i}function FpInvertBatch(o,s){const r=new Array(s.length),i=s.reduce((c,y,w)=>o.is0(y)?c:(r[w]=c,o.mul(c,y)),o.ONE),a=o.inv(i);return s.reduceRight((c,y,w)=>o.is0(y)?c:(r[w]=o.mul(c,r[w]),o.mul(c,y)),a),r}function nLength(o,s){const r=void 0!==s?s:o.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function Field(o,s,r=!1,i={}){if(o<=_0n$3)throw new Error(`Expected Fp ORDER > 0, got ${o}`);const{nBitLength:a,nByteLength:c}=nLength(o,s);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const y=FpSqrt(o),w=Object.freeze({ORDER:o,BITS:a,BYTES:c,MASK:bitMask(a),ZERO:_0n$3,ONE:_1n$3,create:C=>mod(C,o),isValid:C=>{if("bigint"!=typeof C)throw new Error("Invalid field element: expected bigint, got "+typeof C);return _0n$3<=C&&CC===_0n$3,isOdd:C=>(C&_1n$3)===_1n$3,neg:C=>mod(-C,o),eql:(C,T)=>C===T,sqr:C=>mod(C*C,o),add:(C,T)=>mod(C+T,o),sub:(C,T)=>mod(C-T,o),mul:(C,T)=>mod(C*T,o),pow:(C,T)=>FpPow(w,C,T),div:(C,T)=>mod(C*invert(T,o),o),sqrN:C=>C*C,addN:(C,T)=>C+T,subN:(C,T)=>C-T,mulN:(C,T)=>C*T,inv:C=>invert(C,o),sqrt:i.sqrt||(C=>y(w,C)),invertBatch:C=>FpInvertBatch(w,C),cmov:(C,T,S)=>S?T:C,toBytes:C=>r?numberToBytesLE(C,c):numberToBytesBE(C,c),fromBytes:C=>{if(C.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${C.length}`);return r?bytesToNumberLE(C):bytesToNumberBE(C)}});return Object.freeze(w)}function hashToPrivateScalar(o,s,r=!1){const i=(o=ensureBytes$1("privateHash",o)).length,a=nLength(s).nByteLength+8;if(a<24||i1024)throw new Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${i}`);return mod(r?bytesToNumberLE(o):bytesToNumberBE(o),s-_1n$3)+_1n$3}const _0n$2=BigInt(0),_1n$2=BigInt(1);function wNAF(o,s){const r=(a,c)=>{const y=c.negate();return a?y:c},i=a=>({windows:Math.ceil(s/a)+1,windowSize:2**(a-1)});return{constTimeNegate:r,unsafeLadder(a,c){let y=o.ZERO,w=a;for(;c>_0n$2;)c&_1n$2&&(y=y.add(w)),w=w.double(),c>>=_1n$2;return y},precomputeWindow(a,c){const{windows:y,windowSize:w}=i(c),C=[];let T=a,S=T;for(let A=0;A>=N,ne>C&&(ne-=I,y+=_1n$2);const be=Z,me=Z+Math.abs(ne)-1,Te=ne<0;0===ne?S=S.add(r(G%2!=0,c[be])):T=T.add(r(Te,c[me]))}return{p:T,f:S}},wNAFCached(a,c,y,w){const C=a._WINDOW_SIZE||1;let T=c.get(a);return T||(T=this.precomputeWindow(a,C),1!==C&&c.set(a,w(T))),this.wNAF(C,T,y)}}}function validateBasic(o){return validateField(o.Fp),validateObject(o,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nLength(o.n,o.nBitLength),...o,p:o.Fp.ORDER})}function validatePointOpts(o){const s=validateBasic(o);validateObject(s,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:i,a}=s;if(r){if(!i.eql(a,i.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...s})}const{bytesToNumberBE:b2n,hexToBytes:h2b}=ut,DER={Err:class extends Error{constructor(o=""){super(o)}},_parseInt(o){const{Err:s}=DER;if(o.length<2||2!==o[0])throw new s("Invalid signature integer tag");const r=o[1],i=o.subarray(2,r+2);if(!r||i.length!==r)throw new s("Invalid signature integer: wrong length");if(128&i[0])throw new s("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new s("Invalid signature integer: unnecessary leading zero");return{d:b2n(i),l:o.subarray(r+2)}},toSig(o){const{Err:s}=DER,r="string"==typeof o?h2b(o):o;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let i=r.length;if(i<2||48!=r[0])throw new s("Invalid signature tag");if(r[1]!==i-2)throw new s("Invalid signature: incorrect length");const{d:a,l:c}=DER._parseInt(r.subarray(2)),{d:y,l:w}=DER._parseInt(c);if(w.length)throw new s("Invalid signature: left bytes after parsing");return{r:a,s:y}},hexFromSig(o){const s=T=>8&Number.parseInt(T[0],16)?"00"+T:T,r=T=>{const S=T.toString(16);return 1&S.length?`0${S}`:S},i=s(r(o.s)),a=s(r(o.r)),c=i.length/2,y=a.length/2,w=r(c),C=r(y);return`30${r(y+c+4)}02${C}${a}02${w}${i}`}},_0n$1=BigInt(0),_1n$1=BigInt(1);BigInt(2);const _3n=BigInt(3);function weierstrassPoints(o){const s=validatePointOpts(o),{Fp:r}=s,i=s.toBytes||((G,Z,ne)=>{const be=Z.toAffine();return concatBytes$2(Uint8Array.from([4]),r.toBytes(be.x),r.toBytes(be.y))}),a=s.fromBytes||(G=>{const Z=G.subarray(1);return{x:r.fromBytes(Z.subarray(0,r.BYTES)),y:r.fromBytes(Z.subarray(r.BYTES,2*r.BYTES))}});function c(G){const{a:Z,b:ne}=s,be=r.sqr(G),me=r.mul(be,G);return r.add(r.add(me,r.mul(G,Z)),ne)}if(!r.eql(r.sqr(s.Gy),c(s.Gx)))throw new Error("bad generator point: equation left != right");function y(G){return"bigint"==typeof G&&_0n$1r.eql(pe,r.ZERO);return me(ne)&&me(be)?A.ZERO:new A(ne,be,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Z){const ne=r.invertBatch(Z.map(be=>be.pz));return Z.map((be,me)=>be.toAffine(ne[me])).map(A.fromAffine)}static fromHex(Z){const ne=A.fromAffine(a(ensureBytes$1("pointHex",Z)));return ne.assertValidity(),ne}static fromPrivateKey(Z){return A.BASE.multiply(C(Z))}_setWindowSize(Z){this._WINDOW_SIZE=Z,T.delete(this)}assertValidity(){if(this.is0()){if(s.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:Z,y:ne}=this.toAffine();if(!r.isValid(Z)||!r.isValid(ne))throw new Error("bad point: x or y not FE");const be=r.sqr(ne),me=c(Z);if(!r.eql(be,me))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Z}=this.toAffine();if(r.isOdd)return!r.isOdd(Z);throw new Error("Field doesn't support isOdd")}equals(Z){S(Z);const{px:ne,py:be,pz:me}=this,{px:pe,py:Te,pz:xe}=Z,Re=r.eql(r.mul(ne,xe),r.mul(pe,me)),Me=r.eql(r.mul(be,xe),r.mul(Te,me));return Re&&Me}negate(){return new A(this.px,r.neg(this.py),this.pz)}double(){const{a:Z,b:ne}=s,be=r.mul(ne,_3n),{px:me,py:pe,pz:Te}=this;let xe=r.ZERO,Re=r.ZERO,Me=r.ZERO,Ce=r.mul(me,me),le=r.mul(pe,pe),ae=r.mul(Te,Te),Ie=r.mul(me,pe);return Ie=r.add(Ie,Ie),Me=r.mul(me,Te),Me=r.add(Me,Me),xe=r.mul(Z,Me),Re=r.mul(be,ae),Re=r.add(xe,Re),xe=r.sub(le,Re),Re=r.add(le,Re),Re=r.mul(xe,Re),xe=r.mul(Ie,xe),Me=r.mul(be,Me),ae=r.mul(Z,ae),Ie=r.sub(Ce,ae),Ie=r.mul(Z,Ie),Ie=r.add(Ie,Me),Me=r.add(Ce,Ce),Ce=r.add(Me,Ce),Ce=r.add(Ce,ae),Ce=r.mul(Ce,Ie),Re=r.add(Re,Ce),ae=r.mul(pe,Te),ae=r.add(ae,ae),Ce=r.mul(ae,Ie),xe=r.sub(xe,Ce),Me=r.mul(ae,le),Me=r.add(Me,Me),Me=r.add(Me,Me),new A(xe,Re,Me)}add(Z){S(Z);const{px:ne,py:be,pz:me}=this,{px:pe,py:Te,pz:xe}=Z;let Re=r.ZERO,Me=r.ZERO,Ce=r.ZERO;const le=s.a,ae=r.mul(s.b,_3n);let Ie=r.mul(ne,pe),$e=r.mul(be,Te),st=r.mul(me,xe),ht=r.add(ne,be),vt=r.add(pe,Te);ht=r.mul(ht,vt),vt=r.add(Ie,$e),ht=r.sub(ht,vt),vt=r.add(ne,me);let at=r.add(pe,xe);return vt=r.mul(vt,at),at=r.add(Ie,st),vt=r.sub(vt,at),at=r.add(be,me),Re=r.add(Te,xe),at=r.mul(at,Re),Re=r.add($e,st),at=r.sub(at,Re),Ce=r.mul(le,vt),Re=r.mul(ae,st),Ce=r.add(Re,Ce),Re=r.sub($e,Ce),Ce=r.add($e,Ce),Me=r.mul(Re,Ce),$e=r.add(Ie,Ie),$e=r.add($e,Ie),st=r.mul(le,st),vt=r.mul(ae,vt),$e=r.add($e,st),st=r.sub(Ie,st),st=r.mul(le,st),vt=r.add(vt,st),Ie=r.mul($e,vt),Me=r.add(Me,Ie),Ie=r.mul(at,vt),Re=r.mul(ht,Re),Re=r.sub(Re,Ie),Ie=r.mul(ht,$e),Ce=r.mul(at,Ce),Ce=r.add(Ce,Ie),new A(Re,Me,Ce)}subtract(Z){return this.add(Z.negate())}is0(){return this.equals(A.ZERO)}wNAF(Z){return N.wNAFCached(this,T,Z,ne=>{const be=r.invertBatch(ne.map(me=>me.pz));return ne.map((me,pe)=>me.toAffine(be[pe])).map(A.fromAffine)})}multiplyUnsafe(Z){const ne=A.ZERO;if(Z===_0n$1)return ne;if(w(Z),Z===_1n$1)return this;const{endo:be}=s;if(!be)return N.unsafeLadder(this,Z);let{k1neg:me,k1:pe,k2neg:Te,k2:xe}=be.splitScalar(Z),Re=ne,Me=ne,Ce=this;for(;pe>_0n$1||xe>_0n$1;)pe&_1n$1&&(Re=Re.add(Ce)),xe&_1n$1&&(Me=Me.add(Ce)),Ce=Ce.double(),pe>>=_1n$1,xe>>=_1n$1;return me&&(Re=Re.negate()),Te&&(Me=Me.negate()),Me=new A(r.mul(Me.px,be.beta),Me.py,Me.pz),Re.add(Me)}multiply(Z){w(Z);let ne,be,me=Z;const{endo:pe}=s;if(pe){const{k1neg:Te,k1:xe,k2neg:Re,k2:Me}=pe.splitScalar(me);let{p:Ce,f:le}=this.wNAF(xe),{p:ae,f:Ie}=this.wNAF(Me);Ce=N.constTimeNegate(Te,Ce),ae=N.constTimeNegate(Re,ae),ae=new A(r.mul(ae.px,pe.beta),ae.py,ae.pz),ne=Ce.add(ae),be=le.add(Ie)}else{const{p:Te,f:xe}=this.wNAF(me);ne=Te,be=xe}return A.normalizeZ([ne,be])[0]}multiplyAndAddUnsafe(Z,ne,be){const me=A.BASE,pe=(xe,Re)=>Re!==_0n$1&&Re!==_1n$1&&xe.equals(me)?xe.multiply(Re):xe.multiplyUnsafe(Re),Te=pe(this,ne).add(pe(Z,be));return Te.is0()?void 0:Te}toAffine(Z){const{px:ne,py:be,pz:me}=this,pe=this.is0();null==Z&&(Z=pe?r.ONE:r.inv(me));const Te=r.mul(ne,Z),xe=r.mul(be,Z),Re=r.mul(me,Z);if(pe)return{x:r.ZERO,y:r.ZERO};if(!r.eql(Re,r.ONE))throw new Error("invZ was invalid");return{x:Te,y:xe}}isTorsionFree(){const{h:Z,isTorsionFree:ne}=s;if(Z===_1n$1)return!0;if(ne)return ne(A,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Z,clearCofactor:ne}=s;return Z===_1n$1?this:ne?ne(A,this):this.multiplyUnsafe(s.h)}toRawBytes(Z=!0){return this.assertValidity(),i(A,this,Z)}toHex(Z=!0){return bytesToHex$2(this.toRawBytes(Z))}}A.BASE=new A(s.Gx,s.Gy,r.ONE),A.ZERO=new A(r.ZERO,r.ONE,r.ZERO);const I=s.nBitLength,N=wNAF(A,s.endo?Math.ceil(I/2):I);return{CURVE:s,ProjectivePoint:A,normPrivateKeyToScalar:C,weierstrassEquation:c,isWithinCurveOrder:y}}function validateOpts(o){const s=validateBasic(o);return validateObject(s,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...s})}function weierstrass(o){const s=validateOpts(o),{Fp:r,n:i}=s,a=r.BYTES+1,c=2*r.BYTES+1;function y(le){return mod(le,i)}function w(le){return invert(le,i)}const{ProjectivePoint:C,normPrivateKeyToScalar:T,weierstrassEquation:S,isWithinCurveOrder:A}=weierstrassPoints({...s,toBytes(le,ae,Ie){const $e=ae.toAffine(),st=r.toBytes($e.x),ht=concatBytes$2;return Ie?ht(Uint8Array.from([ae.hasEvenY()?2:3]),st):ht(Uint8Array.from([4]),st,r.toBytes($e.y))},fromBytes(le){const ae=le.length,Ie=le[0],$e=le.subarray(1);if(ae!==a||2!==Ie&&3!==Ie){if(ae===c&&4===Ie)return{x:r.fromBytes($e.subarray(0,r.BYTES)),y:r.fromBytes($e.subarray(r.BYTES,2*r.BYTES))};throw new Error(`Point of length ${ae} was invalid. Expected ${a} compressed bytes or ${c} uncompressed bytes`)}{const ht=bytesToNumberBE($e);if(!(_0n$1<(st=ht)&&stbytesToHex$2(numberToBytesBE(le,s.nByteLength));function N(le){return le>i>>_1n$1}const G=(le,ae,Ie)=>bytesToNumberBE(le.slice(ae,Ie));class Z{constructor(ae,Ie,$e){this.r=ae,this.s=Ie,this.recovery=$e,this.assertValidity()}static fromCompact(ae){const Ie=s.nByteLength;return ae=ensureBytes$1("compactSignature",ae,2*Ie),new Z(G(ae,0,Ie),G(ae,Ie,2*Ie))}static fromDER(ae){const{r:Ie,s:$e}=DER.toSig(ensureBytes$1("DER",ae));return new Z(Ie,$e)}assertValidity(){if(!A(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!A(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(ae){return new Z(this.r,this.s,ae)}recoverPublicKey(ae){const{r:Ie,s:$e,recovery:st}=this,ht=pe(ensureBytes$1("msgHash",ae));if(null==st||![0,1,2,3].includes(st))throw new Error("recovery id invalid");const vt=2===st||3===st?Ie+s.n:Ie;if(vt>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const Xt=C.fromHex((1&st?"03":"02")+I(vt)),ln=w(vt),yn=y(-ht*ln),$n=y($e*ln),bn=C.BASE.multiplyAndAddUnsafe(Xt,yn,$n);if(!bn)throw new Error("point at infinify");return bn.assertValidity(),bn}hasHighS(){return N(this.s)}normalizeS(){return this.hasHighS()?new Z(this.r,y(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes$2(this.toDERHex())}toDERHex(){return DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes$2(this.toCompactHex())}toCompactHex(){return I(this.r)+I(this.s)}}const ne={isValidPrivateKey(le){try{return T(le),!0}catch{return!1}},normPrivateKeyToScalar:T,randomPrivateKey:()=>numberToBytesBE(hashToPrivateScalar(s.randomBytes(r.BYTES+8),i),s.nByteLength),precompute:(le=8,ae=C.BASE)=>(ae._setWindowSize(le),ae.multiply(BigInt(3)),ae)};function be(le){const ae=le instanceof Uint8Array,Ie="string"==typeof le,$e=(ae||Ie)&&le.length;return ae?$e===a||$e===c:Ie?$e===2*a||$e===2*c:le instanceof C}const me=s.bits2int||function(le){const ae=bytesToNumberBE(le),Ie=8*le.length-s.nBitLength;return Ie>0?ae>>BigInt(Ie):ae},pe=s.bits2int_modN||function(le){return y(me(le))},Te=bitMask(s.nBitLength);function xe(le){if("bigint"!=typeof le)throw new Error("bigint expected");if(!(_0n$1<=le&&leQe in Ie))throw new Error("sign() legacy options not supported");const{hash:$e,randomBytes:st}=s;let{lowS:ht,prehash:vt,extraEntropy:at}=Ie;null==ht&&(ht=!0),le=ensureBytes$1("msgHash",le),vt&&(le=ensureBytes$1("prehashed msgHash",$e(le)));const Xt=pe(le),ln=T(ae),yn=[xe(ln),xe(Xt)];if(null!=at){const Qe=!0===at?st(r.BYTES):at;yn.push(ensureBytes$1("extraEntropy",Qe,r.BYTES))}const $n=concatBytes$2(...yn),bn=Xt;return{seed:$n,k2sig:function(Qe){const bt=me(Qe);if(!A(bt))return;const ze=w(bt),Fe=C.BASE.multiply(bt).toAffine(),Ft=y(Fe.x);if(Ft===_0n$1)return;const Ke=y(ze*y(bn+Ft*ln));if(Ke===_0n$1)return;let dt=(Fe.x===Ft?0:2)|Number(Fe.y&_1n$1),Ge=Ke;return ht&&N(Ke)&&(Ge=N(He=Ke)?y(-He):He,dt^=1),new Z(Ft,Ge,dt);var He}}}(le,ae,Ie);return createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)($e,st)},verify:function(le,ae,Ie,$e=Ce){const st=le;if(ae=ensureBytes$1("msgHash",ae),Ie=ensureBytes$1("publicKey",Ie),"strict"in $e)throw new Error("options.strict was renamed to lowS");const{lowS:ht,prehash:vt}=$e;let at,Xt;try{if("string"==typeof st||st instanceof Uint8Array)try{at=Z.fromDER(st)}catch(Fe){if(!(Fe instanceof DER.Err))throw Fe;at=Z.fromCompact(st)}else{if("object"!=typeof st||"bigint"!=typeof st.r||"bigint"!=typeof st.s)throw new Error("PARSE");{const{r:Fe,s:Ft}=st;at=new Z(Fe,Ft)}}Xt=C.fromHex(Ie)}catch(Fe){if("PARSE"===Fe.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(ht&&at.hasHighS())return!1;vt&&(ae=s.hash(ae));const{r:ln,s:yn}=at,$n=pe(ae),bn=w(yn),Qe=y($n*bn),bt=y(ln*bn),ze=C.BASE.multiplyAndAddUnsafe(Xt,Qe,bt)?.toAffine();return!!ze&&y(ze.x)===ln},ProjectivePoint:C,Signature:Z,utils:ne}}BigInt(4);let HMAC$2=class extends Hash$2{constructor(o,s){super(),this.finished=!1,this.destroyed=!1,assert$3.hash(o);const r=toBytes$3(s);if(this.iHash=o.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?o.create().update(r).digest():r);for(let c=0;cnew HMAC$2(o,s).update(r).digest();function getHash(o){return{hash:o,hmac:(s,...r)=>hmac$2(o,s,concatBytes$3(...r)),randomBytes:randomBytes$2}}function createCurve(o,s){const r=i=>weierstrass({...o,...getHash(i)});return Object.freeze({...r(s),create:r})}hmac$2.create=(o,s)=>new HMAC$2(o,s);const secp256k1P=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),secp256k1N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_1n=BigInt(1),_2n=BigInt(2),divNearest=(o,s)=>(o+s/_2n)/s;function sqrtMod(o){const s=secp256k1P,r=BigInt(3),i=BigInt(6),a=BigInt(11),c=BigInt(22),y=BigInt(23),w=BigInt(44),C=BigInt(88),T=o*o*o%s,S=T*T*o%s,A=pow2(S,r,s)*S%s,I=pow2(A,r,s)*S%s,N=pow2(I,_2n,s)*T%s,G=pow2(N,a,s)*N%s,Z=pow2(G,c,s)*G%s,ne=pow2(Z,w,s)*Z%s,be=pow2(ne,C,s)*ne%s,me=pow2(be,w,s)*Z%s,pe=pow2(me,r,s)*S%s,Te=pow2(pe,y,s)*G%s,xe=pow2(Te,i,s)*T%s,Re=pow2(xe,_2n,s);if(!Fp.eql(Fp.sqr(Re),o))throw new Error("Cannot find square root");return Re}const Fp=Field(secp256k1P,void 0,void 0,{sqrt:sqrtMod}),secp256k1=createCurve({a:BigInt(0),b:BigInt(7),Fp,n:secp256k1N,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:o=>{const s=secp256k1N,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),i=-_1n*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),c=r,y=BigInt("0x100000000000000000000000000000000"),w=divNearest(c*o,s),C=divNearest(-i*o,s);let T=mod(o-w*r-C*a,s),S=mod(-w*i-C*c,s);const A=T>y,I=S>y;if(A&&(T=s-T),I&&(S=s-S),T>y||S>y)throw new Error("splitScalar: Endomorphism failed, k="+o);return{k1neg:A,k1:T,k2neg:I,k2:S}}}},sha256$2),_0n=BigInt(0),fe=o=>"bigint"==typeof o&&_0n"bigint"==typeof o&&_0na.charCodeAt(0)));r=concatBytes$2(i,i),TAGGED_HASH_PREFIXES[o]=r}return sha256$2(concatBytes$2(r,...s))}const pointToBytes=o=>o.toRawBytes(!0).slice(1),numTo32b=o=>numberToBytesBE(o,32),modP=o=>mod(o,secp256k1P),modN=o=>mod(o,secp256k1N),Point$1=secp256k1.ProjectivePoint,GmulAdd=(o,s,r)=>Point$1.BASE.multiplyAndAddUnsafe(o,s,r);function schnorrGetExtPubKey(o){let s=secp256k1.utils.normPrivateKeyToScalar(o),r=Point$1.fromPrivateKey(s);return{scalar:r.hasEvenY()?s:modN(-s),bytes:pointToBytes(r)}}function lift_x(o){if(!fe(o))throw new Error("bad x: need 0 < x < p");const s=modP(o*o);let r=sqrtMod(modP(s*o+BigInt(7)));r%_2n!==_0n&&(r=modP(-r));const i=new Point$1(o,r,_1n);return i.assertValidity(),i}function challenge(...o){return modN(bytesToNumberBE(taggedHash("BIP0340/challenge",...o)))}function schnorrGetPublicKey(o){return schnorrGetExtPubKey(o).bytes}function schnorrSign(o,s,r=randomBytes$2(32)){const i=ensureBytes$1("message",o),{bytes:a,scalar:c}=schnorrGetExtPubKey(s),y=ensureBytes$1("auxRand",r,32),w=numTo32b(c^bytesToNumberBE(taggedHash("BIP0340/aux",y))),C=taggedHash("BIP0340/nonce",w,a,i),T=modN(bytesToNumberBE(C));if(T===_0n)throw new Error("sign failed: k is zero");const{bytes:S,scalar:A}=schnorrGetExtPubKey(T),I=challenge(S,a,i),N=new Uint8Array(64);if(N.set(S,0),N.set(numTo32b(modN(A+I*c)),32),!schnorrVerify(N,i,a))throw new Error("sign: Invalid signature produced");return N}function schnorrVerify(o,s,r){const i=ensureBytes$1("signature",o,64),a=ensureBytes$1("message",s),c=ensureBytes$1("publicKey",r,32);try{const y=lift_x(bytesToNumberBE(c)),w=bytesToNumberBE(i.subarray(0,32));if(!fe(w))return!1;const C=bytesToNumberBE(i.subarray(32,64));if(!ge(C))return!1;const T=challenge(numTo32b(w),pointToBytes(y),a),S=GmulAdd(y,C,modN(-T));return!(!S||!S.hasEvenY()||S.toAffine().x!==w)}catch{return!1}}const schnorr={getPublicKey:schnorrGetPublicKey,sign:schnorrSign,verify:schnorrVerify,utils:{randomPrivateKey:secp256k1.utils.randomPrivateKey,lift_x,pointToBytes,numberToBytesBE,bytesToNumberBE,taggedHash,mod}},crypto$2="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,u8a$1=o=>o instanceof Uint8Array,createView$1=o=>new DataView(o.buffer,o.byteOffset,o.byteLength),rotr$1=(o,s)=>o<<32-s|o>>>s,isLE$2=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$2)throw new Error("Non little-endian hardware is not supported");const hexes$1=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex$1(o){if(!u8a$1(o))throw new Error("Uint8Array expected");let s="";for(let r=0;ri+a.length,0));let r=0;return o.forEach(i=>{if(!u8a$1(i))throw new Error("Uint8Array expected");s.set(i,r),r+=i.length}),s}let Hash$1=class{clone(){return this._cloneInto()}};function wrapConstructor$1(o){const s=i=>o().update(toBytes$2(i)).digest(),r=o();return s.outputLen=r.outputLen,s.blockLen=r.blockLen,s.create=()=>o(),s}function randomBytes$1(o=32){if(crypto$2&&"function"==typeof crypto$2.getRandomValues)return crypto$2.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}function number$2(o){if(!Number.isSafeInteger(o)||o<0)throw new Error(`Wrong positive integer: ${o}`)}function bool$2(o){if("boolean"!=typeof o)throw new Error(`Expected boolean, not ${o}`)}function bytes$2(o,...s){if(!(o instanceof Uint8Array))throw new Error("Expected Uint8Array");if(s.length>0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$2(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$2(o.outputLen),number$2(o.blockLen)}function exists$2(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$2(o,s){bytes$2(o);const r=s.outputLen;if(o.length>a&c),w=Number(r&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}let SHA2$1=class extends Hash$1{constructor(o,s,r,i){super(),this.blockLen=o,this.outputLen=s,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=createView$1(this.buffer)}update(o){assert$2.exists(this);const{view:s,buffer:r,blockLen:i}=this,a=(o=toBytes$2(o)).length;for(let c=0;ci-c&&(this.process(r,0),c=0);for(let S=c;ST.length)throw new Error("_sha2: outputLen bigger than state");for(let S=0;So&s^~o&r,Maj$1=(o,s,r)=>o&s^o&r^s&r,SHA256_K$1=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV$1=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$1=new Uint32Array(64);let SHA256$1=class extends SHA2$1{constructor(){super(64,32,8,!1),this.A=0|IV$1[0],this.B=0|IV$1[1],this.C=0|IV$1[2],this.D=0|IV$1[3],this.E=0|IV$1[4],this.F=0|IV$1[5],this.G=0|IV$1[6],this.H=0|IV$1[7]}get(){const{A:o,B:s,C:r,D:i,E:a,F:c,G:y,H:w}=this;return[o,s,r,i,a,c,y,w]}set(o,s,r,i,a,c,y,w){this.A=0|o,this.B=0|s,this.C=0|r,this.D=0|i,this.E=0|a,this.F=0|c,this.G=0|y,this.H=0|w}process(o,s){for(let S=0;S<16;S++,s+=4)SHA256_W$1[S]=o.getUint32(s,!1);for(let S=16;S<64;S++){const A=SHA256_W$1[S-15],I=SHA256_W$1[S-2],N=rotr$1(A,7)^rotr$1(A,18)^A>>>3,G=rotr$1(I,17)^rotr$1(I,19)^I>>>10;SHA256_W$1[S]=G+SHA256_W$1[S-7]+N+SHA256_W$1[S-16]|0}let{A:r,B:i,C:a,D:c,E:y,F:w,G:C,H:T}=this;for(let S=0;S<64;S++){const A=T+(rotr$1(y,6)^rotr$1(y,11)^rotr$1(y,25))+Chi$1(y,w,C)+SHA256_K$1[S]+SHA256_W$1[S]|0,I=(rotr$1(r,2)^rotr$1(r,13)^rotr$1(r,22))+Maj$1(r,i,a)|0;T=C,C=w,w=y,y=c+A|0,c=a,a=i,i=r,r=A+I|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,y=y+this.E|0,w=w+this.F|0,C=C+this.G|0,T=T+this.H|0,this.set(r,i,a,c,y,w,C,T)}roundClean(){SHA256_W$1.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};class SHA224 extends SHA256$1{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const sha256$1=wrapConstructor$1(()=>new SHA256$1);function assertNumber(o){if(!Number.isSafeInteger(o))throw new Error(`Wrong integer: ${o}`)}function chain$1(...o){const s=(r,i)=>a=>r(i(a));return{encode:Array.from(o).reverse().reduce((r,i)=>r?s(r,i.encode):i.encode,void 0),decode:o.reduce((r,i)=>r?s(r,i.decode):i.decode,void 0)}}function alphabet$1(o){return{encode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("alphabet.encode input should be an array of numbers");return s.map(r=>{if(assertNumber(r),r<0||r>=o.length)throw new Error(`Digit index outside alphabet: ${r} (alphabet: ${o.length})`);return o[r]})},decode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("alphabet.decode input should be array of strings");return s.map(r=>{if("string"!=typeof r)throw new Error(`alphabet.decode: not string element=${r}`);const i=o.indexOf(r);if(-1===i)throw new Error(`Unknown letter: "${r}". Allowed: ${o}`);return i})}}}function join$1(o=""){if("string"!=typeof o)throw new Error("join separator should be string");return{encode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("join.encode input should be array of strings");for(let r of s)if("string"!=typeof r)throw new Error(`join.encode: non-string input=${r}`);return s.join(o)},decode:s=>{if("string"!=typeof s)throw new Error("join.decode input should be string");return s.split(o)}}}function padding$1(o,s="="){if(assertNumber(o),"string"!=typeof s)throw new Error("padding chr should be string");return{encode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let i of r)if("string"!=typeof i)throw new Error(`padding.encode: non-string input=${i}`);for(;r.length*o%8;)r.push(s);return r},decode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let a of r)if("string"!=typeof a)throw new Error(`padding.decode: non-string input=${a}`);let i=r.length;if(i*o%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;i>0&&r[i-1]===s;i--)if(!((i-1)*o%8))throw new Error("Invalid padding: string has too much padding");return r.slice(0,i)}}}function normalize$1(o){if("function"!=typeof o)throw new Error("normalize fn should be function");return{encode:s=>s,decode:s=>o(s)}}function convertRadix$1(o,s,r){if(s<2)throw new Error(`convertRadix: wrong from=${s}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: wrong to=${r}, base cannot be less than 2`);if(!Array.isArray(o))throw new Error("convertRadix: data should be array");if(!o.length)return[];let i=0;const a=[],c=Array.from(o);for(c.forEach(y=>{if(assertNumber(y),y<0||y>=s)throw new Error(`Wrong integer: ${y}`)});;){let y=0,w=!0;for(let C=i;Cnew SHA224);const gcd$1=(o,s)=>s?gcd$1(s,o%s):o,radix2carry$1=(o,s)=>o+(s-gcd$1(o,s));function convertRadix2$1(o,s,r,i){if(!Array.isArray(o))throw new Error("convertRadix2: data should be array");if(s<=0||s>32)throw new Error(`convertRadix2: wrong from=${s}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(radix2carry$1(s,r)>32)throw new Error(`convertRadix2: carry overflow from=${s} to=${r} carryBits=${radix2carry$1(s,r)}`);let a=0,c=0;const y=2**r-1,w=[];for(const C of o){if(assertNumber(C),C>=2**s)throw new Error(`convertRadix2: invalid data word=${C} from=${s}`);if(a=a<32)throw new Error(`convertRadix2: carry overflow pos=${c} from=${s}`);for(c+=s;c>=r;c-=r)w.push((a>>c-r&y)>>>0);a&=2**c-1}if(a=a<=s)throw new Error("Excess padding");if(!i&&a)throw new Error(`Non-zero padding: ${a}`);return i&&c>0&&w.push(a>>>0),w}function radix$1(o){return assertNumber(o),{encode:s=>{if(!(s instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return convertRadix$1(Array.from(s),256,o)},decode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(convertRadix$1(s,o,256))}}}function radix2$1(o,s=!1){if(assertNumber(o),o<=0||o>32)throw new Error("radix2: bits should be in (0..32]");if(radix2carry$1(8,o)>32||radix2carry$1(o,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!(r instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return convertRadix2$1(Array.from(r),8,o,!s)},decode:r=>{if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(convertRadix2$1(r,o,8,s))}}}function unsafeWrapper$1(o){if("function"!=typeof o)throw new Error("unsafeWrapper fn should be function");return function(...s){try{return o.apply(null,s)}catch{}}}const base16=chain$1(radix2$1(4),alphabet$1("0123456789ABCDEF"),join$1("")),base32=chain$1(radix2$1(5),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),padding$1(5),join$1(""));chain$1(radix2$1(5),alphabet$1("0123456789ABCDEFGHIJKLMNOPQRSTUV"),padding$1(5),join$1("")),chain$1(radix2$1(5),alphabet$1("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),join$1(""),normalize$1(o=>o.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")));const base64$1=chain$1(radix2$1(6),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),padding$1(6),join$1("")),base64url=chain$1(radix2$1(6),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),padding$1(6),join$1("")),genBase58$1=o=>chain$1(radix$1(58),alphabet$1(o),join$1("")),base58$1=genBase58$1("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");genBase58$1("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),genBase58$1("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const XMR_BLOCK_LEN=[0,2,3,5,6,7,9,10,11],base58xmr={encode(o){let s="";for(let r=0;r>25;let r=(33554431&o)<<5;for(let i=0;i>i&1)&&(r^=POLYMOD_GENERATORS$1[i]);return r}function bechChecksum$1(o,s,r=1){const i=o.length;let a=1;for(let c=0;c126)throw new Error(`Invalid prefix (${o})`);a=bech32Polymod$1(a)^y>>5}a=bech32Polymod$1(a);for(let c=0;cC)throw new TypeError(`Wrong string length: ${w.length} (${w}). Expected (8..${C})`);const T=w.toLowerCase();if(w!==T&&w!==w.toUpperCase())throw new Error("String must be lowercase or uppercase");const S=(w=T).lastIndexOf("1");if(0===S||-1===S)throw new Error('Letter "1" must be present between prefix and data only');const A=w.slice(0,S),I=w.slice(S+1);if(I.length<6)throw new Error("Data must be at least 6 characters long");const N=BECH_ALPHABET$1.decode(I).slice(0,-6),G=bechChecksum$1(A,N,s);if(!I.endsWith(G))throw new Error(`Invalid checksum in ${w}: expected "${G}"`);return{prefix:A,words:N}}return{encode:function(w,C,T=90){if("string"!=typeof w)throw new Error("bech32.encode prefix should be string, not "+typeof w);if(!Array.isArray(C)||C.length&&"number"!=typeof C[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof C);const S=w.length+7+C.length;if(!1!==T&&S>T)throw new TypeError(`Length ${S} exceeds limit ${T}`);return`${w=w.toLowerCase()}1${BECH_ALPHABET$1.encode(C)}${bechChecksum$1(w,C,s)}`},decode:y,decodeToBytes:function(w){const{prefix:C,words:T}=y(w,!1);return{prefix:C,words:T,bytes:i(T)}},decodeUnsafe:unsafeWrapper$1(y),fromWords:i,fromWordsUnsafe:c,toWords:a}}const bech32$1=genBech32$1("bech32");genBech32$1("bech32m");const utf8={encode:o=>(new TextDecoder).decode(o),decode:o=>(new TextEncoder).encode(o)},hex=chain$1(radix2$1(4),alphabet$1("0123456789abcdef"),join$1(""),normalize$1(o=>{if("string"!=typeof o||o.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof o} with length ${o.length}`);return o.toLowerCase()})),CODERS={utf8,hex,base16,base32,base64:base64$1,base64url,base58:base58$1,base58xmr};Object.keys(CODERS).join(", ");const wordlist="abandon\nability\nable\nabout\nabove\nabsent\nabsorb\nabstract\nabsurd\nabuse\naccess\naccident\naccount\naccuse\nachieve\nacid\nacoustic\nacquire\nacross\nact\naction\nactor\nactress\nactual\nadapt\nadd\naddict\naddress\nadjust\nadmit\nadult\nadvance\nadvice\naerobic\naffair\nafford\nafraid\nagain\nage\nagent\nagree\nahead\naim\nair\nairport\naisle\nalarm\nalbum\nalcohol\nalert\nalien\nall\nalley\nallow\nalmost\nalone\nalpha\nalready\nalso\nalter\nalways\namateur\namazing\namong\namount\namused\nanalyst\nanchor\nancient\nanger\nangle\nangry\nanimal\nankle\nannounce\nannual\nanother\nanswer\nantenna\nantique\nanxiety\nany\napart\napology\nappear\napple\napprove\napril\narch\narctic\narea\narena\nargue\narm\narmed\narmor\narmy\naround\narrange\narrest\narrive\narrow\nart\nartefact\nartist\nartwork\nask\naspect\nassault\nasset\nassist\nassume\nasthma\nathlete\natom\nattack\nattend\nattitude\nattract\nauction\naudit\naugust\naunt\nauthor\nauto\nautumn\naverage\navocado\navoid\nawake\naware\naway\nawesome\nawful\nawkward\naxis\nbaby\nbachelor\nbacon\nbadge\nbag\nbalance\nbalcony\nball\nbamboo\nbanana\nbanner\nbar\nbarely\nbargain\nbarrel\nbase\nbasic\nbasket\nbattle\nbeach\nbean\nbeauty\nbecause\nbecome\nbeef\nbefore\nbegin\nbehave\nbehind\nbelieve\nbelow\nbelt\nbench\nbenefit\nbest\nbetray\nbetter\nbetween\nbeyond\nbicycle\nbid\nbike\nbind\nbiology\nbird\nbirth\nbitter\nblack\nblade\nblame\nblanket\nblast\nbleak\nbless\nblind\nblood\nblossom\nblouse\nblue\nblur\nblush\nboard\nboat\nbody\nboil\nbomb\nbone\nbonus\nbook\nboost\nborder\nboring\nborrow\nboss\nbottom\nbounce\nbox\nboy\nbracket\nbrain\nbrand\nbrass\nbrave\nbread\nbreeze\nbrick\nbridge\nbrief\nbright\nbring\nbrisk\nbroccoli\nbroken\nbronze\nbroom\nbrother\nbrown\nbrush\nbubble\nbuddy\nbudget\nbuffalo\nbuild\nbulb\nbulk\nbullet\nbundle\nbunker\nburden\nburger\nburst\nbus\nbusiness\nbusy\nbutter\nbuyer\nbuzz\ncabbage\ncabin\ncable\ncactus\ncage\ncake\ncall\ncalm\ncamera\ncamp\ncan\ncanal\ncancel\ncandy\ncannon\ncanoe\ncanvas\ncanyon\ncapable\ncapital\ncaptain\ncar\ncarbon\ncard\ncargo\ncarpet\ncarry\ncart\ncase\ncash\ncasino\ncastle\ncasual\ncat\ncatalog\ncatch\ncategory\ncattle\ncaught\ncause\ncaution\ncave\nceiling\ncelery\ncement\ncensus\ncentury\ncereal\ncertain\nchair\nchalk\nchampion\nchange\nchaos\nchapter\ncharge\nchase\nchat\ncheap\ncheck\ncheese\nchef\ncherry\nchest\nchicken\nchief\nchild\nchimney\nchoice\nchoose\nchronic\nchuckle\nchunk\nchurn\ncigar\ncinnamon\ncircle\ncitizen\ncity\ncivil\nclaim\nclap\nclarify\nclaw\nclay\nclean\nclerk\nclever\nclick\nclient\ncliff\nclimb\nclinic\nclip\nclock\nclog\nclose\ncloth\ncloud\nclown\nclub\nclump\ncluster\nclutch\ncoach\ncoast\ncoconut\ncode\ncoffee\ncoil\ncoin\ncollect\ncolor\ncolumn\ncombine\ncome\ncomfort\ncomic\ncommon\ncompany\nconcert\nconduct\nconfirm\ncongress\nconnect\nconsider\ncontrol\nconvince\ncook\ncool\ncopper\ncopy\ncoral\ncore\ncorn\ncorrect\ncost\ncotton\ncouch\ncountry\ncouple\ncourse\ncousin\ncover\ncoyote\ncrack\ncradle\ncraft\ncram\ncrane\ncrash\ncrater\ncrawl\ncrazy\ncream\ncredit\ncreek\ncrew\ncricket\ncrime\ncrisp\ncritic\ncrop\ncross\ncrouch\ncrowd\ncrucial\ncruel\ncruise\ncrumble\ncrunch\ncrush\ncry\ncrystal\ncube\nculture\ncup\ncupboard\ncurious\ncurrent\ncurtain\ncurve\ncushion\ncustom\ncute\ncycle\ndad\ndamage\ndamp\ndance\ndanger\ndaring\ndash\ndaughter\ndawn\nday\ndeal\ndebate\ndebris\ndecade\ndecember\ndecide\ndecline\ndecorate\ndecrease\ndeer\ndefense\ndefine\ndefy\ndegree\ndelay\ndeliver\ndemand\ndemise\ndenial\ndentist\ndeny\ndepart\ndepend\ndeposit\ndepth\ndeputy\nderive\ndescribe\ndesert\ndesign\ndesk\ndespair\ndestroy\ndetail\ndetect\ndevelop\ndevice\ndevote\ndiagram\ndial\ndiamond\ndiary\ndice\ndiesel\ndiet\ndiffer\ndigital\ndignity\ndilemma\ndinner\ndinosaur\ndirect\ndirt\ndisagree\ndiscover\ndisease\ndish\ndismiss\ndisorder\ndisplay\ndistance\ndivert\ndivide\ndivorce\ndizzy\ndoctor\ndocument\ndog\ndoll\ndolphin\ndomain\ndonate\ndonkey\ndonor\ndoor\ndose\ndouble\ndove\ndraft\ndragon\ndrama\ndrastic\ndraw\ndream\ndress\ndrift\ndrill\ndrink\ndrip\ndrive\ndrop\ndrum\ndry\nduck\ndumb\ndune\nduring\ndust\ndutch\nduty\ndwarf\ndynamic\neager\neagle\nearly\nearn\nearth\neasily\neast\neasy\necho\necology\neconomy\nedge\nedit\neducate\neffort\negg\neight\neither\nelbow\nelder\nelectric\nelegant\nelement\nelephant\nelevator\nelite\nelse\nembark\nembody\nembrace\nemerge\nemotion\nemploy\nempower\nempty\nenable\nenact\nend\nendless\nendorse\nenemy\nenergy\nenforce\nengage\nengine\nenhance\nenjoy\nenlist\nenough\nenrich\nenroll\nensure\nenter\nentire\nentry\nenvelope\nepisode\nequal\nequip\nera\nerase\nerode\nerosion\nerror\nerupt\nescape\nessay\nessence\nestate\neternal\nethics\nevidence\nevil\nevoke\nevolve\nexact\nexample\nexcess\nexchange\nexcite\nexclude\nexcuse\nexecute\nexercise\nexhaust\nexhibit\nexile\nexist\nexit\nexotic\nexpand\nexpect\nexpire\nexplain\nexpose\nexpress\nextend\nextra\neye\neyebrow\nfabric\nface\nfaculty\nfade\nfaint\nfaith\nfall\nfalse\nfame\nfamily\nfamous\nfan\nfancy\nfantasy\nfarm\nfashion\nfat\nfatal\nfather\nfatigue\nfault\nfavorite\nfeature\nfebruary\nfederal\nfee\nfeed\nfeel\nfemale\nfence\nfestival\nfetch\nfever\nfew\nfiber\nfiction\nfield\nfigure\nfile\nfilm\nfilter\nfinal\nfind\nfine\nfinger\nfinish\nfire\nfirm\nfirst\nfiscal\nfish\nfit\nfitness\nfix\nflag\nflame\nflash\nflat\nflavor\nflee\nflight\nflip\nfloat\nflock\nfloor\nflower\nfluid\nflush\nfly\nfoam\nfocus\nfog\nfoil\nfold\nfollow\nfood\nfoot\nforce\nforest\nforget\nfork\nfortune\nforum\nforward\nfossil\nfoster\nfound\nfox\nfragile\nframe\nfrequent\nfresh\nfriend\nfringe\nfrog\nfront\nfrost\nfrown\nfrozen\nfruit\nfuel\nfun\nfunny\nfurnace\nfury\nfuture\ngadget\ngain\ngalaxy\ngallery\ngame\ngap\ngarage\ngarbage\ngarden\ngarlic\ngarment\ngas\ngasp\ngate\ngather\ngauge\ngaze\ngeneral\ngenius\ngenre\ngentle\ngenuine\ngesture\nghost\ngiant\ngift\ngiggle\nginger\ngiraffe\ngirl\ngive\nglad\nglance\nglare\nglass\nglide\nglimpse\nglobe\ngloom\nglory\nglove\nglow\nglue\ngoat\ngoddess\ngold\ngood\ngoose\ngorilla\ngospel\ngossip\ngovern\ngown\ngrab\ngrace\ngrain\ngrant\ngrape\ngrass\ngravity\ngreat\ngreen\ngrid\ngrief\ngrit\ngrocery\ngroup\ngrow\ngrunt\nguard\nguess\nguide\nguilt\nguitar\ngun\ngym\nhabit\nhair\nhalf\nhammer\nhamster\nhand\nhappy\nharbor\nhard\nharsh\nharvest\nhat\nhave\nhawk\nhazard\nhead\nhealth\nheart\nheavy\nhedgehog\nheight\nhello\nhelmet\nhelp\nhen\nhero\nhidden\nhigh\nhill\nhint\nhip\nhire\nhistory\nhobby\nhockey\nhold\nhole\nholiday\nhollow\nhome\nhoney\nhood\nhope\nhorn\nhorror\nhorse\nhospital\nhost\nhotel\nhour\nhover\nhub\nhuge\nhuman\nhumble\nhumor\nhundred\nhungry\nhunt\nhurdle\nhurry\nhurt\nhusband\nhybrid\nice\nicon\nidea\nidentify\nidle\nignore\nill\nillegal\nillness\nimage\nimitate\nimmense\nimmune\nimpact\nimpose\nimprove\nimpulse\ninch\ninclude\nincome\nincrease\nindex\nindicate\nindoor\nindustry\ninfant\ninflict\ninform\ninhale\ninherit\ninitial\ninject\ninjury\ninmate\ninner\ninnocent\ninput\ninquiry\ninsane\ninsect\ninside\ninspire\ninstall\nintact\ninterest\ninto\ninvest\ninvite\ninvolve\niron\nisland\nisolate\nissue\nitem\nivory\njacket\njaguar\njar\njazz\njealous\njeans\njelly\njewel\njob\njoin\njoke\njourney\njoy\njudge\njuice\njump\njungle\njunior\njunk\njust\nkangaroo\nkeen\nkeep\nketchup\nkey\nkick\nkid\nkidney\nkind\nkingdom\nkiss\nkit\nkitchen\nkite\nkitten\nkiwi\nknee\nknife\nknock\nknow\nlab\nlabel\nlabor\nladder\nlady\nlake\nlamp\nlanguage\nlaptop\nlarge\nlater\nlatin\nlaugh\nlaundry\nlava\nlaw\nlawn\nlawsuit\nlayer\nlazy\nleader\nleaf\nlearn\nleave\nlecture\nleft\nleg\nlegal\nlegend\nleisure\nlemon\nlend\nlength\nlens\nleopard\nlesson\nletter\nlevel\nliar\nliberty\nlibrary\nlicense\nlife\nlift\nlight\nlike\nlimb\nlimit\nlink\nlion\nliquid\nlist\nlittle\nlive\nlizard\nload\nloan\nlobster\nlocal\nlock\nlogic\nlonely\nlong\nloop\nlottery\nloud\nlounge\nlove\nloyal\nlucky\nluggage\nlumber\nlunar\nlunch\nluxury\nlyrics\nmachine\nmad\nmagic\nmagnet\nmaid\nmail\nmain\nmajor\nmake\nmammal\nman\nmanage\nmandate\nmango\nmansion\nmanual\nmaple\nmarble\nmarch\nmargin\nmarine\nmarket\nmarriage\nmask\nmass\nmaster\nmatch\nmaterial\nmath\nmatrix\nmatter\nmaximum\nmaze\nmeadow\nmean\nmeasure\nmeat\nmechanic\nmedal\nmedia\nmelody\nmelt\nmember\nmemory\nmention\nmenu\nmercy\nmerge\nmerit\nmerry\nmesh\nmessage\nmetal\nmethod\nmiddle\nmidnight\nmilk\nmillion\nmimic\nmind\nminimum\nminor\nminute\nmiracle\nmirror\nmisery\nmiss\nmistake\nmix\nmixed\nmixture\nmobile\nmodel\nmodify\nmom\nmoment\nmonitor\nmonkey\nmonster\nmonth\nmoon\nmoral\nmore\nmorning\nmosquito\nmother\nmotion\nmotor\nmountain\nmouse\nmove\nmovie\nmuch\nmuffin\nmule\nmultiply\nmuscle\nmuseum\nmushroom\nmusic\nmust\nmutual\nmyself\nmystery\nmyth\nnaive\nname\nnapkin\nnarrow\nnasty\nnation\nnature\nnear\nneck\nneed\nnegative\nneglect\nneither\nnephew\nnerve\nnest\nnet\nnetwork\nneutral\nnever\nnews\nnext\nnice\nnight\nnoble\nnoise\nnominee\nnoodle\nnormal\nnorth\nnose\nnotable\nnote\nnothing\nnotice\nnovel\nnow\nnuclear\nnumber\nnurse\nnut\noak\nobey\nobject\noblige\nobscure\nobserve\nobtain\nobvious\noccur\nocean\noctober\nodor\noff\noffer\noffice\noften\noil\nokay\nold\nolive\nolympic\nomit\nonce\none\nonion\nonline\nonly\nopen\nopera\nopinion\noppose\noption\norange\norbit\norchard\norder\nordinary\norgan\norient\noriginal\norphan\nostrich\nother\noutdoor\nouter\noutput\noutside\noval\noven\nover\nown\nowner\noxygen\noyster\nozone\npact\npaddle\npage\npair\npalace\npalm\npanda\npanel\npanic\npanther\npaper\nparade\nparent\npark\nparrot\nparty\npass\npatch\npath\npatient\npatrol\npattern\npause\npave\npayment\npeace\npeanut\npear\npeasant\npelican\npen\npenalty\npencil\npeople\npepper\nperfect\npermit\nperson\npet\nphone\nphoto\nphrase\nphysical\npiano\npicnic\npicture\npiece\npig\npigeon\npill\npilot\npink\npioneer\npipe\npistol\npitch\npizza\nplace\nplanet\nplastic\nplate\nplay\nplease\npledge\npluck\nplug\nplunge\npoem\npoet\npoint\npolar\npole\npolice\npond\npony\npool\npopular\nportion\nposition\npossible\npost\npotato\npottery\npoverty\npowder\npower\npractice\npraise\npredict\nprefer\nprepare\npresent\npretty\nprevent\nprice\npride\nprimary\nprint\npriority\nprison\nprivate\nprize\nproblem\nprocess\nproduce\nprofit\nprogram\nproject\npromote\nproof\nproperty\nprosper\nprotect\nproud\nprovide\npublic\npudding\npull\npulp\npulse\npumpkin\npunch\npupil\npuppy\npurchase\npurity\npurpose\npurse\npush\nput\npuzzle\npyramid\nquality\nquantum\nquarter\nquestion\nquick\nquit\nquiz\nquote\nrabbit\nraccoon\nrace\nrack\nradar\nradio\nrail\nrain\nraise\nrally\nramp\nranch\nrandom\nrange\nrapid\nrare\nrate\nrather\nraven\nraw\nrazor\nready\nreal\nreason\nrebel\nrebuild\nrecall\nreceive\nrecipe\nrecord\nrecycle\nreduce\nreflect\nreform\nrefuse\nregion\nregret\nregular\nreject\nrelax\nrelease\nrelief\nrely\nremain\nremember\nremind\nremove\nrender\nrenew\nrent\nreopen\nrepair\nrepeat\nreplace\nreport\nrequire\nrescue\nresemble\nresist\nresource\nresponse\nresult\nretire\nretreat\nreturn\nreunion\nreveal\nreview\nreward\nrhythm\nrib\nribbon\nrice\nrich\nride\nridge\nrifle\nright\nrigid\nring\nriot\nripple\nrisk\nritual\nrival\nriver\nroad\nroast\nrobot\nrobust\nrocket\nromance\nroof\nrookie\nroom\nrose\nrotate\nrough\nround\nroute\nroyal\nrubber\nrude\nrug\nrule\nrun\nrunway\nrural\nsad\nsaddle\nsadness\nsafe\nsail\nsalad\nsalmon\nsalon\nsalt\nsalute\nsame\nsample\nsand\nsatisfy\nsatoshi\nsauce\nsausage\nsave\nsay\nscale\nscan\nscare\nscatter\nscene\nscheme\nschool\nscience\nscissors\nscorpion\nscout\nscrap\nscreen\nscript\nscrub\nsea\nsearch\nseason\nseat\nsecond\nsecret\nsection\nsecurity\nseed\nseek\nsegment\nselect\nsell\nseminar\nsenior\nsense\nsentence\nseries\nservice\nsession\nsettle\nsetup\nseven\nshadow\nshaft\nshallow\nshare\nshed\nshell\nsheriff\nshield\nshift\nshine\nship\nshiver\nshock\nshoe\nshoot\nshop\nshort\nshoulder\nshove\nshrimp\nshrug\nshuffle\nshy\nsibling\nsick\nside\nsiege\nsight\nsign\nsilent\nsilk\nsilly\nsilver\nsimilar\nsimple\nsince\nsing\nsiren\nsister\nsituate\nsix\nsize\nskate\nsketch\nski\nskill\nskin\nskirt\nskull\nslab\nslam\nsleep\nslender\nslice\nslide\nslight\nslim\nslogan\nslot\nslow\nslush\nsmall\nsmart\nsmile\nsmoke\nsmooth\nsnack\nsnake\nsnap\nsniff\nsnow\nsoap\nsoccer\nsocial\nsock\nsoda\nsoft\nsolar\nsoldier\nsolid\nsolution\nsolve\nsomeone\nsong\nsoon\nsorry\nsort\nsoul\nsound\nsoup\nsource\nsouth\nspace\nspare\nspatial\nspawn\nspeak\nspecial\nspeed\nspell\nspend\nsphere\nspice\nspider\nspike\nspin\nspirit\nsplit\nspoil\nsponsor\nspoon\nsport\nspot\nspray\nspread\nspring\nspy\nsquare\nsqueeze\nsquirrel\nstable\nstadium\nstaff\nstage\nstairs\nstamp\nstand\nstart\nstate\nstay\nsteak\nsteel\nstem\nstep\nstereo\nstick\nstill\nsting\nstock\nstomach\nstone\nstool\nstory\nstove\nstrategy\nstreet\nstrike\nstrong\nstruggle\nstudent\nstuff\nstumble\nstyle\nsubject\nsubmit\nsubway\nsuccess\nsuch\nsudden\nsuffer\nsugar\nsuggest\nsuit\nsummer\nsun\nsunny\nsunset\nsuper\nsupply\nsupreme\nsure\nsurface\nsurge\nsurprise\nsurround\nsurvey\nsuspect\nsustain\nswallow\nswamp\nswap\nswarm\nswear\nsweet\nswift\nswim\nswing\nswitch\nsword\nsymbol\nsymptom\nsyrup\nsystem\ntable\ntackle\ntag\ntail\ntalent\ntalk\ntank\ntape\ntarget\ntask\ntaste\ntattoo\ntaxi\nteach\nteam\ntell\nten\ntenant\ntennis\ntent\nterm\ntest\ntext\nthank\nthat\ntheme\nthen\ntheory\nthere\nthey\nthing\nthis\nthought\nthree\nthrive\nthrow\nthumb\nthunder\nticket\ntide\ntiger\ntilt\ntimber\ntime\ntiny\ntip\ntired\ntissue\ntitle\ntoast\ntobacco\ntoday\ntoddler\ntoe\ntogether\ntoilet\ntoken\ntomato\ntomorrow\ntone\ntongue\ntonight\ntool\ntooth\ntop\ntopic\ntopple\ntorch\ntornado\ntortoise\ntoss\ntotal\ntourist\ntoward\ntower\ntown\ntoy\ntrack\ntrade\ntraffic\ntragic\ntrain\ntransfer\ntrap\ntrash\ntravel\ntray\ntreat\ntree\ntrend\ntrial\ntribe\ntrick\ntrigger\ntrim\ntrip\ntrophy\ntrouble\ntruck\ntrue\ntruly\ntrumpet\ntrust\ntruth\ntry\ntube\ntuition\ntumble\ntuna\ntunnel\nturkey\nturn\nturtle\ntwelve\ntwenty\ntwice\ntwin\ntwist\ntwo\ntype\ntypical\nugly\numbrella\nunable\nunaware\nuncle\nuncover\nunder\nundo\nunfair\nunfold\nunhappy\nuniform\nunique\nunit\nuniverse\nunknown\nunlock\nuntil\nunusual\nunveil\nupdate\nupgrade\nuphold\nupon\nupper\nupset\nurban\nurge\nusage\nuse\nused\nuseful\nuseless\nusual\nutility\nvacant\nvacuum\nvague\nvalid\nvalley\nvalve\nvan\nvanish\nvapor\nvarious\nvast\nvault\nvehicle\nvelvet\nvendor\nventure\nvenue\nverb\nverify\nversion\nvery\nvessel\nveteran\nviable\nvibrant\nvicious\nvictory\nvideo\nview\nvillage\nvintage\nviolin\nvirtual\nvirus\nvisa\nvisit\nvisual\nvital\nvivid\nvocal\nvoice\nvoid\nvolcano\nvolume\nvote\nvoyage\nwage\nwagon\nwait\nwalk\nwall\nwalnut\nwant\nwarfare\nwarm\nwarrior\nwash\nwasp\nwaste\nwater\nwave\nway\nwealth\nweapon\nwear\nweasel\nweather\nweb\nwedding\nweekend\nweird\nwelcome\nwest\nwet\nwhale\nwhat\nwheat\nwheel\nwhen\nwhere\nwhip\nwhisper\nwide\nwidth\nwife\nwild\nwill\nwin\nwindow\nwine\nwing\nwink\nwinner\nwinter\nwire\nwisdom\nwise\nwish\nwitness\nwolf\nwoman\nwonder\nwood\nwool\nword\nwork\nworld\nworry\nworth\nwrap\nwreck\nwrestle\nwrist\nwrite\nwrong\nyard\nyear\nyellow\nyou\nyoung\nyouth\nzebra\nzero\nzone\nzoo".split("\n");function number$1(o){if(!Number.isSafeInteger(o)||o<0)throw new Error(`Wrong positive integer: ${o}`)}function bool$1(o){if("boolean"!=typeof o)throw new Error(`Expected boolean, not ${o}`)}function isBytes$2(o){return o instanceof Uint8Array||null!=o&&"object"==typeof o&&"Uint8Array"===o.constructor.name}function bytes$1(o,...s){if(!isBytes$2(o))throw new Error("Expected Uint8Array");if(s.length>0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$1(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$1(o.outputLen),number$1(o.blockLen)}function exists$1(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$1(o,s){bytes$1(o);const r=s.outputLen;if(o.lengthnew DataView(o.buffer,o.byteOffset,o.byteLength),rotr=(o,s)=>o<<32-s|o>>>s,isLE$1=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$1)throw new Error("Non little-endian hardware is not supported");const hexes=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex(o){if(!isBytes$1(o))throw new Error("Uint8Array expected");let s="";for(let r=0;r=asciis._0&&o<=asciis._9?o-asciis._0:o>=asciis._A&&o<=asciis._F?o-(asciis._A-10):o>=asciis._a&&o<=asciis._f?o-(asciis._a-10):void 0}function hexToBytes(o){if("string"!=typeof o)throw new Error("hex string expected, got "+typeof o);const s=o.length,r=s/2;if(s%2)throw new Error("padded hex string expected, got unpadded hex of length "+s);const i=new Uint8Array(r);for(let a=0,c=0;ao().update(toBytes$1(i)).digest(),r=o();return s.outputLen=r.outputLen,s.blockLen=r.blockLen,s.create=()=>o(),s}function randomBytes(o=32){if(crypto$1&&"function"==typeof crypto$1.getRandomValues)return crypto$1.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}let HMAC$1=class extends Hash{constructor(o,s){super(),this.finished=!1,this.destroyed=!1,hash$1(o);const r=toBytes$1(s);if(this.iHash=o.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?o.create().update(r).digest():r);for(let c=0;cnew HMAC$1(o,s).update(r).digest();function pbkdf2Init(o,s,r,i){hash$1(o);const a=checkOpts$1({dkLen:32,asyncTick:10},i),{c,dkLen:y,asyncTick:w}=a;if(number$1(c),number$1(y),number$1(w),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const C=toBytes$1(s),T=toBytes$1(r),S=new Uint8Array(y),A=hmac$1.create(o,C),I=A._cloneInto().update(T);return{c,dkLen:y,asyncTick:w,DK:S,PRF:A,PRFSalt:I}}function pbkdf2Output(o,s,r,i,a){return o.destroy(),s.destroy(),i&&i.destroy(),a.fill(0),r}function pbkdf2(o,s,r,i){const{c:a,dkLen:c,DK:y,PRF:w,PRFSalt:C}=pbkdf2Init(o,s,r,i);let T;const S=new Uint8Array(4),A=createView(S),I=new Uint8Array(w.outputLen);for(let N=1,G=0;G>a&c),w=Number(r&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}hmac$1.create=(o,s)=>new HMAC$1(o,s);class SHA2 extends Hash{constructor(s,r,i,a){super(),this.blockLen=s,this.outputLen=r,this.padOffset=i,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(s),this.view=createView(this.buffer)}update(s){exists$1(this);const{view:r,buffer:i,blockLen:a}=this,c=(s=toBytes$1(s)).length;for(let y=0;ya-y&&(this.process(i,0),y=0);for(let A=y;AS.length)throw new Error("_sha2: outputLen bigger than state");for(let A=0;Ao&s^~o&r,Maj=(o,s,r)=>o&s^o&r^s&r,SHA256_K=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends SHA2{constructor(){super(64,32,8,!1),this.A=0|IV[0],this.B=0|IV[1],this.C=0|IV[2],this.D=0|IV[3],this.E=0|IV[4],this.F=0|IV[5],this.G=0|IV[6],this.H=0|IV[7]}get(){const{A:s,B:r,C:i,D:a,E:c,F:y,G:w,H:C}=this;return[s,r,i,a,c,y,w,C]}set(s,r,i,a,c,y,w,C){this.A=0|s,this.B=0|r,this.C=0|i,this.D=0|a,this.E=0|c,this.F=0|y,this.G=0|w,this.H=0|C}process(s,r){for(let A=0;A<16;A++,r+=4)SHA256_W[A]=s.getUint32(r,!1);for(let A=16;A<64;A++){const I=SHA256_W[A-15],N=SHA256_W[A-2],G=rotr(I,7)^rotr(I,18)^I>>>3,Z=rotr(N,17)^rotr(N,19)^N>>>10;SHA256_W[A]=Z+SHA256_W[A-7]+G+SHA256_W[A-16]|0}let{A:i,B:a,C:c,D:y,E:w,F:C,G:T,H:S}=this;for(let A=0;A<64;A++){const I=S+(rotr(w,6)^rotr(w,11)^rotr(w,25))+Chi(w,C,T)+SHA256_K[A]+SHA256_W[A]|0,N=(rotr(i,2)^rotr(i,13)^rotr(i,22))+Maj(i,a,c)|0;S=T,T=C,C=w,w=y+I|0,y=c,c=a,a=i,i=I+N|0}i=i+this.A|0,a=a+this.B|0,c=c+this.C|0,y=y+this.D|0,w=w+this.E|0,C=C+this.F|0,T=T+this.G|0,S=S+this.H|0,this.set(i,a,c,y,w,C,T,S)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const sha256=wrapConstructor(()=>new SHA256),U32_MASK64=BigInt(2**32-1),_32n=BigInt(32);function fromBig(o,s=!1){return s?{h:Number(o&U32_MASK64),l:Number(o>>_32n&U32_MASK64)}:{h:0|Number(o>>_32n&U32_MASK64),l:0|Number(o&U32_MASK64)}}function split(o,s=!1){let r=new Uint32Array(o.length),i=new Uint32Array(o.length);for(let a=0;aBigInt(o>>>0)<<_32n|BigInt(s>>>0),shrSH=(o,s,r)=>o>>>r,shrSL=(o,s,r)=>o<<32-r|s>>>r,rotrSH=(o,s,r)=>o>>>r|s<<32-r,rotrSL=(o,s,r)=>o<<32-r|s>>>r,rotrBH=(o,s,r)=>o<<64-r|s>>>r-32,rotrBL=(o,s,r)=>o>>>r-32|s<<64-r,rotr32H=(o,s)=>s,rotr32L=(o,s)=>o,rotlSH=(o,s,r)=>o<>>32-r,rotlSL=(o,s,r)=>s<>>32-r,rotlBH=(o,s,r)=>s<>>64-r,rotlBL=(o,s,r)=>o<>>64-r;function add(o,s,r,i){const a=(s>>>0)+(i>>>0);return{h:o+r+(a/2**32|0)|0,l:0|a}}const add3L=(o,s,r)=>(o>>>0)+(s>>>0)+(r>>>0),add3H=(o,s,r,i)=>s+r+i+(o/2**32|0)|0,add4L=(o,s,r,i)=>(o>>>0)+(s>>>0)+(r>>>0)+(i>>>0),add4H=(o,s,r,i,a)=>s+r+i+a+(o/2**32|0)|0,add5L=(o,s,r,i,a)=>(o>>>0)+(s>>>0)+(r>>>0)+(i>>>0)+(a>>>0),add5H=(o,s,r,i,a,c)=>s+r+i+a+c+(o/2**32|0)|0,u64={fromBig,split,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH,rotlSL,rotlBH,rotlBL,add,add3L,add3H,add4L,add4H,add5H,add5L},[SHA512_Kh,SHA512_Kl]=u64.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(o=>BigInt(o))),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);class SHA512 extends SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:s,Al:r,Bh:i,Bl:a,Ch:c,Cl:y,Dh:w,Dl:C,Eh:T,El:S,Fh:A,Fl:I,Gh:N,Gl:G,Hh:Z,Hl:ne}=this;return[s,r,i,a,c,y,w,C,T,S,A,I,N,G,Z,ne]}set(s,r,i,a,c,y,w,C,T,S,A,I,N,G,Z,ne){this.Ah=0|s,this.Al=0|r,this.Bh=0|i,this.Bl=0|a,this.Ch=0|c,this.Cl=0|y,this.Dh=0|w,this.Dl=0|C,this.Eh=0|T,this.El=0|S,this.Fh=0|A,this.Fl=0|I,this.Gh=0|N,this.Gl=0|G,this.Hh=0|Z,this.Hl=0|ne}process(s,r){for(let pe=0;pe<16;pe++,r+=4)SHA512_W_H[pe]=s.getUint32(r),SHA512_W_L[pe]=s.getUint32(r+=4);for(let pe=16;pe<80;pe++){const Te=0|SHA512_W_H[pe-15],xe=0|SHA512_W_L[pe-15],Re=u64.rotrSH(Te,xe,1)^u64.rotrSH(Te,xe,8)^u64.shrSH(Te,xe,7),Me=u64.rotrSL(Te,xe,1)^u64.rotrSL(Te,xe,8)^u64.shrSL(Te,xe,7),Ce=0|SHA512_W_H[pe-2],le=0|SHA512_W_L[pe-2],ae=u64.rotrSH(Ce,le,19)^u64.rotrBH(Ce,le,61)^u64.shrSH(Ce,le,6),Ie=u64.rotrSL(Ce,le,19)^u64.rotrBL(Ce,le,61)^u64.shrSL(Ce,le,6),$e=u64.add4L(Me,Ie,SHA512_W_L[pe-7],SHA512_W_L[pe-16]),st=u64.add4H($e,Re,ae,SHA512_W_H[pe-7],SHA512_W_H[pe-16]);SHA512_W_H[pe]=0|st,SHA512_W_L[pe]=0|$e}let{Ah:i,Al:a,Bh:c,Bl:y,Ch:w,Cl:C,Dh:T,Dl:S,Eh:A,El:I,Fh:N,Fl:G,Gh:Z,Gl:ne,Hh:be,Hl:me}=this;for(let pe=0;pe<80;pe++){const Te=u64.rotrSH(A,I,14)^u64.rotrSH(A,I,18)^u64.rotrBH(A,I,41),xe=u64.rotrSL(A,I,14)^u64.rotrSL(A,I,18)^u64.rotrBL(A,I,41),Re=A&N^~A&Z,Ce=u64.add5L(me,xe,I&G^~I&ne,SHA512_Kl[pe],SHA512_W_L[pe]),le=u64.add5H(Ce,be,Te,Re,SHA512_Kh[pe],SHA512_W_H[pe]),ae=0|Ce,Ie=u64.rotrSH(i,a,28)^u64.rotrBH(i,a,34)^u64.rotrBH(i,a,39),$e=u64.rotrSL(i,a,28)^u64.rotrBL(i,a,34)^u64.rotrBL(i,a,39),st=i&c^i&w^c&w,ht=a&y^a&C^y&C;be=0|Z,me=0|ne,Z=0|N,ne=0|G,N=0|A,G=0|I,({h:A,l:I}=u64.add(0|T,0|S,0|le,0|ae)),T=0|w,S=0|C,w=0|c,C=0|y,c=0|i,y=0|a;const vt=u64.add3L(ae,$e,ht);i=u64.add3H(vt,le,Ie,st),a=0|vt}({h:i,l:a}=u64.add(0|this.Ah,0|this.Al,0|i,0|a)),({h:c,l:y}=u64.add(0|this.Bh,0|this.Bl,0|c,0|y)),({h:w,l:C}=u64.add(0|this.Ch,0|this.Cl,0|w,0|C)),({h:T,l:S}=u64.add(0|this.Dh,0|this.Dl,0|T,0|S)),({h:A,l:I}=u64.add(0|this.Eh,0|this.El,0|A,0|I)),({h:N,l:G}=u64.add(0|this.Fh,0|this.Fl,0|N,0|G)),({h:Z,l:ne}=u64.add(0|this.Gh,0|this.Gl,0|Z,0|ne)),({h:be,l:me}=u64.add(0|this.Hh,0|this.Hl,0|be,0|me)),this.set(i,a,c,y,w,C,T,S,A,I,N,G,Z,ne,be,me)}roundClean(){SHA512_W_H.fill(0),SHA512_W_L.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const sha512=wrapConstructor(()=>new SHA512);function isBytes(o){return o instanceof Uint8Array||null!=o&&"object"==typeof o&&"Uint8Array"===o.constructor.name}function chain(...o){const s=i=>i,r=(i,a)=>c=>i(a(c));return{encode:o.map(i=>i.encode).reduceRight(r,s),decode:o.map(i=>i.decode).reduce(r,s)}}function alphabet(o){return{encode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("alphabet.encode input should be an array of numbers");return s.map(r=>{if(r<0||r>=o.length)throw new Error(`Digit index outside alphabet: ${r} (alphabet: ${o.length})`);return o[r]})},decode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("alphabet.decode input should be array of strings");return s.map(r=>{if("string"!=typeof r)throw new Error(`alphabet.decode: not string element=${r}`);const i=o.indexOf(r);if(-1===i)throw new Error(`Unknown letter: "${r}". Allowed: ${o}`);return i})}}}function join(o=""){if("string"!=typeof o)throw new Error("join separator should be string");return{encode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("join.encode input should be array of strings");for(let r of s)if("string"!=typeof r)throw new Error(`join.encode: non-string input=${r}`);return s.join(o)},decode:s=>{if("string"!=typeof s)throw new Error("join.decode input should be string");return s.split(o)}}}function padding(o,s="="){if("string"!=typeof s)throw new Error("padding chr should be string");return{encode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let i of r)if("string"!=typeof i)throw new Error(`padding.encode: non-string input=${i}`);for(;r.length*o%8;)r.push(s);return r},decode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let a of r)if("string"!=typeof a)throw new Error(`padding.decode: non-string input=${a}`);let i=r.length;if(i*o%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;i>0&&r[i-1]===s;i--)if(!((i-1)*o%8))throw new Error("Invalid padding: string has too much padding");return r.slice(0,i)}}}function convertRadix(o,s,r){if(s<2)throw new Error(`convertRadix: wrong from=${s}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: wrong to=${r}, base cannot be less than 2`);if(!Array.isArray(o))throw new Error("convertRadix: data should be array");if(!o.length)return[];let i=0;const a=[],c=Array.from(o);for(c.forEach(y=>{if(y<0||y>=s)throw new Error(`Wrong integer: ${y}`)});;){let y=0,w=!0;for(let C=i;Cs?gcd(s,o%s):o,radix2carry=(o,s)=>o+(s-gcd(o,s));function convertRadix2(o,s,r,i){if(!Array.isArray(o))throw new Error("convertRadix2: data should be array");if(s<=0||s>32)throw new Error(`convertRadix2: wrong from=${s}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(radix2carry(s,r)>32)throw new Error(`convertRadix2: carry overflow from=${s} to=${r} carryBits=${radix2carry(s,r)}`);let a=0,c=0;const y=2**r-1,w=[];for(const C of o){if(C>=2**s)throw new Error(`convertRadix2: invalid data word=${C} from=${s}`);if(a=a<32)throw new Error(`convertRadix2: carry overflow pos=${c} from=${s}`);for(c+=s;c>=r;c-=r)w.push((a>>c-r&y)>>>0);a&=2**c-1}if(a=a<=s)throw new Error("Excess padding");if(!i&&a)throw new Error(`Non-zero padding: ${a}`);return i&&c>0&&w.push(a>>>0),w}function radix(o){return{encode:s=>{if(!isBytes(s))throw new Error("radix.encode input should be Uint8Array");return convertRadix(Array.from(s),256,o)},decode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(convertRadix(s,o,256))}}}function radix2(o,s=!1){if(o<=0||o>32)throw new Error("radix2: bits should be in (0..32]");if(radix2carry(8,o)>32||radix2carry(o,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!isBytes(r))throw new Error("radix2.encode input should be Uint8Array");return convertRadix2(Array.from(r),8,o,!s)},decode:r=>{if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(convertRadix2(r,o,8,s))}}}function unsafeWrapper(o){if("function"!=typeof o)throw new Error("unsafeWrapper fn should be function");return function(...s){try{return o.apply(null,s)}catch{}}}function checksum(o,s){if("function"!=typeof s)throw new Error("checksum fn should be function");return{encode(r){if(!isBytes(r))throw new Error("checksum.encode: input should be Uint8Array");const i=s(r).slice(0,o),a=new Uint8Array(r.length+o);return a.set(r),a.set(i,r.length),a},decode(r){if(!isBytes(r))throw new Error("checksum.decode: input should be Uint8Array");const i=r.slice(0,-o),a=s(i).slice(0,o),c=r.slice(-o);for(let y=0;ychain(radix(58),alphabet(o),join("")),base58=genBase58("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),createBase58check=o=>chain(checksum(4,s=>o(o(s))),base58),base58check$1=createBase58check,BECH_ALPHABET=chain(alphabet("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),join("")),POLYMOD_GENERATORS=[996825010,642813549,513874426,1027748829,705979059];function bech32Polymod(o){const s=o>>25;let r=(33554431&o)<<5;for(let i=0;i>i&1)&&(r^=POLYMOD_GENERATORS[i]);return r}function bechChecksum(o,s,r=1){const i=o.length;let a=1;for(let c=0;c126)throw new Error(`Invalid prefix (${o})`);a=bech32Polymod(a)^y>>5}a=bech32Polymod(a);for(let c=0;cC)throw new TypeError(`Wrong string length: ${w.length} (${w}). Expected (8..${C})`);const T=w.toLowerCase();if(w!==T&&w!==w.toUpperCase())throw new Error("String must be lowercase or uppercase");const S=(w=T).lastIndexOf("1");if(0===S||-1===S)throw new Error('Letter "1" must be present between prefix and data only');const A=w.slice(0,S),I=w.slice(S+1);if(I.length<6)throw new Error("Data must be at least 6 characters long");const N=BECH_ALPHABET.decode(I).slice(0,-6),G=bechChecksum(A,N,s);if(!I.endsWith(G))throw new Error(`Invalid checksum in ${w}: expected "${G}"`);return{prefix:A,words:N}}return{encode:function(w,C,T=90){if("string"!=typeof w)throw new Error("bech32.encode prefix should be string, not "+typeof w);if(!Array.isArray(C)||C.length&&"number"!=typeof C[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof C);const S=w.length+7+C.length;if(!1!==T&&S>T)throw new TypeError(`Length ${S} exceeds limit ${T}`);const A=w.toLowerCase(),I=bechChecksum(A,C,s);return`${A}1${BECH_ALPHABET.encode(C)}${I}`},decode:y,decodeToBytes:function(w){const{prefix:C,words:T}=y(w,!1);return{prefix:C,words:T,bytes:i(T)}},decodeUnsafe:unsafeWrapper(y),fromWords:i,fromWordsUnsafe:c,toWords:a}}const bech32=genBech32("bech32"),isJapanese=o=>"\u3042\u3044\u3053\u304f\u3057\u3093"===o[0];function nfkd(o){if("string"!=typeof o)throw new TypeError("Invalid mnemonic type: "+typeof o);return o.normalize("NFKD")}function normalize(o){const s=nfkd(o),r=s.split(" ");if(![12,15,18,21,24].includes(r.length))throw new Error("Invalid mnemonic");return{nfkd:s,words:r}}function assertEntropy(o){assert$1.bytes(o,16,20,24,28,32)}function generateMnemonic(o,s=128){if(assert$1.number(s),s%32!=0||s>256)throw new TypeError("Invalid entropy");return entropyToMnemonic(randomBytes(s/8),o)}const calcChecksum=o=>{const s=8-o.length/4;return new Uint8Array([sha256(o)[0]>>s<{if("string"!=typeof s)throw new Error(`Wordlist: non-string element: ${s}`)}),utils$1.chain(utils$1.checksum(1,calcChecksum),utils$1.radix2(11,!0),utils$1.alphabet(o))}function mnemonicToEntropy(o,s){const{words:r}=normalize(o),i=getCoder(s).decode(r);return assertEntropy(i),i}function entropyToMnemonic(o,s){return assertEntropy(o),getCoder(s).encode(o).join(isJapanese(s)?"\u3000":" ")}function validateMnemonic(o,s){try{mnemonicToEntropy(o,s)}catch{return!1}return!0}const salt=o=>nfkd(`mnemonic${o}`);function mnemonicToSeedSync(o,s=""){return pbkdf2(sha512,normalize(o).nfkd,salt(s),{c:2048,dkLen:64})}const Rho=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Id=Uint8Array.from({length:16},(o,s)=>s),Pi=Id.map(o=>(9*o+5)%16);let idxL=[Id],idxR=[Pi];for(let o=0;o<4;o++)for(let s of[idxL,idxR])s.push(s[o].map(r=>Rho[r]));const shifts=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(o=>new Uint8Array(o)),shiftsL=idxL.map((o,s)=>o.map(r=>shifts[s][r])),shiftsR=idxR.map((o,s)=>o.map(r=>shifts[s][r])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),rotl$1=(o,s)=>o<>>32-s;function f(o,s,r,i){return 0===o?s^r^i:1===o?s&r|~s&i:2===o?(s|~r)^i:3===o?s&i|r&~i:s^(r|~i)}const BUF=new Uint32Array(16);class RIPEMD160 extends SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:s,h1:r,h2:i,h3:a,h4:c}=this;return[s,r,i,a,c]}set(s,r,i,a,c){this.h0=0|s,this.h1=0|r,this.h2=0|i,this.h3=0|a,this.h4=0|c}process(s,r){for(let N=0;N<16;N++,r+=4)BUF[N]=s.getUint32(r,!0);let i=0|this.h0,a=i,c=0|this.h1,y=c,w=0|this.h2,C=w,T=0|this.h3,S=T,A=0|this.h4,I=A;for(let N=0;N<5;N++){const G=4-N,Z=Kl[N],ne=Kr[N],be=idxL[N],me=idxR[N],pe=shiftsL[N],Te=shiftsR[N];for(let xe=0;xe<16;xe++){const Re=rotl$1(i+f(N,c,w,T)+BUF[be[xe]]+Z,pe[xe])+A|0;i=A,A=T,T=0|rotl$1(w,10),w=c,c=Re}for(let xe=0;xe<16;xe++){const Re=rotl$1(a+f(G,y,C,S)+BUF[me[xe]]+ne,Te[xe])+I|0;a=I,I=S,S=0|rotl$1(C,10),C=y,y=Re}}this.set(this.h1+w+S|0,this.h2+T+I|0,this.h3+A+a|0,this.h4+i+y|0,this.h0+c+C|0)}roundClean(){BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const ripemd160=wrapConstructor(()=>new RIPEMD160),Point=secp256k1.ProjectivePoint,base58check=base58check$1(sha256);function bytesToNumber(o){return BigInt(`0x${bytesToHex(o)}`)}function numberToBytes(o){return hexToBytes(o.toString(16).padStart(64,"0"))}const MASTER_SECRET=utf8ToBytes$1("Bitcoin seed"),BITCOIN_VERSIONS={private:76066276,public:76067358},HARDENED_OFFSET=2147483648,hash160=o=>ripemd160(sha256(o)),fromU32=o=>createView(o).getUint32(0,!1),toU32=o=>{if(!Number.isSafeInteger(o)||o<0||o>2**32-1)throw new Error(`Invalid number=${o}. Should be from 0 to 2 ** 32 - 1`);const s=new Uint8Array(4);return createView(s).setUint32(0,o,!1),s};class HDKey{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return fromU32(this.pubHash)}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){const s=this.privateKey;if(!s)throw new Error("No private key");return base58check.encode(this.serialize(this.versions.private,concatBytes(new Uint8Array([0]),s)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return base58check.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(s,r=BITCOIN_VERSIONS){if(bytes$1(s),8*s.length<128||8*s.length>512)throw new Error(`HDKey: wrong seed length=${s.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const i=hmac$1(sha512,MASTER_SECRET,s);return new HDKey({versions:r,chainCode:i.slice(32),privateKey:i.slice(0,32)})}static fromExtendedKey(s,r=BITCOIN_VERSIONS){const i=base58check.decode(s),a=createView(i),c=a.getUint32(0,!1),y={versions:r,depth:i[4],parentFingerprint:a.getUint32(5,!1),index:a.getUint32(9,!1),chainCode:i.slice(13,45)},w=i.slice(45),C=0===w[0];if(c!==r[C?"private":"public"])throw new Error("Version mismatch");return new HDKey(C?{...y,privateKey:w.slice(1)}:{...y,publicKey:w})}static fromJSON(s){return HDKey.fromExtendedKey(s.xpriv)}constructor(s){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!s||"object"!=typeof s)throw new Error("HDKey.constructor must not be called directly");if(this.versions=s.versions||BITCOIN_VERSIONS,this.depth=s.depth||0,this.chainCode=s.chainCode,this.index=s.index||0,this.parentFingerprint=s.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(s.publicKey&&s.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(s.privateKey){if(!secp256k1.utils.isValidPrivateKey(s.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof s.privateKey?s.privateKey:bytesToNumber(s.privateKey),this.privKeyBytes=numberToBytes(this.privKey),this.pubKey=secp256k1.getPublicKey(s.privateKey,!0)}else{if(!s.publicKey)throw new Error("HDKey: no public or private key provided");this.pubKey=Point.fromHex(s.publicKey).toRawBytes(!0)}this.pubHash=hash160(this.pubKey)}derive(s){if(!/^[mM]'?/.test(s))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(s))return this;const r=s.replace(/^[mM]'?\//,"").split("/");let i=this;for(const a of r){const c=/^(\d+)('?)$/.exec(a);if(!c||3!==c.length)throw new Error(`Invalid child index: ${a}`);let y=+c[1];if(!Number.isSafeInteger(y)||y>=HARDENED_OFFSET)throw new Error("Invalid index");"'"===c[2]&&(y+=HARDENED_OFFSET),i=i.deriveChild(y)}return i}deriveChild(s){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let r=toU32(s);if(s>=HARDENED_OFFSET){const w=this.privateKey;if(!w)throw new Error("Could not derive hardened child key");r=concatBytes(new Uint8Array([0]),w,r)}else r=concatBytes(this.pubKey,r);const i=hmac$1(sha512,this.chainCode,r),a=bytesToNumber(i.slice(0,32)),c=i.slice(32);if(!secp256k1.utils.isValidPrivateKey(a))throw new Error("Tweak bigger than curve order");const y={versions:this.versions,chainCode:c,depth:this.depth+1,parentFingerprint:this.fingerprint,index:s};try{if(this.privateKey){const w=mod(this.privKey+a,secp256k1.CURVE.n);if(!secp256k1.utils.isValidPrivateKey(w))throw new Error("The tweak was out of range or the resulted private key is invalid");y.privateKey=w}else{const w=Point.fromHex(this.pubKey).add(Point.fromPrivateKey(a));if(w.equals(Point.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");y.publicKey=w.toRawBytes(!0)}return new HDKey(y)}catch{return this.deriveChild(s+1)}}sign(s){if(!this.privateKey)throw new Error("No privateKey set!");return bytes$1(s,32),secp256k1.sign(s,this.privKey).toCompactRawBytes()}verify(s,r){if(bytes$1(s,32),bytes$1(r,64),!this.publicKey)throw new Error("No publicKey set!");let i;try{i=secp256k1.Signature.fromCompact(r)}catch{return!1}return secp256k1.verify(i,s,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(s,r){if(!this.chainCode)throw new Error("No chainCode set");return bytes$1(r,33),concatBytes(toU32(s),new Uint8Array([this.depth]),toU32(this.parentFingerprint),toU32(this.index),this.chainCode,r)}}const u8a=o=>o instanceof Uint8Array,u32=o=>new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)),isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE)throw new Error("Non little-endian hardware is not supported");function utf8ToBytes(o){if("string"!=typeof o)throw new Error("utf8ToBytes expected string, got "+typeof o);return new Uint8Array((new TextEncoder).encode(o))}function toBytes(o){if("string"==typeof o&&(o=utf8ToBytes(o)),!u8a(o))throw new Error("expected Uint8Array, got "+typeof o);return o}const isPlainObject=o=>"[object Object]"===Object.prototype.toString.call(o)&&o.constructor===Object;function checkOpts(o,s){if(void 0!==s&&("object"!=typeof s||!isPlainObject(s)))throw new Error("options must be object or undefined");return Object.assign(o,s)}function ensureBytes(o,s){if(!(o instanceof Uint8Array))throw new Error("Uint8Array expected");if("number"==typeof s&&o.length!==s)throw new Error(`Uint8Array length ${s} expected`)}function equalBytes(o,s){if(o.length!==s.length)throw new Error("equalBytes: Different size of Uint8Arrays");let r=!0;for(let i=0;i0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("hash must be wrapped by utils.wrapConstructor");number(o.outputLen),number(o.blockLen)}function exists(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output(o,s){bytes(o);const r=s.outputLen;if(o.length255&o[s++]|(255&o[s++])<<8;class Poly1305{constructor(s){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,ensureBytes(s=toBytes(s),32);const r=u8to16(s,0),i=u8to16(s,2),a=u8to16(s,4),c=u8to16(s,6),y=u8to16(s,8),w=u8to16(s,10),C=u8to16(s,12),T=u8to16(s,14);this.r[0]=8191&r,this.r[1]=8191&(r>>>13|i<<3),this.r[2]=7939&(i>>>10|a<<6),this.r[3]=8191&(a>>>7|c<<9),this.r[4]=255&(c>>>4|y<<12),this.r[5]=y>>>1&8190,this.r[6]=8191&(y>>>14|w<<2),this.r[7]=8065&(w>>>11|C<<5),this.r[8]=8191&(C>>>8|T<<8),this.r[9]=T>>>5&127;for(let S=0;S<8;S++)this.pad[S]=u8to16(s,16+2*S)}process(s,r,i=!1){const a=i?0:2048,{h:c,r:y}=this,w=y[0],C=y[1],T=y[2],S=y[3],A=y[4],I=y[5],N=y[6],G=y[7],Z=y[8],ne=y[9],be=u8to16(s,r+0),me=u8to16(s,r+2),pe=u8to16(s,r+4),Te=u8to16(s,r+6),xe=u8to16(s,r+8),Re=u8to16(s,r+10),Me=u8to16(s,r+12),Ce=u8to16(s,r+14);let le=c[0]+(8191&be),ae=c[1]+(8191&(be>>>13|me<<3)),Ie=c[2]+(8191&(me>>>10|pe<<6)),$e=c[3]+(8191&(pe>>>7|Te<<9)),st=c[4]+(8191&(Te>>>4|xe<<12)),ht=c[5]+(xe>>>1&8191),vt=c[6]+(8191&(xe>>>14|Re<<2)),at=c[7]+(8191&(Re>>>11|Me<<5)),Xt=c[8]+(8191&(Me>>>8|Ce<<8)),ln=c[9]+(Ce>>>5|a),yn=0,$n=yn+le*w+ae*(5*ne)+Ie*(5*Z)+$e*(5*G)+st*(5*N);yn=$n>>>13,$n&=8191,$n+=ht*(5*I)+vt*(5*A)+at*(5*S)+Xt*(5*T)+ln*(5*C),yn+=$n>>>13,$n&=8191;let bn=yn+le*C+ae*w+Ie*(5*ne)+$e*(5*Z)+st*(5*G);yn=bn>>>13,bn&=8191,bn+=ht*(5*N)+vt*(5*I)+at*(5*A)+Xt*(5*S)+ln*(5*T),yn+=bn>>>13,bn&=8191;let Qe=yn+le*T+ae*C+Ie*w+$e*(5*ne)+st*(5*Z);yn=Qe>>>13,Qe&=8191,Qe+=ht*(5*G)+vt*(5*N)+at*(5*I)+Xt*(5*A)+ln*(5*S),yn+=Qe>>>13,Qe&=8191;let bt=yn+le*S+ae*T+Ie*C+$e*w+st*(5*ne);yn=bt>>>13,bt&=8191,bt+=ht*(5*Z)+vt*(5*G)+at*(5*N)+Xt*(5*I)+ln*(5*A),yn+=bt>>>13,bt&=8191;let ze=yn+le*A+ae*S+Ie*T+$e*C+st*w;yn=ze>>>13,ze&=8191,ze+=ht*(5*ne)+vt*(5*Z)+at*(5*G)+Xt*(5*N)+ln*(5*I),yn+=ze>>>13,ze&=8191;let Fe=yn+le*I+ae*A+Ie*S+$e*T+st*C;yn=Fe>>>13,Fe&=8191,Fe+=ht*w+vt*(5*ne)+at*(5*Z)+Xt*(5*G)+ln*(5*N),yn+=Fe>>>13,Fe&=8191;let Ft=yn+le*N+ae*I+Ie*A+$e*S+st*T;yn=Ft>>>13,Ft&=8191,Ft+=ht*C+vt*w+at*(5*ne)+Xt*(5*Z)+ln*(5*G),yn+=Ft>>>13,Ft&=8191;let Ke=yn+le*G+ae*N+Ie*I+$e*A+st*S;yn=Ke>>>13,Ke&=8191,Ke+=ht*T+vt*C+at*w+Xt*(5*ne)+ln*(5*Z),yn+=Ke>>>13,Ke&=8191;let dt=yn+le*Z+ae*G+Ie*N+$e*I+st*A;yn=dt>>>13,dt&=8191,dt+=ht*S+vt*T+at*C+Xt*w+ln*(5*ne),yn+=dt>>>13,dt&=8191;let Ge=yn+le*ne+ae*Z+Ie*G+$e*N+st*I;yn=Ge>>>13,Ge&=8191,Ge+=ht*A+vt*S+at*T+Xt*C+ln*w,yn+=Ge>>>13,Ge&=8191,yn=(yn<<2)+yn|0,yn=yn+$n|0,$n=8191&yn,yn>>>=13,bn+=yn,c[0]=$n,c[1]=bn,c[2]=Qe,c[3]=bt,c[4]=ze,c[5]=Fe,c[6]=Ft,c[7]=Ke,c[8]=dt,c[9]=Ge}finalize(){const{h:s,pad:r}=this,i=new Uint16Array(10);let a=s[1]>>>13;s[1]&=8191;for(let w=2;w<10;w++)s[w]+=a,a=s[w]>>>13,s[w]&=8191;s[0]+=5*a,a=s[0]>>>13,s[0]&=8191,s[1]+=a,a=s[1]>>>13,s[1]&=8191,s[2]+=a,i[0]=s[0]+5,a=i[0]>>>13,i[0]&=8191;for(let w=1;w<10;w++)i[w]=s[w]+a,a=i[w]>>>13,i[w]&=8191;i[9]-=8192;let c=(1^a)-1;for(let w=0;w<10;w++)i[w]&=c;c=~c;for(let w=0;w<10;w++)s[w]=s[w]&c|i[w];s[0]=65535&(s[0]|s[1]<<13),s[1]=65535&(s[1]>>>3|s[2]<<10),s[2]=65535&(s[2]>>>6|s[3]<<7),s[3]=65535&(s[3]>>>9|s[4]<<4),s[4]=65535&(s[4]>>>12|s[5]<<1|s[6]<<14),s[5]=65535&(s[6]>>>2|s[7]<<11),s[6]=65535&(s[7]>>>5|s[8]<<8),s[7]=65535&(s[8]>>>8|s[9]<<5);let y=s[0]+r[0];s[0]=65535&y;for(let w=1;w<8;w++)y=(s[w]+r[w]|0)+(y>>>16)|0,s[w]=65535&y}update(s){assert.exists(this);const{buffer:r,blockLen:i}=this,a=(s=toBytes(s)).length;for(let c=0;c>>0,s[c++]=i[y]>>>8;return s}digest(){const{buffer:s,outputLen:r}=this;this.digestInto(s);const i=s.slice(0,r);return this.destroy(),i}}function wrapConstructorWithKey(o){const s=(i,a)=>o(a).update(toBytes(i)).digest(),r=o(new Uint8Array(32));return s.outputLen=r.outputLen,s.blockLen=r.blockLen,s.create=i=>o(i),s}wrapConstructorWithKey(o=>new Poly1305(o));const sigma16=utf8ToBytes("expand 16-byte k"),sigma32=utf8ToBytes("expand 32-byte k"),sigma16_32=u32(sigma16),sigma32_32=u32(sigma32),isAligned32=o=>!(o.byteOffset%4),salsaBasic=o=>{const{core:s,rounds:r,counterRight:i,counterLen:a,allow128bitKeys:c,extendNonceFn:y,blockLen:w}=checkOpts({rounds:20,counterRight:!1,counterLen:8,allow128bitKeys:!0,blockLen:64},o);assert.number(a),assert.number(r),assert.number(w),assert.bool(i),assert.bool(c);const C=w/4;if(w%4!=0)throw new Error("Salsa/ChaCha: blockLen must be aligned to 4 bytes");return(T,S,A,I,N=0)=>{if(assert.bytes(T),assert.bytes(S),assert.bytes(A),I||(I=new Uint8Array(A.length)),assert.bytes(I),assert.number(N),N<0||N>=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");if(I.length=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");const Ie=Math.min(w,Ce-le);if(Ie===w&&Me&&Re){const $e=le/4;if(le%4!=0)throw new Error("Salsa/ChaCha: invalid block position");for(let st=0;sto<>>32-s;function chachaCore(o,s,r,i,a,c=20){let y=o[0],w=o[1],C=o[2],T=o[3],S=s[0],A=s[1],I=s[2],N=s[3],G=s[4],Z=s[5],ne=s[6],be=s[7],me=a,pe=r[0],Te=r[1],xe=r[2],Re=y,Me=w,Ce=C,le=T,ae=S,Ie=A,$e=I,st=N,ht=G,vt=Z,at=ne,Xt=be,ln=me,yn=pe,$n=Te,bn=xe;for(let bt=0;bta?s.create().update(i).digest():i);for(let y=0;ynew HMAC(o,s).update(r).digest();function extract$1(o,s,r){return assert$2.hash(o),void 0===r&&(r=new Uint8Array(o.outputLen)),hmac(o,toBytes$2(r),toBytes$2(s))}hmac.create=(o,s)=>new HMAC(o,s);const HKDF_COUNTER$1=new Uint8Array([0]),EMPTY_BUFFER$1=new Uint8Array;function expand$1(o,s,r,i=32){if(assert$2.hash(o),assert$2.number(i),i>255*o.outputLen)throw new Error("Length should be <= 255*HashLen");const a=Math.ceil(i/o.outputLen);void 0===r&&(r=EMPTY_BUFFER$1);const c=new Uint8Array(a*o.outputLen),y=hmac.create(o,s),w=y._cloneInto(),C=new Uint8Array(y.outputLen);for(let T=0;Texpand$1(o,extract$1(o,s,r),i,a);var __defProp=Object.defineProperty,__export=(o,s)=>{for(var r in s)__defProp(o,r,{get:s[r],enumerable:!0})};function generatePrivateKey(){return bytesToHex$1(schnorr.utils.randomPrivateKey())}function getPublicKey(o){return bytesToHex$1(schnorr.getPublicKey(o))}var utils_exports={};__export(utils_exports,{MessageNode:()=>MessageNode,MessageQueue:()=>MessageQueue,insertEventIntoAscendingList:()=>insertEventIntoAscendingList,insertEventIntoDescendingList:()=>insertEventIntoDescendingList,normalizeURL:()=>normalizeURL,utf8Decoder:()=>utf8Decoder,utf8Encoder:()=>utf8Encoder});var utf8Decoder=new TextDecoder("utf-8"),utf8Encoder=new TextEncoder;function normalizeURL(o){let s=new URL(o);return s.pathname=s.pathname.replace(/\/+/g,"/"),s.pathname.endsWith("/")&&(s.pathname=s.pathname.slice(0,-1)),("80"===s.port&&"ws:"===s.protocol||"443"===s.port&&"wss:"===s.protocol)&&(s.port=""),s.searchParams.sort(),s.hash="",s.toString()}function insertEventIntoDescendingList(o,s){let r,i=0,a=o.length-1,c=i;if(a<0)c=0;else if(s.created_at=o[i].created_at)c=i;else for(;;){if(a<=i+1){c=a;break}if(r=Math.floor(i+(a-i)/2),o[r].created_at>s.created_at)i=r;else{if(!(o[r].created_ato[a].created_at)c=a+1;else if(s.created_at<=o[i].created_at)c=i;else for(;;){if(a<=i+1){c=a;break}if(r=Math.floor(i+(a-i)/2),o[r].created_ats.created_at)){c=r;break}a=r}}return o[c]?.id!==s.id?[...o.slice(0,c),s,...o.slice(c)]:o}var MessageNode=class{_value;_next;get value(){return this._value}set value(o){this._value=o}get next(){return this._next}set next(o){this._next=o}constructor(o){this._value=o,this._next=null}},MessageQueue=class{_first;_last;get first(){return this._first}set first(o){this._first=o}get last(){return this._last}set last(o){this._last=o}_size;get size(){return this._size}set size(o){this._size=o}constructor(){this._first=null,this._last=null,this._size=0}enqueue(o){const s=new MessageNode(o);return 0!==this._size&&this._last?(this._last.next=s,this._last=s):(this._first=s,this._last=s),this._size++,!0}dequeue(){if(0===this._size||!this._first)return null;let o=this._first;return this._first=o.next,o.next=null,this._size--,o.value}},verifiedSymbol=Symbol("verified");function getBlankEvent(o=255){return{kind:o,content:"",tags:[],created_at:0}}function finishEvent(o,s){const r=o;return r.pubkey=getPublicKey(s),r.id=getEventHash(r),r.sig=getSignature(r,s),r[verifiedSymbol]=!0,r}function serializeEvent(o){if(!validateEvent(o))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,o.pubkey,o.created_at,o.kind,o.tags,o.content])}function getEventHash(o){return bytesToHex$1(sha256$1(utf8Encoder.encode(serializeEvent(o))))}var isRecord=o=>o instanceof Object;function validateEvent(o){if(!isRecord(o)||"number"!=typeof o.kind||"string"!=typeof o.content||"number"!=typeof o.created_at||"string"!=typeof o.pubkey||!o.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(o.tags))return!1;for(let s=0;ss.id.startsWith(r))||o.kinds&&-1===o.kinds.indexOf(s.kind)||o.authors&&-1===o.authors.indexOf(s.pubkey)&&!o.authors.some(r=>s.pubkey.startsWith(r)))return!1;for(let r in o)if("#"===r[0]){let i=o[`#${r.slice(1)}`];if(i&&!s.tags.find(([a,c])=>a===r.slice(1)&&-1!==i.indexOf(c)))return!1}return!(o.since&&s.created_ato.until)}function matchFilters(o,s){for(let r=0;rgetHex64,getInt:()=>getInt,getSubscriptionId:()=>getSubscriptionId,matchEventId:()=>matchEventId,matchEventKind:()=>matchEventKind,matchEventPubkey:()=>matchEventPubkey});var newListeners=()=>({connect:[],disconnect:[],error:[],notice:[],auth:[]});function relayInit(o,s={}){let{listTimeout:r=3e3,getTimeout:i=3e3,countTimeout:a=3e3}=s;var c,y,w={},C=newListeners(),T={},S={};function A(){return 1===c?.readyState}function I(ne){return N.apply(this,arguments)}function N(){return(N=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(ne){let be=JSON.stringify(ne);if(A()||(yield new Promise(me=>setTimeout(me,1e3)),A()))try{c.send(be)}catch(me){console.log(me)}})).apply(this,arguments)}const G=(ne,{verb:be="REQ",skipVerification:me=!1,alreadyHaveEvent:pe=null,id:Te=Math.random().toString().slice(2)}={})=>{let xe=Te;w[xe]={id:xe,filters:ne,skipVerification:me,alreadyHaveEvent:pe},I([be,xe,...ne]);let Re={sub:(Me,Ce={})=>G(Me||ne,{skipVerification:Ce.skipVerification||me,alreadyHaveEvent:Ce.alreadyHaveEvent||pe,id:xe}),unsub:()=>{delete w[xe],delete T[xe],I(["CLOSE",xe])},on:(Me,Ce)=>{T[xe]=T[xe]||{event:[],count:[],eose:[]},T[xe][Me].push(Ce)},off:(Me,Ce)=>{let le=T[xe],ae=le[Me].indexOf(Ce);ae>=0&&le[Me].splice(ae,1)},get events(){return eventsGenerator(Re)}};return Re};function Z(ne,be){return new Promise((me,pe)=>{if(!ne.id)return void pe(new Error(`event ${ne} has no id`));let Te=ne.id;I([be,ne]),S[Te]={resolve:me,reject:pe}})}return{url:o,sub:G,on:(ne,be)=>{C[ne].push(be),"connect"===ne&&1===c?.readyState&&be()},off:(ne,be)=>{let me=C[ne].indexOf(be);-1!==me&&C[ne].splice(me,1)},list:(ne,be)=>new Promise(me=>{let pe=G(ne,be),Te=[],xe=setTimeout(()=>{pe.unsub(),me(Te)},r);pe.on("eose",()=>{pe.unsub(),clearTimeout(xe),me(Te)}),pe.on("event",Re=>{Te.push(Re)})}),get:(ne,be)=>new Promise(me=>{let pe=G([ne],be),Te=setTimeout(()=>{pe.unsub(),me(null)},i);pe.on("event",xe=>{pe.unsub(),clearTimeout(Te),me(xe)})}),count:ne=>new Promise(be=>{let me=G(ne,{...G,verb:"COUNT"}),pe=setTimeout(()=>{me.unsub(),be(null)},a);me.on("count",Te=>{me.unsub(),clearTimeout(pe),be(Te)})}),publish:ne=>(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield Z(ne,"EVENT")})(),auth:ne=>(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield Z(ne,"AUTH")})(),connect:(ne=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){A()||(yield(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return y||(y=new Promise((be,me)=>{try{c=new WebSocket(o)}catch(Re){me(Re)}c.onopen=()=>{C.connect.forEach(Re=>Re()),be()},c.onerror=()=>{y=void 0,C.error.forEach(Re=>Re()),me()},c.onclose=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){y=void 0,C.disconnect.forEach(Re=>Re())});let pe,Te=new MessageQueue;function xe(){if(0===Te.size)return clearInterval(pe),void(pe=null);var Re=Te.dequeue();if(!Re)return;let Me=getSubscriptionId(Re);if(Me){let Ce=w[Me];if(Ce&&Ce.alreadyHaveEvent&&Ce.alreadyHaveEvent(getHex64(Re,"id"),o))return}try{let Ce=JSON.parse(Re);switch(Ce[0]){case"EVENT":{let $e=Ce[1],st=Ce[2];return void(validateEvent(st)&&w[$e]&&(w[$e].skipVerification||verifySignature(st))&&matchFilters(w[$e].filters,st)&&(T[$e]?.event||[]).forEach(ht=>ht(st)))}case"COUNT":let le=Ce[1],ae=Ce[2];return void(w[le]&&(T[le]?.count||[]).forEach($e=>$e(ae)));case"EOSE":{let $e=Ce[1];return void($e in T&&(T[$e].eose.forEach(st=>st()),T[$e].eose=[]))}case"OK":{let $e=Ce[1],st=Ce[2],ht=Ce[3]||"";if($e in S){let{resolve:vt,reject:at}=S[$e];st?vt(null):at(new Error(ht))}return}case"NOTICE":let Ie=Ce[1];return void C.notice.forEach($e=>$e(Ie));case"AUTH":{let $e=Ce[1];return void C.auth?.forEach(st=>st($e))}}}catch{return}}c.onmessage=Re=>{Te.enqueue(Re.data),pe||(pe=setInterval(xe,0))}}))})())}),function(){return ne.apply(this,arguments)}),close(){C=newListeners(),T={},S={},c?.readyState===WebSocket.OPEN&&c.close()},get status(){return c?.readyState??3}};var ne}function eventsGenerator(o){return _eventsGenerator.apply(this,arguments)}function _eventsGenerator(){return _eventsGenerator=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_wrapAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(o){let s;const r=[],i=a=>{s?(s(a),s=void 0):r.push(a)};o.on("event",i);try{for(;;)r.length>0?yield r.shift():yield yield(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_awaitAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_2__.A)(new Promise(c=>{s=c}))}finally{o.off("event",i)}}),_eventsGenerator.apply(this,arguments)}var nip19_exports={};__export(nip19_exports,{BECH32_REGEX:()=>BECH32_REGEX,decode:()=>decode,naddrEncode:()=>naddrEncode,neventEncode:()=>neventEncode,noteEncode:()=>noteEncode,nprofileEncode:()=>nprofileEncode,npubEncode:()=>npubEncode,nrelayEncode:()=>nrelayEncode,nsecEncode:()=>nsecEncode});var Bech32MaxSize=5e3,BECH32_REGEX=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function integerToUint8Array(o){const s=new Uint8Array(4);return s[0]=o>>24&255,s[1]=o>>16&255,s[2]=o>>8&255,s[3]=255&o,s}function decode(o){let{prefix:s,words:r}=bech32$1.decode(o,Bech32MaxSize),i=new Uint8Array(bech32$1.fromWords(r));switch(s){case"nprofile":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==a[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:bytesToHex$1(a[0][0]),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[]}}}case"nevent":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==a[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(a[2]&&32!==a[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(a[3]&&4!==a[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:bytesToHex$1(a[0][0]),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[],author:a[2]?.[0]?bytesToHex$1(a[2][0]):void 0,kind:a[3]?.[0]?parseInt(bytesToHex$1(a[3][0]),16):void 0}}}case"naddr":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!a[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==a[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!a[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==a[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:utf8Decoder.decode(a[0][0]),pubkey:bytesToHex$1(a[2][0]),kind:parseInt(bytesToHex$1(a[3][0]),16),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[]}}}case"nrelay":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nrelay");return{type:"nrelay",data:utf8Decoder.decode(a[0][0])}}case"nsec":case"npub":case"note":return{type:s,data:bytesToHex$1(i)};default:throw new Error(`unknown prefix ${s}`)}}function parseTLV(o){let s={},r=o;for(;r.length>0;){let i=r[0],a=r[1];if(!a)throw new Error(`malformed TLV ${i}`);let c=r.slice(2,2+a);if(r=r.slice(2+a),c.lengthutf8Encoder.encode(s))}))}function neventEncode(o){let s;return null!=o.kind&&(s=integerToUint8Array(o.kind)),encodeBech32("nevent",encodeTLV({0:[hexToBytes$1(o.id)],1:(o.relays||[]).map(r=>utf8Encoder.encode(r)),2:o.author?[hexToBytes$1(o.author)]:[],3:s?[new Uint8Array(s)]:[]}))}function naddrEncode(o){let s=new ArrayBuffer(4);return new DataView(s).setUint32(0,o.kind,!1),encodeBech32("naddr",encodeTLV({0:[utf8Encoder.encode(o.identifier)],1:(o.relays||[]).map(r=>utf8Encoder.encode(r)),2:[hexToBytes$1(o.pubkey)],3:[new Uint8Array(s)]}))}function nrelayEncode(o){return encodeBech32("nrelay",encodeTLV({0:[utf8Encoder.encode(o)]}))}function encodeTLV(o){let s=[];return Object.entries(o).forEach(([r,i])=>{i.forEach(a=>{let c=new Uint8Array(a.length+2);c.set([parseInt(r)],0),c.set([a.length],1),c.set(a,2),s.push(c)})}),concatBytes$1(...s)}var nip04_exports={};function encrypt$1(o,s,r){return _encrypt$.apply(this,arguments)}function _encrypt$(){return _encrypt$=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){const i=getNormalizedX(secp256k1.getSharedSecret(o,"02"+s));let a=Uint8Array.from(randomBytes$1(16)),c=utf8Encoder.encode(r),y=yield crypto.subtle.importKey("raw",i,{name:"AES-CBC"},!1,["encrypt"]),w=yield crypto.subtle.encrypt({name:"AES-CBC",iv:a},y,c);return`${base64$1.encode(new Uint8Array(w))}?iv=${base64$1.encode(new Uint8Array(a.buffer))}`}),_encrypt$.apply(this,arguments)}function decrypt$1(o,s,r){return _decrypt$.apply(this,arguments)}function _decrypt$(){return _decrypt$=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){let[i,a]=r.split("?iv="),c=getNormalizedX(secp256k1.getSharedSecret(o,"02"+s)),y=yield crypto.subtle.importKey("raw",c,{name:"AES-CBC"},!1,["decrypt"]),w=base64$1.decode(i),C=base64$1.decode(a),T=yield crypto.subtle.decrypt({name:"AES-CBC",iv:C},y,w);return utf8Decoder.decode(T)}),_decrypt$.apply(this,arguments)}function getNormalizedX(o){return o.slice(1,33)}__export(nip04_exports,{decrypt:()=>decrypt$1,encrypt:()=>encrypt$1}),typeof crypto<"u"&&!crypto.subtle&&crypto.webcrypto&&(crypto.subtle=crypto.webcrypto.subtle);var nip05_exports={};__export(nip05_exports,{NIP05_REGEX:()=>NIP05_REGEX$1,queryProfile:()=>queryProfile,searchDomain:()=>searchDomain,useFetchImplementation:()=>useFetchImplementation});var NIP05_REGEX$1=/^(?:([\w.+-]+)@)?([\w.-]+)$/,_fetch;try{_fetch=fetch}catch{}function useFetchImplementation(o){_fetch=o}function searchDomain(o){return _searchDomain.apply(this,arguments)}function _searchDomain(){return _searchDomain=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=""){try{return(yield(yield _fetch(`https://${o}/.well-known/nostr.json?name=${s}`)).json()).names}catch{return{}}}),_searchDomain.apply(this,arguments)}function queryProfile(o){return _queryProfile.apply(this,arguments)}function _queryProfile(){return _queryProfile=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){const s=o.match(NIP05_REGEX$1);if(!s)return null;const[r,i="_",a]=s;try{const c=yield _fetch(`https://${a}/.well-known/nostr.json?name=${i}`),{names:y,relays:w}=parseNIP05Result$1(yield c.json()),C=y[i];return C?{pubkey:C,relays:w?.[C]}:null}catch{return null}}),_queryProfile.apply(this,arguments)}function parseNIP05Result$1(o){const s={names:{}};for(const[r,i]of Object.entries(o.names))"string"==typeof r&&"string"==typeof i&&(s.names[r]=i);if(o.relays){s.relays={};for(const[r,i]of Object.entries(o.relays))"string"==typeof r&&Array.isArray(i)&&(s.relays[r]=i.filter(a=>"string"==typeof a))}return s}var nip06_exports={};function privateKeyFromSeedWords(o,s){let r=HDKey.fromMasterSeed(mnemonicToSeedSync(o,s)).derive("m/44'/1237'/0'/0/0").privateKey;if(!r)throw new Error("could not derive private key");return bytesToHex$1(r)}function generateSeedWords(){return generateMnemonic(wordlist)}function validateWords(o){return validateMnemonic(o,wordlist)}__export(nip06_exports,{generateSeedWords:()=>generateSeedWords,privateKeyFromSeedWords:()=>privateKeyFromSeedWords,validateWords:()=>validateWords});var nip10_exports={};function parse(o){const s={reply:void 0,root:void 0,mentions:[],profiles:[]},r=[];for(const i of o.tags)"e"===i[0]&&i[1]&&r.push(i),"p"===i[0]&&i[1]&&s.profiles.push({pubkey:i[1],relays:i[2]?[i[2]]:[]});for(let i=0;iparse});var nip13_exports={};function getPow(o){let s=0;for(let r=0;r=s)break}return i}__export(nip13_exports,{getPow:()=>getPow,minePow:()=>minePow});var nip18_exports={};function finishRepostEvent(o,s,r,i){return finishEvent({kind:6,tags:[...o.tags??[],["e",s.id,r],["p",s.pubkey]],content:""===o.content?"":JSON.stringify(s),created_at:o.created_at},i)}function getRepostedEventPointer(o){if(6!==o.kind)return;let s,r;for(let i=o.tags.length-1;i>=0&&(void 0===s||void 0===r);i--){const a=o.tags[i];a.length>=2&&("e"===a[0]&&void 0===s?s=a:"p"===a[0]&&void 0===r&&(r=a))}return void 0!==s?{id:s[1],relays:[s[2],r?.[2]].filter(i=>"string"==typeof i),author:r?.[1]}:void 0}function getRepostedEvent(o,{skipVerification:s}={}){const r=getRepostedEventPointer(o);if(void 0===r||""===o.content)return;let i;try{i=JSON.parse(o.content)}catch{return}return i.id===r.id&&(s||verifySignature(i))?i:void 0}__export(nip18_exports,{finishRepostEvent:()=>finishRepostEvent,getRepostedEvent:()=>getRepostedEvent,getRepostedEventPointer:()=>getRepostedEventPointer});var nip21_exports={};__export(nip21_exports,{NOSTR_URI_REGEX:()=>NOSTR_URI_REGEX,parse:()=>parse2,test:()=>test});var NOSTR_URI_REGEX=new RegExp(`nostr:(${BECH32_REGEX.source})`);function test(o){return"string"==typeof o&&new RegExp(`^${NOSTR_URI_REGEX.source}$`).test(o)}function parse2(o){const s=o.match(new RegExp(`^${NOSTR_URI_REGEX.source}$`));if(!s)throw new Error(`Invalid Nostr URI: ${o}`);return{uri:s[0],value:s[1],decoded:decode(s[1])}}var nip25_exports={};function finishReactionEvent(o,s,r){const i=s.tags.filter(a=>a.length>=2&&("e"===a[0]||"p"===a[0]));return finishEvent({...o,kind:7,tags:[...o.tags??[],...i,["e",s.id],["p",s.pubkey]],content:o.content??"+"},r)}function getReactedEventPointer(o){if(7!==o.kind)return;let s,r;for(let i=o.tags.length-1;i>=0&&(void 0===s||void 0===r);i--){const a=o.tags[i];a.length>=2&&("e"===a[0]&&void 0===s?s=a:"p"===a[0]&&void 0===r&&(r=a))}return void 0!==s&&void 0!==r?{id:s[1],relays:[s[2],r[2]].filter(i=>void 0!==i),author:r[1]}:void 0}__export(nip25_exports,{finishReactionEvent:()=>finishReactionEvent,getReactedEventPointer:()=>getReactedEventPointer});var nip26_exports={};function createDelegation(o,s){let r=[];(s.kind||-1)>=0&&r.push(`kind=${s.kind}`),s.until&&r.push(`created_at<${s.until}`),s.since&&r.push(`created_at>${s.since}`);let i=r.join("&");if(""===i)throw new Error("refusing to create a delegation without any conditions");let a=sha256$1(utf8Encoder.encode(`nostr:delegation:${s.pubkey}:${i}`)),c=bytesToHex$1(schnorr.sign(a,o));return{from:getPublicKey(o),to:s.pubkey,cond:i,sig:c}}function getDelegator(o){let s=o.tags.find(w=>"delegation"===w[0]&&w.length>=4);if(!s)return null;let r=s[1],i=s[2],a=s[3],c=i.split("&");for(let w=0;w"===T&&o.created_at>parseInt(S)))return null}let y=sha256$1(utf8Encoder.encode(`nostr:delegation:${o.pubkey}:${i}`));return schnorr.verify(a,y,r)?r:null}__export(nip26_exports,{createDelegation:()=>createDelegation,getDelegator:()=>getDelegator});var nip27_exports={};__export(nip27_exports,{matchAll:()=>matchAll,regex:()=>regex,replaceAll:()=>replaceAll});var regex=()=>new RegExp(`\\b${NOSTR_URI_REGEX.source}\\b`,"g");function*matchAll(o){const s=o.matchAll(regex());for(const r of s)try{const[i,a]=r;yield{uri:i,value:a,decoded:decode(a),start:r.index,end:r.index+i.length}}catch{}}function replaceAll(o,s){return o.replaceAll(regex(),(r,i)=>s({uri:r,value:i,decoded:decode(i)}))}var nip28_exports={};__export(nip28_exports,{channelCreateEvent:()=>channelCreateEvent,channelHideMessageEvent:()=>channelHideMessageEvent,channelMessageEvent:()=>channelMessageEvent,channelMetadataEvent:()=>channelMetadataEvent,channelMuteUserEvent:()=>channelMuteUserEvent});var channelCreateEvent=(o,s)=>{let r;if("object"==typeof o.content)r=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;r=o.content}return finishEvent({kind:40,tags:[...o.tags??[]],content:r,created_at:o.created_at},s)},channelMetadataEvent=(o,s)=>{let r;if("object"==typeof o.content)r=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;r=o.content}return finishEvent({kind:41,tags:[["e",o.channel_create_event_id],...o.tags??[]],content:r,created_at:o.created_at},s)},channelMessageEvent=(o,s)=>{const r=[["e",o.channel_create_event_id,o.relay_url,"root"]];return o.reply_to_channel_message_event_id&&r.push(["e",o.reply_to_channel_message_event_id,o.relay_url,"reply"]),finishEvent({kind:42,tags:[...r,...o.tags??[]],content:o.content,created_at:o.created_at},s)},channelHideMessageEvent=(o,s)=>{let r;if("object"==typeof o.content)r=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;r=o.content}return finishEvent({kind:43,tags:[["e",o.channel_message_event_id],...o.tags??[]],content:r,created_at:o.created_at},s)},channelMuteUserEvent=(o,s)=>{let r;if("object"==typeof o.content)r=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;r=o.content}return finishEvent({kind:44,tags:[["p",o.pubkey_to_mute],...o.tags??[]],content:r,created_at:o.created_at},s)},nip39_exports={},_fetch2;__export(nip39_exports,{useFetchImplementation:()=>useFetchImplementation2,validateGithub:()=>validateGithub});try{_fetch2=fetch}catch{}function useFetchImplementation2(o){_fetch2=o}function validateGithub(o,s,r){return _validateGithub.apply(this,arguments)}function _validateGithub(){return _validateGithub=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){try{return(yield(yield _fetch2(`https://gist.github.com/${s}/${r}/raw`)).text())===`Verifying that I control the following Nostr public key: ${o}`}catch{return!1}}),_validateGithub.apply(this,arguments)}var nip42_exports={};__export(nip42_exports,{authenticate:()=>authenticate});var authenticate=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*({challenge:s,relay:r,sign:i}){const a={kind:22242,created_at:Math.floor(Date.now()/1e3),tags:[["relay",r.url],["challenge",s]],content:""};return r.auth(yield i(a))});return function(r){return o.apply(this,arguments)}}(),nip44_exports={};__export(nip44_exports,{decrypt:()=>decrypt2,encrypt:()=>encrypt2,utils:()=>utils});var utils={v2:{maxPlaintextSize:65408,minCiphertextSize:100,maxCiphertextSize:102400,getConversationKey:(o,s)=>secp256k1.getSharedSecret(o,"02"+s).subarray(1,33),getMessageKeys(o,s){const r=hkdf(sha256$1,o,s,"nip44-v2",76);return{encryption:r.subarray(0,32),nonce:r.subarray(32,44),auth:r.subarray(44,76)}},calcPadding(o){if(!Number.isSafeInteger(o)||o<0)throw new Error("expected positive integer");if(o<=32)return 32;const s=1<=utils.v2.maxPlaintextSize)throw new Error("invalid plaintext length: must be between 1b and 64KB");const i=utils.v2.calcPadding(r),a=new Uint8Array(i-r),c=new Uint8Array(2);return new DataView(c.buffer).setUint16(0,r),concatBytes$1(c,s,a)},unpad(o){const s=new DataView(o.buffer).getUint16(0),r=o.subarray(2,2+s);if(0===s||r.length!==s||o.length!==2+utils.v2.calcPadding(s))throw new Error("invalid padding");return utf8Decoder.decode(r)}}};function encrypt2(o,s,r={}){const i=r.version??2;if(2!==i)throw new Error("unknown encryption version "+i);const a=r.salt??randomBytes$1(32);ensureBytes(a,32);const c=utils.v2.getMessageKeys(o,a),y=utils.v2.pad(s),w=chacha20(c.encryption,c.nonce,y),C=hmac(sha256$1,c.auth,w);return base64$1.encode(concatBytes$1(new Uint8Array([i]),a,w,C))}function decrypt2(o,s){const r=utils.v2;ensureBytes(o,32);const i=s.length;if(i=r.maxCiphertextSize)throw new Error("invalid ciphertext length: "+i);if("#"===s[0])throw new Error("unknown encryption version");let a;try{a=base64$1.decode(s)}catch(A){throw new Error("invalid base64: "+A.message)}const c=a.subarray(0,1)[0];if(2!==c)throw new Error("unknown encryption version "+c);const y=a.subarray(1,33),w=a.subarray(33,-32),C=a.subarray(-32),T=r.getMessageKeys(o,y);if(!equalBytes(hmac(sha256$1,T.auth,w),C))throw new Error("invalid MAC");const S=chacha20(T.encryption,T.nonce,w);return r.unpad(S)}var nip47_exports={};function parseConnectionString(o){const{pathname:s,searchParams:r}=new URL(o),i=s,a=r.get("relay"),c=r.get("secret");if(!i||!a||!c)throw new Error("invalid connection string");return{pubkey:i,relay:a,secret:c}}function makeNwcRequestEvent(o){return _makeNwcRequestEvent.apply(this,arguments)}function _makeNwcRequestEvent(){return _makeNwcRequestEvent=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*({pubkey:o,secret:s,invoice:r}){const i={method:"pay_invoice",params:{invoice:r}},a=yield encrypt$1(s,o,JSON.stringify(i));return finishEvent({kind:23194,created_at:Math.round(Date.now()/1e3),content:a,tags:[["p",o]]},s)}),_makeNwcRequestEvent.apply(this,arguments)}__export(nip47_exports,{makeNwcRequestEvent:()=>makeNwcRequestEvent,parseConnectionString:()=>parseConnectionString});var nip57_exports={},_fetch3;__export(nip57_exports,{getZapEndpoint:()=>getZapEndpoint,makeZapReceipt:()=>makeZapReceipt,makeZapRequest:()=>makeZapRequest,useFetchImplementation:()=>useFetchImplementation3,validateZapRequest:()=>validateZapRequest});try{_fetch3=fetch}catch{}function useFetchImplementation3(o){_fetch3=o}function getZapEndpoint(o){return _getZapEndpoint.apply(this,arguments)}function _getZapEndpoint(){return _getZapEndpoint=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){try{let s="",{lud06:r,lud16:i}=JSON.parse(o.content);if(r){let{words:y}=bech32$1.decode(r,1e3),w=bech32$1.fromWords(y);s=utf8Decoder.decode(w)}else{if(!i)return null;{let[y,w]=i.split("@");s=`https://${w}/.well-known/lnurlp/${y}`}}let a=yield _fetch3(s),c=yield a.json();if(c.allowsNostr&&c.nostrPubkey)return c.callback}catch{}return null}),_getZapEndpoint.apply(this,arguments)}function makeZapRequest({profile:o,event:s,amount:r,relays:i,comment:a=""}){if(!r)throw new Error("amount not given");if(!o)throw new Error("profile not given");let c={kind:9734,created_at:Math.round(Date.now()/1e3),content:a,tags:[["p",o],["amount",r.toString()],["relays",...i]]};return s&&c.tags.push(["e",s]),c}function validateZapRequest(o){let s;try{s=JSON.parse(o)}catch{return"Invalid zap request JSON."}if(!validateEvent(s))return"Zap request is not a valid Nostr event.";if(!verifySignature(s))return"Invalid signature on zap request.";let r=s.tags.find(([a,c])=>"p"===a&&c);if(!r)return"Zap request doesn't have a 'p' tag.";if(!r[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let i=s.tags.find(([a,c])=>"e"===a&&c);return i&&!i[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":s.tags.find(([a,c])=>"relays"===a&&c)?null:"Zap request doesn't have a 'relays' tag."}function makeZapReceipt({zapRequest:o,preimage:s,bolt11:r,paidAt:i}){let a=JSON.parse(o).tags.filter(([y])=>"e"===y||"p"===y||"a"===y),c={kind:9735,created_at:Math.round(i.getTime()/1e3),content:"",tags:[...a,["bolt11",r],["description",o]]};return s&&c.tags.push(["preimage",s]),c}var nip98_exports={};__export(nip98_exports,{getToken:()=>getToken,unpackEventFromToken:()=>unpackEventFromToken,validateEvent:()=>validateEvent2,validateToken:()=>validateToken});var _authorizationScheme="Nostr ";function getToken(o,s,r){return _getToken.apply(this,arguments)}function _getToken(){return _getToken=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r,i=!1){if(!o||!s)throw new Error("Missing loginUrl or httpMethod");const a=getBlankEvent(27235);a.tags=[["u",o],["method",s]],a.created_at=Math.round((new Date).getTime()/1e3);const c=yield r(a);return(i?_authorizationScheme:"")+base64$1.encode(utf8Encoder.encode(JSON.stringify(c)))}),_getToken.apply(this,arguments)}function validateToken(o,s,r){return _validateToken.apply(this,arguments)}function _validateToken(){return _validateToken=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){const i=yield unpackEventFromToken(o).catch(a=>{throw a});return yield validateEvent2(i,s,r).catch(a=>{throw a})}),_validateToken.apply(this,arguments)}function unpackEventFromToken(o){return _unpackEventFromToken.apply(this,arguments)}function _unpackEventFromToken(){return _unpackEventFromToken=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){if(!o)throw new Error("Missing token");o=o.replace(_authorizationScheme,"");const s=utf8Decoder.decode(base64$1.decode(o));if(!s||0===s.length||!s.startsWith("{"))throw new Error("Invalid token");return JSON.parse(s)}),_unpackEventFromToken.apply(this,arguments)}function validateEvent2(o,s,r){return _validateEvent.apply(this,arguments)}function _validateEvent(){return _validateEvent=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){if(!o)throw new Error("Invalid nostr event");if(!verifySignature(o))throw new Error("Invalid nostr event, signature invalid");if(27235!==o.kind)throw new Error("Invalid nostr event, kind invalid");if(!o.created_at)throw new Error("Invalid nostr event, created_at invalid");if(Math.round((new Date).getTime()/1e3)-o.created_at>60)throw new Error("Invalid nostr event, expired");const i=o.tags.find(c=>"u"===c[0]);if(1!==i?.length&&i?.[1]!==s)throw new Error("Invalid nostr event, url tag invalid");const a=o.tags.find(c=>"method"===c[0]);if(1!==a?.length&&a?.[1].toLowerCase()!==r.toLowerCase())throw new Error("Invalid nostr event, method tag invalid");return!0}),_validateEvent.apply(this,arguments)}var browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var o=1e3,s=60*o,r=60*s,i=24*r,a=7*i;function y(w,C,T,S){var A=C>=1.5*T;return Math.round(w/T)+" "+S+(A?"s":"")}return ms=function(w,C){C=C||{};var S,A,T=typeof w;if("string"===T&&w.length>0)return function(S){if(!((S=String(S)).length>100)){var A=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(S);if(A){var I=parseFloat(A[1]);switch((A[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*I;case"weeks":case"week":case"w":return I*a;case"days":case"day":case"d":return I*i;case"hours":case"hour":case"hrs":case"hr":case"h":return I*r;case"minutes":case"minute":case"mins":case"min":case"m":return I*s;case"seconds":case"second":case"secs":case"sec":case"s":return I*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return I;default:return}}}}(w);if("number"===T&&isFinite(w))return C.long?(S=w,(A=Math.abs(S))>=i?y(S,A,i,"day"):A>=r?y(S,A,r,"hour"):A>=s?y(S,A,s,"minute"):A>=o?y(S,A,o,"second"):S+" ms"):function(S){var A=Math.abs(S);return A>=i?Math.round(S/i)+"d":A>=r?Math.round(S/r)+"h":A>=s?Math.round(S/s)+"m":A>=o?Math.round(S/o)+"s":S+"ms"}(w);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(w))}}function setup(o){function s(a){let c,y,w,C=null;function T(...S){if(!T.enabled)return;const A=T,I=Number(new Date);A.diff=I-(c||I),A.prev=c,A.curr=I,c=I,S[0]=s.coerce(S[0]),"string"!=typeof S[0]&&S.unshift("%O");let G=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(Z,ne)=>{if("%%"===Z)return"%";G++;const be=s.formatters[ne];return"function"==typeof be&&(Z=be.call(A,S[G]),S.splice(G,1),G--),Z}),s.formatArgs.call(A,S),(A.log||s.log).apply(A,S)}return T.namespace=a,T.useColors=s.useColors(),T.color=s.selectColor(a),T.extend=r,T.destroy=s.destroy,Object.defineProperty(T,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==C?C:(y!==s.namespaces&&(y=s.namespaces,w=s.enabled(a)),w),set:S=>{C=S}}),"function"==typeof s.init&&s.init(T),T}function r(a,c){const y=s(this.namespace+(void 0===c?":":c)+a);return y.log=this.log,y}function i(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}return s.debug=s,s.default=s,s.coerce=function(a){return a instanceof Error?a.stack||a.message:a},s.disable=function(){const a=[...s.names.map(i),...s.skips.map(i).map(c=>"-"+c)].join(",");return s.enable(""),a},s.enable=function(a){let c;s.save(a),s.namespaces=a,s.names=[],s.skips=[];const y=("string"==typeof a?a:"").split(/[\s,]+/),w=y.length;for(c=0;c{s[a]=o[a]}),s.names=[],s.skips=[],s.formatters={},s.selectColor=function(a){let c=0;for(let y=0;y{"%%"!==w&&(c++,"%c"===w&&(y=c))}),i.splice(y,0,a)},s.save=function(i){try{i?s.storage.setItem("debug",i):s.storage.removeItem("debug")}catch{}},s.load=function(){let i;try{i=s.storage.getItem("debug")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i},s.useColors=function(){return!(!(typeof window<"u"&&window.process)||"renderer"!==window.process.type&&!window.process.__nwjs)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},s.storage=function(){try{return localStorage}catch{}}(),s.destroy=(()=>{let i=!1;return()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),s.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],s.log=console.debug||console.log||(()=>{}),o.exports=common(s);const{formatters:r}=o.exports;r.j=function(i){try{return JSON.stringify(i)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}}(browser,browser.exports);var browserExports=browser.exports,debug3=getDefaultExportFromCjs(browserExports),dist={},LRUCache$1={},LRUCacheNode$1={};Object.defineProperty(LRUCacheNode$1,"__esModule",{value:!0}),LRUCacheNode$1.LRUCacheNode=void 0;class LRUCacheNode{constructor(s,r,i){const{entryExpirationTimeInMS:a=null,next:c=null,prev:y=null,onEntryEvicted:w,onEntryMarkedAsMostRecentlyUsed:C,clone:T,cloneFn:S}=i??{};if("number"==typeof a&&(a<=0||Number.isNaN(a)))throw new Error("entryExpirationTimeInMS must either be null (no expiry) or greater than 0");this.clone=null!=T&&T,this.cloneFn=S??this.defaultClone,this.key=s,this.internalValue=this.clone?this.cloneFn(r):r,this.created=Date.now(),this.entryExpirationTimeInMS=a,this.next=c,this.prev=y,this.onEntryEvicted=w,this.onEntryMarkedAsMostRecentlyUsed=C}get value(){return this.clone?this.cloneFn(this.internalValue):this.internalValue}get isExpired(){return"number"==typeof this.entryExpirationTimeInMS&&Date.now()-this.created>this.entryExpirationTimeInMS}invokeOnEvicted(){if(this.onEntryEvicted){const{key:s,value:r,isExpired:i}=this;this.onEntryEvicted({key:s,value:r,isExpired:i})}}invokeOnEntryMarkedAsMostRecentlyUsed(){if(this.onEntryMarkedAsMostRecentlyUsed){const{key:s,value:r}=this;this.onEntryMarkedAsMostRecentlyUsed({key:s,value:r})}}defaultClone(s){return"boolean"==typeof s||"string"==typeof s||"number"==typeof s?s:JSON.parse(JSON.stringify(s))}}LRUCacheNode$1.LRUCacheNode=LRUCacheNode,Object.defineProperty(LRUCache$1,"__esModule",{value:!0}),LRUCache$1.LRUCache=void 0;const LRUCacheNode_1=LRUCacheNode$1;class LRUCache{constructor(s){this.lookupTable=new Map,this.head=null,this.tail=null;const{maxSize:r=25,entryExpirationTimeInMS:i=null,onEntryEvicted:a,onEntryMarkedAsMostRecentlyUsed:c,cloneFn:y,clone:w}=s??{};if(Number.isNaN(r)||r<=0)throw new Error("maxSize must be greater than 0.");if("number"==typeof i&&(i<=0||Number.isNaN(i)))throw new Error("entryExpirationTimeInMS must either be null (no expiry) or greater than 0");this.maxSizeInternal=r,this.entryExpirationTimeInMS=i,this.onEntryEvicted=a,this.onEntryMarkedAsMostRecentlyUsed=c,this.clone=w,this.cloneFn=y}get size(){return this.cleanCache(),this.lookupTable.size}get remainingSize(){return this.maxSizeInternal-this.size}get newest(){return this.head?this.head.isExpired?(this.removeNodeFromListAndLookupTable(this.head),this.newest):this.mapNodeToEntry(this.head):null}get oldest(){return this.tail?this.tail.isExpired?(this.removeNodeFromListAndLookupTable(this.tail),this.oldest):this.mapNodeToEntry(this.tail):null}get maxSize(){return this.maxSizeInternal}set maxSize(s){if(Number.isNaN(s)||s<=0)throw new Error("maxSize must be greater than 0.");this.maxSizeInternal=s,this.enforceSizeLimit()}set(s,r,i){const a=this.lookupTable.get(s);a&&this.removeNodeFromListAndLookupTable(a);const c=new LRUCacheNode_1.LRUCacheNode(s,r,{entryExpirationTimeInMS:this.entryExpirationTimeInMS,onEntryEvicted:this.onEntryEvicted,onEntryMarkedAsMostRecentlyUsed:this.onEntryMarkedAsMostRecentlyUsed,clone:this.clone,cloneFn:this.cloneFn,...i});return this.setNodeAsHead(c),this.lookupTable.set(s,c),this.enforceSizeLimit(),this}get(s){const r=this.lookupTable.get(s);return r?r.isExpired?(this.removeNodeFromListAndLookupTable(r),null):(this.setNodeAsHead(r),r.value):null}peek(s){const r=this.lookupTable.get(s);return r?r.isExpired?(this.removeNodeFromListAndLookupTable(r),null):r.value:null}delete(s){const r=this.lookupTable.get(s);return!!r&&this.removeNodeFromListAndLookupTable(r)}has(s){const r=this.lookupTable.get(s);return!(!r||r.isExpired&&(this.removeNodeFromListAndLookupTable(r),1))}clear(){this.head=null,this.tail=null,this.lookupTable.clear()}find(s){let r=this.head;for(;r;){if(r.isExpired){const a=r.next;this.removeNodeFromListAndLookupTable(r),r=a;continue}const i=this.mapNodeToEntry(r);if(s(i))return this.setNodeAsHead(r),i;r=r.next}return null}forEach(s){let r=this.head,i=0;for(;r;)if(r.isExpired){const a=r.next;this.removeNodeFromListAndLookupTable(r),r=a}else s(r.value,r.key,i),r=r.next,i++}*values(){let s=this.head;for(;s;)if(s.isExpired){const r=s.next;this.removeNodeFromListAndLookupTable(s),s=r}else yield s.value,s=s.next}*keys(){let s=this.head;for(;s;)if(s.isExpired){const r=s.next;this.removeNodeFromListAndLookupTable(s),s=r}else yield s.key,s=s.next}*entries(){let s=this.head;for(;s;)if(s.isExpired){const r=s.next;this.removeNodeFromListAndLookupTable(s),s=r}else yield this.mapNodeToEntry(s),s=s.next}*[Symbol.iterator](){let s=this.head;for(;s;)if(s.isExpired){const r=s.next;this.removeNodeFromListAndLookupTable(s),s=r}else yield this.mapNodeToEntry(s),s=s.next}enforceSizeLimit(){let s=this.tail;for(;null!==s&&this.size>this.maxSizeInternal;){const r=s.prev;this.removeNodeFromListAndLookupTable(s),s=r}}mapNodeToEntry({key:s,value:r}){return{key:s,value:r}}setNodeAsHead(s){this.removeNodeFromList(s),this.head?(s.next=this.head,this.head.prev=s,this.head=s):(this.head=s,this.tail=s),s.invokeOnEntryMarkedAsMostRecentlyUsed()}removeNodeFromList(s){null!==s.prev&&(s.prev.next=s.next),null!==s.next&&(s.next.prev=s.prev),this.head===s&&(this.head=s.next),this.tail===s&&(this.tail=s.prev),s.next=null,s.prev=null}removeNodeFromListAndLookupTable(s){return s.invokeOnEvicted(),this.removeNodeFromList(s),this.lookupTable.delete(s.key)}cleanCache(){if(!this.entryExpirationTimeInMS)return;const s=[];for(const r of this.lookupTable.values())r.isExpired&&s.push(r);s.forEach(r=>this.removeNodeFromListAndLookupTable(r))}}LRUCache$1.LRUCache=LRUCache,function(o){var s=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(i,a,c,y){void 0===y&&(y=c);var w=Object.getOwnPropertyDescriptor(a,c);w&&!("get"in w?!a.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(i,y,w)}:function(i,a,c,y){void 0===y&&(y=c),i[y]=a[c]}),r=commonjsGlobal&&commonjsGlobal.__exportStar||function(i,a){for(var c in i)"default"===c||Object.prototype.hasOwnProperty.call(a,c)||s(a,i,c)};Object.defineProperty(o,"__esModule",{value:!0}),r(LRUCache$1,o)}(dist);var lib={};(function(o){function s(Ce){if(!Number.isSafeInteger(Ce))throw new Error(`Wrong integer: ${Ce}`)}function r(...Ce){const le=(ae,Ie)=>$e=>ae(Ie($e));return{encode:Array.from(Ce).reverse().reduce((ae,Ie)=>ae?le(ae,Ie.encode):Ie.encode,void 0),decode:Ce.reduce((ae,Ie)=>ae?le(ae,Ie.decode):Ie.decode,void 0)}}function i(Ce){return{encode:le=>{if(!Array.isArray(le)||le.length&&"number"!=typeof le[0])throw new Error("alphabet.encode input should be an array of numbers");return le.map(ae=>{if(s(ae),ae<0||ae>=Ce.length)throw new Error(`Digit index outside alphabet: ${ae} (alphabet: ${Ce.length})`);return Ce[ae]})},decode:le=>{if(!Array.isArray(le)||le.length&&"string"!=typeof le[0])throw new Error("alphabet.decode input should be array of strings");return le.map(ae=>{if("string"!=typeof ae)throw new Error(`alphabet.decode: not string element=${ae}`);const Ie=Ce.indexOf(ae);if(-1===Ie)throw new Error(`Unknown letter: "${ae}". Allowed: ${Ce}`);return Ie})}}}function a(Ce=""){if("string"!=typeof Ce)throw new Error("join separator should be string");return{encode:le=>{if(!Array.isArray(le)||le.length&&"string"!=typeof le[0])throw new Error("join.encode input should be array of strings");for(let ae of le)if("string"!=typeof ae)throw new Error(`join.encode: non-string input=${ae}`);return le.join(Ce)},decode:le=>{if("string"!=typeof le)throw new Error("join.decode input should be string");return le.split(Ce)}}}function c(Ce,le="="){if(s(Ce),"string"!=typeof le)throw new Error("padding chr should be string");return{encode(ae){if(!Array.isArray(ae)||ae.length&&"string"!=typeof ae[0])throw new Error("padding.encode input should be array of strings");for(let Ie of ae)if("string"!=typeof Ie)throw new Error(`padding.encode: non-string input=${Ie}`);for(;ae.length*Ce%8;)ae.push(le);return ae},decode(ae){if(!Array.isArray(ae)||ae.length&&"string"!=typeof ae[0])throw new Error("padding.encode input should be array of strings");for(let $e of ae)if("string"!=typeof $e)throw new Error(`padding.decode: non-string input=${$e}`);let Ie=ae.length;if(Ie*Ce%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;Ie>0&&ae[Ie-1]===le;Ie--)if(!((Ie-1)*Ce%8))throw new Error("Invalid padding: string has too much padding");return ae.slice(0,Ie)}}}function y(Ce){if("function"!=typeof Ce)throw new Error("normalize fn should be function");return{encode:le=>le,decode:le=>Ce(le)}}function w(Ce,le,ae){if(le<2)throw new Error(`convertRadix: wrong from=${le}, base cannot be less than 2`);if(ae<2)throw new Error(`convertRadix: wrong to=${ae}, base cannot be less than 2`);if(!Array.isArray(Ce))throw new Error("convertRadix: data should be array");if(!Ce.length)return[];let Ie=0;const $e=[],st=Array.from(Ce);for(st.forEach(ht=>{if(s(ht),ht<0||ht>=le)throw new Error(`Wrong integer: ${ht}`)});;){let ht=0,vt=!0;for(let at=Ie;atle?C(le,Ce%le):Ce,T=(Ce,le)=>Ce+(le-C(Ce,le));function S(Ce,le,ae,Ie){if(!Array.isArray(Ce))throw new Error("convertRadix2: data should be array");if(le<=0||le>32)throw new Error(`convertRadix2: wrong from=${le}`);if(ae<=0||ae>32)throw new Error(`convertRadix2: wrong to=${ae}`);if(T(le,ae)>32)throw new Error(`convertRadix2: carry overflow from=${le} to=${ae} carryBits=${T(le,ae)}`);let $e=0,st=0;const ht=2**ae-1,vt=[];for(const at of Ce){if(s(at),at>=2**le)throw new Error(`convertRadix2: invalid data word=${at} from=${le}`);if($e=$e<32)throw new Error(`convertRadix2: carry overflow pos=${st} from=${le}`);for(st+=le;st>=ae;st-=ae)vt.push(($e>>st-ae&ht)>>>0);$e&=2**st-1}if($e=$e<=le)throw new Error("Excess padding");if(!Ie&&$e)throw new Error(`Non-zero padding: ${$e}`);return Ie&&st>0&&vt.push($e>>>0),vt}function A(Ce){return s(Ce),{encode:le=>{if(!(le instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return w(Array.from(le),256,Ce)},decode:le=>{if(!Array.isArray(le)||le.length&&"number"!=typeof le[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(w(le,Ce,256))}}}function I(Ce,le=!1){if(s(Ce),Ce<=0||Ce>32)throw new Error("radix2: bits should be in (0..32]");if(T(8,Ce)>32||T(Ce,8)>32)throw new Error("radix2: carry overflow");return{encode:ae=>{if(!(ae instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return S(Array.from(ae),8,Ce,!le)},decode:ae=>{if(!Array.isArray(ae)||ae.length&&"number"!=typeof ae[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(S(ae,Ce,8,le))}}}function N(Ce){if("function"!=typeof Ce)throw new Error("unsafeWrapper fn should be function");return function(...le){try{return Ce.apply(null,le)}catch{}}}function G(Ce,le){if(s(Ce),"function"!=typeof le)throw new Error("checksum fn should be function");return{encode(ae){if(!(ae instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const Ie=le(ae).slice(0,Ce),$e=new Uint8Array(ae.length+Ce);return $e.set(ae),$e.set(Ie,ae.length),$e},decode(ae){if(!(ae instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const Ie=ae.slice(0,-Ce),$e=le(Ie).slice(0,Ce),st=ae.slice(-Ce);for(let ht=0;htCe.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),o.base64=r(I(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),c(6),a("")),o.base64url=r(I(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),c(6),a(""));const Z=Ce=>r(A(58),i(Ce),a(""));o.base58=Z("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),o.base58flickr=Z("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),o.base58xrp=Z("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const ne=[0,2,3,5,6,7,9,10,11];o.base58xmr={encode(Ce){let le="";for(let ae=0;aer(G(4,le=>Ce(Ce(le))),o.base58);const be=r(i("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),a("")),me=[996825010,642813549,513874426,1027748829,705979059];function pe(Ce){const le=Ce>>25;let ae=(33554431&Ce)<<5;for(let Ie=0;Ie>Ie&1)&&(ae^=me[Ie]);return ae}function Te(Ce,le,ae=1){const Ie=Ce.length;let $e=1;for(let st=0;st126)throw new Error(`Invalid prefix (${Ce})`);$e=pe($e)^ht>>5}$e=pe($e);for(let st=0;stat)throw new TypeError(`Wrong string length: ${vt.length} (${vt}). Expected (8..${at})`);const Xt=vt.toLowerCase();if(vt!==Xt&&vt!==vt.toUpperCase())throw new Error("String must be lowercase or uppercase");const ln=(vt=Xt).lastIndexOf("1");if(0===ln||-1===ln)throw new Error('Letter "1" must be present between prefix and data only');const yn=vt.slice(0,ln),$n=vt.slice(ln+1);if($n.length<6)throw new Error("Data must be at least 6 characters long");const bn=be.decode($n).slice(0,-6),Qe=Te(yn,bn,le);if(!$n.endsWith(Qe))throw new Error(`Invalid checksum in ${vt}: expected "${Qe}"`);return{prefix:yn,words:bn}}return{encode:function(vt,at,Xt=90){if("string"!=typeof vt)throw new Error("bech32.encode prefix should be string, not "+typeof vt);if(!Array.isArray(at)||at.length&&"number"!=typeof at[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof at);const ln=vt.length+7+at.length;if(!1!==Xt&&ln>Xt)throw new TypeError(`Length ${ln} exceeds limit ${Xt}`);return`${vt=vt.toLowerCase()}1${be.encode(at)}${Te(vt,at,le)}`},decode:ht,decodeToBytes:function(vt){const{prefix:at,words:Xt}=ht(vt,!1);return{prefix:at,words:Xt,bytes:Ie(Xt)}},decodeUnsafe:N(ht),fromWords:Ie,fromWordsUnsafe:st,toWords:$e}}o.bech32=xe("bech32"),o.bech32m=xe("bech32m"),o.utf8={encode:Ce=>(new TextDecoder).decode(Ce),decode:Ce=>(new TextEncoder).encode(Ce)},o.hex=r(I(4),i("0123456789abcdef"),a(""),y(Ce=>{if("string"!=typeof Ce||Ce.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof Ce} with length ${Ce.length}`);return Ce.toLowerCase()}));const Re={utf8:o.utf8,hex:o.hex,base16:o.base16,base32:o.base32,base64:o.base64,base64url:o.base64url,base58:o.base58,base58xmr:o.base58xmr},Me=`Invalid encoding type. Available types: ${Object.keys(Re).join(", ")}`;o.bytesToString=(Ce,le)=>{if("string"!=typeof Ce||!Re.hasOwnProperty(Ce))throw new TypeError(Me);if(!(le instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return Re[Ce].encode(le)},o.str=o.bytesToString,o.stringToBytes=(Ce,le)=>{if(!Re.hasOwnProperty(Ce))throw new TypeError(Me);if("string"!=typeof le)throw new TypeError("stringToBytes() expects string");return Re[Ce].decode(le)},o.bytes=o.stringToBytes})(lib),BigInt(1e3),BigInt(1e6),BigInt(1e9),BigInt(1e12),BigInt("2100000000000000000"),BigInt(1e11);const TAGCODES={payment_hash:1,payment_secret:16,description:13,payee:19,description_hash:23,expiry:6,min_final_cltv_expiry:24,fallback_address:9,route_hint:3,feature_bits:5,metadata:27};for(let o=0,s=Object.keys(TAGCODES);othis.handleNotice(s))}initiateAuth(o={limit:1}){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.debug("Initiating authentication");const r=s.relay.sub([o],{id:"auth-test"});r.on("eose",()=>{r.unsub(),s._status=1,s.ndkRelay.emit("ready"),s.debug("Authentication not required"),r.unsub()}),s.debug("Authentication request started")})()}connect(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=()=>{o.updateConnectionStats.connected(),o.ndkRelay.authRequired?(o._status=6,o.ndkRelay.emit("connect"),o.initiateAuth()):(o._status=1,o.ndkRelay.emit("connect"),o.ndkRelay.emit("ready"))},r=()=>{o.updateConnectionStats.disconnected(),1===o._status&&(o._status=3,o.handleReconnection()),o.ndkRelay.emit("disconnect")},i=function(){var a=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c){o.debug("Relay requested authentication",{havePolicy:!!o.ndkRelay.authPolicy}),o.ndkRelay.authPolicy?7!==o._status&&(o._status=7,yield o.ndkRelay.authPolicy(o.ndkRelay,c),7===o._status&&(o.debug("Authentication policy finished"),o._status=1,o.ndkRelay.emit("ready"))):yield o.ndkRelay.emit("auth",c)});return function(y){return a.apply(this,arguments)}}();try{o.updateConnectionStats.attempt(),o._status=0,o.relay.off("connect",s),o.relay.off("disconnect",r),o.relay.on("connect",s),o.relay.on("disconnect",r),o.relay.on("auth",i),yield o.relay.connect()}catch(a){throw o.debug("Failed to connect",a),o._status=3,a}})()}disconnect(){this._status=2,this.relay.close()}get status(){return this._status}isAvailable(){return 1===this._status}isFlapping(){const o=this._connectionStats.durations;if(o.length%3!=0)return!1;const s=o.reduce((i,a)=>i+a,0)/o.length,r=o.map(i=>Math.pow(i-s,2)).reduce((i,a)=>i+a,0)/o.length;return Math.sqrt(r)<1e3}handleNotice(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){(o.includes("oo many")||o.includes("aximum"))&&(s.disconnect(),setTimeout(()=>s.connect(),2e3),s.debug(s.relay.url,"Relay complaining?",o)),s.ndkRelay.emit("notice",s,o)})()}handleReconnection(o=0){if(this.isFlapping())return this.ndkRelay.emit("flapping",this,this._connectionStats),void(this._status=5);const s=this.connectedAt?Math.max(0,6e4-(Date.now()-this.connectedAt)):0;setTimeout(()=>{this._status=4,this.connect().then(()=>{this.debug("Reconnected")}).catch(r=>{this.debug("Reconnect failed",r),o<5?setTimeout(()=>{this.handleReconnection(o+1)},6e4):this.debug("Reconnect failed after 5 attempts")})},s)}updateConnectionStats={connected:()=>{this._connectionStats.success++,this._connectionStats.connectedAt=Date.now()},disconnected:()=>{this._connectionStats.connectedAt&&(this._connectionStats.durations.push(Date.now()-this._connectionStats.connectedAt),this._connectionStats.durations.length>100&&this._connectionStats.durations.shift()),this._connectionStats.connectedAt=void 0},attempt:()=>{this._connectionStats.attempts++}};get connectionStats(){return this._connectionStats}},NDKRelayPublisher=class{ndkRelay;constructor(o){this.ndkRelay=o}publish(o,s=2500){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=()=>new Promise((C,T)=>{try{r.publishEvent(o,s).then(S=>C(S)).catch(S=>T(S))}catch(S){T(S)}}),a=new Promise((C,T)=>{setTimeout(()=>T(new Error("Timeout")),s)}),c=()=>{i().then(C=>y(C)).catch(C=>w(C))};let y,w;return 1===r.ndkRelay.status?Promise.race([i(),a]):Promise.race([new Promise((C,T)=>{y=C,w=T,r.ndkRelay.once("connect",c)}),a]).finally(()=>{r.ndkRelay.removeListener("connect",c)})})()}publishEvent(o,s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=yield o.toNostrEvent(),a=r.ndkRelay.connectivity.relay.publish(i);let c;const y=new Promise((C,T)=>{a.then(()=>{clearTimeout(c),r.ndkRelay.emit("published",o),C(!0)}).catch(S=>{clearTimeout(c),r.ndkRelay.debug("Publish failed",S,o.id),r.ndkRelay.emit("publish:failed",o,S),T(S)})});if(!s||o.isEphemeral())return y;const w=new Promise((C,T)=>{c=setTimeout(()=>{r.ndkRelay.debug("Publish timed out",o.rawEvent()),r.ndkRelay.emit("publish:failed",o,"Timeout"),T(new Error("Publish operation timed out"))},s)});return Promise.race([y,w])})()}auth(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.ndkRelay.connectivity.relay.auth(o.rawEvent())})()}};function calculateGroupableId(o){const s=[];for(const r of o){if(r.since||r.until)return null;const i=Object.keys(r||{}).sort().join("-");s.push(i)}return s.join("|")}function mergeFilters(o){const s={};return o.forEach(r=>{Object.entries(r).forEach(([i,a])=>{s[i]=Array.isArray(a)?void 0===s[i]?[...a]:Array.from(new Set([...s[i],...a])):a})}),s}var MAX_SUBID_LENGTH=20;function queryFullyFilled(o){return!(!filterIncludesIds(o.filter)||!resultHasAllRequestedIds(o))}function compareFilter(o,s){if(Object.keys(o).length!==Object.keys(s).length)return!1;for(const[r,i]of Object.entries(o)){const a=s[r];if(!a)return!1;if(Array.isArray(i)&&Array.isArray(a)){const c=i;for(const y of a)if(!c.includes(y))return!1}else if(a!==i)return!1}return!0}function filterIncludesIds(o){return!!o.ids}function resultHasAllRequestedIds(o){const s=o.filter.ids;return!!s&&s.length===o.eventFirstSeen.size}function generateSubId(o,s){const r=o.map(w=>w.subId).filter(Boolean),i=[],a=new Set,c=new Set;if(r.length>0)i.push(Array.from(new Set(r)).join(","));else{for(const w of s)for(const C of Object.keys(w))"kinds"===C?w.kinds?.forEach(T=>c.add(T)):a.add(C);c.size>0&&i.push("kinds:"+Array.from(c).join(",")),a.size>0&&i.push(Array.from(a).join(","))}let y=i.join("-");return y.length>MAX_SUBID_LENGTH&&(y=y.substring(0,MAX_SUBID_LENGTH)),1!==r.length&&(y+="-"+Math.floor(999*Math.random()).toString()),y}function filterFromId(o){let s;if(o.match(NIP33_A_REGEX)){const[r,i,a]=o.split(":"),c={authors:[i],kinds:[parseInt(r)]};return a&&(c["#d"]=[a]),c}try{switch(s=nip19_exports.decode(o),s.type){case"nevent":return{ids:[s.data.id]};case"note":return{ids:[s.data]};case"naddr":return{authors:[s.data.pubkey],"#d":[s.data.identifier],kinds:[s.data.kind]}}}catch{}return{ids:[o]}}function isNip33AValue(o){return null!==o.match(NIP33_A_REGEX)}var NIP33_A_REGEX=/^(\d+):([0-9A-Fa-f]+)(?::(.*))?$/;function relaysFromBech32(o){try{const s=nip19_exports.decode(o);if(["naddr","nevent"].includes(s?.type)){const r=s.data;if(r?.relays)return r.relays.map(i=>new NDKRelay(i))}}catch{}return[]}var NDKGroupedSubscriptions=class extends lib$1.EventEmitter{subscriptions;req;debug;constructor(o,s){super(),this.subscriptions=o,this.debug=s||this.subscriptions[0].subscription.debug.extend("grouped");for(const r of o)this.handleSubscriptionClosure(r)}addSubscription(o){this.subscriptions.push(o),this.handleSubscriptionClosure(o)}eventReceived(o){for(const s of this.subscriptions)s.eventReceived(o)}eoseReceived(o){Array.from(this.subscriptions).forEach(function(){var s=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(r){r.subscription.eoseReceived(o)});return function(r){return s.apply(this,arguments)}}())}handleSubscriptionClosure(o){o.subscription.on("close",()=>{const s=this.subscriptions.findIndex(r=>r.subscription===o.subscription);this.subscriptions.splice(s,1),this.subscriptions.length<=0&&this.emit("close")})}map(o){return this.subscriptions.map(o)}[Symbol.iterator](){let o=0;const s=this.subscriptions;return{next:()=>omatchFilter(r,s))}};function findMatchingActiveSubscriptions(o,s){if(o.length!==s.length)return!1;for(let r=0;r{this.delayedItems.get(r)&&this.delayedItems.delete(r)}));let y=this.executionTimeoutsByGroupId.get(r);y&&"at-most"!==o.opts.groupableDelayType||(y=setTimeout(()=>{this.executeGroup(r,o)},o.opts.groupableDelay),this.executionTimeoutsByGroupId.set(r,y)),this.delayedTimers.has(r)?this.delayedTimers.get(r).push(y):this.delayedTimers.set(r,[y])}executeGroup(o,s){const r=this.delayedItems.get(o);this.delayedItems.delete(o);const i=this.delayedTimers.get(o);if(this.delayedTimers.delete(o),i)for(const a of i)clearTimeout(a);if(r){const a=r.subscriptions[0].filters.length,c=[];for(let y=0;yC.filters[y]);c.push(mergeFilters(w))}this.executeSubscriptions(o,r,c)}}executeSubscriptionsWhenConnected(o,s,r){const i=()=>{this.debug("new relay coming online for active subscription",{relay:this.ndkRelay.url,mergeFilters}),this.executeSubscriptionsConnected(o,s,r)};this.ndkRelay.once("ready",i),s.once("close",()=>{this.ndkRelay.removeListener("ready",i)})}executeSubscriptions(o,s,r){this.conn.isAvailable()?this.executeSubscriptionsConnected(o,s,r):this.executeSubscriptionsWhenConnected(o,s,r)}executeSubscriptionsConnected(o,s,r){const i=[];for(const{subscription:w}of s)i.push(w);const a=generateSubId(i,r);s.req=r;const c={id:a};(this.ndkRelay.trusted||i.every(w=>w.opts.skipVerification))&&(c.skipVerification=!0);const y=this.conn.relay.sub(r,c);return this.activeSubscriptions.set(y,s),o&&this.activeSubscriptionsByGroupId.set(o,{filters:r,sub:y}),y.on("event",w=>{const C=new NDKEvent(void 0,w);C.relay=this.ndkRelay,this.activeSubscriptions.get(y)?.eventReceived(C)}),y.on("eose",()=>{this.activeSubscriptions.get(y)?.eoseReceived(this.ndkRelay)}),s.once("close",()=>{y.unsub(),this.activeSubscriptions.delete(y),o&&this.activeSubscriptionsByGroupId.delete(o)}),this.executeSubscriptionsWhenConnected(o,s,r),y}executedFilters(){const o=new Map;for(const[,s]of this.activeSubscriptions)o.set(s.req,s.map(r=>r.subscription));return o}},NDKRelay=class extends lib$1.EventEmitter{url;scores;connectivity;subs;publisher;authPolicy;authRequired=!1;trusted=!1;complaining=!1;debug;constructor(o,s){super(),this.url=o,this.scores=new Map,this.debug=debug3(`ndk:relay:${o}`),this.connectivity=new NDKRelayConnectivity(this),this.subs=new NDKRelaySubscriptions(this),this.publisher=new NDKRelayPublisher(this),this.authPolicy=s}get status(){return this.connectivity.status}get connectionStats(){return this.connectivity.connectionStats}connect(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return o.connectivity.connect()})()}disconnect(){3!==this.status&&this.connectivity.disconnect()}subscribe(o,s){this.subs.subscribe(o,s)}publish(o,s=2500){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.publisher.publish(o,s)})()}auth(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.publisher.auth(o)})()}scoreSlowerEvent(o){}tagReference(o){const s=["r",this.url];return o&&s.push(o),s}referenceTags(){return[["r",this.url]]}activeSubscriptions(){return this.subs.executedFilters()}},PublishError=class extends Error{errors;constructor(o,s){super(o),this.errors=s}},NDKRelaySet=class JD{relays;debug;ndk;constructor(s,r){this.relays=s,this.ndk=r,this.debug=r.debug.extend("relayset")}addRelay(s){this.relays.add(s)}static fromRelayUrls(s,r){const i=new Set;for(const a of s){const c=r.pool.relays.get(a);if(c)i.add(c);else{const y=new NDKRelay(a);r.pool.useTemporaryRelay(y),i.add(y)}}return new JD(new Set(i),r)}publish(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new Set,c=new Map,y=s.isEphemeral(),w=Array.from(i.relays).map(C=>new Promise(T=>{C.publish(s,r).then(()=>{a.add(C),T()}).catch(S=>{y||(c.set(C,S),i.debug("error publishing to relay",{relay:C.url,err:S})),T()})}));if(yield Promise.all(w),0===a.size&&!y)throw new PublishError("No relay was able to receive the event",c);return a})()}size(){return this.relays.size}};function calculateRelaySetFromEvent(o,s){const r=new Set;return o.pool?.relays.forEach(i=>r.add(i)),new NDKRelaySet(r,o)}function getWriteRelaysFor(o,s){if(o.outboxTracker)return o.outboxTracker.data.get(s)?.writeRelays}function calculateRelaySetsFromFilter(o,s){const r=new Map,i=new Set;if(s.forEach(a=>{a.authors&&a.authors.forEach(c=>i.add(c))}),i.size>0){const a=new Map;for(const c of i){const y=getWriteRelaysFor(o,c);y&&y.size>0?(o.debug(`Adding ${y.size} relays for ${c}`),y.forEach(w=>{const C=a.get(w)||[];C.push(c),a.set(w,C)})):o.explicitRelayUrls?.forEach(w=>{const C=a.get(w)||[];C.push(c),a.set(w,C)})}for(const c of a.keys())r.set(c,[]);for(const c of s)if(c.authors)for(const[y,w]of a.entries()){const C=c.authors.filter(T=>w.includes(T));r.set(y,[...r.get(y),{...c,authors:C}])}else for(const y of a.keys())r.set(y,[...r.get(y),c])}else o.explicitRelayUrls?.forEach(a=>{r.set(a,s)});return r}function calculateRelaySetsFromFilters(o,s){return calculateRelaySetsFromFilter(o,s)}var DEFAULT_RELAYS=["wss://nos.lol","wss://relay.nostr.band","wss://relay.f7z.io","wss://relay.damus.io","wss://nostr.mom","wss://no.str.cr"],Zap=class extends lib$1.EventEmitter{ndk;zappedEvent;zappedUser;constructor(o){super(),this.ndk=o.ndk,this.zappedEvent=o.zappedEvent,this.zappedUser=o.zappedUser||this.ndk.getUser({hexpubkey:this.zappedEvent?.pubkey})}getZapEndpoint(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let s,r,i,a;if(o.zappedUser&&(o.zappedUser.profile||(yield o.zappedUser.fetchProfile({groupable:!1})),s=(o.zappedUser.profile||{}).lud06,r=(o.zappedUser.profile||{}).lud16),r&&!r.startsWith("LNURL")){const[c,y]=r.split("@");i=`https://${y}/.well-known/lnurlp/${c}`}else if(s){const{words:c}=bech32.decode(s,1e3),y=bech32.fromWords(c);i=new TextDecoder("utf-8").decode(y)}if(!i)throw new Error("No zap endpoint found");try{const c=o.ndk.httpFetch||fetch,y=yield c(i);if(200!==y.status){const C=yield y.text();throw new Error(`Unable to fetch zap endpoint ${i}: ${C}`)}const w=yield y.json();return w?.allowsNostr&&(w?.nostrPubkey||w?.nostrPubKey)&&(a=w.callback),a}catch(c){throw new Error(`Unable to fetch zap endpoint ${i}: ${c}`)}})()}createZapRequest(o,s,r,i,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=yield c.generateZapRequest(o,s,r,i);if(!y)return null;const{event:w,zapEndpoint:C}=y;if(!w)throw new Error("No zap request event found");let T;yield w.sign(a);try{T=yield c.getInvoice(w,o,C)}catch(S){throw new Error("Failed to get invoice: "+S)}return T})()}getInvoice(o,s,r){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return(yield(yield fetch(`${r}?`+new URLSearchParams({amount:s.toString(),nostr:JSON.stringify(o.rawEvent())}))).json()).pr})()}generateZapRequest(o,s,r,i,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=yield c.getZapEndpoint();if(!y)throw new Error("No zap endpoint found");if(!c.zappedEvent&&!c.zappedUser)throw new Error("No zapped event or user found");const w=nip57_exports.makeZapRequest({profile:c.zappedUser.pubkey,event:null,amount:o,comment:s||"",relays:i??c.relays()});if(c.zappedEvent){const T=c.zappedEvent.referenceTags();w.tags.push(...T)}w.tags.push(["lnurl",y]);const C=new NDKEvent(c.ndk,w);return r&&(C.tags=C.tags.concat(r)),{event:C,zapEndpoint:y}})()}relays(){let o=[];return this.ndk?.pool?.relays&&(o=this.ndk.pool.urls()),o.length||(o=DEFAULT_RELAYS),o}};function mergeTags(o,s){const r=new Map,i=(a,c)=>a.every((y,w)=>y===c[w]);return o.concat(s).forEach(a=>{for(let[c,y]of r)if(i(y,a)||i(a,y))return void(a.length>=y.length&&r.set(c,a));r.set(a.join(","),a)}),Array.from(r.values())}function generateContentTags(o){return _generateContentTags.apply(this,arguments)}function _generateContentTags(){return _generateContentTags=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=[]){let r=[];const i=a=>{s.find(c=>c[0]===a[0]&&c[1]===a[1])||s.push(a)};return o=o.replace(/(@|nostr:)(npub|nprofile|note|nevent|naddr)[a-zA-Z0-9]+/g,a=>{try{const c=a.split(/(@|nostr:)/)[2],{type:y,data:w}=nip19_exports.decode(c);let C;switch(y){case"npub":C=["p",w];break;case"nprofile":C=["p",w.pubkey];break;case"note":r.push(new Promise(function(){var T=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){i(["e",w,yield maybeGetEventRelayUrl(c),"mention"]),S()});return function(S){return T.apply(this,arguments)}}()));break;case"nevent":r.push(new Promise(function(){var T=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){let{id:A,relays:I,author:N}=w;I&&0!==I.length||(I=[yield maybeGetEventRelayUrl(c)]),i(["e",A,I[0],"mention"]),N&&i(["p",N]),S()});return function(S){return T.apply(this,arguments)}}()));break;case"naddr":r.push(new Promise(function(){var T=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){const A=[w.kind,w.pubkey,w.identifier].join(":");let I=w.relays??[];0===I.length&&(I=[yield maybeGetEventRelayUrl(c)]),i(["a",A,I[0],"mention"]),i(["p",w.pubkey]),S()});return function(S){return T.apply(this,arguments)}}()));break;default:return a}return C&&i(C),`nostr:${c}`}catch{return a}}),yield Promise.all(r),{content:o=o.replace(/#(\w+)/g,(a,c)=>{const y=["t",c];return s.find(w=>w[0]===y[0]&&w[1]===y[1])||s.push(y),a}),tags:s}}),_generateContentTags.apply(this,arguments)}function maybeGetEventRelayUrl(o){return _maybeGetEventRelayUrl.apply(this,arguments)}function _maybeGetEventRelayUrl(){return(_maybeGetEventRelayUrl=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){return""})).apply(this,arguments)}function isReplaceable(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=1e4&&this.kind<2e4}function isEphemeral(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=2e4&&this.kind<3e4}function isParamReplaceable(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=3e4&&this.kind<4e4}function encrypt(o,s){return _encrypt.apply(this,arguments)}function _encrypt(){return _encrypt=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s){if(!this.ndk)throw new Error("No NDK instance found!");if(s||(yield this.ndk.assertSigner(),s=this.ndk.signer),!o){const r=this.getMatchingTags("p");if(1!==r.length)throw new Error("No recipient could be determined and no explicit recipient was provided");o=this.ndk.getUser({hexpubkey:r[0][1]})}this.content=yield s?.encrypt(o,this.content)}),_encrypt.apply(this,arguments)}function decrypt(o,s){return _decrypt.apply(this,arguments)}function _decrypt(){return _decrypt=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s){if(!this.ndk)throw new Error("No NDK instance found!");s||(yield this.ndk.assertSigner(),s=this.ndk.signer),o||(o=this.author),this.content=yield s?.decrypt(o,this.content)}),_decrypt.apply(this,arguments)}function encode(){return this.isParamReplaceable()?nip19_exports.naddrEncode({kind:this.kind,pubkey:this.pubkey,identifier:this.replaceableDTag(),relays:this.relay?[this.relay.url]:[]}):this.relay?nip19_exports.neventEncode({id:this.tagId(),relays:[this.relay.url],author:this.pubkey}):nip19_exports.noteEncode(this.tagId())}function repost(){return _repost.apply(this,arguments)}function _repost(){return _repost=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o=!0,s){if(!s&&o){if(!this.ndk)throw new Error("No NDK instance found");this.ndk.assertSigner(),s=this.ndk.signer}const r=new NDKEvent(this.ndk,{kind:getKind(this),content:""});return r.tag(this),16===r.kind&&r.tags.push(["k",`${this.kind}`]),s&&(yield r.sign(s)),o&&(yield r.publish()),r}),_repost.apply(this,arguments)}function getKind(o){return 1===o.kind?6:16}var NDKEvent=class W_ extends lib$1.EventEmitter{ndk;created_at;content="";tags=[];kind;id="";sig;pubkey="";_author=void 0;relay;constructor(s,r){super(),this.ndk=s,this.created_at=r?.created_at,this.content=r?.content||"",this.tags=r?.tags||[],this.id=r?.id||"",this.sig=r?.sig,this.pubkey=r?.pubkey||"",this.kind=r?.kind}rawEvent(){return{created_at:this.created_at,content:this.content,tags:this.tags,kind:this.kind,pubkey:this.pubkey,id:this.id,sig:this.sig}}set author(s){this.pubkey=s.hexpubkey,this._author=void 0}get author(){if(this._author)return this._author;if(!this.ndk)throw new Error("No NDK instance found");const s=this.ndk.getUser({hexpubkey:this.pubkey});return this._author=s,s}tag(s,r){let i=[];if(s instanceof NDKUser){const a=["p",s.pubkey];r&&a.push(r),i.push(a)}else if(s instanceof W_){const a=s;i=a.referenceTags(r,a?.pubkey===this.pubkey);for(const y of a.getMatchingTags("p"))y[1]!==this.pubkey&&(this.tags.find(w=>"p"===w[0]&&w[1]===y[1])||this.tags.push(["p",y[1]]))}else i=[s];this.tags=mergeTags(this.tags,i)}toNostrEvent(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s&&""===r.pubkey){const y=yield r.ndk?.signer?.user();r.pubkey=y?.hexpubkey||""}r.created_at||(r.created_at=Math.floor(Date.now()/1e3));const i=r.rawEvent(),{content:a,tags:c}=yield r.generateTags();i.content=a||"",i.tags=c;try{r.id=getEventHash(i)}catch{}return r.id&&(i.id=r.id),r.sig&&(i.sig=r.sig),i})()}isReplaceable=isReplaceable.bind(this);isEphemeral=isEphemeral.bind(this);isParamReplaceable=isParamReplaceable.bind(this);encode=encode.bind(this);encrypt=encrypt.bind(this);decrypt=decrypt.bind(this);getMatchingTags(s){return this.tags.filter(r=>r[0]===s)}tagValue(s){const r=this.getMatchingTags(s);if(0!==r.length)return r[0][1]}get alt(){return this.tagValue("alt")}set alt(s){this.removeTag("alt"),s&&this.tags.push(["alt",s])}removeTag(s){this.tags=this.tags.filter(r=>r[0]!==s)}sign(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s?r.author=yield s.user():(r.ndk?.assertSigner(),s=r.ndk.signer),yield r.generateTags(),r.isReplaceable()&&(r.created_at=Math.floor(Date.now()/1e3));const i=yield r.toNostrEvent();return r.sig=yield s.sign(i),r.sig})()}publish(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(i.sig||(yield i.sign()),!i.ndk)throw new Error("NDKEvent must be associated with an NDK instance to publish");return s||(s=i.ndk.devWriteRelaySet||calculateRelaySetFromEvent(i.ndk)),s.publish(i,r)})()}generateTags(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let r=[];const i=yield generateContentTags(s.content,s.tags),a=i.content;if(r=i.tags,s.kind&&s.isParamReplaceable()&&!s.getMatchingTags("d")[0]){const c=s.tagValue("title");let y=[...Array(c?6:16)].map(()=>Math.random().toString(36)[2]).join("");c&&c.length>0&&(y=c.replace(/[^a-z0-9]+/gi,"-").replace(/^-|-$/g,"")+"-"+y),r.push(["d",y])}if((s.ndk?.clientName||s.ndk?.clientNip89)&&!s.tagValue("client")){const c=["client",s.ndk.clientName??""];s.ndk.clientNip89&&c.push(s.ndk.clientNip89),r.push(c)}return{content:a||"",tags:r}})()}muted(){const s=this.ndk?.mutedIds.get(this.pubkey);if(s&&"p"===s)return"author";const r=this.tagReference(),i=this.ndk?.mutedIds.get(r[1]);return i&&i===r[0]?"event":null}replaceableDTag(){if(this.kind&&this.kind>=3e4&&this.kind<=4e4){const s=this.getMatchingTags("d")[0];return s?s[1]:""}throw new Error("Event is not a parameterized replaceable event")}deduplicationKey(){return 0===this.kind||3===this.kind||this.kind&&this.kind>=1e4&&this.kind<2e4?`${this.kind}:${this.pubkey}`:this.tagId()}tagId(){return this.isParamReplaceable()?this.tagAddress():this.id}tagAddress(){if(!this.isParamReplaceable())throw new Error("This must only be called on replaceable events");const s=this.replaceableDTag();return`${this.kind}:${this.pubkey}:${s}`}tagReference(s){let r;return r=this.isParamReplaceable()?["a",this.tagAddress()]:["e",this.tagId()],r.push(this.relay?this.relay.url:""),s&&r.push(s),r}referenceTags(s,r){let i=[];return i=this.isParamReplaceable()?[["a",this.tagAddress()],["e",this.id]]:[["e",this.id]],this.relay?.url?i=i.map(a=>(a.push(this.relay?.url),a)):s&&(i=i.map(a=>(a.push(""),a))),s&&i.forEach(a=>a.push(s)),r||i.push(...this.author.referenceTags()),i}filter(){return this.isParamReplaceable()?{"#a":[this.tagId()]}:{"#e":[this.tagId()]}}zap(s,r,i,a,c){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!y.ndk)throw new Error("No NDK instance found");c||y.ndk.assertSigner();const w=new Zap({ndk:y.ndk,zappedEvent:y,zappedUser:a}),C=Array.from(y.ndk.pool.relays.keys());return yield w.createZapRequest(s,r,i,C,c)})()}delete(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.ndk)throw new Error("No NDK instance found");r.ndk.assertSigner();const i=new W_(r.ndk,{kind:5,content:s||""});return i.tag(r),yield i.publish(),i})()}repost=repost.bind(this);react(s,r=!0){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.ndk)throw new Error("No NDK instance found");i.ndk.assertSigner();const a=new W_(i.ndk,{kind:7,content:s});return a.tag(i),r?yield a.publish():yield a.sign(),a})()}get isValid(){return!0}},READ_MARKER="read",WRITE_MARKER="write",NDKRelayList=class e2 extends NDKEvent{constructor(s,r){super(s,r),this.kind??=10002}static from(s){return new e2(s.ndk,s.rawEvent())}get readRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]||s[2]&&s[2]===READ_MARKER).map(s=>s[1])}set readRelayUrls(s){for(const r of s)this.tags.push(["r",r,READ_MARKER])}get writeRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]||s[2]&&s[2]===WRITE_MARKER).map(s=>s[1])}set writeRelayUrls(s){for(const r of s)this.tags.push(["r",r,WRITE_MARKER])}get bothRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]).map(s=>s[1])}set bothRelayUrls(s){for(const r of s)this.tags.push(["r",r])}get relays(){return this.getMatchingTags("r").map(s=>s[1])}},NDKSubscriptionCacheUsage=(o=>(o.ONLY_CACHE="ONLY_CACHE",o.CACHE_FIRST="CACHE_FIRST",o.PARALLEL="PARALLEL",o.ONLY_RELAY="ONLY_RELAY",o))(NDKSubscriptionCacheUsage||{}),defaultOpts={closeOnEose:!1,cacheUsage:"CACHE_FIRST",groupable:!0,groupableDelay:100,groupableDelayType:"at-most"},NDKSubscription=class extends lib$1.EventEmitter{subId;filters;opts;pool;skipVerification=!1;skipValidation=!1;relayFilters;relaySet;ndk;debug;eoseDebug;eventFirstSeen=new Map;eosesSeen=new Set;eventsPerRelay=new Map;lastEventReceivedAt;internalId;constructor(o,s,r,i,a){if(super(),this.ndk=o,this.pool=r?.pool||o.pool,this.opts={...defaultOpts,...r||{}},this.filters=s instanceof Array?s:[s],this.subId=a||r?.subId,this.internalId=Math.random().toString(36).substring(7),this.relaySet=i,this.debug=o.debug.extend(`subscription[${r?.subId??this.internalId}]`),this.eoseDebug=this.debug.extend("eose"),this.skipVerification=r?.skipVerification||!1,this.skipValidation=r?.skipValidation||!1,this.opts.closeOnEose||this.debug("Creating a permanent subscription",this.opts,JSON.stringify(this.filters)),"ONLY_CACHE"===this.opts.cacheUsage&&!this.opts.closeOnEose)throw new Error("Cannot use cache-only options with a persistent subscription")}get filter(){return this.filters[0]}isGroupable(){return this.opts?.groupable||!1}shouldQueryCache(){return"ONLY_RELAY"!==this.opts?.cacheUsage}shouldQueryRelays(){return"ONLY_CACHE"!==this.opts?.cacheUsage}shouldWaitForCache(){return this.opts.closeOnEose&&!!this.ndk.cacheAdapter?.locking&&"PARALLEL"!==this.opts.cacheUsage}start(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let s;o.shouldQueryCache()&&(s=o.startWithCache(),o.shouldWaitForCache()&&(yield s,queryFullyFilled(o)))?o.emit("eose",o):o.shouldQueryRelays()?o.startWithRelays():o.emit("eose",o)})()}stop(){this.emit("close",this),this.removeAllListeners()}hasAuthorsFilter(){return this.filters.some(o=>o.authors?.length)}startWithCache(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(o.ndk.cacheAdapter?.query){const s=o.ndk.cacheAdapter.query(o);o.ndk.cacheAdapter.locking&&(yield s)}})()}startWithRelays(){if(this.relaySet){this.relayFilters=new Map;for(const o of this.relaySet.relays)this.relayFilters.set(o.url,this.filters)}else this.relayFilters=calculateRelaySetsFromFilters(this.ndk,this.filters);if(this.relayFilters&&0!==this.relayFilters.size)for(const[o,s]of this.relayFilters)this.pool.getRelay(o).subscribe(this,s);else this.debug("No relays to subscribe to",this.ndk.explicitRelayUrls)}eventReceived(o,s,r=!1){if(s&&(o.relay=s),s||(s=o.relay),this.skipValidation||o.isValid){if(!r&&s){let i=this.eventsPerRelay.get(s);if(i||(i=new Set,this.eventsPerRelay.set(s,i)),i.add(o.id),this.eventFirstSeen.has(o.id)){const a=Date.now()-(this.eventFirstSeen.get(o.id)||0);return s.scoreSlowerEvent(a),void this.emit("event:dup",o,s,a,this)}this.ndk.cacheAdapter&&this.ndk.cacheAdapter.setEvent(o,this.filters,s),this.eventFirstSeen.set(o.id,Date.now())}else this.eventFirstSeen.set(o.id,0);o.ndk||(o.ndk=this.ndk),this.emit("event",o,s,this),this.lastEventReceivedAt=Date.now()}else this.debug("Event failed validation",o)}eoseTimeout;eoseReceived(o){this.eosesSeen.add(o),this.eoseDebug(`received from ${o.url}`);let s=this.lastEventReceivedAt?Date.now()-this.lastEventReceivedAt:void 0;const r=this.eosesSeen.size===this.relayFilters?.size;if(queryFullyFilled(this))this.emit("eose"),this.eoseDebug("Query fully filled"),this.opts?.closeOnEose&&this.stop();else if(r)this.emit("eose"),this.eoseDebug("All EOSEs seen"),this.opts?.closeOnEose&&this.stop();else{let i=1e3;const a=this.eosesSeen.size/this.relayFilters.size;if(this.eosesSeen.size>=2&&a>=.5){i*=1-a,this.eoseTimeout&&clearTimeout(this.eoseTimeout);const c=()=>{s=this.lastEventReceivedAt?Date.now()-this.lastEventReceivedAt:void 0,void 0!==s&&s<20?this.eoseTimeout=setTimeout(c,i):(this.emit("eose"),this.opts?.closeOnEose&&this.stop())};this.eoseTimeout=setTimeout(c,i)}}}};function follows(o,s){return _follows.apply(this,arguments)}function _follows(){return _follows=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r=3){if(!this.ndk)throw new Error("NDK not set");const i=Array.from(yield this.ndk.fetchEvents({kinds:[r],authors:[this.pubkey]},o||{groupable:!1}))[0];if(i){const a=new Set;return i.tags.forEach(c=>{if("p"===c[0])try{a.add(c[1]),s&&this.ndk?.outboxTracker?.trackUsers([c[1]])}catch{}}),[...a].reduce((c,y)=>{const w=new NDKUser({pubkey:y});return w.ndk=this.ndk,c.add(w),c},new Set)}return new Set}),_follows.apply(this,arguments)}function profileFromEvent(o){const s={};let r;try{r=JSON.parse(o.content)}catch(i){throw new Error(`Failed to parse profile event: ${i}`)}return Object.keys(r).forEach(i=>{switch(i){case"name":s.name=r.name;break;case"display_name":s.displayName=r.display_name;break;case"image":case"picture":s.image=r.image||r.picture;break;case"banner":s.banner=r.banner;break;case"bio":s.bio=r.bio;break;case"nip05":s.nip05=r.nip05;break;case"lud06":s.lud06=r.lud06;break;case"lud16":s.lud16=r.lud16;break;case"about":s.about=r.about;break;case"zapService":s.zapService=r.zapService;break;case"website":s.website=r.website;break;default:s[i]=r[i]}}),s}function serializeProfile(o){const s={};for(const[r,i]of Object.entries(o))switch(r){case"username":case"name":s.name=i;break;case"displayName":s.display_name=i;break;case"image":case"picture":s.picture=i;break;case"bio":case"about":s.about=i;break;default:s[r]=i}return JSON.stringify(s)}var NDKList=class t2 extends NDKEvent{_encryptedTags;encryptedTagsLength;constructor(s,r){super(s,r),this.kind??=30001}static from(s){return new t2(s.ndk,s.rawEvent())}get title(){const s=this.tagValue("title")||this.tagValue("name");return 3!==this.kind||s?1e4!==this.kind||s?10001!==this.kind||s?10002!==this.kind||s?10003!==this.kind||s?10004!==this.kind||s?10005!==this.kind||s?10006!==this.kind||s?10007!==this.kind||s?10015!==this.kind||s?10030!==this.kind||s?s??this.tagValue("d"):"Emojis":"Interests":"Search Relays":"Blocked Relays":"Public Chats":"Communities":"Bookmarks":"Relay Metadata":"Pinned Notes":"Mute":"Contacts"}set title(s){if(this.removeTag("title"),this.removeTag("name"),!s)throw new Error("Title cannot be empty");this.tags.push(["title",s])}get name(){const s=this.tagValue("name");return 3!==this.kind||s?1e4!==this.kind||s?10001!==this.kind||s?10002!==this.kind||s?10003!==this.kind||s?10004!==this.kind||s?10005!==this.kind||s?10006!==this.kind||s?10007!==this.kind||s?10015!==this.kind||s?10030!==this.kind||s?s??this.tagValue("d"):"Emojis":"Interests":"Search Relays":"Blocked Relays":"Public Chats":"Communities":"Bookmarks":"Relay Metadata":"Pinned Notes":"Mute":"Contacts"}set name(s){if(this.removeTag("name"),!s)throw new Error("Name cannot be empty");this.tags.push(["title",s])}get description(){return this.tagValue("description")}set description(s){s?this.tags.push(["description",s]):this.removeTag("description")}isEncryptedTagsCacheValid(){return!(!this._encryptedTags||this.encryptedTagsLength!==this.content.length)}encryptedTags(s=!0){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s&&r.isEncryptedTagsCacheValid())return r._encryptedTags;if(!r.ndk)throw new Error("NDK instance not set");if(!r.ndk.signer)throw new Error("NDK signer not set");const i=yield r.ndk.signer.user();try{if(r.content.length>0)try{const a=yield r.ndk.signer.decrypt(i,r.content),c=JSON.parse(a);return c&&c[0]?(r.encryptedTagsLength=r.content.length,r._encryptedTags=c):(r.encryptedTagsLength=r.content.length,r._encryptedTags=[])}catch{console.log(`error decrypting ${r.content}`)}}catch{}return[]})()}validateTag(s){return!0}get items(){return this.tags.filter(s=>!["d","L","l","title","name","description","summary","image","thumb","alt","expiration","subject"].includes(s[0]))}addItem(s,r=void 0,i=!1){var a=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!a.ndk)throw new Error("NDK instance not set");if(!a.ndk.signer)throw new Error("NDK signer not set");let c;if(s instanceof NDKEvent)c=s.referenceTags();else if(s instanceof NDKUser)c=s.referenceTags();else if(s instanceof NDKRelay)c=s.referenceTags();else{if(!Array.isArray(s))throw new Error("Invalid object type");c=[s]}if(r&&c[0].push(r),i){const y=yield a.ndk.signer.user(),w=yield a.encryptedTags();w.push(...c),a._encryptedTags=w,a.encryptedTagsLength=a.content.length,a.content=JSON.stringify(w),yield a.encrypt(y)}else a.tags.push(...c);a.created_at=Math.floor(Date.now()/1e3),a.emit("change")})()}removeItem(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.ndk)throw new Error("NDK instance not set");if(!i.ndk.signer)throw new Error("NDK signer not set");if(r){const a=yield i.ndk.signer.user(),c=yield i.encryptedTags();c.splice(s,1),i._encryptedTags=c,i.encryptedTagsLength=i.content.length,i.content=JSON.stringify(c),yield i.encrypt(a)}else i.tags.splice(s,1);return i.created_at=Math.floor(Date.now()/1e3),i.emit("change"),i})()}},lists_default=NDKList;function pin(o,s,r){return _pin.apply(this,arguments)}function _pin(){return _pin=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,r){if(!this.ndk)throw new Error("No NDK instance found");if(this.ndk.assertSigner(),!s){const i=yield this.ndk.fetchEvents({kinds:[10001],authors:[this.pubkey]},{cacheUsage:"ONLY_RELAY"});s=i.size>0?lists_default.from(Array.from(i)[0]):new NDKEvent(this.ndk,{kind:10001})}return s.tag(o),r&&(yield s.publish()),s}),_pin.apply(this,arguments)}var NIP05_REGEX=/^(?:([\w.+-]+)@)?([\w.-]+)$/;function getNip05For(o){return _getNip05For.apply(this,arguments)}function _getNip05For(){return _getNip05For=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=fetch,r={}){const i=o.match(NIP05_REGEX);if(!i)return null;const[a,c="_",y]=i;try{const w=yield s(`https://${y}/.well-known/nostr.json?name=${c}`,r),{names:C,relays:T,nip46:S}=parseNIP05Result(yield w.json()),A=C[c];return A?{pubkey:A,relays:T?.[A],nip46:S?.[A]}:null}catch{return null}}),_getNip05For.apply(this,arguments)}function parseNIP05Result(o){const s={names:{}};for(const[r,i]of Object.entries(o.names))"string"==typeof r&&"string"==typeof i&&(s.names[r]=i);if(o.relays){s.relays={};for(const[r,i]of Object.entries(o.relays))"string"==typeof r&&Array.isArray(i)&&(s.relays[r]=i.filter(a=>"string"==typeof a))}if(o.nip46){s.nip46={};for(const[r,i]of Object.entries(o.relays))"string"==typeof r&&Array.isArray(i)&&(s.nip46[r]=i.filter(a=>"string"==typeof a))}return s}var NDKUser=class fw{ndk;profile;_npub;_pubkey;relayUrls=[];nip46Urls=[];constructor(s){s.npub&&(this._npub=s.npub),s.hexpubkey&&(this._pubkey=s.hexpubkey),s.pubkey&&(this._pubkey=s.pubkey),s.relayUrls&&(this.relayUrls=s.relayUrls),s.nip46Urls&&(this.nip46Urls=s.nip46Urls)}get npub(){if(!this._npub){if(!this._pubkey)throw new Error("hexpubkey not set");this._npub=nip19_exports.npubEncode(this.pubkey)}return this._npub}set npub(s){this._npub=s}get hexpubkey(){return this.pubkey}set hexpubkey(s){this._pubkey=s}get pubkey(){if(!this._pubkey){if(!this._npub)throw new Error("npub not set");this._pubkey=nip19_exports.decode(this.npub).data}return this._pubkey}set pubkey(s){this._pubkey=s}static fromNip05(s,r,i=!1){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(r?.cacheAdapter&&r.cacheAdapter.loadNip05){const y=yield r.cacheAdapter.loadNip05(s);if(y){const w=new fw({pubkey:y.pubkey,relayUrls:y.relays,nip46Urls:y.nip46});return w.ndk=r,w}}let a={};i&&(a.cache="no-cache");const c=yield getNip05For(s,r?.httpFetch,a);if(c&&r?.cacheAdapter&&r.cacheAdapter.saveNip05&&r?.cacheAdapter.saveNip05(s,c),c){const y=new fw({pubkey:c.pubkey,relayUrls:c.relays,nip46Urls:c.nip46});return y.ndk=r,y}})()}fetchProfile(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.ndk)throw new Error("NDK not set");r.profile||(r.profile={});let i=null;if(r.ndk.cacheAdapter&&r.ndk.cacheAdapter.fetchProfile&&"ONLY_RELAY"!==s?.cacheUsage){const c=yield r.ndk.cacheAdapter.fetchProfile(r.pubkey);if(c)return r.profile=c,c}!s&&r.ndk.cacheAdapter&&r.ndk.cacheAdapter.locking&&(i=yield r.ndk.fetchEvents({kinds:[0],authors:[r.pubkey]},{cacheUsage:"ONLY_CACHE",closeOnEose:!0,groupable:!1}),s={cacheUsage:"ONLY_RELAY",closeOnEose:!0,groupable:!0,groupableDelay:250}),i&&0!==i.size||(i=yield r.ndk.fetchEvents({kinds:[0],authors:[r.pubkey]},s));const a=Array.from(i).sort((c,y)=>c.created_at-y.created_at);return 0===a.length?null:(r.profile=profileFromEvent(a[0]),r.profile&&r.ndk.cacheAdapter&&r.ndk.cacheAdapter.saveProfile&&r.ndk.cacheAdapter.saveProfile(r.pubkey,r.profile),r.profile)})()}follows=follows.bind(this);pin=pin.bind(this);relayList(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("NDK not set");const r=s.ndk.outboxPool||s.ndk.pool,i=new Set;for(const y of r.relays.values())i.add(y);const a=new NDKRelaySet(i,s.ndk),c=yield s.ndk.fetchEvent({kinds:[10002],authors:[s.pubkey]},{closeOnEose:!0,pool:r,groupable:!0,subId:`relay-list-${s.pubkey.slice(0,6)}`},a);return c?NDKRelayList.from(c):yield s.relayListFromKind3()})()}relayListFromKind3(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("NDK not set");const r=yield s.ndk.fetchEvent({kinds:[3],authors:[s.pubkey]});if(r)try{const i=JSON.parse(r.content),a=new NDKRelayList(s.ndk),c=new Set,y=new Set;for(const[w,C]of Object.entries(i))if(C){const T=C;T.write&&y.add(w),T.read&&c.add(w)}else c.add(w),y.add(w);return a.readRelayUrls=Array.from(c),a.writeRelayUrls=Array.from(y),a}catch{}})()}tagReference(){return["p",this.pubkey]}referenceTags(s){const r=[["p",this.pubkey]];return s&&r[0].push("",s),r}publish(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("No NDK instance found");if(!s.profile)throw new Error("No profile available");s.ndk.assertSigner(),yield new NDKEvent(s.ndk,{kind:0,content:serializeProfile(s.profile)}).publish()})()}follow(s,r,i=3){var a=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!a.ndk)throw new Error("No NDK instance found");if(a.ndk.assertSigner(),r||(r=yield a.follows(void 0,void 0,i)),r.has(s))return!1;r.add(s);const c=new NDKEvent(a.ndk,{kind:i});for(const y of r)c.tag(y);return yield c.publish(),!0})()}validateNip05(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.ndk)throw new Error("No NDK instance found");const i=yield getNip05For(s);return null===i?null:i.pubkey===r.pubkey})()}zap(s,r,i,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!c.ndk)throw new Error("No NDK instance found");a||c.ndk.assertSigner();const y=new Zap({ndk:c.ndk,zappedUser:c}),w=Array.from(c.ndk.pool.relays.keys());return yield y.createZapRequest(s,r,i,w,a)})()}},NDKPrivateKeySigner=class n2{_user;privateKey;constructor(s){s&&(this.privateKey=s,this._user=new NDKUser({hexpubkey:getPublicKey(this.privateKey)}))}static generate(){const s=generatePrivateKey();return new n2(s)}blockUntilReady(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s._user)throw new Error("NDKUser not initialized");return s._user})()}user(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield s.blockUntilReady(),s._user})()}sign(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.privateKey)throw Error("Attempted to sign without a private key");return getSignature(s,r.privateKey)})()}encrypt(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.privateKey)throw Error("Attempted to encrypt without a private key");const a=s.hexpubkey;return yield nip04_exports.encrypt(i.privateKey,a,r)})()}decrypt(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.privateKey)throw Error("Attempted to decrypt without a private key");const a=s.hexpubkey;return yield nip04_exports.decrypt(i.privateKey,a,r)})()}},NDKNostrRpc=class extends lib$1.EventEmitter{ndk;signer;debug;constructor(o,s,r){super(),this.ndk=o,this.signer=s,this.debug=r.extend("rpc")}subscribe(o){var s=this;const r=this.ndk.subscribe(o,{closeOnEose:!1,groupable:!1});return r.on("event",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){try{const c=yield s.parseEvent(a);s.emit(c.method?"request":`response-${c.id}`,c)}catch(c){s.debug("error parsing event",c,a.rawEvent())}});return function(a){return i.apply(this,arguments)}}()),new Promise((i,a)=>{r.on("eose",()=>i(r))})}parseEvent(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const r=s.ndk.getUser({hexpubkey:o.pubkey});r.ndk=s.ndk;const i=yield s.signer.decrypt(r,o.content),a=JSON.parse(i),{id:c,method:y,params:w,result:C,error:T}=a;return y?{id:c,pubkey:o.pubkey,method:y,params:w,event:o}:{id:c,result:C,error:T,event:o}})()}sendResponse(o,s,r,i=24133,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y={id:o,result:r};a&&(y.error=a);const w=yield c.signer.user(),C=c.ndk.getUser({hexpubkey:s}),T=new NDKEvent(c.ndk,{kind:i,content:JSON.stringify(y),tags:[["p",s]],pubkey:w.hexpubkey});T.content=yield c.signer.encrypt(C,T.content),yield T.sign(c.signer),yield T.publish()})()}sendRequest(o,s,r=[],i=24133,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=Math.random().toString(36).substring(7),w=yield c.signer.user(),C=c.ndk.getUser({hexpubkey:o}),T={id:y,method:s,params:r},S=new Promise(I=>{const N=G=>{"auth_url"===G.result?(c.once(`response-${y}`,N),c.emit("authUrl",G.error)):a&&a(G)};c.once(`response-${y}`,N)}),A=new NDKEvent(c.ndk,{kind:i,content:JSON.stringify(T),tags:[["p",o]],pubkey:w.pubkey});return A.content=yield c.signer.encrypt(C,A.content),yield A.sign(c.signer),c.debug(`sending ${s} request to`,o),yield A.publish(),S})()}},NDKNip46Signer=class extends lib$1.EventEmitter{ndk;remoteUser;remotePubkey;token;localSigner;nip05;rpc;debug;relayUrls=[];constructor(o,s,r){let i,a;if(super(),s.includes("#")){const c=s.split("#");i=new NDKUser({npub:c[0]}).pubkey,a=c[1]}else s.startsWith("npub")?i=new NDKUser({npub:s}).pubkey:s.match(/\./)?this.nip05=s:i=s;this.ndk=o,i&&(this.remotePubkey=i),this.token=a,this.debug=o.debug.extend("nip46:signer"),this.remoteUser=new NDKUser({pubkey:i}),this.localSigner=r||NDKPrivateKeySigner.generate(),this.rpc=new NDKNostrRpc(o,this.localSigner,this.debug),this.rpc.on("authUrl",(...c)=>{this.emit("authUrl",...c)}),this.localSigner.user().then(c=>{this.rpc.subscribe({kinds:[24133,24134],"#p":[c.pubkey]})})}user(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return o.remoteUser})()}blockUntilReady(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=yield o.localSigner.user(),r=o.ndk.getUser({pubkey:o.remotePubkey});if(o.nip05&&!o.remotePubkey&&NDKUser.fromNip05(o.nip05).then(i=>{i&&(o.remoteUser=i,o.remotePubkey=i.pubkey,o.relayUrls=i.nip46Urls)}),!o.remotePubkey)throw new Error("Remote pubkey not set");return new Promise((i,a)=>{setTimeout(()=>{const c=[s.pubkey];o.token&&c.push(o.token),o.rpc.sendRequest(o.remotePubkey,"connect",c,24133,y=>{"ack"===y.result?i(r):a(y.error)})},100)})})()}encrypt(o,s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.debug("asking for encryption"),new Promise((i,a)=>{r.rpc.sendRequest(r.remotePubkey,"nip04_encrypt",[o.pubkey,s],24133,c=>{c.error?a(c.error):i(c.result)})})})()}decrypt(o,s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.debug("asking for decryption"),new Promise((i,a)=>{r.rpc.sendRequest(r.remotePubkey,"nip04_decrypt",[o.pubkey,s],24133,c=>{if(c.error)a(c.error);else{const y=JSON.parse(c.result);i(y[0])}})})})()}sign(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.debug("asking for a signature"),new Promise((r,i)=>{s.rpc.sendRequest(s.remotePubkey,"sign_event",[JSON.stringify(o)],24133,a=>{if(s.debug("got a response",a),a.error)i(a.error);else{const c=JSON.parse(a.result);r(c.sig)}})})})()}createAccount(o,s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.debug("asking to create an account");const a=[];return o&&a.push(o),s&&a.push(s),r&&a.push(r),new Promise((c,y)=>{i.rpc.sendRequest(i.remotePubkey,"create_account",a,24134,w=>{i.debug("got a response",w),w.error?y(w.error):c(w.result)})})})()}};function dedup(o,s){return o.created_at>s.created_at?o:s}var OutboxItem=class{type;relayUrlScores;readRelays;writeRelays;constructor(o){this.type=o,this.relayUrlScores=new Map,this.readRelays=new Set,this.writeRelays=new Set}},OutboxTracker=class extends lib$1.EventEmitter{data;ndk;debug;constructor(o){super(),this.ndk=o,this.debug=o.debug.extend("outbox-tracker"),this.data=new dist.LRUCache({maxSize:1e5,entryExpirationTimeInMS:5e3})}trackUsers(o){for(const s of o){const r=getKeyFromItem(s);if(this.data.has(r))continue;const i=this.track(s,"user"),a=s instanceof NDKUser?s:new NDKUser({hexpubkey:s});a.ndk=this.ndk,a.relayList().then(c=>{if(c){i.readRelays=new Set(c.readRelayUrls),i.writeRelays=new Set(c.writeRelayUrls);for(const y of i.readRelays)this.ndk.pool.blacklistRelayUrls.has(y)&&(this.debug(`removing blacklisted relay ${y} from read relays`),i.readRelays.delete(y));for(const y of i.writeRelays)this.ndk.pool.blacklistRelayUrls.has(y)&&(this.debug(`removing blacklisted relay ${y} from write relays`),i.writeRelays.delete(y));this.data.set(r,i),this.debug(`Adding ${i.readRelays.size} read relays and ${i.writeRelays.size} write relays for ${a.hexpubkey}`)}})}}track(o,s){const r=getKeyFromItem(o);s??=getTypeFromItem(o);let i=this.data.get(r);return i||(i=new OutboxItem(s)),this.data.set(r,i),i}};function getKeyFromItem(o){return o instanceof NDKUser?o.hexpubkey:o}function getTypeFromItem(o){return o instanceof NDKUser?"user":"kind"}var NDKPool=class extends lib$1.EventEmitter{relays=new Map;blacklistRelayUrls;debug;temporaryRelayTimers=new Map;flappingRelays=new Set;backoffTimes=new Map;constructor(o=[],s=[],r,i){super(),this.debug=i??r.debug.extend("pool");for(const a of o){const c=new NDKRelay(a);this.addRelay(c,!1)}this.blacklistRelayUrls=new Set(s)}useTemporaryRelay(o,s=6e5){const r=this.relays.has(o.url);r||this.addRelay(o);const i=this.temporaryRelayTimers.get(o.url);if(i&&clearTimeout(i),!r||i){const a=setTimeout(()=>{this.removeRelay(o.url)},s);this.temporaryRelayTimers.set(o.url,a)}}addRelay(o,s=!0){var r=this;const i=o.url;this.blacklistRelayUrls?.has(i)?this.debug(`Relay ${i} is blacklisted`):(o.on("notice",function(){var a=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c,y){return r.emit("notice",c,y)});return function(c,y){return a.apply(this,arguments)}}()),o.on("connect",()=>this.handleRelayConnect(i)),o.on("ready",()=>this.handleRelayReady(o)),o.on("disconnect",(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.emit("relay:disconnect",o)})),o.on("flapping",()=>this.handleFlapping(o)),o.on("auth",function(){var a=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c){return r.emit("relay:auth",o,c)});return function(c){return a.apply(this,arguments)}}()),this.relays.set(i,o),s&&o.connect().catch(a=>{this.debug(`Failed to connect to relay ${i}`,a)}))}removeRelay(o){const s=this.relays.get(o);if(s)return s.disconnect(),this.relays.delete(o),this.emit("relay:disconnect",s),!0;const r=this.temporaryRelayTimers.get(o);return r&&(clearTimeout(r),this.temporaryRelayTimers.delete(o)),!1}getRelay(o,s=!0){let r=this.relays.get(o);return r||(r=new NDKRelay(o),this.addRelay(r,s)),r}handleRelayConnect(o){this.debug(`Relay ${o} connected`),this.emit("relay:connect",this.relays.get(o)),this.stats().connected===this.relays.size&&this.emit("connect")}handleRelayReady(o){this.debug(`Relay ${o.url} ready`),this.emit("relay:ready",o)}connect(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const r=[];s.debug(`Connecting to ${s.relays.size} relays${o?`, timeout ${o}...`:""}`);for(const i of s.relays.values())if(o){const a=new Promise((c,y)=>{setTimeout(()=>y(`Timed out after ${o}ms`),o)});r.push(Promise.race([i.connect(),a]).catch(c=>{s.debug(`Failed to connect to relay ${i.url}: ${c??"No reason specified"}`)}))}else r.push(i.connect());o&&setTimeout(()=>{const i=s.stats().connected===s.relays.size,a=s.stats().connected>0;!i&&a&&s.emit("connect")},o),yield Promise.all(r)})()}checkOnFlappingRelays(){if(this.flappingRelays.size/this.relays.size>=.8)for(const o of this.flappingRelays)this.backoffTimes.set(o,0)}handleFlapping(o){this.debug(`Relay ${o.url} is flapping`);let s=this.backoffTimes.get(o.url)||5e3;s*=2,this.backoffTimes.set(o.url,s),this.debug(`Backoff time for ${o.url} is ${s}ms`),setTimeout(()=>{this.debug(`Attempting to reconnect to ${o.url}`),o.connect(),this.checkOnFlappingRelays()},s),o.disconnect(),this.emit("flapping",o)}size(){return this.relays.size}stats(){const o={total:0,connected:0,disconnected:0,connecting:0};for(const s of this.relays.values())o.total++,1===s.status?o.connected++:3===s.status?o.disconnected++:0===s.status&&o.connecting++;return o}connectedRelays(){return Array.from(this.relays.values()).filter(o=>1===o.status)}urls(){return Array.from(this.relays.keys())}};function correctRelaySet(o,s){const r=s.connectedRelays();if(!Array.from(o.relays).some(i=>r.map(a=>a.url).includes(i.url)))for(const i of r)o.addRelay(i);if(0===r.length)for(const i of s.relays.values())o.addRelay(i);return o}var SPEC_PATH="/.well-known/nostr/nip96.json",Nip96=class{ndk;spec;url;nip98Required=!1;constructor(o,s){this.url=`https://${o}${SPEC_PATH}`,this.ndk=s}prepareUpload(o,s="POST"){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(r.validateHttpFetch(),r.spec||(yield r.fetchSpec()),!r.spec)throw new Error("Failed to fetch NIP96 spec");let i={};return r.nip98Required&&(i={Authorization:yield r.generateNip98Header(r.spec.api_url,s,o)}),{url:r.spec.api_url,headers:i}})()}xhrUpload(o,s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i="POST",{url:a,headers:c}=yield r.prepareUpload(s,i);o.open(i,a,!0),c.Authorization&&o.setRequestHeader("Authorization",c.Authorization);const y=new FormData;return y.append("file",s),new Promise((w,C)=>{o.onload=function(){o.status>=200&&o.status<300?w(JSON.parse(o.responseText)):C(new Error(o.statusText))},o.onerror=function(){C(new Error("Network Error"))},o.send(y)})})()}upload(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const r="POST",{url:i,headers:a}=yield s.prepareUpload(o,r),c=new FormData;c.append("file",o);const y=yield s.ndk.httpFetch(s.spec.api_url,{method:r,headers:a,body:c});if(200!==y.status)throw new Error(`Failed to upload file to ${i}`);const w=yield y.json();if("success"!==w.status)throw new Error(w.message);return w})()}validateHttpFetch(){if(!this.ndk)throw new Error("NDK is required to fetch NIP96 spec");if(!this.ndk.httpFetch)throw new Error("NDK must have an httpFetch method to fetch NIP96 spec")}fetchSpec(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){o.validateHttpFetch();const s=yield o.ndk.httpFetch(o.url);if(200!==s.status)throw new Error(`Failed to fetch NIP96 spec from ${o.url}`);const r=yield s.json();if(!r)throw new Error(`Failed to parse NIP96 spec from ${o.url}`);o.spec=r,o.nip98Required=o.spec.plans.free.is_nip98_required})()}generateNip98Header(o,s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new NDKEvent(i.ndk,{kind:27235,tags:[["u",o],["method",s]]});if(["POST","PUT","PATCH"].includes(s)){const c=yield i.calculateSha256(r);a.tags.push(["payload",c])}return yield a.sign(),`Nostr ${btoa(JSON.stringify(a.rawEvent()))}`})()}calculateSha256(o){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=yield o.arrayBuffer(),r=yield crypto.subtle.digest("SHA-256",s);return Array.from(new Uint8Array(r)).map(i=>i.toString(16).padStart(2,"0")).join("")})()}},DEFAULT_OUTBOX_RELAYS=["wss://purplepag.es","wss://relay.snort.social"],DEFAULT_BLACKLISTED_RELAYS=["wss://brb.io"],NDK=class extends lib$1.EventEmitter{explicitRelayUrls;pool;outboxPool;_signer;_activeUser;cacheAdapter;debug;devWriteRelaySet;outboxTracker;mutedIds;clientName;clientNip89;relayAuthDefaultPolicy;httpFetch;autoConnectUserRelays=!0;autoFetchUserMutelist=!0;constructor(o={}){var s;super(),s=this,this.debug=o.debug||debug3("ndk"),this.explicitRelayUrls=o.explicitRelayUrls||[],this.pool=new NDKPool(o.explicitRelayUrls||[],o.blacklistRelayUrls,this),this.debug(`Starting with explicit relays: ${JSON.stringify(this.explicitRelayUrls)}`),this.pool.on("relay:auth",function(){var r=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(i,a){s.relayAuthDefaultPolicy&&(yield s.relayAuthDefaultPolicy(i,a))});return function(i,a){return r.apply(this,arguments)}}()),this.autoConnectUserRelays=o.autoConnectUserRelays??!0,this.autoFetchUserMutelist=o.autoFetchUserMutelist??!0,this.clientName=o.clientName,this.clientNip89=o.clientNip89,this.relayAuthDefaultPolicy=o.relayAuthDefaultPolicy,o.enableOutboxModel&&(this.outboxPool=new NDKPool(o.outboxRelayUrls||DEFAULT_OUTBOX_RELAYS,o.blacklistRelayUrls||DEFAULT_BLACKLISTED_RELAYS,this,this.debug.extend("outbox-pool")),this.outboxTracker=new OutboxTracker(this)),this.signer=o.signer,this.cacheAdapter=o.cacheAdapter,this.mutedIds=o.mutedIds||new Map,o.devWriteRelayUrls&&(this.devWriteRelaySet=NDKRelaySet.fromRelayUrls(o.devWriteRelayUrls,this));try{this.httpFetch=fetch}catch{}}addExplicitRelay(o,s,r=!0){let i;return i="string"==typeof o?new NDKRelay(o,s):o,this.pool.addRelay(i,r),this.explicitRelayUrls.push(i.url),i}toJSON(){return{relayCount:this.pool.relays.size}.toString()}get activeUser(){return this._activeUser}set activeUser(o){var s=this;const r=this._activeUser?.pubkey!==o?.pubkey;if(this._activeUser=o,o&&r){const i=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){const S=yield T.relayList();if(S){s.debug("Connecting to user relays",{npub:T.npub,relays:S.relays});for(const A of S.relays){let I=s.pool.relays.get(A);I||(I=new NDKRelay(A),s.pool.addRelay(I))}}else s.debug("No relay list found for user",{npub:T.npub})});return function(S){return C.apply(this,arguments)}}(),a=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){const S=yield s.fetchEvents([{kinds:[1e4],authors:[T.pubkey]},{kinds:[3e4],authors:[T.pubkey],"#d":["mute"],limit:1}]);if(S)for(const A of S){const I=lists_default.from(A);for(const N of I.items)s.mutedIds.set(N[1],N[0])}else s.debug("No mute list found for user",{npub:T.npub})});return function(S){return C.apply(this,arguments)}}(),c=[];this.autoConnectUserRelays&&c.push(i),this.autoFetchUserMutelist&&c.push(a);const y=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){for(const S of c)yield S(T)});return function(S){return C.apply(this,arguments)}}(),w=this.outboxPool||this.pool;w.connectedRelays.length>0?y(o):(this.debug("Waiting for connection to main relays"),w.once("relay:ready",C=>{this.debug("New relay ready",C?.url),y(o)}))}else o||(this.mutedIds=new Map)}get signer(){return this._signer}set signer(o){this._signer=o,this.emit("signer:ready",o),o?.user().then(s=>{s.ndk=this,this.activeUser=s})}connect(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s._signer&&s.autoConnectUserRelays&&(s.debug("Attempting to connect to user relays specified by signer"),s._signer.relays)&&(yield s._signer.relays()).forEach(i=>s.pool.addRelay(i));const r=[s.pool.connect(o)];return s.outboxPool&&r.push(s.outboxPool.connect(o)),s.debug("Connecting to relays",{timeoutMs:o}),Promise.allSettled(r).then(()=>{})})()}getUser(o){const s=new NDKUser(o);return s.ndk=this,s}getUserFromNip05(o,s=!1){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return NDKUser.fromNip05(o,r,s)})()}subscribe(o,s,r,i=!0){const a=new NDKSubscription(this,o,s,r);if(r)for(const c of r.relays)this.pool.useTemporaryRelay(c);if(this.outboxPool&&a.hasAuthorsFilter()){const c=a.filters.filter(y=>y.authors&&y.authors?.length>0).map(y=>y.authors).flat();this.outboxTracker?.trackUsers(c)}return i&&a.start(),a}publish(o,s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.debug("Deprecated: Use `event.publish()` instead"),o.publish(s,r)})()}fetchEvent(o,s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let a,c;if(r instanceof NDKRelay?c=new NDKRelaySet(new Set([r]),i):r instanceof NDKRelaySet&&(c=r),!r&&"string"==typeof o&&!isNip33AValue(o)){const y=relaysFromBech32(o);y.length>0&&(c=new NDKRelaySet(new Set(y),i),c=correctRelaySet(c,i.pool))}if(a="string"==typeof o?filterFromId(o):o,!a)throw new Error(`Invalid filter: ${JSON.stringify(o)}`);return new Promise(y=>{const w=i.subscribe(a,{...s||{},closeOnEose:!0},c,!1);w.on("event",C=>{C.ndk=i,y(C)}),w.on("eose",()=>{y(null)}),w.start()})})()}fetchEvents(o,s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise(a=>{const c=new Map,y=i.subscribe(o,{...s||{},closeOnEose:!0},r,!1),w=C=>{const T=C.deduplicationKey(),S=c.get(T);S&&(C=dedup(S,C)),C.ndk=i,c.set(T,C)};y.on("event",w),y.on("event:dup",w),y.on("eose",()=>{a(new Set(c.values()))}),y.start()})})()}assertSigner(){if(!this.signer)throw this.emit("signerRequired"),new Error("Signer required")}getNip96(o){return new Nip96(o,this)}};const LOCAL_STORE_KEY="__nostrlogin_nip46",LOGGED_IN_ACCOUNTS="__nostrlogin_accounts",RECENT_ACCOUNTS="__nostrlogin_recent",OUTBOX_RELAYS$1=["wss://purplepag.es","wss://relay.nos.social","wss://user.kindpag.es","wss://relay.damus.io","wss://nos.lol"],DEFAULT_SIGNUP_RELAYS=["wss://relay.damus.io/","wss://nos.lol/","wss://relay.primal.net/"],localStorageSetItem=(o,s)=>{localStorage.setItem(o,s)},localStorageGetItem=o=>{const s=window.localStorage.getItem(o);if(s)try{return JSON.parse(s)}catch{}return null},localStorageRemoveItem=o=>{localStorage.removeItem(o)},fetchProfile=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r){const i=new NDKUser({pubkey:s.pubkey});return i.ndk=r,yield i.fetchProfile()});return function(r,i){return o.apply(this,arguments)}}(),createProfile=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r,i,a,c){const y={name:s.name},w=new NDKEvent(r,{kind:0,created_at:Math.floor(Date.now()/1e3),pubkey:s.pubkey,content:JSON.stringify(y),tags:[]});window.location.hostname&&w.tags.push(["client",window.location.hostname]);const C=new NDKEvent(r,{kind:10002,created_at:Math.floor(Date.now()/1e3),pubkey:s.pubkey,content:"",tags:[]}),T=(a||"").split(",").map(A=>A.trim()).filter(A=>A.startsWith("ws"));T.length||T.push(...DEFAULT_SIGNUP_RELAYS);for(const A of T)C.tags.push(["r",A]);yield w.sign(i),console.log("signed profile",w),yield C.sign(i),console.log("signed relays",C);const S=c&&c.length?c:OUTBOX_RELAYS$1;yield w.publish(NDKRelaySet.fromRelayUrls(S,r)),console.log("published profile",w),yield C.publish(NDKRelaySet.fromRelayUrls(S,r)),console.log("published relays",C)});return function(r,i,a,c,y){return o.apply(this,arguments)}}(),bunkerUrlToInfo=(o,s="")=>{const r=new URL(o);return{pubkey:r.hostname||r.pathname.split("//")[1],sk:s||generatePrivateKey(),relays:r.searchParams.getAll("relay"),token:r.searchParams.get("secret")||"",authMethod:"connect"}},isBunkerUrl=o=>o.startsWith("bunker://"),getBunkerUrl=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,r){if(!s)return"";if(isBunkerUrl(s))return s;if(s.includes("@")){const[i,a]=s.toLocaleLowerCase().split("@"),c=r.devOverrideBunkerOrigin||`https://${a}`,y=`${c}/.well-known/nostr.json?name=_`,w=`${c}/.well-known/nostr.json?name=${i}`,C=yield fetch(y),T=yield C.json(),A=T.nip46[T.names._],I=yield fetch(w),N=(yield I.json()).names[i];if(!A.length)throw new Error("Bunker relay not provided");return`bunker://${N}?relay=${A[0]}`}throw new Error("Invalid user name or bunker url")});return function(r,i){return o.apply(this,arguments)}}(),checkNip05=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s){let r=!1,i="",a="";return yield(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s||!s.includes("@"))return;const[c,y]=s.toLocaleLowerCase().split("@");if(!c)return;if(!new RegExp(/^[\w-.]+@([\w-]+\.)+[\w-]{2,8}$/g).test(s))return void(i="Invalid name");if(!y)return void(i="Select service");const w=`https://${y}/.well-known/nostr.json?name=${c.toLowerCase()}`;try{const C=yield fetch(w),T=yield C.json();if(T.names[c])return void(a=T.names[c])}catch{}r=!0})(),{available:r,taken:""!=a,error:i,pubkey:a}});return function(r){return o.apply(this,arguments)}}(),upgradeInfo=o=>{"typeAuthMethod"in o&&delete o.typeAuthMethod,o.authMethod||(o.authMethod="extension"in o&&o.extension?"extension":"readOnly"in o&&o.readOnly?"readOnly":"connect"),o.nip05&&isBunkerUrl(o.nip05)&&(o.bunkerUrl=o.nip05,o.nip05="")},localStorageAddAccount=o=>{localStorageSetItem(LOCAL_STORE_KEY,JSON.stringify(o));const s=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[],r=localStorageGetItem(RECENT_ACCOUNTS)||[];s.forEach(y=>upgradeInfo(y)),r.forEach(y=>upgradeInfo(y));const i=s,a=s.findIndex(y=>y.pubkey===o.pubkey&&y.authMethod===o.authMethod);-1!==a?i[a]=o:i.push(o);const c=r.filter(y=>y.pubkey!==o.pubkey||y.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(c)),localStorageSetItem(LOGGED_IN_ACCOUNTS,JSON.stringify(i))},localStorageRemoveCurrentAccount=()=>{const o=localStorageGetItem(LOCAL_STORE_KEY);if(!o)return;upgradeInfo(o);const s={...o};delete s.sk,delete s.otpData;const r=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[],i=localStorageGetItem(RECENT_ACCOUNTS)||[];r.forEach(y=>upgradeInfo(y)),i.forEach(y=>upgradeInfo(y));const a=i;if("connect"===s.authMethod&&s.bunkerUrl&&s.bunkerUrl.includes("secret="))console.log("nostr login bunker conn with a secret not saved to recent");else if("local"===s.authMethod)console.log("nostr login temporary local keys not save to recent");else{const y=i.findIndex(w=>w.pubkey===s.pubkey&&w.authMethod===s.authMethod);-1!==y?a[y]=s:a.push(s)}const c=r.filter(y=>y.pubkey!==o.pubkey||y.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(a)),localStorageSetItem(LOGGED_IN_ACCOUNTS,JSON.stringify(c)),localStorageRemoveItem(LOCAL_STORE_KEY)},localStorageRemoveRecent=o=>{const s=localStorageGetItem(RECENT_ACCOUNTS)||[];s.forEach(i=>upgradeInfo(i));const r=s.filter(i=>i.pubkey!==o.pubkey||i.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(r))},localStorageGetRecents=()=>{const o=localStorageGetItem(RECENT_ACCOUNTS)||[];return o.forEach(s=>upgradeInfo(s)),o},localStorageGetAccounts=()=>{const o=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[];return o.forEach(s=>upgradeInfo(s)),o},localStorageGetCurrent=()=>{const o=localStorageGetItem(LOCAL_STORE_KEY);return o&&upgradeInfo(o),o},getDarkMode=o=>{const s=localStorage.getItem("nl-dark-mode");return s?!!JSON.parse(s):void 0!==o.darkMode?o.darkMode:!(!window.matchMedia||!window.matchMedia("(prefers-color-scheme: dark)").matches)},getIcon=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return document.location.origin+"/favicon.ico"});return function(){return o.apply(this,arguments)}}();class NostrRpc extends NDKNostrRpc{pubkey;_ndk;_signer;requests=new Set;sub;_useNip44=!1;constructor(s,r,i){super(s,i,s.debug.extend("nip46:signer:rpc")),this._ndk=s,this._signer=i,this.pubkey=r}subscribe(s){var r=()=>super.subscribe,i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.sub=yield r().call(i,s),i.sub})()}stop(){this.sub&&(this.sub.stop(),this.sub=void 0)}setUseNip44(s){this._useNip44=s}isNip04(s){const r=s.length;return!(r<28)&&"?"===s[r-28]&&"i"===s[r-27]&&"v"===s[r-26]&&"="===s[r-25]}parseEvent(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=r._ndk.getUser({pubkey:s.pubkey});i.ndk=r._ndk;const a=r.isNip04(s.content)?r._signer.decrypt:r._signer.decryptNip44;console.log("client event nip04",r.isNip04(s.content));const c=yield a.call(r._signer,i,s.content),y=JSON.parse(c),{id:w,method:C,params:T,result:S,error:A}=y;return C?{id:w,pubkey:s.pubkey,method:C,params:T,event:s}:{id:w,result:S,error:A,event:s}})()}parseNostrConnectReply(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new NDKEvent(i._ndk,s),c=yield i.parseEvent(a);if(console.log("nostr connect parsedEvent",c),c.method)throw new Error("Bad nostr connect reply");if(c.result===r)return a.pubkey;throw new Error(c.error)})()}listen(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=r.pubkey;console.log("nostr-login listening for conn to",i);const a=yield r.subscribe({kinds:[24133],"#p":[i]});return new Promise((c,y)=>{a.on("event",function(){var w=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(C){try{const T=yield r.parseEvent(C);if(!T.method){const S=T;if("auth_url"===S.result)return;"ack"===S.result||S.result===s?c(C.pubkey):y(S.error)}}catch(T){console.log("error parsing event",T,C.rawEvent())}r.stop()});return function(C){return w.apply(this,arguments)}}())})})()}connect(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise((a,c)=>{i.sendRequest(s.pubkey,"connect",[s.pubkey,s.token||"",r||""],24133,w=>{"ack"===w.result?a():c(w.error)})})})()}getId(){return Math.random().toString(36).substring(7)}sendRequest(s,r,i=[],a=24133,c){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w=y.getId();y.setResponseHandler(w,c),yield(yield y.createRequestEvent(w,s,r,i,a)).publish()})()}setResponseHandler(s,r){let i=!1;const a=Date.now();return new Promise(()=>{const c=y=>{"auth_url"===y.result?(this.once(`response-${s}`,c),i||(i=!0,this.emit("authUrl",y.error))):r&&this.requests.has(s)&&(this.requests.delete(s),console.log("nostr-login iframe processed request in",Date.now()-a,"ms"),r(y))};this.once(`response-${s}`,c)})}createRequestEvent(s,r,i,a=[],c=24133){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){y.requests.add(s);const w=yield y._signer.user(),C=y._ndk.getUser({pubkey:r}),S=new NDKEvent(y._ndk,{kind:c,content:JSON.stringify({id:s,method:i,params:a}),tags:[["p",r]],pubkey:w.pubkey}),A=y._useNip44&&"create_account"!==i?y._signer.encryptNip44:y._signer.encrypt;return S.content=yield A.call(y._signer,C,S.content),yield S.sign(y._signer),S})()}}class IframeNostrRpc extends NostrRpc{peerOrigin;iframePort;iframeRequests=new Map;constructor(s,r,i,a){super(s,r,i),this._ndk=s,this.peerOrigin=a}subscribe(s){var r=()=>super.subscribe,i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.peerOrigin?new NDKSubscription(i._ndk,{},{closeOnEose:!0,cacheUsage:NDKSubscriptionCacheUsage.ONLY_CACHE}):r().call(i,s)})()}setWorkerIframePort(s){var r=this;if(!this.peerOrigin)throw new Error("Unexpected iframe port");this.iframePort=s,s.onmessage=function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){if(console.log("iframe-nip46 got response",a.data),"string"==typeof a.data&&a.data.startsWith("errorNoKey")){const c=a.data.split(":")[1],{id:y="",pubkey:w=""}=r.iframeRequests.get(c)||{};y&&w&&r.requests.has(y)&&r.emit(`iframeRestart-${w}`)}else try{const c=a.data;if(!validateEvent(c))throw new Error("Invalid event from iframe");if(!verifySignature(c))throw new Error("Invalid event signature from iframe");const y=new NDKEvent(r._ndk,c),w=yield r.parseEvent(y);w.method||(console.log("parsed response",w),r.emit(`response-${w.id}`,w))}catch(c){console.log("error parsing event",c,a.data)}});return function(a){return i.apply(this,arguments)}}()}sendRequest(s,r,i=[],a=24133,c){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w=y.getId(),C=yield y.createRequestEvent(w,s,r,i,a);y.setResponseHandler(w,c),y.iframePort?(y.iframeRequests.set(C.id,{id:w,pubkey:s}),console.log("iframe-nip46 sending request to",y.peerOrigin,C.rawEvent()),y.iframePort.postMessage(C.rawEvent())):yield C.publish()})()}}class ReadyListener{origin;messages;promise;constructor(s,r){var i=this;this.origin=r,this.messages=s,this.promise=new Promise(a=>{console.log(new Date,"started listener for",this.messages);const c=function(){var y=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(w){const C=new URL(r).hostname,T=new URL(w.origin).hostname;(T===C||T.endsWith("."+C))&&Array.isArray(w.data)&&w.data.length&&i.messages.includes(w.data[0])&&(console.log(new Date,"got ready message from",w.origin,w.data),window.removeEventListener("message",c),a(w.data))});return function(C){return y.apply(this,arguments)}}();window.addEventListener("message",c)})}wait(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){console.log(new Date,"waiting for",s.messages);const r=yield s.promise;return console.log(new Date,"finished waiting for",s.messages,r),r})()}}class BannerManager extends lib$1.EventEmitter{banner=null;iframeReady;params;constructor(s){super(),this.params=s}onAuthUrl(s,r){this.banner&&(this.banner.notify=s?{mode:r?"iframeAuthUrl":"authUrl",url:s}:{mode:""})}onIframeRestart(s){this.banner&&(this.iframeReady=new ReadyListener(["rebinderDone","rebinderError"],new URL(s).origin),this.banner.notify={mode:"rebind",url:s})}onUserInfo(s){this.banner&&(this.banner.userInfo=s)}onCallTimeout(){this.banner&&(this.banner.notify={mode:"timeout"})}onCallStart(){this.banner&&(this.banner.isLoading=!0)}onCallEnd(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.banner&&(s.iframeReady&&(yield s.iframeReady.wait(),s.iframeReady=void 0),s.banner.isLoading=!1,s.banner.notify={mode:""})})()}onUpdateAccounts(s){this.banner&&(this.banner.accounts=s)}onDarkMode(s){this.banner&&(this.banner.darkMode=s)}launchAuthBanner(s){var r=this;this.banner=document.createElement("nl-banner"),this.banner.setAttribute("dark-mode",String(getDarkMode(s))),s.theme&&this.banner.setAttribute("theme",s.theme),s.noBanner&&this.banner.setAttribute("hidden-mode","true"),this.banner.addEventListener("handleLoginBanner",i=>{this.emit("launch",i.detail)}),this.banner.addEventListener("handleConfirmLogout",()=>{this.emit("onConfirmLogout")}),this.banner.addEventListener("handleLogoutBanner",(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.emit("logout")})),this.banner.addEventListener("handleImportModal",i=>{this.emit("import")}),this.banner.addEventListener("handleNotifyConfirmBanner",i=>{this.emit("onAuthUrlClick",i.detail)}),this.banner.addEventListener("handleNotifyConfirmBannerIframe",i=>{this.emit("onIframeAuthUrlClick",i.detail)}),this.banner.addEventListener("handleSwitchAccount",i=>{this.emit("onSwitchAccount",i.detail)}),this.banner.addEventListener("handleOpenWelcomeModal",()=>{this.emit("launch",this.params.optionsModal.startScreen),this.banner&&(this.banner.isOpen=!1)}),document.body.appendChild(this.banner)}}function extract(o,s,r){return hash$1(o),void 0===r&&(r=new Uint8Array(o.outputLen)),hmac$1(o,toBytes$1(r),toBytes$1(s))}const HKDF_COUNTER=new Uint8Array([0]),EMPTY_BUFFER=new Uint8Array;function expand(o,s,r,i=32){if(hash$1(o),number$1(i),i>255*o.outputLen)throw new Error("Length should be <= 255*HashLen");const a=Math.ceil(i/o.outputLen);void 0===r&&(r=EMPTY_BUFFER);const c=new Uint8Array(a*o.outputLen),y=hmac$1.create(o,s),w=y._cloneInto(),C=new Uint8Array(y.outputLen);for(let T=0;Tdecoder.decode(o),getConversationKey(o,s){const r=secp256k1.getSharedSecret(o,"02"+s).subarray(1,33);return extract(sha256,r,"nip44-v2")},getMessageKeys(o,s){const r=expand(sha256,o,s,76);return{chacha_key:r.subarray(0,32),chacha_nonce:r.subarray(32,44),hmac_key:r.subarray(44,76)}},calcPaddedLen(o){if(!Number.isSafeInteger(o)||o<1)throw new Error("expected positive integer");if(o<=32)return 32;const s=1<u.maxPlaintextSize)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const s=new Uint8Array(2);return new DataView(s.buffer).setUint16(0,o,!1),s},pad(o){const s=u.utf8Encode(o),r=s.length;return concatBytes(u.writeU16BE(r),s,new Uint8Array(u.calcPaddedLen(r)-r))},unpad(o){const s=new DataView(o.buffer).getUint16(0),r=o.subarray(2,2+s);if(su.maxPlaintextSize||r.length!==s||o.length!==2+u.calcPaddedLen(s))throw new Error("invalid padding");return u.utf8Decode(r)},hmacAad(o,s,r){if(32!==r.length)throw new Error("AAD associated data must be 32 bytes");const i=concatBytes(r,s);return hmac$1(sha256,o,i)},decodePayload(o){if("string"!=typeof o)throw new Error("payload must be a valid string");const s=o.length;if(s<132||s>87472)throw new Error("invalid payload length: "+s);if("#"===o[0])throw new Error("unknown encryption version");let r;try{r=base64.decode(o)}catch(c){throw new Error("invalid base64: "+c.message)}const i=r.length;if(i<99||i>65603)throw new Error("invalid data length: "+i);const a=r[0];if(2!==a)throw new Error("unknown encryption version "+a);return{nonce:r.subarray(1,33),ciphertext:r.subarray(33,-32),mac:r.subarray(-32)}}};function encryptNip44(o,s,r=randomBytes(32)){const{chacha_key:i,chacha_nonce:a,hmac_key:c}=u.getMessageKeys(s,r),y=u.pad(o),w=chacha20(i,a,y),C=u.hmacAad(c,w,r);return base64.encode(concatBytes(new Uint8Array([2]),r,w,C))}function decryptNip44(o,s){const{nonce:r,ciphertext:i,mac:a}=u.decodePayload(o),{chacha_key:c,chacha_nonce:y,hmac_key:w}=u.getMessageKeys(s,r);if(!equalBytes(u.hmacAad(w,i,r),a))throw new Error("invalid MAC");const C=chacha20(c,y,i);return u.unpad(C)}class Nip44{cache=new Map;createKey(s,r){return u.getConversationKey(s,r)}getKey(s,r,i){const a=getPublicKey(s)+r;let c=this.cache.get(a);if(c)return c;const y=this.createKey(s,r);return this.cache.set(a,y),y}encrypt(s,r,i){return encryptNip44(i,this.getKey(s,r))}decrypt(s,r,i){return decryptNip44(i,this.getKey(s,r))}}class PrivateKeySigner extends NDKPrivateKeySigner{nip44=new Nip44;constructor(s){super(s)}encryptNip44(s,r){return Promise.resolve(this.nip44.encrypt(this.privateKey,s.pubkey,r))}decryptNip44(s,r){return Promise.resolve(this.nip44.decrypt(this.privateKey,s.pubkey,r))}}const OUTBOX_RELAYS=["wss://user.kindpag.es","wss://purplepag.es","wss://relay.nos.social"],DEFAULT_NOSTRCONNECT_RELAY="wss://relay.nsec.app/",NOSTRCONNECT_APPS=[{name:"Nsec.app",domain:"nsec.app",canImport:!0,img:"https://nsec.app/assets/favicon.ico",link:"https://use.nsec.app/",relay:"wss://relay.nsec.app/"},{name:"Amber",img:"https://raw.githubusercontent.com/greenart7c3/Amber/refs/heads/master/assets/android-icon.svg",link:"",relay:"wss://relay.nsec.app/"},{name:"Other key stores",img:"",link:"",relay:"wss://relay.nsec.app/"}];class AuthNostrService extends lib$1.EventEmitter{ndk;profileNdk;signer=null;localSigner=null;params;signerPromise;readyPromise;readyCallback;nip44Codec=new Nip44;nostrConnectKey="";nostrConnectSecret="";iframe;starterReady;nip04;nip44;constructor(s){super(),this.params=s,this.ndk=new NDK({enableOutboxModel:!1}),this.profileNdk=new NDK({enableOutboxModel:!0,explicitRelayUrls:OUTBOX_RELAYS}),this.profileNdk.connect(),this.nip04={encrypt:this.encrypt04.bind(this),decrypt:this.decrypt04.bind(this)},this.nip44={encrypt:this.encrypt44.bind(this),decrypt:this.decrypt44.bind(this)}}isIframe(){return!!this.iframe}waitReady(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.signerPromise)try{yield s.signerPromise}catch{}if(s.readyPromise)try{yield s.readyPromise}catch{}})()}nostrConnect(s,{domain:r="",link:i="",iframeUrl:a="",importConnect:c=!1}={}){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w={authMethod:"connect",pubkey:"",sk:y.nostrConnectKey,domain:r,relays:[s=s||DEFAULT_NOSTRCONNECT_RELAY],iframeUrl:a};console.log("nostrconnect info",w,i),i&&!a&&window.open(i,"_blank","width=400,height=700");const C=yield y.initSigner(w,{listen:!0});if(!C)throw new Error("Bad remote pubkey");return w.pubkey=C,w.bunkerUrl=`bunker://${C}?relay=${s}`,c||y.onAuth("login",w),w})()}createNostrConnect(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.nostrConnectKey=generatePrivateKey(),r.nostrConnectSecret=Math.random().toString(36).substring(7);const i=getPublicKey(r.nostrConnectKey),a=encodeURIComponent(document.location.host),c=encodeURIComponent(document.location.href);return`nostrconnect://${i}?image=${encodeURIComponent(yield getIcon())}&url=${c}&name=${a}&perms=${encodeURIComponent(r.params.optionsModal.perms||"")}&secret=${r.nostrConnectSecret}${s?`&relay=${s}`:""}`})()}getNostrConnectServices(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const r=yield s.createNostrConnect(),i=NOSTRCONNECT_APPS.map(a=>({...a}));for(const a of i){let c=DEFAULT_NOSTRCONNECT_RELAY;if(a.link.startsWith("https://")){let w=a.domain||new URL(a.link).hostname;try{const C=yield(yield fetch(`https://${w}/.well-known/nostr.json`)).json(),S=C.nip46[C.names._];S&&S.length&&(c=S[0]),a.iframeUrl=C.nip46.iframe_url||""}catch(C){console.log("Bad app info",C,a)}}const y=r+"&relay="+c;a.link=a.iframeUrl?y:a.link.replace("",y)}return[r,i]})()}localSignup(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=generatePrivateKey(),a={pubkey:getPublicKey(i),sk:i,name:s,authMethod:"local"};console.log(`localSignup name: ${s}`),yield r.setLocal(a,!0)})()}setLocal(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.releaseSigner(),i.localSigner=new PrivateKeySigner(s.sk),r&&(yield createProfile(s,i.profileNdk,i.localSigner,i.params.optionsModal.signupRelays,i.params.optionsModal.outboxRelays)),i.onAuth("login",s)})()}prepareImportUrl(s){if("otp"===this.params.userInfo?.authMethod)return s+"&import=true";if(!this.localSigner||"local"!==this.params.userInfo?.authMethod)throw new Error("Most be local keys");return s+"#import="+nip19_exports.nsecEncode(this.localSigner.privateKey)}importAndConnect(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{relay:i,domain:a,link:c,iframeUrl:y}=s;if(!a)throw new Error("Domain required");const w=yield r.nostrConnect(i,{domain:a,link:c,importConnect:!0,iframeUrl:y});yield r.logout(!0),r.localSigner=null,r.onAuth("login",w)})()}setReadOnly(s){this.onAuth("login",{pubkey:s,authMethod:"readOnly"})}setExtension(s){this.onAuth("login",{pubkey:s,authMethod:"extension"})}setOTP(s,r){this.onAuth("login",{pubkey:s,authMethod:"otp",otpData:r})}setConnect(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.releaseSigner(),yield r.startAuth(),yield r.initSigner(s),r.onAuth("login",s),yield r.endAuth()})()}createAccount(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const[i,a]=s.split("@"),c=yield getBunkerUrl(`_@${a}`,r.params.optionsModal);console.log("create account bunker's url",c);const y=bunkerUrlToInfo(c),w=!!r.params.userInfo;yield r.initSigner(y,{eventToAddAccount:w});const C=[i,a,"",r.params.optionsModal.perms||""];console.log("signer",r.signer);const T=yield new Promise(S=>{r.signer.rpc.sendRequest(y.pubkey,"create_account",C,void 0,S)});if(console.log("create_account pubkey",T),"error"===T.result)throw new Error(T.error);return{bunkerUrl:`bunker://${T.result}?relay=${y.relays?.[0]}`,sk:y.sk}})()}releaseSigner(){this.signer=null,this.localSigner=null;for(const s of this.ndk.pool.relays.keys())this.ndk.pool.removeRelay(s)}logout(s=!1){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s||r.releaseSigner(),localStorageRemoveCurrentAccount(),r.onAuth("logout"),r.emit("updateAccounts")})()}setUserInfo(s){this.params.userInfo=s,this.emit("onUserInfo",s),s&&(localStorageAddAccount(s),this.emit("updateAccounts"))}exportKeys(){return this.params.userInfo?"local"!==this.params.userInfo.authMethod?"":nip19_exports.nsecEncode(this.params.userInfo.sk):""}onAuth(s,r=null){if("logout"!==s&&!r)throw new Error("No user info in onAuth");if(r&&this.params.userInfo&&(r.pubkey!==this.params.userInfo.pubkey||r.authMethod!==this.params.userInfo.authMethod)){const i=new CustomEvent("nlAuth",{detail:{type:"logout"}});console.log("nostr-login auth",i.detail),document.dispatchEvent(i)}this.setUserInfo(r),r&&fetchProfile(r,this.profileNdk).then(i=>{if(this.params.userInfo!==r)return;const a={...this.params.userInfo,picture:i?.image||i?.picture,name:i?.name||i?.displayName||i?.nip05||nip19_exports.npubEncode(r.pubkey)};this.setUserInfo(a)});try{const i=r?nip19_exports.npubEncode(r.pubkey):"",a={type:s};"logout"===s?(this.iframe&&this.iframe.remove(),this.iframe=void 0):(a.pubkey=r.pubkey,r.sk&&(a.localNsec=nip19_exports.nsecEncode(r.sk)),r.relays&&(a.relays=r.relays),r.otpData&&(a.otpData=r.otpData),a.method=r.authMethod||"connect");const c=new CustomEvent("nlAuth",{detail:a});console.log("nostr-login auth",a),document.dispatchEvent(c),this.params.optionsModal.onAuth&&this.params.optionsModal.onAuth(i,a)}catch(i){console.log("onAuth error",i)}}createIframe(s){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s)return;const r=new URL(s);let i;const a="__nostr-login-worker-iframe-"+r.hostname.replaceAll(".","-");i=document.querySelector(`#${a}`),console.log("iframe",a,i),i||(i=document.createElement("iframe"),i.setAttribute("width","0"),i.setAttribute("height","0"),i.setAttribute("border","0"),i.style.display="none",i.id=a,document.body.append(i)),i.setAttribute("src",s);const c=new ReadyListener(["workerReady","workerError"],r.origin);yield new Promise(w=>{i.addEventListener("load",w)});const y=yield c.wait();return console.log("nostr-login iframe ready",s,y),{iframe:i,port:y[1]}})()}startAuth(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.readyCallback)throw new Error("Already started");s.readyPromise=new Promise(r=>s.readyCallback=r)})()}endAuth(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("endAuth",s.params.userInfo),s.params.userInfo&&s.params.userInfo.iframeUrl){const{iframe:r,port:i}=(yield s.createIframe(s.params.userInfo.iframeUrl))||{};if(s.iframe=r,!s.iframe||!i)return;s.signer.rpc.setWorkerIframePort(i)}s.readyCallback(),s.readyCallback=void 0})()}resetAuth(){this.readyCallback&&this.readyCallback(),this.readyCallback=void 0}listen(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("listen",s,r),!s.iframeUrl)return r.listen(i.nostrConnectSecret);const a=yield i.starterReady.wait();if("starterError"===a[0])throw new Error(a[1]);return i.signer.rpc.parseNostrConnectReply(a[1],i.nostrConnectSecret)})()}initSigner(s,{listen:r=!1,connect:i=!1,eventToAddAccount:a=!1}={}){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(c.signerPromise)try{yield c.signerPromise}catch{}console.log("initSigner info",s);const y=s.iframeUrl?new URL(s.iframeUrl).origin:void 0;return y&&(c.starterReady=new ReadyListener(["starterDone","starterError"],y)),c.emit("onIframeUrl",s.iframeUrl),c.signerPromise=new Promise(function(){var w=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(C,T){try{if(s.relays&&!s.iframeUrl)for(const N of s.relays)c.ndk.addExplicitRelay(N,void 0);yield c.ndk.connect();const S=getPublicKey(s.sk),A=new PrivateKeySigner(s.sk);c.signer=new NDKNip46Signer(c.ndk,s.pubkey,A);const I=new IframeNostrRpc(c.ndk,S,A,y);if(I.setUseNip44(!0),c.signer.rpc=I,I.on(`iframeRestart-${s.pubkey}`,(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const N=s.iframeUrl+(s.iframeUrl.includes("?")?"&":"?")+"pubkey="+s.pubkey+"&rebind="+S;c.emit("iframeRestart",{pubkey:s.pubkey,iframeUrl:N})})),r||I.on("authUrl",N=>{console.log("nostr login auth url",N),c.emit("onAuthUrl",{url:N,iframeUrl:s.iframeUrl,eventToAddAccount:a})}),r){const N=yield c.listen(s,I);c.signer.remotePubkey=N,c.signer.remoteUser=new NDKUser({pubkey:N}),s.pubkey=N,C(N)}else i&&(yield I.connect(s,c.params.optionsModal.perms)),C(void 0)}catch(S){console.log("initSigner failure",S),c.signer=null,T(S)}});return function(C,T){return w.apply(this,arguments)}}()),c.signerPromise})()}authNip46(s,{name:r,bunkerUrl:i,sk:a="",domain:c="",iframeUrl:y=""}){var w=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{const C=bunkerUrlToInfo(i,a);if(isBunkerUrl(r)?C.bunkerUrl=r:(C.nip05=r,C.domain=r.split("@")[1]),c&&(C.domain=c),y&&(C.iframeUrl=y),!C.pubkey||!C.sk||!C.relays?.[0])throw new Error(`Bad bunker url ${i}`);const T=!!w.params.userInfo;console.log("authNip46",s,C),yield w.initSigner(C,{connect:!0,eventToAddAccount:T}),w.onAuth(s,C)}catch(C){throw console.log("nostr login auth failed",C),C}})()}signEvent(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return r.localSigner?(s.pubkey=getPublicKey(r.localSigner.privateKey),s.id=getEventHash(s),s.sig=yield r.localSigner.sign(s)):(s.pubkey=r.signer?.remotePubkey,s.id=getEventHash(s),s.sig=yield r.signer?.sign(s)),console.log("signed",{event:s}),s})()}codec_call(s,r,i){var a=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise((c,y)=>{a.signer.rpc.sendRequest(a.signer.remotePubkey,s,[r,i],24133,w=>{w.error?y(w.error):c(w.result)})})})()}encrypt04(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.localSigner.encrypt(new NDKUser({pubkey:s}),r):i.signer.encrypt(new NDKUser({pubkey:s}),r)})()}decrypt04(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.localSigner.decrypt(new NDKUser({pubkey:s}),r):i.codec_call("nip04_decrypt",s,r)})()}encrypt44(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.nip44Codec.encrypt(i.localSigner.privateKey,s,r):i.codec_call("nip44_encrypt",s,r)})()}decrypt44(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.nip44Codec.decrypt(i.localSigner.privateKey,s,r):i.codec_call("nip44_decrypt",s,r)})()}}class ModalManager extends lib$1.EventEmitter{modal=null;params;extensionService;authNostrService;launcherPromise;accounts=[];recents=[];opt;constructor(s,r,i){super(),this.params=s,this.extensionService=i,this.authNostrService=r}waitReady(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.launcherPromise){try{yield s.launcherPromise}catch{}s.launcherPromise=void 0}})()}launch(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.launcherPromise&&(yield r.waitReady()),r.opt=s;const i=document.createElement("dialog");r.modal=document.createElement("nl-auth"),r.modal.accounts=r.accounts,r.modal.recents=r.recents,r.modal.setAttribute("dark-mode",String(getDarkMode(s))),s.theme&&r.modal.setAttribute("theme",s.theme),s.startScreen&&r.modal.setAttribute("start-screen",s.startScreen),r.modal.setAttribute("bunkers",s.bunkers?s.bunkers:"nsec.app,highlighter.com"),void 0!==s.methods&&(r.modal.authMethods=s.methods),void 0!==s.localSignup&&(r.modal.localSignup=s.localSignup),s.title&&(r.modal.welcomeTitle=s.title),s.description&&(r.modal.welcomeDescription=s.description),r.modal.hasExtension=r.extensionService.hasExtension(),r.modal.hasOTP=!!s.otpRequestUrl&&!!s.otpReplyUrl,r.modal.isLoadingExtension=!1,r.modal.isLoading=!1,[r.modal.connectionString,r.modal.connectionStringServices]=yield r.authNostrService.getNostrConnectServices(),i.appendChild(r.modal),document.body.appendChild(i);let a="";return r.launcherPromise=new Promise((c,y)=>{i.addEventListener("close",()=>{y(new Error("Closed")),r.authNostrService.resetAuth(),r.modal&&(document.body.removeChild(r.modal.parentNode),r.modal=null)});const w=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){r.modal&&(r.modal.isLoading=!1),yield r.authNostrService.endAuth(),i.close(),r.modal=null,me()});return function(pe){return be.apply(this,arguments)}}(),C=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me,pe){r.modal&&(r.modal.isLoading=!0);try{pe&&!pe.start||(yield r.authNostrService.startAuth()),yield me(),pe&&!pe.end||(yield w(c))}catch(Te){console.log("error",Te),r.modal&&(r.modal.isLoading=!1,r.modal.authUrl="",r.modal.iframeUrl="",r.modal.error=Te.toString())}});return function(pe,Te){return be.apply(this,arguments)}}(),T=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me,pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const Te=yield getBunkerUrl(me,r.params.optionsModal);yield r.authNostrService.authNip46("login",{name:me,bunkerUrl:Te,domain:pe})}))});return function(pe,Te){return be.apply(this,arguments)}}(),S=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{bunkerUrl:pe,sk:Te}=yield r.authNostrService.createAccount(me);yield r.authNostrService.authNip46("signup",{name:me,bunkerUrl:pe,sk:Te})}))});return function(pe){return be.apply(this,arguments)}}(),A=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{yield navigator.clipboard.writeText(r.authNostrService.exportKeys()),localStorageSetItem("backupKey","true")}catch(me){console.error("Failed to copy to clipboard: ",me)}});return function(){return be.apply(this,arguments)}}(),I=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{iframeUrl:pe}=me,Te=r.authNostrService.prepareImportUrl(me.link);r.modal&&pe&&(r.modal.authUrl=Te,r.modal.iframeUrl=pe,r.modal.isLoading=!1,console.log("nostrconnect authUrl",r.modal.authUrl,r.modal.iframeUrl)),yield r.authNostrService.importAndConnect(me)}))});return function(pe){return be.apply(this,arguments)}}(),N=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{relay:pe,domain:Te,link:xe,iframeUrl:Re}=me||{};console.log("nostrConnect",me,pe,Te,xe,Re),r.modal&&(Re&&(r.modal.authUrl=xe,r.modal.iframeUrl=Re,r.modal.isLoading=!1,console.log("nostrconnect authUrl",r.modal.authUrl,r.modal.iframeUrl)),me||(r.modal.isLoading=!1)),yield r.authNostrService.nostrConnect(pe,{domain:Te,link:xe,iframeUrl:Re})}))});return function(pe){return be.apply(this,arguments)}}(),G=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!me)throw new Error("Please enter some nickname");yield r.authNostrService.localSignup(me)}))});return function(pe){return be.apply(this,arguments)}}();if(!r.modal)throw new Error("WTH?");r.modal.addEventListener("handleContinue",()=>{r.modal&&(r.modal.isLoading=!0,r.emit("onAuthUrlClick",r.modal.authUrl))}),r.modal.addEventListener("nlLogin",be=>{T(be.detail)}),r.modal.addEventListener("nlSignup",be=>{S(be.detail)}),r.modal.addEventListener("nlLocalSignup",be=>{G(be.detail)}),r.modal.addEventListener("nlImportAccount",be=>{I(be.detail)}),r.modal.addEventListener("nlExportKeys",be=>{A()}),r.modal.addEventListener("handleLogoutBanner",()=>{r.emit("onLogoutBanner")}),r.modal.addEventListener("nlNostrConnect",be=>{N(be.detail)}),r.modal.addEventListener("nlNostrConnectDefault",()=>{N()}),r.modal.addEventListener("nlSwitchAccount",be=>{r.emit("onSwitchAccount",be.detail),setTimeout(()=>i.close(),300)}),r.modal.addEventListener("nlLoginRecentAccount",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){const pe=me.detail;if("readOnly"===pe.authMethod)r.authNostrService.setReadOnly(pe.pubkey),i.close();else if("otp"===pe.authMethod)try{r.modal.dispatchEvent(new CustomEvent("nlLoginOTPUser",{detail:pe.nip05||pe.pubkey}))}catch(Te){console.error(Te)}else if("extension"===pe.authMethod)yield r.extensionService.trySetExtensionForPubkey(pe.pubkey),i.close();else{const Te=pe.bunkerUrl||pe.nip05;if(!Te)throw new Error("Bad connect info");T(Te,pe.domain)}});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlRemoveRecent",be=>{localStorageRemoveRecent(be.detail),r.emit("updateAccounts")});const Z=function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){let pe="";if(me.includes("@")){const{error:Te,pubkey:xe}=yield checkNip05(me);if(!xe)throw new Error(Te);pe=xe}else if(me.startsWith("npub")){const{type:Te,data:xe}=nip19_exports.decode(me);if("npub"!==Te)throw new Error("Bad npub");pe=xe}else 64===me.trim().length&&(pe=me.trim(),nip19_exports.npubEncode(pe));return pe});return function(pe){return be.apply(this,arguments)}}();r.modal.addEventListener("nlLoginReadOnly",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const pe=me.detail,Te=yield Z(pe);r.authNostrService.setReadOnly(Te)}))});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlLoginExtension",(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.extensionService.hasExtension())throw new Error("No extension");yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){r.modal&&(r.modal.isLoadingExtension=!0,yield r.extensionService.setExtension(),r.modal.isLoadingExtension=!1)}))})),r.modal.addEventListener("nlLoginOTPUser",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.modal)return;const pe=me.detail,Te=yield Z(pe),xe=r.opt.otpRequestUrl+(r.opt.otpRequestUrl.includes("?")?"&":"?")+"pubkey="+Te,Re=yield fetch(xe);if(200!==Re.status)throw console.warn("nostr-login: bad otp reply",Re),new Error("Failed to send DM");r.modal.isOTP=!0,a=Te,r.modal.isLoading=!1}),{start:!0})});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlLoginOTPCode",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!r.modal)return;const pe=me.detail,Te=r.opt.otpReplyUrl+(r.opt.otpRequestUrl.includes("?")?"&":"?")+"pubkey="+a+"&code="+pe,xe=yield fetch(Te);if(200!==xe.status)throw console.warn("nostr-login: bad otp reply",xe),new Error("Invalid code");const Re=yield xe.text();r.authNostrService.setOTP(a,Re),r.modal.isOTP=!1}),{end:!0})});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlCheckSignup",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){const{available:pe,taken:Te,error:xe}=yield checkNip05(me.detail);r.modal&&(r.modal.error=String(xe),!xe&&Te&&(r.modal.error="Already taken"),r.modal.signupNameIsAvailable=pe)});return function(me){return be.apply(this,arguments)}}()),r.modal.addEventListener("nlCheckLogin",function(){var be=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(me){const{available:pe,taken:Te,error:xe}=yield checkNip05(me.detail);r.modal&&(r.modal.error=String(xe),pe&&(r.modal.error="Name not found"),r.modal.loginIsGood=Te)});return function(me){return be.apply(this,arguments)}}());const ne=()=>{r.modal&&(r.modal.isLoading=!1),i.close(),y(new Error("Cancelled"))};r.modal.addEventListener("stopFetchHandler",ne),r.modal.addEventListener("nlCloseModal",ne),r.modal.addEventListener("nlChangeDarkMode",be=>{setDarkMode(be.detail),document.dispatchEvent(new CustomEvent("nlDarkMode",{detail:be.detail}))}),r.on("onIframeAuthUrlCallEnd",()=>{i.close(),r.modal=null,c()}),i.showModal()}),r.launcherPromise})()}showIframeUrl(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield r.waitReady(),r.launch({startScreen:"iframe"}).catch(()=>console.log("closed auth iframe")),r.modal.authUrl=s})()}connectModals(s){var r=this;const i=function(){var c=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(y){yield r.launch(y)});return function(w){return c.apply(this,arguments)}}(),a=document.getElementsByTagName("nl-button");for(let c=0;c{this.checkExtension(s)&&clearTimeout(r)},100)}checkExtension(s){return!(this.nostrExtension||!window.nostr||window.nostr===s||(this.initExtension(s),0))}initExtension(s,r){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.nostrExtension=window.nostr,window.nostr=s,"extension"===i.params.userInfo?.authMethod&&(yield i.trySetExtensionForPubkey(i.params.userInfo.pubkey)),r||setTimeout(()=>{window.nostr!==s&&i.nostrExtension!==window.nostr&&i.initExtension(s,!0)},300)})()}setExtensionReadPubkey(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){window.nostr=r.nostrExtension;const i=yield window.nostr.getPublicKey();s&&s!==i?r.emit("extensionLogout"):r.emit("extensionLogin",i)})()}trySetExtensionForPubkey(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(r.nostrExtension)return r.setExtensionReadPubkey(s)})()}setExtension(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.setExtensionReadPubkey()})()}unsetExtension(s){window.nostr===this.nostrExtension&&(window.nostr=s)}getExtension(){return this.nostrExtension}hasExtension(){return!!this.nostrExtension}}class NostrParams{userInfo;optionsModal;constructor(){this.userInfo=null,this.optionsModal={theme:"default",startScreen:"welcome",devOverrideBunkerOrigin:""}}}class Popup{popup=null;constructor(){}openPopup(s){if((!this.popup||this.popup.closed)&&(this.popup=window.open(s,"_blank","width=400,height=700"),console.log("popup",this.popup),!this.popup))throw new Error("Popup blocked. Try again, please!")}closePopup(){try{this.popup?.close(),this.popup=null}catch{}}}const CALL_TIMEOUT=5e3;class ProcessManager extends lib$1.EventEmitter{callCount=0;callTimer;constructor(){super()}onAuthUrl(){this.callTimer&&clearTimeout(this.callTimer)}onIframeUrl(){this.callTimer&&clearTimeout(this.callTimer)}wait(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let i,a;r.callTimer||(r.callTimer=setTimeout(()=>r.emit("onCallTimeout"),CALL_TIMEOUT)),r.callCount||r.emit("onCallStart"),r.callCount++;try{a=yield s()}catch(c){i=c}if(r.callCount--,r.emit("onCallEnd"),r.callTimer&&clearTimeout(r.callTimer),r.callTimer=void 0,i)throw i;return a})()}}class NostrLoginInitializer{extensionService;params;authNostrService;nostr;processManager;popupManager;bannerManager;modalManager;constructor(){var s=this;this.params=new NostrParams,this.processManager=new ProcessManager,this.popupManager=new Popup,this.bannerManager=new BannerManager(this.params),this.authNostrService=new AuthNostrService(this.params),this.extensionService=new NostrExtensionService(this.params),this.modalManager=new ModalManager(this.params,this.authNostrService,this.extensionService);const r={waitReady:(i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield s.authNostrService.waitReady(),yield s.modalManager.waitReady()}),function(){return i.apply(this,arguments)}),getUserInfo:()=>this.params.userInfo,getSigner:()=>{if("readOnly"===this.params.userInfo.authMethod)throw new Error("Read only");return"extension"===this.params.userInfo.authMethod?this.extensionService.getExtension():this.authNostrService},launch:()=>this.launch(),wait:i=>this.processManager.wait(i)};var i;this.nostr=new Nostr(r),this.processManager.on("onCallTimeout",()=>{this.bannerManager.onCallTimeout()}),this.processManager.on("onCallEnd",()=>{this.bannerManager.onCallEnd(),this.modalManager.onCallEnd()}),this.processManager.on("onCallStart",()=>{this.bannerManager.onCallStart()}),this.authNostrService.on("onIframeUrl",i=>{this.modalManager.onIframeUrl(i)}),this.authNostrService.on("iframeRestart",({iframeUrl:i})=>{this.processManager.onIframeUrl(),this.bannerManager.onIframeRestart(i)}),this.authNostrService.on("onAuthUrl",({url:i,iframeUrl:a,eventToAddAccount:c})=>{this.processManager.onAuthUrl(),c?this.modalManager.onAuthUrl(i):this.params.userInfo?this.bannerManager.onAuthUrl(i,a):this.modalManager.onAuthUrl(i)}),this.authNostrService.on("updateAccounts",()=>{this.updateAccounts()}),this.authNostrService.on("onUserInfo",i=>{this.bannerManager.onUserInfo(i)}),this.modalManager.on("onAuthUrlClick",i=>{this.openPopup(i)}),this.bannerManager.on("onIframeAuthUrlClick",i=>{this.modalManager.showIframeUrl(i)}),this.modalManager.on("onSwitchAccount",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){s.switchAccount(a)});return function(a){return i.apply(this,arguments)}}()),this.modalManager.on("onLogoutBanner",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){logout()});return function(a){return i.apply(this,arguments)}}()),this.bannerManager.on("onConfirmLogout",(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){console.log(4),s.launch("confirm-logout")})),this.modalManager.on("updateAccounts",()=>{this.updateAccounts()}),this.bannerManager.on("logout",()=>{logout()}),this.bannerManager.on("onAuthUrlClick",i=>{this.openPopup(i)}),this.bannerManager.on("onSwitchAccount",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){s.switchAccount(a)});return function(a){return i.apply(this,arguments)}}()),this.bannerManager.on("import",()=>{this.launch("import")}),this.extensionService.on("extensionLogin",i=>{this.authNostrService.setExtension(i)}),this.extensionService.on("extensionLogout",()=>{logout()}),this.bannerManager.on("launch",i=>{this.launch(i)})}openPopup(s){this.popupManager.openPopup(s)}switchAccount(s){var r=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("nostr login switch to info",s),r.extensionService.unsetExtension(r.nostr),"readOnly"===s.authMethod)r.authNostrService.setReadOnly(s.pubkey);else if("otp"===s.authMethod)r.authNostrService.setOTP(s.pubkey,s.otpData||"");else if("local"===s.authMethod&&s.sk)r.authNostrService.setLocal(s);else if("extension"===s.authMethod)yield r.extensionService.trySetExtensionForPubkey(s.pubkey);else{if(!("connect"===s.authMethod&&s.sk&&s.relays&&s.relays[0]))throw new Error("Bad auth info");r.authNostrService.setConnect(s)}})()}updateAccounts(){const s=localStorageGetAccounts(),r=localStorageGetRecents();this.bannerManager.onUpdateAccounts(s),this.modalManager.onUpdateAccounts(s,r)}launch=s=>{const r=localStorageGetRecents(),i=localStorageGetAccounts(),a=s?{startScreen:s}:this.params.optionsModal;return s||!r?.length&&!i?.length||(a.startScreen="switch-account"),this.modalManager.launch(a).catch(()=>{})};init=(()=>{var r,s=this;return r=(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(i){s.extensionService.startCheckingExtension(s.nostr),window.nostr=s.nostr,s.modalManager.connectModals(i),s.bannerManager.launchAuthBanner(i),i&&(s.params.optionsModal={...i});try{const a=localStorageGetCurrent();if(a){if(!a.pubkey)throw new Error("Bad stored info");yield s.switchAccount(a)}}catch(a){console.log("nostr login init error",a),yield logout()}s.updateAccounts()}),function(i){return r.apply(this,arguments)}})();logout=(()=>{var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.extensionService.unsetExtension(s.nostr),yield s.authNostrService.logout()})})();setDarkMode=s=>{localStorageSetItem("nl-dark-mode",`${s}`),this.bannerManager.onDarkMode(s),this.modalManager.onDarkMode(s)}}const initializer=new NostrLoginInitializer,{init,launch,logout,setDarkMode}=initializer;document.addEventListener("nlLogout",logout),document.addEventListener("nlLaunch",o=>{launch(o.detail||"")}),document.addEventListener("nlDarkMode",o=>{setDarkMode(!!o.detail)})},5462:(o,s,r)=>{"use strict";r.d(s,{lo:()=>Hc,pC:()=>ha,Bq:()=>tl,dq:()=>ul,lG:()=>Uc,sh:()=>Rl,Qe:()=>Wc});var i={};r.r(i),r.d(i,{OG:()=>j,My:()=>fn,Ph:()=>an,lX:()=>Xn,Id:()=>xn,fg:()=>ot,qj:()=>Kt,aT:()=>Qt,lq:()=>En,z:()=>Gt,Q5:()=>In});var a=r(467);function c(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`Wrong positive integer: ${b}`)}function w(b,...x){if(!(b instanceof Uint8Array))throw new Error("Expected Uint8Array");if(x.length>0&&!x.includes(b.length))throw new Error(`Expected Uint8Array of length ${x}, not of length=${b.length}`)}function T(b,x=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(x&&b.finished)throw new Error("Hash#digest() has already been called")}const N="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,G=b=>b instanceof Uint8Array,be=b=>new DataView(b.buffer,b.byteOffset,b.byteLength),me=(b,x)=>b<<32-x|b>>>x;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Ie(b){if("string"==typeof b&&(b=function ae(b){if("string"!=typeof b)throw new Error("utf8ToBytes expected string, got "+typeof b);return new Uint8Array((new TextEncoder).encode(b))}(b)),!G(b))throw new Error("expected Uint8Array, got "+typeof b);return b}class st{clone(){return this._cloneInto()}}function at(b){const x=z=>b().update(Ie(z)).digest(),M=b();return x.outputLen=M.outputLen,x.blockLen=M.blockLen,x.create=()=>b(),x}function yn(b=32){if(N&&"function"==typeof N.getRandomValues)return N.getRandomValues(new Uint8Array(b));throw new Error("crypto.getRandomValues must be defined")}class bn extends st{constructor(x,M,z,J){super(),this.blockLen=x,this.outputLen=M,this.padOffset=z,this.isLE=J,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(x),this.view=be(this.buffer)}update(x){T(this);const{view:M,buffer:z,blockLen:J}=this,ye=(x=Ie(x)).length;for(let Ne=0;NeJ-Ne&&(this.process(z,0),Ne=0);for(let jt=Ne;jt>J&ye),Ue=Number(M&ye),xt=z?0:4;b.setUint32(x+(z?4:0),Ne,z),b.setUint32(x+xt,Ue,z)})(z,J-8,BigInt(8*this.length),ye),this.process(z,0);const Ue=be(x),rt=this.outputLen;if(rt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const xt=rt/4,zt=this.get();if(xt>zt.length)throw new Error("_sha2: outputLen bigger than state");for(let jt=0;jtb&x^~b&M,bt=(b,x,M)=>b&x^b&M^x&M,ze=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Fe=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ft=new Uint32Array(64);class Ke extends bn{constructor(){super(64,32,8,!1),this.A=0|Fe[0],this.B=0|Fe[1],this.C=0|Fe[2],this.D=0|Fe[3],this.E=0|Fe[4],this.F=0|Fe[5],this.G=0|Fe[6],this.H=0|Fe[7]}get(){const{A:x,B:M,C:z,D:J,E:ye,F:Ne,G:Ue,H:rt}=this;return[x,M,z,J,ye,Ne,Ue,rt]}set(x,M,z,J,ye,Ne,Ue,rt){this.A=0|x,this.B=0|M,this.C=0|z,this.D=0|J,this.E=0|ye,this.F=0|Ne,this.G=0|Ue,this.H=0|rt}process(x,M){for(let jt=0;jt<16;jt++,M+=4)Ft[jt]=x.getUint32(M,!1);for(let jt=16;jt<64;jt++){const cn=Ft[jt-15],gn=Ft[jt-2],tn=me(cn,7)^me(cn,18)^cn>>>3,Yt=me(gn,17)^me(gn,19)^gn>>>10;Ft[jt]=Yt+Ft[jt-7]+tn+Ft[jt-16]|0}let{A:z,B:J,C:ye,D:Ne,E:Ue,F:rt,G:xt,H:zt}=this;for(let jt=0;jt<64;jt++){const gn=zt+(me(Ue,6)^me(Ue,11)^me(Ue,25))+Qe(Ue,rt,xt)+ze[jt]+Ft[jt]|0,Yt=(me(z,2)^me(z,13)^me(z,22))+bt(z,J,ye)|0;zt=xt,xt=rt,rt=Ue,Ue=Ne+gn|0,Ne=ye,ye=J,J=z,z=gn+Yt|0}z=z+this.A|0,J=J+this.B|0,ye=ye+this.C|0,Ne=Ne+this.D|0,Ue=Ue+this.E|0,rt=rt+this.F|0,xt=xt+this.G|0,zt=zt+this.H|0,this.set(z,J,ye,Ne,Ue,rt,xt,zt)}roundClean(){Ft.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Ge=at(()=>new Ke),se=(BigInt(0),BigInt(1)),Ze=BigInt(2),Rt=b=>b instanceof Uint8Array,Jt=Array.from({length:256},(b,x)=>x.toString(16).padStart(2,"0"));function fn(b){if(!Rt(b))throw new Error("Uint8Array expected");let x="";for(let M=0;Mz+J.length,0));let M=0;return b.forEach(z=>{if(!Rt(z))throw new Error("Uint8Array expected");x.set(z,M),M+=z.length}),x}const j=b=>(Ze<new Uint8Array(b),it=b=>Uint8Array.from(b);function ot(b,x,M){if("number"!=typeof b||b<2)throw new Error("hashLen must be a number");if("number"!=typeof x||x<2)throw new Error("qByteLen must be a number");if("function"!=typeof M)throw new Error("hmacFn must be a function");let z=De(b),J=De(b),ye=0;const Ne=()=>{z.fill(1),J.fill(0),ye=0},Ue=(...jt)=>M(J,z,...jt),rt=(jt=De())=>{J=Ue(it([0]),jt),z=Ue(),0!==jt.length&&(J=Ue(it([1]),jt),z=Ue())},xt=()=>{if(ye++>=1e3)throw new Error("drbg: tried 1000 values");let jt=0;const cn=[];for(;jt{let gn;for(Ne(),rt(jt);!(gn=cn(xt()));)rt();return Ne(),gn}}const Tt={bigint:b=>"bigint"==typeof b,function:b=>"function"==typeof b,boolean:b=>"boolean"==typeof b,string:b=>"string"==typeof b,stringOrUint8Array:b=>"string"==typeof b||b instanceof Uint8Array,isSafeInteger:b=>Number.isSafeInteger(b),array:b=>Array.isArray(b),field:(b,x)=>x.Fp.isValid(b),hash:b=>"function"==typeof b&&Number.isSafeInteger(b.outputLen)};function In(b,x,M={}){const z=(J,ye,Ne)=>{const Ue=Tt[ye];if("function"!=typeof Ue)throw new Error(`Invalid validator "${ye}", expected function`);const rt=b[J];if(!(Ne&&void 0===rt||Ue(rt,b)))throw new Error(`Invalid param ${String(J)}=${rt} (${typeof rt}), expected ${ye}`)};for(const[J,ye]of Object.entries(x))z(J,ye,!1);for(const[J,ye]of Object.entries(M))z(J,ye,!0);return b}const Vt=BigInt(0),dn=BigInt(1),Pn=BigInt(2),Fn=BigInt(3),Bn=BigInt(4),cr=BigInt(5),Jr=BigInt(8);function Bt(b,x){const M=b%x;return M>=Vt?M:x+M}function Ee(b,x,M){if(M<=Vt||x 0");if(M===dn)return Vt;let z=dn;for(;x>Vt;)x&dn&&(z=z*b%M),b=b*b%M,x>>=dn;return z}function lt(b,x,M){let z=b;for(;x-- >Vt;)z*=z,z%=M;return z}function Pe(b,x){if(b===Vt||x<=Vt)throw new Error(`invert: expected positive integers, got n=${b} mod=${x}`);let M=Bt(b,x),z=x,J=Vt,ye=dn,Ne=dn,Ue=Vt;for(;M!==Vt;){const xt=z/M,zt=z%M,jt=J-Ne*xt,cn=ye-Ue*xt;z=M,M=zt,J=Ne,ye=Ue,Ne=jt,Ue=cn}if(z!==dn)throw new Error("invert: does not exist");return Bt(J,x)}BigInt(9),BigInt(16);const mn=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function rn(b,x){const M=void 0!==x?x:b.toString(2).length;return{nBitLength:M,nByteLength:Math.ceil(M/8)}}function Hn(b){if("bigint"!=typeof b)throw new Error("field order must be bigint");const x=b.toString(2).length;return Math.ceil(x/8)}function fr(b){const x=Hn(b);return x+Math.ceil(x/2)}class Oi extends st{constructor(x,M){super(),this.finished=!1,this.destroyed=!1,function C(b){if("function"!=typeof b||"function"!=typeof b.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");c(b.outputLen),c(b.blockLen)}(x);const z=Ie(M);if(this.iHash=x.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 J=this.blockLen,ye=new Uint8Array(J);ye.set(z.length>J?x.create().update(z).digest():z);for(let Ne=0;Nenew Oi(b,x).update(M).digest();Uo.create=(b,x)=>new Oi(b,x);const oi=BigInt(0),ts=BigInt(1);function bo(b){return function or(b){In(b,mn.reduce((z,J)=>(z[J]="function",z),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(b.Fp),In(b,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...rn(b.n,b.nBitLength),...b,p:b.Fp.ORDER})}const{Ph:Co,aT:Is}=i,eo={Err:class extends Error{constructor(x=""){super(x)}},_parseInt(b){const{Err:x}=eo;if(b.length<2||2!==b[0])throw new x("Invalid signature integer tag");const M=b[1],z=b.subarray(2,M+2);if(!M||z.length!==M)throw new x("Invalid signature integer: wrong length");if(128&z[0])throw new x("Invalid signature integer: negative");if(0===z[0]&&!(128&z[1]))throw new x("Invalid signature integer: unnecessary leading zero");return{d:Co(z),l:b.subarray(M+2)}},toSig(b){const{Err:x}=eo,M="string"==typeof b?Is(b):b;if(!(M instanceof Uint8Array))throw new Error("ui8a expected");let z=M.length;if(z<2||48!=M[0])throw new x("Invalid signature tag");if(M[1]!==z-2)throw new x("Invalid signature: incorrect length");const{d:J,l:ye}=eo._parseInt(M.subarray(2)),{d:Ne,l:Ue}=eo._parseInt(ye);if(Ue.length)throw new x("Invalid signature: left bytes after parsing");return{r:J,s:Ne}},hexFromSig(b){const x=xt=>8&Number.parseInt(xt[0],16)?"00"+xt:xt,M=xt=>{const zt=xt.toString(16);return 1&zt.length?`0${zt}`:zt},z=x(M(b.s)),J=x(M(b.r)),ye=z.length/2,Ne=J.length/2,Ue=M(ye),rt=M(Ne);return`30${M(Ne+ye+4)}02${rt}${J}02${Ue}${z}`}},oo=BigInt(0),Bi=BigInt(1),Je=(BigInt(2),BigInt(3));function et(b){const x=function ve(b){const x=bo(b);return In(x,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...x})}(b),{Fp:M,n:z}=x,J=M.BYTES+1,ye=2*M.BYTES+1;function Ue(er){return Bt(er,z)}function rt(er){return Pe(er,z)}const{ProjectivePoint:xt,normPrivateKeyToScalar:zt,weierstrassEquation:jt,isWithinCurveOrder:cn}=function Et(b){const x=function Xo(b){const x=bo(b);In(x,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:M,Fp:z,a:J}=x;if(M){if(!z.eql(J,z.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof M||"bigint"!=typeof M.beta||"function"!=typeof M.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...x})}(b),{Fp:M}=x,z=x.toBytes||((tn,Yt,qt)=>{const Dn=Yt.toAffine();return xn(Uint8Array.from([4]),M.toBytes(Dn.x),M.toBytes(Dn.y))}),J=x.fromBytes||(tn=>{const Yt=tn.subarray(1);return{x:M.fromBytes(Yt.subarray(0,M.BYTES)),y:M.fromBytes(Yt.subarray(M.BYTES,2*M.BYTES))}});function ye(tn){const{a:Yt,b:qt}=x,Dn=M.sqr(tn),Tn=M.mul(Dn,tn);return M.add(M.add(Tn,M.mul(tn,Yt)),qt)}if(!M.eql(M.sqr(x.Gy),ye(x.Gx)))throw new Error("bad generator point: equation left != right");function Ne(tn){return"bigint"==typeof tn&&ooM.eql(rr,M.ZERO);return Tn(qt)&&Tn(Dn)?jt.ZERO:new jt(qt,Dn,M.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Yt){const qt=M.invertBatch(Yt.map(Dn=>Dn.pz));return Yt.map((Dn,Tn)=>Dn.toAffine(qt[Tn])).map(jt.fromAffine)}static fromHex(Yt){const qt=jt.fromAffine(J(Kt("pointHex",Yt)));return qt.assertValidity(),qt}static fromPrivateKey(Yt){return jt.BASE.multiply(rt(Yt))}_setWindowSize(Yt){this._WINDOW_SIZE=Yt,xt.delete(this)}assertValidity(){if(this.is0()){if(x.allowInfinityPoint&&!M.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:Yt,y:qt}=this.toAffine();if(!M.isValid(Yt)||!M.isValid(qt))throw new Error("bad point: x or y not FE");const Dn=M.sqr(qt),Tn=ye(Yt);if(!M.eql(Dn,Tn))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Yt}=this.toAffine();if(M.isOdd)return!M.isOdd(Yt);throw new Error("Field doesn't support isOdd")}equals(Yt){zt(Yt);const{px:qt,py:Dn,pz:Tn}=this,{px:rr,py:ar,pz:Br}=Yt,br=M.eql(M.mul(qt,Br),M.mul(rr,Tn)),Nr=M.eql(M.mul(Dn,Br),M.mul(ar,Tn));return br&&Nr}negate(){return new jt(this.px,M.neg(this.py),this.pz)}double(){const{a:Yt,b:qt}=x,Dn=M.mul(qt,Je),{px:Tn,py:rr,pz:ar}=this;let Br=M.ZERO,br=M.ZERO,Nr=M.ZERO,Vr=M.mul(Tn,Tn),Ci=M.mul(rr,rr),fi=M.mul(ar,ar),li=M.mul(Tn,rr);return li=M.add(li,li),Nr=M.mul(Tn,ar),Nr=M.add(Nr,Nr),Br=M.mul(Yt,Nr),br=M.mul(Dn,fi),br=M.add(Br,br),Br=M.sub(Ci,br),br=M.add(Ci,br),br=M.mul(Br,br),Br=M.mul(li,Br),Nr=M.mul(Dn,Nr),fi=M.mul(Yt,fi),li=M.sub(Vr,fi),li=M.mul(Yt,li),li=M.add(li,Nr),Nr=M.add(Vr,Vr),Vr=M.add(Nr,Vr),Vr=M.add(Vr,fi),Vr=M.mul(Vr,li),br=M.add(br,Vr),fi=M.mul(rr,ar),fi=M.add(fi,fi),Vr=M.mul(fi,li),Br=M.sub(Br,Vr),Nr=M.mul(fi,Ci),Nr=M.add(Nr,Nr),Nr=M.add(Nr,Nr),new jt(Br,br,Nr)}add(Yt){zt(Yt);const{px:qt,py:Dn,pz:Tn}=this,{px:rr,py:ar,pz:Br}=Yt;let br=M.ZERO,Nr=M.ZERO,Vr=M.ZERO;const Ci=x.a,fi=M.mul(x.b,Je);let li=M.mul(qt,rr),Ji=M.mul(Dn,ar),ji=M.mul(Tn,Br),qi=M.add(qt,Dn),er=M.add(rr,ar);qi=M.mul(qi,er),er=M.add(li,Ji),qi=M.sub(qi,er),er=M.add(qt,Tn);let wr=M.add(rr,Br);return er=M.mul(er,wr),wr=M.add(li,ji),er=M.sub(er,wr),wr=M.add(Dn,Tn),br=M.add(ar,Br),wr=M.mul(wr,br),br=M.add(Ji,ji),wr=M.sub(wr,br),Vr=M.mul(Ci,er),br=M.mul(fi,ji),Vr=M.add(br,Vr),br=M.sub(Ji,Vr),Vr=M.add(Ji,Vr),Nr=M.mul(br,Vr),Ji=M.add(li,li),Ji=M.add(Ji,li),ji=M.mul(Ci,ji),er=M.mul(fi,er),Ji=M.add(Ji,ji),ji=M.sub(li,ji),ji=M.mul(Ci,ji),er=M.add(er,ji),li=M.mul(Ji,er),Nr=M.add(Nr,li),li=M.mul(wr,er),br=M.mul(qi,br),br=M.sub(br,li),li=M.mul(qi,Ji),Vr=M.mul(wr,Vr),Vr=M.add(Vr,li),new jt(br,Nr,Vr)}subtract(Yt){return this.add(Yt.negate())}is0(){return this.equals(jt.ZERO)}wNAF(Yt){return gn.wNAFCached(this,xt,Yt,qt=>{const Dn=M.invertBatch(qt.map(Tn=>Tn.pz));return qt.map((Tn,rr)=>Tn.toAffine(Dn[rr])).map(jt.fromAffine)})}multiplyUnsafe(Yt){const qt=jt.ZERO;if(Yt===oo)return qt;if(Ue(Yt),Yt===Bi)return this;const{endo:Dn}=x;if(!Dn)return gn.unsafeLadder(this,Yt);let{k1neg:Tn,k1:rr,k2neg:ar,k2:Br}=Dn.splitScalar(Yt),br=qt,Nr=qt,Vr=this;for(;rr>oo||Br>oo;)rr&Bi&&(br=br.add(Vr)),Br&Bi&&(Nr=Nr.add(Vr)),Vr=Vr.double(),rr>>=Bi,Br>>=Bi;return Tn&&(br=br.negate()),ar&&(Nr=Nr.negate()),Nr=new jt(M.mul(Nr.px,Dn.beta),Nr.py,Nr.pz),br.add(Nr)}multiply(Yt){Ue(Yt);let Dn,Tn,qt=Yt;const{endo:rr}=x;if(rr){const{k1neg:ar,k1:Br,k2neg:br,k2:Nr}=rr.splitScalar(qt);let{p:Vr,f:Ci}=this.wNAF(Br),{p:fi,f:li}=this.wNAF(Nr);Vr=gn.constTimeNegate(ar,Vr),fi=gn.constTimeNegate(br,fi),fi=new jt(M.mul(fi.px,rr.beta),fi.py,fi.pz),Dn=Vr.add(fi),Tn=Ci.add(li)}else{const{p:ar,f:Br}=this.wNAF(qt);Dn=ar,Tn=Br}return jt.normalizeZ([Dn,Tn])[0]}multiplyAndAddUnsafe(Yt,qt,Dn){const Tn=jt.BASE,rr=(Br,br)=>br!==oo&&br!==Bi&&Br.equals(Tn)?Br.multiply(br):Br.multiplyUnsafe(br),ar=rr(this,qt).add(rr(Yt,Dn));return ar.is0()?void 0:ar}toAffine(Yt){const{px:qt,py:Dn,pz:Tn}=this,rr=this.is0();null==Yt&&(Yt=rr?M.ONE:M.inv(Tn));const ar=M.mul(qt,Yt),Br=M.mul(Dn,Yt),br=M.mul(Tn,Yt);if(rr)return{x:M.ZERO,y:M.ZERO};if(!M.eql(br,M.ONE))throw new Error("invZ was invalid");return{x:ar,y:Br}}isTorsionFree(){const{h:Yt,isTorsionFree:qt}=x;if(Yt===Bi)return!0;if(qt)return qt(jt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Yt,clearCofactor:qt}=x;return Yt===Bi?this:qt?qt(jt,this):this.multiplyUnsafe(x.h)}toRawBytes(Yt=!0){return this.assertValidity(),z(jt,this,Yt)}toHex(Yt=!0){return fn(this.toRawBytes(Yt))}}jt.BASE=new jt(x.Gx,x.Gy,M.ONE),jt.ZERO=new jt(M.ZERO,M.ONE,M.ZERO);const cn=x.nBitLength,gn=function so(b,x){const M=(J,ye)=>{const Ne=ye.negate();return J?Ne:ye},z=J=>({windows:Math.ceil(x/J)+1,windowSize:2**(J-1)});return{constTimeNegate:M,unsafeLadder(J,ye){let Ne=b.ZERO,Ue=J;for(;ye>oi;)ye&ts&&(Ne=Ne.add(Ue)),Ue=Ue.double(),ye>>=ts;return Ne},precomputeWindow(J,ye){const{windows:Ne,windowSize:Ue}=z(ye),rt=[];let xt=J,zt=xt;for(let jt=0;jt>=gn,qt>rt&&(qt-=cn,Ne+=ts);const Dn=Yt,Tn=Yt+Math.abs(qt)-1,ar=qt<0;0===qt?zt=zt.add(M(tn%2!=0,ye[Dn])):xt=xt.add(M(ar,ye[Tn]))}return{p:xt,f:zt}},wNAFCached(J,ye,Ne,Ue){const rt=J._WINDOW_SIZE||1;let xt=ye.get(J);return xt||(xt=this.precomputeWindow(J,rt),1!==rt&&ye.set(J,Ue(xt))),this.wNAF(rt,xt,Ne)}}}(jt,x.endo?Math.ceil(cn/2):cn);return{CURVE:x,ProjectivePoint:jt,normPrivateKeyToScalar:rt,weierstrassEquation:ye,isWithinCurveOrder:Ne}}({...x,toBytes(er,wr,Zr){const pi=wr.toAffine(),xr=M.toBytes(pi.x),Vi=xn;return Zr?Vi(Uint8Array.from([wr.hasEvenY()?2:3]),xr):Vi(Uint8Array.from([4]),xr,M.toBytes(pi.y))},fromBytes(er){const wr=er.length,Zr=er[0],pi=er.subarray(1);if(wr!==J||2!==Zr&&3!==Zr){if(wr===ye&&4===Zr)return{x:M.fromBytes(pi.subarray(0,M.BYTES)),y:M.fromBytes(pi.subarray(M.BYTES,2*M.BYTES))};throw new Error(`Point of length ${wr} was invalid. Expected ${J} compressed bytes or ${ye} uncompressed bytes`)}{const xr=an(pi);if(!function Ne(er){return oofn(En(er,x.nByteLength));function tn(er){return er>z>>Bi}const qt=(er,wr,Zr)=>an(er.slice(wr,Zr));class Dn{constructor(wr,Zr,pi){this.r=wr,this.s=Zr,this.recovery=pi,this.assertValidity()}static fromCompact(wr){const Zr=x.nByteLength;return wr=Kt("compactSignature",wr,2*Zr),new Dn(qt(wr,0,Zr),qt(wr,Zr,2*Zr))}static fromDER(wr){const{r:Zr,s:pi}=eo.toSig(Kt("DER",wr));return new Dn(Zr,pi)}assertValidity(){if(!cn(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!cn(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(wr){return new Dn(this.r,this.s,wr)}recoverPublicKey(wr){const{r:Zr,s:pi,recovery:xr}=this,Vi=Nr(Kt("msgHash",wr));if(null==xr||![0,1,2,3].includes(xr))throw new Error("recovery id invalid");const ki=2===xr||3===xr?Zr+x.n:Zr;if(ki>=M.ORDER)throw new Error("recovery id 2 or 3 invalid");const Hs=xt.fromHex((1&xr?"03":"02")+gn(ki)),Ws=rt(ki),Ma=Ue(-Vi*Ws),gl=Ue(pi*Ws),Ia=xt.BASE.multiplyAndAddUnsafe(Hs,Ma,gl);if(!Ia)throw new Error("point at infinify");return Ia.assertValidity(),Ia}hasHighS(){return tn(this.s)}normalizeS(){return this.hasHighS()?new Dn(this.r,Ue(-this.s),this.recovery):this}toDERRawBytes(){return Qt(this.toDERHex())}toDERHex(){return eo.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Qt(this.toCompactHex())}toCompactHex(){return gn(this.r)+gn(this.s)}}const Tn={isValidPrivateKey(er){try{return zt(er),!0}catch{return!1}},normPrivateKeyToScalar:zt,randomPrivateKey:()=>{const er=fr(x.n);return function uo(b,x,M=!1){const z=b.length,J=Hn(x),ye=fr(x);if(z<16||z1024)throw new Error(`expected ${ye}-1024 bytes of input, got ${z}`);const Ue=Bt(M?an(b):Xn(b),x-dn)+dn;return M?Gt(Ue,J):En(Ue,J)}(x.randomBytes(er),x.n)},precompute:(er=8,wr=xt.BASE)=>(wr._setWindowSize(er),wr.multiply(BigInt(3)),wr)};function ar(er){const wr=er instanceof Uint8Array,Zr="string"==typeof er,pi=(wr||Zr)&&er.length;return wr?pi===J||pi===ye:Zr?pi===2*J||pi===2*ye:er instanceof xt}const br=x.bits2int||function(er){const wr=an(er),Zr=8*er.length-x.nBitLength;return Zr>0?wr>>BigInt(Zr):wr},Nr=x.bits2int_modN||function(er){return Ue(br(er))},Vr=j(x.nBitLength);function Ci(er){if("bigint"!=typeof er)throw new Error("bigint expected");if(!(oo<=er&&ervs in Zr))throw new Error("sign() legacy options not supported");const{hash:pi,randomBytes:xr}=x;let{lowS:Vi,prehash:ki,extraEntropy:Ri}=Zr;null==Vi&&(Vi=!0),er=Kt("msgHash",er),ki&&(er=Kt("prehashed msgHash",pi(er)));const Hs=Nr(er),Ws=zt(wr),Ma=[Ci(Ws),Ci(Hs)];if(null!=Ri){const vs=!0===Ri?xr(M.BYTES):Ri;Ma.push(Kt("extraEntropy",vs))}const gl=xn(...Ma),Ia=Hs;return{seed:gl,k2sig:function Ga(vs){const Ic=br(vs);if(!cn(Ic))return;const kf=rt(Ic),Fl=xt.BASE.multiply(Ic).toAffine(),Bl=Ue(Fl.x);if(Bl===oo)return;const xu=Ue(kf*Ue(Ia+Bl*Ws));if(xu===oo)return;let Cu=(Fl.x===Bl?0:2)|Number(Fl.y&Bi),Yu=xu;return Vi&&tn(xu)&&(Yu=function Yt(er){return tn(er)?Ue(-er):er}(xu),Cu^=1),new Dn(Bl,Yu,Cu)}}}(er,wr,Zr);return ot(x.hash.outputLen,x.nByteLength,x.hmac)(pi,xr)},verify:function qi(er,wr,Zr,pi=Ji){const xr=er;if(wr=Kt("msgHash",wr),Zr=Kt("publicKey",Zr),"strict"in pi)throw new Error("options.strict was renamed to lowS");const{lowS:Vi,prehash:ki}=pi;let Ri,Hs;try{if("string"==typeof xr||xr instanceof Uint8Array)try{Ri=Dn.fromDER(xr)}catch(Fl){if(!(Fl instanceof eo.Err))throw Fl;Ri=Dn.fromCompact(xr)}else{if("object"!=typeof xr||"bigint"!=typeof xr.r||"bigint"!=typeof xr.s)throw new Error("PARSE");{const{r:Fl,s:Bl}=xr;Ri=new Dn(Fl,Bl)}}Hs=xt.fromHex(Zr)}catch(Fl){if("PARSE"===Fl.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Vi&&Ri.hasHighS())return!1;ki&&(wr=x.hash(wr));const{r:Ws,s:Ma}=Ri,gl=Nr(wr),Ia=rt(Ma),Ga=Ue(gl*Ia),vs=Ue(Ws*Ia),Ic=xt.BASE.multiplyAndAddUnsafe(Hs,Ga,vs)?.toAffine();return!!Ic&&Ue(Ic.x)===Ws},ProjectivePoint:xt,Signature:Dn,utils:Tn}}function $t(b){return{hash:b,hmac:(x,...M)=>Uo(b,x,function $e(...b){const x=new Uint8Array(b.reduce((z,J)=>z+J.length,0));let M=0;return b.forEach(z=>{if(!G(z))throw new Error("Uint8Array expected");x.set(z,M),M+=z.length}),x}(...M)),randomBytes:yn}}BigInt(4);const un=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Cn=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Sn=BigInt(1),kn=BigInt(2),Un=(b,x)=>(b+x/kn)/x;function Jn(b){const x=un,M=BigInt(3),z=BigInt(6),J=BigInt(11),ye=BigInt(22),Ne=BigInt(23),Ue=BigInt(44),rt=BigInt(88),xt=b*b*b%x,zt=xt*xt*b%x,jt=lt(zt,M,x)*zt%x,cn=lt(jt,M,x)*zt%x,gn=lt(cn,kn,x)*xt%x,tn=lt(gn,J,x)*gn%x,Yt=lt(tn,ye,x)*tn%x,qt=lt(Yt,Ue,x)*Yt%x,Dn=lt(qt,rt,x)*qt%x,Tn=lt(Dn,Ue,x)*Yt%x,rr=lt(Tn,M,x)*zt%x,ar=lt(rr,Ne,x)*tn%x,Br=lt(ar,z,x)*xt%x,br=lt(Br,kn,x);if(!sr.eql(sr.sqr(br),b))throw new Error("Cannot find square root");return br}const sr=function St(b,x,M=!1,z={}){if(b<=Vt)throw new Error(`Expected Field ORDER > 0, got ${b}`);const{nBitLength:J,nByteLength:ye}=rn(b,x);if(ye>2048)throw new Error("Field lengths over 2048 bytes are not supported");const Ne=function ft(b){if(b%Bn===Fn){const x=(b+dn)/Bn;return function(z,J){const ye=z.pow(J,x);if(!z.eql(z.sqr(ye),J))throw new Error("Cannot find square root");return ye}}if(b%Jr===cr){const x=(b-cr)/Jr;return function(z,J){const ye=z.mul(J,Pn),Ne=z.pow(ye,x),Ue=z.mul(J,Ne),rt=z.mul(z.mul(Ue,Pn),Ne),xt=z.mul(Ue,z.sub(rt,z.ONE));if(!z.eql(z.sqr(xt),J))throw new Error("Cannot find square root");return xt}}return function kt(b){const x=(b-dn)/Pn;let M,z,J;for(M=b-dn,z=0;M%Pn===Vt;M/=Pn,z++);for(J=Pn;JBt(rt,b),isValid:rt=>{if("bigint"!=typeof rt)throw new Error("Invalid field element: expected bigint, got "+typeof rt);return Vt<=rt&&rtrt===Vt,isOdd:rt=>(rt&dn)===dn,neg:rt=>Bt(-rt,b),eql:(rt,xt)=>rt===xt,sqr:rt=>Bt(rt*rt,b),add:(rt,xt)=>Bt(rt+xt,b),sub:(rt,xt)=>Bt(rt-xt,b),mul:(rt,xt)=>Bt(rt*xt,b),pow:(rt,xt)=>function Mr(b,x,M){if(M 0");if(M===Vt)return b.ONE;if(M===dn)return x;let z=b.ONE,J=x;for(;M>Vt;)M&dn&&(z=b.mul(z,J)),J=b.sqr(J),M>>=dn;return z}(Ue,rt,xt),div:(rt,xt)=>Bt(rt*Pe(xt,b),b),sqrN:rt=>rt*rt,addN:(rt,xt)=>rt+xt,subN:(rt,xt)=>rt-xt,mulN:(rt,xt)=>rt*xt,inv:rt=>Pe(rt,b),sqrt:z.sqrt||(rt=>Ne(Ue,rt)),invertBatch:rt=>function ii(b,x){const M=new Array(x.length),z=x.reduce((ye,Ne,Ue)=>b.is0(Ne)?ye:(M[Ue]=ye,b.mul(ye,Ne)),b.ONE),J=b.inv(z);return x.reduceRight((ye,Ne,Ue)=>b.is0(Ne)?ye:(M[Ue]=b.mul(ye,M[Ue]),b.mul(ye,Ne)),J),M}(Ue,rt),cmov:(rt,xt,zt)=>zt?xt:rt,toBytes:rt=>M?Gt(rt,ye):En(rt,ye),fromBytes:rt=>{if(rt.length!==ye)throw new Error(`Fp.fromBytes: expected ${ye}, got ${rt.length}`);return M?Xn(rt):an(rt)}});return Object.freeze(Ue)}(un,void 0,void 0,{sqrt:Jn}),kr=function Mt(b,x){const M=z=>et({...b,...$t(z)});return Object.freeze({...M(x),create:M})}({a:BigInt(0),b:BigInt(7),Fp:sr,n:Cn,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:b=>{const x=Cn,M=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),z=-Sn*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),J=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ye=M,Ne=BigInt("0x100000000000000000000000000000000"),Ue=Un(ye*b,x),rt=Un(-z*b,x);let xt=Bt(b-Ue*M-rt*J,x),zt=Bt(-Ue*z-rt*ye,x);const jt=xt>Ne,cn=zt>Ne;if(jt&&(xt=x-xt),cn&&(zt=x-zt),xt>Ne||zt>Ne)throw new Error("splitScalar: Endomorphism failed, k="+b);return{k1neg:jt,k1:xt,k2neg:cn,k2:zt}}}},Ge),mr=BigInt(0),bi=b=>"bigint"==typeof b&&mrJ.charCodeAt(0)));M=xn(z,z),gr[b]=M}return Ge(xn(M,...x))}const vo=b=>b.toRawBytes(!0).slice(1),$r=b=>En(b,32),Ki=b=>Bt(b,un),cs=b=>Bt(b,Cn),ws=kr.ProjectivePoint;function Sr(b){let x=kr.utils.normPrivateKeyToScalar(b),M=ws.fromPrivateKey(x);return{scalar:M.hasEvenY()?x:cs(-x),bytes:vo(M)}}function oa(b){if(!bi(b))throw new Error("bad x: need 0 < x < p");const x=Ki(b*b);let z=Jn(Ki(x*b+BigInt(7)));z%kn!==mr&&(z=Ki(-z));const J=new ws(b,z,Sn);return J.assertValidity(),J}function ma(...b){return cs(an(ai("BIP0340/challenge",...b)))}function Ps(b,x,M){const z=Kt("signature",b,64),J=Kt("message",x),ye=Kt("publicKey",M,32);try{const Ne=oa(an(ye)),Ue=an(z.subarray(0,32));if(!bi(Ue))return!1;const rt=an(z.subarray(32,64));if(!(b=>"bigint"==typeof b&&mrws.BASE.multiplyAndAddUnsafe(b,x,M))(Ne,rt,cs(-xt));return!(!zt||!zt.hasEvenY()||zt.toAffine().x!==Ue)}catch{return!1}}const Xs={getPublicKey:function wo(b){return Sr(b).bytes},sign:function Ls(b,x,M=yn(32)){const z=Kt("message",b),{bytes:J,scalar:ye}=Sr(x),Ne=Kt("auxRand",M,32),Ue=$r(ye^an(ai("BIP0340/aux",Ne))),rt=ai("BIP0340/nonce",Ue,J,z),xt=cs(an(rt));if(xt===mr)throw new Error("sign failed: k is zero");const{bytes:zt,scalar:jt}=Sr(xt),cn=ma(zt,J,z),gn=new Uint8Array(64);if(gn.set(zt,0),gn.set($r(cs(jt+cn*ye)),32),!Ps(gn,z,J))throw new Error("sign: Invalid signature produced");return gn},verify:Ps,utils:{randomPrivateKey:kr.utils.randomPrivateKey,lift_x:oa,pointToBytes:vo,numberToBytesBE:En,bytesToNumberBE:an,taggedHash:ai,mod:Bt}};var qr=r(6391);function rs(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`Wrong positive integer: ${b}`)}function to(b,...x){if(!(b instanceof Uint8Array))throw new Error("Expected Uint8Array");if(x.length>0&&!x.includes(b.length))throw new Error(`Expected Uint8Array of length ${x}, not of length=${b.length}`)}const tr={number:rs,bool:function is(b){if("boolean"!=typeof b)throw new Error(`Expected boolean, not ${b}`)},bytes:to,hash:function Wi(b){if("function"!=typeof b||"function"!=typeof b.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");rs(b.outputLen),rs(b.blockLen)},exists:function Es(b,x=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(x&&b.finished)throw new Error("Hash#digest() has already been called")},output:function Io(b,x){to(b);const M=x.outputLen;if(b.lengthJ-Ne&&(this.process(z,0),Ne=0);for(let jt=Ne;jt>J&ye),Ue=Number(M&ye),xt=z?0:4;b.setUint32(x+(z?4:0),Ne,z),b.setUint32(x+xt,Ue,z)})(z,J-8,BigInt(8*this.length),ye),this.process(z,0);const Ue=(0,qr.O8)(x),rt=this.outputLen;if(rt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const xt=rt/4,zt=this.get();if(xt>zt.length)throw new Error("_sha2: outputLen bigger than state");for(let jt=0;jtb&x^~b&M,Bs=(b,x,M)=>b&x^b&M^x&M,va=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]),Yo=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ti=new Uint32Array(64);class sa extends os{constructor(){super(64,32,8,!1),this.A=0|Yo[0],this.B=0|Yo[1],this.C=0|Yo[2],this.D=0|Yo[3],this.E=0|Yo[4],this.F=0|Yo[5],this.G=0|Yo[6],this.H=0|Yo[7]}get(){const{A:x,B:M,C:z,D:J,E:ye,F:Ne,G:Ue,H:rt}=this;return[x,M,z,J,ye,Ne,Ue,rt]}set(x,M,z,J,ye,Ne,Ue,rt){this.A=0|x,this.B=0|M,this.C=0|z,this.D=0|J,this.E=0|ye,this.F=0|Ne,this.G=0|Ue,this.H=0|rt}process(x,M){for(let jt=0;jt<16;jt++,M+=4)Ti[jt]=x.getUint32(M,!1);for(let jt=16;jt<64;jt++){const cn=Ti[jt-15],gn=Ti[jt-2],tn=(0,qr.Ow)(cn,7)^(0,qr.Ow)(cn,18)^cn>>>3,Yt=(0,qr.Ow)(gn,17)^(0,qr.Ow)(gn,19)^gn>>>10;Ti[jt]=Yt+Ti[jt-7]+tn+Ti[jt-16]|0}let{A:z,B:J,C:ye,D:Ne,E:Ue,F:rt,G:xt,H:zt}=this;for(let jt=0;jt<64;jt++){const gn=zt+((0,qr.Ow)(Ue,6)^(0,qr.Ow)(Ue,11)^(0,qr.Ow)(Ue,25))+ks(Ue,rt,xt)+va[jt]+Ti[jt]|0,Yt=((0,qr.Ow)(z,2)^(0,qr.Ow)(z,13)^(0,qr.Ow)(z,22))+Bs(z,J,ye)|0;zt=xt,xt=rt,rt=Ue,Ue=Ne+gn|0,Ne=ye,ye=J,J=z,z=gn+Yt|0}z=z+this.A|0,J=J+this.B|0,ye=ye+this.C|0,Ne=Ne+this.D|0,Ue=Ue+this.E|0,rt=rt+this.F|0,xt=xt+this.G|0,zt=zt+this.H|0,this.set(z,J,ye,Ne,Ue,rt,xt,zt)}roundClean(){Ti.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class yl extends sa{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 Qo=(0,qr.ld)(()=>new sa);(0,qr.ld)(()=>new yl);var ao=r(3813);function ss(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`positive integer expected, not ${b}`)}function _o(b){if("boolean"!=typeof b)throw new Error(`boolean expected, not ${b}`)}function Zo(b){return b instanceof Uint8Array||null!=b&&"object"==typeof b&&"Uint8Array"===b.constructor.name}function _i(b,...x){if(!Zo(b))throw new Error("Uint8Array expected");if(x.length>0&&!x.includes(b.length))throw new Error(`Uint8Array expected of length ${x}, not of length=${b.length}`)}function ko(b,x=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(x&&b.finished)throw new Error("Hash#digest() has already been called")}function Qs(b,x){_i(b);const M=x.outputLen;if(b.lengthnew Uint32Array(b.buffer,b.byteOffset,Math.floor(b.byteLength/4)),re=b=>new DataView(b.buffer,b.byteOffset,b.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Ho(b){if("string"==typeof b)b=function ho(b){if("string"!=typeof b)throw new Error("string expected, got "+typeof b);return new Uint8Array((new TextEncoder).encode(b))}(b);else{if(!Zo(b))throw new Error("Uint8Array expected, got "+typeof b);b=b.slice()}return b}function Qa(b,x){if(b.length!==x.length)return!1;let M=0;for(let z=0;z(Object.assign(x,b),x);function ce(b,x,M,z){if("function"==typeof b.setBigUint64)return b.setBigUint64(x,M,z);const J=BigInt(32),ye=BigInt(4294967295),Ne=Number(M>>J&ye),Ue=Number(M&ye),xt=z?0:4;b.setUint32(x+(z?4:0),Ne,z),b.setUint32(x+xt,Ue,z)}const Ut=new Uint8Array(16),vr=je(Ut),Do=(b,x,M,z)=>({s3:M<<31|z>>>1,s2:x<<31|M>>>1,s1:b<<31|x>>>1,s0:b>>>1^225<<24&-(1&z)}),qo=b=>(b>>>0&255)<<24|(b>>>8&255)<<16|(b>>>16&255)<<8|b>>>24&255;class nc{constructor(x,M){this.blockLen=16,this.outputLen=16,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,_i(x=Ho(x),16);const z=re(x);let J=z.getUint32(0,!1),ye=z.getUint32(4,!1),Ne=z.getUint32(8,!1),Ue=z.getUint32(12,!1);const rt=[];for(let tn=0;tn<128;tn++)rt.push({s0:qo(J),s1:qo(ye),s2:qo(Ne),s3:qo(Ue)}),({s0:J,s1:ye,s2:Ne,s3:Ue}=Do(J,ye,Ne,Ue));const xt=(b=M||1024)>65536?8:b>1024?4:2;var b;if(![1,2,4,8].includes(xt))throw new Error(`ghash: wrong window size=${xt}, should be 2, 4 or 8`);this.W=xt;const jt=128/xt,cn=this.windowSize=2**xt,gn=[];for(let tn=0;tn>>xt-ar-1&1))continue;const{s0:br,s1:Nr,s2:Vr,s3:Ci}=rt[xt*tn+ar];qt^=br,Dn^=Nr,Tn^=Vr,rr^=Ci}gn.push({s0:qt,s1:Dn,s2:Tn,s3:rr})}this.t=gn}_updateBlock(x,M,z,J){x^=this.s0,M^=this.s1,z^=this.s2,J^=this.s3;const{W:ye,t:Ne,windowSize:Ue}=this;let rt=0,xt=0,zt=0,jt=0;const cn=(1<>>8*Yt&255;for(let Dn=8/ye-1;Dn>=0;Dn--){const Tn=qt>>>ye*Dn&cn,{s0:rr,s1:ar,s2:Br,s3:br}=Ne[gn*Ue+Tn];rt^=rr,xt^=ar,zt^=Br,jt^=br,gn+=1}}this.s0=rt,this.s1=xt,this.s2=zt,this.s3=jt}update(x){x=Ho(x),ko(this);const M=je(x),z=Math.floor(x.length/16),J=x.length%16;for(let ye=0;ye>>1|M,M=(1&J)<<7}return b[0]^=225&-x,b}((x=Ho(x)).slice());super(z,M),z.fill(0)}update(x){x=Ho(x),ko(this);const M=je(x),z=x.length%16,J=Math.floor(x.length/16);for(let ye=0;yeb(J,z.length).update(Ho(z)).digest(),M=b(new Uint8Array(16),0);return x.outputLen=M.outputLen,x.blockLen=M.blockLen,x.create=(z,J)=>b(z,J),x}function la(b){return b<<1^283&-(b>>7)}function $a(b,x){let M=0;for(;x>0;x>>=1)M^=b&-(1&x),b=la(b);return M}us((b,x)=>new nc(b,x)),us((b,x)=>new wl(b,x)),new Uint8Array(16);const vc=(()=>{let b=new Uint8Array(256);for(let M=0,z=1;M<256;M++,z^=la(z))b[M]=z;const x=new Uint8Array(256);x[0]=99;for(let M=0;M<255;M++){let z=b[255-M];z|=z<<8,x[b[M]]=255&(z^z>>4^z>>5^z>>6^z>>7^99)}return x})(),Ou=vc.map((b,x)=>vc.indexOf(x)),rc=b=>b<<24|b>>>8,ja=b=>b<<8|b>>>24;function Wl(b,x){if(256!==b.length)throw new Error("Wrong sbox length");const M=new Uint32Array(256).map((xt,zt)=>x(b[zt])),z=M.map(ja),J=z.map(ja),ye=J.map(ja),Ne=new Uint32Array(65536),Ue=new Uint32Array(65536),rt=new Uint16Array(65536);for(let xt=0;xt<256;xt++)for(let zt=0;zt<256;zt++){const jt=256*xt+zt;Ne[jt]=M[xt]^z[zt],Ue[jt]=J[xt]^ye[zt],rt[jt]=b[xt]<<8|b[zt]}return{sbox:b,sbox2:rt,T0:M,T1:z,T2:J,T3:ye,T01:Ne,T23:Ue}}const ba=Wl(vc,b=>$a(b,3)<<24|b<<16|b<<8|$a(b,2)),qa=Wl(Ou,b=>$a(b,11)<<24|$a(b,13)<<16|$a(b,9)<<8|$a(b,14)),Cl=(()=>{const b=new Uint8Array(16);for(let x=0,M=1;x<16;x++,M=la(M))b[x]=M;return b})();function Ro(b){_i(b);const x=b.length;if(![16,24,32].includes(x))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${x}`);const{sbox2:M}=ba,z=je(b),J=z.length,ye=Ue=>Ea(M,Ue,Ue,Ue,Ue),Ne=new Uint32Array(x+28);Ne.set(z);for(let Ue=J;Ue6&&Ue%J==4&&(rt=ye(rt)),Ne[Ue]=Ne[Ue-J]^rt}return Ne}function wa(b,x,M,z,J,ye){return b[M<<8&65280|z>>>8&255]^x[J>>>8&65280|ye>>>24&255]}function Ea(b,x,M,z,J){return b[255&x|65280&M]|b[z>>>16&255|J>>>16&65280]<<16}function Jo(b,x,M,z,J){const{sbox2:ye,T01:Ne,T23:Ue}=ba;let rt=0;x^=b[rt++],M^=b[rt++],z^=b[rt++],J^=b[rt++];const xt=b.length/4-2;for(let tn=0;tn{const Ue=Ro(x),{b:rt,o:xt,out:zt}=function xa(b,x,M){let z=b.length;const J=z%16;if(!x&&0!==J)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");const ye=je(b);if(x){let rt=16-J;rt||(rt=16),z+=rt}const Ne=al(z,M);return{b:ye,o:je(Ne),out:Ne}}(ye,J,Ne),jt=je(M);let cn=jt[0],gn=jt[1],tn=jt[2],Yt=jt[3],qt=0;for(;qt+4<=rt.length;)cn^=rt[qt+0],gn^=rt[qt+1],tn^=rt[qt+2],Yt^=rt[qt+3],({s0:cn,s1:gn,s2:tn,s3:Yt}=Jo(Ue,cn,gn,tn,Yt)),xt[qt++]=cn,xt[qt++]=gn,xt[qt++]=tn,xt[qt++]=Yt;if(J){const Dn=function Ui(b){const x=new Uint8Array(16),M=je(x);x.set(b);const z=16-b.length;for(let J=16-z;J<16;J++)x[J]=z;return M}(ye.subarray(4*qt));cn^=Dn[0],gn^=Dn[1],tn^=Dn[2],Yt^=Dn[3],({s0:cn,s1:gn,s2:tn,s3:Yt}=Jo(Ue,cn,gn,tn,Yt)),xt[qt++]=cn,xt[qt++]=gn,xt[qt++]=tn,xt[qt++]=Yt}return Ue.fill(0),zt},decrypt:(ye,Ne)=>{!function Gl(b){if(_i(b),b.length%16!=0)throw new Error("aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16")}(ye);const Ue=function co(b){const x=Ro(b),M=x.slice(),z=x.length,{sbox2:J}=ba,{T0:ye,T1:Ne,T2:Ue,T3:rt}=qa;for(let xt=0;xt>>8&255]^Ue[jt>>>16&255]^rt[jt>>>24]}return M}(x),rt=je(M),xt=al(ye.length,Ne),zt=je(ye),jt=je(xt);let cn=rt[0],gn=rt[1],tn=rt[2],Yt=rt[3];for(let qt=0;qt+4<=zt.length;){const Dn=cn,Tn=gn,rr=tn,ar=Yt;cn=zt[qt+0],gn=zt[qt+1],tn=zt[qt+2],Yt=zt[qt+3];const{s0:Br,s1:br,s2:Nr,s3:Vr}=_c(Ue,cn,gn,tn,Yt);jt[qt++]=Br^Dn,jt[qt++]=br^Tn,jt[qt++]=Nr^rr,jt[qt++]=Vr^ar}return Ue.fill(0),function ds(b,x){if(!x)return b;const M=b.length;if(!M)throw new Error("aes/pcks5: empty ciphertext not allowed");const z=b[M-1];if(z<=0||z>16)throw new Error(`aes/pcks5: wrong padding byte: ${z}`);const J=b.subarray(0,-z);for(let ye=0;ye255&b[x++]|(255&b[x++])<<8;class ic{constructor(x){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,_i(x=Ho(x),32);const M=po(x,0),z=po(x,2),J=po(x,4),ye=po(x,6),Ne=po(x,8),Ue=po(x,10),rt=po(x,12),xt=po(x,14);this.r[0]=8191&M,this.r[1]=8191&(M>>>13|z<<3),this.r[2]=7939&(z>>>10|J<<6),this.r[3]=8191&(J>>>7|ye<<9),this.r[4]=255&(ye>>>4|Ne<<12),this.r[5]=Ne>>>1&8190,this.r[6]=8191&(Ne>>>14|Ue<<2),this.r[7]=8065&(Ue>>>11|rt<<5),this.r[8]=8191&(rt>>>8|xt<<8),this.r[9]=xt>>>5&127;for(let zt=0;zt<8;zt++)this.pad[zt]=po(x,16+2*zt)}process(x,M,z=!1){const J=z?0:2048,{h:ye,r:Ne}=this,Ue=Ne[0],rt=Ne[1],xt=Ne[2],zt=Ne[3],jt=Ne[4],cn=Ne[5],gn=Ne[6],tn=Ne[7],Yt=Ne[8],qt=Ne[9],Dn=po(x,M+0),Tn=po(x,M+2),rr=po(x,M+4),ar=po(x,M+6),Br=po(x,M+8),br=po(x,M+10),Nr=po(x,M+12),Vr=po(x,M+14);let Ci=ye[0]+(8191&Dn),fi=ye[1]+(8191&(Dn>>>13|Tn<<3)),li=ye[2]+(8191&(Tn>>>10|rr<<6)),Ji=ye[3]+(8191&(rr>>>7|ar<<9)),ji=ye[4]+(8191&(ar>>>4|Br<<12)),qi=ye[5]+(Br>>>1&8191),er=ye[6]+(8191&(Br>>>14|br<<2)),wr=ye[7]+(8191&(br>>>11|Nr<<5)),Zr=ye[8]+(8191&(Nr>>>8|Vr<<8)),pi=ye[9]+(Vr>>>5|J),xr=0,Vi=xr+Ci*Ue+fi*(5*qt)+li*(5*Yt)+Ji*(5*tn)+ji*(5*gn);xr=Vi>>>13,Vi&=8191,Vi+=qi*(5*cn)+er*(5*jt)+wr*(5*zt)+Zr*(5*xt)+pi*(5*rt),xr+=Vi>>>13,Vi&=8191;let ki=xr+Ci*rt+fi*Ue+li*(5*qt)+Ji*(5*Yt)+ji*(5*tn);xr=ki>>>13,ki&=8191,ki+=qi*(5*gn)+er*(5*cn)+wr*(5*jt)+Zr*(5*zt)+pi*(5*xt),xr+=ki>>>13,ki&=8191;let Ri=xr+Ci*xt+fi*rt+li*Ue+Ji*(5*qt)+ji*(5*Yt);xr=Ri>>>13,Ri&=8191,Ri+=qi*(5*tn)+er*(5*gn)+wr*(5*cn)+Zr*(5*jt)+pi*(5*zt),xr+=Ri>>>13,Ri&=8191;let Hs=xr+Ci*zt+fi*xt+li*rt+Ji*Ue+ji*(5*qt);xr=Hs>>>13,Hs&=8191,Hs+=qi*(5*Yt)+er*(5*tn)+wr*(5*gn)+Zr*(5*cn)+pi*(5*jt),xr+=Hs>>>13,Hs&=8191;let Ws=xr+Ci*jt+fi*zt+li*xt+Ji*rt+ji*Ue;xr=Ws>>>13,Ws&=8191,Ws+=qi*(5*qt)+er*(5*Yt)+wr*(5*tn)+Zr*(5*gn)+pi*(5*cn),xr+=Ws>>>13,Ws&=8191;let Ma=xr+Ci*cn+fi*jt+li*zt+Ji*xt+ji*rt;xr=Ma>>>13,Ma&=8191,Ma+=qi*Ue+er*(5*qt)+wr*(5*Yt)+Zr*(5*tn)+pi*(5*gn),xr+=Ma>>>13,Ma&=8191;let gl=xr+Ci*gn+fi*cn+li*jt+Ji*zt+ji*xt;xr=gl>>>13,gl&=8191,gl+=qi*rt+er*Ue+wr*(5*qt)+Zr*(5*Yt)+pi*(5*tn),xr+=gl>>>13,gl&=8191;let Ia=xr+Ci*tn+fi*gn+li*cn+Ji*jt+ji*zt;xr=Ia>>>13,Ia&=8191,Ia+=qi*xt+er*rt+wr*Ue+Zr*(5*qt)+pi*(5*Yt),xr+=Ia>>>13,Ia&=8191;let Ga=xr+Ci*Yt+fi*tn+li*gn+Ji*cn+ji*jt;xr=Ga>>>13,Ga&=8191,Ga+=qi*zt+er*xt+wr*rt+Zr*Ue+pi*(5*qt),xr+=Ga>>>13,Ga&=8191;let vs=xr+Ci*qt+fi*Yt+li*tn+Ji*gn+ji*cn;xr=vs>>>13,vs&=8191,vs+=qi*jt+er*zt+wr*xt+Zr*rt+pi*Ue,xr+=vs>>>13,vs&=8191,xr=(xr<<2)+xr|0,xr=xr+Vi|0,Vi=8191&xr,xr>>>=13,ki+=xr,ye[0]=Vi,ye[1]=ki,ye[2]=Ri,ye[3]=Hs,ye[4]=Ws,ye[5]=Ma,ye[6]=gl,ye[7]=Ia,ye[8]=Ga,ye[9]=vs}finalize(){const{h:x,pad:M}=this,z=new Uint16Array(10);let J=x[1]>>>13;x[1]&=8191;for(let Ue=2;Ue<10;Ue++)x[Ue]+=J,J=x[Ue]>>>13,x[Ue]&=8191;x[0]+=5*J,J=x[0]>>>13,x[0]&=8191,x[1]+=J,J=x[1]>>>13,x[1]&=8191,x[2]+=J,z[0]=x[0]+5,J=z[0]>>>13,z[0]&=8191;for(let Ue=1;Ue<10;Ue++)z[Ue]=x[Ue]+J,J=z[Ue]>>>13,z[Ue]&=8191;z[9]-=8192;let ye=(1^J)-1;for(let Ue=0;Ue<10;Ue++)z[Ue]&=ye;ye=~ye;for(let Ue=0;Ue<10;Ue++)x[Ue]=x[Ue]&ye|z[Ue];x[0]=65535&(x[0]|x[1]<<13),x[1]=65535&(x[1]>>>3|x[2]<<10),x[2]=65535&(x[2]>>>6|x[3]<<7),x[3]=65535&(x[3]>>>9|x[4]<<4),x[4]=65535&(x[4]>>>12|x[5]<<1|x[6]<<14),x[5]=65535&(x[6]>>>2|x[7]<<11),x[6]=65535&(x[7]>>>5|x[8]<<8),x[7]=65535&(x[8]>>>8|x[9]<<5);let Ne=x[0]+M[0];x[0]=65535&Ne;for(let Ue=1;Ue<8;Ue++)Ne=(x[Ue]+M[Ue]|0)+(Ne>>>16)|0,x[Ue]=65535&Ne}update(x){ko(this);const{buffer:M,blockLen:z}=this,J=(x=Ho(x)).length;for(let ye=0;ye>>0,x[ye++]=z[Ne]>>>8;return x}digest(){const{buffer:x,outputLen:M}=this;this.digestInto(x);const z=x.slice(0,M);return this.destroy(),z}}const ro=function Va(b){const x=(z,J)=>b(J).update(Ho(z)).digest(),M=b(new Uint8Array(32));return x.outputLen=M.outputLen,x.blockLen=M.blockLen,x.create=z=>b(z),x}(b=>new ic(b)),Ha=b=>Uint8Array.from(b.split("").map(x=>x.charCodeAt(0))),Di=Ha("expand 16-byte k"),$s=Ha("expand 32-byte k"),ca=je(Di),No=je($s);function de(b,x){return b<>>32-x}function q(b){return b.byteOffset%4==0}No.slice();const _n=2**32-1,On=new Uint32Array;function Yr(b,x){const{allowShortKeys:M,extendNonceFn:z,counterLength:J,counterRight:ye,rounds:Ne}=function Hl(b,x){if(null==x||"object"!=typeof x)throw new Error("options must be defined");return Object.assign(b,x)}({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},x);if("function"!=typeof b)throw new Error("core must be a function");return ss(J),ss(Ne),_o(ye),_o(M),(Ue,rt,xt,zt,jt=0)=>{_i(Ue),_i(rt),_i(xt);const cn=xt.length;if(zt||(zt=new Uint8Array(cn)),_i(zt),ss(jt),jt<0||jt>=_n)throw new Error("arx: counter overflow");if(zt.length=_n)throw new Error("arx: counter overflow");const Yt=Math.min(64,rt-tn);if(jt&&64===Yt){const qt=tn/4;if(tn%4!=0)throw new Error("arx: invalid block position");for(let Tn,Dn=0;Dn<16;Dn++)Tn=qt+Dn,gn[Tn]=cn[Tn]^zt[Dn];tn+=64}else{for(let Dn,qt=0;qt0;)gn.pop().fill(0);return zt}}function Li(b,x,M,z,J,ye=20){let Ne=b[0],Ue=b[1],rt=b[2],xt=b[3],zt=x[0],jt=x[1],cn=x[2],gn=x[3],tn=x[4],Yt=x[5],qt=x[6],Dn=x[7],Tn=J,rr=M[0],ar=M[1],Br=M[2],br=Ne,Nr=Ue,Vr=rt,Ci=xt,fi=zt,li=jt,Ji=cn,ji=gn,qi=tn,er=Yt,wr=qt,Zr=Dn,pi=Tn,xr=rr,Vi=ar,ki=Br;for(let Hs=0;Hs{b.update(x);const M=x.length%16;M&&b.update(hs.subarray(M))},Rs=new Uint8Array(32);function Al(b,x,M,z,J){const ye=b(x,M,Rs),Ne=ro.create(ye);J&&jo(Ne,J),jo(Ne,z);const Ue=new Uint8Array(16),rt=re(Ue);ce(rt,0,BigInt(J?J.length:0),!0),ce(rt,8,BigInt(z.length),!0),Ne.update(Ue);const xt=Ne.digest();return ye.fill(0),xt}const Ca=b=>(x,M,z)=>(_i(x,32),_i(M),{encrypt:(ye,Ne)=>{const Ue=ye.length,rt=Ue+16;Ne?_i(Ne,rt):Ne=new Uint8Array(rt),b(x,M,ye,Ne,1);const xt=Al(b,x,M,Ne.subarray(0,-16),z);return Ne.set(xt,Ue),Ne},decrypt:(ye,Ne)=>{const Ue=ye.length,rt=Ue-16;if(Ue<16)throw new Error("encrypted data must be at least 16 bytes");Ne?_i(Ne,rt):Ne=new Uint8Array(rt);const xt=ye.subarray(0,-16);if(!Qa(ye.subarray(-16),Al(b,x,M,xt,z)))throw new Error("invalid tag");return b(x,M,xt,Ne,1),Ne}});Ca(Qr),Ca(di);class ll extends qr.Vw{constructor(x,M){super(),this.finished=!1,this.destroyed=!1,tr.hash(x);const z=(0,qr.ZJ)(M);if(this.iHash=x.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 J=this.blockLen,ye=new Uint8Array(J);ye.set(z.length>J?x.create().update(z).digest():z);for(let Ne=0;Nenew ll(b,x).update(M).digest();Tl.create=(b,x)=>new ll(b,x);const ua=new Uint8Array([0]),Xl=new Uint8Array;var oc=Object.defineProperty,Ao=(b,x)=>{for(var M in x)oc(b,M,{get:x[M],enumerable:!0})},Ja=Symbol("verified"),el=b=>b instanceof Object;function qs(b){if(!el(b)||"number"!=typeof b.kind||"string"!=typeof b.content||"number"!=typeof b.created_at||"string"!=typeof b.pubkey||!b.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(b.tags))return!1;for(let x=0;xBc,QueueNode:()=>ou,binarySearch:()=>iu,insertEventIntoAscendingList:()=>ad,insertEventIntoDescendingList:()=>th,normalizeURL:()=>yc,utf8Decoder:()=>Ns,utf8Encoder:()=>Js});var Ns=new TextDecoder("utf-8"),Js=new TextEncoder;function yc(b){-1===b.indexOf("://")&&(b="wss://"+b);let x=new URL(b);return x.pathname=x.pathname.replace(/\/+/g,"/"),x.pathname.endsWith("/")&&(x.pathname=x.pathname.slice(0,-1)),("80"===x.port&&"ws:"===x.protocol||"443"===x.port&&"wss:"===x.protocol)&&(x.port=""),x.searchParams.sort(),x.hash="",x.toString()}function th(b,x){const[M,z]=iu(b,J=>x.id===J.id?0:x.created_at===J.created_at?-1:J.created_at-x.created_at);return z||b.splice(M,0,x),b}function ad(b,x){const[M,z]=iu(b,J=>x.id===J.id?0:x.created_at===J.created_at?-1:x.created_at-J.created_at);return z||b.splice(M,0,x),b}function iu(b,x){let M=0,z=b.length-1;for(;M<=z;){const J=Math.floor((M+z)/2),ye=x(b[J]);if(0===ye)return[J,!0];ye<0?z=J-1:M=J+1}return[M,!1]}var ou=class{value;next=null;prev=null;constructor(b){this.value=b}},Bc=class{first;last;constructor(){this.first=null,this.last=null}enqueue(b){const x=new ou(b);return this.last?this.last===this.first?(this.last=x,this.last.prev=this.first,this.first.next=x):(x.prev=this.last,this.last.next=x,this.last=x):(this.first=x,this.last=x),!0}dequeue(){if(!this.first)return null;if(this.first===this.last){const x=this.first;return this.first=null,this.last=null,x.value}const b=this.first;return this.first=b.next,b.value}};function ul(b){let x=Qo(Js.encode(function da(b){if(!qs(b))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,b.pubkey,b.created_at,b.kind,b.tags,b.content])}(b)));return(0,qr.My)(x)}var Lr=new class{generateSecretKey(){return Xs.utils.randomPrivateKey()}getPublicKey(b){return(0,qr.My)(Xs.getPublicKey(b))}finalizeEvent(b,x){const M=b;return M.pubkey=(0,qr.My)(Xs.getPublicKey(x)),M.id=ul(M),M.sig=(0,qr.My)(Xs.sign(ul(M),x)),M[Ja]=!0,M}verifyEvent(b){if("boolean"==typeof b[Ja])return b[Ja];const x=ul(b);if(x!==b.id)return b[Ja]=!1,!1;try{const M=Xs.verify(b.sig,x,b.pubkey);return b[Ja]=M,M}catch{return b[Ja]=!1,!1}}},tl=Lr.generateSecretKey,Uc=Lr.getPublicKey,ha=Lr.finalizeEvent,dl=Lr.verifyEvent;function Sa(b){return 1e3<=b&&b<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(b)}function wc(b){return[0,3].includes(b)||1e4<=b&&b<2e4}function su(b){return 2e4<=b&&b<3e4}function Xi(b){return 3e4<=b&&b<4e4}function Nu(b){return Sa(b)?"regular":wc(b)?"replaceable":su(b)?"ephemeral":Xi(b)?"parameterized":"unknown"}function Tr(b,x){const M=x instanceof Array?x:[x];return qs(b)&&M.includes(b.kind)||!1}Ao({},{Application:()=>Kn,BadgeAward:()=>Ct,BadgeDefinition:()=>Be,BlockedRelaysList:()=>Il,BookmarkList:()=>lu,Bookmarksets:()=>V,Calendar:()=>Vn,CalendarEventRSVP:()=>dr,ChannelCreation:()=>ri,ChannelHideMessage:()=>as,ChannelMessage:()=>io,ChannelMetadata:()=>hi,ChannelMuteUser:()=>Ko,ClassifiedListing:()=>Mn,ClientAuth:()=>cd,CommunitiesList:()=>Mi,CommunityDefinition:()=>zr,CommunityPostApproval:()=>cf,Contacts:()=>K,CreateOrUpdateProduct:()=>Ht,CreateOrUpdateStall:()=>It,Curationsets:()=>oe,Date:()=>Qn,DirectMessageRelaysList:()=>Aa,DraftClassifiedListing:()=>jn,DraftLong:()=>An,Emojisets:()=>Zt,EncryptedDirectMessage:()=>P,EventDeletion:()=>X,FileMetadata:()=>hl,FileServerPreference:()=>hf,Followsets:()=>Wa,GenericRepost:()=>pr,Genericlists:()=>R,GiftWrap:()=>Wr,HTTPAuth:()=>Bu,Handlerinformation:()=>Ir,Handlerrecommendation:()=>Pr,Highlights:()=>ld,InterestsList:()=>ac,Interestsets:()=>gt,JobFeedback:()=>uf,JobRequest:()=>rh,JobResult:()=>xc,Label:()=>lf,LightningPubRPC:()=>Fu,LiveChatMessage:()=>Ec,LiveEvent:()=>Wn,LongFormArticle:()=>on,Metadata:()=>xs,Mutelist:()=>wn,NWCWalletInfo:()=>Rp,NWCWalletRequest:()=>ea,NWCWalletResponse:()=>js,NostrConnect:()=>kl,OpenTimestamps:()=>Cs,Pinlist:()=>gi,PrivateDirectMessage:()=>nn,ProblemTracker:()=>sc,ProfileBadges:()=>Ae,PublicChatsList:()=>Ml,Reaction:()=>We,RecommendRelay:()=>L,RelayList:()=>Pu,Relaysets:()=>U,Report:()=>Op,Reporting:()=>nh,Repost:()=>he,Seal:()=>vn,SearchRelaysList:()=>fs,ShortTextNote:()=>$c,Time:()=>ir,UserEmojiList:()=>jc,UserStatuses:()=>nr,Zap:()=>Lu,ZapGoal:()=>df,ZapRequest:()=>au,classifyKind:()=>Nu,isEphemeralKind:()=>su,isKind:()=>Tr,isParameterizedReplaceableKind:()=>Xi,isRegularKind:()=>Sa,isReplaceableKind:()=>wc});var xs=0,$c=1,L=2,K=3,P=4,X=5,he=6,We=7,Ct=8,vn=13,nn=14,pr=16,ri=40,hi=41,io=42,as=43,Ko=44,Cs=1040,Wr=1059,hl=1063,Ec=1311,sc=1971,Op=1984,nh=1984,lf=1985,cf=4550,rh=5999,xc=6999,uf=7e3,df=9041,au=9734,Lu=9735,ld=9802,wn=1e4,gi=10001,Pu=10002,lu=10003,Mi=10004,Ml=10005,Il=10006,fs=10007,ac=10015,jc=10030,Aa=10050,hf=10096,Rp=13194,Fu=21e3,cd=22242,ea=23194,js=23195,kl=24133,Bu=27235,Wa=3e4,R=30001,U=30002,V=30003,oe=30004,Ae=30008,Be=30009,gt=30015,It=30017,Ht=30018,on=30023,An=30024,Zt=30030,Kn=30078,Wn=30311,nr=30315,Mn=30402,jn=30403,Qn=31922,ir=31923,Vn=31924,dr=31925,Pr=31989,Ir=31990,zr=34550;function Ur(b,x){if(b.ids&&-1===b.ids.indexOf(x.id)||b.kinds&&-1===b.kinds.indexOf(x.kind)||b.authors&&-1===b.authors.indexOf(x.pubkey))return!1;for(let M in b)if("#"===M[0]){let J=b[`#${M.slice(1)}`];if(J&&!x.tags.find(([ye,Ne])=>ye===M.slice(1)&&-1!==J.indexOf(Ne)))return!1}return!(b.since&&x.created_atb.until)}function Bo(b,x){let M=x.length+3,z=b.indexOf(`"${x}":`)+M,J=b.slice(z).indexOf('"')+z+1;return b.slice(J,J+64)}function Ds(b,x){let M=x.length,z=b.indexOf(`"${x}":`)+M+3,J=b.slice(z),ye=Math.min(J.indexOf(","),J.indexOf("}"));return parseInt(J.slice(0,ye),10)}function yr(b){let x=b.slice(0,22).indexOf('"EVENT"');if(-1===x)return null;let M=b.slice(x+7+1).indexOf('"');if(-1===M)return null;let z=x+7+1+M,J=b.slice(z+1,80).indexOf('"');return-1===J?null:b.slice(z+1,z+1+J)}function jr(b,x){return x===Bo(b,"id")}function Fi(b,x){return x===Bo(b,"pubkey")}function $i(b,x){return x===Ds(b,"kind")}function ps(b,x){return{kind:cd,created_at:Math.floor(Date.now()/1e3),tags:[["relay",b],["challenge",x]],content:""}}function gs(){return Ss.apply(this,arguments)}function Ss(){return(Ss=(0,a.A)(function*(){return new Promise(b=>{const x=new MessageChannel,M=()=>{x.port1.removeEventListener("message",M),b()};x.port1.addEventListener("message",M),x.port2.postMessage(0),x.port1.start()})})).apply(this,arguments)}Ao({},{getHex64:()=>Bo,getInt:()=>Ds,getSubscriptionId:()=>yr,matchEventId:()=>jr,matchEventKind:()=>$i,matchEventPubkey:()=>Fi}),Ao({},{makeAuthEvent:()=>ps});var lc=b=>(b[Ja]=!0,!0),nl=class{url;_connected=!1;onclose=null;onnotice=b=>console.debug(`NOTICE from ${this.url}: ${b}`);_onauth=null;baseEoseTimeout=4400;connectionTimeout=4400;publishTimeout=4400;openSubs=new Map;connectionTimeoutHandle;connectionPromise;openCountRequests=new Map;openEventPublishes=new Map;ws;incomingMessageQueue=new Bc;queueRunning=!1;challenge;serial=0;verifyEvent;_WebSocket;constructor(b,x){this.url=yc(b),this.verifyEvent=x.verifyEvent,this._WebSocket=x.websocketImplementation||WebSocket}static connect(b,x){return(0,a.A)(function*(){const M=new nl(b,x);return yield M.connect(),M})()}closeAllSubscriptions(b){for(let[x,M]of this.openSubs)M.close(b);this.openSubs.clear();for(let[x,M]of this.openEventPublishes)M.reject(new Error(b));this.openEventPublishes.clear();for(let[x,M]of this.openCountRequests)M.reject(new Error(b));this.openCountRequests.clear()}get connected(){return this._connected}connect(){var b=this;return(0,a.A)(function*(){return b.connectionPromise||(b.challenge=void 0,b.connectionPromise=new Promise((x,M)=>{b.connectionTimeoutHandle=setTimeout(()=>{M("connection timed out"),b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection timed out")},b.connectionTimeout);try{b.ws=new b._WebSocket(b.url)}catch(z){return void M(z)}b.ws.onopen=()=>{clearTimeout(b.connectionTimeoutHandle),b._connected=!0,x()},b.ws.onerror=z=>{M(z.message||"websocket error"),b._connected&&(b._connected=!1,b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection errored"))},b.ws.onclose=(0,a.A)(function*(){b._connected&&(b._connected=!1,b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection closed"))}),b.ws.onmessage=b._onmessage.bind(b)})),b.connectionPromise})()}runQueue(){var b=this;return(0,a.A)(function*(){for(b.queueRunning=!0;!1!==b.handleNext();)yield gs();b.queueRunning=!1})()}handleNext(){const b=this.incomingMessageQueue.dequeue();if(!b)return!1;const x=yr(b);if(x){const M=this.openSubs.get(x);if(!M)return;const z=Bo(b,"id"),J=M.alreadyHaveEvent?.(z);if(M.receivedEvent?.(this,z),J)return}try{let M=JSON.parse(b);switch(M[0]){case"EVENT":{const z=this.openSubs.get(M[1]),J=M[2];return void(this.verifyEvent(J)&&function Yi(b,x){for(let M=0;M{x.ws?.send(b)})})()}auth(b){var x=this;return(0,a.A)(function*(){if(!x.challenge)throw new Error("can't perform auth, no challenge was received");const M=yield b(ps(x.url,x.challenge)),z=new Promise((J,ye)=>{x.openEventPublishes.set(M.id,{resolve:J,reject:ye})});return x.send('["AUTH",'+JSON.stringify(M)+"]"),z})()}publish(b){var x=this;return(0,a.A)(function*(){const M=new Promise((z,J)=>{x.openEventPublishes.set(b.id,{resolve:z,reject:J})});return x.send('["EVENT",'+JSON.stringify(b)+"]"),setTimeout(()=>{const z=x.openEventPublishes.get(b.id);z&&(z.reject(new Error("publish timed out")),x.openEventPublishes.delete(b.id))},x.publishTimeout),M})()}count(b,x){var M=this;return(0,a.A)(function*(){M.serial++;const z=x?.id||"count:"+M.serial,J=new Promise((ye,Ne)=>{M.openCountRequests.set(z,{resolve:ye,reject:Ne})});return M.send('["COUNT","'+z+'",'+JSON.stringify(b).substring(1)),J})()}subscribe(b,x){const M=this.prepareSubscription(b,x);return M.fire(),M}prepareSubscription(b,x){this.serial++;const M=x.id||"sub:"+this.serial,z=new cc(this,M,b,x);return this.openSubs.set(M,z),z}close(){this.closeAllSubscriptions("relay connection closed by us"),this._connected=!1,this.ws?.close()}_onmessage(b){this.incomingMessageQueue.enqueue(b.data),this.queueRunning||this.runQueue()}},cc=class{relay;id;closed=!1;eosed=!1;filters;alreadyHaveEvent;receivedEvent;onevent;oneose;onclose;eoseTimeout;eoseTimeoutHandle;constructor(b,x,M,z){this.relay=b,this.filters=M,this.id=x,this.alreadyHaveEvent=z.alreadyHaveEvent,this.receivedEvent=z.receivedEvent,this.eoseTimeout=z.eoseTimeout||b.baseEoseTimeout,this.oneose=z.oneose,this.onclose=z.onclose,this.onevent=z.onevent||(J=>{console.warn(`onevent() callback not defined for subscription '${this.id}' in relay ${this.relay.url}. event received:`,J)})}fire(){this.relay.send('["REQ","'+this.id+'",'+JSON.stringify(this.filters).substring(1)),this.eoseTimeoutHandle=setTimeout(this.receivedEose.bind(this),this.eoseTimeout)}receivedEose(){this.eosed||(clearTimeout(this.eoseTimeoutHandle),this.eosed=!0,this.oneose?.())}close(b="closed by caller"){!this.closed&&this.relay.connected&&(this.relay.send('["CLOSE",'+JSON.stringify(this.id)+"]"),this.closed=!0),this.relay.openSubs.delete(this.id),this.onclose?.(b)}};try{WebSocket}catch{}var dc,Cc=class{relays=new Map;seenOn=new Map;trackRelays=!1;verifyEvent;trustedRelayURLs=new Set;_WebSocket;constructor(b){this.verifyEvent=b.verifyEvent,this._WebSocket=b.websocketImplementation}ensureRelay(b,x){var M=this;return(0,a.A)(function*(){b=yc(b);let z=M.relays.get(b);return z||(z=new nl(b,{verifyEvent:M.trustedRelayURLs.has(b)?lc:M.verifyEvent,websocketImplementation:M._WebSocket}),x?.connectionTimeout&&(z.connectionTimeout=x.connectionTimeout),M.relays.set(b,z)),yield z.connect(),z})()}close(b){b.map(yc).forEach(x=>{this.relays.get(x)?.close()})}subscribeMany(b,x,M){return this.subscribeManyMap(Object.fromEntries(b.map(z=>[z,x])),M)}subscribeManyMap(b,x){var M=this;this.trackRelays&&(x.receivedEvent=(cn,gn)=>{let tn=this.seenOn.get(gn);tn||(tn=new Set,this.seenOn.set(gn,tn)),tn.add(cn)});const z=new Set,J=[],ye=Object.keys(b).length,Ne=[];let Ue=cn=>{Ne[cn]=!0,Ne.filter(gn=>gn).length===ye&&(x.oneose?.(),Ue=()=>{})};const rt=[];let xt=(cn,gn)=>{Ue(cn),rt[cn]=gn,rt.filter(tn=>tn).length===ye&&(x.onclose?.(rt),xt=()=>{})};const zt=cn=>{if(x.alreadyHaveEvent?.(cn))return!0;const gn=z.has(cn);return z.add(cn),gn},jt=Promise.all(Object.entries(b).map(function(){var cn=(0,a.A)(function*(gn,tn,Yt){if(Yt.indexOf(gn)!==tn)return void xt(tn,"duplicate url");let Tn,[qt,Dn]=gn;qt=yc(qt);try{Tn=yield M.ensureRelay(qt,{connectionTimeout:x.maxWait?Math.max(.8*x.maxWait,x.maxWait-1e3):void 0})}catch(ar){return void xt(tn,ar?.message||String(ar))}let rr=Tn.subscribe(Dn,{...x,oneose:()=>Ue(tn),onclose:ar=>xt(tn,ar),alreadyHaveEvent:zt,eoseTimeout:x.maxWait});J.push(rr)});return function(gn,tn,Yt){return cn.apply(this,arguments)}}()));return{close:()=>(0,a.A)(function*(){yield jt,J.forEach(cn=>{cn.close()})})()}}subscribeManyEose(b,x,M){const z=this.subscribeMany(b,x,{...M,oneose(){z.close()}});return z}querySync(b,x,M){var z=this;return(0,a.A)(function*(){return new Promise(function(){var J=(0,a.A)(function*(ye){const Ne=[];z.subscribeManyEose(b,[x],{...M,onevent(Ue){Ne.push(Ue)},onclose(Ue){ye(Ne)}})});return function(ye){return J.apply(this,arguments)}}())})()}get(b,x,M){var z=this;return(0,a.A)(function*(){x.limit=1;const J=yield z.querySync(b,x,M);return J.sort((ye,Ne)=>Ne.created_at-ye.created_at),J[0]||null})()}publish(b,x){var M=this;return b.map(yc).map(function(){var z=(0,a.A)(function*(J,ye,Ne){if(Ne.indexOf(J)!==ye)return Promise.reject("duplicate url");let Ue=yield M.ensureRelay(J);return Ue.publish(x).then(rt=>{if(M.trackRelays){let xt=M.seenOn.get(x.id);xt||(xt=new Set,M.seenOn.set(x.id,xt)),xt.add(Ue)}return rt})});return function(J,ye,Ne){return z.apply(this,arguments)}}())}listConnectionStatus(){const b=new Map;return this.relays.forEach((x,M)=>b.set(M,x.connected)),b}destroy(){this.relays.forEach(b=>b.close()),this.relays=new Map}};try{dc=WebSocket}catch{}var Hc=class extends Cc{constructor(){super({verifyEvent:dl,websocketImplementation:dc})}},Wc={};Ao(Wc,{BECH32_REGEX:()=>fl,Bech32MaxSize:()=>za,NostrTypeGuard:()=>fa,decode:()=>Ql,encodeBytes:()=>dd,naddrEncode:()=>uu,neventEncode:()=>hd,noteEncode:()=>Np,nprofileEncode:()=>ih,npubEncode:()=>Uu,nsecEncode:()=>ud});var fa={isNProfile:b=>/^nprofile1[a-z\d]+$/.test(b||""),isNEvent:b=>/^nevent1[a-z\d]+$/.test(b||""),isNAddr:b=>/^naddr1[a-z\d]+$/.test(b||""),isNSec:b=>/^nsec1[a-z\d]{58}$/.test(b||""),isNPub:b=>/^npub1[a-z\d]{58}$/.test(b||""),isNote:b=>/^note1[a-z\d]+$/.test(b||""),isNcryptsec:b=>/^ncryptsec1[a-z\d]+$/.test(b||"")},za=5e3,fl=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function Ql(b){let{prefix:x,words:M}=ao.I.decode(b,za),z=new Uint8Array(ao.I.fromWords(M));switch(x){case"nprofile":{let J=Ol(z);if(!J[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==J[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:(0,qr.My)(J[0][0]),relays:J[1]?J[1].map(ye=>Ns.decode(ye)):[]}}}case"nevent":{let J=Ol(z);if(!J[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==J[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(J[2]&&32!==J[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(J[3]&&4!==J[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:(0,qr.My)(J[0][0]),relays:J[1]?J[1].map(ye=>Ns.decode(ye)):[],author:J[2]?.[0]?(0,qr.My)(J[2][0]):void 0,kind:J[3]?.[0]?parseInt((0,qr.My)(J[3][0]),16):void 0}}}case"naddr":{let J=Ol(z);if(!J[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!J[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==J[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!J[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==J[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Ns.decode(J[0][0]),pubkey:(0,qr.My)(J[2][0]),kind:parseInt((0,qr.My)(J[3][0]),16),relays:J[1]?J[1].map(ye=>Ns.decode(ye)):[]}}}case"nsec":return{type:x,data:z};case"npub":case"note":return{type:x,data:(0,qr.My)(z)};default:throw new Error(`unknown prefix ${x}`)}}function Ol(b){let x={},M=b;for(;M.length>0;){let z=M[0],J=M[1],ye=M.slice(2,2+J);if(M=M.slice(2+J),ye.lengthJs.encode(M))}))}function hd(b){let x;return void 0!==b.kind&&(x=function cu(b){const x=new Uint8Array(4);return x[0]=b>>24&255,x[1]=b>>16&255,x[2]=b>>8&255,x[3]=255&b,x}(b.kind)),Dc("nevent",du({0:[(0,qr.aT)(b.id)],1:(b.relays||[]).map(z=>Js.encode(z)),2:b.author?[(0,qr.aT)(b.author)]:[],3:x?[new Uint8Array(x)]:[]}))}function uu(b){let x=new ArrayBuffer(4);return new DataView(x).setUint32(0,b.kind,!1),Dc("naddr",du({0:[Js.encode(b.identifier)],1:(b.relays||[]).map(z=>Js.encode(z)),2:[(0,qr.aT)(b.pubkey)],3:[new Uint8Array(x)]}))}function du(b){let x=[];return Object.entries(b).reverse().forEach(([M,z])=>{z.forEach(J=>{let ye=new Uint8Array(J.length+2);ye.set([parseInt(M)],0),ye.set([J.length],1),ye.set(J,2),x.push(ye)})}),(0,qr.Id)(...x)}var Rl={};function ff(b,x,M){return hu.apply(this,arguments)}function hu(){return(hu=(0,a.A)(function*(b,x,M){const z=b instanceof Uint8Array?(0,qr.My)(b):b,ye=zc(kr.getSharedSecret(z,"02"+x));let Ne=Uint8Array.from((0,qr.po)(16)),Ue=Js.encode(M),rt=Ar(ye,Ne).encrypt(Ue);return`${ao.K3.encode(new Uint8Array(rt))}?iv=${ao.K3.encode(new Uint8Array(Ne.buffer))}`})).apply(this,arguments)}function sh(b,x,M){return pd.apply(this,arguments)}function pd(){return(pd=(0,a.A)(function*(b,x,M){const z=b instanceof Uint8Array?(0,qr.My)(b):b;let[J,ye]=M.split("?iv="),Ue=zc(kr.getSharedSecret(z,"02"+x)),rt=ao.K3.decode(ye),xt=ao.K3.decode(J),zt=Ar(Ue,rt).decrypt(xt);return Ns.decode(zt)})).apply(this,arguments)}function zc(b){return b.slice(1,33)}Ao(Rl,{decrypt:()=>sh,encrypt:()=>ff}),Ao({},{NIP05_REGEX:()=>fu,isNip05:()=>md,isValid:()=>mf,queryProfile:()=>pu,searchDomain:()=>lh,useFetchImplementation:()=>pf});var Sc,fu=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,md=b=>fu.test(b||"");try{Sc=fetch}catch{}function pf(b){Sc=b}function lh(b){return ch.apply(this,arguments)}function ch(){return(ch=(0,a.A)(function*(b,x=""){try{const M=`https://${b}/.well-known/nostr.json?name=${x}`,z=yield Sc(M,{redirect:"manual"});if(200!==z.status)throw Error("Wrong response code");return(yield z.json()).names}catch{return{}}})).apply(this,arguments)}function pu(b){return Nl.apply(this,arguments)}function Nl(){return(Nl=(0,a.A)(function*(b){const x=b.match(fu);if(!x)return null;const[,M="_",z]=x;try{const J=`https://${z}/.well-known/nostr.json?name=${M}`,ye=yield Sc(J,{redirect:"manual"});if(200!==ye.status)throw Error("Wrong response code");const Ne=yield ye.json(),Ue=Ne.names[M];return Ue?{pubkey:Ue,relays:Ne.relays?.[Ue]}:null}catch{return null}})).apply(this,arguments)}function mf(b,x){return uh.apply(this,arguments)}function uh(){return(uh=(0,a.A)(function*(b,x){const M=yield pu(x);return!!M&&M.pubkey===b})).apply(this,arguments)}function Kc(b){const x={reply:void 0,root:void 0,mentions:[],profiles:[],quotes:[]};let M,z;for(let J=b.tags.length-1;J>=0;J--){const ye=b.tags[J];if("e"===ye[0]&&ye[1]){const[Ne,Ue,rt,xt,zt]=ye,jt={id:Ue,relays:rt?[rt]:[],author:zt};if("root"===xt){x.root=jt;continue}if("reply"===xt){x.reply=jt;continue}if("mention"===xt){x.mentions.push(jt);continue}M?z=jt:M=jt,x.mentions.push(jt)}else{if("q"===ye[0]&&ye[1]){const[Ne,Ue,rt]=ye;x.quotes.push({id:Ue,relays:rt?[rt]:[]})}"p"===ye[0]&&ye[1]&&x.profiles.push({pubkey:ye[1],relays:ye[2]?[ye[2]]:[]})}}return x.root||(x.root=z||M||x.reply),x.reply||(x.reply=M||x.root),[x.reply,x.root].forEach(J=>{if(!J)return;let ye=x.mentions.indexOf(J);if(-1!==ye&&x.mentions.splice(ye,1),J.author){let Ne=x.profiles.find(Ue=>Ue.pubkey===J.author);Ne&&Ne.relays&&(J.relays||(J.relays=[]),Ne.relays.forEach(Ue=>{-1===J.relays?.indexOf(Ue)&&J.relays.push(Ue)}),Ne.relays=J.relays)}}),x.mentions.forEach(J=>{if(J.author){let ye=x.profiles.find(Ne=>Ne.pubkey===J.author);ye&&ye.relays&&(J.relays||(J.relays=[]),ye.relays.forEach(Ne=>{-1===J.relays.indexOf(Ne)&&J.relays.push(Ne)}),ye.relays=J.relays)}}),x}Ao({},{parse:()=>Kc}),Ao({},{fetchRelayInformation:()=>vf,useFetchImplementation:()=>Lp});try{fetch}catch{}function Lp(b){}function vf(b){return gu.apply(this,arguments)}function gu(){return(gu=(0,a.A)(function*(b){return yield(yield fetch(b.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()})).apply(this,arguments)}function dh(b){let x=0;for(let M=0;M<64;M+=8){const z=parseInt(b.substring(M,M+8),16);if(0!==z){x+=Math.clz32(z);break}x+=32}return x}function $u(b,x){let M=0;const z=b,J=["nonce",M.toString(),x.toString()];for(z.tags.push(J);;){const ye=Math.floor((new Date).getTime()/1e3);if(ye!==z.created_at&&(M=0,z.created_at=ye),J[1]=(++M).toString(),z.id=_f(z),dh(z.id)>=x)break}return z}function _f(b){return(0,qr.My)(Qo(Js.encode(JSON.stringify([0,b.pubkey,b.created_at,b.kind,b.tags,b.content]))))}function hh(b,x,M,z){return ha({kind:he,tags:[...b.tags??[],["e",x.id,M],["p",x.pubkey]],content:""===b.content?"":JSON.stringify(x),created_at:b.created_at},z)}function ju(b){if(b.kind!==he)return;let x,M;for(let z=b.tags.length-1;z>=0&&(void 0===x||void 0===M);z--){const J=b.tags[z];J.length>=2&&("e"===J[0]&&void 0===x?x=J:"p"===J[0]&&void 0===M&&(M=J))}return void 0!==x?{id:x[1],relays:[x[2],M?.[2]].filter(z=>"string"==typeof z),author:M?.[1]}:void 0}function yf(b,{skipVerification:x}={}){const M=ju(b);if(void 0===M||""===b.content)return;let z;try{z=JSON.parse(b.content)}catch{return}return z.id===M.id&&(x||dl(z))?z:void 0}Ao({},{fastEventHash:()=>_f,getPow:()=>dh,minePow:()=>$u}),Ao({},{finishRepostEvent:()=>hh,getRepostedEvent:()=>yf,getRepostedEventPointer:()=>ju}),Ao({},{NOSTR_URI_REGEX:()=>Vu,parse:()=>pl,test:()=>Up});var Vu=new RegExp(`nostr:(${fl.source})`);function Up(b){return"string"==typeof b&&new RegExp(`^${Vu.source}$`).test(b)}function pl(b){const x=b.match(new RegExp(`^${Vu.source}$`));if(!x)throw new Error(`Invalid Nostr URI: ${b}`);return{uri:x[0],value:x[1],decoded:Ql(x[1])}}function vu(b,x,M){const z=x.tags.filter(J=>J.length>=2&&("e"===J[0]||"p"===J[0]));return ha({...b,kind:We,tags:[...b.tags??[],...z,["e",x.id],["p",x.pubkey]],content:b.content??"+"},M)}function ph(b){if(b.kind!==We)return;let x,M;for(let z=b.tags.length-1;z>=0&&(void 0===x||void 0===M);z--){const J=b.tags[z];J.length>=2&&("e"===J[0]&&void 0===x?x=J:"p"===J[0]&&void 0===M&&(M=J))}return void 0!==x&&void 0!==M?{id:x[1],relays:[x[2],M[2]].filter(z=>void 0!==z),author:M[1]}:void 0}Ao({},{finishReactionEvent:()=>vu,getReactedEventPointer:()=>ph}),Ao({},{matchAll:()=>vd,regex:()=>bf,replaceAll:()=>wf});var bf=()=>new RegExp(`\\b${Vu.source}\\b`,"g");function*vd(b){const x=b.matchAll(bf());for(const M of x)try{const[z,J]=M;yield{uri:z,value:J,decoded:Ql(J),start:M.index,end:M.index+z.length}}catch{}}function wf(b,x){return b.replaceAll(bf(),(M,z)=>x({uri:M,value:z,decoded:Ql(z)}))}Ao({},{channelCreateEvent:()=>_d,channelHideMessageEvent:()=>mh,channelMessageEvent:()=>Vp,channelMetadataEvent:()=>jp,channelMuteUserEvent:()=>hc});var _d=(b,x)=>{let M;if("object"==typeof b.content)M=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;M=b.content}return ha({kind:ri,tags:[...b.tags??[]],content:M,created_at:b.created_at},x)},jp=(b,x)=>{let M;if("object"==typeof b.content)M=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;M=b.content}return ha({kind:hi,tags:[["e",b.channel_create_event_id],...b.tags??[]],content:M,created_at:b.created_at},x)},Vp=(b,x)=>{const M=[["e",b.channel_create_event_id,b.relay_url,"root"]];return b.reply_to_channel_message_event_id&&M.push(["e",b.reply_to_channel_message_event_id,b.relay_url,"reply"]),ha({kind:io,tags:[...M,...b.tags??[]],content:b.content,created_at:b.created_at},x)},mh=(b,x)=>{let M;if("object"==typeof b.content)M=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;M=b.content}return ha({kind:as,tags:[["e",b.channel_message_event_id],...b.tags??[]],content:M,created_at:b.created_at},x)},hc=(b,x)=>{let M;if("object"==typeof b.content)M=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;M=b.content}return ha({kind:Ko,tags:[["p",b.pubkey_to_mute],...b.tags??[]],content:M,created_at:b.created_at},x)};Ao({},{EMOJI_SHORTCODE_REGEX:()=>Gc,matchAll:()=>Hu,regex:()=>Ll,replaceAll:()=>Hp});var _u,Gc=/:(\w+):/,Ll=()=>new RegExp(`\\B${Gc.source}\\B`,"g");function*Hu(b){const x=b.matchAll(Ll());for(const M of x)try{const[z,J]=M;yield{shortcode:z,name:J,start:M.index,end:M.index+z.length}}catch{}}function Hp(b,x){return b.replaceAll(Ll(),(M,z)=>x({shortcode:M,name:z}))}Ao({},{useFetchImplementation:()=>il,validateGithub:()=>Wp});try{_u=fetch}catch{}function il(b){_u=b}function Wp(b,x,M){return gh.apply(this,arguments)}function gh(){return(gh=(0,a.A)(function*(b,x,M){try{return(yield(yield _u(`https://gist.github.com/${x}/${M}/raw`)).text())===`Verifying that I control the following Nostr public key: ${b}`}catch{return!1}})).apply(this,arguments)}Ao({},{decrypt:()=>yh,encrypt:()=>_h,getConversationKey:()=>Wu,v2:()=>bh});var yu=1,yd=65535;function Wu(b,x){const M=kr.getSharedSecret(b,"02"+x).subarray(1,33);return function cl(b,x,M){return tr.hash(b),void 0===M&&(M=new Uint8Array(b.outputLen)),Tl(b,(0,qr.ZJ)(M),(0,qr.ZJ)(x))}(Qo,M,"nip44-v2")}function yg(b,x){const M=function Fc(b,x,M,z=32){if(tr.hash(b),tr.number(z),z>255*b.outputLen)throw new Error("Length should be <= 255*HashLen");const J=Math.ceil(z/b.outputLen);void 0===M&&(M=Xl);const ye=new Uint8Array(J*b.outputLen),Ne=Tl.create(b,x),Ue=Ne._cloneInto(),rt=new Uint8Array(Ne.outputLen);for(let xt=0;xtyd)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const x=new Uint8Array(2);return new DataView(x.buffer).setUint16(0,b,!1),x}(M),J=new Uint8Array(bd(M)-M);return(0,qr.Id)(z,x,J)}(b),Ue=Qr(z,J,Ne),rt=Cf(ye,Ue,M);return ao.K3.encode((0,qr.Id)(new Uint8Array([2]),M,Ue,rt))}function yh(b,x){const{nonce:M,ciphertext:z,mac:J}=function vh(b){if("string"!=typeof b)throw new Error("payload must be a valid string");const x=b.length;if(x<132||x>87472)throw new Error("invalid payload length: "+x);if("#"===b[0])throw new Error("unknown encryption version");let M;try{M=ao.K3.decode(b)}catch(ye){throw new Error("invalid base64: "+ye.message)}const z=M.length;if(z<99||z>65603)throw new Error("invalid data length: "+z);const J=M[0];if(2!==J)throw new Error("unknown encryption version "+J);return{nonce:M.subarray(1,33),ciphertext:M.subarray(33,-32),mac:M.subarray(-32)}}(b),{chacha_key:ye,chacha_nonce:Ne,hmac_key:Ue}=yg(x,M);if(!Qa(Cf(Ue,z,M),J))throw new Error("invalid MAC");return function Vo(b){const x=new DataView(b.buffer).getUint16(0),M=b.subarray(2,2+x);if(xyd||M.length!==x||b.length!==2+bd(x))throw new Error("invalid padding");return Ns.decode(M)}(Qr(ye,Ne,z))}var Eh,bh={utils:{getConversationKey:Wu,calcPaddedLen:bd},encrypt:_h,decrypt:yh};function Sf(b){const{pathname:x,searchParams:M}=new URL(b),z=x,J=M.get("relay"),ye=M.get("secret");if(!z||!J||!ye)throw new Error("invalid connection string");return{pubkey:z,relay:J,secret:ye}}function wd(b,x,M){return wh.apply(this,arguments)}function wh(){return(wh=(0,a.A)(function*(b,x,M){const J=yield ff(x,b,JSON.stringify({method:"pay_invoice",params:{invoice:M}})),ye={kind:ea,created_at:Math.round(Date.now()/1e3),content:J,tags:[["p",b]]};return ha(ye,x)})).apply(this,arguments)}Ao({},{makeNwcRequestEvent:()=>wd,parseConnectionString:()=>Sf}),Ao({},{getZapEndpoint:()=>Ac,makeZapReceipt:()=>bg,makeZapRequest:()=>Ed,useFetchImplementation:()=>Kp,validateZapRequest:()=>xd});try{Eh=fetch}catch{}function Kp(b){Eh=b}function Ac(b){return Af.apply(this,arguments)}function Af(){return(Af=(0,a.A)(function*(b){try{let x="",{lud06:M,lud16:z}=JSON.parse(b.content);if(M){let{words:Ne}=ao.I.decode(M,1e3),Ue=ao.I.fromWords(Ne);x=Ns.decode(Ue)}else{if(!z)return null;{let[Ne,Ue]=z.split("@");x=new URL(`/.well-known/lnurlp/${Ne}`,`https://${Ue}`).toString()}}let ye=yield(yield Eh(x)).json();if(ye.allowsNostr&&ye.nostrPubkey)return ye.callback}catch{}return null})).apply(this,arguments)}function Ed({profile:b,event:x,amount:M,relays:z,comment:J=""}){if(!M)throw new Error("amount not given");if(!b)throw new Error("profile not given");let ye={kind:9734,created_at:Math.round(Date.now()/1e3),content:J,tags:[["p",b],["amount",M.toString()],["relays",...z]]};return x&&ye.tags.push(["e",x]),ye}function xd(b){let x;try{x=JSON.parse(b)}catch{return"Invalid zap request JSON."}if(!qs(x))return"Zap request is not a valid Nostr event.";if(!dl(x))return"Invalid signature on zap request.";let M=x.tags.find(([ye,Ne])=>"p"===ye&&Ne);if(!M)return"Zap request doesn't have a 'p' tag.";if(!M[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let z=x.tags.find(([ye,Ne])=>"e"===ye&&Ne);return z&&!z[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":x.tags.find(([ye,Ne])=>"relays"===ye&&Ne)?null:"Zap request doesn't have a 'relays' tag."}function bg({zapRequest:b,preimage:x,bolt11:M,paidAt:z}){let J=JSON.parse(b),ye=J.tags.filter(([Ue])=>"e"===Ue||"p"===Ue||"a"===Ue),Ne={kind:9735,created_at:Math.round(z.getTime()/1e3),content:"",tags:[...ye,["P",J.pubkey],["bolt11",M],["description",b]]};return x&&Ne.tags.push(["preimage",x]),Ne}Ao({},{createRumor:()=>Tf,createSeal:()=>Cd,createWrap:()=>bu,unwrapEvent:()=>Dh,unwrapManyEvents:()=>wu,wrapEvent:()=>xh,wrapManyEvents:()=>Ch});var Yc=()=>Math.round(Date.now()/1e3),Xp=()=>Math.round(Yc()-172800*Math.random()),ml=(b,x)=>Wu(b,x),Tc=(b,x,M)=>_h(JSON.stringify(b),ml(x,M)),Vs=(b,x)=>JSON.parse(yh(b.content,ml(x,b.pubkey)));function Tf(b,x){const M={created_at:Yc(),content:"",tags:[],...b,pubkey:Uc(x)};return M.id=ul(M),M}function Cd(b,x,M){return ha({kind:vn,content:Tc(b,x,M),created_at:Xp(),tags:[]},x)}function bu(b,x){const M=tl();return ha({kind:Wr,content:Tc(b,M,x),created_at:Xp(),tags:[["p",x]]},M)}function xh(b,x,M){return bu(Cd(Tf(b,x),x,M),M)}function Ch(b,x,M){if(!M||0===M.length)throw new Error("At least one recipient is required.");const z=Uc(x),J=[xh(b,x,z)];return M.forEach(ye=>{J.push(xh(b,x,ye))}),J}function Dh(b,x){const M=Vs(b,x);return Vs(M,x)}function wu(b,x){let M=[];return b.forEach(z=>{M.push(Dh(z,x))}),M.sort((z,J)=>z.created_at-J.created_at),M}function Mc(b,x,M){return Zl.apply(this,arguments)}function Zl(){return(Zl=(0,a.A)(function*(b,x,M,z=!1,J){const ye={kind:Bu,tags:[["u",b],["method",x]],created_at:Math.round((new Date).getTime()/1e3),content:""};J&&ye.tags.push(["payload",Qc(J)]);const Ne=yield M(ye);return(z?"Nostr ":"")+ao.K3.encode(Js.encode(JSON.stringify(Ne)))})).apply(this,arguments)}function Yp(b,x,M){return Eu.apply(this,arguments)}function Eu(){return(Eu=(0,a.A)(function*(b,x,M){const z=yield Mf(b).catch(ye=>{throw ye});return yield Dd(z,x,M).catch(ye=>{throw ye})})).apply(this,arguments)}function Mf(b){return Ku.apply(this,arguments)}function Ku(){return(Ku=(0,a.A)(function*(b){if(!b)throw new Error("Missing token");b=b.replace("Nostr ","");const x=Ns.decode(ao.K3.decode(b));if(!x||0===x.length||!x.startsWith("{"))throw new Error("Invalid token");return JSON.parse(x)})).apply(this,arguments)}function Gu(b){return!!b.created_at&&Math.round((new Date).getTime()/1e3)-b.created_at<60}function If(b){return b.kind===Bu}function Ah(b,x){const M=b.tags.find(z=>"u"===z[0]);return!!M&&M.length>0&&M[1]===x}function Ta(b,x){const M=b.tags.find(z=>"method"===z[0]);return!!M&&M.length>0&&M[1].toLowerCase()===x.toLowerCase()}function Qc(b){const x=Qo(Js.encode(JSON.stringify(b)));return(0,qr.My)(x)}function Th(b,x){const M=b.tags.find(J=>"payload"===J[0]);if(!M)return!1;const z=Qc(x);return M.length>0&&M[1]===z}function Dd(b,x,M,z){return Xu.apply(this,arguments)}function Xu(){return(Xu=(0,a.A)(function*(b,x,M,z){if(!dl(b))throw new Error("Invalid nostr event, signature invalid");if(!If(b))throw new Error("Invalid nostr event, kind invalid");if(!Gu(b))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!Ah(b,x))throw new Error("Invalid nostr event, url tag invalid");if(!Ta(b,M))throw new Error("Invalid nostr event, method tag invalid");if(z&&"object"==typeof z&&Object.keys(z).length>0&&!Th(b,z))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})).apply(this,arguments)}Ao({},{getToken:()=>Mc,hashPayload:()=>Qc,unpackEventFromToken:()=>Mf,validateEvent:()=>Dd,validateEventKind:()=>If,validateEventMethodTag:()=>Ta,validateEventPayloadTag:()=>Th,validateEventTimestamp:()=>Gu,validateEventUrlTag:()=>Ah,validateToken:()=>Yp})},8418:(o,s,r)=>{"use strict";r.d(s,{OS:()=>I,av:()=>N,qT:()=>pe,rV:()=>ne}),Symbol("verified");var I=0,N=1,ne=4,pe=7},6391:(o,s,r)=>{"use strict";r.d(s,{Vw:()=>pe,My:()=>A,Id:()=>me,O8:()=>w,aT:()=>I,po:()=>le,Ow:()=>C,ZJ:()=>be,ld:()=>Re});const i="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,a=ae=>ae instanceof Uint8Array,w=ae=>new DataView(ae.buffer,ae.byteOffset,ae.byteLength),C=(ae,Ie)=>ae<<32-Ie|ae>>>Ie;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const S=Array.from({length:256},(ae,Ie)=>Ie.toString(16).padStart(2,"0"));function A(ae){if(!a(ae))throw new Error("Uint8Array expected");let Ie="";for(let $e=0;$est+ht.length,0));let $e=0;return ae.forEach(st=>{if(!a(st))throw new Error("Uint8Array expected");Ie.set(st,$e),$e+=st.length}),Ie}class pe{clone(){return this._cloneInto()}}function Re(ae){const Ie=st=>ae().update(be(st)).digest(),$e=ae();return Ie.outputLen=$e.outputLen,Ie.blockLen=$e.blockLen,Ie.create=()=>ae(),Ie}function le(ae=32){if(i&&"function"==typeof i.getRandomValues)return i.getRandomValues(new Uint8Array(ae));throw new Error("crypto.getRandomValues must be defined")}},7106:(o,s,r)=>{"use strict";function i(a,c){this.v=a,this.k=c}r.d(s,{A:()=>i})},467:(o,s,r)=>{"use strict";function i(c,y,w,C,T,S,A){try{var I=c[S](A),N=I.value}catch(G){return void w(G)}I.done?y(N):Promise.resolve(N).then(C,T)}function a(c){return function(){var y=this,w=arguments;return new Promise(function(C,T){var S=c.apply(y,w);function A(N){i(S,C,T,A,I,"next",N)}function I(N){i(S,C,T,A,I,"throw",N)}A(void 0)})}}r.d(s,{A:()=>a})},6218:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});var i=r(7106);function a(c){return new i.A(c,0)}},600:(o,s,r)=>{"use strict";r.d(s,{A:()=>a});var i=r(7106);function a(y){return function(){return new c(y.apply(this,arguments))}}function c(y){var w,C;function T(A,I){try{var N=y[A](I),G=N.value,Z=G instanceof i.A;Promise.resolve(Z?G.v:G).then(function(ne){if(Z){var be="return"===A?"return":"next";if(!G.k||ne.done)return T(be,ne);ne=y[be](ne).value}S(N.done?"return":"normal",ne)},function(ne){T("throw",ne)})}catch(ne){S("throw",ne)}}function S(A,I){switch(A){case"return":w.resolve({value:I,done:!0});break;case"throw":w.reject(I);break;default:w.resolve({value:I,done:!1})}(w=w.next)?T(w.key,w.arg):C=null}this._invoke=function(A,I){return new Promise(function(N,G){var Z={key:A,arg:I,resolve:N,reject:G,next:null};C?C=C.next=Z:(w=C=Z,T(A,I))})},"function"!=typeof y.return&&(this.return=void 0)}c.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(y){return this._invoke("next",y)},c.prototype.throw=function(y){return this._invoke("throw",y)},c.prototype.return=function(y){return this._invoke("return",y)}},1635:(o,s,r)=>{"use strict";function G(ze,Fe,Ft,Ke){return new(Ft||(Ft=Promise))(function(Ge,He){function mt(Rt){try{Ze(Ke.next(Rt))}catch(Jt){He(Jt)}}function se(Rt){try{Ze(Ke.throw(Rt))}catch(Jt){He(Jt)}}function Ze(Rt){Rt.done?Ge(Rt.value):function dt(Ge){return Ge instanceof Ft?Ge:new Ft(function(He){He(Ge)})}(Rt.value).then(mt,se)}Ze((Ke=Ke.apply(ze,Fe||[])).next())})}function Me(ze){return this instanceof Me?(this.v=ze,this):new Me(ze)}function Ce(ze,Fe,Ft){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var dt,Ke=Ft.apply(ze,Fe||[]),Ge=[];return dt=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),mt("next"),mt("throw"),mt("return",function He(Gn){return function(Nt){return Promise.resolve(Nt).then(Gn,Jt)}}),dt[Symbol.asyncIterator]=function(){return this},dt;function mt(Gn,Nt){Ke[Gn]&&(dt[Gn]=function(Qt){return new Promise(function(an,Xn){Ge.push([Gn,Qt,an,Xn])>1||se(Gn,Qt)})},Nt&&(dt[Gn]=Nt(dt[Gn])))}function se(Gn,Nt){try{!function Ze(Gn){Gn.value instanceof Me?Promise.resolve(Gn.value.v).then(Rt,Jt):fn(Ge[0][2],Gn)}(Ke[Gn](Nt))}catch(Qt){fn(Ge[0][3],Qt)}}function Rt(Gn){se("next",Gn)}function Jt(Gn){se("throw",Gn)}function fn(Gn,Nt){Gn(Nt),Ge.shift(),Ge.length&&se(Ge[0][0],Ge[0][1])}}function ae(ze){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ft,Fe=ze[Symbol.asyncIterator];return Fe?Fe.call(ze):(ze=function me(ze){var Fe="function"==typeof Symbol&&Symbol.iterator,Ft=Fe&&ze[Fe],Ke=0;if(Ft)return Ft.call(ze);if(ze&&"number"==typeof ze.length)return{next:function(){return ze&&Ke>=ze.length&&(ze=void 0),{value:ze&&ze[Ke++],done:!ze}}};throw new TypeError(Fe?"Object is not iterable.":"Symbol.iterator is not defined.")}(ze),Ft={},Ke("next"),Ke("throw"),Ke("return"),Ft[Symbol.asyncIterator]=function(){return this},Ft);function Ke(Ge){Ft[Ge]=ze[Ge]&&function(He){return new Promise(function(mt,se){!function dt(Ge,He,mt,se){Promise.resolve(se).then(function(Ze){Ge({value:Ze,done:mt})},He)}(mt,se,(He=ze[Ge](He)).done,He.value)})}}}r.d(s,{AQ:()=>Ce,N3:()=>Me,sH:()=>G,xN:()=>ae}),"function"==typeof SuppressedError&&SuppressedError}},o=>{o(o.s=4626)}]); \ No newline at end of file diff --git a/ngsw-worker.js b/ngsw-worker.js index d869768..825a902 100644 --- a/ngsw-worker.js +++ b/ngsw-worker.js @@ -1069,7 +1069,7 @@ ${error.stack}`; }; // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/debug.mjs - var SW_VERSION = "19.0.4"; + var SW_VERSION = "19.0.3"; var DEBUG_LOG_BUFFER_SIZE = 100; var DebugHandler = class { constructor(driver, adapter2) { diff --git a/ngsw.json b/ngsw.json index de7aa2c..26040ea 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1734088169831, + "timestamp": 1734088979319, "index": "/index.html", "assetGroups": [], "dataGroups": [], diff --git a/runtime.2ede1e2d4600c743.js b/runtime.2ede1e2d4600c743.js new file mode 100644 index 0000000..aac1367 --- /dev/null +++ b/runtime.2ede1e2d4600c743.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},g={};function a(e){var n=g[e];if(void 0!==n)return n.exports;var r=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=v,e=[],a.O=(n,r,c,d)=>{if(!r){var t=1/0;for(f=0;f=d)&&Object.keys(a.O).every(p=>a.O[p](r[i]))?r.splice(i--,1):(u=!1,d0&&e[f-1][2]>d;f--)e[f]=e[f-1];e[f]=[r,c,d]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((n,r)=>(a.f[r](e,n),n),[])),a.u=e=>(76===e?"common":e)+"."+{76:"d43e9028d56ab015",218:"d6944300b7a162d0",258:"af17269ef75cc52e",307:"441271afb8e1ca40",408:"3d872a77a722dae4",416:"703750621db94112",450:"8d64c1caeaab7f13",468:"a065aef0c8d29857",514:"ce4ee6ed06b70a1c",524:"9a7ec1a47ccd020f",541:"46351ef9bd7cb3af",551:"3b95db84ed212394",588:"03aaa7103dd6314e",735:"7aac8a5f319a562f",740:"470288d9c9e8a26a",770:"39fda8b208991504",790:"84244f740f14be1a",861:"d49e02341f420dfa",865:"390f59ee2c366d2a",888:"4de400e6548c47d4"}[e]+".js",a.miniCssF=e=>{},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="angor:";a.l=(r,c,d,f)=>{if(e[r])e[r].push(c);else{var t,u;if(void 0!==d)for(var i=document.getElementsByTagName("script"),l=0;l{t.onerror=t.onload=null,clearTimeout(s);var h=e[r];if(delete e[r],t.parentNode&&t.parentNode.removeChild(t),h&&h.forEach(_=>_(p)),m)return m(p)},s=setTimeout(b.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=b.bind(null,t.onerror),t.onload=b.bind(null,t.onload),u&&document.head.appendChild(t)}}})(),a.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;a.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),a.tu=e=>a.tt().createScriptURL(e),a.p="",(()=>{var e={121:0};a.f.j=(c,d)=>{var f=a.o(e,c)?e[c]:void 0;if(0!==f)if(f)d.push(f[2]);else if(121!=c){var t=new Promise((o,b)=>f=e[c]=[o,b]);d.push(f[2]=t);var u=a.p+a.u(c),i=new Error;a.l(u,o=>{if(a.o(e,c)&&(0!==(f=e[c])&&(e[c]=void 0),f)){var b=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;i.message="Loading chunk "+c+" failed.\n("+b+": "+s+")",i.name="ChunkLoadError",i.type=b,i.request=s,f[1](i)}},"chunk-"+c,c)}else e[c]=0},a.O.j=c=>0===e[c];var n=(c,d)=>{var i,l,[f,t,u]=d,o=0;if(f.some(s=>0!==e[s])){for(i in t)a.o(t,i)&&(a.m[i]=t[i]);if(u)var b=u(a)}for(c&&c(d);o{"use strict";var e,v={},g={};function a(e){var n=g[e];if(void 0!==n)return n.exports;var r=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=v,e=[],a.O=(n,r,d,i)=>{if(!r){var t=1/0;for(f=0;f=i)&&Object.keys(a.O).every(p=>a.O[p](r[c]))?r.splice(c--,1):(u=!1,i0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[r,d,i]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((n,r)=>(a.f[r](e,n),n),[])),a.u=e=>(76===e?"common":e)+"."+{76:"d43e9028d56ab015",218:"d6944300b7a162d0",258:"af17269ef75cc52e",307:"441271afb8e1ca40",408:"3d872a77a722dae4",416:"703750621db94112",450:"8d64c1caeaab7f13",514:"ce4ee6ed06b70a1c",524:"86bfd04d1400cfcf",541:"46351ef9bd7cb3af",551:"3b95db84ed212394",569:"e16d2541faba0baa",588:"03aaa7103dd6314e",735:"7aac8a5f319a562f",740:"470288d9c9e8a26a",770:"39fda8b208991504",790:"84244f740f14be1a",861:"d49e02341f420dfa",865:"390f59ee2c366d2a",888:"e4547c5c0d4811fa"}[e]+".js",a.miniCssF=e=>{},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="angor:";a.l=(r,d,i,f)=>{if(e[r])e[r].push(d);else{var t,u;if(void 0!==i)for(var c=document.getElementsByTagName("script"),l=0;l{t.onerror=t.onload=null,clearTimeout(b);var h=e[r];if(delete e[r],t.parentNode&&t.parentNode.removeChild(t),h&&h.forEach(_=>_(p)),m)return m(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=s.bind(null,t.onerror),t.onload=s.bind(null,t.onload),u&&document.head.appendChild(t)}}})(),a.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;a.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),a.tu=e=>a.tt().createScriptURL(e),a.p="",(()=>{var e={121:0};a.f.j=(d,i)=>{var f=a.o(e,d)?e[d]:void 0;if(0!==f)if(f)i.push(f[2]);else if(121!=d){var t=new Promise((o,s)=>f=e[d]=[o,s]);i.push(f[2]=t);var u=a.p+a.u(d),c=new Error;a.l(u,o=>{if(a.o(e,d)&&(0!==(f=e[d])&&(e[d]=void 0),f)){var s=o&&("load"===o.type?"missing":o.type),b=o&&o.target&&o.target.src;c.message="Loading chunk "+d+" failed.\n("+s+": "+b+")",c.name="ChunkLoadError",c.type=s,c.request=b,f[1](c)}},"chunk-"+d,d)}else e[d]=0},a.O.j=d=>0===e[d];var n=(d,i)=>{var c,l,[f,t,u]=i,o=0;if(f.some(b=>0!==e[b])){for(c in t)a.o(t,c)&&(a.m[c]=t[c]);if(u)var s=u(a)}for(d&&d(i);o